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