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