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