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