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