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