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