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