Annotation of libaitsched/configure, revision 1.3
1.1 misho 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.3 ! misho 3: # Generated by GNU Autoconf 2.65 for libaitsched 1.2.
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 ! misho 555: PACKAGE_VERSION='1.2'
! 556: PACKAGE_STRING='libaitsched 1.2'
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 ! misho 1219: \`configure' configures libaitsched 1.2 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 ! misho 1285: short | recursive ) echo "Configuration of libaitsched 1.2:";;
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 ! misho 1371: libaitsched configure 1.2
! 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:
1423: # ac_fn_c_try_cpp LINENO
1424: # ----------------------
1425: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1426: ac_fn_c_try_cpp ()
1427: {
1428: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1429: if { { ac_try="$ac_cpp conftest.$ac_ext"
1430: case "(($ac_try" in
1431: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1432: *) ac_try_echo=$ac_try;;
1433: esac
1434: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1435: $as_echo "$ac_try_echo"; } >&5
1436: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1437: ac_status=$?
1438: if test -s conftest.err; then
1439: grep -v '^ *+' conftest.err >conftest.er1
1440: cat conftest.er1 >&5
1441: mv -f conftest.er1 conftest.err
1442: fi
1443: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.3 ! misho 1444: test $ac_status = 0; } >/dev/null && {
1.1 misho 1445: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1446: test ! -s conftest.err
1447: }; then :
1448: ac_retval=0
1449: else
1450: $as_echo "$as_me: failed program was:" >&5
1451: sed 's/^/| /' conftest.$ac_ext >&5
1452:
1453: ac_retval=1
1454: fi
1.3 ! misho 1455: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.2 misho 1456: as_fn_set_status $ac_retval
1.1 misho 1457:
1458: } # ac_fn_c_try_cpp
1459:
1460: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1461: # -------------------------------------------------------
1462: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1463: # the include files in INCLUDES and setting the cache variable VAR
1464: # accordingly.
1465: ac_fn_c_check_header_mongrel ()
1466: {
1467: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.3 ! misho 1468: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1.1 misho 1469: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1470: $as_echo_n "checking for $2... " >&6; }
1.3 ! misho 1471: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1.1 misho 1472: $as_echo_n "(cached) " >&6
1473: fi
1474: eval ac_res=\$$3
1475: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1476: $as_echo "$ac_res" >&6; }
1477: else
1478: # Is the header compilable?
1479: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1480: $as_echo_n "checking $2 usability... " >&6; }
1481: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1482: /* end confdefs.h. */
1483: $4
1484: #include <$2>
1485: _ACEOF
1486: if ac_fn_c_try_compile "$LINENO"; then :
1487: ac_header_compiler=yes
1488: else
1489: ac_header_compiler=no
1490: fi
1491: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1492: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1493: $as_echo "$ac_header_compiler" >&6; }
1494:
1495: # Is the header present?
1496: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1497: $as_echo_n "checking $2 presence... " >&6; }
1498: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1499: /* end confdefs.h. */
1500: #include <$2>
1501: _ACEOF
1502: if ac_fn_c_try_cpp "$LINENO"; then :
1503: ac_header_preproc=yes
1504: else
1505: ac_header_preproc=no
1506: fi
1.3 ! misho 1507: rm -f conftest.err conftest.$ac_ext
1.1 misho 1508: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1509: $as_echo "$ac_header_preproc" >&6; }
1510:
1511: # So? What about this header?
1512: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1513: yes:no: )
1514: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1515: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1516: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1517: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1518: ;;
1519: no:yes:* )
1520: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1521: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1522: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1523: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1524: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1525: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1526: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1527: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1528: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1529: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1.3 ! misho 1530: ( cat <<\_ASBOX
! 1531: ## ----------------------------------- ##
1.1 misho 1532: ## Report this to misho@openbsd-bg.org ##
1.3 ! misho 1533: ## ----------------------------------- ##
! 1534: _ASBOX
1.1 misho 1535: ) | sed "s/^/$as_me: WARNING: /" >&2
1536: ;;
1537: esac
1538: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1539: $as_echo_n "checking for $2... " >&6; }
1.3 ! misho 1540: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1.1 misho 1541: $as_echo_n "(cached) " >&6
1542: else
1543: eval "$3=\$ac_header_compiler"
1544: fi
1545: eval ac_res=\$$3
1546: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1547: $as_echo "$ac_res" >&6; }
1548: fi
1.3 ! misho 1549: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1 misho 1550:
1551: } # ac_fn_c_check_header_mongrel
1552:
1553: # ac_fn_c_try_run LINENO
1554: # ----------------------
1555: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1556: # that executables *can* be run.
1557: ac_fn_c_try_run ()
1558: {
1559: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560: if { { ac_try="$ac_link"
1561: case "(($ac_try" in
1562: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563: *) ac_try_echo=$ac_try;;
1564: esac
1565: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566: $as_echo "$ac_try_echo"; } >&5
1567: (eval "$ac_link") 2>&5
1568: ac_status=$?
1569: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1571: { { case "(($ac_try" in
1572: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573: *) ac_try_echo=$ac_try;;
1574: esac
1575: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576: $as_echo "$ac_try_echo"; } >&5
1577: (eval "$ac_try") 2>&5
1578: ac_status=$?
1579: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580: test $ac_status = 0; }; }; then :
1581: ac_retval=0
1582: else
1583: $as_echo "$as_me: program exited with status $ac_status" >&5
1584: $as_echo "$as_me: failed program was:" >&5
1585: sed 's/^/| /' conftest.$ac_ext >&5
1586:
1587: ac_retval=$ac_status
1588: fi
1589: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.3 ! misho 1590: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.2 misho 1591: as_fn_set_status $ac_retval
1.1 misho 1592:
1593: } # ac_fn_c_try_run
1594:
1595: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1596: # -------------------------------------------------------
1597: # Tests whether HEADER exists and can be compiled using the include files in
1598: # INCLUDES, setting the cache variable VAR accordingly.
1599: ac_fn_c_check_header_compile ()
1600: {
1601: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1603: $as_echo_n "checking for $2... " >&6; }
1.3 ! misho 1604: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1.1 misho 1605: $as_echo_n "(cached) " >&6
1606: else
1607: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1608: /* end confdefs.h. */
1609: $4
1610: #include <$2>
1611: _ACEOF
1612: if ac_fn_c_try_compile "$LINENO"; then :
1613: eval "$3=yes"
1614: else
1615: eval "$3=no"
1616: fi
1617: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1618: fi
1619: eval ac_res=\$$3
1620: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1621: $as_echo "$ac_res" >&6; }
1.3 ! misho 1622: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1 misho 1623:
1624: } # ac_fn_c_check_header_compile
1625:
1626: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1627: # -------------------------------------------
1628: # Tests whether TYPE exists after having included INCLUDES, setting cache
1629: # variable VAR accordingly.
1630: ac_fn_c_check_type ()
1631: {
1632: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1634: $as_echo_n "checking for $2... " >&6; }
1.3 ! misho 1635: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1.1 misho 1636: $as_echo_n "(cached) " >&6
1637: else
1638: eval "$3=no"
1639: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1640: /* end confdefs.h. */
1641: $4
1642: int
1643: main ()
1644: {
1645: if (sizeof ($2))
1646: return 0;
1647: ;
1648: return 0;
1649: }
1650: _ACEOF
1651: if ac_fn_c_try_compile "$LINENO"; then :
1652: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653: /* end confdefs.h. */
1654: $4
1655: int
1656: main ()
1657: {
1658: if (sizeof (($2)))
1659: return 0;
1660: ;
1661: return 0;
1662: }
1663: _ACEOF
1664: if ac_fn_c_try_compile "$LINENO"; then :
1665:
1666: else
1667: eval "$3=yes"
1668: fi
1669: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1670: fi
1671: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1672: fi
1673: eval ac_res=\$$3
1674: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1675: $as_echo "$ac_res" >&6; }
1.3 ! misho 1676: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1 misho 1677:
1678: } # ac_fn_c_check_type
1679:
1680: # ac_fn_c_try_link LINENO
1681: # -----------------------
1682: # Try to link conftest.$ac_ext, and return whether this succeeded.
1683: ac_fn_c_try_link ()
1684: {
1685: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686: rm -f conftest.$ac_objext conftest$ac_exeext
1687: if { { ac_try="$ac_link"
1688: case "(($ac_try" in
1689: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690: *) ac_try_echo=$ac_try;;
1691: esac
1692: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693: $as_echo "$ac_try_echo"; } >&5
1694: (eval "$ac_link") 2>conftest.err
1695: ac_status=$?
1696: if test -s conftest.err; then
1697: grep -v '^ *+' conftest.err >conftest.er1
1698: cat conftest.er1 >&5
1699: mv -f conftest.er1 conftest.err
1700: fi
1701: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702: test $ac_status = 0; } && {
1703: test -z "$ac_c_werror_flag" ||
1704: test ! -s conftest.err
1705: } && test -s conftest$ac_exeext && {
1706: test "$cross_compiling" = yes ||
1707: $as_test_x conftest$ac_exeext
1708: }; then :
1709: ac_retval=0
1710: else
1711: $as_echo "$as_me: failed program was:" >&5
1712: sed 's/^/| /' conftest.$ac_ext >&5
1713:
1714: ac_retval=1
1715: fi
1716: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1717: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1718: # interfere with the next link command; also delete a directory that is
1719: # left behind by Apple's compiler. We do this before executing the actions.
1720: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.3 ! misho 1721: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.2 misho 1722: as_fn_set_status $ac_retval
1.1 misho 1723:
1724: } # ac_fn_c_try_link
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 ! misho 1796: It was created by libaitsched $as_me 1.2, which was
! 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:
3358: # Checks for header files.
3359:
3360: ac_ext=c
3361: ac_cpp='$CPP $CPPFLAGS'
3362: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3365: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3366: $as_echo_n "checking how to run the C preprocessor... " >&6; }
3367: # On Suns, sometimes $CPP names a directory.
3368: if test -n "$CPP" && test -d "$CPP"; then
3369: CPP=
3370: fi
3371: if test -z "$CPP"; then
1.3 ! misho 3372: if test "${ac_cv_prog_CPP+set}" = set; then :
1.1 misho 3373: $as_echo_n "(cached) " >&6
3374: else
3375: # Double quotes because CPP needs to be expanded
3376: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3377: do
3378: ac_preproc_ok=false
3379: for ac_c_preproc_warn_flag in '' yes
3380: do
3381: # Use a header file that comes with gcc, so configuring glibc
3382: # with a fresh cross-compiler works.
3383: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3384: # <limits.h> exists even on freestanding compilers.
3385: # On the NeXT, cc -E runs the code through the compiler's parser,
3386: # not just through cpp. "Syntax error" is here to catch this case.
3387: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388: /* end confdefs.h. */
3389: #ifdef __STDC__
3390: # include <limits.h>
3391: #else
3392: # include <assert.h>
3393: #endif
3394: Syntax error
3395: _ACEOF
3396: if ac_fn_c_try_cpp "$LINENO"; then :
3397:
3398: else
3399: # Broken: fails on valid input.
3400: continue
3401: fi
1.3 ! misho 3402: rm -f conftest.err conftest.$ac_ext
1.1 misho 3403:
3404: # OK, works on sane cases. Now check whether nonexistent headers
3405: # can be detected and how.
3406: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407: /* end confdefs.h. */
3408: #include <ac_nonexistent.h>
3409: _ACEOF
3410: if ac_fn_c_try_cpp "$LINENO"; then :
3411: # Broken: success on invalid input.
3412: continue
3413: else
3414: # Passes both tests.
3415: ac_preproc_ok=:
3416: break
3417: fi
1.3 ! misho 3418: rm -f conftest.err conftest.$ac_ext
1.1 misho 3419:
3420: done
3421: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.3 ! misho 3422: rm -f conftest.err conftest.$ac_ext
1.1 misho 3423: if $ac_preproc_ok; then :
3424: break
3425: fi
3426:
3427: done
3428: ac_cv_prog_CPP=$CPP
3429:
3430: fi
3431: CPP=$ac_cv_prog_CPP
3432: else
3433: ac_cv_prog_CPP=$CPP
3434: fi
3435: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3436: $as_echo "$CPP" >&6; }
3437: ac_preproc_ok=false
3438: for ac_c_preproc_warn_flag in '' yes
3439: do
3440: # Use a header file that comes with gcc, so configuring glibc
3441: # with a fresh cross-compiler works.
3442: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3443: # <limits.h> exists even on freestanding compilers.
3444: # On the NeXT, cc -E runs the code through the compiler's parser,
3445: # not just through cpp. "Syntax error" is here to catch this case.
3446: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447: /* end confdefs.h. */
3448: #ifdef __STDC__
3449: # include <limits.h>
3450: #else
3451: # include <assert.h>
3452: #endif
3453: Syntax error
3454: _ACEOF
3455: if ac_fn_c_try_cpp "$LINENO"; then :
3456:
3457: else
3458: # Broken: fails on valid input.
3459: continue
3460: fi
1.3 ! misho 3461: rm -f conftest.err conftest.$ac_ext
1.1 misho 3462:
3463: # OK, works on sane cases. Now check whether nonexistent headers
3464: # can be detected and how.
3465: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466: /* end confdefs.h. */
3467: #include <ac_nonexistent.h>
3468: _ACEOF
3469: if ac_fn_c_try_cpp "$LINENO"; then :
3470: # Broken: success on invalid input.
3471: continue
3472: else
3473: # Passes both tests.
3474: ac_preproc_ok=:
3475: break
3476: fi
1.3 ! misho 3477: rm -f conftest.err conftest.$ac_ext
1.1 misho 3478:
3479: done
3480: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.3 ! misho 3481: rm -f conftest.err conftest.$ac_ext
1.1 misho 3482: if $ac_preproc_ok; then :
3483:
3484: else
3485: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3486: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.3 ! misho 3487: as_fn_error "C preprocessor \"$CPP\" fails sanity check
! 3488: See \`config.log' for more details." "$LINENO" 5; }
1.1 misho 3489: fi
3490:
3491: ac_ext=c
3492: ac_cpp='$CPP $CPPFLAGS'
3493: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496:
3497:
3498: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3499: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
1.3 ! misho 3500: if test "${ac_cv_path_GREP+set}" = set; then :
1.1 misho 3501: $as_echo_n "(cached) " >&6
3502: else
3503: if test -z "$GREP"; then
3504: ac_path_GREP_found=false
3505: # Loop through the user's path and test for each of PROGNAME-LIST
3506: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3508: do
3509: IFS=$as_save_IFS
3510: test -z "$as_dir" && as_dir=.
3511: for ac_prog in grep ggrep; do
3512: for ac_exec_ext in '' $ac_executable_extensions; do
3513: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3514: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3515: # Check for GNU ac_path_GREP and select it if it is found.
3516: # Check for GNU $ac_path_GREP
3517: case `"$ac_path_GREP" --version 2>&1` in
3518: *GNU*)
3519: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3520: *)
3521: ac_count=0
3522: $as_echo_n 0123456789 >"conftest.in"
3523: while :
3524: do
3525: cat "conftest.in" "conftest.in" >"conftest.tmp"
3526: mv "conftest.tmp" "conftest.in"
3527: cp "conftest.in" "conftest.nl"
3528: $as_echo 'GREP' >> "conftest.nl"
3529: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3530: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3531: as_fn_arith $ac_count + 1 && ac_count=$as_val
3532: if test $ac_count -gt ${ac_path_GREP_max-0}; then
3533: # Best one so far, save it but keep looking for a better one
3534: ac_cv_path_GREP="$ac_path_GREP"
3535: ac_path_GREP_max=$ac_count
3536: fi
3537: # 10*(2^10) chars as input seems more than enough
3538: test $ac_count -gt 10 && break
3539: done
3540: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3541: esac
3542:
3543: $ac_path_GREP_found && break 3
3544: done
3545: done
3546: done
3547: IFS=$as_save_IFS
3548: if test -z "$ac_cv_path_GREP"; then
1.3 ! misho 3549: as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.1 misho 3550: fi
3551: else
3552: ac_cv_path_GREP=$GREP
3553: fi
3554:
3555: fi
3556: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3557: $as_echo "$ac_cv_path_GREP" >&6; }
3558: GREP="$ac_cv_path_GREP"
3559:
3560:
3561: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3562: $as_echo_n "checking for egrep... " >&6; }
1.3 ! misho 3563: if test "${ac_cv_path_EGREP+set}" = set; then :
1.1 misho 3564: $as_echo_n "(cached) " >&6
3565: else
3566: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3567: then ac_cv_path_EGREP="$GREP -E"
3568: else
3569: if test -z "$EGREP"; then
3570: ac_path_EGREP_found=false
3571: # Loop through the user's path and test for each of PROGNAME-LIST
3572: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3574: do
3575: IFS=$as_save_IFS
3576: test -z "$as_dir" && as_dir=.
3577: for ac_prog in egrep; do
3578: for ac_exec_ext in '' $ac_executable_extensions; do
3579: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3580: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3581: # Check for GNU ac_path_EGREP and select it if it is found.
3582: # Check for GNU $ac_path_EGREP
3583: case `"$ac_path_EGREP" --version 2>&1` in
3584: *GNU*)
3585: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3586: *)
3587: ac_count=0
3588: $as_echo_n 0123456789 >"conftest.in"
3589: while :
3590: do
3591: cat "conftest.in" "conftest.in" >"conftest.tmp"
3592: mv "conftest.tmp" "conftest.in"
3593: cp "conftest.in" "conftest.nl"
3594: $as_echo 'EGREP' >> "conftest.nl"
3595: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3596: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3597: as_fn_arith $ac_count + 1 && ac_count=$as_val
3598: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3599: # Best one so far, save it but keep looking for a better one
3600: ac_cv_path_EGREP="$ac_path_EGREP"
3601: ac_path_EGREP_max=$ac_count
3602: fi
3603: # 10*(2^10) chars as input seems more than enough
3604: test $ac_count -gt 10 && break
3605: done
3606: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3607: esac
3608:
3609: $ac_path_EGREP_found && break 3
3610: done
3611: done
3612: done
3613: IFS=$as_save_IFS
3614: if test -z "$ac_cv_path_EGREP"; then
1.3 ! misho 3615: as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.1 misho 3616: fi
3617: else
3618: ac_cv_path_EGREP=$EGREP
3619: fi
3620:
3621: fi
3622: fi
3623: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3624: $as_echo "$ac_cv_path_EGREP" >&6; }
3625: EGREP="$ac_cv_path_EGREP"
3626:
3627:
3628: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3629: $as_echo_n "checking for ANSI C header files... " >&6; }
1.3 ! misho 3630: if test "${ac_cv_header_stdc+set}" = set; then :
1.1 misho 3631: $as_echo_n "(cached) " >&6
3632: else
3633: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634: /* end confdefs.h. */
3635: #include <stdlib.h>
3636: #include <stdarg.h>
3637: #include <string.h>
3638: #include <float.h>
3639:
3640: int
3641: main ()
3642: {
3643:
3644: ;
3645: return 0;
3646: }
3647: _ACEOF
3648: if ac_fn_c_try_compile "$LINENO"; then :
3649: ac_cv_header_stdc=yes
3650: else
3651: ac_cv_header_stdc=no
3652: fi
3653: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654:
3655: if test $ac_cv_header_stdc = yes; then
3656: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3657: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658: /* end confdefs.h. */
3659: #include <string.h>
3660:
3661: _ACEOF
3662: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3663: $EGREP "memchr" >/dev/null 2>&1; then :
3664:
3665: else
3666: ac_cv_header_stdc=no
3667: fi
3668: rm -f conftest*
3669:
3670: fi
3671:
3672: if test $ac_cv_header_stdc = yes; then
3673: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3674: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675: /* end confdefs.h. */
3676: #include <stdlib.h>
3677:
3678: _ACEOF
3679: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3680: $EGREP "free" >/dev/null 2>&1; then :
3681:
3682: else
3683: ac_cv_header_stdc=no
3684: fi
3685: rm -f conftest*
3686:
3687: fi
3688:
3689: if test $ac_cv_header_stdc = yes; then
3690: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3691: if test "$cross_compiling" = yes; then :
3692: :
3693: else
3694: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695: /* end confdefs.h. */
3696: #include <ctype.h>
3697: #include <stdlib.h>
3698: #if ((' ' & 0x0FF) == 0x020)
3699: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3700: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3701: #else
3702: # define ISLOWER(c) \
3703: (('a' <= (c) && (c) <= 'i') \
3704: || ('j' <= (c) && (c) <= 'r') \
3705: || ('s' <= (c) && (c) <= 'z'))
3706: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3707: #endif
3708:
3709: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3710: int
3711: main ()
3712: {
3713: int i;
3714: for (i = 0; i < 256; i++)
3715: if (XOR (islower (i), ISLOWER (i))
3716: || toupper (i) != TOUPPER (i))
3717: return 2;
3718: return 0;
3719: }
3720: _ACEOF
3721: if ac_fn_c_try_run "$LINENO"; then :
3722:
3723: else
3724: ac_cv_header_stdc=no
3725: fi
3726: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3727: conftest.$ac_objext conftest.beam conftest.$ac_ext
3728: fi
3729:
3730: fi
3731: fi
3732: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3733: $as_echo "$ac_cv_header_stdc" >&6; }
3734: if test $ac_cv_header_stdc = yes; then
3735:
3736: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3737:
3738: fi
3739:
3740: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3741: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3742: inttypes.h stdint.h unistd.h
3743: do :
3744: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3745: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3746: "
1.3 ! misho 3747: eval as_val=\$$as_ac_Header
! 3748: if test "x$as_val" = x""yes; then :
1.1 misho 3749: cat >>confdefs.h <<_ACEOF
3750: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3751: _ACEOF
3752:
3753: fi
3754:
3755: done
3756:
3757:
3758: for ac_header in stdint.h stdlib.h string.h sys/time.h unistd.h
3759: do :
3760: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3761: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
1.3 ! misho 3762: eval as_val=\$$as_ac_Header
! 3763: if test "x$as_val" = x""yes; then :
1.1 misho 3764: cat >>confdefs.h <<_ACEOF
3765: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3766: _ACEOF
3767:
3768: fi
3769:
3770: done
3771:
3772:
3773: # Checks for typedefs, structures, and compiler characteristics.
3774: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3775: $as_echo_n "checking for inline... " >&6; }
1.3 ! misho 3776: if test "${ac_cv_c_inline+set}" = set; then :
1.1 misho 3777: $as_echo_n "(cached) " >&6
3778: else
3779: ac_cv_c_inline=no
3780: for ac_kw in inline __inline__ __inline; do
3781: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782: /* end confdefs.h. */
3783: #ifndef __cplusplus
3784: typedef int foo_t;
3785: static $ac_kw foo_t static_foo () {return 0; }
3786: $ac_kw foo_t foo () {return 0; }
3787: #endif
3788:
3789: _ACEOF
3790: if ac_fn_c_try_compile "$LINENO"; then :
3791: ac_cv_c_inline=$ac_kw
3792: fi
3793: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3794: test "$ac_cv_c_inline" != no && break
3795: done
3796:
3797: fi
3798: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
3799: $as_echo "$ac_cv_c_inline" >&6; }
3800:
3801: case $ac_cv_c_inline in
3802: inline | yes) ;;
3803: *)
3804: case $ac_cv_c_inline in
3805: no) ac_val=;;
3806: *) ac_val=$ac_cv_c_inline;;
3807: esac
3808: cat >>confdefs.h <<_ACEOF
3809: #ifndef __cplusplus
3810: #define inline $ac_val
3811: #endif
3812: _ACEOF
3813: ;;
3814: esac
3815:
3816: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
1.3 ! misho 3817: if test "x$ac_cv_type_size_t" = x""yes; then :
1.1 misho 3818:
3819: else
3820:
3821: cat >>confdefs.h <<_ACEOF
3822: #define size_t unsigned int
3823: _ACEOF
3824:
3825: fi
3826:
3827:
3828: # Checks for library functions.
3829: for ac_header in stdlib.h
3830: do :
3831: ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
1.3 ! misho 3832: if test "x$ac_cv_header_stdlib_h" = x""yes; then :
1.1 misho 3833: cat >>confdefs.h <<_ACEOF
3834: #define HAVE_STDLIB_H 1
3835: _ACEOF
3836:
3837: fi
3838:
3839: done
3840:
3841: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
3842: $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
1.3 ! misho 3843: if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
1.1 misho 3844: $as_echo_n "(cached) " >&6
3845: else
3846: if test "$cross_compiling" = yes; then :
3847: ac_cv_func_malloc_0_nonnull=no
3848: else
3849: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850: /* end confdefs.h. */
3851: #if defined STDC_HEADERS || defined HAVE_STDLIB_H
3852: # include <stdlib.h>
3853: #else
3854: char *malloc ();
3855: #endif
3856:
3857: int
3858: main ()
3859: {
3860: return ! malloc (0);
3861: ;
3862: return 0;
3863: }
3864: _ACEOF
3865: if ac_fn_c_try_run "$LINENO"; then :
3866: ac_cv_func_malloc_0_nonnull=yes
3867: else
3868: ac_cv_func_malloc_0_nonnull=no
3869: fi
3870: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3871: conftest.$ac_objext conftest.beam conftest.$ac_ext
3872: fi
3873:
3874: fi
3875: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
3876: $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
3877: if test $ac_cv_func_malloc_0_nonnull = yes; then :
3878:
3879: $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
3880:
3881: else
3882: $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
3883:
3884: case " $LIBOBJS " in
3885: *" malloc.$ac_objext "* ) ;;
3886: *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
3887: ;;
3888: esac
3889:
3890:
3891: $as_echo "#define malloc rpl_malloc" >>confdefs.h
3892:
3893: fi
3894:
3895:
3896: for ac_func in clock_gettime memset strerror
3897: do :
3898: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3899: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.3 ! misho 3900: eval as_val=\$$as_ac_var
! 3901: if test "x$as_val" = x""yes; then :
1.1 misho 3902: cat >>confdefs.h <<_ACEOF
3903: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3904: _ACEOF
3905:
3906: fi
3907: done
3908:
3909:
3910: DEBUG=no
3911: { $as_echo "$as_me:${as_lineno-$LINENO}: checking Debug Build" >&5
3912: $as_echo_n "checking Debug Build... " >&6; }
3913: # Check whether --enable-debug was given.
3914: if test "${enable_debug+set}" = set; then :
3915: enableval=$enable_debug; DEBUG=$enableval
3916: case "$enableval" in
3917: yes)
3918:
3919: $as_echo "#define __DEBUG /**/" >>confdefs.h
3920:
3921: CFLAGS="-g ${CFLAGS}"
3922: ;;
3923: *)
3924:
3925: $as_echo "#define NDEBUG /**/" >>confdefs.h
3926:
3927: ;;
3928: esac
3929: else
3930:
3931: $as_echo "#define NDEBUG /**/" >>confdefs.h
3932:
3933: fi
3934:
3935: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
3936: $as_echo "$DEBUG" >&6; }
3937:
3938: ac_config_files="$ac_config_files Makefile inc/Makefile lib/Makefile src/Makefile"
3939:
3940: cat >confcache <<\_ACEOF
3941: # This file is a shell script that caches the results of configure
3942: # tests run on this system so they can be shared between configure
3943: # scripts and configure runs, see configure's option --config-cache.
3944: # It is not useful on other systems. If it contains results you don't
3945: # want to keep, you may remove or edit it.
3946: #
3947: # config.status only pays attention to the cache file if you give it
3948: # the --recheck option to rerun configure.
3949: #
3950: # `ac_cv_env_foo' variables (set or unset) will be overridden when
3951: # loading this file, other *unset* `ac_cv_foo' will be assigned the
3952: # following values.
3953:
3954: _ACEOF
3955:
3956: # The following way of writing the cache mishandles newlines in values,
3957: # but we know of no workaround that is simple, portable, and efficient.
3958: # So, we kill variables containing newlines.
3959: # Ultrix sh set writes to stderr and can't be redirected directly,
3960: # and sets the high bit in the cache file unless we assign to the vars.
3961: (
3962: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3963: eval ac_val=\$$ac_var
3964: case $ac_val in #(
3965: *${as_nl}*)
3966: case $ac_var in #(
3967: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3968: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3969: esac
3970: case $ac_var in #(
3971: _ | IFS | as_nl) ;; #(
3972: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3973: *) { eval $ac_var=; unset $ac_var;} ;;
3974: esac ;;
3975: esac
3976: done
3977:
3978: (set) 2>&1 |
3979: case $as_nl`(ac_space=' '; set) 2>&1` in #(
3980: *${as_nl}ac_space=\ *)
3981: # `set' does not quote correctly, so add quotes: double-quote
3982: # substitution turns \\\\ into \\, and sed turns \\ into \.
3983: sed -n \
3984: "s/'/'\\\\''/g;
3985: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3986: ;; #(
3987: *)
3988: # `set' quotes correctly as required by POSIX, so do not add quotes.
3989: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3990: ;;
3991: esac |
3992: sort
3993: ) |
3994: sed '
3995: /^ac_cv_env_/b end
3996: t clear
3997: :clear
3998: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3999: t end
4000: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4001: :end' >>confcache
4002: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4003: if test -w "$cache_file"; then
1.3 ! misho 4004: test "x$cache_file" != "x/dev/null" &&
1.1 misho 4005: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4006: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.3 ! misho 4007: cat confcache >$cache_file
1.1 misho 4008: else
4009: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4010: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4011: fi
4012: fi
4013: rm -f confcache
4014:
4015: test "x$prefix" = xNONE && prefix=$ac_default_prefix
4016: # Let make expand exec_prefix.
4017: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4018:
4019: DEFS=-DHAVE_CONFIG_H
4020:
4021: ac_libobjs=
4022: ac_ltlibobjs=
4023: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4024: # 1. Remove the extension, and $U if already installed.
4025: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4026: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4027: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4028: # will be set to the directory where LIBOBJS objects are built.
4029: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4030: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4031: done
4032: LIBOBJS=$ac_libobjs
4033:
4034: LTLIBOBJS=$ac_ltlibobjs
4035:
4036:
4037:
1.3 ! misho 4038: : ${CONFIG_STATUS=./config.status}
1.1 misho 4039: ac_write_fail=0
4040: ac_clean_files_save=$ac_clean_files
4041: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4042: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4043: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4044: as_write_fail=0
4045: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4046: #! $SHELL
4047: # Generated by $as_me.
4048: # Run this file to recreate the current configuration.
4049: # Compiler output produced by configure, useful for debugging
4050: # configure, is in config.log if it exists.
4051:
4052: debug=false
4053: ac_cs_recheck=false
4054: ac_cs_silent=false
4055:
4056: SHELL=\${CONFIG_SHELL-$SHELL}
4057: export SHELL
4058: _ASEOF
4059: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4060: ## -------------------- ##
4061: ## M4sh Initialization. ##
4062: ## -------------------- ##
4063:
4064: # Be more Bourne compatible
4065: DUALCASE=1; export DUALCASE # for MKS sh
4066: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4067: emulate sh
4068: NULLCMD=:
4069: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4070: # is contrary to our usage. Disable this feature.
4071: alias -g '${1+"$@"}'='"$@"'
4072: setopt NO_GLOB_SUBST
4073: else
4074: case `(set -o) 2>/dev/null` in #(
4075: *posix*) :
4076: set -o posix ;; #(
4077: *) :
4078: ;;
4079: esac
4080: fi
4081:
4082:
4083: as_nl='
4084: '
4085: export as_nl
4086: # Printing a long string crashes Solaris 7 /usr/bin/printf.
4087: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4088: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4089: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4090: # Prefer a ksh shell builtin over an external printf program on Solaris,
4091: # but without wasting forks for bash or zsh.
4092: if test -z "$BASH_VERSION$ZSH_VERSION" \
4093: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4094: as_echo='print -r --'
4095: as_echo_n='print -rn --'
4096: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4097: as_echo='printf %s\n'
4098: as_echo_n='printf %s'
4099: else
4100: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4101: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4102: as_echo_n='/usr/ucb/echo -n'
4103: else
4104: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4105: as_echo_n_body='eval
4106: arg=$1;
4107: case $arg in #(
4108: *"$as_nl"*)
4109: expr "X$arg" : "X\\(.*\\)$as_nl";
4110: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4111: esac;
4112: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4113: '
4114: export as_echo_n_body
4115: as_echo_n='sh -c $as_echo_n_body as_echo'
4116: fi
4117: export as_echo_body
4118: as_echo='sh -c $as_echo_body as_echo'
4119: fi
4120:
4121: # The user is always right.
4122: if test "${PATH_SEPARATOR+set}" != set; then
4123: PATH_SEPARATOR=:
4124: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4125: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4126: PATH_SEPARATOR=';'
4127: }
4128: fi
4129:
4130:
4131: # IFS
4132: # We need space, tab and new line, in precisely that order. Quoting is
4133: # there to prevent editors from complaining about space-tab.
4134: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4135: # splitting by setting IFS to empty value.)
4136: IFS=" "" $as_nl"
4137:
4138: # Find who we are. Look in the path if we contain no directory separator.
4139: case $0 in #((
4140: *[\\/]* ) as_myself=$0 ;;
4141: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142: for as_dir in $PATH
4143: do
4144: IFS=$as_save_IFS
4145: test -z "$as_dir" && as_dir=.
4146: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4147: done
4148: IFS=$as_save_IFS
4149:
4150: ;;
4151: esac
4152: # We did not find ourselves, most probably we were run as `sh COMMAND'
4153: # in which case we are not to be found in the path.
4154: if test "x$as_myself" = x; then
4155: as_myself=$0
4156: fi
4157: if test ! -f "$as_myself"; then
4158: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4159: exit 1
4160: fi
4161:
4162: # Unset variables that we do not need and which cause bugs (e.g. in
4163: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4164: # suppresses any "Segmentation fault" message there. '((' could
4165: # trigger a bug in pdksh 5.2.14.
4166: for as_var in BASH_ENV ENV MAIL MAILPATH
4167: do eval test x\${$as_var+set} = xset \
4168: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4169: done
4170: PS1='$ '
4171: PS2='> '
4172: PS4='+ '
4173:
4174: # NLS nuisances.
4175: LC_ALL=C
4176: export LC_ALL
4177: LANGUAGE=C
4178: export LANGUAGE
4179:
4180: # CDPATH.
4181: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4182:
4183:
1.3 ! misho 4184: # as_fn_error ERROR [LINENO LOG_FD]
! 4185: # ---------------------------------
1.1 misho 4186: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4187: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.3 ! misho 4188: # script with status $?, using 1 if that was 0.
1.1 misho 4189: as_fn_error ()
4190: {
1.3 ! misho 4191: as_status=$?; test $as_status -eq 0 && as_status=1
! 4192: if test "$3"; then
! 4193: as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 4194: $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1.1 misho 4195: fi
1.3 ! misho 4196: $as_echo "$as_me: error: $1" >&2
1.1 misho 4197: as_fn_exit $as_status
4198: } # as_fn_error
4199:
4200:
4201: # as_fn_set_status STATUS
4202: # -----------------------
4203: # Set $? to STATUS, without forking.
4204: as_fn_set_status ()
4205: {
4206: return $1
4207: } # as_fn_set_status
4208:
4209: # as_fn_exit STATUS
4210: # -----------------
4211: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4212: as_fn_exit ()
4213: {
4214: set +e
4215: as_fn_set_status $1
4216: exit $1
4217: } # as_fn_exit
4218:
4219: # as_fn_unset VAR
4220: # ---------------
4221: # Portably unset VAR.
4222: as_fn_unset ()
4223: {
4224: { eval $1=; unset $1;}
4225: }
4226: as_unset=as_fn_unset
4227: # as_fn_append VAR VALUE
4228: # ----------------------
4229: # Append the text in VALUE to the end of the definition contained in VAR. Take
4230: # advantage of any shell optimizations that allow amortized linear growth over
4231: # repeated appends, instead of the typical quadratic growth present in naive
4232: # implementations.
4233: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4234: eval 'as_fn_append ()
4235: {
4236: eval $1+=\$2
4237: }'
4238: else
4239: as_fn_append ()
4240: {
4241: eval $1=\$$1\$2
4242: }
4243: fi # as_fn_append
4244:
4245: # as_fn_arith ARG...
4246: # ------------------
4247: # Perform arithmetic evaluation on the ARGs, and store the result in the
4248: # global $as_val. Take advantage of shells that can avoid forks. The arguments
4249: # must be portable across $(()) and expr.
4250: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4251: eval 'as_fn_arith ()
4252: {
4253: as_val=$(( $* ))
4254: }'
4255: else
4256: as_fn_arith ()
4257: {
4258: as_val=`expr "$@" || test $? -eq 1`
4259: }
4260: fi # as_fn_arith
4261:
4262:
4263: if expr a : '\(a\)' >/dev/null 2>&1 &&
4264: test "X`expr 00001 : '.*\(...\)'`" = X001; then
4265: as_expr=expr
4266: else
4267: as_expr=false
4268: fi
4269:
4270: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4271: as_basename=basename
4272: else
4273: as_basename=false
4274: fi
4275:
4276: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4277: as_dirname=dirname
4278: else
4279: as_dirname=false
4280: fi
4281:
4282: as_me=`$as_basename -- "$0" ||
4283: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4284: X"$0" : 'X\(//\)$' \| \
4285: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4286: $as_echo X/"$0" |
4287: sed '/^.*\/\([^/][^/]*\)\/*$/{
4288: s//\1/
4289: q
4290: }
4291: /^X\/\(\/\/\)$/{
4292: s//\1/
4293: q
4294: }
4295: /^X\/\(\/\).*/{
4296: s//\1/
4297: q
4298: }
4299: s/.*/./; q'`
4300:
4301: # Avoid depending upon Character Ranges.
4302: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4303: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4304: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4305: as_cr_digits='0123456789'
4306: as_cr_alnum=$as_cr_Letters$as_cr_digits
4307:
4308: ECHO_C= ECHO_N= ECHO_T=
4309: case `echo -n x` in #(((((
4310: -n*)
4311: case `echo 'xy\c'` in
4312: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4313: xy) ECHO_C='\c';;
4314: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4315: ECHO_T=' ';;
4316: esac;;
4317: *)
4318: ECHO_N='-n';;
4319: esac
4320:
4321: rm -f conf$$ conf$$.exe conf$$.file
4322: if test -d conf$$.dir; then
4323: rm -f conf$$.dir/conf$$.file
4324: else
4325: rm -f conf$$.dir
4326: mkdir conf$$.dir 2>/dev/null
4327: fi
4328: if (echo >conf$$.file) 2>/dev/null; then
4329: if ln -s conf$$.file conf$$ 2>/dev/null; then
4330: as_ln_s='ln -s'
4331: # ... but there are two gotchas:
4332: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4333: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4334: # In both cases, we have to default to `cp -p'.
4335: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4336: as_ln_s='cp -p'
4337: elif ln conf$$.file conf$$ 2>/dev/null; then
4338: as_ln_s=ln
4339: else
4340: as_ln_s='cp -p'
4341: fi
4342: else
4343: as_ln_s='cp -p'
4344: fi
4345: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4346: rmdir conf$$.dir 2>/dev/null
4347:
4348:
4349: # as_fn_mkdir_p
4350: # -------------
4351: # Create "$as_dir" as a directory, including parents if necessary.
4352: as_fn_mkdir_p ()
4353: {
4354:
4355: case $as_dir in #(
4356: -*) as_dir=./$as_dir;;
4357: esac
4358: test -d "$as_dir" || eval $as_mkdir_p || {
4359: as_dirs=
4360: while :; do
4361: case $as_dir in #(
4362: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4363: *) as_qdir=$as_dir;;
4364: esac
4365: as_dirs="'$as_qdir' $as_dirs"
4366: as_dir=`$as_dirname -- "$as_dir" ||
4367: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4368: X"$as_dir" : 'X\(//\)[^/]' \| \
4369: X"$as_dir" : 'X\(//\)$' \| \
4370: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4371: $as_echo X"$as_dir" |
4372: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4373: s//\1/
4374: q
4375: }
4376: /^X\(\/\/\)[^/].*/{
4377: s//\1/
4378: q
4379: }
4380: /^X\(\/\/\)$/{
4381: s//\1/
4382: q
4383: }
4384: /^X\(\/\).*/{
4385: s//\1/
4386: q
4387: }
4388: s/.*/./; q'`
4389: test -d "$as_dir" && break
4390: done
4391: test -z "$as_dirs" || eval "mkdir $as_dirs"
1.3 ! misho 4392: } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
1.1 misho 4393:
4394:
4395: } # as_fn_mkdir_p
4396: if mkdir -p . 2>/dev/null; then
4397: as_mkdir_p='mkdir -p "$as_dir"'
4398: else
4399: test -d ./-p && rmdir ./-p
4400: as_mkdir_p=false
4401: fi
4402:
4403: if test -x / >/dev/null 2>&1; then
4404: as_test_x='test -x'
4405: else
4406: if ls -dL / >/dev/null 2>&1; then
4407: as_ls_L_option=L
4408: else
4409: as_ls_L_option=
4410: fi
4411: as_test_x='
4412: eval sh -c '\''
4413: if test -d "$1"; then
4414: test -d "$1/.";
4415: else
4416: case $1 in #(
4417: -*)set "./$1";;
4418: esac;
4419: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4420: ???[sx]*):;;*)false;;esac;fi
4421: '\'' sh
4422: '
4423: fi
4424: as_executable_p=$as_test_x
4425:
4426: # Sed expression to map a string onto a valid CPP name.
4427: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4428:
4429: # Sed expression to map a string onto a valid variable name.
4430: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4431:
4432:
4433: exec 6>&1
4434: ## ----------------------------------- ##
4435: ## Main body of $CONFIG_STATUS script. ##
4436: ## ----------------------------------- ##
4437: _ASEOF
4438: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4439:
4440: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4441: # Save the log message, to keep $0 and so on meaningful, and to
4442: # report actual input values of CONFIG_FILES etc. instead of their
4443: # values after options handling.
4444: ac_log="
1.3 ! misho 4445: This file was extended by libaitsched $as_me 1.2, which was
! 4446: generated by GNU Autoconf 2.65. Invocation command line was
1.1 misho 4447:
4448: CONFIG_FILES = $CONFIG_FILES
4449: CONFIG_HEADERS = $CONFIG_HEADERS
4450: CONFIG_LINKS = $CONFIG_LINKS
4451: CONFIG_COMMANDS = $CONFIG_COMMANDS
4452: $ $0 $@
4453:
4454: on `(hostname || uname -n) 2>/dev/null | sed 1q`
4455: "
4456:
4457: _ACEOF
4458:
4459: case $ac_config_files in *"
4460: "*) set x $ac_config_files; shift; ac_config_files=$*;;
4461: esac
4462:
4463: case $ac_config_headers in *"
4464: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4465: esac
4466:
4467:
4468: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4469: # Files that config.status was made for.
4470: config_files="$ac_config_files"
4471: config_headers="$ac_config_headers"
4472:
4473: _ACEOF
4474:
4475: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4476: ac_cs_usage="\
4477: \`$as_me' instantiates files and other configuration actions
4478: from templates according to the current configuration. Unless the files
4479: and actions are specified as TAGs, all are instantiated by default.
4480:
4481: Usage: $0 [OPTION]... [TAG]...
4482:
4483: -h, --help print this help, then exit
4484: -V, --version print version number and configuration settings, then exit
1.2 misho 4485: --config print configuration, then exit
1.1 misho 4486: -q, --quiet, --silent
4487: do not print progress messages
4488: -d, --debug don't remove temporary files
4489: --recheck update $as_me by reconfiguring in the same conditions
4490: --file=FILE[:TEMPLATE]
4491: instantiate the configuration file FILE
4492: --header=FILE[:TEMPLATE]
4493: instantiate the configuration header FILE
4494:
4495: Configuration files:
4496: $config_files
4497:
4498: Configuration headers:
4499: $config_headers
4500:
4501: Report bugs to <misho@openbsd-bg.org>."
4502:
4503: _ACEOF
4504: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.2 misho 4505: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.1 misho 4506: ac_cs_version="\\
1.3 ! misho 4507: libaitsched config.status 1.2
! 4508: configured by $0, generated by GNU Autoconf 2.65,
1.2 misho 4509: with options \\"\$ac_cs_config\\"
1.1 misho 4510:
1.3 ! misho 4511: Copyright (C) 2009 Free Software Foundation, Inc.
1.1 misho 4512: This config.status script is free software; the Free Software Foundation
4513: gives unlimited permission to copy, distribute and modify it."
4514:
4515: ac_pwd='$ac_pwd'
4516: srcdir='$srcdir'
4517: INSTALL='$INSTALL'
4518: test -n "\$AWK" || AWK=awk
4519: _ACEOF
4520:
4521: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4522: # The default lists apply if the user does not specify any file.
4523: ac_need_defaults=:
4524: while test $# != 0
4525: do
4526: case $1 in
1.3 ! misho 4527: --*=*)
1.1 misho 4528: ac_option=`expr "X$1" : 'X\([^=]*\)='`
4529: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4530: ac_shift=:
4531: ;;
4532: *)
4533: ac_option=$1
4534: ac_optarg=$2
4535: ac_shift=shift
4536: ;;
4537: esac
4538:
4539: case $ac_option in
4540: # Handling of the options.
4541: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4542: ac_cs_recheck=: ;;
4543: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4544: $as_echo "$ac_cs_version"; exit ;;
1.2 misho 4545: --config | --confi | --conf | --con | --co | --c )
4546: $as_echo "$ac_cs_config"; exit ;;
1.1 misho 4547: --debug | --debu | --deb | --de | --d | -d )
4548: debug=: ;;
4549: --file | --fil | --fi | --f )
4550: $ac_shift
4551: case $ac_optarg in
4552: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4553: esac
4554: as_fn_append CONFIG_FILES " '$ac_optarg'"
4555: ac_need_defaults=false;;
4556: --header | --heade | --head | --hea )
4557: $ac_shift
4558: case $ac_optarg in
4559: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4560: esac
4561: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4562: ac_need_defaults=false;;
4563: --he | --h)
4564: # Conflict between --help and --header
1.3 ! misho 4565: as_fn_error "ambiguous option: \`$1'
1.1 misho 4566: Try \`$0 --help' for more information.";;
4567: --help | --hel | -h )
4568: $as_echo "$ac_cs_usage"; exit ;;
4569: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4570: | -silent | --silent | --silen | --sile | --sil | --si | --s)
4571: ac_cs_silent=: ;;
4572:
4573: # This is an error.
1.3 ! misho 4574: -*) as_fn_error "unrecognized option: \`$1'
1.1 misho 4575: Try \`$0 --help' for more information." ;;
4576:
4577: *) as_fn_append ac_config_targets " $1"
4578: ac_need_defaults=false ;;
4579:
4580: esac
4581: shift
4582: done
4583:
4584: ac_configure_extra_args=
4585:
4586: if $ac_cs_silent; then
4587: exec 6>/dev/null
4588: ac_configure_extra_args="$ac_configure_extra_args --silent"
4589: fi
4590:
4591: _ACEOF
4592: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4593: if \$ac_cs_recheck; then
4594: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4595: shift
4596: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4597: CONFIG_SHELL='$SHELL'
4598: export CONFIG_SHELL
4599: exec "\$@"
4600: fi
4601:
4602: _ACEOF
4603: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4604: exec 5>>config.log
4605: {
4606: echo
4607: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4608: ## Running $as_me. ##
4609: _ASBOX
4610: $as_echo "$ac_log"
4611: } >&5
4612:
4613: _ACEOF
4614: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4615: _ACEOF
4616:
4617: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4618:
4619: # Handling of arguments.
4620: for ac_config_target in $ac_config_targets
4621: do
4622: case $ac_config_target in
4623: "inc/config.h") CONFIG_HEADERS="$CONFIG_HEADERS inc/config.h" ;;
4624: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4625: "inc/Makefile") CONFIG_FILES="$CONFIG_FILES inc/Makefile" ;;
4626: "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
4627: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
4628:
1.3 ! misho 4629: *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1 misho 4630: esac
4631: done
4632:
4633:
4634: # If the user did not use the arguments to specify the items to instantiate,
4635: # then the envvar interface is used. Set only those that are not.
4636: # We use the long form for the default assignment because of an extremely
4637: # bizarre bug on SunOS 4.1.3.
4638: if $ac_need_defaults; then
4639: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4640: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4641: fi
4642:
4643: # Have a temporary directory for convenience. Make it in the build tree
4644: # simply because there is no reason against having it here, and in addition,
4645: # creating and moving files from /tmp can sometimes cause problems.
4646: # Hook for its removal unless debugging.
4647: # Note that there is a small window in which the directory will not be cleaned:
4648: # after its creation but before its name has been assigned to `$tmp'.
4649: $debug ||
4650: {
1.3 ! misho 4651: tmp=
1.1 misho 4652: trap 'exit_status=$?
1.3 ! misho 4653: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
1.1 misho 4654: ' 0
4655: trap 'as_fn_exit 1' 1 2 13 15
4656: }
4657: # Create a (secure) tmp directory for tmp files.
4658:
4659: {
4660: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.3 ! misho 4661: test -n "$tmp" && test -d "$tmp"
1.1 misho 4662: } ||
4663: {
4664: tmp=./conf$$-$RANDOM
4665: (umask 077 && mkdir "$tmp")
1.3 ! misho 4666: } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
1.1 misho 4667:
4668: # Set up the scripts for CONFIG_FILES section.
4669: # No need to generate them if there are no CONFIG_FILES.
4670: # This happens for instance with `./config.status config.h'.
4671: if test -n "$CONFIG_FILES"; then
4672:
4673:
4674: ac_cr=`echo X | tr X '\015'`
4675: # On cygwin, bash can eat \r inside `` if the user requested igncr.
4676: # But we know of no other shell where ac_cr would be empty at this
4677: # point, so we can use a bashism as a fallback.
4678: if test "x$ac_cr" = x; then
4679: eval ac_cr=\$\'\\r\'
4680: fi
4681: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4682: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
1.3 ! misho 4683: ac_cs_awk_cr='\r'
1.1 misho 4684: else
4685: ac_cs_awk_cr=$ac_cr
4686: fi
4687:
1.3 ! misho 4688: echo 'BEGIN {' >"$tmp/subs1.awk" &&
1.1 misho 4689: _ACEOF
4690:
4691:
4692: {
4693: echo "cat >conf$$subs.awk <<_ACEOF" &&
4694: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4695: echo "_ACEOF"
4696: } >conf$$subs.sh ||
1.3 ! misho 4697: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
! 4698: ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1.1 misho 4699: ac_delim='%!_!# '
4700: for ac_last_try in false false false false false :; do
4701: . ./conf$$subs.sh ||
1.3 ! misho 4702: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
1.1 misho 4703:
4704: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4705: if test $ac_delim_n = $ac_delim_num; then
4706: break
4707: elif $ac_last_try; then
1.3 ! misho 4708: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
1.1 misho 4709: else
4710: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4711: fi
4712: done
4713: rm -f conf$$subs.sh
4714:
4715: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.3 ! misho 4716: cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
1.1 misho 4717: _ACEOF
4718: sed -n '
4719: h
4720: s/^/S["/; s/!.*/"]=/
4721: p
4722: g
4723: s/^[^!]*!//
4724: :repl
4725: t repl
4726: s/'"$ac_delim"'$//
4727: t delim
4728: :nl
4729: h
1.2 misho 4730: s/\(.\{148\}\)..*/\1/
1.1 misho 4731: t more1
4732: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4733: p
4734: n
4735: b repl
4736: :more1
4737: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4738: p
4739: g
4740: s/.\{148\}//
4741: t nl
4742: :delim
4743: h
1.2 misho 4744: s/\(.\{148\}\)..*/\1/
1.1 misho 4745: t more2
4746: s/["\\]/\\&/g; s/^/"/; s/$/"/
4747: p
4748: b
4749: :more2
4750: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4751: p
4752: g
4753: s/.\{148\}//
4754: t delim
4755: ' <conf$$subs.awk | sed '
4756: /^[^""]/{
4757: N
4758: s/\n//
4759: }
4760: ' >>$CONFIG_STATUS || ac_write_fail=1
4761: rm -f conf$$subs.awk
4762: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4763: _ACAWK
1.3 ! misho 4764: cat >>"\$tmp/subs1.awk" <<_ACAWK &&
1.1 misho 4765: for (key in S) S_is_set[key] = 1
4766: FS = ""
4767:
4768: }
4769: {
4770: line = $ 0
4771: nfields = split(line, field, "@")
4772: substed = 0
4773: len = length(field[1])
4774: for (i = 2; i < nfields; i++) {
4775: key = field[i]
4776: keylen = length(key)
4777: if (S_is_set[key]) {
4778: value = S[key]
4779: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4780: len += length(value) + length(field[++i])
4781: substed = 1
4782: } else
4783: len += 1 + keylen
4784: }
4785:
4786: print line
4787: }
4788:
4789: _ACAWK
4790: _ACEOF
4791: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4792: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4793: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4794: else
4795: cat
1.3 ! misho 4796: fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
! 4797: || as_fn_error "could not setup config files machinery" "$LINENO" 5
1.1 misho 4798: _ACEOF
4799:
1.3 ! misho 4800: # VPATH may cause trouble with some makes, so we remove $(srcdir),
! 4801: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
1.1 misho 4802: # trailing colons and then remove the whole line if VPATH becomes empty
4803: # (actually we leave an empty line to preserve line numbers).
4804: if test "x$srcdir" = x.; then
1.3 ! misho 4805: ac_vpsub='/^[ ]*VPATH[ ]*=/{
! 4806: s/:*\$(srcdir):*/:/
! 4807: s/:*\${srcdir}:*/:/
! 4808: s/:*@srcdir@:*/:/
! 4809: s/^\([^=]*=[ ]*\):*/\1/
1.1 misho 4810: s/:*$//
4811: s/^[^=]*=[ ]*$//
4812: }'
4813: fi
4814:
4815: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4816: fi # test -n "$CONFIG_FILES"
4817:
4818: # Set up the scripts for CONFIG_HEADERS section.
4819: # No need to generate them if there are no CONFIG_HEADERS.
4820: # This happens for instance with `./config.status Makefile'.
4821: if test -n "$CONFIG_HEADERS"; then
1.3 ! misho 4822: cat >"$tmp/defines.awk" <<\_ACAWK ||
1.1 misho 4823: BEGIN {
4824: _ACEOF
4825:
4826: # Transform confdefs.h into an awk script `defines.awk', embedded as
4827: # here-document in config.status, that substitutes the proper values into
4828: # config.h.in to produce config.h.
4829:
4830: # Create a delimiter string that does not exist in confdefs.h, to ease
4831: # handling of long lines.
4832: ac_delim='%!_!# '
4833: for ac_last_try in false false :; do
1.3 ! misho 4834: ac_t=`sed -n "/$ac_delim/p" confdefs.h`
! 4835: if test -z "$ac_t"; then
1.1 misho 4836: break
4837: elif $ac_last_try; then
1.3 ! misho 4838: as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
1.1 misho 4839: else
4840: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4841: fi
4842: done
4843:
4844: # For the awk script, D is an array of macro values keyed by name,
4845: # likewise P contains macro parameters if any. Preserve backslash
4846: # newline sequences.
4847:
4848: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4849: sed -n '
4850: s/.\{148\}/&'"$ac_delim"'/g
4851: t rset
4852: :rset
4853: s/^[ ]*#[ ]*define[ ][ ]*/ /
4854: t def
4855: d
4856: :def
4857: s/\\$//
4858: t bsnl
4859: s/["\\]/\\&/g
4860: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4861: D["\1"]=" \3"/p
4862: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
4863: d
4864: :bsnl
4865: s/["\\]/\\&/g
4866: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4867: D["\1"]=" \3\\\\\\n"\\/p
4868: t cont
4869: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4870: t cont
4871: d
4872: :cont
4873: n
4874: s/.\{148\}/&'"$ac_delim"'/g
4875: t clear
4876: :clear
4877: s/\\$//
4878: t bsnlc
4879: s/["\\]/\\&/g; s/^/"/; s/$/"/p
4880: d
4881: :bsnlc
4882: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4883: b cont
4884: ' <confdefs.h | sed '
4885: s/'"$ac_delim"'/"\\\
4886: "/g' >>$CONFIG_STATUS || ac_write_fail=1
4887:
4888: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4889: for (key in D) D_is_set[key] = 1
4890: FS = ""
4891: }
4892: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4893: line = \$ 0
4894: split(line, arg, " ")
4895: if (arg[1] == "#") {
4896: defundef = arg[2]
4897: mac1 = arg[3]
4898: } else {
4899: defundef = substr(arg[1], 2)
4900: mac1 = arg[2]
4901: }
4902: split(mac1, mac2, "(") #)
4903: macro = mac2[1]
4904: prefix = substr(line, 1, index(line, defundef) - 1)
4905: if (D_is_set[macro]) {
4906: # Preserve the white space surrounding the "#".
4907: print prefix "define", macro P[macro] D[macro]
4908: next
4909: } else {
4910: # Replace #undef with comments. This is necessary, for example,
4911: # in the case of _POSIX_SOURCE, which is predefined and required
4912: # on some systems where configure will not decide to define it.
4913: if (defundef == "undef") {
4914: print "/*", prefix defundef, macro, "*/"
4915: next
4916: }
4917: }
4918: }
4919: { print }
4920: _ACAWK
4921: _ACEOF
4922: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.3 ! misho 4923: as_fn_error "could not setup config headers machinery" "$LINENO" 5
1.1 misho 4924: fi # test -n "$CONFIG_HEADERS"
4925:
4926:
4927: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
4928: shift
4929: for ac_tag
4930: do
4931: case $ac_tag in
4932: :[FHLC]) ac_mode=$ac_tag; continue;;
4933: esac
4934: case $ac_mode$ac_tag in
4935: :[FHL]*:*);;
1.3 ! misho 4936: :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
1.1 misho 4937: :[FH]-) ac_tag=-:-;;
4938: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4939: esac
4940: ac_save_IFS=$IFS
4941: IFS=:
4942: set x $ac_tag
4943: IFS=$ac_save_IFS
4944: shift
4945: ac_file=$1
4946: shift
4947:
4948: case $ac_mode in
4949: :L) ac_source=$1;;
4950: :[FH])
4951: ac_file_inputs=
4952: for ac_f
4953: do
4954: case $ac_f in
1.3 ! misho 4955: -) ac_f="$tmp/stdin";;
1.1 misho 4956: *) # Look for the file first in the build tree, then in the source tree
4957: # (if the path is not absolute). The absolute path cannot be DOS-style,
4958: # because $ac_f cannot contain `:'.
4959: test -f "$ac_f" ||
4960: case $ac_f in
4961: [\\/$]*) false;;
4962: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4963: esac ||
1.3 ! misho 4964: as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1.1 misho 4965: esac
4966: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4967: as_fn_append ac_file_inputs " '$ac_f'"
4968: done
4969:
4970: # Let's still pretend it is `configure' which instantiates (i.e., don't
4971: # use $as_me), people would be surprised to read:
4972: # /* config.h. Generated by config.status. */
4973: configure_input='Generated from '`
4974: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4975: `' by configure.'
4976: if test x"$ac_file" != x-; then
4977: configure_input="$ac_file. $configure_input"
4978: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4979: $as_echo "$as_me: creating $ac_file" >&6;}
4980: fi
4981: # Neutralize special characters interpreted by sed in replacement strings.
4982: case $configure_input in #(
4983: *\&* | *\|* | *\\* )
4984: ac_sed_conf_input=`$as_echo "$configure_input" |
4985: sed 's/[\\\\&|]/\\\\&/g'`;; #(
4986: *) ac_sed_conf_input=$configure_input;;
4987: esac
4988:
4989: case $ac_tag in
1.3 ! misho 4990: *:-:* | *:-) cat >"$tmp/stdin" \
! 4991: || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
1.1 misho 4992: esac
4993: ;;
4994: esac
4995:
4996: ac_dir=`$as_dirname -- "$ac_file" ||
4997: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4998: X"$ac_file" : 'X\(//\)[^/]' \| \
4999: X"$ac_file" : 'X\(//\)$' \| \
5000: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5001: $as_echo X"$ac_file" |
5002: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5003: s//\1/
5004: q
5005: }
5006: /^X\(\/\/\)[^/].*/{
5007: s//\1/
5008: q
5009: }
5010: /^X\(\/\/\)$/{
5011: s//\1/
5012: q
5013: }
5014: /^X\(\/\).*/{
5015: s//\1/
5016: q
5017: }
5018: s/.*/./; q'`
5019: as_dir="$ac_dir"; as_fn_mkdir_p
5020: ac_builddir=.
5021:
5022: case "$ac_dir" in
5023: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5024: *)
5025: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5026: # A ".." for each directory in $ac_dir_suffix.
5027: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5028: case $ac_top_builddir_sub in
5029: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5030: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5031: esac ;;
5032: esac
5033: ac_abs_top_builddir=$ac_pwd
5034: ac_abs_builddir=$ac_pwd$ac_dir_suffix
5035: # for backward compatibility:
5036: ac_top_builddir=$ac_top_build_prefix
5037:
5038: case $srcdir in
5039: .) # We are building in place.
5040: ac_srcdir=.
5041: ac_top_srcdir=$ac_top_builddir_sub
5042: ac_abs_top_srcdir=$ac_pwd ;;
5043: [\\/]* | ?:[\\/]* ) # Absolute name.
5044: ac_srcdir=$srcdir$ac_dir_suffix;
5045: ac_top_srcdir=$srcdir
5046: ac_abs_top_srcdir=$srcdir ;;
5047: *) # Relative name.
5048: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5049: ac_top_srcdir=$ac_top_build_prefix$srcdir
5050: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5051: esac
5052: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5053:
5054:
5055: case $ac_mode in
5056: :F)
5057: #
5058: # CONFIG_FILE
5059: #
5060:
5061: case $INSTALL in
5062: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5063: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5064: esac
5065: _ACEOF
5066:
5067: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5068: # If the template does not know about datarootdir, expand it.
5069: # FIXME: This hack should be removed a few years after 2.60.
5070: ac_datarootdir_hack=; ac_datarootdir_seen=
5071: ac_sed_dataroot='
5072: /datarootdir/ {
5073: p
5074: q
5075: }
5076: /@datadir@/p
5077: /@docdir@/p
5078: /@infodir@/p
5079: /@localedir@/p
5080: /@mandir@/p'
5081: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5082: *datarootdir*) ac_datarootdir_seen=yes;;
5083: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5084: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5085: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5086: _ACEOF
5087: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5088: ac_datarootdir_hack='
5089: s&@datadir@&$datadir&g
5090: s&@docdir@&$docdir&g
5091: s&@infodir@&$infodir&g
5092: s&@localedir@&$localedir&g
5093: s&@mandir@&$mandir&g
5094: s&\\\${datarootdir}&$datarootdir&g' ;;
5095: esac
5096: _ACEOF
5097:
5098: # Neutralize VPATH when `$srcdir' = `.'.
5099: # Shell code in configure.ac might set extrasub.
5100: # FIXME: do we really want to maintain this feature?
5101: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5102: ac_sed_extra="$ac_vpsub
5103: $extrasub
5104: _ACEOF
5105: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5106: :t
5107: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5108: s|@configure_input@|$ac_sed_conf_input|;t t
5109: s&@top_builddir@&$ac_top_builddir_sub&;t t
5110: s&@top_build_prefix@&$ac_top_build_prefix&;t t
5111: s&@srcdir@&$ac_srcdir&;t t
5112: s&@abs_srcdir@&$ac_abs_srcdir&;t t
5113: s&@top_srcdir@&$ac_top_srcdir&;t t
5114: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5115: s&@builddir@&$ac_builddir&;t t
5116: s&@abs_builddir@&$ac_abs_builddir&;t t
5117: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5118: s&@INSTALL@&$ac_INSTALL&;t t
5119: $ac_datarootdir_hack
5120: "
1.3 ! misho 5121: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
! 5122: || as_fn_error "could not create $ac_file" "$LINENO" 5
1.1 misho 5123:
5124: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1.3 ! misho 5125: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
! 5126: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
1.1 misho 5127: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.3 ! misho 5128: which seems to be undefined. Please make sure it is defined." >&5
1.1 misho 5129: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.3 ! misho 5130: which seems to be undefined. Please make sure it is defined." >&2;}
1.1 misho 5131:
1.3 ! misho 5132: rm -f "$tmp/stdin"
1.1 misho 5133: case $ac_file in
1.3 ! misho 5134: -) cat "$tmp/out" && rm -f "$tmp/out";;
! 5135: *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
1.1 misho 5136: esac \
1.3 ! misho 5137: || as_fn_error "could not create $ac_file" "$LINENO" 5
1.1 misho 5138: ;;
5139: :H)
5140: #
5141: # CONFIG_HEADER
5142: #
5143: if test x"$ac_file" != x-; then
5144: {
5145: $as_echo "/* $configure_input */" \
1.3 ! misho 5146: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
! 5147: } >"$tmp/config.h" \
! 5148: || as_fn_error "could not create $ac_file" "$LINENO" 5
! 5149: if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
1.1 misho 5150: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5151: $as_echo "$as_me: $ac_file is unchanged" >&6;}
5152: else
5153: rm -f "$ac_file"
1.3 ! misho 5154: mv "$tmp/config.h" "$ac_file" \
! 5155: || as_fn_error "could not create $ac_file" "$LINENO" 5
1.1 misho 5156: fi
5157: else
5158: $as_echo "/* $configure_input */" \
1.3 ! misho 5159: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
! 5160: || as_fn_error "could not create -" "$LINENO" 5
1.1 misho 5161: fi
5162: ;;
5163:
5164:
5165: esac
5166:
5167: done # for ac_tag
5168:
5169:
5170: as_fn_exit 0
5171: _ACEOF
5172: ac_clean_files=$ac_clean_files_save
5173:
5174: test $ac_write_fail = 0 ||
1.3 ! misho 5175: as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
1.1 misho 5176:
5177:
5178: # configure is writing to config.log, and then calls config.status.
5179: # config.status does its own redirection, appending to config.log.
5180: # Unfortunately, on DOS this fails, as config.log is still kept open
5181: # by configure, so config.status won't be able to write to it; its
5182: # output is simply discarded. So we exec the FD to /dev/null,
5183: # effectively closing config.log, so it can be properly (re)opened and
5184: # appended to by config.status. When coming back to configure, we
5185: # need to make the FD available again.
5186: if test "$no_create" != yes; then
5187: ac_cs_success=:
5188: ac_config_status_args=
5189: test "$silent" = yes &&
5190: ac_config_status_args="$ac_config_status_args --quiet"
5191: exec 5>/dev/null
5192: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5193: exec 5>>config.log
5194: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5195: # would make configure fail if this is the last instruction.
1.3 ! misho 5196: $ac_cs_success || as_fn_exit $?
1.1 misho 5197: fi
5198: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5199: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5200: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5201: fi
5202:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>