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