Annotation of libaitsched/configure, revision 1.4.2.1
1.1 misho 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.4.2.1 ! misho 3: # Generated by GNU Autoconf 2.68 for libaitsched 1.4.
1.1 misho 4: #
5: # Report bugs to <misho@openbsd-bg.org>.
6: #
1.2 misho 7: #
1.1 misho 8: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1.4.2.1 ! misho 9: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
! 10: # Foundation, Inc.
1.1 misho 11: #
1.2 misho 12: #
1.1 misho 13: # This configure script is free software; the Free Software Foundation
14: # gives unlimited permission to copy, distribute and modify it.
15: ## -------------------- ##
16: ## M4sh Initialization. ##
17: ## -------------------- ##
18:
19: # Be more Bourne compatible
20: DUALCASE=1; export DUALCASE # for MKS sh
21: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22: emulate sh
23: NULLCMD=:
24: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25: # is contrary to our usage. Disable this feature.
26: alias -g '${1+"$@"}'='"$@"'
27: setopt NO_GLOB_SUBST
28: else
29: case `(set -o) 2>/dev/null` in #(
30: *posix*) :
31: set -o posix ;; #(
32: *) :
33: ;;
34: esac
35: fi
36:
37:
38: as_nl='
39: '
40: export as_nl
41: # Printing a long string crashes Solaris 7 /usr/bin/printf.
42: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45: # Prefer a ksh shell builtin over an external printf program on Solaris,
46: # but without wasting forks for bash or zsh.
47: if test -z "$BASH_VERSION$ZSH_VERSION" \
48: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49: as_echo='print -r --'
50: as_echo_n='print -rn --'
51: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52: as_echo='printf %s\n'
53: as_echo_n='printf %s'
54: else
55: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57: as_echo_n='/usr/ucb/echo -n'
58: else
59: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60: as_echo_n_body='eval
61: arg=$1;
62: case $arg in #(
63: *"$as_nl"*)
64: expr "X$arg" : "X\\(.*\\)$as_nl";
65: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66: esac;
67: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68: '
69: export as_echo_n_body
70: as_echo_n='sh -c $as_echo_n_body as_echo'
71: fi
72: export as_echo_body
73: as_echo='sh -c $as_echo_body as_echo'
74: fi
75:
76: # The user is always right.
77: if test "${PATH_SEPARATOR+set}" != set; then
78: PATH_SEPARATOR=:
79: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81: PATH_SEPARATOR=';'
82: }
83: fi
84:
85:
86: # IFS
87: # We need space, tab and new line, in precisely that order. Quoting is
88: # there to prevent editors from complaining about space-tab.
89: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90: # splitting by setting IFS to empty value.)
91: IFS=" "" $as_nl"
92:
93: # Find who we are. Look in the path if we contain no directory separator.
1.4.2.1 ! misho 94: as_myself=
1.1 misho 95: case $0 in #((
96: *[\\/]* ) as_myself=$0 ;;
97: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98: for as_dir in $PATH
99: do
100: IFS=$as_save_IFS
101: test -z "$as_dir" && as_dir=.
102: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103: done
104: IFS=$as_save_IFS
105:
106: ;;
107: esac
108: # We did not find ourselves, most probably we were run as `sh COMMAND'
109: # in which case we are not to be found in the path.
110: if test "x$as_myself" = x; then
111: as_myself=$0
112: fi
113: if test ! -f "$as_myself"; then
114: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115: exit 1
116: fi
117:
118: # Unset variables that we do not need and which cause bugs (e.g. in
119: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120: # suppresses any "Segmentation fault" message there. '((' could
121: # trigger a bug in pdksh 5.2.14.
122: for as_var in BASH_ENV ENV MAIL MAILPATH
123: do eval test x\${$as_var+set} = xset \
124: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125: done
126: PS1='$ '
127: PS2='> '
128: PS4='+ '
129:
130: # NLS nuisances.
131: LC_ALL=C
132: export LC_ALL
133: LANGUAGE=C
134: export LANGUAGE
135:
136: # CDPATH.
137: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138:
139: if test "x$CONFIG_SHELL" = x; then
140: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141: emulate sh
142: NULLCMD=:
143: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144: # is contrary to our usage. Disable this feature.
145: alias -g '\${1+\"\$@\"}'='\"\$@\"'
146: setopt NO_GLOB_SUBST
147: else
148: case \`(set -o) 2>/dev/null\` in #(
149: *posix*) :
150: set -o posix ;; #(
151: *) :
152: ;;
153: esac
154: fi
155: "
156: as_required="as_fn_return () { (exit \$1); }
157: as_fn_success () { as_fn_return 0; }
158: as_fn_failure () { as_fn_return 1; }
159: as_fn_ret_success () { return 0; }
160: as_fn_ret_failure () { return 1; }
161:
162: exitcode=0
163: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168:
169: else
170: exitcode=1; echo positional parameters were not saved.
171: fi
172: test x\$exitcode = x0 || exit 1"
173: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177: test \$(( 1 + 1 )) = 2 || exit 1"
178: if (eval "$as_required") 2>/dev/null; then :
179: as_have_required=yes
180: else
181: as_have_required=no
182: fi
183: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184:
185: else
186: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187: as_found=false
188: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189: do
190: IFS=$as_save_IFS
191: test -z "$as_dir" && as_dir=.
192: as_found=:
193: case $as_dir in #(
194: /*)
195: for as_base in sh bash ksh sh5; do
196: # Try only shells that exist, to save several forks.
197: as_shell=$as_dir/$as_base
198: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200: CONFIG_SHELL=$as_shell as_have_required=yes
201: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202: break 2
203: fi
204: fi
205: done;;
206: esac
207: as_found=false
208: done
209: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211: CONFIG_SHELL=$SHELL as_have_required=yes
212: fi; }
213: IFS=$as_save_IFS
214:
215:
216: if test "x$CONFIG_SHELL" != x; then :
217: # We cannot yet assume a decent shell, so we have to provide a
218: # neutralization value for shells without unset; and this also
219: # works around shells that cannot unset nonexistent variables.
1.4.2.1 ! misho 220: # Preserve -v and -x to the replacement shell.
1.1 misho 221: BASH_ENV=/dev/null
222: ENV=/dev/null
223: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224: export CONFIG_SHELL
1.4.2.1 ! misho 225: case $- in # ((((
! 226: *v*x* | *x*v* ) as_opts=-vx ;;
! 227: *v* ) as_opts=-v ;;
! 228: *x* ) as_opts=-x ;;
! 229: * ) as_opts= ;;
! 230: esac
! 231: exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
1.1 misho 232: fi
233:
234: if test x$as_have_required = xno; then :
235: $as_echo "$0: This script requires a shell more modern than all"
236: $as_echo "$0: the shells that I found on your system."
237: if test x${ZSH_VERSION+set} = xset ; then
238: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240: else
241: $as_echo "$0: Please tell bug-autoconf@gnu.org and
242: $0: misho@openbsd-bg.org about your system, including any
243: $0: error possibly output before this message. Then install
244: $0: a modern shell, or manually run the script under such a
245: $0: shell if you do have one."
246: fi
247: exit 1
248: fi
249: fi
250: fi
251: SHELL=${CONFIG_SHELL-/bin/sh}
252: export SHELL
253: # Unset more variables known to interfere with behavior of common tools.
254: CLICOLOR_FORCE= GREP_OPTIONS=
255: unset CLICOLOR_FORCE GREP_OPTIONS
256:
257: ## --------------------- ##
258: ## M4sh Shell Functions. ##
259: ## --------------------- ##
260: # as_fn_unset VAR
261: # ---------------
262: # Portably unset VAR.
263: as_fn_unset ()
264: {
265: { eval $1=; unset $1;}
266: }
267: as_unset=as_fn_unset
268:
269: # as_fn_set_status STATUS
270: # -----------------------
271: # Set $? to STATUS, without forking.
272: as_fn_set_status ()
273: {
274: return $1
275: } # as_fn_set_status
276:
277: # as_fn_exit STATUS
278: # -----------------
279: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280: as_fn_exit ()
281: {
282: set +e
283: as_fn_set_status $1
284: exit $1
285: } # as_fn_exit
286:
287: # as_fn_mkdir_p
288: # -------------
289: # Create "$as_dir" as a directory, including parents if necessary.
290: as_fn_mkdir_p ()
291: {
292:
293: case $as_dir in #(
294: -*) as_dir=./$as_dir;;
295: esac
296: test -d "$as_dir" || eval $as_mkdir_p || {
297: as_dirs=
298: while :; do
299: case $as_dir in #(
300: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301: *) as_qdir=$as_dir;;
302: esac
303: as_dirs="'$as_qdir' $as_dirs"
304: as_dir=`$as_dirname -- "$as_dir" ||
305: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306: X"$as_dir" : 'X\(//\)[^/]' \| \
307: X"$as_dir" : 'X\(//\)$' \| \
308: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309: $as_echo X"$as_dir" |
310: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311: s//\1/
312: q
313: }
314: /^X\(\/\/\)[^/].*/{
315: s//\1/
316: q
317: }
318: /^X\(\/\/\)$/{
319: s//\1/
320: q
321: }
322: /^X\(\/\).*/{
323: s//\1/
324: q
325: }
326: s/.*/./; q'`
327: test -d "$as_dir" && break
328: done
329: test -z "$as_dirs" || eval "mkdir $as_dirs"
1.4.2.1 ! misho 330: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.1 misho 331:
332:
333: } # as_fn_mkdir_p
334: # as_fn_append VAR VALUE
335: # ----------------------
336: # Append the text in VALUE to the end of the definition contained in VAR. Take
337: # advantage of any shell optimizations that allow amortized linear growth over
338: # repeated appends, instead of the typical quadratic growth present in naive
339: # implementations.
340: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341: eval 'as_fn_append ()
342: {
343: eval $1+=\$2
344: }'
345: else
346: as_fn_append ()
347: {
348: eval $1=\$$1\$2
349: }
350: fi # as_fn_append
351:
352: # as_fn_arith ARG...
353: # ------------------
354: # Perform arithmetic evaluation on the ARGs, and store the result in the
355: # global $as_val. Take advantage of shells that can avoid forks. The arguments
356: # must be portable across $(()) and expr.
357: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358: eval 'as_fn_arith ()
359: {
360: as_val=$(( $* ))
361: }'
362: else
363: as_fn_arith ()
364: {
365: as_val=`expr "$@" || test $? -eq 1`
366: }
367: fi # as_fn_arith
368:
369:
1.4.2.1 ! misho 370: # as_fn_error STATUS ERROR [LINENO LOG_FD]
! 371: # ----------------------------------------
1.1 misho 372: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.4.2.1 ! misho 374: # script with STATUS, using 1 if that was 0.
1.1 misho 375: as_fn_error ()
376: {
1.4.2.1 ! misho 377: as_status=$1; test $as_status -eq 0 && as_status=1
! 378: if test "$4"; then
! 379: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 380: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.1 misho 381: fi
1.4.2.1 ! misho 382: $as_echo "$as_me: error: $2" >&2
1.1 misho 383: as_fn_exit $as_status
384: } # as_fn_error
385:
386: if expr a : '\(a\)' >/dev/null 2>&1 &&
387: test "X`expr 00001 : '.*\(...\)'`" = X001; then
388: as_expr=expr
389: else
390: as_expr=false
391: fi
392:
393: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394: as_basename=basename
395: else
396: as_basename=false
397: fi
398:
399: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400: as_dirname=dirname
401: else
402: as_dirname=false
403: fi
404:
405: as_me=`$as_basename -- "$0" ||
406: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407: X"$0" : 'X\(//\)$' \| \
408: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409: $as_echo X/"$0" |
410: sed '/^.*\/\([^/][^/]*\)\/*$/{
411: s//\1/
412: q
413: }
414: /^X\/\(\/\/\)$/{
415: s//\1/
416: q
417: }
418: /^X\/\(\/\).*/{
419: s//\1/
420: q
421: }
422: s/.*/./; q'`
423:
424: # Avoid depending upon Character Ranges.
425: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428: as_cr_digits='0123456789'
429: as_cr_alnum=$as_cr_Letters$as_cr_digits
430:
431:
432: as_lineno_1=$LINENO as_lineno_1a=$LINENO
433: as_lineno_2=$LINENO as_lineno_2a=$LINENO
434: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437: sed -n '
438: p
439: /[$]LINENO/=
440: ' <$as_myself |
441: sed '
442: s/[$]LINENO.*/&-/
443: t lineno
444: b
445: :lineno
446: N
447: :loop
448: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449: t loop
450: s/-\n.*//
451: ' >$as_me.lineno &&
452: chmod +x "$as_me.lineno" ||
453: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454:
455: # Don't try to exec as it changes $[0], causing all sort of problems
456: # (the dirname of $[0] is not the place where we might find the
457: # original and so on. Autoconf is especially sensitive to this).
458: . "./$as_me.lineno"
459: # Exit status is that of the last command.
460: exit
461: }
462:
463: ECHO_C= ECHO_N= ECHO_T=
464: case `echo -n x` in #(((((
465: -n*)
466: case `echo 'xy\c'` in
467: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
468: xy) ECHO_C='\c';;
469: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470: ECHO_T=' ';;
471: esac;;
472: *)
473: ECHO_N='-n';;
474: esac
475:
476: rm -f conf$$ conf$$.exe conf$$.file
477: if test -d conf$$.dir; then
478: rm -f conf$$.dir/conf$$.file
479: else
480: rm -f conf$$.dir
481: mkdir conf$$.dir 2>/dev/null
482: fi
483: if (echo >conf$$.file) 2>/dev/null; then
484: if ln -s conf$$.file conf$$ 2>/dev/null; then
485: as_ln_s='ln -s'
486: # ... but there are two gotchas:
487: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489: # In both cases, we have to default to `cp -p'.
490: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491: as_ln_s='cp -p'
492: elif ln conf$$.file conf$$ 2>/dev/null; then
493: as_ln_s=ln
494: else
495: as_ln_s='cp -p'
496: fi
497: else
498: as_ln_s='cp -p'
499: fi
500: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501: rmdir conf$$.dir 2>/dev/null
502:
503: if mkdir -p . 2>/dev/null; then
504: as_mkdir_p='mkdir -p "$as_dir"'
505: else
506: test -d ./-p && rmdir ./-p
507: as_mkdir_p=false
508: fi
509:
510: if test -x / >/dev/null 2>&1; then
511: as_test_x='test -x'
512: else
513: if ls -dL / >/dev/null 2>&1; then
514: as_ls_L_option=L
515: else
516: as_ls_L_option=
517: fi
518: as_test_x='
519: eval sh -c '\''
520: if test -d "$1"; then
521: test -d "$1/.";
522: else
523: case $1 in #(
524: -*)set "./$1";;
525: esac;
526: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527: ???[sx]*):;;*)false;;esac;fi
528: '\'' sh
529: '
530: fi
531: as_executable_p=$as_test_x
532:
533: # Sed expression to map a string onto a valid CPP name.
534: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535:
536: # Sed expression to map a string onto a valid variable name.
537: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538:
539:
1.2 misho 540: test -n "$DJDIR" || exec 7<&0 </dev/null
541: exec 6>&1
1.1 misho 542:
543: # Name of the host.
1.4.2.1 ! misho 544: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.1 misho 545: # so uname gets run too.
546: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547:
548: #
549: # Initializations.
550: #
551: ac_default_prefix=/usr/local
552: ac_clean_files=
553: ac_config_libobj_dir=.
554: LIBOBJS=
555: cross_compiling=no
556: subdirs=
557: MFLAGS=
558: MAKEFLAGS=
559:
560: # Identity of this package.
561: PACKAGE_NAME='libaitsched'
562: PACKAGE_TARNAME='libaitsched'
1.4.2.1 ! misho 563: PACKAGE_VERSION='1.4'
! 564: PACKAGE_STRING='libaitsched 1.4'
1.1 misho 565: PACKAGE_BUGREPORT='misho@openbsd-bg.org'
566: PACKAGE_URL=''
567:
568: ac_unique_file="src/aitsched.c"
569: # Factoring default headers for most tests.
570: ac_includes_default="\
571: #include <stdio.h>
572: #ifdef HAVE_SYS_TYPES_H
573: # include <sys/types.h>
574: #endif
575: #ifdef HAVE_SYS_STAT_H
576: # include <sys/stat.h>
577: #endif
578: #ifdef STDC_HEADERS
579: # include <stdlib.h>
580: # include <stddef.h>
581: #else
582: # ifdef HAVE_STDLIB_H
583: # include <stdlib.h>
584: # endif
585: #endif
586: #ifdef HAVE_STRING_H
587: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588: # include <memory.h>
589: # endif
590: # include <string.h>
591: #endif
592: #ifdef HAVE_STRINGS_H
593: # include <strings.h>
594: #endif
595: #ifdef HAVE_INTTYPES_H
596: # include <inttypes.h>
597: #endif
598: #ifdef HAVE_STDINT_H
599: # include <stdint.h>
600: #endif
601: #ifdef HAVE_UNISTD_H
602: # include <unistd.h>
603: #endif"
604:
605: ac_subst_vars='LTLIBOBJS
606: LIBOBJS
607: EGREP
608: GREP
609: CPP
610: MKDEP
611: target_os
612: target_vendor
613: target_cpu
614: target
615: host_os
616: host_vendor
617: host_cpu
618: host
619: build_os
620: build_vendor
621: build_cpu
622: build
623: RANLIB
624: INSTALL_DATA
625: INSTALL_SCRIPT
626: INSTALL_PROGRAM
627: OBJEXT
628: EXEEXT
629: ac_ct_CC
630: CPPFLAGS
631: LDFLAGS
632: CFLAGS
633: CC
634: target_alias
635: host_alias
636: build_alias
637: LIBS
638: ECHO_T
639: ECHO_N
640: ECHO_C
641: DEFS
642: mandir
643: localedir
644: libdir
645: psdir
646: pdfdir
647: dvidir
648: htmldir
649: infodir
650: docdir
651: oldincludedir
652: includedir
653: localstatedir
654: sharedstatedir
655: sysconfdir
656: datadir
657: datarootdir
658: libexecdir
659: sbindir
660: bindir
661: program_transform_name
662: prefix
663: exec_prefix
664: PACKAGE_URL
665: PACKAGE_BUGREPORT
666: PACKAGE_STRING
667: PACKAGE_VERSION
668: PACKAGE_TARNAME
669: PACKAGE_NAME
670: PATH_SEPARATOR
671: SHELL'
672: ac_subst_files=''
673: ac_user_opts='
674: enable_option_checking
675: enable_debug
676: '
677: ac_precious_vars='build_alias
678: host_alias
679: target_alias
680: CC
681: CFLAGS
682: LDFLAGS
683: LIBS
684: CPPFLAGS
1.3 misho 685: CPP'
1.1 misho 686:
687:
688: # Initialize some variables set by options.
689: ac_init_help=
690: ac_init_version=false
691: ac_unrecognized_opts=
692: ac_unrecognized_sep=
693: # The variables have the same names as the options, with
694: # dashes changed to underlines.
695: cache_file=/dev/null
696: exec_prefix=NONE
697: no_create=
698: no_recursion=
699: prefix=NONE
700: program_prefix=NONE
701: program_suffix=NONE
702: program_transform_name=s,x,x,
703: silent=
704: site=
705: srcdir=
706: verbose=
707: x_includes=NONE
708: x_libraries=NONE
709:
710: # Installation directory options.
711: # These are left unexpanded so users can "make install exec_prefix=/foo"
712: # and all the variables that are supposed to be based on exec_prefix
713: # by default will actually change.
714: # Use braces instead of parens because sh, perl, etc. also accept them.
715: # (The list follows the same order as the GNU Coding Standards.)
716: bindir='${exec_prefix}/bin'
717: sbindir='${exec_prefix}/sbin'
718: libexecdir='${exec_prefix}/libexec'
719: datarootdir='${prefix}/share'
720: datadir='${datarootdir}'
721: sysconfdir='${prefix}/etc'
722: sharedstatedir='${prefix}/com'
723: localstatedir='${prefix}/var'
724: includedir='${prefix}/include'
725: oldincludedir='/usr/include'
726: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
727: infodir='${datarootdir}/info'
728: htmldir='${docdir}'
729: dvidir='${docdir}'
730: pdfdir='${docdir}'
731: psdir='${docdir}'
732: libdir='${exec_prefix}/lib'
733: localedir='${datarootdir}/locale'
734: mandir='${datarootdir}/man'
735:
736: ac_prev=
737: ac_dashdash=
738: for ac_option
739: do
740: # If the previous option needs an argument, assign it.
741: if test -n "$ac_prev"; then
742: eval $ac_prev=\$ac_option
743: ac_prev=
744: continue
745: fi
746:
747: case $ac_option in
1.4.2.1 ! misho 748: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
! 749: *=) ac_optarg= ;;
! 750: *) ac_optarg=yes ;;
1.1 misho 751: esac
752:
753: # Accept the important Cygnus configure options, so we can diagnose typos.
754:
755: case $ac_dashdash$ac_option in
756: --)
757: ac_dashdash=yes ;;
758:
759: -bindir | --bindir | --bindi | --bind | --bin | --bi)
760: ac_prev=bindir ;;
761: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
762: bindir=$ac_optarg ;;
763:
764: -build | --build | --buil | --bui | --bu)
765: ac_prev=build_alias ;;
766: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
767: build_alias=$ac_optarg ;;
768:
769: -cache-file | --cache-file | --cache-fil | --cache-fi \
770: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
771: ac_prev=cache_file ;;
772: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
773: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
774: cache_file=$ac_optarg ;;
775:
776: --config-cache | -C)
777: cache_file=config.cache ;;
778:
779: -datadir | --datadir | --datadi | --datad)
780: ac_prev=datadir ;;
781: -datadir=* | --datadir=* | --datadi=* | --datad=*)
782: datadir=$ac_optarg ;;
783:
784: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
785: | --dataroo | --dataro | --datar)
786: ac_prev=datarootdir ;;
787: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
788: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
789: datarootdir=$ac_optarg ;;
790:
791: -disable-* | --disable-*)
792: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
793: # Reject names that are not valid shell variable names.
794: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.4.2.1 ! misho 795: as_fn_error $? "invalid feature name: $ac_useropt"
1.1 misho 796: ac_useropt_orig=$ac_useropt
797: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
798: case $ac_user_opts in
799: *"
800: "enable_$ac_useropt"
801: "*) ;;
802: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
803: ac_unrecognized_sep=', ';;
804: esac
805: eval enable_$ac_useropt=no ;;
806:
807: -docdir | --docdir | --docdi | --doc | --do)
808: ac_prev=docdir ;;
809: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
810: docdir=$ac_optarg ;;
811:
812: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
813: ac_prev=dvidir ;;
814: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
815: dvidir=$ac_optarg ;;
816:
817: -enable-* | --enable-*)
818: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
819: # Reject names that are not valid shell variable names.
820: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.4.2.1 ! misho 821: as_fn_error $? "invalid feature name: $ac_useropt"
1.1 misho 822: ac_useropt_orig=$ac_useropt
823: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
824: case $ac_user_opts in
825: *"
826: "enable_$ac_useropt"
827: "*) ;;
828: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
829: ac_unrecognized_sep=', ';;
830: esac
831: eval enable_$ac_useropt=\$ac_optarg ;;
832:
833: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
834: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
835: | --exec | --exe | --ex)
836: ac_prev=exec_prefix ;;
837: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
838: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
839: | --exec=* | --exe=* | --ex=*)
840: exec_prefix=$ac_optarg ;;
841:
842: -gas | --gas | --ga | --g)
843: # Obsolete; use --with-gas.
844: with_gas=yes ;;
845:
846: -help | --help | --hel | --he | -h)
847: ac_init_help=long ;;
848: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
849: ac_init_help=recursive ;;
850: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
851: ac_init_help=short ;;
852:
853: -host | --host | --hos | --ho)
854: ac_prev=host_alias ;;
855: -host=* | --host=* | --hos=* | --ho=*)
856: host_alias=$ac_optarg ;;
857:
858: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
859: ac_prev=htmldir ;;
860: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
861: | --ht=*)
862: htmldir=$ac_optarg ;;
863:
864: -includedir | --includedir | --includedi | --included | --include \
865: | --includ | --inclu | --incl | --inc)
866: ac_prev=includedir ;;
867: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
868: | --includ=* | --inclu=* | --incl=* | --inc=*)
869: includedir=$ac_optarg ;;
870:
871: -infodir | --infodir | --infodi | --infod | --info | --inf)
872: ac_prev=infodir ;;
873: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
874: infodir=$ac_optarg ;;
875:
876: -libdir | --libdir | --libdi | --libd)
877: ac_prev=libdir ;;
878: -libdir=* | --libdir=* | --libdi=* | --libd=*)
879: libdir=$ac_optarg ;;
880:
881: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
882: | --libexe | --libex | --libe)
883: ac_prev=libexecdir ;;
884: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
885: | --libexe=* | --libex=* | --libe=*)
886: libexecdir=$ac_optarg ;;
887:
888: -localedir | --localedir | --localedi | --localed | --locale)
889: ac_prev=localedir ;;
890: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
891: localedir=$ac_optarg ;;
892:
893: -localstatedir | --localstatedir | --localstatedi | --localstated \
894: | --localstate | --localstat | --localsta | --localst | --locals)
895: ac_prev=localstatedir ;;
896: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
897: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
898: localstatedir=$ac_optarg ;;
899:
900: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
901: ac_prev=mandir ;;
902: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
903: mandir=$ac_optarg ;;
904:
905: -nfp | --nfp | --nf)
906: # Obsolete; use --without-fp.
907: with_fp=no ;;
908:
909: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
910: | --no-cr | --no-c | -n)
911: no_create=yes ;;
912:
913: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
914: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
915: no_recursion=yes ;;
916:
917: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
918: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
919: | --oldin | --oldi | --old | --ol | --o)
920: ac_prev=oldincludedir ;;
921: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
922: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
923: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
924: oldincludedir=$ac_optarg ;;
925:
926: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
927: ac_prev=prefix ;;
928: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
929: prefix=$ac_optarg ;;
930:
931: -program-prefix | --program-prefix | --program-prefi | --program-pref \
932: | --program-pre | --program-pr | --program-p)
933: ac_prev=program_prefix ;;
934: -program-prefix=* | --program-prefix=* | --program-prefi=* \
935: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
936: program_prefix=$ac_optarg ;;
937:
938: -program-suffix | --program-suffix | --program-suffi | --program-suff \
939: | --program-suf | --program-su | --program-s)
940: ac_prev=program_suffix ;;
941: -program-suffix=* | --program-suffix=* | --program-suffi=* \
942: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
943: program_suffix=$ac_optarg ;;
944:
945: -program-transform-name | --program-transform-name \
946: | --program-transform-nam | --program-transform-na \
947: | --program-transform-n | --program-transform- \
948: | --program-transform | --program-transfor \
949: | --program-transfo | --program-transf \
950: | --program-trans | --program-tran \
951: | --progr-tra | --program-tr | --program-t)
952: ac_prev=program_transform_name ;;
953: -program-transform-name=* | --program-transform-name=* \
954: | --program-transform-nam=* | --program-transform-na=* \
955: | --program-transform-n=* | --program-transform-=* \
956: | --program-transform=* | --program-transfor=* \
957: | --program-transfo=* | --program-transf=* \
958: | --program-trans=* | --program-tran=* \
959: | --progr-tra=* | --program-tr=* | --program-t=*)
960: program_transform_name=$ac_optarg ;;
961:
962: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
963: ac_prev=pdfdir ;;
964: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
965: pdfdir=$ac_optarg ;;
966:
967: -psdir | --psdir | --psdi | --psd | --ps)
968: ac_prev=psdir ;;
969: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
970: psdir=$ac_optarg ;;
971:
972: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
973: | -silent | --silent | --silen | --sile | --sil)
974: silent=yes ;;
975:
976: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
977: ac_prev=sbindir ;;
978: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
979: | --sbi=* | --sb=*)
980: sbindir=$ac_optarg ;;
981:
982: -sharedstatedir | --sharedstatedir | --sharedstatedi \
983: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
984: | --sharedst | --shareds | --shared | --share | --shar \
985: | --sha | --sh)
986: ac_prev=sharedstatedir ;;
987: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
988: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
989: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
990: | --sha=* | --sh=*)
991: sharedstatedir=$ac_optarg ;;
992:
993: -site | --site | --sit)
994: ac_prev=site ;;
995: -site=* | --site=* | --sit=*)
996: site=$ac_optarg ;;
997:
998: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
999: ac_prev=srcdir ;;
1000: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1001: srcdir=$ac_optarg ;;
1002:
1003: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1004: | --syscon | --sysco | --sysc | --sys | --sy)
1005: ac_prev=sysconfdir ;;
1006: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1007: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1008: sysconfdir=$ac_optarg ;;
1009:
1010: -target | --target | --targe | --targ | --tar | --ta | --t)
1011: ac_prev=target_alias ;;
1012: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1013: target_alias=$ac_optarg ;;
1014:
1015: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1016: verbose=yes ;;
1017:
1018: -version | --version | --versio | --versi | --vers | -V)
1019: ac_init_version=: ;;
1020:
1021: -with-* | --with-*)
1022: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1023: # Reject names that are not valid shell variable names.
1024: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.4.2.1 ! misho 1025: as_fn_error $? "invalid package name: $ac_useropt"
1.1 misho 1026: ac_useropt_orig=$ac_useropt
1027: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028: case $ac_user_opts in
1029: *"
1030: "with_$ac_useropt"
1031: "*) ;;
1032: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1033: ac_unrecognized_sep=', ';;
1034: esac
1035: eval with_$ac_useropt=\$ac_optarg ;;
1036:
1037: -without-* | --without-*)
1038: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1039: # Reject names that are not valid shell variable names.
1040: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.4.2.1 ! misho 1041: as_fn_error $? "invalid package name: $ac_useropt"
1.1 misho 1042: ac_useropt_orig=$ac_useropt
1043: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044: case $ac_user_opts in
1045: *"
1046: "with_$ac_useropt"
1047: "*) ;;
1048: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1049: ac_unrecognized_sep=', ';;
1050: esac
1051: eval with_$ac_useropt=no ;;
1052:
1053: --x)
1054: # Obsolete; use --with-x.
1055: with_x=yes ;;
1056:
1057: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1058: | --x-incl | --x-inc | --x-in | --x-i)
1059: ac_prev=x_includes ;;
1060: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1061: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1062: x_includes=$ac_optarg ;;
1063:
1064: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1065: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1066: ac_prev=x_libraries ;;
1067: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1068: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1069: x_libraries=$ac_optarg ;;
1070:
1.4.2.1 ! misho 1071: -*) as_fn_error $? "unrecognized option: \`$ac_option'
! 1072: Try \`$0 --help' for more information"
1.1 misho 1073: ;;
1074:
1075: *=*)
1076: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1077: # Reject names that are not valid shell variable names.
1078: case $ac_envvar in #(
1079: '' | [0-9]* | *[!_$as_cr_alnum]* )
1.4.2.1 ! misho 1080: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1.1 misho 1081: esac
1082: eval $ac_envvar=\$ac_optarg
1083: export $ac_envvar ;;
1084:
1085: *)
1086: # FIXME: should be removed in autoconf 3.0.
1087: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1088: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1089: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.4.2.1 ! misho 1090: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 misho 1091: ;;
1092:
1093: esac
1094: done
1095:
1096: if test -n "$ac_prev"; then
1097: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.4.2.1 ! misho 1098: as_fn_error $? "missing argument to $ac_option"
1.1 misho 1099: fi
1100:
1101: if test -n "$ac_unrecognized_opts"; then
1102: case $enable_option_checking in
1103: no) ;;
1.4.2.1 ! misho 1104: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1.1 misho 1105: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1106: esac
1107: fi
1108:
1109: # Check all directory arguments for consistency.
1110: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1111: datadir sysconfdir sharedstatedir localstatedir includedir \
1112: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1113: libdir localedir mandir
1114: do
1115: eval ac_val=\$$ac_var
1116: # Remove trailing slashes.
1117: case $ac_val in
1118: */ )
1119: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1120: eval $ac_var=\$ac_val;;
1121: esac
1122: # Be sure to have absolute directory names.
1123: case $ac_val in
1124: [\\/$]* | ?:[\\/]* ) continue;;
1125: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1126: esac
1.4.2.1 ! misho 1127: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 misho 1128: done
1129:
1130: # There might be people who depend on the old broken behavior: `$host'
1131: # used to hold the argument of --host etc.
1132: # FIXME: To remove some day.
1133: build=$build_alias
1134: host=$host_alias
1135: target=$target_alias
1136:
1137: # FIXME: To remove some day.
1138: if test "x$host_alias" != x; then
1139: if test "x$build_alias" = x; then
1140: cross_compiling=maybe
1.4.2.1 ! misho 1141: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
! 1142: If a cross compiler is detected then cross compile mode will be used" >&2
1.1 misho 1143: elif test "x$build_alias" != "x$host_alias"; then
1144: cross_compiling=yes
1145: fi
1146: fi
1147:
1148: ac_tool_prefix=
1149: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1150:
1151: test "$silent" = yes && exec 6>/dev/null
1152:
1153:
1154: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1155: ac_ls_di=`ls -di .` &&
1156: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.4.2.1 ! misho 1157: as_fn_error $? "working directory cannot be determined"
1.1 misho 1158: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.4.2.1 ! misho 1159: as_fn_error $? "pwd does not report name of working directory"
1.1 misho 1160:
1161:
1162: # Find the source files, if location was not specified.
1163: if test -z "$srcdir"; then
1164: ac_srcdir_defaulted=yes
1165: # Try the directory containing this script, then the parent directory.
1166: ac_confdir=`$as_dirname -- "$as_myself" ||
1167: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1168: X"$as_myself" : 'X\(//\)[^/]' \| \
1169: X"$as_myself" : 'X\(//\)$' \| \
1170: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1171: $as_echo X"$as_myself" |
1172: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1173: s//\1/
1174: q
1175: }
1176: /^X\(\/\/\)[^/].*/{
1177: s//\1/
1178: q
1179: }
1180: /^X\(\/\/\)$/{
1181: s//\1/
1182: q
1183: }
1184: /^X\(\/\).*/{
1185: s//\1/
1186: q
1187: }
1188: s/.*/./; q'`
1189: srcdir=$ac_confdir
1190: if test ! -r "$srcdir/$ac_unique_file"; then
1191: srcdir=..
1192: fi
1193: else
1194: ac_srcdir_defaulted=no
1195: fi
1196: if test ! -r "$srcdir/$ac_unique_file"; then
1197: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.4.2.1 ! misho 1198: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1.1 misho 1199: fi
1200: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1201: ac_abs_confdir=`(
1.4.2.1 ! misho 1202: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1.1 misho 1203: pwd)`
1204: # When building in place, set srcdir=.
1205: if test "$ac_abs_confdir" = "$ac_pwd"; then
1206: srcdir=.
1207: fi
1208: # Remove unnecessary trailing slashes from srcdir.
1209: # Double slashes in file names in object file debugging info
1210: # mess up M-x gdb in Emacs.
1211: case $srcdir in
1212: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1213: esac
1214: for ac_var in $ac_precious_vars; do
1215: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1216: eval ac_env_${ac_var}_value=\$${ac_var}
1217: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1218: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1219: done
1220:
1221: #
1222: # Report the --help message.
1223: #
1224: if test "$ac_init_help" = "long"; then
1225: # Omit some internal or obsolete options to make the list less imposing.
1226: # This message is too long to be a string in the A/UX 3.1 sh.
1227: cat <<_ACEOF
1.4.2.1 ! misho 1228: \`configure' configures libaitsched 1.4 to adapt to many kinds of systems.
1.1 misho 1229:
1230: Usage: $0 [OPTION]... [VAR=VALUE]...
1231:
1232: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1233: VAR=VALUE. See below for descriptions of some of the useful variables.
1234:
1235: Defaults for the options are specified in brackets.
1236:
1237: Configuration:
1238: -h, --help display this help and exit
1239: --help=short display options specific to this package
1240: --help=recursive display the short help of all the included packages
1241: -V, --version display version information and exit
1.4.2.1 ! misho 1242: -q, --quiet, --silent do not print \`checking ...' messages
1.1 misho 1243: --cache-file=FILE cache test results in FILE [disabled]
1244: -C, --config-cache alias for \`--cache-file=config.cache'
1245: -n, --no-create do not create output files
1246: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1247:
1248: Installation directories:
1249: --prefix=PREFIX install architecture-independent files in PREFIX
1250: [$ac_default_prefix]
1251: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1252: [PREFIX]
1253:
1254: By default, \`make install' will install all the files in
1255: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1256: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1257: for instance \`--prefix=\$HOME'.
1258:
1259: For better control, use the options below.
1260:
1261: Fine tuning of the installation directories:
1262: --bindir=DIR user executables [EPREFIX/bin]
1263: --sbindir=DIR system admin executables [EPREFIX/sbin]
1264: --libexecdir=DIR program executables [EPREFIX/libexec]
1265: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1266: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1267: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1268: --libdir=DIR object code libraries [EPREFIX/lib]
1269: --includedir=DIR C header files [PREFIX/include]
1270: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1271: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1272: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1273: --infodir=DIR info documentation [DATAROOTDIR/info]
1274: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1275: --mandir=DIR man documentation [DATAROOTDIR/man]
1276: --docdir=DIR documentation root [DATAROOTDIR/doc/libaitsched]
1277: --htmldir=DIR html documentation [DOCDIR]
1278: --dvidir=DIR dvi documentation [DOCDIR]
1279: --pdfdir=DIR pdf documentation [DOCDIR]
1280: --psdir=DIR ps documentation [DOCDIR]
1281: _ACEOF
1282:
1283: cat <<\_ACEOF
1284:
1285: System types:
1286: --build=BUILD configure for building on BUILD [guessed]
1287: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1288: --target=TARGET configure for building compilers for TARGET [HOST]
1289: _ACEOF
1290: fi
1291:
1292: if test -n "$ac_init_help"; then
1293: case $ac_init_help in
1.4.2.1 ! misho 1294: short | recursive ) echo "Configuration of libaitsched 1.4:";;
1.1 misho 1295: esac
1296: cat <<\_ACEOF
1297:
1298: Optional Features:
1299: --disable-option-checking ignore unrecognized --enable/--with options
1300: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1301: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1302: --enable-debug Build library with debug information and additional messages
1303:
1304: Some influential environment variables:
1305: CC C compiler command
1306: CFLAGS C compiler flags
1307: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1308: nonstandard directory <lib dir>
1309: LIBS libraries to pass to the linker, e.g. -l<library>
1.2 misho 1310: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1.1 misho 1311: you have headers in a nonstandard directory <include dir>
1312: CPP C preprocessor
1313:
1314: Use these variables to override the choices made by `configure' or to help
1315: it to find libraries and programs with nonstandard names/locations.
1316:
1317: Report bugs to <misho@openbsd-bg.org>.
1318: _ACEOF
1319: ac_status=$?
1320: fi
1321:
1322: if test "$ac_init_help" = "recursive"; then
1323: # If there are subdirs, report their specific --help.
1324: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1325: test -d "$ac_dir" ||
1326: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1327: continue
1328: ac_builddir=.
1329:
1330: case "$ac_dir" in
1331: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1332: *)
1333: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1334: # A ".." for each directory in $ac_dir_suffix.
1335: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1336: case $ac_top_builddir_sub in
1337: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1338: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1339: esac ;;
1340: esac
1341: ac_abs_top_builddir=$ac_pwd
1342: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1343: # for backward compatibility:
1344: ac_top_builddir=$ac_top_build_prefix
1345:
1346: case $srcdir in
1347: .) # We are building in place.
1348: ac_srcdir=.
1349: ac_top_srcdir=$ac_top_builddir_sub
1350: ac_abs_top_srcdir=$ac_pwd ;;
1351: [\\/]* | ?:[\\/]* ) # Absolute name.
1352: ac_srcdir=$srcdir$ac_dir_suffix;
1353: ac_top_srcdir=$srcdir
1354: ac_abs_top_srcdir=$srcdir ;;
1355: *) # Relative name.
1356: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1357: ac_top_srcdir=$ac_top_build_prefix$srcdir
1358: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1359: esac
1360: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1361:
1362: cd "$ac_dir" || { ac_status=$?; continue; }
1363: # Check for guested configure.
1364: if test -f "$ac_srcdir/configure.gnu"; then
1365: echo &&
1366: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1367: elif test -f "$ac_srcdir/configure"; then
1368: echo &&
1369: $SHELL "$ac_srcdir/configure" --help=recursive
1370: else
1371: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1372: fi || ac_status=$?
1373: cd "$ac_pwd" || { ac_status=$?; break; }
1374: done
1375: fi
1376:
1377: test -n "$ac_init_help" && exit $ac_status
1378: if $ac_init_version; then
1379: cat <<\_ACEOF
1.4.2.1 ! misho 1380: libaitsched configure 1.4
! 1381: generated by GNU Autoconf 2.68
1.1 misho 1382:
1.4.2.1 ! misho 1383: Copyright (C) 2010 Free Software Foundation, Inc.
1.1 misho 1384: This configure script is free software; the Free Software Foundation
1385: gives unlimited permission to copy, distribute and modify it.
1386: _ACEOF
1387: exit
1388: fi
1389:
1390: ## ------------------------ ##
1391: ## Autoconf initialization. ##
1392: ## ------------------------ ##
1393:
1394: # ac_fn_c_try_compile LINENO
1395: # --------------------------
1396: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1397: ac_fn_c_try_compile ()
1398: {
1399: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1400: rm -f conftest.$ac_objext
1401: if { { ac_try="$ac_compile"
1402: case "(($ac_try" in
1403: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1404: *) ac_try_echo=$ac_try;;
1405: esac
1406: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1407: $as_echo "$ac_try_echo"; } >&5
1408: (eval "$ac_compile") 2>conftest.err
1409: ac_status=$?
1410: if test -s conftest.err; then
1411: grep -v '^ *+' conftest.err >conftest.er1
1412: cat conftest.er1 >&5
1413: mv -f conftest.er1 conftest.err
1414: fi
1415: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1416: test $ac_status = 0; } && {
1417: test -z "$ac_c_werror_flag" ||
1418: test ! -s conftest.err
1419: } && test -s conftest.$ac_objext; then :
1420: ac_retval=0
1421: else
1422: $as_echo "$as_me: failed program was:" >&5
1423: sed 's/^/| /' conftest.$ac_ext >&5
1424:
1425: ac_retval=1
1426: fi
1.4.2.1 ! misho 1427: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.2 misho 1428: as_fn_set_status $ac_retval
1.1 misho 1429:
1430: } # ac_fn_c_try_compile
1431:
1.4 misho 1432: # ac_fn_c_try_link LINENO
1433: # -----------------------
1434: # Try to link conftest.$ac_ext, and return whether this succeeded.
1435: ac_fn_c_try_link ()
1436: {
1437: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1438: rm -f conftest.$ac_objext conftest$ac_exeext
1439: if { { ac_try="$ac_link"
1440: case "(($ac_try" in
1441: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1442: *) ac_try_echo=$ac_try;;
1443: esac
1444: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1445: $as_echo "$ac_try_echo"; } >&5
1446: (eval "$ac_link") 2>conftest.err
1447: ac_status=$?
1448: if test -s conftest.err; then
1449: grep -v '^ *+' conftest.err >conftest.er1
1450: cat conftest.er1 >&5
1451: mv -f conftest.er1 conftest.err
1452: fi
1453: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1454: test $ac_status = 0; } && {
1455: test -z "$ac_c_werror_flag" ||
1456: test ! -s conftest.err
1457: } && test -s conftest$ac_exeext && {
1458: test "$cross_compiling" = yes ||
1459: $as_test_x conftest$ac_exeext
1460: }; then :
1461: ac_retval=0
1462: else
1463: $as_echo "$as_me: failed program was:" >&5
1464: sed 's/^/| /' conftest.$ac_ext >&5
1465:
1466: ac_retval=1
1467: fi
1468: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1469: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1470: # interfere with the next link command; also delete a directory that is
1471: # left behind by Apple's compiler. We do this before executing the actions.
1472: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.4.2.1 ! misho 1473: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.4 misho 1474: as_fn_set_status $ac_retval
1475:
1476: } # ac_fn_c_try_link
1477:
1.1 misho 1478: # ac_fn_c_try_cpp LINENO
1479: # ----------------------
1480: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1481: ac_fn_c_try_cpp ()
1482: {
1483: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1484: if { { ac_try="$ac_cpp conftest.$ac_ext"
1485: case "(($ac_try" in
1486: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1487: *) ac_try_echo=$ac_try;;
1488: esac
1489: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1490: $as_echo "$ac_try_echo"; } >&5
1491: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1492: ac_status=$?
1493: if test -s conftest.err; then
1494: grep -v '^ *+' conftest.err >conftest.er1
1495: cat conftest.er1 >&5
1496: mv -f conftest.er1 conftest.err
1497: fi
1498: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.4.2.1 ! misho 1499: test $ac_status = 0; } > conftest.i && {
1.1 misho 1500: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1501: test ! -s conftest.err
1502: }; then :
1503: ac_retval=0
1504: else
1505: $as_echo "$as_me: failed program was:" >&5
1506: sed 's/^/| /' conftest.$ac_ext >&5
1507:
1508: ac_retval=1
1509: fi
1.4.2.1 ! misho 1510: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.2 misho 1511: as_fn_set_status $ac_retval
1.1 misho 1512:
1513: } # ac_fn_c_try_cpp
1514:
1515: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1516: # -------------------------------------------------------
1517: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1518: # the include files in INCLUDES and setting the cache variable VAR
1519: # accordingly.
1520: ac_fn_c_check_header_mongrel ()
1521: {
1522: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.4.2.1 ! misho 1523: if eval \${$3+:} false; then :
1.1 misho 1524: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1525: $as_echo_n "checking for $2... " >&6; }
1.4.2.1 ! misho 1526: if eval \${$3+:} false; then :
1.1 misho 1527: $as_echo_n "(cached) " >&6
1528: fi
1529: eval ac_res=\$$3
1530: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1531: $as_echo "$ac_res" >&6; }
1532: else
1533: # Is the header compilable?
1534: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1535: $as_echo_n "checking $2 usability... " >&6; }
1536: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1537: /* end confdefs.h. */
1538: $4
1539: #include <$2>
1540: _ACEOF
1541: if ac_fn_c_try_compile "$LINENO"; then :
1542: ac_header_compiler=yes
1543: else
1544: ac_header_compiler=no
1545: fi
1546: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1547: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1548: $as_echo "$ac_header_compiler" >&6; }
1549:
1550: # Is the header present?
1551: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1552: $as_echo_n "checking $2 presence... " >&6; }
1553: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1554: /* end confdefs.h. */
1555: #include <$2>
1556: _ACEOF
1557: if ac_fn_c_try_cpp "$LINENO"; then :
1558: ac_header_preproc=yes
1559: else
1560: ac_header_preproc=no
1561: fi
1.4.2.1 ! misho 1562: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 misho 1563: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1564: $as_echo "$ac_header_preproc" >&6; }
1565:
1566: # So? What about this header?
1567: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1568: yes:no: )
1569: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1570: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1571: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1572: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1573: ;;
1574: no:yes:* )
1575: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1576: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1577: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1578: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1579: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1580: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1581: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1582: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1583: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1584: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1.4.2.1 ! misho 1585: ( $as_echo "## ----------------------------------- ##
1.1 misho 1586: ## Report this to misho@openbsd-bg.org ##
1.4.2.1 ! misho 1587: ## ----------------------------------- ##"
1.1 misho 1588: ) | sed "s/^/$as_me: WARNING: /" >&2
1589: ;;
1590: esac
1591: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1592: $as_echo_n "checking for $2... " >&6; }
1.4.2.1 ! misho 1593: if eval \${$3+:} false; then :
1.1 misho 1594: $as_echo_n "(cached) " >&6
1595: else
1596: eval "$3=\$ac_header_compiler"
1597: fi
1598: eval ac_res=\$$3
1599: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1600: $as_echo "$ac_res" >&6; }
1601: fi
1.4.2.1 ! misho 1602: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1 misho 1603:
1604: } # ac_fn_c_check_header_mongrel
1605:
1606: # ac_fn_c_try_run LINENO
1607: # ----------------------
1608: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1609: # that executables *can* be run.
1610: ac_fn_c_try_run ()
1611: {
1612: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613: if { { ac_try="$ac_link"
1614: case "(($ac_try" in
1615: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616: *) ac_try_echo=$ac_try;;
1617: esac
1618: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619: $as_echo "$ac_try_echo"; } >&5
1620: (eval "$ac_link") 2>&5
1621: ac_status=$?
1622: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1624: { { case "(($ac_try" in
1625: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626: *) ac_try_echo=$ac_try;;
1627: esac
1628: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629: $as_echo "$ac_try_echo"; } >&5
1630: (eval "$ac_try") 2>&5
1631: ac_status=$?
1632: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633: test $ac_status = 0; }; }; then :
1634: ac_retval=0
1635: else
1636: $as_echo "$as_me: program exited with status $ac_status" >&5
1637: $as_echo "$as_me: failed program was:" >&5
1638: sed 's/^/| /' conftest.$ac_ext >&5
1639:
1640: ac_retval=$ac_status
1641: fi
1642: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.4.2.1 ! misho 1643: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.2 misho 1644: as_fn_set_status $ac_retval
1.1 misho 1645:
1646: } # ac_fn_c_try_run
1647:
1648: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1649: # -------------------------------------------------------
1650: # Tests whether HEADER exists and can be compiled using the include files in
1651: # INCLUDES, setting the cache variable VAR accordingly.
1652: ac_fn_c_check_header_compile ()
1653: {
1654: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656: $as_echo_n "checking for $2... " >&6; }
1.4.2.1 ! misho 1657: if eval \${$3+:} false; then :
1.1 misho 1658: $as_echo_n "(cached) " >&6
1659: else
1660: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661: /* end confdefs.h. */
1662: $4
1663: #include <$2>
1664: _ACEOF
1665: if ac_fn_c_try_compile "$LINENO"; then :
1666: eval "$3=yes"
1667: else
1668: eval "$3=no"
1669: fi
1670: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1671: fi
1672: eval ac_res=\$$3
1673: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674: $as_echo "$ac_res" >&6; }
1.4.2.1 ! misho 1675: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1 misho 1676:
1677: } # ac_fn_c_check_header_compile
1678:
1679: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1680: # -------------------------------------------
1681: # Tests whether TYPE exists after having included INCLUDES, setting cache
1682: # variable VAR accordingly.
1683: ac_fn_c_check_type ()
1684: {
1685: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687: $as_echo_n "checking for $2... " >&6; }
1.4.2.1 ! misho 1688: if eval \${$3+:} false; then :
1.1 misho 1689: $as_echo_n "(cached) " >&6
1690: else
1691: eval "$3=no"
1692: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693: /* end confdefs.h. */
1694: $4
1695: int
1696: main ()
1697: {
1698: if (sizeof ($2))
1699: return 0;
1700: ;
1701: return 0;
1702: }
1703: _ACEOF
1704: if ac_fn_c_try_compile "$LINENO"; then :
1705: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706: /* end confdefs.h. */
1707: $4
1708: int
1709: main ()
1710: {
1711: if (sizeof (($2)))
1712: return 0;
1713: ;
1714: return 0;
1715: }
1716: _ACEOF
1717: if ac_fn_c_try_compile "$LINENO"; then :
1718:
1719: else
1720: eval "$3=yes"
1721: fi
1722: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1723: fi
1724: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1725: fi
1726: eval ac_res=\$$3
1727: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728: $as_echo "$ac_res" >&6; }
1.4.2.1 ! misho 1729: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1 misho 1730:
1731: } # ac_fn_c_check_type
1732:
1733: # ac_fn_c_check_func LINENO FUNC VAR
1734: # ----------------------------------
1735: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1736: ac_fn_c_check_func ()
1737: {
1738: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740: $as_echo_n "checking for $2... " >&6; }
1.4.2.1 ! misho 1741: if eval \${$3+:} false; then :
1.1 misho 1742: $as_echo_n "(cached) " >&6
1743: else
1744: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745: /* end confdefs.h. */
1746: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1747: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1748: #define $2 innocuous_$2
1749:
1750: /* System header to define __stub macros and hopefully few prototypes,
1751: which can conflict with char $2 (); below.
1752: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1753: <limits.h> exists even on freestanding compilers. */
1754:
1755: #ifdef __STDC__
1756: # include <limits.h>
1757: #else
1758: # include <assert.h>
1759: #endif
1760:
1761: #undef $2
1762:
1763: /* Override any GCC internal prototype to avoid an error.
1764: Use char because int might match the return type of a GCC
1765: builtin and then its argument prototype would still apply. */
1766: #ifdef __cplusplus
1767: extern "C"
1768: #endif
1769: char $2 ();
1770: /* The GNU C library defines this for functions which it implements
1771: to always fail with ENOSYS. Some functions are actually named
1772: something starting with __ and the normal name is an alias. */
1773: #if defined __stub_$2 || defined __stub___$2
1774: choke me
1775: #endif
1776:
1777: int
1778: main ()
1779: {
1780: return $2 ();
1781: ;
1782: return 0;
1783: }
1784: _ACEOF
1785: if ac_fn_c_try_link "$LINENO"; then :
1786: eval "$3=yes"
1787: else
1788: eval "$3=no"
1789: fi
1790: rm -f core conftest.err conftest.$ac_objext \
1791: conftest$ac_exeext conftest.$ac_ext
1792: fi
1793: eval ac_res=\$$3
1794: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795: $as_echo "$ac_res" >&6; }
1.4.2.1 ! misho 1796: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1 misho 1797:
1798: } # ac_fn_c_check_func
1799: cat >config.log <<_ACEOF
1800: This file contains any messages produced by compilers while
1801: running configure, to aid debugging if configure makes a mistake.
1802:
1.4.2.1 ! misho 1803: It was created by libaitsched $as_me 1.4, which was
! 1804: generated by GNU Autoconf 2.68. Invocation command line was
1.1 misho 1805:
1806: $ $0 $@
1807:
1808: _ACEOF
1809: exec 5>>config.log
1810: {
1811: cat <<_ASUNAME
1812: ## --------- ##
1813: ## Platform. ##
1814: ## --------- ##
1815:
1816: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1817: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1818: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1819: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1820: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1821:
1822: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1823: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1824:
1825: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1826: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1827: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1828: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1829: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1830: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1831: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1832:
1833: _ASUNAME
1834:
1835: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1836: for as_dir in $PATH
1837: do
1838: IFS=$as_save_IFS
1839: test -z "$as_dir" && as_dir=.
1840: $as_echo "PATH: $as_dir"
1841: done
1842: IFS=$as_save_IFS
1843:
1844: } >&5
1845:
1846: cat >&5 <<_ACEOF
1847:
1848:
1849: ## ----------- ##
1850: ## Core tests. ##
1851: ## ----------- ##
1852:
1853: _ACEOF
1854:
1855:
1856: # Keep a trace of the command line.
1857: # Strip out --no-create and --no-recursion so they do not pile up.
1858: # Strip out --silent because we don't want to record it for future runs.
1859: # Also quote any args containing shell meta-characters.
1860: # Make two passes to allow for proper duplicate-argument suppression.
1861: ac_configure_args=
1862: ac_configure_args0=
1863: ac_configure_args1=
1864: ac_must_keep_next=false
1865: for ac_pass in 1 2
1866: do
1867: for ac_arg
1868: do
1869: case $ac_arg in
1870: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1871: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1872: | -silent | --silent | --silen | --sile | --sil)
1873: continue ;;
1874: *\'*)
1875: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1876: esac
1877: case $ac_pass in
1878: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1879: 2)
1880: as_fn_append ac_configure_args1 " '$ac_arg'"
1881: if test $ac_must_keep_next = true; then
1882: ac_must_keep_next=false # Got value, back to normal.
1883: else
1884: case $ac_arg in
1885: *=* | --config-cache | -C | -disable-* | --disable-* \
1886: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1887: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1888: | -with-* | --with-* | -without-* | --without-* | --x)
1889: case "$ac_configure_args0 " in
1890: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1891: esac
1892: ;;
1893: -* ) ac_must_keep_next=true ;;
1894: esac
1895: fi
1896: as_fn_append ac_configure_args " '$ac_arg'"
1897: ;;
1898: esac
1899: done
1900: done
1901: { ac_configure_args0=; unset ac_configure_args0;}
1902: { ac_configure_args1=; unset ac_configure_args1;}
1903:
1904: # When interrupted or exit'd, cleanup temporary files, and complete
1905: # config.log. We remove comments because anyway the quotes in there
1906: # would cause problems or look ugly.
1907: # WARNING: Use '\'' to represent an apostrophe within the trap.
1908: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1909: trap 'exit_status=$?
1910: # Save into config.log some information that might help in debugging.
1911: {
1912: echo
1913:
1.4.2.1 ! misho 1914: $as_echo "## ---------------- ##
1.1 misho 1915: ## Cache variables. ##
1.4.2.1 ! misho 1916: ## ---------------- ##"
1.1 misho 1917: echo
1918: # The following way of writing the cache mishandles newlines in values,
1919: (
1920: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1921: eval ac_val=\$$ac_var
1922: case $ac_val in #(
1923: *${as_nl}*)
1924: case $ac_var in #(
1925: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1926: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1927: esac
1928: case $ac_var in #(
1929: _ | IFS | as_nl) ;; #(
1930: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1931: *) { eval $ac_var=; unset $ac_var;} ;;
1932: esac ;;
1933: esac
1934: done
1935: (set) 2>&1 |
1936: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1937: *${as_nl}ac_space=\ *)
1938: sed -n \
1939: "s/'\''/'\''\\\\'\'''\''/g;
1940: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1941: ;; #(
1942: *)
1943: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1944: ;;
1945: esac |
1946: sort
1947: )
1948: echo
1949:
1.4.2.1 ! misho 1950: $as_echo "## ----------------- ##
1.1 misho 1951: ## Output variables. ##
1.4.2.1 ! misho 1952: ## ----------------- ##"
1.1 misho 1953: echo
1954: for ac_var in $ac_subst_vars
1955: do
1956: eval ac_val=\$$ac_var
1957: case $ac_val in
1958: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1959: esac
1960: $as_echo "$ac_var='\''$ac_val'\''"
1961: done | sort
1962: echo
1963:
1964: if test -n "$ac_subst_files"; then
1.4.2.1 ! misho 1965: $as_echo "## ------------------- ##
1.1 misho 1966: ## File substitutions. ##
1.4.2.1 ! misho 1967: ## ------------------- ##"
1.1 misho 1968: echo
1969: for ac_var in $ac_subst_files
1970: do
1971: eval ac_val=\$$ac_var
1972: case $ac_val in
1973: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1974: esac
1975: $as_echo "$ac_var='\''$ac_val'\''"
1976: done | sort
1977: echo
1978: fi
1979:
1980: if test -s confdefs.h; then
1.4.2.1 ! misho 1981: $as_echo "## ----------- ##
1.1 misho 1982: ## confdefs.h. ##
1.4.2.1 ! misho 1983: ## ----------- ##"
1.1 misho 1984: echo
1985: cat confdefs.h
1986: echo
1987: fi
1988: test "$ac_signal" != 0 &&
1989: $as_echo "$as_me: caught signal $ac_signal"
1990: $as_echo "$as_me: exit $exit_status"
1991: } >&5
1992: rm -f core *.core core.conftest.* &&
1993: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1994: exit $exit_status
1995: ' 0
1996: for ac_signal in 1 2 13 15; do
1997: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1998: done
1999: ac_signal=0
2000:
2001: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2002: rm -f -r conftest* confdefs.h
2003:
2004: $as_echo "/* confdefs.h */" > confdefs.h
2005:
2006: # Predefined preprocessor variables.
2007:
2008: cat >>confdefs.h <<_ACEOF
2009: #define PACKAGE_NAME "$PACKAGE_NAME"
2010: _ACEOF
2011:
2012: cat >>confdefs.h <<_ACEOF
2013: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2014: _ACEOF
2015:
2016: cat >>confdefs.h <<_ACEOF
2017: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2018: _ACEOF
2019:
2020: cat >>confdefs.h <<_ACEOF
2021: #define PACKAGE_STRING "$PACKAGE_STRING"
2022: _ACEOF
2023:
2024: cat >>confdefs.h <<_ACEOF
2025: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2026: _ACEOF
2027:
2028: cat >>confdefs.h <<_ACEOF
2029: #define PACKAGE_URL "$PACKAGE_URL"
2030: _ACEOF
2031:
2032:
2033: # Let the site file select an alternate cache file if it wants to.
2034: # Prefer an explicitly selected file to automatically selected ones.
2035: ac_site_file1=NONE
2036: ac_site_file2=NONE
2037: if test -n "$CONFIG_SITE"; then
1.4.2.1 ! misho 2038: # We do not want a PATH search for config.site.
! 2039: case $CONFIG_SITE in #((
! 2040: -*) ac_site_file1=./$CONFIG_SITE;;
! 2041: */*) ac_site_file1=$CONFIG_SITE;;
! 2042: *) ac_site_file1=./$CONFIG_SITE;;
! 2043: esac
1.1 misho 2044: elif test "x$prefix" != xNONE; then
2045: ac_site_file1=$prefix/share/config.site
2046: ac_site_file2=$prefix/etc/config.site
2047: else
2048: ac_site_file1=$ac_default_prefix/share/config.site
2049: ac_site_file2=$ac_default_prefix/etc/config.site
2050: fi
2051: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2052: do
2053: test "x$ac_site_file" = xNONE && continue
1.2 misho 2054: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1.1 misho 2055: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2056: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2057: sed 's/^/| /' "$ac_site_file" >&5
1.4.2.1 ! misho 2058: . "$ac_site_file" \
! 2059: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 2060: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 2061: as_fn_error $? "failed to load site script $ac_site_file
! 2062: See \`config.log' for more details" "$LINENO" 5; }
1.1 misho 2063: fi
2064: done
2065:
2066: if test -r "$cache_file"; then
1.2 misho 2067: # Some versions of bash will fail to source /dev/null (special files
2068: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2069: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1.1 misho 2070: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2071: $as_echo "$as_me: loading cache $cache_file" >&6;}
2072: case $cache_file in
2073: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2074: *) . "./$cache_file";;
2075: esac
2076: fi
2077: else
2078: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2079: $as_echo "$as_me: creating cache $cache_file" >&6;}
2080: >$cache_file
2081: fi
2082:
2083: # Check that the precious variables saved in the cache have kept the same
2084: # value.
2085: ac_cache_corrupted=false
2086: for ac_var in $ac_precious_vars; do
2087: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2088: eval ac_new_set=\$ac_env_${ac_var}_set
2089: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2090: eval ac_new_val=\$ac_env_${ac_var}_value
2091: case $ac_old_set,$ac_new_set in
2092: set,)
2093: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2094: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2095: ac_cache_corrupted=: ;;
2096: ,set)
2097: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2098: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2099: ac_cache_corrupted=: ;;
2100: ,);;
2101: *)
2102: if test "x$ac_old_val" != "x$ac_new_val"; then
2103: # differences in whitespace do not lead to failure.
2104: ac_old_val_w=`echo x $ac_old_val`
2105: ac_new_val_w=`echo x $ac_new_val`
2106: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2107: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2108: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2109: ac_cache_corrupted=:
2110: else
2111: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2112: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2113: eval $ac_var=\$ac_old_val
2114: fi
2115: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2116: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2117: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2118: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2119: fi;;
2120: esac
2121: # Pass precious variables to config.status.
2122: if test "$ac_new_set" = set; then
2123: case $ac_new_val in
2124: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2125: *) ac_arg=$ac_var=$ac_new_val ;;
2126: esac
2127: case " $ac_configure_args " in
2128: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2129: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2130: esac
2131: fi
2132: done
2133: if $ac_cache_corrupted; then
2134: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2135: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2136: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2137: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.4.2.1 ! misho 2138: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1.1 misho 2139: fi
2140: ## -------------------- ##
2141: ## Main body of script. ##
2142: ## -------------------- ##
2143:
2144: ac_ext=c
2145: ac_cpp='$CPP $CPPFLAGS'
2146: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2147: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2148: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2149:
2150:
2151:
2152: ac_config_headers="$ac_config_headers inc/config.h"
2153:
2154:
2155: # Checks for programs.
2156: ac_ext=c
2157: ac_cpp='$CPP $CPPFLAGS'
2158: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2159: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2160: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2161: if test -n "$ac_tool_prefix"; then
2162: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2163: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2164: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2165: $as_echo_n "checking for $ac_word... " >&6; }
1.4.2.1 ! misho 2166: if ${ac_cv_prog_CC+:} false; then :
1.1 misho 2167: $as_echo_n "(cached) " >&6
2168: else
2169: if test -n "$CC"; then
2170: ac_cv_prog_CC="$CC" # Let the user override the test.
2171: else
2172: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173: for as_dir in $PATH
2174: do
2175: IFS=$as_save_IFS
2176: test -z "$as_dir" && as_dir=.
2177: for ac_exec_ext in '' $ac_executable_extensions; do
2178: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2179: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2180: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2181: break 2
2182: fi
2183: done
2184: done
2185: IFS=$as_save_IFS
2186:
2187: fi
2188: fi
2189: CC=$ac_cv_prog_CC
2190: if test -n "$CC"; then
2191: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2192: $as_echo "$CC" >&6; }
2193: else
2194: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2195: $as_echo "no" >&6; }
2196: fi
2197:
2198:
2199: fi
2200: if test -z "$ac_cv_prog_CC"; then
2201: ac_ct_CC=$CC
2202: # Extract the first word of "gcc", so it can be a program name with args.
2203: set dummy gcc; ac_word=$2
2204: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2205: $as_echo_n "checking for $ac_word... " >&6; }
1.4.2.1 ! misho 2206: if ${ac_cv_prog_ac_ct_CC+:} false; then :
1.1 misho 2207: $as_echo_n "(cached) " >&6
2208: else
2209: if test -n "$ac_ct_CC"; then
2210: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2211: else
2212: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213: for as_dir in $PATH
2214: do
2215: IFS=$as_save_IFS
2216: test -z "$as_dir" && as_dir=.
2217: for ac_exec_ext in '' $ac_executable_extensions; do
2218: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2219: ac_cv_prog_ac_ct_CC="gcc"
2220: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2221: break 2
2222: fi
2223: done
2224: done
2225: IFS=$as_save_IFS
2226:
2227: fi
2228: fi
2229: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2230: if test -n "$ac_ct_CC"; then
2231: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2232: $as_echo "$ac_ct_CC" >&6; }
2233: else
2234: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2235: $as_echo "no" >&6; }
2236: fi
2237:
2238: if test "x$ac_ct_CC" = x; then
2239: CC=""
2240: else
2241: case $cross_compiling:$ac_tool_warned in
2242: yes:)
2243: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2244: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2245: ac_tool_warned=yes ;;
2246: esac
2247: CC=$ac_ct_CC
2248: fi
2249: else
2250: CC="$ac_cv_prog_CC"
2251: fi
2252:
2253: if test -z "$CC"; then
2254: if test -n "$ac_tool_prefix"; then
2255: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2256: set dummy ${ac_tool_prefix}cc; ac_word=$2
2257: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2258: $as_echo_n "checking for $ac_word... " >&6; }
1.4.2.1 ! misho 2259: if ${ac_cv_prog_CC+:} false; then :
1.1 misho 2260: $as_echo_n "(cached) " >&6
2261: else
2262: if test -n "$CC"; then
2263: ac_cv_prog_CC="$CC" # Let the user override the test.
2264: else
2265: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266: for as_dir in $PATH
2267: do
2268: IFS=$as_save_IFS
2269: test -z "$as_dir" && as_dir=.
2270: for ac_exec_ext in '' $ac_executable_extensions; do
2271: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2272: ac_cv_prog_CC="${ac_tool_prefix}cc"
2273: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2274: break 2
2275: fi
2276: done
2277: done
2278: IFS=$as_save_IFS
2279:
2280: fi
2281: fi
2282: CC=$ac_cv_prog_CC
2283: if test -n "$CC"; then
2284: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2285: $as_echo "$CC" >&6; }
2286: else
2287: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2288: $as_echo "no" >&6; }
2289: fi
2290:
2291:
2292: fi
2293: fi
2294: if test -z "$CC"; then
2295: # Extract the first word of "cc", so it can be a program name with args.
2296: set dummy cc; ac_word=$2
2297: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2298: $as_echo_n "checking for $ac_word... " >&6; }
1.4.2.1 ! misho 2299: if ${ac_cv_prog_CC+:} false; then :
1.1 misho 2300: $as_echo_n "(cached) " >&6
2301: else
2302: if test -n "$CC"; then
2303: ac_cv_prog_CC="$CC" # Let the user override the test.
2304: else
2305: ac_prog_rejected=no
2306: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307: for as_dir in $PATH
2308: do
2309: IFS=$as_save_IFS
2310: test -z "$as_dir" && as_dir=.
2311: for ac_exec_ext in '' $ac_executable_extensions; do
2312: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2313: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2314: ac_prog_rejected=yes
2315: continue
2316: fi
2317: ac_cv_prog_CC="cc"
2318: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2319: break 2
2320: fi
2321: done
2322: done
2323: IFS=$as_save_IFS
2324:
2325: if test $ac_prog_rejected = yes; then
2326: # We found a bogon in the path, so make sure we never use it.
2327: set dummy $ac_cv_prog_CC
2328: shift
2329: if test $# != 0; then
2330: # We chose a different compiler from the bogus one.
2331: # However, it has the same basename, so the bogon will be chosen
2332: # first if we set CC to just the basename; use the full file name.
2333: shift
2334: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2335: fi
2336: fi
2337: fi
2338: fi
2339: CC=$ac_cv_prog_CC
2340: if test -n "$CC"; then
2341: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2342: $as_echo "$CC" >&6; }
2343: else
2344: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2345: $as_echo "no" >&6; }
2346: fi
2347:
2348:
2349: fi
2350: if test -z "$CC"; then
2351: if test -n "$ac_tool_prefix"; then
2352: for ac_prog in cl.exe
2353: do
2354: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2355: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2356: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2357: $as_echo_n "checking for $ac_word... " >&6; }
1.4.2.1 ! misho 2358: if ${ac_cv_prog_CC+:} false; then :
1.1 misho 2359: $as_echo_n "(cached) " >&6
2360: else
2361: if test -n "$CC"; then
2362: ac_cv_prog_CC="$CC" # Let the user override the test.
2363: else
2364: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365: for as_dir in $PATH
2366: do
2367: IFS=$as_save_IFS
2368: test -z "$as_dir" && as_dir=.
2369: for ac_exec_ext in '' $ac_executable_extensions; do
2370: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2371: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2372: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2373: break 2
2374: fi
2375: done
2376: done
2377: IFS=$as_save_IFS
2378:
2379: fi
2380: fi
2381: CC=$ac_cv_prog_CC
2382: if test -n "$CC"; then
2383: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2384: $as_echo "$CC" >&6; }
2385: else
2386: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2387: $as_echo "no" >&6; }
2388: fi
2389:
2390:
2391: test -n "$CC" && break
2392: done
2393: fi
2394: if test -z "$CC"; then
2395: ac_ct_CC=$CC
2396: for ac_prog in cl.exe
2397: do
2398: # Extract the first word of "$ac_prog", so it can be a program name with args.
2399: set dummy $ac_prog; ac_word=$2
2400: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2401: $as_echo_n "checking for $ac_word... " >&6; }
1.4.2.1 ! misho 2402: if ${ac_cv_prog_ac_ct_CC+:} false; then :
1.1 misho 2403: $as_echo_n "(cached) " >&6
2404: else
2405: if test -n "$ac_ct_CC"; then
2406: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2407: else
2408: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409: for as_dir in $PATH
2410: do
2411: IFS=$as_save_IFS
2412: test -z "$as_dir" && as_dir=.
2413: for ac_exec_ext in '' $ac_executable_extensions; do
2414: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2415: ac_cv_prog_ac_ct_CC="$ac_prog"
2416: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2417: break 2
2418: fi
2419: done
2420: done
2421: IFS=$as_save_IFS
2422:
2423: fi
2424: fi
2425: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2426: if test -n "$ac_ct_CC"; then
2427: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2428: $as_echo "$ac_ct_CC" >&6; }
2429: else
2430: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2431: $as_echo "no" >&6; }
2432: fi
2433:
2434:
2435: test -n "$ac_ct_CC" && break
2436: done
2437:
2438: if test "x$ac_ct_CC" = x; then
2439: CC=""
2440: else
2441: case $cross_compiling:$ac_tool_warned in
2442: yes:)
2443: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2444: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2445: ac_tool_warned=yes ;;
2446: esac
2447: CC=$ac_ct_CC
2448: fi
2449: fi
2450:
2451: fi
2452:
2453:
2454: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2455: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.4.2.1 ! misho 2456: as_fn_error $? "no acceptable C compiler found in \$PATH
! 2457: See \`config.log' for more details" "$LINENO" 5; }
1.1 misho 2458:
2459: # Provide some information about the compiler.
2460: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2461: set X $ac_compile
2462: ac_compiler=$2
2463: for ac_option in --version -v -V -qversion; do
2464: { { ac_try="$ac_compiler $ac_option >&5"
2465: case "(($ac_try" in
2466: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467: *) ac_try_echo=$ac_try;;
2468: esac
2469: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2470: $as_echo "$ac_try_echo"; } >&5
2471: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2472: ac_status=$?
2473: if test -s conftest.err; then
2474: sed '10a\
2475: ... rest of stderr output deleted ...
2476: 10q' conftest.err >conftest.er1
2477: cat conftest.er1 >&5
2478: fi
1.2 misho 2479: rm -f conftest.er1 conftest.err
1.1 misho 2480: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2481: test $ac_status = 0; }
2482: done
2483:
2484: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2485: /* end confdefs.h. */
1.2 misho 2486:
1.1 misho 2487: int
2488: main ()
2489: {
2490:
2491: ;
2492: return 0;
2493: }
2494: _ACEOF
2495: ac_clean_files_save=$ac_clean_files
1.2 misho 2496: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.1 misho 2497: # Try to create an executable without -o first, disregard a.out.
2498: # It will help us diagnose broken compilers, and finding out an intuition
2499: # of exeext.
1.2 misho 2500: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2501: $as_echo_n "checking whether the C compiler works... " >&6; }
1.1 misho 2502: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2503:
2504: # The possible output files:
2505: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2506:
2507: ac_rmfiles=
2508: for ac_file in $ac_files
2509: do
2510: case $ac_file in
2511: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2512: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2513: esac
2514: done
2515: rm -f $ac_rmfiles
2516:
2517: if { { ac_try="$ac_link_default"
2518: case "(($ac_try" in
2519: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520: *) ac_try_echo=$ac_try;;
2521: esac
2522: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2523: $as_echo "$ac_try_echo"; } >&5
2524: (eval "$ac_link_default") 2>&5
2525: ac_status=$?
2526: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2527: test $ac_status = 0; }; then :
2528: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2529: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2530: # in a Makefile. We should not override ac_cv_exeext if it was cached,
2531: # so that the user can short-circuit this test for compilers unknown to
2532: # Autoconf.
2533: for ac_file in $ac_files ''
2534: do
2535: test -f "$ac_file" || continue
2536: case $ac_file in
2537: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2538: ;;
2539: [ab].out )
2540: # We found the default executable, but exeext='' is most
2541: # certainly right.
2542: break;;
2543: *.* )
2544: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2545: then :; else
2546: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2547: fi
2548: # We set ac_cv_exeext here because the later test for it is not
2549: # safe: cross compilers may not add the suffix if given an `-o'
2550: # argument, so we may need to know it at that point already.
2551: # Even if this section looks crufty: it has the advantage of
2552: # actually working.
2553: break;;
2554: * )
2555: break;;
2556: esac
2557: done
2558: test "$ac_cv_exeext" = no && ac_cv_exeext=
2559:
2560: else
2561: ac_file=''
2562: fi
2563: if test -z "$ac_file"; then :
1.2 misho 2564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2565: $as_echo "no" >&6; }
2566: $as_echo "$as_me: failed program was:" >&5
1.1 misho 2567: sed 's/^/| /' conftest.$ac_ext >&5
2568:
2569: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2570: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.4.2.1 ! misho 2571: as_fn_error 77 "C compiler cannot create executables
! 2572: See \`config.log' for more details" "$LINENO" 5; }
1.2 misho 2573: else
2574: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2575: $as_echo "yes" >&6; }
1.1 misho 2576: fi
1.2 misho 2577: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2578: $as_echo_n "checking for C compiler default output file name... " >&6; }
2579: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2580: $as_echo "$ac_file" >&6; }
1.1 misho 2581: ac_exeext=$ac_cv_exeext
2582:
1.2 misho 2583: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.1 misho 2584: ac_clean_files=$ac_clean_files_save
2585: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2586: $as_echo_n "checking for suffix of executables... " >&6; }
2587: if { { ac_try="$ac_link"
2588: case "(($ac_try" in
2589: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590: *) ac_try_echo=$ac_try;;
2591: esac
2592: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2593: $as_echo "$ac_try_echo"; } >&5
2594: (eval "$ac_link") 2>&5
2595: ac_status=$?
2596: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2597: test $ac_status = 0; }; then :
2598: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2599: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2600: # work properly (i.e., refer to `conftest.exe'), while it won't with
2601: # `rm'.
2602: for ac_file in conftest.exe conftest conftest.*; do
2603: test -f "$ac_file" || continue
2604: case $ac_file in
2605: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2606: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2607: break;;
2608: * ) break;;
2609: esac
2610: done
2611: else
2612: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2613: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.4.2.1 ! misho 2614: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
! 2615: See \`config.log' for more details" "$LINENO" 5; }
1.1 misho 2616: fi
1.2 misho 2617: rm -f conftest conftest$ac_cv_exeext
1.1 misho 2618: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2619: $as_echo "$ac_cv_exeext" >&6; }
2620:
2621: rm -f conftest.$ac_ext
2622: EXEEXT=$ac_cv_exeext
2623: ac_exeext=$EXEEXT
1.2 misho 2624: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2625: /* end confdefs.h. */
2626: #include <stdio.h>
2627: int
2628: main ()
2629: {
2630: FILE *f = fopen ("conftest.out", "w");
2631: return ferror (f) || fclose (f) != 0;
2632:
2633: ;
2634: return 0;
2635: }
2636: _ACEOF
2637: ac_clean_files="$ac_clean_files conftest.out"
2638: # Check that the compiler produces executables we can run. If not, either
2639: # the compiler is broken, or we cross compile.
2640: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2641: $as_echo_n "checking whether we are cross compiling... " >&6; }
2642: if test "$cross_compiling" != yes; then
2643: { { ac_try="$ac_link"
2644: case "(($ac_try" in
2645: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646: *) ac_try_echo=$ac_try;;
2647: esac
2648: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2649: $as_echo "$ac_try_echo"; } >&5
2650: (eval "$ac_link") 2>&5
2651: ac_status=$?
2652: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2653: test $ac_status = 0; }
2654: if { ac_try='./conftest$ac_cv_exeext'
2655: { { case "(($ac_try" in
2656: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2657: *) ac_try_echo=$ac_try;;
2658: esac
2659: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2660: $as_echo "$ac_try_echo"; } >&5
2661: (eval "$ac_try") 2>&5
2662: ac_status=$?
2663: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2664: test $ac_status = 0; }; }; then
2665: cross_compiling=no
2666: else
2667: if test "$cross_compiling" = maybe; then
2668: cross_compiling=yes
2669: else
2670: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2671: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.4.2.1 ! misho 2672: as_fn_error $? "cannot run C compiled programs.
1.2 misho 2673: If you meant to cross compile, use \`--host'.
1.4.2.1 ! misho 2674: See \`config.log' for more details" "$LINENO" 5; }
1.2 misho 2675: fi
2676: fi
2677: fi
2678: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2679: $as_echo "$cross_compiling" >&6; }
2680:
2681: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2682: ac_clean_files=$ac_clean_files_save
1.1 misho 2683: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2684: $as_echo_n "checking for suffix of object files... " >&6; }
1.4.2.1 ! misho 2685: if ${ac_cv_objext+:} false; then :
1.1 misho 2686: $as_echo_n "(cached) " >&6
2687: else
2688: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2689: /* end confdefs.h. */
2690:
2691: int
2692: main ()
2693: {
2694:
2695: ;
2696: return 0;
2697: }
2698: _ACEOF
2699: rm -f conftest.o conftest.obj
2700: if { { ac_try="$ac_compile"
2701: case "(($ac_try" in
2702: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703: *) ac_try_echo=$ac_try;;
2704: esac
2705: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2706: $as_echo "$ac_try_echo"; } >&5
2707: (eval "$ac_compile") 2>&5
2708: ac_status=$?
2709: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2710: test $ac_status = 0; }; then :
2711: for ac_file in conftest.o conftest.obj conftest.*; do
2712: test -f "$ac_file" || continue;
2713: case $ac_file in
2714: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2715: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2716: break;;
2717: esac
2718: done
2719: else
2720: $as_echo "$as_me: failed program was:" >&5
2721: sed 's/^/| /' conftest.$ac_ext >&5
2722:
2723: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2724: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.4.2.1 ! misho 2725: as_fn_error $? "cannot compute suffix of object files: cannot compile
! 2726: See \`config.log' for more details" "$LINENO" 5; }
1.1 misho 2727: fi
2728: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2729: fi
2730: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2731: $as_echo "$ac_cv_objext" >&6; }
2732: OBJEXT=$ac_cv_objext
2733: ac_objext=$OBJEXT
2734: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2735: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
1.4.2.1 ! misho 2736: if ${ac_cv_c_compiler_gnu+:} false; then :
1.1 misho 2737: $as_echo_n "(cached) " >&6
2738: else
2739: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2740: /* end confdefs.h. */
2741:
2742: int
2743: main ()
2744: {
2745: #ifndef __GNUC__
2746: choke me
2747: #endif
2748:
2749: ;
2750: return 0;
2751: }
2752: _ACEOF
2753: if ac_fn_c_try_compile "$LINENO"; then :
2754: ac_compiler_gnu=yes
2755: else
2756: ac_compiler_gnu=no
2757: fi
2758: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2759: ac_cv_c_compiler_gnu=$ac_compiler_gnu
2760:
2761: fi
2762: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2763: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2764: if test $ac_compiler_gnu = yes; then
2765: GCC=yes
2766: else
2767: GCC=
2768: fi
2769: ac_test_CFLAGS=${CFLAGS+set}
2770: ac_save_CFLAGS=$CFLAGS
2771: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2772: $as_echo_n "checking whether $CC accepts -g... " >&6; }
1.4.2.1 ! misho 2773: if ${ac_cv_prog_cc_g+:} false; then :
1.1 misho 2774: $as_echo_n "(cached) " >&6
2775: else
2776: ac_save_c_werror_flag=$ac_c_werror_flag
2777: ac_c_werror_flag=yes
2778: ac_cv_prog_cc_g=no
2779: CFLAGS="-g"
2780: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2781: /* end confdefs.h. */
2782:
2783: int
2784: main ()
2785: {
2786:
2787: ;
2788: return 0;
2789: }
2790: _ACEOF
2791: if ac_fn_c_try_compile "$LINENO"; then :
2792: ac_cv_prog_cc_g=yes
2793: else
2794: CFLAGS=""
2795: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2796: /* end confdefs.h. */
2797:
2798: int
2799: main ()
2800: {
2801:
2802: ;
2803: return 0;
2804: }
2805: _ACEOF
2806: if ac_fn_c_try_compile "$LINENO"; then :
2807:
2808: else
2809: ac_c_werror_flag=$ac_save_c_werror_flag
2810: CFLAGS="-g"
2811: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2812: /* end confdefs.h. */
2813:
2814: int
2815: main ()
2816: {
2817:
2818: ;
2819: return 0;
2820: }
2821: _ACEOF
2822: if ac_fn_c_try_compile "$LINENO"; then :
2823: ac_cv_prog_cc_g=yes
2824: fi
2825: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2826: fi
2827: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2828: fi
2829: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2830: ac_c_werror_flag=$ac_save_c_werror_flag
2831: fi
2832: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2833: $as_echo "$ac_cv_prog_cc_g" >&6; }
2834: if test "$ac_test_CFLAGS" = set; then
2835: CFLAGS=$ac_save_CFLAGS
2836: elif test $ac_cv_prog_cc_g = yes; then
2837: if test "$GCC" = yes; then
2838: CFLAGS="-g -O2"
2839: else
2840: CFLAGS="-g"
2841: fi
2842: else
2843: if test "$GCC" = yes; then
2844: CFLAGS="-O2"
2845: else
2846: CFLAGS=
2847: fi
2848: fi
2849: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2850: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
1.4.2.1 ! misho 2851: if ${ac_cv_prog_cc_c89+:} false; then :
1.1 misho 2852: $as_echo_n "(cached) " >&6
2853: else
2854: ac_cv_prog_cc_c89=no
2855: ac_save_CC=$CC
2856: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2857: /* end confdefs.h. */
2858: #include <stdarg.h>
2859: #include <stdio.h>
2860: #include <sys/types.h>
2861: #include <sys/stat.h>
2862: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2863: struct buf { int x; };
2864: FILE * (*rcsopen) (struct buf *, struct stat *, int);
2865: static char *e (p, i)
2866: char **p;
2867: int i;
2868: {
2869: return p[i];
2870: }
2871: static char *f (char * (*g) (char **, int), char **p, ...)
2872: {
2873: char *s;
2874: va_list v;
2875: va_start (v,p);
2876: s = g (p, va_arg (v,int));
2877: va_end (v);
2878: return s;
2879: }
2880:
2881: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2882: function prototypes and stuff, but not '\xHH' hex character constants.
2883: These don't provoke an error unfortunately, instead are silently treated
2884: as 'x'. The following induces an error, until -std is added to get
2885: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2886: array size at least. It's necessary to write '\x00'==0 to get something
2887: that's true only with -std. */
2888: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2889:
2890: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2891: inside strings and character constants. */
2892: #define FOO(x) 'x'
2893: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2894:
2895: int test (int i, double x);
2896: struct s1 {int (*f) (int a);};
2897: struct s2 {int (*f) (double a);};
2898: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2899: int argc;
2900: char **argv;
2901: int
2902: main ()
2903: {
2904: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2905: ;
2906: return 0;
2907: }
2908: _ACEOF
2909: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2910: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2911: do
2912: CC="$ac_save_CC $ac_arg"
2913: if ac_fn_c_try_compile "$LINENO"; then :
2914: ac_cv_prog_cc_c89=$ac_arg
2915: fi
2916: rm -f core conftest.err conftest.$ac_objext
2917: test "x$ac_cv_prog_cc_c89" != "xno" && break
2918: done
2919: rm -f conftest.$ac_ext
2920: CC=$ac_save_CC
2921:
2922: fi
2923: # AC_CACHE_VAL
2924: case "x$ac_cv_prog_cc_c89" in
2925: x)
2926: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2927: $as_echo "none needed" >&6; } ;;
2928: xno)
2929: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2930: $as_echo "unsupported" >&6; } ;;
2931: *)
2932: CC="$CC $ac_cv_prog_cc_c89"
2933: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2934: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2935: esac
2936: if test "x$ac_cv_prog_cc_c89" != xno; then :
2937:
2938: fi
2939:
2940: ac_ext=c
2941: ac_cpp='$CPP $CPPFLAGS'
2942: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2945:
2946: ac_aux_dir=
2947: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1.4.2.1 ! misho 2948: if test -f "$ac_dir/install-sh"; then
! 2949: ac_aux_dir=$ac_dir
! 2950: ac_install_sh="$ac_aux_dir/install-sh -c"
! 2951: break
! 2952: elif test -f "$ac_dir/install.sh"; then
! 2953: ac_aux_dir=$ac_dir
! 2954: ac_install_sh="$ac_aux_dir/install.sh -c"
! 2955: break
! 2956: elif test -f "$ac_dir/shtool"; then
! 2957: ac_aux_dir=$ac_dir
! 2958: ac_install_sh="$ac_aux_dir/shtool install -c"
! 2959: break
! 2960: fi
1.1 misho 2961: done
2962: if test -z "$ac_aux_dir"; then
1.4.2.1 ! misho 2963: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1.1 misho 2964: fi
2965:
2966: # These three variables are undocumented and unsupported,
2967: # and are intended to be withdrawn in a future Autoconf release.
2968: # They can cause serious problems if a builder's source tree is in a directory
2969: # whose full name contains unusual characters.
2970: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2971: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2972: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2973:
2974:
2975: # Find a good install program. We prefer a C program (faster),
2976: # so one script is as good as another. But avoid the broken or
2977: # incompatible versions:
2978: # SysV /etc/install, /usr/sbin/install
2979: # SunOS /usr/etc/install
2980: # IRIX /sbin/install
2981: # AIX /bin/install
2982: # AmigaOS /C/install, which installs bootblocks on floppy discs
2983: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2984: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2985: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2986: # OS/2's system install, which has a completely different semantic
2987: # ./install, which can be erroneously created by make from ./install.sh.
2988: # Reject install programs that cannot install multiple files.
2989: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2990: $as_echo_n "checking for a BSD-compatible install... " >&6; }
2991: if test -z "$INSTALL"; then
1.4.2.1 ! misho 2992: if ${ac_cv_path_install+:} false; then :
1.1 misho 2993: $as_echo_n "(cached) " >&6
2994: else
2995: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996: for as_dir in $PATH
2997: do
2998: IFS=$as_save_IFS
2999: test -z "$as_dir" && as_dir=.
3000: # Account for people who put trailing slashes in PATH elements.
3001: case $as_dir/ in #((
3002: ./ | .// | /[cC]/* | \
3003: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3004: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3005: /usr/ucb/* ) ;;
3006: *)
3007: # OSF1 and SCO ODT 3.0 have their own names for install.
3008: # Don't use installbsd from OSF since it installs stuff as root
3009: # by default.
3010: for ac_prog in ginstall scoinst install; do
3011: for ac_exec_ext in '' $ac_executable_extensions; do
3012: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3013: if test $ac_prog = install &&
3014: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3015: # AIX install. It has an incompatible calling convention.
3016: :
3017: elif test $ac_prog = install &&
3018: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3019: # program-specific install script used by HP pwplus--don't use.
3020: :
3021: else
3022: rm -rf conftest.one conftest.two conftest.dir
3023: echo one > conftest.one
3024: echo two > conftest.two
3025: mkdir conftest.dir
3026: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3027: test -s conftest.one && test -s conftest.two &&
3028: test -s conftest.dir/conftest.one &&
3029: test -s conftest.dir/conftest.two
3030: then
3031: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3032: break 3
3033: fi
3034: fi
3035: fi
3036: done
3037: done
3038: ;;
3039: esac
3040:
3041: done
3042: IFS=$as_save_IFS
3043:
3044: rm -rf conftest.one conftest.two conftest.dir
3045:
3046: fi
3047: if test "${ac_cv_path_install+set}" = set; then
3048: INSTALL=$ac_cv_path_install
3049: else
3050: # As a last resort, use the slow shell script. Don't cache a
3051: # value for INSTALL within a source directory, because that will
3052: # break other packages using the cache if that directory is
3053: # removed, or if the value is a relative name.
3054: INSTALL=$ac_install_sh
3055: fi
3056: fi
3057: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3058: $as_echo "$INSTALL" >&6; }
3059:
3060: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3061: # It thinks the first close brace ends the variable substitution.
3062: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3063:
3064: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3065:
3066: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3067:
3068: if test -n "$ac_tool_prefix"; then
3069: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3070: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3071: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072: $as_echo_n "checking for $ac_word... " >&6; }
1.4.2.1 ! misho 3073: if ${ac_cv_prog_RANLIB+:} false; then :
1.1 misho 3074: $as_echo_n "(cached) " >&6
3075: else
3076: if test -n "$RANLIB"; then
3077: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3078: else
3079: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080: for as_dir in $PATH
3081: do
3082: IFS=$as_save_IFS
3083: test -z "$as_dir" && as_dir=.
3084: for ac_exec_ext in '' $ac_executable_extensions; do
3085: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3086: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3087: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088: break 2
3089: fi
3090: done
3091: done
3092: IFS=$as_save_IFS
3093:
3094: fi
3095: fi
3096: RANLIB=$ac_cv_prog_RANLIB
3097: if test -n "$RANLIB"; then
3098: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3099: $as_echo "$RANLIB" >&6; }
3100: else
3101: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102: $as_echo "no" >&6; }
3103: fi
3104:
3105:
3106: fi
3107: if test -z "$ac_cv_prog_RANLIB"; then
3108: ac_ct_RANLIB=$RANLIB
3109: # Extract the first word of "ranlib", so it can be a program name with args.
3110: set dummy ranlib; ac_word=$2
3111: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112: $as_echo_n "checking for $ac_word... " >&6; }
1.4.2.1 ! misho 3113: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
1.1 misho 3114: $as_echo_n "(cached) " >&6
3115: else
3116: if test -n "$ac_ct_RANLIB"; then
3117: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3118: else
3119: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120: for as_dir in $PATH
3121: do
3122: IFS=$as_save_IFS
3123: test -z "$as_dir" && as_dir=.
3124: for ac_exec_ext in '' $ac_executable_extensions; do
3125: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3126: ac_cv_prog_ac_ct_RANLIB="ranlib"
3127: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128: break 2
3129: fi
3130: done
3131: done
3132: IFS=$as_save_IFS
3133:
3134: fi
3135: fi
3136: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3137: if test -n "$ac_ct_RANLIB"; then
3138: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3139: $as_echo "$ac_ct_RANLIB" >&6; }
3140: else
3141: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142: $as_echo "no" >&6; }
3143: fi
3144:
3145: if test "x$ac_ct_RANLIB" = x; then
3146: RANLIB=":"
3147: else
3148: case $cross_compiling:$ac_tool_warned in
3149: yes:)
3150: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3151: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3152: ac_tool_warned=yes ;;
3153: esac
3154: RANLIB=$ac_ct_RANLIB
3155: fi
3156: else
3157: RANLIB="$ac_cv_prog_RANLIB"
3158: fi
3159:
3160:
3161: # Make sure we can run config.sub.
3162: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1.4.2.1 ! misho 3163: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.1 misho 3164:
3165: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3166: $as_echo_n "checking build system type... " >&6; }
1.4.2.1 ! misho 3167: if ${ac_cv_build+:} false; then :
1.1 misho 3168: $as_echo_n "(cached) " >&6
3169: else
3170: ac_build_alias=$build_alias
3171: test "x$ac_build_alias" = x &&
3172: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3173: test "x$ac_build_alias" = x &&
1.4.2.1 ! misho 3174: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1.1 misho 3175: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1.4.2.1 ! misho 3176: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1.1 misho 3177:
3178: fi
3179: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3180: $as_echo "$ac_cv_build" >&6; }
3181: case $ac_cv_build in
3182: *-*-*) ;;
1.4.2.1 ! misho 3183: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1.1 misho 3184: esac
3185: build=$ac_cv_build
3186: ac_save_IFS=$IFS; IFS='-'
3187: set x $ac_cv_build
3188: shift
3189: build_cpu=$1
3190: build_vendor=$2
3191: shift; shift
3192: # Remember, the first character of IFS is used to create $*,
3193: # except with old shells:
3194: build_os=$*
3195: IFS=$ac_save_IFS
3196: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3197:
3198:
3199: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3200: $as_echo_n "checking host system type... " >&6; }
1.4.2.1 ! misho 3201: if ${ac_cv_host+:} false; then :
1.1 misho 3202: $as_echo_n "(cached) " >&6
3203: else
3204: if test "x$host_alias" = x; then
3205: ac_cv_host=$ac_cv_build
3206: else
3207: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1.4.2.1 ! misho 3208: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.1 misho 3209: fi
3210:
3211: fi
3212: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3213: $as_echo "$ac_cv_host" >&6; }
3214: case $ac_cv_host in
3215: *-*-*) ;;
1.4.2.1 ! misho 3216: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1.1 misho 3217: esac
3218: host=$ac_cv_host
3219: ac_save_IFS=$IFS; IFS='-'
3220: set x $ac_cv_host
3221: shift
3222: host_cpu=$1
3223: host_vendor=$2
3224: shift; shift
3225: # Remember, the first character of IFS is used to create $*,
3226: # except with old shells:
3227: host_os=$*
3228: IFS=$ac_save_IFS
3229: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3230:
3231:
3232: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3233: $as_echo_n "checking target system type... " >&6; }
1.4.2.1 ! misho 3234: if ${ac_cv_target+:} false; then :
1.1 misho 3235: $as_echo_n "(cached) " >&6
3236: else
3237: if test "x$target_alias" = x; then
3238: ac_cv_target=$ac_cv_host
3239: else
3240: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1.4.2.1 ! misho 3241: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
1.1 misho 3242: fi
3243:
3244: fi
3245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3246: $as_echo "$ac_cv_target" >&6; }
3247: case $ac_cv_target in
3248: *-*-*) ;;
1.4.2.1 ! misho 3249: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
1.1 misho 3250: esac
3251: target=$ac_cv_target
3252: ac_save_IFS=$IFS; IFS='-'
3253: set x $ac_cv_target
3254: shift
3255: target_cpu=$1
3256: target_vendor=$2
3257: shift; shift
3258: # Remember, the first character of IFS is used to create $*,
3259: # except with old shells:
3260: target_os=$*
3261: IFS=$ac_save_IFS
3262: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3263:
3264:
3265: # The aliases save the names the user supplied, while $host etc.
3266: # will get canonicalized.
3267: test -n "$target_alias" &&
3268: test "$program_prefix$program_suffix$program_transform_name" = \
3269: NONENONEs,x,x, &&
3270: program_prefix=${target_alias}-
3271:
3272: if test -n "$ac_tool_prefix"; then
3273: # Extract the first word of "${ac_tool_prefix}mkdep", so it can be a program name with args.
3274: set dummy ${ac_tool_prefix}mkdep; ac_word=$2
3275: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276: $as_echo_n "checking for $ac_word... " >&6; }
1.4.2.1 ! misho 3277: if ${ac_cv_prog_MKDEP+:} false; then :
1.1 misho 3278: $as_echo_n "(cached) " >&6
3279: else
3280: if test -n "$MKDEP"; then
3281: ac_cv_prog_MKDEP="$MKDEP" # Let the user override the test.
3282: else
3283: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284: for as_dir in $PATH
3285: do
3286: IFS=$as_save_IFS
3287: test -z "$as_dir" && as_dir=.
3288: for ac_exec_ext in '' $ac_executable_extensions; do
3289: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290: ac_cv_prog_MKDEP="${ac_tool_prefix}mkdep"
3291: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292: break 2
3293: fi
3294: done
3295: done
3296: IFS=$as_save_IFS
3297:
3298: fi
3299: fi
3300: MKDEP=$ac_cv_prog_MKDEP
3301: if test -n "$MKDEP"; then
3302: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5
3303: $as_echo "$MKDEP" >&6; }
3304: else
3305: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306: $as_echo "no" >&6; }
3307: fi
3308:
3309:
3310: fi
3311: if test -z "$ac_cv_prog_MKDEP"; then
3312: ac_ct_MKDEP=$MKDEP
3313: # Extract the first word of "mkdep", so it can be a program name with args.
3314: set dummy mkdep; ac_word=$2
3315: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316: $as_echo_n "checking for $ac_word... " >&6; }
1.4.2.1 ! misho 3317: if ${ac_cv_prog_ac_ct_MKDEP+:} false; then :
1.1 misho 3318: $as_echo_n "(cached) " >&6
3319: else
3320: if test -n "$ac_ct_MKDEP"; then
3321: ac_cv_prog_ac_ct_MKDEP="$ac_ct_MKDEP" # Let the user override the test.
3322: else
3323: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324: for as_dir in $PATH
3325: do
3326: IFS=$as_save_IFS
3327: test -z "$as_dir" && as_dir=.
3328: for ac_exec_ext in '' $ac_executable_extensions; do
3329: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3330: ac_cv_prog_ac_ct_MKDEP="mkdep"
3331: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3332: break 2
3333: fi
3334: done
3335: done
3336: IFS=$as_save_IFS
3337:
3338: fi
3339: fi
3340: ac_ct_MKDEP=$ac_cv_prog_ac_ct_MKDEP
3341: if test -n "$ac_ct_MKDEP"; then
3342: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MKDEP" >&5
3343: $as_echo "$ac_ct_MKDEP" >&6; }
3344: else
3345: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346: $as_echo "no" >&6; }
3347: fi
3348:
3349: if test "x$ac_ct_MKDEP" = x; then
3350: MKDEP="no"
3351: else
3352: case $cross_compiling:$ac_tool_warned in
3353: yes:)
3354: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3355: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3356: ac_tool_warned=yes ;;
3357: esac
3358: MKDEP=$ac_ct_MKDEP
3359: fi
3360: else
3361: MKDEP="$ac_cv_prog_MKDEP"
3362: fi
3363:
3364:
3365:
3366: CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}"
3367: LDFLAGS="-L/usr/local/lib ${LDFLAGS}"
3368:
1.4 misho 3369:
1.1 misho 3370: # Checks for libraries.
3371:
1.4 misho 3372: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
3373: $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
1.4.2.1 ! misho 3374: if ${ac_cv_lib_pthread_pthread_create+:} false; then :
1.4 misho 3375: $as_echo_n "(cached) " >&6
3376: else
3377: ac_check_lib_save_LIBS=$LIBS
3378: LIBS="-lpthread $LIBS"
3379: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380: /* end confdefs.h. */
3381:
3382: /* Override any GCC internal prototype to avoid an error.
3383: Use char because int might match the return type of a GCC
3384: builtin and then its argument prototype would still apply. */
3385: #ifdef __cplusplus
3386: extern "C"
3387: #endif
3388: char pthread_create ();
3389: int
3390: main ()
3391: {
3392: return pthread_create ();
3393: ;
3394: return 0;
3395: }
3396: _ACEOF
3397: if ac_fn_c_try_link "$LINENO"; then :
3398: ac_cv_lib_pthread_pthread_create=yes
3399: else
3400: ac_cv_lib_pthread_pthread_create=no
3401: fi
3402: rm -f core conftest.err conftest.$ac_objext \
3403: conftest$ac_exeext conftest.$ac_ext
3404: LIBS=$ac_check_lib_save_LIBS
3405: fi
3406: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
3407: $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
1.4.2.1 ! misho 3408: if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
1.4 misho 3409: cat >>confdefs.h <<_ACEOF
3410: #define HAVE_LIBPTHREAD 1
3411: _ACEOF
3412:
3413: LIBS="-lpthread $LIBS"
3414:
3415: fi
3416:
3417:
1.1 misho 3418: # Checks for header files.
3419: ac_ext=c
3420: ac_cpp='$CPP $CPPFLAGS'
3421: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3422: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3423: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3424: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3425: $as_echo_n "checking how to run the C preprocessor... " >&6; }
3426: # On Suns, sometimes $CPP names a directory.
3427: if test -n "$CPP" && test -d "$CPP"; then
3428: CPP=
3429: fi
3430: if test -z "$CPP"; then
1.4.2.1 ! misho 3431: if ${ac_cv_prog_CPP+:} false; then :
1.1 misho 3432: $as_echo_n "(cached) " >&6
3433: else
3434: # Double quotes because CPP needs to be expanded
3435: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3436: do
3437: ac_preproc_ok=false
3438: for ac_c_preproc_warn_flag in '' yes
3439: do
3440: # Use a header file that comes with gcc, so configuring glibc
3441: # with a fresh cross-compiler works.
3442: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3443: # <limits.h> exists even on freestanding compilers.
3444: # On the NeXT, cc -E runs the code through the compiler's parser,
3445: # not just through cpp. "Syntax error" is here to catch this case.
3446: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447: /* end confdefs.h. */
3448: #ifdef __STDC__
3449: # include <limits.h>
3450: #else
3451: # include <assert.h>
3452: #endif
3453: Syntax error
3454: _ACEOF
3455: if ac_fn_c_try_cpp "$LINENO"; then :
3456:
3457: else
3458: # Broken: fails on valid input.
3459: continue
3460: fi
1.4.2.1 ! misho 3461: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 misho 3462:
3463: # OK, works on sane cases. Now check whether nonexistent headers
3464: # can be detected and how.
3465: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466: /* end confdefs.h. */
3467: #include <ac_nonexistent.h>
3468: _ACEOF
3469: if ac_fn_c_try_cpp "$LINENO"; then :
3470: # Broken: success on invalid input.
3471: continue
3472: else
3473: # Passes both tests.
3474: ac_preproc_ok=:
3475: break
3476: fi
1.4.2.1 ! misho 3477: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 misho 3478:
3479: done
3480: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.4.2.1 ! misho 3481: rm -f conftest.i conftest.err conftest.$ac_ext
1.1 misho 3482: if $ac_preproc_ok; then :
3483: break
3484: fi
3485:
3486: done
3487: ac_cv_prog_CPP=$CPP
3488:
3489: fi
3490: CPP=$ac_cv_prog_CPP
3491: else
3492: ac_cv_prog_CPP=$CPP
3493: fi
3494: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3495: $as_echo "$CPP" >&6; }
3496: ac_preproc_ok=false
3497: for ac_c_preproc_warn_flag in '' yes
3498: do
3499: # Use a header file that comes with gcc, so configuring glibc
3500: # with a fresh cross-compiler works.
3501: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3502: # <limits.h> exists even on freestanding compilers.
3503: # On the NeXT, cc -E runs the code through the compiler's parser,
3504: # not just through cpp. "Syntax error" is here to catch this case.
3505: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506: /* end confdefs.h. */
3507: #ifdef __STDC__
3508: # include <limits.h>
3509: #else
3510: # include <assert.h>
3511: #endif
3512: Syntax error
3513: _ACEOF
3514: if ac_fn_c_try_cpp "$LINENO"; then :
3515:
3516: else
3517: # Broken: fails on valid input.
3518: continue
3519: fi
1.4.2.1 ! misho 3520: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 misho 3521:
3522: # OK, works on sane cases. Now check whether nonexistent headers
3523: # can be detected and how.
3524: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525: /* end confdefs.h. */
3526: #include <ac_nonexistent.h>
3527: _ACEOF
3528: if ac_fn_c_try_cpp "$LINENO"; then :
3529: # Broken: success on invalid input.
3530: continue
3531: else
3532: # Passes both tests.
3533: ac_preproc_ok=:
3534: break
3535: fi
1.4.2.1 ! misho 3536: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 misho 3537:
3538: done
3539: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.4.2.1 ! misho 3540: rm -f conftest.i conftest.err conftest.$ac_ext
1.1 misho 3541: if $ac_preproc_ok; then :
3542:
3543: else
3544: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3545: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.4.2.1 ! misho 3546: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
! 3547: See \`config.log' for more details" "$LINENO" 5; }
1.1 misho 3548: fi
3549:
3550: ac_ext=c
3551: ac_cpp='$CPP $CPPFLAGS'
3552: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3553: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3554: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3555:
3556:
3557: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3558: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
1.4.2.1 ! misho 3559: if ${ac_cv_path_GREP+:} false; then :
1.1 misho 3560: $as_echo_n "(cached) " >&6
3561: else
3562: if test -z "$GREP"; then
3563: ac_path_GREP_found=false
3564: # Loop through the user's path and test for each of PROGNAME-LIST
3565: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3567: do
3568: IFS=$as_save_IFS
3569: test -z "$as_dir" && as_dir=.
3570: for ac_prog in grep ggrep; do
3571: for ac_exec_ext in '' $ac_executable_extensions; do
3572: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3573: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3574: # Check for GNU ac_path_GREP and select it if it is found.
3575: # Check for GNU $ac_path_GREP
3576: case `"$ac_path_GREP" --version 2>&1` in
3577: *GNU*)
3578: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3579: *)
3580: ac_count=0
3581: $as_echo_n 0123456789 >"conftest.in"
3582: while :
3583: do
3584: cat "conftest.in" "conftest.in" >"conftest.tmp"
3585: mv "conftest.tmp" "conftest.in"
3586: cp "conftest.in" "conftest.nl"
3587: $as_echo 'GREP' >> "conftest.nl"
3588: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3589: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3590: as_fn_arith $ac_count + 1 && ac_count=$as_val
3591: if test $ac_count -gt ${ac_path_GREP_max-0}; then
3592: # Best one so far, save it but keep looking for a better one
3593: ac_cv_path_GREP="$ac_path_GREP"
3594: ac_path_GREP_max=$ac_count
3595: fi
3596: # 10*(2^10) chars as input seems more than enough
3597: test $ac_count -gt 10 && break
3598: done
3599: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3600: esac
3601:
3602: $ac_path_GREP_found && break 3
3603: done
3604: done
3605: done
3606: IFS=$as_save_IFS
3607: if test -z "$ac_cv_path_GREP"; then
1.4.2.1 ! misho 3608: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.1 misho 3609: fi
3610: else
3611: ac_cv_path_GREP=$GREP
3612: fi
3613:
3614: fi
3615: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3616: $as_echo "$ac_cv_path_GREP" >&6; }
3617: GREP="$ac_cv_path_GREP"
3618:
3619:
3620: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3621: $as_echo_n "checking for egrep... " >&6; }
1.4.2.1 ! misho 3622: if ${ac_cv_path_EGREP+:} false; then :
1.1 misho 3623: $as_echo_n "(cached) " >&6
3624: else
3625: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3626: then ac_cv_path_EGREP="$GREP -E"
3627: else
3628: if test -z "$EGREP"; then
3629: ac_path_EGREP_found=false
3630: # Loop through the user's path and test for each of PROGNAME-LIST
3631: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3633: do
3634: IFS=$as_save_IFS
3635: test -z "$as_dir" && as_dir=.
3636: for ac_prog in egrep; do
3637: for ac_exec_ext in '' $ac_executable_extensions; do
3638: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3639: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3640: # Check for GNU ac_path_EGREP and select it if it is found.
3641: # Check for GNU $ac_path_EGREP
3642: case `"$ac_path_EGREP" --version 2>&1` in
3643: *GNU*)
3644: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3645: *)
3646: ac_count=0
3647: $as_echo_n 0123456789 >"conftest.in"
3648: while :
3649: do
3650: cat "conftest.in" "conftest.in" >"conftest.tmp"
3651: mv "conftest.tmp" "conftest.in"
3652: cp "conftest.in" "conftest.nl"
3653: $as_echo 'EGREP' >> "conftest.nl"
3654: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3655: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3656: as_fn_arith $ac_count + 1 && ac_count=$as_val
3657: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3658: # Best one so far, save it but keep looking for a better one
3659: ac_cv_path_EGREP="$ac_path_EGREP"
3660: ac_path_EGREP_max=$ac_count
3661: fi
3662: # 10*(2^10) chars as input seems more than enough
3663: test $ac_count -gt 10 && break
3664: done
3665: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3666: esac
3667:
3668: $ac_path_EGREP_found && break 3
3669: done
3670: done
3671: done
3672: IFS=$as_save_IFS
3673: if test -z "$ac_cv_path_EGREP"; then
1.4.2.1 ! misho 3674: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.1 misho 3675: fi
3676: else
3677: ac_cv_path_EGREP=$EGREP
3678: fi
3679:
3680: fi
3681: fi
3682: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3683: $as_echo "$ac_cv_path_EGREP" >&6; }
3684: EGREP="$ac_cv_path_EGREP"
3685:
3686:
3687: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3688: $as_echo_n "checking for ANSI C header files... " >&6; }
1.4.2.1 ! misho 3689: if ${ac_cv_header_stdc+:} false; then :
1.1 misho 3690: $as_echo_n "(cached) " >&6
3691: else
3692: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693: /* end confdefs.h. */
3694: #include <stdlib.h>
3695: #include <stdarg.h>
3696: #include <string.h>
3697: #include <float.h>
3698:
3699: int
3700: main ()
3701: {
3702:
3703: ;
3704: return 0;
3705: }
3706: _ACEOF
3707: if ac_fn_c_try_compile "$LINENO"; then :
3708: ac_cv_header_stdc=yes
3709: else
3710: ac_cv_header_stdc=no
3711: fi
3712: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713:
3714: if test $ac_cv_header_stdc = yes; then
3715: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3716: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717: /* end confdefs.h. */
3718: #include <string.h>
3719:
3720: _ACEOF
3721: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3722: $EGREP "memchr" >/dev/null 2>&1; then :
3723:
3724: else
3725: ac_cv_header_stdc=no
3726: fi
3727: rm -f conftest*
3728:
3729: fi
3730:
3731: if test $ac_cv_header_stdc = yes; then
3732: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3733: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734: /* end confdefs.h. */
3735: #include <stdlib.h>
3736:
3737: _ACEOF
3738: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3739: $EGREP "free" >/dev/null 2>&1; then :
3740:
3741: else
3742: ac_cv_header_stdc=no
3743: fi
3744: rm -f conftest*
3745:
3746: fi
3747:
3748: if test $ac_cv_header_stdc = yes; then
3749: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3750: if test "$cross_compiling" = yes; then :
3751: :
3752: else
3753: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754: /* end confdefs.h. */
3755: #include <ctype.h>
3756: #include <stdlib.h>
3757: #if ((' ' & 0x0FF) == 0x020)
3758: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3759: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3760: #else
3761: # define ISLOWER(c) \
3762: (('a' <= (c) && (c) <= 'i') \
3763: || ('j' <= (c) && (c) <= 'r') \
3764: || ('s' <= (c) && (c) <= 'z'))
3765: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3766: #endif
3767:
3768: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3769: int
3770: main ()
3771: {
3772: int i;
3773: for (i = 0; i < 256; i++)
3774: if (XOR (islower (i), ISLOWER (i))
3775: || toupper (i) != TOUPPER (i))
3776: return 2;
3777: return 0;
3778: }
3779: _ACEOF
3780: if ac_fn_c_try_run "$LINENO"; then :
3781:
3782: else
3783: ac_cv_header_stdc=no
3784: fi
3785: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3786: conftest.$ac_objext conftest.beam conftest.$ac_ext
3787: fi
3788:
3789: fi
3790: fi
3791: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3792: $as_echo "$ac_cv_header_stdc" >&6; }
3793: if test $ac_cv_header_stdc = yes; then
3794:
3795: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3796:
3797: fi
3798:
3799: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3800: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3801: inttypes.h stdint.h unistd.h
3802: do :
3803: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3804: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3805: "
1.4.2.1 ! misho 3806: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.1 misho 3807: cat >>confdefs.h <<_ACEOF
3808: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3809: _ACEOF
3810:
3811: fi
3812:
3813: done
3814:
3815:
3816: for ac_header in stdint.h stdlib.h string.h sys/time.h unistd.h
3817: do :
3818: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3819: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
1.4.2.1 ! misho 3820: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.1 misho 3821: cat >>confdefs.h <<_ACEOF
3822: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3823: _ACEOF
3824:
3825: fi
3826:
3827: done
3828:
3829:
3830: # Checks for typedefs, structures, and compiler characteristics.
3831: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3832: $as_echo_n "checking for inline... " >&6; }
1.4.2.1 ! misho 3833: if ${ac_cv_c_inline+:} false; then :
1.1 misho 3834: $as_echo_n "(cached) " >&6
3835: else
3836: ac_cv_c_inline=no
3837: for ac_kw in inline __inline__ __inline; do
3838: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839: /* end confdefs.h. */
3840: #ifndef __cplusplus
3841: typedef int foo_t;
3842: static $ac_kw foo_t static_foo () {return 0; }
3843: $ac_kw foo_t foo () {return 0; }
3844: #endif
3845:
3846: _ACEOF
3847: if ac_fn_c_try_compile "$LINENO"; then :
3848: ac_cv_c_inline=$ac_kw
3849: fi
3850: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851: test "$ac_cv_c_inline" != no && break
3852: done
3853:
3854: fi
3855: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
3856: $as_echo "$ac_cv_c_inline" >&6; }
3857:
3858: case $ac_cv_c_inline in
3859: inline | yes) ;;
3860: *)
3861: case $ac_cv_c_inline in
3862: no) ac_val=;;
3863: *) ac_val=$ac_cv_c_inline;;
3864: esac
3865: cat >>confdefs.h <<_ACEOF
3866: #ifndef __cplusplus
3867: #define inline $ac_val
3868: #endif
3869: _ACEOF
3870: ;;
3871: esac
3872:
3873: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
1.4.2.1 ! misho 3874: if test "x$ac_cv_type_size_t" = xyes; then :
1.1 misho 3875:
3876: else
3877:
3878: cat >>confdefs.h <<_ACEOF
3879: #define size_t unsigned int
3880: _ACEOF
3881:
3882: fi
3883:
3884:
3885: # Checks for library functions.
3886: for ac_header in stdlib.h
3887: do :
3888: ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
1.4.2.1 ! misho 3889: if test "x$ac_cv_header_stdlib_h" = xyes; then :
1.1 misho 3890: cat >>confdefs.h <<_ACEOF
3891: #define HAVE_STDLIB_H 1
3892: _ACEOF
3893:
3894: fi
3895:
3896: done
3897:
3898: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
3899: $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
1.4.2.1 ! misho 3900: if ${ac_cv_func_malloc_0_nonnull+:} false; then :
1.1 misho 3901: $as_echo_n "(cached) " >&6
3902: else
3903: if test "$cross_compiling" = yes; then :
3904: ac_cv_func_malloc_0_nonnull=no
3905: else
3906: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907: /* end confdefs.h. */
3908: #if defined STDC_HEADERS || defined HAVE_STDLIB_H
3909: # include <stdlib.h>
3910: #else
3911: char *malloc ();
3912: #endif
3913:
3914: int
3915: main ()
3916: {
3917: return ! malloc (0);
3918: ;
3919: return 0;
3920: }
3921: _ACEOF
3922: if ac_fn_c_try_run "$LINENO"; then :
3923: ac_cv_func_malloc_0_nonnull=yes
3924: else
3925: ac_cv_func_malloc_0_nonnull=no
3926: fi
3927: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3928: conftest.$ac_objext conftest.beam conftest.$ac_ext
3929: fi
3930:
3931: fi
3932: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
3933: $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
3934: if test $ac_cv_func_malloc_0_nonnull = yes; then :
3935:
3936: $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
3937:
3938: else
3939: $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
3940:
3941: case " $LIBOBJS " in
3942: *" malloc.$ac_objext "* ) ;;
3943: *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
3944: ;;
3945: esac
3946:
3947:
3948: $as_echo "#define malloc rpl_malloc" >>confdefs.h
3949:
3950: fi
3951:
3952:
3953: for ac_func in clock_gettime memset strerror
3954: do :
3955: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3956: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.4.2.1 ! misho 3957: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.1 misho 3958: cat >>confdefs.h <<_ACEOF
3959: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3960: _ACEOF
3961:
3962: fi
3963: done
3964:
3965:
3966: DEBUG=no
3967: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Debug Build" >&5
3968: $as_echo_n "checking Debug Build... " >&6; }
3969: # Check whether --enable-debug was given.
3970: if test "${enable_debug+set}" = set; then :
3971: enableval=$enable_debug; DEBUG=$enableval
3972: case "$enableval" in
3973: yes)
3974:
3975: $as_echo "#define __DEBUG /**/" >>confdefs.h
3976:
3977: CFLAGS="-g ${CFLAGS}"
3978: ;;
3979: *)
3980:
3981: $as_echo "#define NDEBUG /**/" >>confdefs.h
3982:
3983: ;;
3984: esac
3985: else
3986:
3987: $as_echo "#define NDEBUG /**/" >>confdefs.h
3988:
3989: fi
3990:
3991: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
3992: $as_echo "$DEBUG" >&6; }
3993:
3994: ac_config_files="$ac_config_files Makefile inc/Makefile lib/Makefile src/Makefile"
3995:
3996: cat >confcache <<\_ACEOF
3997: # This file is a shell script that caches the results of configure
3998: # tests run on this system so they can be shared between configure
3999: # scripts and configure runs, see configure's option --config-cache.
4000: # It is not useful on other systems. If it contains results you don't
4001: # want to keep, you may remove or edit it.
4002: #
4003: # config.status only pays attention to the cache file if you give it
4004: # the --recheck option to rerun configure.
4005: #
4006: # `ac_cv_env_foo' variables (set or unset) will be overridden when
4007: # loading this file, other *unset* `ac_cv_foo' will be assigned the
4008: # following values.
4009:
4010: _ACEOF
4011:
4012: # The following way of writing the cache mishandles newlines in values,
4013: # but we know of no workaround that is simple, portable, and efficient.
4014: # So, we kill variables containing newlines.
4015: # Ultrix sh set writes to stderr and can't be redirected directly,
4016: # and sets the high bit in the cache file unless we assign to the vars.
4017: (
4018: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4019: eval ac_val=\$$ac_var
4020: case $ac_val in #(
4021: *${as_nl}*)
4022: case $ac_var in #(
4023: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4024: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4025: esac
4026: case $ac_var in #(
4027: _ | IFS | as_nl) ;; #(
4028: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4029: *) { eval $ac_var=; unset $ac_var;} ;;
4030: esac ;;
4031: esac
4032: done
4033:
4034: (set) 2>&1 |
4035: case $as_nl`(ac_space=' '; set) 2>&1` in #(
4036: *${as_nl}ac_space=\ *)
4037: # `set' does not quote correctly, so add quotes: double-quote
4038: # substitution turns \\\\ into \\, and sed turns \\ into \.
4039: sed -n \
4040: "s/'/'\\\\''/g;
4041: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4042: ;; #(
4043: *)
4044: # `set' quotes correctly as required by POSIX, so do not add quotes.
4045: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4046: ;;
4047: esac |
4048: sort
4049: ) |
4050: sed '
4051: /^ac_cv_env_/b end
4052: t clear
4053: :clear
4054: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4055: t end
4056: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4057: :end' >>confcache
4058: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4059: if test -w "$cache_file"; then
1.4.2.1 ! misho 4060: if test "x$cache_file" != "x/dev/null"; then
1.1 misho 4061: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4062: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.4.2.1 ! misho 4063: if test ! -f "$cache_file" || test -h "$cache_file"; then
! 4064: cat confcache >"$cache_file"
! 4065: else
! 4066: case $cache_file in #(
! 4067: */* | ?:*)
! 4068: mv -f confcache "$cache_file"$$ &&
! 4069: mv -f "$cache_file"$$ "$cache_file" ;; #(
! 4070: *)
! 4071: mv -f confcache "$cache_file" ;;
! 4072: esac
! 4073: fi
! 4074: fi
1.1 misho 4075: else
4076: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4077: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4078: fi
4079: fi
4080: rm -f confcache
4081:
4082: test "x$prefix" = xNONE && prefix=$ac_default_prefix
4083: # Let make expand exec_prefix.
4084: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4085:
4086: DEFS=-DHAVE_CONFIG_H
4087:
4088: ac_libobjs=
4089: ac_ltlibobjs=
1.4.2.1 ! misho 4090: U=
1.1 misho 4091: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4092: # 1. Remove the extension, and $U if already installed.
4093: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4094: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4095: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4096: # will be set to the directory where LIBOBJS objects are built.
4097: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4098: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4099: done
4100: LIBOBJS=$ac_libobjs
4101:
4102: LTLIBOBJS=$ac_ltlibobjs
4103:
4104:
4105:
1.4.2.1 ! misho 4106: : "${CONFIG_STATUS=./config.status}"
1.1 misho 4107: ac_write_fail=0
4108: ac_clean_files_save=$ac_clean_files
4109: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4110: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4111: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4112: as_write_fail=0
4113: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4114: #! $SHELL
4115: # Generated by $as_me.
4116: # Run this file to recreate the current configuration.
4117: # Compiler output produced by configure, useful for debugging
4118: # configure, is in config.log if it exists.
4119:
4120: debug=false
4121: ac_cs_recheck=false
4122: ac_cs_silent=false
4123:
4124: SHELL=\${CONFIG_SHELL-$SHELL}
4125: export SHELL
4126: _ASEOF
4127: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4128: ## -------------------- ##
4129: ## M4sh Initialization. ##
4130: ## -------------------- ##
4131:
4132: # Be more Bourne compatible
4133: DUALCASE=1; export DUALCASE # for MKS sh
4134: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4135: emulate sh
4136: NULLCMD=:
4137: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4138: # is contrary to our usage. Disable this feature.
4139: alias -g '${1+"$@"}'='"$@"'
4140: setopt NO_GLOB_SUBST
4141: else
4142: case `(set -o) 2>/dev/null` in #(
4143: *posix*) :
4144: set -o posix ;; #(
4145: *) :
4146: ;;
4147: esac
4148: fi
4149:
4150:
4151: as_nl='
4152: '
4153: export as_nl
4154: # Printing a long string crashes Solaris 7 /usr/bin/printf.
4155: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4156: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4157: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4158: # Prefer a ksh shell builtin over an external printf program on Solaris,
4159: # but without wasting forks for bash or zsh.
4160: if test -z "$BASH_VERSION$ZSH_VERSION" \
4161: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4162: as_echo='print -r --'
4163: as_echo_n='print -rn --'
4164: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4165: as_echo='printf %s\n'
4166: as_echo_n='printf %s'
4167: else
4168: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4169: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4170: as_echo_n='/usr/ucb/echo -n'
4171: else
4172: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4173: as_echo_n_body='eval
4174: arg=$1;
4175: case $arg in #(
4176: *"$as_nl"*)
4177: expr "X$arg" : "X\\(.*\\)$as_nl";
4178: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4179: esac;
4180: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4181: '
4182: export as_echo_n_body
4183: as_echo_n='sh -c $as_echo_n_body as_echo'
4184: fi
4185: export as_echo_body
4186: as_echo='sh -c $as_echo_body as_echo'
4187: fi
4188:
4189: # The user is always right.
4190: if test "${PATH_SEPARATOR+set}" != set; then
4191: PATH_SEPARATOR=:
4192: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4193: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4194: PATH_SEPARATOR=';'
4195: }
4196: fi
4197:
4198:
4199: # IFS
4200: # We need space, tab and new line, in precisely that order. Quoting is
4201: # there to prevent editors from complaining about space-tab.
4202: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4203: # splitting by setting IFS to empty value.)
4204: IFS=" "" $as_nl"
4205:
4206: # Find who we are. Look in the path if we contain no directory separator.
1.4.2.1 ! misho 4207: as_myself=
1.1 misho 4208: case $0 in #((
4209: *[\\/]* ) as_myself=$0 ;;
4210: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211: for as_dir in $PATH
4212: do
4213: IFS=$as_save_IFS
4214: test -z "$as_dir" && as_dir=.
4215: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4216: done
4217: IFS=$as_save_IFS
4218:
4219: ;;
4220: esac
4221: # We did not find ourselves, most probably we were run as `sh COMMAND'
4222: # in which case we are not to be found in the path.
4223: if test "x$as_myself" = x; then
4224: as_myself=$0
4225: fi
4226: if test ! -f "$as_myself"; then
4227: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4228: exit 1
4229: fi
4230:
4231: # Unset variables that we do not need and which cause bugs (e.g. in
4232: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4233: # suppresses any "Segmentation fault" message there. '((' could
4234: # trigger a bug in pdksh 5.2.14.
4235: for as_var in BASH_ENV ENV MAIL MAILPATH
4236: do eval test x\${$as_var+set} = xset \
4237: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4238: done
4239: PS1='$ '
4240: PS2='> '
4241: PS4='+ '
4242:
4243: # NLS nuisances.
4244: LC_ALL=C
4245: export LC_ALL
4246: LANGUAGE=C
4247: export LANGUAGE
4248:
4249: # CDPATH.
4250: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4251:
4252:
1.4.2.1 ! misho 4253: # as_fn_error STATUS ERROR [LINENO LOG_FD]
! 4254: # ----------------------------------------
1.1 misho 4255: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4256: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.4.2.1 ! misho 4257: # script with STATUS, using 1 if that was 0.
1.1 misho 4258: as_fn_error ()
4259: {
1.4.2.1 ! misho 4260: as_status=$1; test $as_status -eq 0 && as_status=1
! 4261: if test "$4"; then
! 4262: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 4263: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.1 misho 4264: fi
1.4.2.1 ! misho 4265: $as_echo "$as_me: error: $2" >&2
1.1 misho 4266: as_fn_exit $as_status
4267: } # as_fn_error
4268:
4269:
4270: # as_fn_set_status STATUS
4271: # -----------------------
4272: # Set $? to STATUS, without forking.
4273: as_fn_set_status ()
4274: {
4275: return $1
4276: } # as_fn_set_status
4277:
4278: # as_fn_exit STATUS
4279: # -----------------
4280: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4281: as_fn_exit ()
4282: {
4283: set +e
4284: as_fn_set_status $1
4285: exit $1
4286: } # as_fn_exit
4287:
4288: # as_fn_unset VAR
4289: # ---------------
4290: # Portably unset VAR.
4291: as_fn_unset ()
4292: {
4293: { eval $1=; unset $1;}
4294: }
4295: as_unset=as_fn_unset
4296: # as_fn_append VAR VALUE
4297: # ----------------------
4298: # Append the text in VALUE to the end of the definition contained in VAR. Take
4299: # advantage of any shell optimizations that allow amortized linear growth over
4300: # repeated appends, instead of the typical quadratic growth present in naive
4301: # implementations.
4302: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4303: eval 'as_fn_append ()
4304: {
4305: eval $1+=\$2
4306: }'
4307: else
4308: as_fn_append ()
4309: {
4310: eval $1=\$$1\$2
4311: }
4312: fi # as_fn_append
4313:
4314: # as_fn_arith ARG...
4315: # ------------------
4316: # Perform arithmetic evaluation on the ARGs, and store the result in the
4317: # global $as_val. Take advantage of shells that can avoid forks. The arguments
4318: # must be portable across $(()) and expr.
4319: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4320: eval 'as_fn_arith ()
4321: {
4322: as_val=$(( $* ))
4323: }'
4324: else
4325: as_fn_arith ()
4326: {
4327: as_val=`expr "$@" || test $? -eq 1`
4328: }
4329: fi # as_fn_arith
4330:
4331:
4332: if expr a : '\(a\)' >/dev/null 2>&1 &&
4333: test "X`expr 00001 : '.*\(...\)'`" = X001; then
4334: as_expr=expr
4335: else
4336: as_expr=false
4337: fi
4338:
4339: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4340: as_basename=basename
4341: else
4342: as_basename=false
4343: fi
4344:
4345: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4346: as_dirname=dirname
4347: else
4348: as_dirname=false
4349: fi
4350:
4351: as_me=`$as_basename -- "$0" ||
4352: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4353: X"$0" : 'X\(//\)$' \| \
4354: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4355: $as_echo X/"$0" |
4356: sed '/^.*\/\([^/][^/]*\)\/*$/{
4357: s//\1/
4358: q
4359: }
4360: /^X\/\(\/\/\)$/{
4361: s//\1/
4362: q
4363: }
4364: /^X\/\(\/\).*/{
4365: s//\1/
4366: q
4367: }
4368: s/.*/./; q'`
4369:
4370: # Avoid depending upon Character Ranges.
4371: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4372: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4373: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4374: as_cr_digits='0123456789'
4375: as_cr_alnum=$as_cr_Letters$as_cr_digits
4376:
4377: ECHO_C= ECHO_N= ECHO_T=
4378: case `echo -n x` in #(((((
4379: -n*)
4380: case `echo 'xy\c'` in
4381: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4382: xy) ECHO_C='\c';;
4383: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4384: ECHO_T=' ';;
4385: esac;;
4386: *)
4387: ECHO_N='-n';;
4388: esac
4389:
4390: rm -f conf$$ conf$$.exe conf$$.file
4391: if test -d conf$$.dir; then
4392: rm -f conf$$.dir/conf$$.file
4393: else
4394: rm -f conf$$.dir
4395: mkdir conf$$.dir 2>/dev/null
4396: fi
4397: if (echo >conf$$.file) 2>/dev/null; then
4398: if ln -s conf$$.file conf$$ 2>/dev/null; then
4399: as_ln_s='ln -s'
4400: # ... but there are two gotchas:
4401: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4402: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4403: # In both cases, we have to default to `cp -p'.
4404: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4405: as_ln_s='cp -p'
4406: elif ln conf$$.file conf$$ 2>/dev/null; then
4407: as_ln_s=ln
4408: else
4409: as_ln_s='cp -p'
4410: fi
4411: else
4412: as_ln_s='cp -p'
4413: fi
4414: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4415: rmdir conf$$.dir 2>/dev/null
4416:
4417:
4418: # as_fn_mkdir_p
4419: # -------------
4420: # Create "$as_dir" as a directory, including parents if necessary.
4421: as_fn_mkdir_p ()
4422: {
4423:
4424: case $as_dir in #(
4425: -*) as_dir=./$as_dir;;
4426: esac
4427: test -d "$as_dir" || eval $as_mkdir_p || {
4428: as_dirs=
4429: while :; do
4430: case $as_dir in #(
4431: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4432: *) as_qdir=$as_dir;;
4433: esac
4434: as_dirs="'$as_qdir' $as_dirs"
4435: as_dir=`$as_dirname -- "$as_dir" ||
4436: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4437: X"$as_dir" : 'X\(//\)[^/]' \| \
4438: X"$as_dir" : 'X\(//\)$' \| \
4439: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4440: $as_echo X"$as_dir" |
4441: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4442: s//\1/
4443: q
4444: }
4445: /^X\(\/\/\)[^/].*/{
4446: s//\1/
4447: q
4448: }
4449: /^X\(\/\/\)$/{
4450: s//\1/
4451: q
4452: }
4453: /^X\(\/\).*/{
4454: s//\1/
4455: q
4456: }
4457: s/.*/./; q'`
4458: test -d "$as_dir" && break
4459: done
4460: test -z "$as_dirs" || eval "mkdir $as_dirs"
1.4.2.1 ! misho 4461: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.1 misho 4462:
4463:
4464: } # as_fn_mkdir_p
4465: if mkdir -p . 2>/dev/null; then
4466: as_mkdir_p='mkdir -p "$as_dir"'
4467: else
4468: test -d ./-p && rmdir ./-p
4469: as_mkdir_p=false
4470: fi
4471:
4472: if test -x / >/dev/null 2>&1; then
4473: as_test_x='test -x'
4474: else
4475: if ls -dL / >/dev/null 2>&1; then
4476: as_ls_L_option=L
4477: else
4478: as_ls_L_option=
4479: fi
4480: as_test_x='
4481: eval sh -c '\''
4482: if test -d "$1"; then
4483: test -d "$1/.";
4484: else
4485: case $1 in #(
4486: -*)set "./$1";;
4487: esac;
4488: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4489: ???[sx]*):;;*)false;;esac;fi
4490: '\'' sh
4491: '
4492: fi
4493: as_executable_p=$as_test_x
4494:
4495: # Sed expression to map a string onto a valid CPP name.
4496: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4497:
4498: # Sed expression to map a string onto a valid variable name.
4499: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4500:
4501:
4502: exec 6>&1
4503: ## ----------------------------------- ##
4504: ## Main body of $CONFIG_STATUS script. ##
4505: ## ----------------------------------- ##
4506: _ASEOF
4507: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4508:
4509: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4510: # Save the log message, to keep $0 and so on meaningful, and to
4511: # report actual input values of CONFIG_FILES etc. instead of their
4512: # values after options handling.
4513: ac_log="
1.4.2.1 ! misho 4514: This file was extended by libaitsched $as_me 1.4, which was
! 4515: generated by GNU Autoconf 2.68. Invocation command line was
1.1 misho 4516:
4517: CONFIG_FILES = $CONFIG_FILES
4518: CONFIG_HEADERS = $CONFIG_HEADERS
4519: CONFIG_LINKS = $CONFIG_LINKS
4520: CONFIG_COMMANDS = $CONFIG_COMMANDS
4521: $ $0 $@
4522:
4523: on `(hostname || uname -n) 2>/dev/null | sed 1q`
4524: "
4525:
4526: _ACEOF
4527:
4528: case $ac_config_files in *"
4529: "*) set x $ac_config_files; shift; ac_config_files=$*;;
4530: esac
4531:
4532: case $ac_config_headers in *"
4533: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4534: esac
4535:
4536:
4537: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4538: # Files that config.status was made for.
4539: config_files="$ac_config_files"
4540: config_headers="$ac_config_headers"
4541:
4542: _ACEOF
4543:
4544: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4545: ac_cs_usage="\
4546: \`$as_me' instantiates files and other configuration actions
4547: from templates according to the current configuration. Unless the files
4548: and actions are specified as TAGs, all are instantiated by default.
4549:
4550: Usage: $0 [OPTION]... [TAG]...
4551:
4552: -h, --help print this help, then exit
4553: -V, --version print version number and configuration settings, then exit
1.2 misho 4554: --config print configuration, then exit
1.1 misho 4555: -q, --quiet, --silent
4556: do not print progress messages
4557: -d, --debug don't remove temporary files
4558: --recheck update $as_me by reconfiguring in the same conditions
4559: --file=FILE[:TEMPLATE]
4560: instantiate the configuration file FILE
4561: --header=FILE[:TEMPLATE]
4562: instantiate the configuration header FILE
4563:
4564: Configuration files:
4565: $config_files
4566:
4567: Configuration headers:
4568: $config_headers
4569:
4570: Report bugs to <misho@openbsd-bg.org>."
4571:
4572: _ACEOF
4573: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.2 misho 4574: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.1 misho 4575: ac_cs_version="\\
1.4.2.1 ! misho 4576: libaitsched config.status 1.4
! 4577: configured by $0, generated by GNU Autoconf 2.68,
1.2 misho 4578: with options \\"\$ac_cs_config\\"
1.1 misho 4579:
1.4.2.1 ! misho 4580: Copyright (C) 2010 Free Software Foundation, Inc.
1.1 misho 4581: This config.status script is free software; the Free Software Foundation
4582: gives unlimited permission to copy, distribute and modify it."
4583:
4584: ac_pwd='$ac_pwd'
4585: srcdir='$srcdir'
4586: INSTALL='$INSTALL'
4587: test -n "\$AWK" || AWK=awk
4588: _ACEOF
4589:
4590: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4591: # The default lists apply if the user does not specify any file.
4592: ac_need_defaults=:
4593: while test $# != 0
4594: do
4595: case $1 in
1.4.2.1 ! misho 4596: --*=?*)
1.1 misho 4597: ac_option=`expr "X$1" : 'X\([^=]*\)='`
4598: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4599: ac_shift=:
4600: ;;
1.4.2.1 ! misho 4601: --*=)
! 4602: ac_option=`expr "X$1" : 'X\([^=]*\)='`
! 4603: ac_optarg=
! 4604: ac_shift=:
! 4605: ;;
1.1 misho 4606: *)
4607: ac_option=$1
4608: ac_optarg=$2
4609: ac_shift=shift
4610: ;;
4611: esac
4612:
4613: case $ac_option in
4614: # Handling of the options.
4615: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4616: ac_cs_recheck=: ;;
4617: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4618: $as_echo "$ac_cs_version"; exit ;;
1.2 misho 4619: --config | --confi | --conf | --con | --co | --c )
4620: $as_echo "$ac_cs_config"; exit ;;
1.1 misho 4621: --debug | --debu | --deb | --de | --d | -d )
4622: debug=: ;;
4623: --file | --fil | --fi | --f )
4624: $ac_shift
4625: case $ac_optarg in
4626: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.4.2.1 ! misho 4627: '') as_fn_error $? "missing file argument" ;;
1.1 misho 4628: esac
4629: as_fn_append CONFIG_FILES " '$ac_optarg'"
4630: ac_need_defaults=false;;
4631: --header | --heade | --head | --hea )
4632: $ac_shift
4633: case $ac_optarg in
4634: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4635: esac
4636: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4637: ac_need_defaults=false;;
4638: --he | --h)
4639: # Conflict between --help and --header
1.4.2.1 ! misho 4640: as_fn_error $? "ambiguous option: \`$1'
1.1 misho 4641: Try \`$0 --help' for more information.";;
4642: --help | --hel | -h )
4643: $as_echo "$ac_cs_usage"; exit ;;
4644: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4645: | -silent | --silent | --silen | --sile | --sil | --si | --s)
4646: ac_cs_silent=: ;;
4647:
4648: # This is an error.
1.4.2.1 ! misho 4649: -*) as_fn_error $? "unrecognized option: \`$1'
1.1 misho 4650: Try \`$0 --help' for more information." ;;
4651:
4652: *) as_fn_append ac_config_targets " $1"
4653: ac_need_defaults=false ;;
4654:
4655: esac
4656: shift
4657: done
4658:
4659: ac_configure_extra_args=
4660:
4661: if $ac_cs_silent; then
4662: exec 6>/dev/null
4663: ac_configure_extra_args="$ac_configure_extra_args --silent"
4664: fi
4665:
4666: _ACEOF
4667: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4668: if \$ac_cs_recheck; then
4669: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4670: shift
4671: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4672: CONFIG_SHELL='$SHELL'
4673: export CONFIG_SHELL
4674: exec "\$@"
4675: fi
4676:
4677: _ACEOF
4678: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4679: exec 5>>config.log
4680: {
4681: echo
4682: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4683: ## Running $as_me. ##
4684: _ASBOX
4685: $as_echo "$ac_log"
4686: } >&5
4687:
4688: _ACEOF
4689: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4690: _ACEOF
4691:
4692: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4693:
4694: # Handling of arguments.
4695: for ac_config_target in $ac_config_targets
4696: do
4697: case $ac_config_target in
4698: "inc/config.h") CONFIG_HEADERS="$CONFIG_HEADERS inc/config.h" ;;
4699: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4700: "inc/Makefile") CONFIG_FILES="$CONFIG_FILES inc/Makefile" ;;
4701: "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
4702: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
4703:
1.4.2.1 ! misho 4704: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1 misho 4705: esac
4706: done
4707:
4708:
4709: # If the user did not use the arguments to specify the items to instantiate,
4710: # then the envvar interface is used. Set only those that are not.
4711: # We use the long form for the default assignment because of an extremely
4712: # bizarre bug on SunOS 4.1.3.
4713: if $ac_need_defaults; then
4714: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4715: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4716: fi
4717:
4718: # Have a temporary directory for convenience. Make it in the build tree
4719: # simply because there is no reason against having it here, and in addition,
4720: # creating and moving files from /tmp can sometimes cause problems.
4721: # Hook for its removal unless debugging.
4722: # Note that there is a small window in which the directory will not be cleaned:
4723: # after its creation but before its name has been assigned to `$tmp'.
4724: $debug ||
4725: {
1.4.2.1 ! misho 4726: tmp= ac_tmp=
1.1 misho 4727: trap 'exit_status=$?
1.4.2.1 ! misho 4728: : "${ac_tmp:=$tmp}"
! 4729: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1.1 misho 4730: ' 0
4731: trap 'as_fn_exit 1' 1 2 13 15
4732: }
4733: # Create a (secure) tmp directory for tmp files.
4734:
4735: {
4736: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.4.2.1 ! misho 4737: test -d "$tmp"
1.1 misho 4738: } ||
4739: {
4740: tmp=./conf$$-$RANDOM
4741: (umask 077 && mkdir "$tmp")
1.4.2.1 ! misho 4742: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
! 4743: ac_tmp=$tmp
1.1 misho 4744:
4745: # Set up the scripts for CONFIG_FILES section.
4746: # No need to generate them if there are no CONFIG_FILES.
4747: # This happens for instance with `./config.status config.h'.
4748: if test -n "$CONFIG_FILES"; then
4749:
4750:
4751: ac_cr=`echo X | tr X '\015'`
4752: # On cygwin, bash can eat \r inside `` if the user requested igncr.
4753: # But we know of no other shell where ac_cr would be empty at this
4754: # point, so we can use a bashism as a fallback.
4755: if test "x$ac_cr" = x; then
4756: eval ac_cr=\$\'\\r\'
4757: fi
4758: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4759: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
1.4.2.1 ! misho 4760: ac_cs_awk_cr='\\r'
1.1 misho 4761: else
4762: ac_cs_awk_cr=$ac_cr
4763: fi
4764:
1.4.2.1 ! misho 4765: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1.1 misho 4766: _ACEOF
4767:
4768:
4769: {
4770: echo "cat >conf$$subs.awk <<_ACEOF" &&
4771: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4772: echo "_ACEOF"
4773: } >conf$$subs.sh ||
1.4.2.1 ! misho 4774: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
! 4775: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1.1 misho 4776: ac_delim='%!_!# '
4777: for ac_last_try in false false false false false :; do
4778: . ./conf$$subs.sh ||
1.4.2.1 ! misho 4779: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.1 misho 4780:
4781: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4782: if test $ac_delim_n = $ac_delim_num; then
4783: break
4784: elif $ac_last_try; then
1.4.2.1 ! misho 4785: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.1 misho 4786: else
4787: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4788: fi
4789: done
4790: rm -f conf$$subs.sh
4791:
4792: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.4.2.1 ! misho 4793: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1.1 misho 4794: _ACEOF
4795: sed -n '
4796: h
4797: s/^/S["/; s/!.*/"]=/
4798: p
4799: g
4800: s/^[^!]*!//
4801: :repl
4802: t repl
4803: s/'"$ac_delim"'$//
4804: t delim
4805: :nl
4806: h
1.2 misho 4807: s/\(.\{148\}\)..*/\1/
1.1 misho 4808: t more1
4809: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4810: p
4811: n
4812: b repl
4813: :more1
4814: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4815: p
4816: g
4817: s/.\{148\}//
4818: t nl
4819: :delim
4820: h
1.2 misho 4821: s/\(.\{148\}\)..*/\1/
1.1 misho 4822: t more2
4823: s/["\\]/\\&/g; s/^/"/; s/$/"/
4824: p
4825: b
4826: :more2
4827: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4828: p
4829: g
4830: s/.\{148\}//
4831: t delim
4832: ' <conf$$subs.awk | sed '
4833: /^[^""]/{
4834: N
4835: s/\n//
4836: }
4837: ' >>$CONFIG_STATUS || ac_write_fail=1
4838: rm -f conf$$subs.awk
4839: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4840: _ACAWK
1.4.2.1 ! misho 4841: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1.1 misho 4842: for (key in S) S_is_set[key] = 1
4843: FS = ""
4844:
4845: }
4846: {
4847: line = $ 0
4848: nfields = split(line, field, "@")
4849: substed = 0
4850: len = length(field[1])
4851: for (i = 2; i < nfields; i++) {
4852: key = field[i]
4853: keylen = length(key)
4854: if (S_is_set[key]) {
4855: value = S[key]
4856: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4857: len += length(value) + length(field[++i])
4858: substed = 1
4859: } else
4860: len += 1 + keylen
4861: }
4862:
4863: print line
4864: }
4865:
4866: _ACAWK
4867: _ACEOF
4868: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4869: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4870: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4871: else
4872: cat
1.4.2.1 ! misho 4873: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
! 4874: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.1 misho 4875: _ACEOF
4876:
1.4.2.1 ! misho 4877: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
! 4878: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1.1 misho 4879: # trailing colons and then remove the whole line if VPATH becomes empty
4880: # (actually we leave an empty line to preserve line numbers).
4881: if test "x$srcdir" = x.; then
1.4.2.1 ! misho 4882: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
! 4883: h
! 4884: s///
! 4885: s/^/:/
! 4886: s/[ ]*$/:/
! 4887: s/:\$(srcdir):/:/g
! 4888: s/:\${srcdir}:/:/g
! 4889: s/:@srcdir@:/:/g
! 4890: s/^:*//
1.1 misho 4891: s/:*$//
1.4.2.1 ! misho 4892: x
! 4893: s/\(=[ ]*\).*/\1/
! 4894: G
! 4895: s/\n//
1.1 misho 4896: s/^[^=]*=[ ]*$//
4897: }'
4898: fi
4899:
4900: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4901: fi # test -n "$CONFIG_FILES"
4902:
4903: # Set up the scripts for CONFIG_HEADERS section.
4904: # No need to generate them if there are no CONFIG_HEADERS.
4905: # This happens for instance with `./config.status Makefile'.
4906: if test -n "$CONFIG_HEADERS"; then
1.4.2.1 ! misho 4907: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1.1 misho 4908: BEGIN {
4909: _ACEOF
4910:
4911: # Transform confdefs.h into an awk script `defines.awk', embedded as
4912: # here-document in config.status, that substitutes the proper values into
4913: # config.h.in to produce config.h.
4914:
4915: # Create a delimiter string that does not exist in confdefs.h, to ease
4916: # handling of long lines.
4917: ac_delim='%!_!# '
4918: for ac_last_try in false false :; do
1.4.2.1 ! misho 4919: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
! 4920: if test -z "$ac_tt"; then
1.1 misho 4921: break
4922: elif $ac_last_try; then
1.4.2.1 ! misho 4923: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1.1 misho 4924: else
4925: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4926: fi
4927: done
4928:
4929: # For the awk script, D is an array of macro values keyed by name,
4930: # likewise P contains macro parameters if any. Preserve backslash
4931: # newline sequences.
4932:
4933: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4934: sed -n '
4935: s/.\{148\}/&'"$ac_delim"'/g
4936: t rset
4937: :rset
4938: s/^[ ]*#[ ]*define[ ][ ]*/ /
4939: t def
4940: d
4941: :def
4942: s/\\$//
4943: t bsnl
4944: s/["\\]/\\&/g
4945: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4946: D["\1"]=" \3"/p
4947: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
4948: d
4949: :bsnl
4950: s/["\\]/\\&/g
4951: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4952: D["\1"]=" \3\\\\\\n"\\/p
4953: t cont
4954: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4955: t cont
4956: d
4957: :cont
4958: n
4959: s/.\{148\}/&'"$ac_delim"'/g
4960: t clear
4961: :clear
4962: s/\\$//
4963: t bsnlc
4964: s/["\\]/\\&/g; s/^/"/; s/$/"/p
4965: d
4966: :bsnlc
4967: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4968: b cont
4969: ' <confdefs.h | sed '
4970: s/'"$ac_delim"'/"\\\
4971: "/g' >>$CONFIG_STATUS || ac_write_fail=1
4972:
4973: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4974: for (key in D) D_is_set[key] = 1
4975: FS = ""
4976: }
4977: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4978: line = \$ 0
4979: split(line, arg, " ")
4980: if (arg[1] == "#") {
4981: defundef = arg[2]
4982: mac1 = arg[3]
4983: } else {
4984: defundef = substr(arg[1], 2)
4985: mac1 = arg[2]
4986: }
4987: split(mac1, mac2, "(") #)
4988: macro = mac2[1]
4989: prefix = substr(line, 1, index(line, defundef) - 1)
4990: if (D_is_set[macro]) {
4991: # Preserve the white space surrounding the "#".
4992: print prefix "define", macro P[macro] D[macro]
4993: next
4994: } else {
4995: # Replace #undef with comments. This is necessary, for example,
4996: # in the case of _POSIX_SOURCE, which is predefined and required
4997: # on some systems where configure will not decide to define it.
4998: if (defundef == "undef") {
4999: print "/*", prefix defundef, macro, "*/"
5000: next
5001: }
5002: }
5003: }
5004: { print }
5005: _ACAWK
5006: _ACEOF
5007: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.4.2.1 ! misho 5008: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1.1 misho 5009: fi # test -n "$CONFIG_HEADERS"
5010:
5011:
5012: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5013: shift
5014: for ac_tag
5015: do
5016: case $ac_tag in
5017: :[FHLC]) ac_mode=$ac_tag; continue;;
5018: esac
5019: case $ac_mode$ac_tag in
5020: :[FHL]*:*);;
1.4.2.1 ! misho 5021: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1.1 misho 5022: :[FH]-) ac_tag=-:-;;
5023: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5024: esac
5025: ac_save_IFS=$IFS
5026: IFS=:
5027: set x $ac_tag
5028: IFS=$ac_save_IFS
5029: shift
5030: ac_file=$1
5031: shift
5032:
5033: case $ac_mode in
5034: :L) ac_source=$1;;
5035: :[FH])
5036: ac_file_inputs=
5037: for ac_f
5038: do
5039: case $ac_f in
1.4.2.1 ! misho 5040: -) ac_f="$ac_tmp/stdin";;
1.1 misho 5041: *) # Look for the file first in the build tree, then in the source tree
5042: # (if the path is not absolute). The absolute path cannot be DOS-style,
5043: # because $ac_f cannot contain `:'.
5044: test -f "$ac_f" ||
5045: case $ac_f in
5046: [\\/$]*) false;;
5047: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5048: esac ||
1.4.2.1 ! misho 5049: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1.1 misho 5050: esac
5051: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5052: as_fn_append ac_file_inputs " '$ac_f'"
5053: done
5054:
5055: # Let's still pretend it is `configure' which instantiates (i.e., don't
5056: # use $as_me), people would be surprised to read:
5057: # /* config.h. Generated by config.status. */
5058: configure_input='Generated from '`
5059: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5060: `' by configure.'
5061: if test x"$ac_file" != x-; then
5062: configure_input="$ac_file. $configure_input"
5063: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5064: $as_echo "$as_me: creating $ac_file" >&6;}
5065: fi
5066: # Neutralize special characters interpreted by sed in replacement strings.
5067: case $configure_input in #(
5068: *\&* | *\|* | *\\* )
5069: ac_sed_conf_input=`$as_echo "$configure_input" |
5070: sed 's/[\\\\&|]/\\\\&/g'`;; #(
5071: *) ac_sed_conf_input=$configure_input;;
5072: esac
5073:
5074: case $ac_tag in
1.4.2.1 ! misho 5075: *:-:* | *:-) cat >"$ac_tmp/stdin" \
! 5076: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1.1 misho 5077: esac
5078: ;;
5079: esac
5080:
5081: ac_dir=`$as_dirname -- "$ac_file" ||
5082: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5083: X"$ac_file" : 'X\(//\)[^/]' \| \
5084: X"$ac_file" : 'X\(//\)$' \| \
5085: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5086: $as_echo X"$ac_file" |
5087: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5088: s//\1/
5089: q
5090: }
5091: /^X\(\/\/\)[^/].*/{
5092: s//\1/
5093: q
5094: }
5095: /^X\(\/\/\)$/{
5096: s//\1/
5097: q
5098: }
5099: /^X\(\/\).*/{
5100: s//\1/
5101: q
5102: }
5103: s/.*/./; q'`
5104: as_dir="$ac_dir"; as_fn_mkdir_p
5105: ac_builddir=.
5106:
5107: case "$ac_dir" in
5108: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5109: *)
5110: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5111: # A ".." for each directory in $ac_dir_suffix.
5112: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5113: case $ac_top_builddir_sub in
5114: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5115: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5116: esac ;;
5117: esac
5118: ac_abs_top_builddir=$ac_pwd
5119: ac_abs_builddir=$ac_pwd$ac_dir_suffix
5120: # for backward compatibility:
5121: ac_top_builddir=$ac_top_build_prefix
5122:
5123: case $srcdir in
5124: .) # We are building in place.
5125: ac_srcdir=.
5126: ac_top_srcdir=$ac_top_builddir_sub
5127: ac_abs_top_srcdir=$ac_pwd ;;
5128: [\\/]* | ?:[\\/]* ) # Absolute name.
5129: ac_srcdir=$srcdir$ac_dir_suffix;
5130: ac_top_srcdir=$srcdir
5131: ac_abs_top_srcdir=$srcdir ;;
5132: *) # Relative name.
5133: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5134: ac_top_srcdir=$ac_top_build_prefix$srcdir
5135: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5136: esac
5137: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5138:
5139:
5140: case $ac_mode in
5141: :F)
5142: #
5143: # CONFIG_FILE
5144: #
5145:
5146: case $INSTALL in
5147: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5148: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5149: esac
5150: _ACEOF
5151:
5152: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5153: # If the template does not know about datarootdir, expand it.
5154: # FIXME: This hack should be removed a few years after 2.60.
5155: ac_datarootdir_hack=; ac_datarootdir_seen=
5156: ac_sed_dataroot='
5157: /datarootdir/ {
5158: p
5159: q
5160: }
5161: /@datadir@/p
5162: /@docdir@/p
5163: /@infodir@/p
5164: /@localedir@/p
5165: /@mandir@/p'
5166: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5167: *datarootdir*) ac_datarootdir_seen=yes;;
5168: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5169: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5170: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5171: _ACEOF
5172: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5173: ac_datarootdir_hack='
5174: s&@datadir@&$datadir&g
5175: s&@docdir@&$docdir&g
5176: s&@infodir@&$infodir&g
5177: s&@localedir@&$localedir&g
5178: s&@mandir@&$mandir&g
5179: s&\\\${datarootdir}&$datarootdir&g' ;;
5180: esac
5181: _ACEOF
5182:
5183: # Neutralize VPATH when `$srcdir' = `.'.
5184: # Shell code in configure.ac might set extrasub.
5185: # FIXME: do we really want to maintain this feature?
5186: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5187: ac_sed_extra="$ac_vpsub
5188: $extrasub
5189: _ACEOF
5190: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5191: :t
5192: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5193: s|@configure_input@|$ac_sed_conf_input|;t t
5194: s&@top_builddir@&$ac_top_builddir_sub&;t t
5195: s&@top_build_prefix@&$ac_top_build_prefix&;t t
5196: s&@srcdir@&$ac_srcdir&;t t
5197: s&@abs_srcdir@&$ac_abs_srcdir&;t t
5198: s&@top_srcdir@&$ac_top_srcdir&;t t
5199: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5200: s&@builddir@&$ac_builddir&;t t
5201: s&@abs_builddir@&$ac_abs_builddir&;t t
5202: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5203: s&@INSTALL@&$ac_INSTALL&;t t
5204: $ac_datarootdir_hack
5205: "
1.4.2.1 ! misho 5206: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
! 5207: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 misho 5208:
5209: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1.4.2.1 ! misho 5210: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
! 5211: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
! 5212: "$ac_tmp/out"`; test -z "$ac_out"; } &&
1.1 misho 5213: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.4.2.1 ! misho 5214: which seems to be undefined. Please make sure it is defined" >&5
1.1 misho 5215: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.4.2.1 ! misho 5216: which seems to be undefined. Please make sure it is defined" >&2;}
1.1 misho 5217:
1.4.2.1 ! misho 5218: rm -f "$ac_tmp/stdin"
1.1 misho 5219: case $ac_file in
1.4.2.1 ! misho 5220: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
! 5221: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1.1 misho 5222: esac \
1.4.2.1 ! misho 5223: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 misho 5224: ;;
5225: :H)
5226: #
5227: # CONFIG_HEADER
5228: #
5229: if test x"$ac_file" != x-; then
5230: {
5231: $as_echo "/* $configure_input */" \
1.4.2.1 ! misho 5232: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
! 5233: } >"$ac_tmp/config.h" \
! 5234: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
! 5235: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1.1 misho 5236: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5237: $as_echo "$as_me: $ac_file is unchanged" >&6;}
5238: else
5239: rm -f "$ac_file"
1.4.2.1 ! misho 5240: mv "$ac_tmp/config.h" "$ac_file" \
! 5241: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 misho 5242: fi
5243: else
5244: $as_echo "/* $configure_input */" \
1.4.2.1 ! misho 5245: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
! 5246: || as_fn_error $? "could not create -" "$LINENO" 5
1.1 misho 5247: fi
5248: ;;
5249:
5250:
5251: esac
5252:
5253: done # for ac_tag
5254:
5255:
5256: as_fn_exit 0
5257: _ACEOF
5258: ac_clean_files=$ac_clean_files_save
5259:
5260: test $ac_write_fail = 0 ||
1.4.2.1 ! misho 5261: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1.1 misho 5262:
5263:
5264: # configure is writing to config.log, and then calls config.status.
5265: # config.status does its own redirection, appending to config.log.
5266: # Unfortunately, on DOS this fails, as config.log is still kept open
5267: # by configure, so config.status won't be able to write to it; its
5268: # output is simply discarded. So we exec the FD to /dev/null,
5269: # effectively closing config.log, so it can be properly (re)opened and
5270: # appended to by config.status. When coming back to configure, we
5271: # need to make the FD available again.
5272: if test "$no_create" != yes; then
5273: ac_cs_success=:
5274: ac_config_status_args=
5275: test "$silent" = yes &&
5276: ac_config_status_args="$ac_config_status_args --quiet"
5277: exec 5>/dev/null
5278: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5279: exec 5>>config.log
5280: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5281: # would make configure fail if this is the last instruction.
1.4.2.1 ! misho 5282: $ac_cs_success || as_fn_exit 1
1.1 misho 5283: fi
5284: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5285: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5286: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5287: fi
5288:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>