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