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