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