Annotation of OpenXM_contrib2/asir2000/configure, Revision 1.51
1.14 noro 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.51 ! ohara 3: # Generated by GNU Autoconf 2.68.
! 4: #
1.14 noro 5: #
1.37 ohara 6: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1.51 ! ohara 7: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
! 8: # Foundation, Inc.
! 9: #
! 10: #
1.14 noro 11: # This configure script is free software; the Free Software Foundation
12: # gives unlimited permission to copy, distribute and modify it.
1.51 ! ohara 13: ## -------------------- ##
! 14: ## M4sh Initialization. ##
! 15: ## -------------------- ##
1.14 noro 16:
1.37 ohara 17: # Be more Bourne compatible
18: DUALCASE=1; export DUALCASE # for MKS sh
1.51 ! ohara 19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.14 noro 20: emulate sh
21: NULLCMD=:
1.43 ohara 22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.32 noro 23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
1.37 ohara 25: setopt NO_GLOB_SUBST
26: else
1.51 ! ohara 27: case `(set -o) 2>/dev/null` in #(
! 28: *posix*) :
! 29: set -o posix ;; #(
! 30: *) :
! 31: ;;
1.37 ohara 32: esac
33: fi
34:
35:
1.43 ohara 36: as_nl='
37: '
38: export as_nl
39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
1.51 ! ohara 43: # Prefer a ksh shell builtin over an external printf program on Solaris,
! 44: # but without wasting forks for bash or zsh.
! 45: if test -z "$BASH_VERSION$ZSH_VERSION" \
! 46: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
! 47: as_echo='print -r --'
! 48: as_echo_n='print -rn --'
! 49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
1.43 ohara 50: as_echo='printf %s\n'
51: as_echo_n='printf %s'
52: else
53: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55: as_echo_n='/usr/ucb/echo -n'
56: else
57: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58: as_echo_n_body='eval
59: arg=$1;
1.51 ! ohara 60: case $arg in #(
1.43 ohara 61: *"$as_nl"*)
62: expr "X$arg" : "X\\(.*\\)$as_nl";
63: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64: esac;
65: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66: '
67: export as_echo_n_body
68: as_echo_n='sh -c $as_echo_n_body as_echo'
69: fi
70: export as_echo_body
71: as_echo='sh -c $as_echo_body as_echo'
72: fi
73:
1.37 ohara 74: # The user is always right.
75: if test "${PATH_SEPARATOR+set}" != set; then
1.43 ohara 76: PATH_SEPARATOR=:
77: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79: PATH_SEPARATOR=';'
80: }
1.14 noro 81: fi
82:
1.32 noro 83:
1.37 ohara 84: # IFS
85: # We need space, tab and new line, in precisely that order. Quoting is
86: # there to prevent editors from complaining about space-tab.
87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88: # splitting by setting IFS to empty value.)
89: IFS=" "" $as_nl"
90:
91: # Find who we are. Look in the path if we contain no directory separator.
1.51 ! ohara 92: as_myself=
! 93: case $0 in #((
1.37 ohara 94: *[\\/]* ) as_myself=$0 ;;
95: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96: for as_dir in $PATH
97: do
98: IFS=$as_save_IFS
99: test -z "$as_dir" && as_dir=.
1.51 ! ohara 100: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 101: done
1.37 ohara 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.43 ohara 112: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.51 ! ohara 113: exit 1
1.37 ohara 114: fi
115:
1.51 ! ohara 116: # Unset variables that we do not need and which cause bugs (e.g. in
! 117: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
! 118: # suppresses any "Segmentation fault" message there. '((' could
! 119: # trigger a bug in pdksh 5.2.14.
! 120: for as_var in BASH_ENV ENV MAIL MAILPATH
! 121: do eval test x\${$as_var+set} = xset \
! 122: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.37 ohara 123: done
1.32 noro 124: PS1='$ '
125: PS2='> '
126: PS4='+ '
127:
128: # NLS nuisances.
1.43 ohara 129: LC_ALL=C
130: export LC_ALL
131: LANGUAGE=C
132: export LANGUAGE
1.32 noro 133:
1.37 ohara 134: # CDPATH.
1.51 ! ohara 135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.37 ohara 136:
137: if test "x$CONFIG_SHELL" = x; then
1.51 ! ohara 138: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
! 139: emulate sh
! 140: NULLCMD=:
! 141: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
! 142: # is contrary to our usage. Disable this feature.
! 143: alias -g '\${1+\"\$@\"}'='\"\$@\"'
! 144: setopt NO_GLOB_SUBST
1.37 ohara 145: else
1.51 ! ohara 146: case \`(set -o) 2>/dev/null\` in #(
! 147: *posix*) :
! 148: set -o posix ;; #(
! 149: *) :
! 150: ;;
! 151: esac
1.37 ohara 152: fi
1.51 ! ohara 153: "
! 154: as_required="as_fn_return () { (exit \$1); }
! 155: as_fn_success () { as_fn_return 0; }
! 156: as_fn_failure () { as_fn_return 1; }
! 157: as_fn_ret_success () { return 0; }
! 158: as_fn_ret_failure () { return 1; }
1.14 noro 159:
1.37 ohara 160: exitcode=0
1.51 ! ohara 161: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
! 162: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
! 163: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
! 164: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
! 165: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
! 166:
! 167: else
! 168: exitcode=1; echo positional parameters were not saved.
! 169: fi
! 170: test x\$exitcode = x0 || exit 1"
! 171: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
! 172: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
! 173: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
! 174: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
! 175: test \$(( 1 + 1 )) = 2 || exit 1"
! 176: if (eval "$as_required") 2>/dev/null; then :
! 177: as_have_required=yes
1.37 ohara 178: else
1.51 ! ohara 179: as_have_required=no
1.37 ohara 180: fi
1.51 ! ohara 181: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
1.32 noro 182:
1.37 ohara 183: else
1.51 ! ohara 184: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 185: as_found=false
1.14 noro 186: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187: do
188: IFS=$as_save_IFS
189: test -z "$as_dir" && as_dir=.
1.51 ! ohara 190: as_found=:
! 191: case $as_dir in #(
1.14 noro 192: /*)
1.37 ohara 193: for as_base in sh bash ksh sh5; do
1.51 ! ohara 194: # Try only shells that exist, to save several forks.
! 195: as_shell=$as_dir/$as_base
! 196: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
! 197: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
! 198: CONFIG_SHELL=$as_shell as_have_required=yes
! 199: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
! 200: break 2
! 201: fi
! 202: fi
1.37 ohara 203: done;;
204: esac
1.51 ! ohara 205: as_found=false
1.37 ohara 206: done
1.51 ! ohara 207: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
! 208: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
! 209: CONFIG_SHELL=$SHELL as_have_required=yes
! 210: fi; }
1.37 ohara 211: IFS=$as_save_IFS
212:
213:
1.51 ! ohara 214: if test "x$CONFIG_SHELL" != x; then :
! 215: # We cannot yet assume a decent shell, so we have to provide a
! 216: # neutralization value for shells without unset; and this also
! 217: # works around shells that cannot unset nonexistent variables.
! 218: # Preserve -v and -x to the replacement shell.
! 219: BASH_ENV=/dev/null
! 220: ENV=/dev/null
! 221: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
! 222: export CONFIG_SHELL
! 223: case $- in # ((((
! 224: *v*x* | *x*v* ) as_opts=-vx ;;
! 225: *v* ) as_opts=-v ;;
! 226: *x* ) as_opts=-x ;;
! 227: * ) as_opts= ;;
! 228: esac
! 229: exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
! 230: fi
1.37 ohara 231:
1.51 ! ohara 232: if test x$as_have_required = xno; then :
! 233: $as_echo "$0: This script requires a shell more modern than all"
! 234: $as_echo "$0: the shells that I found on your system."
! 235: if test x${ZSH_VERSION+set} = xset ; then
! 236: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
! 237: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
! 238: else
! 239: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
! 240: $0: including any error possibly output before this
! 241: $0: message. Then install a modern shell, or manually run
! 242: $0: the script under such a shell if you do have one."
! 243: fi
! 244: exit 1
! 245: fi
1.37 ohara 246: fi
247: fi
1.51 ! ohara 248: SHELL=${CONFIG_SHELL-/bin/sh}
! 249: export SHELL
! 250: # Unset more variables known to interfere with behavior of common tools.
! 251: CLICOLOR_FORCE= GREP_OPTIONS=
! 252: unset CLICOLOR_FORCE GREP_OPTIONS
1.37 ohara 253:
1.51 ! ohara 254: ## --------------------- ##
! 255: ## M4sh Shell Functions. ##
! 256: ## --------------------- ##
! 257: # as_fn_unset VAR
! 258: # ---------------
! 259: # Portably unset VAR.
! 260: as_fn_unset ()
! 261: {
! 262: { eval $1=; unset $1;}
! 263: }
! 264: as_unset=as_fn_unset
! 265:
! 266: # as_fn_set_status STATUS
! 267: # -----------------------
! 268: # Set $? to STATUS, without forking.
! 269: as_fn_set_status ()
! 270: {
! 271: return $1
! 272: } # as_fn_set_status
! 273:
! 274: # as_fn_exit STATUS
! 275: # -----------------
! 276: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
! 277: as_fn_exit ()
! 278: {
! 279: set +e
! 280: as_fn_set_status $1
! 281: exit $1
! 282: } # as_fn_exit
! 283:
! 284: # as_fn_mkdir_p
! 285: # -------------
! 286: # Create "$as_dir" as a directory, including parents if necessary.
! 287: as_fn_mkdir_p ()
! 288: {
1.37 ohara 289:
1.51 ! ohara 290: case $as_dir in #(
! 291: -*) as_dir=./$as_dir;;
! 292: esac
! 293: test -d "$as_dir" || eval $as_mkdir_p || {
! 294: as_dirs=
! 295: while :; do
! 296: case $as_dir in #(
! 297: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
! 298: *) as_qdir=$as_dir;;
! 299: esac
! 300: as_dirs="'$as_qdir' $as_dirs"
! 301: as_dir=`$as_dirname -- "$as_dir" ||
! 302: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 303: X"$as_dir" : 'X\(//\)[^/]' \| \
! 304: X"$as_dir" : 'X\(//\)$' \| \
! 305: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
! 306: $as_echo X"$as_dir" |
! 307: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 308: s//\1/
! 309: q
! 310: }
! 311: /^X\(\/\/\)[^/].*/{
! 312: s//\1/
! 313: q
! 314: }
! 315: /^X\(\/\/\)$/{
! 316: s//\1/
! 317: q
! 318: }
! 319: /^X\(\/\).*/{
! 320: s//\1/
! 321: q
! 322: }
! 323: s/.*/./; q'`
! 324: test -d "$as_dir" && break
! 325: done
! 326: test -z "$as_dirs" || eval "mkdir $as_dirs"
! 327: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.37 ohara 328:
329:
1.51 ! ohara 330: } # as_fn_mkdir_p
! 331: # as_fn_append VAR VALUE
! 332: # ----------------------
! 333: # Append the text in VALUE to the end of the definition contained in VAR. Take
! 334: # advantage of any shell optimizations that allow amortized linear growth over
! 335: # repeated appends, instead of the typical quadratic growth present in naive
! 336: # implementations.
! 337: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
! 338: eval 'as_fn_append ()
! 339: {
! 340: eval $1+=\$2
! 341: }'
1.37 ohara 342: else
1.51 ! ohara 343: as_fn_append ()
! 344: {
! 345: eval $1=\$$1\$2
! 346: }
! 347: fi # as_fn_append
1.37 ohara 348:
1.51 ! ohara 349: # as_fn_arith ARG...
! 350: # ------------------
! 351: # Perform arithmetic evaluation on the ARGs, and store the result in the
! 352: # global $as_val. Take advantage of shells that can avoid forks. The arguments
! 353: # must be portable across $(()) and expr.
! 354: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
! 355: eval 'as_fn_arith ()
! 356: {
! 357: as_val=$(( $* ))
! 358: }'
1.37 ohara 359: else
1.51 ! ohara 360: as_fn_arith ()
! 361: {
! 362: as_val=`expr "$@" || test $? -eq 1`
! 363: }
! 364: fi # as_fn_arith
1.37 ohara 365:
366:
1.51 ! ohara 367: # as_fn_error STATUS ERROR [LINENO LOG_FD]
! 368: # ----------------------------------------
! 369: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
! 370: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
! 371: # script with STATUS, using 1 if that was 0.
! 372: as_fn_error ()
! 373: {
! 374: as_status=$1; test $as_status -eq 0 && as_status=1
! 375: if test "$4"; then
! 376: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 377: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
! 378: fi
! 379: $as_echo "$as_me: error: $2" >&2
! 380: as_fn_exit $as_status
! 381: } # as_fn_error
1.37 ohara 382:
1.51 ! ohara 383: if expr a : '\(a\)' >/dev/null 2>&1 &&
! 384: test "X`expr 00001 : '.*\(...\)'`" = X001; then
! 385: as_expr=expr
1.37 ohara 386: else
1.51 ! ohara 387: as_expr=false
1.37 ohara 388: fi
389:
1.51 ! ohara 390: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
! 391: as_basename=basename
1.37 ohara 392: else
1.51 ! ohara 393: as_basename=false
1.37 ohara 394: fi
395:
1.51 ! ohara 396: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
! 397: as_dirname=dirname
1.37 ohara 398: else
1.51 ! ohara 399: as_dirname=false
1.37 ohara 400: fi
401:
1.51 ! ohara 402: as_me=`$as_basename -- "$0" ||
! 403: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
! 404: X"$0" : 'X\(//\)$' \| \
! 405: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
! 406: $as_echo X/"$0" |
! 407: sed '/^.*\/\([^/][^/]*\)\/*$/{
! 408: s//\1/
! 409: q
! 410: }
! 411: /^X\/\(\/\/\)$/{
! 412: s//\1/
! 413: q
! 414: }
! 415: /^X\/\(\/\).*/{
! 416: s//\1/
! 417: q
! 418: }
! 419: s/.*/./; q'`
1.37 ohara 420:
1.51 ! ohara 421: # Avoid depending upon Character Ranges.
! 422: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
! 423: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
! 424: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
! 425: as_cr_digits='0123456789'
! 426: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.37 ohara 427:
428:
1.51 ! ohara 429: as_lineno_1=$LINENO as_lineno_1a=$LINENO
! 430: as_lineno_2=$LINENO as_lineno_2a=$LINENO
! 431: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
! 432: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
! 433: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
1.37 ohara 434: sed -n '
435: p
436: /[$]LINENO/=
437: ' <$as_myself |
1.14 noro 438: sed '
1.37 ohara 439: s/[$]LINENO.*/&-/
440: t lineno
441: b
442: :lineno
1.14 noro 443: N
1.37 ohara 444: :loop
445: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.14 noro 446: t loop
1.37 ohara 447: s/-\n.*//
1.14 noro 448: ' >$as_me.lineno &&
1.37 ohara 449: chmod +x "$as_me.lineno" ||
1.51 ! ohara 450: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.14 noro 451:
452: # Don't try to exec as it changes $[0], causing all sort of problems
453: # (the dirname of $[0] is not the place where we might find the
1.37 ohara 454: # original and so on. Autoconf is especially sensitive to this).
455: . "./$as_me.lineno"
1.14 noro 456: # Exit status is that of the last command.
457: exit
458: }
459:
1.51 ! ohara 460: ECHO_C= ECHO_N= ECHO_T=
! 461: case `echo -n x` in #(((((
! 462: -n*)
! 463: case `echo 'xy\c'` in
! 464: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
! 465: xy) ECHO_C='\c';;
! 466: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
! 467: ECHO_T=' ';;
! 468: esac;;
1.37 ohara 469: *)
470: ECHO_N='-n';;
1.14 noro 471: esac
472:
473: rm -f conf$$ conf$$.exe conf$$.file
1.37 ohara 474: if test -d conf$$.dir; then
475: rm -f conf$$.dir/conf$$.file
476: else
477: rm -f conf$$.dir
1.43 ohara 478: mkdir conf$$.dir 2>/dev/null
1.37 ohara 479: fi
1.43 ohara 480: if (echo >conf$$.file) 2>/dev/null; then
481: if ln -s conf$$.file conf$$ 2>/dev/null; then
482: as_ln_s='ln -s'
483: # ... but there are two gotchas:
484: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486: # In both cases, we have to default to `cp -p'.
487: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488: as_ln_s='cp -p'
489: elif ln conf$$.file conf$$ 2>/dev/null; then
490: as_ln_s=ln
491: else
1.14 noro 492: as_ln_s='cp -p'
1.43 ohara 493: fi
1.14 noro 494: else
495: as_ln_s='cp -p'
496: fi
1.37 ohara 497: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498: rmdir conf$$.dir 2>/dev/null
1.14 noro 499:
1.32 noro 500: if mkdir -p . 2>/dev/null; then
1.51 ! ohara 501: as_mkdir_p='mkdir -p "$as_dir"'
1.32 noro 502: else
503: test -d ./-p && rmdir ./-p
504: as_mkdir_p=false
505: fi
506:
1.37 ohara 507: if test -x / >/dev/null 2>&1; then
508: as_test_x='test -x'
509: else
510: if ls -dL / >/dev/null 2>&1; then
511: as_ls_L_option=L
512: else
513: as_ls_L_option=
514: fi
515: as_test_x='
516: eval sh -c '\''
517: if test -d "$1"; then
1.43 ohara 518: test -d "$1/.";
1.37 ohara 519: else
1.51 ! ohara 520: case $1 in #(
1.43 ohara 521: -*)set "./$1";;
1.37 ohara 522: esac;
1.51 ! ohara 523: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.37 ohara 524: ???[sx]*):;;*)false;;esac;fi
525: '\'' sh
526: '
527: fi
528: as_executable_p=$as_test_x
1.14 noro 529:
530: # Sed expression to map a string onto a valid CPP name.
1.32 noro 531: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.14 noro 532:
533: # Sed expression to map a string onto a valid variable name.
1.32 noro 534: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.14 noro 535:
536:
1.51 ! ohara 537: test -n "$DJDIR" || exec 7<&0 </dev/null
! 538: exec 6>&1
1.14 noro 539:
540: # Name of the host.
1.51 ! ohara 541: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.14 noro 542: # so uname gets run too.
543: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544:
545: #
546: # Initializations.
547: #
548: ac_default_prefix=/usr/local
1.37 ohara 549: ac_clean_files=
1.32 noro 550: ac_config_libobj_dir=.
1.37 ohara 551: LIBOBJS=
1.14 noro 552: cross_compiling=no
553: subdirs=
554: MFLAGS=
555: MAKEFLAGS=
556:
557: # Identity of this package.
558: PACKAGE_NAME=
559: PACKAGE_TARNAME=
560: PACKAGE_VERSION=
561: PACKAGE_STRING=
562: PACKAGE_BUGREPORT=
1.51 ! ohara 563: PACKAGE_URL=
1.14 noro 564:
565: ac_unique_file="LICENSE"
566: # Factoring default headers for most tests.
567: ac_includes_default="\
568: #include <stdio.h>
1.37 ohara 569: #ifdef HAVE_SYS_TYPES_H
1.14 noro 570: # include <sys/types.h>
571: #endif
1.37 ohara 572: #ifdef HAVE_SYS_STAT_H
1.14 noro 573: # include <sys/stat.h>
574: #endif
1.37 ohara 575: #ifdef STDC_HEADERS
1.14 noro 576: # include <stdlib.h>
577: # include <stddef.h>
578: #else
1.37 ohara 579: # ifdef HAVE_STDLIB_H
1.14 noro 580: # include <stdlib.h>
581: # endif
582: #endif
1.37 ohara 583: #ifdef HAVE_STRING_H
584: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.14 noro 585: # include <memory.h>
586: # endif
587: # include <string.h>
588: #endif
1.37 ohara 589: #ifdef HAVE_STRINGS_H
1.14 noro 590: # include <strings.h>
591: #endif
1.37 ohara 592: #ifdef HAVE_INTTYPES_H
1.14 noro 593: # include <inttypes.h>
594: #endif
1.37 ohara 595: #ifdef HAVE_STDINT_H
596: # include <stdint.h>
597: #endif
598: #ifdef HAVE_UNISTD_H
1.14 noro 599: # include <unistd.h>
600: #endif"
601:
1.51 ! ohara 602: ac_subst_vars='am__EXEEXT_FALSE
! 603: am__EXEEXT_TRUE
! 604: LTLIBOBJS
! 605: LIBOBJS
! 606: asm_obj
! 607: USE_GC_SPARC64
! 608: libasir_postfix
! 609: LAPACKLIB
! 610: FEPLIB
! 611: USE_PLOT_FALSE
! 612: USE_PLOT_TRUE
! 613: XPMLIB
! 614: EGREP
! 615: GREP
! 616: PARILIB
! 617: PARIINC
! 618: GC_DISTDIR
! 619: USE_GC7_FALSE
! 620: USE_GC7_TRUE
! 621: GC_CONFIGURE_ARGS
! 622: GC
! 623: GCINC
! 624: GCLIB
! 625: ASIR_GCLIB
! 626: X_EXTRA_LIBS
! 627: X_LIBS
! 628: X_PRE_LIBS
! 629: X_CFLAGS
! 630: CPP
! 631: XMKMF
! 632: YFLAGS
! 633: YACC
! 634: RANLIB
! 635: LN_S
! 636: am__fastdepCC_FALSE
! 637: am__fastdepCC_TRUE
! 638: CCDEPMODE
! 639: AMDEPBACKSLASH
! 640: AMDEP_FALSE
! 641: AMDEP_TRUE
! 642: am__quote
! 643: am__include
! 644: DEPDIR
! 645: OBJEXT
! 646: EXEEXT
! 647: ac_ct_CC
! 648: CPPFLAGS
! 649: LDFLAGS
! 650: CFLAGS
! 651: CC
! 652: MAINT
! 653: MAINTAINER_MODE_FALSE
! 654: MAINTAINER_MODE_TRUE
! 655: am__untar
! 656: am__tar
! 657: AMTAR
! 658: am__leading_dot
! 659: SET_MAKE
! 660: AWK
! 661: mkdir_p
! 662: MKDIR_P
! 663: INSTALL_STRIP_PROGRAM
! 664: STRIP
! 665: install_sh
! 666: MAKEINFO
! 667: AUTOHEADER
! 668: AUTOMAKE
! 669: AUTOCONF
! 670: ACLOCAL
! 671: VERSION
! 672: PACKAGE
! 673: CYGPATH_W
! 674: am__isrc
! 675: INSTALL_DATA
! 676: INSTALL_SCRIPT
! 677: INSTALL_PROGRAM
! 678: target_os
! 679: target_vendor
! 680: target_cpu
! 681: target
! 682: host_os
! 683: host_vendor
! 684: host_cpu
! 685: host
! 686: build_os
! 687: build_vendor
! 688: build_cpu
! 689: build
! 690: target_alias
! 691: host_alias
! 692: build_alias
! 693: LIBS
! 694: ECHO_T
! 695: ECHO_N
! 696: ECHO_C
! 697: DEFS
! 698: mandir
! 699: localedir
! 700: libdir
! 701: psdir
! 702: pdfdir
! 703: dvidir
! 704: htmldir
! 705: infodir
! 706: docdir
! 707: oldincludedir
! 708: includedir
! 709: localstatedir
! 710: sharedstatedir
! 711: sysconfdir
! 712: datadir
! 713: datarootdir
! 714: libexecdir
! 715: sbindir
! 716: bindir
! 717: program_transform_name
! 718: prefix
! 719: exec_prefix
! 720: PACKAGE_URL
! 721: PACKAGE_BUGREPORT
! 722: PACKAGE_STRING
! 723: PACKAGE_VERSION
! 724: PACKAGE_TARNAME
! 725: PACKAGE_NAME
1.37 ohara 726: PATH_SEPARATOR
1.51 ! ohara 727: SHELL'
! 728: ac_subst_files=''
! 729: ac_user_opts='
! 730: enable_option_checking
! 731: enable_maintainer_mode
! 732: enable_dependency_tracking
! 733: with_x
! 734: enable_shared
! 735: with_asir_gc
! 736: with_gc7
! 737: with_distdir
! 738: with_pari
! 739: enable_plot
! 740: enable_interval
! 741: enable_fft_float
! 742: with_mpi
! 743: '
! 744: ac_precious_vars='build_alias
1.37 ohara 745: host_alias
746: target_alias
747: CC
748: CFLAGS
749: LDFLAGS
1.51 ! ohara 750: LIBS
1.37 ohara 751: CPPFLAGS
752: YACC
753: YFLAGS
754: XMKMF
1.51 ! ohara 755: CPP'
! 756:
! 757:
! 758: # Initialize some variables set by options.
! 759: ac_init_help=
! 760: ac_init_version=false
! 761: ac_unrecognized_opts=
! 762: ac_unrecognized_sep=
! 763: # The variables have the same names as the options, with
! 764: # dashes changed to underlines.
! 765: cache_file=/dev/null
! 766: exec_prefix=NONE
! 767: no_create=
1.14 noro 768: no_recursion=
769: prefix=NONE
770: program_prefix=NONE
771: program_suffix=NONE
772: program_transform_name=s,x,x,
773: silent=
774: site=
775: srcdir=
776: verbose=
777: x_includes=NONE
778: x_libraries=NONE
779:
780: # Installation directory options.
781: # These are left unexpanded so users can "make install exec_prefix=/foo"
782: # and all the variables that are supposed to be based on exec_prefix
783: # by default will actually change.
784: # Use braces instead of parens because sh, perl, etc. also accept them.
1.37 ohara 785: # (The list follows the same order as the GNU Coding Standards.)
1.14 noro 786: bindir='${exec_prefix}/bin'
787: sbindir='${exec_prefix}/sbin'
788: libexecdir='${exec_prefix}/libexec'
1.37 ohara 789: datarootdir='${prefix}/share'
790: datadir='${datarootdir}'
1.14 noro 791: sysconfdir='${prefix}/etc'
792: sharedstatedir='${prefix}/com'
793: localstatedir='${prefix}/var'
794: includedir='${prefix}/include'
795: oldincludedir='/usr/include'
1.37 ohara 796: docdir='${datarootdir}/doc/${PACKAGE}'
797: infodir='${datarootdir}/info'
798: htmldir='${docdir}'
799: dvidir='${docdir}'
800: pdfdir='${docdir}'
801: psdir='${docdir}'
802: libdir='${exec_prefix}/lib'
803: localedir='${datarootdir}/locale'
804: mandir='${datarootdir}/man'
1.14 noro 805:
806: ac_prev=
1.37 ohara 807: ac_dashdash=
1.14 noro 808: for ac_option
809: do
810: # If the previous option needs an argument, assign it.
811: if test -n "$ac_prev"; then
1.37 ohara 812: eval $ac_prev=\$ac_option
1.14 noro 813: ac_prev=
814: continue
815: fi
816:
1.37 ohara 817: case $ac_option in
1.51 ! ohara 818: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
! 819: *=) ac_optarg= ;;
! 820: *) ac_optarg=yes ;;
1.37 ohara 821: esac
1.14 noro 822:
823: # Accept the important Cygnus configure options, so we can diagnose typos.
824:
1.37 ohara 825: case $ac_dashdash$ac_option in
826: --)
827: ac_dashdash=yes ;;
1.14 noro 828:
829: -bindir | --bindir | --bindi | --bind | --bin | --bi)
830: ac_prev=bindir ;;
831: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
832: bindir=$ac_optarg ;;
833:
834: -build | --build | --buil | --bui | --bu)
835: ac_prev=build_alias ;;
836: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
837: build_alias=$ac_optarg ;;
838:
839: -cache-file | --cache-file | --cache-fil | --cache-fi \
840: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
841: ac_prev=cache_file ;;
842: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
843: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
844: cache_file=$ac_optarg ;;
845:
846: --config-cache | -C)
847: cache_file=config.cache ;;
848:
1.37 ohara 849: -datadir | --datadir | --datadi | --datad)
1.14 noro 850: ac_prev=datadir ;;
1.37 ohara 851: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.14 noro 852: datadir=$ac_optarg ;;
853:
1.37 ohara 854: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
855: | --dataroo | --dataro | --datar)
856: ac_prev=datarootdir ;;
857: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
858: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
859: datarootdir=$ac_optarg ;;
860:
1.14 noro 861: -disable-* | --disable-*)
1.43 ohara 862: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.14 noro 863: # Reject names that are not valid shell variable names.
1.43 ohara 864: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.51 ! ohara 865: as_fn_error $? "invalid feature name: $ac_useropt"
1.43 ohara 866: ac_useropt_orig=$ac_useropt
867: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
868: case $ac_user_opts in
869: *"
870: "enable_$ac_useropt"
871: "*) ;;
872: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
873: ac_unrecognized_sep=', ';;
874: esac
875: eval enable_$ac_useropt=no ;;
1.37 ohara 876:
877: -docdir | --docdir | --docdi | --doc | --do)
878: ac_prev=docdir ;;
879: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
880: docdir=$ac_optarg ;;
881:
882: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
883: ac_prev=dvidir ;;
884: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
885: dvidir=$ac_optarg ;;
1.14 noro 886:
887: -enable-* | --enable-*)
1.43 ohara 888: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.14 noro 889: # Reject names that are not valid shell variable names.
1.43 ohara 890: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.51 ! ohara 891: as_fn_error $? "invalid feature name: $ac_useropt"
1.43 ohara 892: ac_useropt_orig=$ac_useropt
893: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894: case $ac_user_opts in
895: *"
896: "enable_$ac_useropt"
897: "*) ;;
898: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
899: ac_unrecognized_sep=', ';;
900: esac
901: eval enable_$ac_useropt=\$ac_optarg ;;
1.14 noro 902:
903: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
904: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
905: | --exec | --exe | --ex)
906: ac_prev=exec_prefix ;;
907: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
908: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
909: | --exec=* | --exe=* | --ex=*)
910: exec_prefix=$ac_optarg ;;
911:
912: -gas | --gas | --ga | --g)
913: # Obsolete; use --with-gas.
914: with_gas=yes ;;
915:
916: -help | --help | --hel | --he | -h)
917: ac_init_help=long ;;
918: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
919: ac_init_help=recursive ;;
920: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
921: ac_init_help=short ;;
922:
923: -host | --host | --hos | --ho)
924: ac_prev=host_alias ;;
925: -host=* | --host=* | --hos=* | --ho=*)
926: host_alias=$ac_optarg ;;
927:
1.37 ohara 928: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
929: ac_prev=htmldir ;;
930: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
931: | --ht=*)
932: htmldir=$ac_optarg ;;
933:
1.14 noro 934: -includedir | --includedir | --includedi | --included | --include \
935: | --includ | --inclu | --incl | --inc)
936: ac_prev=includedir ;;
937: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
938: | --includ=* | --inclu=* | --incl=* | --inc=*)
939: includedir=$ac_optarg ;;
940:
941: -infodir | --infodir | --infodi | --infod | --info | --inf)
942: ac_prev=infodir ;;
943: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
944: infodir=$ac_optarg ;;
945:
946: -libdir | --libdir | --libdi | --libd)
947: ac_prev=libdir ;;
948: -libdir=* | --libdir=* | --libdi=* | --libd=*)
949: libdir=$ac_optarg ;;
950:
951: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
952: | --libexe | --libex | --libe)
953: ac_prev=libexecdir ;;
954: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
955: | --libexe=* | --libex=* | --libe=*)
956: libexecdir=$ac_optarg ;;
957:
1.37 ohara 958: -localedir | --localedir | --localedi | --localed | --locale)
959: ac_prev=localedir ;;
960: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
961: localedir=$ac_optarg ;;
962:
1.14 noro 963: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.37 ohara 964: | --localstate | --localstat | --localsta | --localst | --locals)
1.14 noro 965: ac_prev=localstatedir ;;
966: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.37 ohara 967: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.14 noro 968: localstatedir=$ac_optarg ;;
969:
970: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
971: ac_prev=mandir ;;
972: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
973: mandir=$ac_optarg ;;
974:
975: -nfp | --nfp | --nf)
976: # Obsolete; use --without-fp.
977: with_fp=no ;;
978:
979: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
980: | --no-cr | --no-c | -n)
981: no_create=yes ;;
982:
983: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
984: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
985: no_recursion=yes ;;
986:
987: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
988: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
989: | --oldin | --oldi | --old | --ol | --o)
990: ac_prev=oldincludedir ;;
991: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
992: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
993: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
994: oldincludedir=$ac_optarg ;;
995:
996: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
997: ac_prev=prefix ;;
998: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
999: prefix=$ac_optarg ;;
1000:
1001: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1002: | --program-pre | --program-pr | --program-p)
1003: ac_prev=program_prefix ;;
1004: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1005: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1006: program_prefix=$ac_optarg ;;
1007:
1008: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1009: | --program-suf | --program-su | --program-s)
1010: ac_prev=program_suffix ;;
1011: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1012: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1013: program_suffix=$ac_optarg ;;
1014:
1015: -program-transform-name | --program-transform-name \
1016: | --program-transform-nam | --program-transform-na \
1017: | --program-transform-n | --program-transform- \
1018: | --program-transform | --program-transfor \
1019: | --program-transfo | --program-transf \
1020: | --program-trans | --program-tran \
1021: | --progr-tra | --program-tr | --program-t)
1022: ac_prev=program_transform_name ;;
1023: -program-transform-name=* | --program-transform-name=* \
1024: | --program-transform-nam=* | --program-transform-na=* \
1025: | --program-transform-n=* | --program-transform-=* \
1026: | --program-transform=* | --program-transfor=* \
1027: | --program-transfo=* | --program-transf=* \
1028: | --program-trans=* | --program-tran=* \
1029: | --progr-tra=* | --program-tr=* | --program-t=*)
1030: program_transform_name=$ac_optarg ;;
1031:
1.37 ohara 1032: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1033: ac_prev=pdfdir ;;
1034: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1035: pdfdir=$ac_optarg ;;
1036:
1037: -psdir | --psdir | --psdi | --psd | --ps)
1038: ac_prev=psdir ;;
1039: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1040: psdir=$ac_optarg ;;
1041:
1.14 noro 1042: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043: | -silent | --silent | --silen | --sile | --sil)
1044: silent=yes ;;
1045:
1046: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1047: ac_prev=sbindir ;;
1048: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1049: | --sbi=* | --sb=*)
1050: sbindir=$ac_optarg ;;
1051:
1052: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1053: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1054: | --sharedst | --shareds | --shared | --share | --shar \
1055: | --sha | --sh)
1056: ac_prev=sharedstatedir ;;
1057: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1058: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1059: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1060: | --sha=* | --sh=*)
1061: sharedstatedir=$ac_optarg ;;
1062:
1063: -site | --site | --sit)
1064: ac_prev=site ;;
1065: -site=* | --site=* | --sit=*)
1066: site=$ac_optarg ;;
1067:
1068: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1069: ac_prev=srcdir ;;
1070: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1071: srcdir=$ac_optarg ;;
1072:
1073: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1074: | --syscon | --sysco | --sysc | --sys | --sy)
1075: ac_prev=sysconfdir ;;
1076: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1077: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1078: sysconfdir=$ac_optarg ;;
1079:
1080: -target | --target | --targe | --targ | --tar | --ta | --t)
1081: ac_prev=target_alias ;;
1082: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1083: target_alias=$ac_optarg ;;
1084:
1085: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1086: verbose=yes ;;
1087:
1088: -version | --version | --versio | --versi | --vers | -V)
1089: ac_init_version=: ;;
1090:
1091: -with-* | --with-*)
1.43 ohara 1092: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.14 noro 1093: # Reject names that are not valid shell variable names.
1.43 ohara 1094: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.51 ! ohara 1095: as_fn_error $? "invalid package name: $ac_useropt"
1.43 ohara 1096: ac_useropt_orig=$ac_useropt
1097: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098: case $ac_user_opts in
1099: *"
1100: "with_$ac_useropt"
1101: "*) ;;
1102: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1103: ac_unrecognized_sep=', ';;
1104: esac
1105: eval with_$ac_useropt=\$ac_optarg ;;
1.14 noro 1106:
1107: -without-* | --without-*)
1.43 ohara 1108: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.14 noro 1109: # Reject names that are not valid shell variable names.
1.43 ohara 1110: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.51 ! ohara 1111: as_fn_error $? "invalid package name: $ac_useropt"
1.43 ohara 1112: ac_useropt_orig=$ac_useropt
1113: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114: case $ac_user_opts in
1115: *"
1116: "with_$ac_useropt"
1117: "*) ;;
1118: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1119: ac_unrecognized_sep=', ';;
1120: esac
1121: eval with_$ac_useropt=no ;;
1.14 noro 1122:
1123: --x)
1124: # Obsolete; use --with-x.
1125: with_x=yes ;;
1126:
1127: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1128: | --x-incl | --x-inc | --x-in | --x-i)
1129: ac_prev=x_includes ;;
1130: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1131: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1132: x_includes=$ac_optarg ;;
1133:
1134: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1135: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1136: ac_prev=x_libraries ;;
1137: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1138: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1139: x_libraries=$ac_optarg ;;
1140:
1.51 ! ohara 1141: -*) as_fn_error $? "unrecognized option: \`$ac_option'
! 1142: Try \`$0 --help' for more information"
1.14 noro 1143: ;;
1144:
1145: *=*)
1146: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1147: # Reject names that are not valid shell variable names.
1.51 ! ohara 1148: case $ac_envvar in #(
! 1149: '' | [0-9]* | *[!_$as_cr_alnum]* )
! 1150: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
! 1151: esac
1.37 ohara 1152: eval $ac_envvar=\$ac_optarg
1.14 noro 1153: export $ac_envvar ;;
1154:
1155: *)
1156: # FIXME: should be removed in autoconf 3.0.
1.43 ohara 1157: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.14 noro 1158: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.43 ohara 1159: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.51 ! ohara 1160: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.14 noro 1161: ;;
1162:
1163: esac
1164: done
1165:
1166: if test -n "$ac_prev"; then
1167: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.51 ! ohara 1168: as_fn_error $? "missing argument to $ac_option"
1.14 noro 1169: fi
1170:
1.43 ohara 1171: if test -n "$ac_unrecognized_opts"; then
1172: case $enable_option_checking in
1173: no) ;;
1.51 ! ohara 1174: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
! 1175: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1.43 ohara 1176: esac
1177: fi
1178:
1179: # Check all directory arguments for consistency.
1.37 ohara 1180: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1181: datadir sysconfdir sharedstatedir localstatedir includedir \
1182: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1183: libdir localedir mandir
1.14 noro 1184: do
1.37 ohara 1185: eval ac_val=\$$ac_var
1.43 ohara 1186: # Remove trailing slashes.
1187: case $ac_val in
1188: */ )
1189: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1190: eval $ac_var=\$ac_val;;
1191: esac
1192: # Be sure to have absolute directory names.
1.14 noro 1193: case $ac_val in
1.37 ohara 1194: [\\/$]* | ?:[\\/]* ) continue;;
1195: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.14 noro 1196: esac
1.51 ! ohara 1197: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.14 noro 1198: done
1199:
1200: # There might be people who depend on the old broken behavior: `$host'
1201: # used to hold the argument of --host etc.
1202: # FIXME: To remove some day.
1203: build=$build_alias
1204: host=$host_alias
1205: target=$target_alias
1206:
1207: # FIXME: To remove some day.
1208: if test "x$host_alias" != x; then
1209: if test "x$build_alias" = x; then
1210: cross_compiling=maybe
1.51 ! ohara 1211: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
! 1212: If a cross compiler is detected then cross compile mode will be used" >&2
1.14 noro 1213: elif test "x$build_alias" != "x$host_alias"; then
1214: cross_compiling=yes
1215: fi
1216: fi
1217:
1218: ac_tool_prefix=
1219: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1220:
1221: test "$silent" = yes && exec 6>/dev/null
1222:
1223:
1.37 ohara 1224: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1225: ac_ls_di=`ls -di .` &&
1226: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.51 ! ohara 1227: as_fn_error $? "working directory cannot be determined"
1.37 ohara 1228: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.51 ! ohara 1229: as_fn_error $? "pwd does not report name of working directory"
1.37 ohara 1230:
1231:
1.14 noro 1232: # Find the source files, if location was not specified.
1233: if test -z "$srcdir"; then
1234: ac_srcdir_defaulted=yes
1.37 ohara 1235: # Try the directory containing this script, then the parent directory.
1.43 ohara 1236: ac_confdir=`$as_dirname -- "$as_myself" ||
1237: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1238: X"$as_myself" : 'X\(//\)[^/]' \| \
1239: X"$as_myself" : 'X\(//\)$' \| \
1240: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1241: $as_echo X"$as_myself" |
1.37 ohara 1242: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1243: s//\1/
1244: q
1245: }
1246: /^X\(\/\/\)[^/].*/{
1247: s//\1/
1248: q
1249: }
1250: /^X\(\/\/\)$/{
1251: s//\1/
1252: q
1253: }
1254: /^X\(\/\).*/{
1255: s//\1/
1256: q
1257: }
1258: s/.*/./; q'`
1.14 noro 1259: srcdir=$ac_confdir
1.37 ohara 1260: if test ! -r "$srcdir/$ac_unique_file"; then
1.14 noro 1261: srcdir=..
1262: fi
1263: else
1264: ac_srcdir_defaulted=no
1265: fi
1.37 ohara 1266: if test ! -r "$srcdir/$ac_unique_file"; then
1267: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.51 ! ohara 1268: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1.14 noro 1269: fi
1.37 ohara 1270: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1271: ac_abs_confdir=`(
1.51 ! ohara 1272: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1.37 ohara 1273: pwd)`
1274: # When building in place, set srcdir=.
1275: if test "$ac_abs_confdir" = "$ac_pwd"; then
1276: srcdir=.
1277: fi
1278: # Remove unnecessary trailing slashes from srcdir.
1279: # Double slashes in file names in object file debugging info
1280: # mess up M-x gdb in Emacs.
1281: case $srcdir in
1282: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1283: esac
1284: for ac_var in $ac_precious_vars; do
1285: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1286: eval ac_env_${ac_var}_value=\$${ac_var}
1287: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1288: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289: done
1.14 noro 1290:
1291: #
1292: # Report the --help message.
1293: #
1294: if test "$ac_init_help" = "long"; then
1295: # Omit some internal or obsolete options to make the list less imposing.
1296: # This message is too long to be a string in the A/UX 3.1 sh.
1297: cat <<_ACEOF
1298: \`configure' configures this package to adapt to many kinds of systems.
1299:
1300: Usage: $0 [OPTION]... [VAR=VALUE]...
1301:
1302: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1303: VAR=VALUE. See below for descriptions of some of the useful variables.
1304:
1305: Defaults for the options are specified in brackets.
1306:
1307: Configuration:
1308: -h, --help display this help and exit
1309: --help=short display options specific to this package
1310: --help=recursive display the short help of all the included packages
1311: -V, --version display version information and exit
1.51 ! ohara 1312: -q, --quiet, --silent do not print \`checking ...' messages
1.14 noro 1313: --cache-file=FILE cache test results in FILE [disabled]
1314: -C, --config-cache alias for \`--cache-file=config.cache'
1315: -n, --no-create do not create output files
1316: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1317:
1318: Installation directories:
1319: --prefix=PREFIX install architecture-independent files in PREFIX
1.43 ohara 1320: [$ac_default_prefix]
1.14 noro 1321: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.43 ohara 1322: [PREFIX]
1.14 noro 1323:
1324: By default, \`make install' will install all the files in
1325: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1326: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1327: for instance \`--prefix=\$HOME'.
1328:
1329: For better control, use the options below.
1330:
1331: Fine tuning of the installation directories:
1.43 ohara 1332: --bindir=DIR user executables [EPREFIX/bin]
1333: --sbindir=DIR system admin executables [EPREFIX/sbin]
1334: --libexecdir=DIR program executables [EPREFIX/libexec]
1335: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1336: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1337: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1338: --libdir=DIR object code libraries [EPREFIX/lib]
1339: --includedir=DIR C header files [PREFIX/include]
1340: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1341: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1342: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1343: --infodir=DIR info documentation [DATAROOTDIR/info]
1344: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1345: --mandir=DIR man documentation [DATAROOTDIR/man]
1346: --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1347: --htmldir=DIR html documentation [DOCDIR]
1348: --dvidir=DIR dvi documentation [DOCDIR]
1349: --pdfdir=DIR pdf documentation [DOCDIR]
1350: --psdir=DIR ps documentation [DOCDIR]
1.14 noro 1351: _ACEOF
1352:
1353: cat <<\_ACEOF
1354:
1355: Program names:
1356: --program-prefix=PREFIX prepend PREFIX to installed program names
1357: --program-suffix=SUFFIX append SUFFIX to installed program names
1358: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1359:
1360: X features:
1361: --x-includes=DIR X include files are in DIR
1362: --x-libraries=DIR X library files are in DIR
1363:
1364: System types:
1365: --build=BUILD configure for building on BUILD [guessed]
1366: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1367: --target=TARGET configure for building compilers for TARGET [HOST]
1368: _ACEOF
1369: fi
1370:
1371: if test -n "$ac_init_help"; then
1372:
1373: cat <<\_ACEOF
1374:
1375: Optional Features:
1.43 ohara 1376: --disable-option-checking ignore unrecognized --enable/--with options
1.14 noro 1377: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1378: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.37 ohara 1379: --enable-maintainer-mode enable make rules and dependencies not useful
1380: (and sometimes confusing) to the casual installer
1381: --disable-dependency-tracking speeds up one-time build
1382: --enable-dependency-tracking do not reject slow dependency extractors
1.14 noro 1383: --enable-shared enable linking shared libraries. [no]
1384: --enable-plot enable plot feature. [no]
1385: --enable-interval enable interval feature. [no]
1386: --enable-fft-float enable FFT-FLOAT feature. [no]
1387:
1388: Optional Packages:
1389: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1390: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1391: --with-x use the X Window System
1.43 ohara 1392: --with-asir-gc modify Boehm's GC [yes]
1393: --with-gc7 use GC 7.x (if --with-asir-gc=yes) [no]
1.35 ohara 1394: --with-distdir specify the spool for fetching. [no]
1.14 noro 1395: --with-pari use the PARI library. [no]
1.45 ohara 1396: --with-mpi use the MPI library. [no]
1.14 noro 1397:
1398: Some influential environment variables:
1399: CC C compiler command
1400: CFLAGS C compiler flags
1401: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1402: nonstandard directory <lib dir>
1.37 ohara 1403: LIBS libraries to pass to the linker, e.g. -l<library>
1.51 ! ohara 1404: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1.37 ohara 1405: you have headers in a nonstandard directory <include dir>
1.51 ! ohara 1406: YACC The `Yet Another Compiler Compiler' implementation to use.
! 1407: Defaults to the first program found out of: `bison -y', `byacc',
! 1408: `yacc'.
1.37 ohara 1409: YFLAGS The list of arguments that will be passed by default to $YACC.
1410: This script will default YFLAGS to the empty string to avoid a
1411: default value of `-d' given by some make applications.
1412: XMKMF Path to xmkmf, Makefile generator for X Window System
1.14 noro 1413: CPP C preprocessor
1414:
1415: Use these variables to override the choices made by `configure' or to help
1416: it to find libraries and programs with nonstandard names/locations.
1417:
1.51 ! ohara 1418: Report bugs to the package provider.
1.14 noro 1419: _ACEOF
1.37 ohara 1420: ac_status=$?
1.14 noro 1421: fi
1422:
1423: if test "$ac_init_help" = "recursive"; then
1424: # If there are subdirs, report their specific --help.
1425: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.43 ohara 1426: test -d "$ac_dir" ||
1427: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1428: continue
1.14 noro 1429: ac_builddir=.
1430:
1.37 ohara 1431: case "$ac_dir" in
1432: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433: *)
1.43 ohara 1434: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.37 ohara 1435: # A ".." for each directory in $ac_dir_suffix.
1.43 ohara 1436: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.37 ohara 1437: case $ac_top_builddir_sub in
1438: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1440: esac ;;
1441: esac
1442: ac_abs_top_builddir=$ac_pwd
1443: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1444: # for backward compatibility:
1445: ac_top_builddir=$ac_top_build_prefix
1.14 noro 1446:
1447: case $srcdir in
1.37 ohara 1448: .) # We are building in place.
1.14 noro 1449: ac_srcdir=.
1.37 ohara 1450: ac_top_srcdir=$ac_top_builddir_sub
1451: ac_abs_top_srcdir=$ac_pwd ;;
1452: [\\/]* | ?:[\\/]* ) # Absolute name.
1.14 noro 1453: ac_srcdir=$srcdir$ac_dir_suffix;
1.37 ohara 1454: ac_top_srcdir=$srcdir
1455: ac_abs_top_srcdir=$srcdir ;;
1456: *) # Relative name.
1457: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1458: ac_top_srcdir=$ac_top_build_prefix$srcdir
1459: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.32 noro 1460: esac
1.37 ohara 1461: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.14 noro 1462:
1.37 ohara 1463: cd "$ac_dir" || { ac_status=$?; continue; }
1464: # Check for guested configure.
1465: if test -f "$ac_srcdir/configure.gnu"; then
1466: echo &&
1467: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1468: elif test -f "$ac_srcdir/configure"; then
1.51 ! ohara 1469: echo &&
! 1470: $SHELL "$ac_srcdir/configure" --help=recursive
! 1471: else
! 1472: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
! 1473: fi || ac_status=$?
! 1474: cd "$ac_pwd" || { ac_status=$?; break; }
! 1475: done
! 1476: fi
! 1477:
! 1478: test -n "$ac_init_help" && exit $ac_status
! 1479: if $ac_init_version; then
! 1480: cat <<\_ACEOF
! 1481: configure
! 1482: generated by GNU Autoconf 2.68
! 1483:
! 1484: Copyright (C) 2010 Free Software Foundation, Inc.
! 1485: This configure script is free software; the Free Software Foundation
! 1486: gives unlimited permission to copy, distribute and modify it.
! 1487: _ACEOF
! 1488: exit
! 1489: fi
! 1490:
! 1491: ## ------------------------ ##
! 1492: ## Autoconf initialization. ##
! 1493: ## ------------------------ ##
! 1494:
! 1495: # ac_fn_c_try_compile LINENO
! 1496: # --------------------------
! 1497: # Try to compile conftest.$ac_ext, and return whether this succeeded.
! 1498: ac_fn_c_try_compile ()
! 1499: {
! 1500: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1501: rm -f conftest.$ac_objext
! 1502: if { { ac_try="$ac_compile"
! 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\""
! 1508: $as_echo "$ac_try_echo"; } >&5
! 1509: (eval "$ac_compile") 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
! 1516: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1517: test $ac_status = 0; } && {
! 1518: test -z "$ac_c_werror_flag" ||
! 1519: test ! -s conftest.err
! 1520: } && test -s conftest.$ac_objext; then :
! 1521: ac_retval=0
! 1522: else
! 1523: $as_echo "$as_me: failed program was:" >&5
! 1524: sed 's/^/| /' conftest.$ac_ext >&5
! 1525:
! 1526: ac_retval=1
! 1527: fi
! 1528: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1529: as_fn_set_status $ac_retval
! 1530:
! 1531: } # ac_fn_c_try_compile
! 1532:
! 1533: # ac_fn_c_try_cpp LINENO
! 1534: # ----------------------
! 1535: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
! 1536: ac_fn_c_try_cpp ()
! 1537: {
! 1538: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1539: if { { ac_try="$ac_cpp conftest.$ac_ext"
! 1540: case "(($ac_try" in
! 1541: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1542: *) ac_try_echo=$ac_try;;
! 1543: esac
! 1544: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1545: $as_echo "$ac_try_echo"; } >&5
! 1546: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
! 1547: ac_status=$?
! 1548: if test -s conftest.err; then
! 1549: grep -v '^ *+' conftest.err >conftest.er1
! 1550: cat conftest.er1 >&5
! 1551: mv -f conftest.er1 conftest.err
! 1552: fi
! 1553: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1554: test $ac_status = 0; } > conftest.i && {
! 1555: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
! 1556: test ! -s conftest.err
! 1557: }; then :
! 1558: ac_retval=0
! 1559: else
! 1560: $as_echo "$as_me: failed program was:" >&5
! 1561: sed 's/^/| /' conftest.$ac_ext >&5
! 1562:
! 1563: ac_retval=1
! 1564: fi
! 1565: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1566: as_fn_set_status $ac_retval
! 1567:
! 1568: } # ac_fn_c_try_cpp
! 1569:
! 1570: # ac_fn_c_try_link LINENO
! 1571: # -----------------------
! 1572: # Try to link conftest.$ac_ext, and return whether this succeeded.
! 1573: ac_fn_c_try_link ()
! 1574: {
! 1575: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1576: rm -f conftest.$ac_objext conftest$ac_exeext
! 1577: if { { ac_try="$ac_link"
! 1578: case "(($ac_try" in
! 1579: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1580: *) ac_try_echo=$ac_try;;
! 1581: esac
! 1582: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1583: $as_echo "$ac_try_echo"; } >&5
! 1584: (eval "$ac_link") 2>conftest.err
! 1585: ac_status=$?
! 1586: if test -s conftest.err; then
! 1587: grep -v '^ *+' conftest.err >conftest.er1
! 1588: cat conftest.er1 >&5
! 1589: mv -f conftest.er1 conftest.err
! 1590: fi
! 1591: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1592: test $ac_status = 0; } && {
! 1593: test -z "$ac_c_werror_flag" ||
! 1594: test ! -s conftest.err
! 1595: } && test -s conftest$ac_exeext && {
! 1596: test "$cross_compiling" = yes ||
! 1597: $as_test_x conftest$ac_exeext
! 1598: }; then :
! 1599: ac_retval=0
! 1600: else
! 1601: $as_echo "$as_me: failed program was:" >&5
! 1602: sed 's/^/| /' conftest.$ac_ext >&5
! 1603:
! 1604: ac_retval=1
! 1605: fi
! 1606: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
! 1607: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
! 1608: # interfere with the next link command; also delete a directory that is
! 1609: # left behind by Apple's compiler. We do this before executing the actions.
! 1610: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
! 1611: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1612: as_fn_set_status $ac_retval
! 1613:
! 1614: } # ac_fn_c_try_link
! 1615:
! 1616: # ac_fn_c_check_func LINENO FUNC VAR
! 1617: # ----------------------------------
! 1618: # Tests whether FUNC exists, setting the cache variable VAR accordingly
! 1619: ac_fn_c_check_func ()
! 1620: {
! 1621: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1622: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 1623: $as_echo_n "checking for $2... " >&6; }
! 1624: if eval \${$3+:} false; then :
! 1625: $as_echo_n "(cached) " >&6
! 1626: else
! 1627: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1628: /* end confdefs.h. */
! 1629: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
! 1630: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 1631: #define $2 innocuous_$2
! 1632:
! 1633: /* System header to define __stub macros and hopefully few prototypes,
! 1634: which can conflict with char $2 (); below.
! 1635: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 1636: <limits.h> exists even on freestanding compilers. */
! 1637:
! 1638: #ifdef __STDC__
! 1639: # include <limits.h>
! 1640: #else
! 1641: # include <assert.h>
! 1642: #endif
! 1643:
! 1644: #undef $2
! 1645:
! 1646: /* Override any GCC internal prototype to avoid an error.
! 1647: Use char because int might match the return type of a GCC
! 1648: builtin and then its argument prototype would still apply. */
! 1649: #ifdef __cplusplus
! 1650: extern "C"
! 1651: #endif
! 1652: char $2 ();
! 1653: /* The GNU C library defines this for functions which it implements
! 1654: to always fail with ENOSYS. Some functions are actually named
! 1655: something starting with __ and the normal name is an alias. */
! 1656: #if defined __stub_$2 || defined __stub___$2
! 1657: choke me
! 1658: #endif
! 1659:
! 1660: int
! 1661: main ()
! 1662: {
! 1663: return $2 ();
! 1664: ;
! 1665: return 0;
! 1666: }
! 1667: _ACEOF
! 1668: if ac_fn_c_try_link "$LINENO"; then :
! 1669: eval "$3=yes"
! 1670: else
! 1671: eval "$3=no"
! 1672: fi
! 1673: rm -f core conftest.err conftest.$ac_objext \
! 1674: conftest$ac_exeext conftest.$ac_ext
! 1675: fi
! 1676: eval ac_res=\$$3
! 1677: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 1678: $as_echo "$ac_res" >&6; }
! 1679: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1680:
! 1681: } # ac_fn_c_check_func
! 1682:
! 1683: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
! 1684: # -------------------------------------------
! 1685: # Tests whether TYPE exists after having included INCLUDES, setting cache
! 1686: # variable VAR accordingly.
! 1687: ac_fn_c_check_type ()
! 1688: {
! 1689: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1690: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 1691: $as_echo_n "checking for $2... " >&6; }
! 1692: if eval \${$3+:} false; then :
! 1693: $as_echo_n "(cached) " >&6
! 1694: else
! 1695: eval "$3=no"
! 1696: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1697: /* end confdefs.h. */
! 1698: $4
! 1699: int
! 1700: main ()
! 1701: {
! 1702: if (sizeof ($2))
! 1703: return 0;
! 1704: ;
! 1705: return 0;
! 1706: }
! 1707: _ACEOF
! 1708: if ac_fn_c_try_compile "$LINENO"; then :
! 1709: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1710: /* end confdefs.h. */
! 1711: $4
! 1712: int
! 1713: main ()
! 1714: {
! 1715: if (sizeof (($2)))
! 1716: return 0;
! 1717: ;
! 1718: return 0;
! 1719: }
! 1720: _ACEOF
! 1721: if ac_fn_c_try_compile "$LINENO"; then :
! 1722:
! 1723: else
! 1724: eval "$3=yes"
! 1725: fi
! 1726: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 1727: fi
! 1728: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 1729: fi
! 1730: eval ac_res=\$$3
! 1731: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 1732: $as_echo "$ac_res" >&6; }
! 1733: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1734:
! 1735: } # ac_fn_c_check_type
! 1736:
! 1737: # ac_fn_c_try_run LINENO
! 1738: # ----------------------
! 1739: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
! 1740: # that executables *can* be run.
! 1741: ac_fn_c_try_run ()
! 1742: {
! 1743: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1744: if { { ac_try="$ac_link"
! 1745: case "(($ac_try" in
! 1746: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1747: *) ac_try_echo=$ac_try;;
! 1748: esac
! 1749: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1750: $as_echo "$ac_try_echo"; } >&5
! 1751: (eval "$ac_link") 2>&5
! 1752: ac_status=$?
! 1753: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1754: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
! 1755: { { case "(($ac_try" in
! 1756: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 1757: *) ac_try_echo=$ac_try;;
! 1758: esac
! 1759: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 1760: $as_echo "$ac_try_echo"; } >&5
! 1761: (eval "$ac_try") 2>&5
! 1762: ac_status=$?
! 1763: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 1764: test $ac_status = 0; }; }; then :
! 1765: ac_retval=0
! 1766: else
! 1767: $as_echo "$as_me: program exited with status $ac_status" >&5
! 1768: $as_echo "$as_me: failed program was:" >&5
! 1769: sed 's/^/| /' conftest.$ac_ext >&5
! 1770:
! 1771: ac_retval=$ac_status
! 1772: fi
! 1773: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
! 1774: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1775: as_fn_set_status $ac_retval
! 1776:
! 1777: } # ac_fn_c_try_run
! 1778:
! 1779: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
! 1780: # -------------------------------------------------------
! 1781: # Tests whether HEADER exists and can be compiled using the include files in
! 1782: # INCLUDES, setting the cache variable VAR accordingly.
! 1783: ac_fn_c_check_header_compile ()
! 1784: {
! 1785: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1786: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 1787: $as_echo_n "checking for $2... " >&6; }
! 1788: if eval \${$3+:} false; then :
! 1789: $as_echo_n "(cached) " >&6
! 1790: else
! 1791: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1792: /* end confdefs.h. */
! 1793: $4
! 1794: #include <$2>
! 1795: _ACEOF
! 1796: if ac_fn_c_try_compile "$LINENO"; then :
! 1797: eval "$3=yes"
! 1798: else
! 1799: eval "$3=no"
! 1800: fi
! 1801: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 1802: fi
! 1803: eval ac_res=\$$3
! 1804: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 1805: $as_echo "$ac_res" >&6; }
! 1806: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1807:
! 1808: } # ac_fn_c_check_header_compile
! 1809:
! 1810: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
! 1811: # --------------------------------------------
! 1812: # Tries to find the compile-time value of EXPR in a program that includes
! 1813: # INCLUDES, setting VAR accordingly. Returns whether the value could be
! 1814: # computed
! 1815: ac_fn_c_compute_int ()
! 1816: {
! 1817: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1818: if test "$cross_compiling" = yes; then
! 1819: # Depending upon the size, compute the lo and hi bounds.
! 1820: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1821: /* end confdefs.h. */
! 1822: $4
! 1823: int
! 1824: main ()
! 1825: {
! 1826: static int test_array [1 - 2 * !(($2) >= 0)];
! 1827: test_array [0] = 0
! 1828:
! 1829: ;
! 1830: return 0;
! 1831: }
! 1832: _ACEOF
! 1833: if ac_fn_c_try_compile "$LINENO"; then :
! 1834: ac_lo=0 ac_mid=0
! 1835: while :; do
! 1836: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1837: /* end confdefs.h. */
! 1838: $4
! 1839: int
! 1840: main ()
! 1841: {
! 1842: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
! 1843: test_array [0] = 0
! 1844:
! 1845: ;
! 1846: return 0;
! 1847: }
! 1848: _ACEOF
! 1849: if ac_fn_c_try_compile "$LINENO"; then :
! 1850: ac_hi=$ac_mid; break
! 1851: else
! 1852: as_fn_arith $ac_mid + 1 && ac_lo=$as_val
! 1853: if test $ac_lo -le $ac_mid; then
! 1854: ac_lo= ac_hi=
! 1855: break
! 1856: fi
! 1857: as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
! 1858: fi
! 1859: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 1860: done
! 1861: else
! 1862: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1863: /* end confdefs.h. */
! 1864: $4
! 1865: int
! 1866: main ()
! 1867: {
! 1868: static int test_array [1 - 2 * !(($2) < 0)];
! 1869: test_array [0] = 0
! 1870:
! 1871: ;
! 1872: return 0;
! 1873: }
! 1874: _ACEOF
! 1875: if ac_fn_c_try_compile "$LINENO"; then :
! 1876: ac_hi=-1 ac_mid=-1
! 1877: while :; do
! 1878: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1879: /* end confdefs.h. */
! 1880: $4
! 1881: int
! 1882: main ()
! 1883: {
! 1884: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
! 1885: test_array [0] = 0
! 1886:
! 1887: ;
! 1888: return 0;
! 1889: }
! 1890: _ACEOF
! 1891: if ac_fn_c_try_compile "$LINENO"; then :
! 1892: ac_lo=$ac_mid; break
! 1893: else
! 1894: as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
! 1895: if test $ac_mid -le $ac_hi; then
! 1896: ac_lo= ac_hi=
! 1897: break
! 1898: fi
! 1899: as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
! 1900: fi
! 1901: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 1902: done
! 1903: else
! 1904: ac_lo= ac_hi=
! 1905: fi
! 1906: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 1907: fi
! 1908: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 1909: # Binary search between lo and hi bounds.
! 1910: while test "x$ac_lo" != "x$ac_hi"; do
! 1911: as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
! 1912: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1913: /* end confdefs.h. */
! 1914: $4
! 1915: int
! 1916: main ()
! 1917: {
! 1918: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
! 1919: test_array [0] = 0
! 1920:
! 1921: ;
! 1922: return 0;
! 1923: }
! 1924: _ACEOF
! 1925: if ac_fn_c_try_compile "$LINENO"; then :
! 1926: ac_hi=$ac_mid
! 1927: else
! 1928: as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
! 1929: fi
! 1930: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 1931: done
! 1932: case $ac_lo in #((
! 1933: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
! 1934: '') ac_retval=1 ;;
! 1935: esac
! 1936: else
! 1937: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1938: /* end confdefs.h. */
! 1939: $4
! 1940: static long int longval () { return $2; }
! 1941: static unsigned long int ulongval () { return $2; }
! 1942: #include <stdio.h>
! 1943: #include <stdlib.h>
! 1944: int
! 1945: main ()
! 1946: {
! 1947:
! 1948: FILE *f = fopen ("conftest.val", "w");
! 1949: if (! f)
! 1950: return 1;
! 1951: if (($2) < 0)
! 1952: {
! 1953: long int i = longval ();
! 1954: if (i != ($2))
! 1955: return 1;
! 1956: fprintf (f, "%ld", i);
! 1957: }
! 1958: else
! 1959: {
! 1960: unsigned long int i = ulongval ();
! 1961: if (i != ($2))
! 1962: return 1;
! 1963: fprintf (f, "%lu", i);
! 1964: }
! 1965: /* Do not output a trailing newline, as this causes \r\n confusion
! 1966: on some platforms. */
! 1967: return ferror (f) || fclose (f) != 0;
! 1968:
! 1969: ;
! 1970: return 0;
! 1971: }
! 1972: _ACEOF
! 1973: if ac_fn_c_try_run "$LINENO"; then :
! 1974: echo >>conftest.val; read $3 <conftest.val; ac_retval=0
! 1975: else
! 1976: ac_retval=1
1.14 noro 1977: fi
1.51 ! ohara 1978: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
! 1979: conftest.$ac_objext conftest.beam conftest.$ac_ext
! 1980: rm -f conftest.val
1.14 noro 1981:
1.51 ! ohara 1982: fi
! 1983: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 1984: as_fn_set_status $ac_retval
1.14 noro 1985:
1.51 ! ohara 1986: } # ac_fn_c_compute_int
1.37 ohara 1987: cat >config.log <<_ACEOF
1.14 noro 1988: This file contains any messages produced by compilers while
1989: running configure, to aid debugging if configure makes a mistake.
1990:
1991: It was created by $as_me, which was
1.51 ! ohara 1992: generated by GNU Autoconf 2.68. Invocation command line was
1.14 noro 1993:
1994: $ $0 $@
1995:
1996: _ACEOF
1.37 ohara 1997: exec 5>>config.log
1.14 noro 1998: {
1999: cat <<_ASUNAME
2000: ## --------- ##
2001: ## Platform. ##
2002: ## --------- ##
2003:
2004: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2005: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2006: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2007: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2008: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2009:
2010: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2011: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2012:
2013: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2014: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2015: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.37 ohara 2016: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.14 noro 2017: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2018: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2019: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2020:
2021: _ASUNAME
2022:
2023: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024: for as_dir in $PATH
2025: do
2026: IFS=$as_save_IFS
2027: test -z "$as_dir" && as_dir=.
1.51 ! ohara 2028: $as_echo "PATH: $as_dir"
! 2029: done
1.37 ohara 2030: IFS=$as_save_IFS
1.14 noro 2031:
2032: } >&5
2033:
2034: cat >&5 <<_ACEOF
2035:
2036:
2037: ## ----------- ##
2038: ## Core tests. ##
2039: ## ----------- ##
2040:
2041: _ACEOF
2042:
2043:
2044: # Keep a trace of the command line.
2045: # Strip out --no-create and --no-recursion so they do not pile up.
1.32 noro 2046: # Strip out --silent because we don't want to record it for future runs.
1.14 noro 2047: # Also quote any args containing shell meta-characters.
1.32 noro 2048: # Make two passes to allow for proper duplicate-argument suppression.
1.14 noro 2049: ac_configure_args=
1.32 noro 2050: ac_configure_args0=
2051: ac_configure_args1=
2052: ac_must_keep_next=false
2053: for ac_pass in 1 2
1.14 noro 2054: do
1.32 noro 2055: for ac_arg
2056: do
2057: case $ac_arg in
2058: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2059: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2060: | -silent | --silent | --silen | --sile | --sil)
2061: continue ;;
1.37 ohara 2062: *\'*)
1.43 ohara 2063: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.32 noro 2064: esac
2065: case $ac_pass in
1.51 ! ohara 2066: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.32 noro 2067: 2)
1.51 ! ohara 2068: as_fn_append ac_configure_args1 " '$ac_arg'"
1.32 noro 2069: if test $ac_must_keep_next = true; then
2070: ac_must_keep_next=false # Got value, back to normal.
2071: else
2072: case $ac_arg in
2073: *=* | --config-cache | -C | -disable-* | --disable-* \
2074: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2075: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2076: | -with-* | --with-* | -without-* | --without-* | --x)
2077: case "$ac_configure_args0 " in
2078: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2079: esac
2080: ;;
2081: -* ) ac_must_keep_next=true ;;
2082: esac
2083: fi
1.51 ! ohara 2084: as_fn_append ac_configure_args " '$ac_arg'"
1.32 noro 2085: ;;
2086: esac
2087: done
1.14 noro 2088: done
1.51 ! ohara 2089: { ac_configure_args0=; unset ac_configure_args0;}
! 2090: { ac_configure_args1=; unset ac_configure_args1;}
1.14 noro 2091:
2092: # When interrupted or exit'd, cleanup temporary files, and complete
2093: # config.log. We remove comments because anyway the quotes in there
2094: # would cause problems or look ugly.
1.37 ohara 2095: # WARNING: Use '\'' to represent an apostrophe within the trap.
2096: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.14 noro 2097: trap 'exit_status=$?
2098: # Save into config.log some information that might help in debugging.
2099: {
2100: echo
1.32 noro 2101:
1.51 ! ohara 2102: $as_echo "## ---------------- ##
1.14 noro 2103: ## Cache variables. ##
1.51 ! ohara 2104: ## ---------------- ##"
1.14 noro 2105: echo
2106: # The following way of writing the cache mishandles newlines in values,
1.37 ohara 2107: (
2108: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2109: eval ac_val=\$$ac_var
2110: case $ac_val in #(
2111: *${as_nl}*)
2112: case $ac_var in #(
1.51 ! ohara 2113: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
! 2114: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.37 ohara 2115: esac
2116: case $ac_var in #(
2117: _ | IFS | as_nl) ;; #(
1.43 ohara 2118: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1.51 ! ohara 2119: *) { eval $ac_var=; unset $ac_var;} ;;
1.37 ohara 2120: esac ;;
2121: esac
2122: done
1.14 noro 2123: (set) 2>&1 |
1.37 ohara 2124: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2125: *${as_nl}ac_space=\ *)
1.14 noro 2126: sed -n \
1.37 ohara 2127: "s/'\''/'\''\\\\'\'''\''/g;
2128: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2129: ;; #(
1.14 noro 2130: *)
1.37 ohara 2131: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.14 noro 2132: ;;
1.37 ohara 2133: esac |
2134: sort
2135: )
1.14 noro 2136: echo
1.32 noro 2137:
1.51 ! ohara 2138: $as_echo "## ----------------- ##
1.32 noro 2139: ## Output variables. ##
1.51 ! ohara 2140: ## ----------------- ##"
1.32 noro 2141: echo
2142: for ac_var in $ac_subst_vars
2143: do
1.37 ohara 2144: eval ac_val=\$$ac_var
2145: case $ac_val in
1.43 ohara 2146: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.37 ohara 2147: esac
1.43 ohara 2148: $as_echo "$ac_var='\''$ac_val'\''"
1.32 noro 2149: done | sort
2150: echo
2151:
2152: if test -n "$ac_subst_files"; then
1.51 ! ohara 2153: $as_echo "## ------------------- ##
1.37 ohara 2154: ## File substitutions. ##
1.51 ! ohara 2155: ## ------------------- ##"
1.32 noro 2156: echo
2157: for ac_var in $ac_subst_files
2158: do
1.37 ohara 2159: eval ac_val=\$$ac_var
2160: case $ac_val in
1.43 ohara 2161: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.37 ohara 2162: esac
1.43 ohara 2163: $as_echo "$ac_var='\''$ac_val'\''"
1.32 noro 2164: done | sort
2165: echo
2166: fi
2167:
1.14 noro 2168: if test -s confdefs.h; then
1.51 ! ohara 2169: $as_echo "## ----------- ##
1.14 noro 2170: ## confdefs.h. ##
1.51 ! ohara 2171: ## ----------- ##"
1.14 noro 2172: echo
1.37 ohara 2173: cat confdefs.h
1.14 noro 2174: echo
2175: fi
2176: test "$ac_signal" != 0 &&
1.43 ohara 2177: $as_echo "$as_me: caught signal $ac_signal"
2178: $as_echo "$as_me: exit $exit_status"
1.14 noro 2179: } >&5
1.37 ohara 2180: rm -f core *.core core.conftest.* &&
2181: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.14 noro 2182: exit $exit_status
1.37 ohara 2183: ' 0
1.14 noro 2184: for ac_signal in 1 2 13 15; do
1.51 ! ohara 2185: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.14 noro 2186: done
2187: ac_signal=0
2188:
2189: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.37 ohara 2190: rm -f -r conftest* confdefs.h
1.14 noro 2191:
1.51 ! ohara 2192: $as_echo "/* confdefs.h */" > confdefs.h
! 2193:
1.14 noro 2194: # Predefined preprocessor variables.
2195:
2196: cat >>confdefs.h <<_ACEOF
2197: #define PACKAGE_NAME "$PACKAGE_NAME"
2198: _ACEOF
2199:
2200: cat >>confdefs.h <<_ACEOF
2201: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2202: _ACEOF
2203:
2204: cat >>confdefs.h <<_ACEOF
2205: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2206: _ACEOF
2207:
2208: cat >>confdefs.h <<_ACEOF
2209: #define PACKAGE_STRING "$PACKAGE_STRING"
2210: _ACEOF
2211:
1.51 ! ohara 2212: cat >>confdefs.h <<_ACEOF
! 2213: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
! 2214: _ACEOF
1.14 noro 2215:
2216: cat >>confdefs.h <<_ACEOF
1.51 ! ohara 2217: #define PACKAGE_URL "$PACKAGE_URL"
1.14 noro 2218: _ACEOF
2219:
2220:
2221: # Let the site file select an alternate cache file if it wants to.
1.43 ohara 2222: # Prefer an explicitly selected file to automatically selected ones.
2223: ac_site_file1=NONE
2224: ac_site_file2=NONE
1.37 ohara 2225: if test -n "$CONFIG_SITE"; then
1.51 ! ohara 2226: # We do not want a PATH search for config.site.
! 2227: case $CONFIG_SITE in #((
! 2228: -*) ac_site_file1=./$CONFIG_SITE;;
! 2229: */*) ac_site_file1=$CONFIG_SITE;;
! 2230: *) ac_site_file1=./$CONFIG_SITE;;
! 2231: esac
1.37 ohara 2232: elif test "x$prefix" != xNONE; then
1.43 ohara 2233: ac_site_file1=$prefix/share/config.site
2234: ac_site_file2=$prefix/etc/config.site
1.37 ohara 2235: else
1.43 ohara 2236: ac_site_file1=$ac_default_prefix/share/config.site
2237: ac_site_file2=$ac_default_prefix/etc/config.site
1.14 noro 2238: fi
1.43 ohara 2239: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1.37 ohara 2240: do
1.43 ohara 2241: test "x$ac_site_file" = xNONE && continue
1.51 ! ohara 2242: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
! 2243: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1.43 ohara 2244: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1.14 noro 2245: sed 's/^/| /' "$ac_site_file" >&5
1.51 ! ohara 2246: . "$ac_site_file" \
! 2247: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 2248: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 2249: as_fn_error $? "failed to load site script $ac_site_file
! 2250: See \`config.log' for more details" "$LINENO" 5; }
1.14 noro 2251: fi
2252: done
2253:
2254: if test -r "$cache_file"; then
1.51 ! ohara 2255: # Some versions of bash will fail to source /dev/null (special files
! 2256: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
! 2257: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
! 2258: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1.43 ohara 2259: $as_echo "$as_me: loading cache $cache_file" >&6;}
1.14 noro 2260: case $cache_file in
1.37 ohara 2261: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2262: *) . "./$cache_file";;
1.14 noro 2263: esac
2264: fi
2265: else
1.51 ! ohara 2266: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1.43 ohara 2267: $as_echo "$as_me: creating cache $cache_file" >&6;}
1.14 noro 2268: >$cache_file
2269: fi
2270:
2271: # Check that the precious variables saved in the cache have kept the same
2272: # value.
2273: ac_cache_corrupted=false
1.37 ohara 2274: for ac_var in $ac_precious_vars; do
1.14 noro 2275: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2276: eval ac_new_set=\$ac_env_${ac_var}_set
1.37 ohara 2277: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2278: eval ac_new_val=\$ac_env_${ac_var}_value
1.14 noro 2279: case $ac_old_set,$ac_new_set in
2280: set,)
1.51 ! ohara 2281: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1.43 ohara 2282: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.14 noro 2283: ac_cache_corrupted=: ;;
2284: ,set)
1.51 ! ohara 2285: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1.43 ohara 2286: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.14 noro 2287: ac_cache_corrupted=: ;;
2288: ,);;
2289: *)
2290: if test "x$ac_old_val" != "x$ac_new_val"; then
1.43 ohara 2291: # differences in whitespace do not lead to failure.
2292: ac_old_val_w=`echo x $ac_old_val`
2293: ac_new_val_w=`echo x $ac_new_val`
2294: if test "$ac_old_val_w" != "$ac_new_val_w"; then
1.51 ! ohara 2295: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1.43 ohara 2296: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2297: ac_cache_corrupted=:
2298: else
1.51 ! ohara 2299: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1.43 ohara 2300: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2301: eval $ac_var=\$ac_old_val
2302: fi
1.51 ! ohara 2303: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1.43 ohara 2304: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1.51 ! ohara 2305: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1.43 ohara 2306: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1.14 noro 2307: fi;;
2308: esac
2309: # Pass precious variables to config.status.
2310: if test "$ac_new_set" = set; then
2311: case $ac_new_val in
1.43 ohara 2312: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.14 noro 2313: *) ac_arg=$ac_var=$ac_new_val ;;
2314: esac
2315: case " $ac_configure_args " in
2316: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.51 ! ohara 2317: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1.14 noro 2318: esac
2319: fi
2320: done
2321: if $ac_cache_corrupted; then
1.51 ! ohara 2322: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 2323: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 2324: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1.43 ohara 2325: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.51 ! ohara 2326: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1.14 noro 2327: fi
1.51 ! ohara 2328: ## -------------------- ##
! 2329: ## Main body of script. ##
! 2330: ## -------------------- ##
1.14 noro 2331:
1.37 ohara 2332: ac_ext=c
2333: ac_cpp='$CPP $CPPFLAGS'
2334: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2335: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2336: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14 noro 2337:
2338:
2339:
1.32 noro 2340:
1.14 noro 2341: ac_aux_dir=
1.37 ohara 2342: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2343: if test -f "$ac_dir/install-sh"; then
1.14 noro 2344: ac_aux_dir=$ac_dir
2345: ac_install_sh="$ac_aux_dir/install-sh -c"
2346: break
1.37 ohara 2347: elif test -f "$ac_dir/install.sh"; then
1.14 noro 2348: ac_aux_dir=$ac_dir
2349: ac_install_sh="$ac_aux_dir/install.sh -c"
2350: break
1.37 ohara 2351: elif test -f "$ac_dir/shtool"; then
1.14 noro 2352: ac_aux_dir=$ac_dir
2353: ac_install_sh="$ac_aux_dir/shtool install -c"
2354: break
2355: fi
2356: done
2357: if test -z "$ac_aux_dir"; then
1.51 ! ohara 2358: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1.37 ohara 2359: fi
2360:
2361: # These three variables are undocumented and unsupported,
2362: # and are intended to be withdrawn in a future Autoconf release.
2363: # They can cause serious problems if a builder's source tree is in a directory
2364: # whose full name contains unusual characters.
2365: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2366: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2367: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2368:
2369:
2370: # Make sure we can run config.sub.
2371: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1.51 ! ohara 2372: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.37 ohara 2373:
1.51 ! ohara 2374: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1.43 ohara 2375: $as_echo_n "checking build system type... " >&6; }
1.51 ! ohara 2376: if ${ac_cv_build+:} false; then :
1.43 ohara 2377: $as_echo_n "(cached) " >&6
1.37 ohara 2378: else
2379: ac_build_alias=$build_alias
2380: test "x$ac_build_alias" = x &&
2381: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2382: test "x$ac_build_alias" = x &&
1.51 ! ohara 2383: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1.37 ohara 2384: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1.51 ! ohara 2385: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1.37 ohara 2386:
2387: fi
1.51 ! ohara 2388: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1.43 ohara 2389: $as_echo "$ac_cv_build" >&6; }
1.37 ohara 2390: case $ac_cv_build in
2391: *-*-*) ;;
1.51 ! ohara 2392: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1.37 ohara 2393: esac
2394: build=$ac_cv_build
2395: ac_save_IFS=$IFS; IFS='-'
2396: set x $ac_cv_build
2397: shift
2398: build_cpu=$1
2399: build_vendor=$2
2400: shift; shift
2401: # Remember, the first character of IFS is used to create $*,
2402: # except with old shells:
2403: build_os=$*
2404: IFS=$ac_save_IFS
2405: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2406:
2407:
1.51 ! ohara 2408: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1.43 ohara 2409: $as_echo_n "checking host system type... " >&6; }
1.51 ! ohara 2410: if ${ac_cv_host+:} false; then :
1.43 ohara 2411: $as_echo_n "(cached) " >&6
1.37 ohara 2412: else
2413: if test "x$host_alias" = x; then
2414: ac_cv_host=$ac_cv_build
2415: else
2416: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1.51 ! ohara 2417: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.14 noro 2418: fi
1.37 ohara 2419:
2420: fi
1.51 ! ohara 2421: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
1.43 ohara 2422: $as_echo "$ac_cv_host" >&6; }
1.37 ohara 2423: case $ac_cv_host in
2424: *-*-*) ;;
1.51 ! ohara 2425: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1.37 ohara 2426: esac
2427: host=$ac_cv_host
2428: ac_save_IFS=$IFS; IFS='-'
2429: set x $ac_cv_host
2430: shift
2431: host_cpu=$1
2432: host_vendor=$2
2433: shift; shift
2434: # Remember, the first character of IFS is used to create $*,
2435: # except with old shells:
2436: host_os=$*
2437: IFS=$ac_save_IFS
2438: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2439:
2440:
1.51 ! ohara 2441: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
1.43 ohara 2442: $as_echo_n "checking target system type... " >&6; }
1.51 ! ohara 2443: if ${ac_cv_target+:} false; then :
1.43 ohara 2444: $as_echo_n "(cached) " >&6
1.37 ohara 2445: else
2446: if test "x$target_alias" = x; then
2447: ac_cv_target=$ac_cv_host
2448: else
2449: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1.51 ! ohara 2450: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
1.37 ohara 2451: fi
2452:
2453: fi
1.51 ! ohara 2454: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
1.43 ohara 2455: $as_echo "$ac_cv_target" >&6; }
1.37 ohara 2456: case $ac_cv_target in
2457: *-*-*) ;;
1.51 ! ohara 2458: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
1.37 ohara 2459: esac
2460: target=$ac_cv_target
2461: ac_save_IFS=$IFS; IFS='-'
2462: set x $ac_cv_target
2463: shift
2464: target_cpu=$1
2465: target_vendor=$2
2466: shift; shift
2467: # Remember, the first character of IFS is used to create $*,
2468: # except with old shells:
2469: target_os=$*
2470: IFS=$ac_save_IFS
2471: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2472:
2473:
2474: # The aliases save the names the user supplied, while $host etc.
2475: # will get canonicalized.
2476: test -n "$target_alias" &&
2477: test "$program_prefix$program_suffix$program_transform_name" = \
2478: NONENONEs,x,x, &&
2479: program_prefix=${target_alias}-
1.51 ! ohara 2480: am__api_version='1.11'
1.14 noro 2481:
2482: # Find a good install program. We prefer a C program (faster),
2483: # so one script is as good as another. But avoid the broken or
2484: # incompatible versions:
2485: # SysV /etc/install, /usr/sbin/install
2486: # SunOS /usr/etc/install
2487: # IRIX /sbin/install
2488: # AIX /bin/install
2489: # AmigaOS /C/install, which installs bootblocks on floppy discs
2490: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2491: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2492: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.32 noro 2493: # OS/2's system install, which has a completely different semantic
1.14 noro 2494: # ./install, which can be erroneously created by make from ./install.sh.
1.43 ohara 2495: # Reject install programs that cannot install multiple files.
1.51 ! ohara 2496: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
1.43 ohara 2497: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.14 noro 2498: if test -z "$INSTALL"; then
1.51 ! ohara 2499: if ${ac_cv_path_install+:} false; then :
1.43 ohara 2500: $as_echo_n "(cached) " >&6
1.14 noro 2501: else
2502: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503: for as_dir in $PATH
2504: do
2505: IFS=$as_save_IFS
2506: test -z "$as_dir" && as_dir=.
1.51 ! ohara 2507: # Account for people who put trailing slashes in PATH elements.
! 2508: case $as_dir/ in #((
! 2509: ./ | .// | /[cC]/* | \
1.14 noro 2510: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.51 ! ohara 2511: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.14 noro 2512: /usr/ucb/* ) ;;
2513: *)
2514: # OSF1 and SCO ODT 3.0 have their own names for install.
2515: # Don't use installbsd from OSF since it installs stuff as root
2516: # by default.
2517: for ac_prog in ginstall scoinst install; do
2518: for ac_exec_ext in '' $ac_executable_extensions; do
1.37 ohara 2519: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1.32 noro 2520: if test $ac_prog = install &&
2521: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2522: # AIX install. It has an incompatible calling convention.
2523: :
2524: elif test $ac_prog = install &&
2525: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2526: # program-specific install script used by HP pwplus--don't use.
2527: :
2528: else
1.43 ohara 2529: rm -rf conftest.one conftest.two conftest.dir
2530: echo one > conftest.one
2531: echo two > conftest.two
2532: mkdir conftest.dir
2533: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2534: test -s conftest.one && test -s conftest.two &&
2535: test -s conftest.dir/conftest.one &&
2536: test -s conftest.dir/conftest.two
2537: then
2538: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2539: break 3
2540: fi
1.32 noro 2541: fi
2542: fi
1.14 noro 2543: done
2544: done
2545: ;;
2546: esac
1.43 ohara 2547:
1.51 ! ohara 2548: done
1.37 ohara 2549: IFS=$as_save_IFS
1.14 noro 2550:
1.43 ohara 2551: rm -rf conftest.one conftest.two conftest.dir
1.14 noro 2552:
2553: fi
2554: if test "${ac_cv_path_install+set}" = set; then
2555: INSTALL=$ac_cv_path_install
2556: else
1.37 ohara 2557: # As a last resort, use the slow shell script. Don't cache a
2558: # value for INSTALL within a source directory, because that will
1.14 noro 2559: # break other packages using the cache if that directory is
1.37 ohara 2560: # removed, or if the value is a relative name.
1.14 noro 2561: INSTALL=$ac_install_sh
2562: fi
2563: fi
1.51 ! ohara 2564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
1.43 ohara 2565: $as_echo "$INSTALL" >&6; }
1.14 noro 2566:
2567: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2568: # It thinks the first close brace ends the variable substitution.
2569: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2570:
2571: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2572:
2573: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2574:
1.51 ! ohara 2575: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
1.43 ohara 2576: $as_echo_n "checking whether build environment is sane... " >&6; }
1.14 noro 2577: # Just in case
2578: sleep 1
2579: echo timestamp > conftest.file
1.51 ! ohara 2580: # Reject unsafe characters in $srcdir or the absolute working directory
! 2581: # name. Accept space and tab only in the latter.
! 2582: am_lf='
! 2583: '
! 2584: case `pwd` in
! 2585: *[\\\"\#\$\&\'\`$am_lf]*)
! 2586: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
! 2587: esac
! 2588: case $srcdir in
! 2589: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
! 2590: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
! 2591: esac
! 2592:
1.14 noro 2593: # Do `set' in a subshell so we don't clobber the current shell's
2594: # arguments. Must try -L first in case configure is actually a
2595: # symlink; some systems play weird games with the mod time of symlinks
2596: # (eg FreeBSD returns the mod time of the symlink's containing
2597: # directory).
2598: if (
1.51 ! ohara 2599: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1.14 noro 2600: if test "$*" = "X"; then
2601: # -L didn't work.
1.51 ! ohara 2602: set X `ls -t "$srcdir/configure" conftest.file`
1.14 noro 2603: fi
2604: rm -f conftest.file
2605: if test "$*" != "X $srcdir/configure conftest.file" \
2606: && test "$*" != "X conftest.file $srcdir/configure"; then
2607:
2608: # If neither matched, then we have a broken ls. This can happen
2609: # if, for instance, CONFIG_SHELL is bash and it inherits a
2610: # broken ls alias from the environment. This has actually
2611: # happened. Such a system could not be considered "sane".
1.51 ! ohara 2612: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
! 2613: alias in your environment" "$LINENO" 5
1.14 noro 2614: fi
2615:
2616: test "$2" = conftest.file
2617: )
2618: then
2619: # Ok.
2620: :
2621: else
1.51 ! ohara 2622: as_fn_error $? "newly created file is older than distributed files!
! 2623: Check your system clock" "$LINENO" 5
1.14 noro 2624: fi
1.51 ! ohara 2625: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.43 ohara 2626: $as_echo "yes" >&6; }
1.14 noro 2627: test "$program_prefix" != NONE &&
1.37 ohara 2628: program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.14 noro 2629: # Use a double $ so make ignores it.
2630: test "$program_suffix" != NONE &&
1.37 ohara 2631: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1.43 ohara 2632: # Double any \ or $.
1.14 noro 2633: # By default was `s,x,x', remove it if useless.
1.43 ohara 2634: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2635: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1.14 noro 2636:
2637: # expand $ac_aux_dir to an absolute path
1.37 ohara 2638: am_aux_dir=`cd $ac_aux_dir && pwd`
1.14 noro 2639:
1.51 ! ohara 2640: if test x"${MISSING+set}" != xset; then
! 2641: case $am_aux_dir in
! 2642: *\ * | *\ *)
! 2643: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
! 2644: *)
! 2645: MISSING="\${SHELL} $am_aux_dir/missing" ;;
! 2646: esac
! 2647: fi
1.14 noro 2648: # Use eval to expand $SHELL
2649: if eval "$MISSING --run true"; then
2650: am_missing_run="$MISSING --run "
2651: else
2652: am_missing_run=
1.51 ! ohara 2653: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
1.43 ohara 2654: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1.37 ohara 2655: fi
2656:
1.51 ! ohara 2657: if test x"${install_sh}" != xset; then
! 2658: case $am_aux_dir in
! 2659: *\ * | *\ *)
! 2660: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
! 2661: *)
! 2662: install_sh="\${SHELL} $am_aux_dir/install-sh"
! 2663: esac
! 2664: fi
! 2665:
! 2666: # Installed binaries are usually stripped using `strip' when the user
! 2667: # run `make install-strip'. However `strip' might not be the right
! 2668: # tool to use in cross-compilation environments, therefore Automake
! 2669: # will honor the `STRIP' environment variable to overrule this program.
! 2670: if test "$cross_compiling" != no; then
! 2671: if test -n "$ac_tool_prefix"; then
! 2672: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
! 2673: set dummy ${ac_tool_prefix}strip; ac_word=$2
! 2674: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 2675: $as_echo_n "checking for $ac_word... " >&6; }
! 2676: if ${ac_cv_prog_STRIP+:} false; then :
! 2677: $as_echo_n "(cached) " >&6
! 2678: else
! 2679: if test -n "$STRIP"; then
! 2680: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
! 2681: else
! 2682: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2683: for as_dir in $PATH
! 2684: do
! 2685: IFS=$as_save_IFS
! 2686: test -z "$as_dir" && as_dir=.
! 2687: for ac_exec_ext in '' $ac_executable_extensions; do
! 2688: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 2689: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
! 2690: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2691: break 2
! 2692: fi
! 2693: done
! 2694: done
! 2695: IFS=$as_save_IFS
! 2696:
! 2697: fi
! 2698: fi
! 2699: STRIP=$ac_cv_prog_STRIP
! 2700: if test -n "$STRIP"; then
! 2701: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
! 2702: $as_echo "$STRIP" >&6; }
! 2703: else
! 2704: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 2705: $as_echo "no" >&6; }
! 2706: fi
! 2707:
! 2708:
! 2709: fi
! 2710: if test -z "$ac_cv_prog_STRIP"; then
! 2711: ac_ct_STRIP=$STRIP
! 2712: # Extract the first word of "strip", so it can be a program name with args.
! 2713: set dummy strip; ac_word=$2
! 2714: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 2715: $as_echo_n "checking for $ac_word... " >&6; }
! 2716: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
! 2717: $as_echo_n "(cached) " >&6
! 2718: else
! 2719: if test -n "$ac_ct_STRIP"; then
! 2720: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
! 2721: else
! 2722: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 2723: for as_dir in $PATH
! 2724: do
! 2725: IFS=$as_save_IFS
! 2726: test -z "$as_dir" && as_dir=.
! 2727: for ac_exec_ext in '' $ac_executable_extensions; do
! 2728: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 2729: ac_cv_prog_ac_ct_STRIP="strip"
! 2730: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 2731: break 2
! 2732: fi
! 2733: done
! 2734: done
! 2735: IFS=$as_save_IFS
! 2736:
! 2737: fi
! 2738: fi
! 2739: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
! 2740: if test -n "$ac_ct_STRIP"; then
! 2741: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
! 2742: $as_echo "$ac_ct_STRIP" >&6; }
! 2743: else
! 2744: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 2745: $as_echo "no" >&6; }
! 2746: fi
! 2747:
! 2748: if test "x$ac_ct_STRIP" = x; then
! 2749: STRIP=":"
! 2750: else
! 2751: case $cross_compiling:$ac_tool_warned in
! 2752: yes:)
! 2753: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 2754: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 2755: ac_tool_warned=yes ;;
! 2756: esac
! 2757: STRIP=$ac_ct_STRIP
! 2758: fi
! 2759: else
! 2760: STRIP="$ac_cv_prog_STRIP"
! 2761: fi
! 2762:
! 2763: fi
! 2764: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
! 2765:
! 2766: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
1.43 ohara 2767: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
1.37 ohara 2768: if test -z "$MKDIR_P"; then
1.51 ! ohara 2769: if ${ac_cv_path_mkdir+:} false; then :
1.43 ohara 2770: $as_echo_n "(cached) " >&6
1.37 ohara 2771: else
2772: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2774: do
2775: IFS=$as_save_IFS
2776: test -z "$as_dir" && as_dir=.
1.51 ! ohara 2777: for ac_prog in mkdir gmkdir; do
1.37 ohara 2778: for ac_exec_ext in '' $ac_executable_extensions; do
2779: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2780: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2781: 'mkdir (GNU coreutils) '* | \
2782: 'mkdir (coreutils) '* | \
2783: 'mkdir (fileutils) '4.1*)
2784: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2785: break 3;;
2786: esac
2787: done
2788: done
1.51 ! ohara 2789: done
1.37 ohara 2790: IFS=$as_save_IFS
2791:
2792: fi
2793:
1.51 ! ohara 2794: test -d ./--version && rmdir ./--version
1.37 ohara 2795: if test "${ac_cv_path_mkdir+set}" = set; then
2796: MKDIR_P="$ac_cv_path_mkdir -p"
2797: else
2798: # As a last resort, use the slow shell script. Don't cache a
2799: # value for MKDIR_P within a source directory, because that will
2800: # break other packages using the cache if that directory is
2801: # removed, or if the value is a relative name.
2802: MKDIR_P="$ac_install_sh -d"
2803: fi
1.14 noro 2804: fi
1.51 ! ohara 2805: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
1.43 ohara 2806: $as_echo "$MKDIR_P" >&6; }
1.37 ohara 2807:
2808: mkdir_p="$MKDIR_P"
2809: case $mkdir_p in
2810: [\\/$]* | ?:[\\/]*) ;;
2811: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2812: esac
1.14 noro 2813:
2814: for ac_prog in gawk mawk nawk awk
2815: do
2816: # Extract the first word of "$ac_prog", so it can be a program name with args.
2817: set dummy $ac_prog; ac_word=$2
1.51 ! ohara 2818: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.43 ohara 2819: $as_echo_n "checking for $ac_word... " >&6; }
1.51 ! ohara 2820: if ${ac_cv_prog_AWK+:} false; then :
1.43 ohara 2821: $as_echo_n "(cached) " >&6
1.14 noro 2822: else
2823: if test -n "$AWK"; then
2824: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2825: else
2826: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827: for as_dir in $PATH
2828: do
2829: IFS=$as_save_IFS
2830: test -z "$as_dir" && as_dir=.
1.51 ! ohara 2831: for ac_exec_ext in '' $ac_executable_extensions; do
1.37 ohara 2832: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.14 noro 2833: ac_cv_prog_AWK="$ac_prog"
1.51 ! ohara 2834: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 noro 2835: break 2
2836: fi
2837: done
1.51 ! ohara 2838: done
1.37 ohara 2839: IFS=$as_save_IFS
1.14 noro 2840:
2841: fi
2842: fi
2843: AWK=$ac_cv_prog_AWK
2844: if test -n "$AWK"; then
1.51 ! ohara 2845: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
1.43 ohara 2846: $as_echo "$AWK" >&6; }
1.14 noro 2847: else
1.51 ! ohara 2848: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.43 ohara 2849: $as_echo "no" >&6; }
1.14 noro 2850: fi
2851:
1.37 ohara 2852:
1.14 noro 2853: test -n "$AWK" && break
2854: done
2855:
1.51 ! ohara 2856: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1.43 ohara 2857: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2858: set x ${MAKE-make}
2859: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.51 ! ohara 2860: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
1.43 ohara 2861: $as_echo_n "(cached) " >&6
1.14 noro 2862: else
2863: cat >conftest.make <<\_ACEOF
1.37 ohara 2864: SHELL = /bin/sh
1.14 noro 2865: all:
1.37 ohara 2866: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.14 noro 2867: _ACEOF
1.51 ! ohara 2868: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.37 ohara 2869: case `${MAKE-make} -f conftest.make 2>/dev/null` in
2870: *@@@%%%=?*=@@@%%%*)
2871: eval ac_cv_prog_make_${ac_make}_set=yes;;
2872: *)
2873: eval ac_cv_prog_make_${ac_make}_set=no;;
2874: esac
1.14 noro 2875: rm -f conftest.make
2876: fi
1.37 ohara 2877: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1.51 ! ohara 2878: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.43 ohara 2879: $as_echo "yes" >&6; }
1.14 noro 2880: SET_MAKE=
2881: else
1.51 ! ohara 2882: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.43 ohara 2883: $as_echo "no" >&6; }
1.14 noro 2884: SET_MAKE="MAKE=${MAKE-make}"
2885: fi
2886:
1.37 ohara 2887: rm -rf .tst 2>/dev/null
2888: mkdir .tst 2>/dev/null
2889: if test -d .tst; then
2890: am__leading_dot=.
2891: else
2892: am__leading_dot=_
2893: fi
2894: rmdir .tst 2>/dev/null
2895:
2896: if test "`cd $srcdir && pwd`" != "`pwd`"; then
2897: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2898: # is not polluted with repeated "-I."
2899: am__isrc=' -I$(srcdir)'
2900: # test to see if srcdir already configured
2901: if test -f $srcdir/config.status; then
1.51 ! ohara 2902: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
1.37 ohara 2903: fi
1.14 noro 2904: fi
2905:
1.37 ohara 2906: # test whether we have cygpath
2907: if test -z "$CYGPATH_W"; then
2908: if (cygpath --version) >/dev/null 2>/dev/null; then
2909: CYGPATH_W='cygpath -w'
2910: else
2911: CYGPATH_W=echo
2912: fi
1.14 noro 2913: fi
2914:
2915:
1.37 ohara 2916: # Define the identity of the package.
2917: PACKAGE=asir
2918: VERSION=20030307
1.14 noro 2919:
2920:
2921: cat >>confdefs.h <<_ACEOF
2922: #define PACKAGE "$PACKAGE"
2923: _ACEOF
2924:
2925:
2926: cat >>confdefs.h <<_ACEOF
2927: #define VERSION "$VERSION"
2928: _ACEOF
2929:
2930: # Some tools Automake needs.
2931:
1.37 ohara 2932: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1.14 noro 2933:
2934:
2935: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2936:
2937:
1.37 ohara 2938: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1.14 noro 2939:
2940:
2941: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2942:
2943:
2944: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2945:
1.37 ohara 2946: # We need awk for the "check" target. The system "awk" is bad on
2947: # some platforms.
2948: # Always define AMTAR for backward compatibility.
1.22 ohara 2949:
1.37 ohara 2950: AMTAR=${AMTAR-"${am_missing_run}tar"}
1.22 ohara 2951:
1.37 ohara 2952: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1.22 ohara 2953:
1.14 noro 2954:
2955:
2956:
2957:
1.51 ! ohara 2958:
! 2959: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
1.43 ohara 2960: $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
1.37 ohara 2961: # Check whether --enable-maintainer-mode was given.
1.51 ! ohara 2962: if test "${enable_maintainer_mode+set}" = set; then :
1.37 ohara 2963: enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1.14 noro 2964: else
1.37 ohara 2965: USE_MAINTAINER_MODE=no
1.14 noro 2966: fi
2967:
1.51 ! ohara 2968: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
1.43 ohara 2969: $as_echo "$USE_MAINTAINER_MODE" >&6; }
1.37 ohara 2970: if test $USE_MAINTAINER_MODE = yes; then
2971: MAINTAINER_MODE_TRUE=
2972: MAINTAINER_MODE_FALSE='#'
1.14 noro 2973: else
1.37 ohara 2974: MAINTAINER_MODE_TRUE='#'
2975: MAINTAINER_MODE_FALSE=
2976: fi
1.14 noro 2977:
1.37 ohara 2978: MAINT=$MAINTAINER_MODE_TRUE
1.14 noro 2979:
2980:
2981:
2982: ac_ext=c
2983: ac_cpp='$CPP $CPPFLAGS'
2984: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2987: if test -n "$ac_tool_prefix"; then
2988: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2989: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.51 ! ohara 2990: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.43 ohara 2991: $as_echo_n "checking for $ac_word... " >&6; }
1.51 ! ohara 2992: if ${ac_cv_prog_CC+:} false; then :
1.43 ohara 2993: $as_echo_n "(cached) " >&6
1.14 noro 2994: else
2995: if test -n "$CC"; then
2996: ac_cv_prog_CC="$CC" # Let the user override the test.
2997: else
2998: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999: for as_dir in $PATH
3000: do
3001: IFS=$as_save_IFS
3002: test -z "$as_dir" && as_dir=.
1.51 ! ohara 3003: for ac_exec_ext in '' $ac_executable_extensions; do
1.37 ohara 3004: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.14 noro 3005: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.51 ! ohara 3006: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 noro 3007: break 2
3008: fi
3009: done
1.51 ! ohara 3010: done
1.37 ohara 3011: IFS=$as_save_IFS
1.14 noro 3012:
3013: fi
3014: fi
3015: CC=$ac_cv_prog_CC
3016: if test -n "$CC"; then
1.51 ! ohara 3017: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1.43 ohara 3018: $as_echo "$CC" >&6; }
1.14 noro 3019: else
1.51 ! ohara 3020: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.43 ohara 3021: $as_echo "no" >&6; }
1.14 noro 3022: fi
3023:
1.37 ohara 3024:
1.14 noro 3025: fi
3026: if test -z "$ac_cv_prog_CC"; then
3027: ac_ct_CC=$CC
3028: # Extract the first word of "gcc", so it can be a program name with args.
3029: set dummy gcc; ac_word=$2
1.51 ! ohara 3030: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.43 ohara 3031: $as_echo_n "checking for $ac_word... " >&6; }
1.51 ! ohara 3032: if ${ac_cv_prog_ac_ct_CC+:} false; then :
1.43 ohara 3033: $as_echo_n "(cached) " >&6
1.14 noro 3034: else
3035: if test -n "$ac_ct_CC"; then
3036: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3037: else
3038: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039: for as_dir in $PATH
3040: do
3041: IFS=$as_save_IFS
3042: test -z "$as_dir" && as_dir=.
1.51 ! ohara 3043: for ac_exec_ext in '' $ac_executable_extensions; do
1.37 ohara 3044: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.14 noro 3045: ac_cv_prog_ac_ct_CC="gcc"
1.51 ! ohara 3046: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 noro 3047: break 2
3048: fi
3049: done
1.51 ! ohara 3050: done
1.37 ohara 3051: IFS=$as_save_IFS
1.14 noro 3052:
3053: fi
3054: fi
3055: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3056: if test -n "$ac_ct_CC"; then
1.51 ! ohara 3057: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1.43 ohara 3058: $as_echo "$ac_ct_CC" >&6; }
1.14 noro 3059: else
1.51 ! ohara 3060: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.43 ohara 3061: $as_echo "no" >&6; }
1.14 noro 3062: fi
3063:
1.37 ohara 3064: if test "x$ac_ct_CC" = x; then
3065: CC=""
3066: else
3067: case $cross_compiling:$ac_tool_warned in
3068: yes:)
1.51 ! ohara 3069: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 3070: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.37 ohara 3071: ac_tool_warned=yes ;;
3072: esac
3073: CC=$ac_ct_CC
3074: fi
1.14 noro 3075: else
3076: CC="$ac_cv_prog_CC"
3077: fi
3078:
3079: if test -z "$CC"; then
1.37 ohara 3080: if test -n "$ac_tool_prefix"; then
3081: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.14 noro 3082: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.51 ! ohara 3083: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.43 ohara 3084: $as_echo_n "checking for $ac_word... " >&6; }
1.51 ! ohara 3085: if ${ac_cv_prog_CC+:} false; then :
1.43 ohara 3086: $as_echo_n "(cached) " >&6
1.14 noro 3087: else
3088: if test -n "$CC"; then
3089: ac_cv_prog_CC="$CC" # Let the user override the test.
3090: else
3091: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092: for as_dir in $PATH
3093: do
3094: IFS=$as_save_IFS
3095: test -z "$as_dir" && as_dir=.
1.51 ! ohara 3096: for ac_exec_ext in '' $ac_executable_extensions; do
1.37 ohara 3097: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.14 noro 3098: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.51 ! ohara 3099: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 noro 3100: break 2
3101: fi
3102: done
1.51 ! ohara 3103: done
1.37 ohara 3104: IFS=$as_save_IFS
1.14 noro 3105:
3106: fi
3107: fi
3108: CC=$ac_cv_prog_CC
3109: if test -n "$CC"; then
1.51 ! ohara 3110: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1.43 ohara 3111: $as_echo "$CC" >&6; }
1.14 noro 3112: else
1.51 ! ohara 3113: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.43 ohara 3114: $as_echo "no" >&6; }
1.14 noro 3115: fi
3116:
1.37 ohara 3117:
1.14 noro 3118: fi
3119: fi
3120: if test -z "$CC"; then
3121: # Extract the first word of "cc", so it can be a program name with args.
3122: set dummy cc; ac_word=$2
1.51 ! ohara 3123: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.43 ohara 3124: $as_echo_n "checking for $ac_word... " >&6; }
1.51 ! ohara 3125: if ${ac_cv_prog_CC+:} false; then :
1.43 ohara 3126: $as_echo_n "(cached) " >&6
1.14 noro 3127: else
3128: if test -n "$CC"; then
3129: ac_cv_prog_CC="$CC" # Let the user override the test.
3130: else
3131: ac_prog_rejected=no
3132: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133: for as_dir in $PATH
3134: do
3135: IFS=$as_save_IFS
3136: test -z "$as_dir" && as_dir=.
1.51 ! ohara 3137: for ac_exec_ext in '' $ac_executable_extensions; do
1.37 ohara 3138: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.14 noro 3139: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3140: ac_prog_rejected=yes
3141: continue
3142: fi
3143: ac_cv_prog_CC="cc"
1.51 ! ohara 3144: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 noro 3145: break 2
3146: fi
3147: done
1.51 ! ohara 3148: done
1.37 ohara 3149: IFS=$as_save_IFS
1.14 noro 3150:
3151: if test $ac_prog_rejected = yes; then
3152: # We found a bogon in the path, so make sure we never use it.
3153: set dummy $ac_cv_prog_CC
3154: shift
3155: if test $# != 0; then
3156: # We chose a different compiler from the bogus one.
3157: # However, it has the same basename, so the bogon will be chosen
3158: # first if we set CC to just the basename; use the full file name.
3159: shift
1.32 noro 3160: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.14 noro 3161: fi
3162: fi
3163: fi
3164: fi
3165: CC=$ac_cv_prog_CC
3166: if test -n "$CC"; then
1.51 ! ohara 3167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1.43 ohara 3168: $as_echo "$CC" >&6; }
1.14 noro 3169: else
1.51 ! ohara 3170: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.43 ohara 3171: $as_echo "no" >&6; }
1.14 noro 3172: fi
3173:
1.37 ohara 3174:
1.14 noro 3175: fi
3176: if test -z "$CC"; then
3177: if test -n "$ac_tool_prefix"; then
1.37 ohara 3178: for ac_prog in cl.exe
1.14 noro 3179: do
3180: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3181: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.51 ! ohara 3182: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.43 ohara 3183: $as_echo_n "checking for $ac_word... " >&6; }
1.51 ! ohara 3184: if ${ac_cv_prog_CC+:} false; then :
1.43 ohara 3185: $as_echo_n "(cached) " >&6
1.14 noro 3186: else
3187: if test -n "$CC"; then
3188: ac_cv_prog_CC="$CC" # Let the user override the test.
3189: else
3190: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191: for as_dir in $PATH
3192: do
3193: IFS=$as_save_IFS
3194: test -z "$as_dir" && as_dir=.
1.51 ! ohara 3195: for ac_exec_ext in '' $ac_executable_extensions; do
1.37 ohara 3196: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.14 noro 3197: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.51 ! ohara 3198: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 noro 3199: break 2
3200: fi
3201: done
1.51 ! ohara 3202: done
1.37 ohara 3203: IFS=$as_save_IFS
1.14 noro 3204:
3205: fi
3206: fi
3207: CC=$ac_cv_prog_CC
3208: if test -n "$CC"; then
1.51 ! ohara 3209: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1.43 ohara 3210: $as_echo "$CC" >&6; }
1.14 noro 3211: else
1.51 ! ohara 3212: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.43 ohara 3213: $as_echo "no" >&6; }
1.14 noro 3214: fi
3215:
1.37 ohara 3216:
1.14 noro 3217: test -n "$CC" && break
3218: done
3219: fi
3220: if test -z "$CC"; then
3221: ac_ct_CC=$CC
1.37 ohara 3222: for ac_prog in cl.exe
1.14 noro 3223: do
3224: # Extract the first word of "$ac_prog", so it can be a program name with args.
3225: set dummy $ac_prog; ac_word=$2
1.51 ! ohara 3226: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.43 ohara 3227: $as_echo_n "checking for $ac_word... " >&6; }
1.51 ! ohara 3228: if ${ac_cv_prog_ac_ct_CC+:} false; then :
1.43 ohara 3229: $as_echo_n "(cached) " >&6
1.14 noro 3230: else
3231: if test -n "$ac_ct_CC"; then
3232: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3233: else
3234: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235: for as_dir in $PATH
3236: do
3237: IFS=$as_save_IFS
3238: test -z "$as_dir" && as_dir=.
1.51 ! ohara 3239: for ac_exec_ext in '' $ac_executable_extensions; do
1.37 ohara 3240: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.14 noro 3241: ac_cv_prog_ac_ct_CC="$ac_prog"
1.51 ! ohara 3242: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 noro 3243: break 2
3244: fi
3245: done
1.51 ! ohara 3246: done
1.37 ohara 3247: IFS=$as_save_IFS
1.14 noro 3248:
3249: fi
3250: fi
3251: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3252: if test -n "$ac_ct_CC"; then
1.51 ! ohara 3253: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1.43 ohara 3254: $as_echo "$ac_ct_CC" >&6; }
1.14 noro 3255: else
1.51 ! ohara 3256: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.43 ohara 3257: $as_echo "no" >&6; }
1.14 noro 3258: fi
3259:
1.37 ohara 3260:
1.14 noro 3261: test -n "$ac_ct_CC" && break
3262: done
3263:
1.37 ohara 3264: if test "x$ac_ct_CC" = x; then
3265: CC=""
3266: else
3267: case $cross_compiling:$ac_tool_warned in
3268: yes:)
1.51 ! ohara 3269: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 3270: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.37 ohara 3271: ac_tool_warned=yes ;;
3272: esac
3273: CC=$ac_ct_CC
3274: fi
1.14 noro 3275: fi
3276:
3277: fi
3278:
3279:
1.51 ! ohara 3280: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 3281: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 3282: as_fn_error $? "no acceptable C compiler found in \$PATH
! 3283: See \`config.log' for more details" "$LINENO" 5; }
1.14 noro 3284:
3285: # Provide some information about the compiler.
1.51 ! ohara 3286: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
1.43 ohara 3287: set X $ac_compile
3288: ac_compiler=$2
1.51 ! ohara 3289: for ac_option in --version -v -V -qversion; do
! 3290: { { ac_try="$ac_compiler $ac_option >&5"
1.37 ohara 3291: case "(($ac_try" in
3292: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293: *) ac_try_echo=$ac_try;;
3294: esac
1.51 ! ohara 3295: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 3296: $as_echo "$ac_try_echo"; } >&5
! 3297: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14 noro 3298: ac_status=$?
1.51 ! ohara 3299: if test -s conftest.err; then
! 3300: sed '10a\
! 3301: ... rest of stderr output deleted ...
! 3302: 10q' conftest.err >conftest.er1
! 3303: cat conftest.er1 >&5
! 3304: fi
! 3305: rm -f conftest.er1 conftest.err
! 3306: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 3307: test $ac_status = 0; }
! 3308: done
1.14 noro 3309:
1.51 ! ohara 3310: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 3311: /* end confdefs.h. */
1.14 noro 3312:
3313: int
3314: main ()
3315: {
3316:
3317: ;
3318: return 0;
3319: }
3320: _ACEOF
3321: ac_clean_files_save=$ac_clean_files
1.43 ohara 3322: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.14 noro 3323: # Try to create an executable without -o first, disregard a.out.
3324: # It will help us diagnose broken compilers, and finding out an intuition
3325: # of exeext.
1.51 ! ohara 3326: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
! 3327: $as_echo_n "checking whether the C compiler works... " >&6; }
1.43 ohara 3328: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3329:
3330: # The possible output files:
3331: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3332:
1.37 ohara 3333: ac_rmfiles=
3334: for ac_file in $ac_files
3335: do
3336: case $ac_file in
1.43 ohara 3337: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.37 ohara 3338: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3339: esac
3340: done
3341: rm -f $ac_rmfiles
3342:
1.51 ! ohara 3343: if { { ac_try="$ac_link_default"
1.37 ohara 3344: case "(($ac_try" in
3345: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346: *) ac_try_echo=$ac_try;;
3347: esac
1.51 ! ohara 3348: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 3349: $as_echo "$ac_try_echo"; } >&5
1.37 ohara 3350: (eval "$ac_link_default") 2>&5
1.14 noro 3351: ac_status=$?
1.51 ! ohara 3352: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 3353: test $ac_status = 0; }; then :
1.37 ohara 3354: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3355: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3356: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3357: # so that the user can short-circuit this test for compilers unknown to
3358: # Autoconf.
3359: for ac_file in $ac_files ''
1.32 noro 3360: do
3361: test -f "$ac_file" || continue
1.14 noro 3362: case $ac_file in
1.43 ohara 3363: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1.32 noro 3364: ;;
3365: [ab].out )
3366: # We found the default executable, but exeext='' is most
3367: # certainly right.
3368: break;;
3369: *.* )
1.51 ! ohara 3370: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
1.37 ohara 3371: then :; else
3372: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3373: fi
3374: # We set ac_cv_exeext here because the later test for it is not
3375: # safe: cross compilers may not add the suffix if given an `-o'
3376: # argument, so we may need to know it at that point already.
3377: # Even if this section looks crufty: it has the advantage of
3378: # actually working.
1.32 noro 3379: break;;
3380: * )
3381: break;;
1.14 noro 3382: esac
3383: done
1.37 ohara 3384: test "$ac_cv_exeext" = no && ac_cv_exeext=
3385:
1.14 noro 3386: else
1.37 ohara 3387: ac_file=''
3388: fi
1.51 ! ohara 3389: if test -z "$ac_file"; then :
! 3390: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3391: $as_echo "no" >&6; }
! 3392: $as_echo "$as_me: failed program was:" >&5
1.32 noro 3393: sed 's/^/| /' conftest.$ac_ext >&5
3394:
1.51 ! ohara 3395: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 3396: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 3397: as_fn_error 77 "C compiler cannot create executables
! 3398: See \`config.log' for more details" "$LINENO" 5; }
! 3399: else
! 3400: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 3401: $as_echo "yes" >&6; }
1.14 noro 3402: fi
1.51 ! ohara 3403: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
! 3404: $as_echo_n "checking for C compiler default output file name... " >&6; }
! 3405: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
! 3406: $as_echo "$ac_file" >&6; }
1.14 noro 3407: ac_exeext=$ac_cv_exeext
3408:
1.43 ohara 3409: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.14 noro 3410: ac_clean_files=$ac_clean_files_save
1.51 ! ohara 3411: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
1.43 ohara 3412: $as_echo_n "checking for suffix of executables... " >&6; }
1.51 ! ohara 3413: if { { ac_try="$ac_link"
1.37 ohara 3414: case "(($ac_try" in
3415: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416: *) ac_try_echo=$ac_try;;
3417: esac
1.51 ! ohara 3418: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 3419: $as_echo "$ac_try_echo"; } >&5
1.37 ohara 3420: (eval "$ac_link") 2>&5
1.14 noro 3421: ac_status=$?
1.51 ! ohara 3422: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 3423: test $ac_status = 0; }; then :
1.14 noro 3424: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3425: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3426: # work properly (i.e., refer to `conftest.exe'), while it won't with
3427: # `rm'.
1.32 noro 3428: for ac_file in conftest.exe conftest conftest.*; do
3429: test -f "$ac_file" || continue
1.14 noro 3430: case $ac_file in
1.43 ohara 3431: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.14 noro 3432: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.32 noro 3433: break;;
1.14 noro 3434: * ) break;;
3435: esac
3436: done
3437: else
1.51 ! ohara 3438: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 3439: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 3440: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
! 3441: See \`config.log' for more details" "$LINENO" 5; }
1.14 noro 3442: fi
1.51 ! ohara 3443: rm -f conftest conftest$ac_cv_exeext
! 3444: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
1.43 ohara 3445: $as_echo "$ac_cv_exeext" >&6; }
1.14 noro 3446:
3447: rm -f conftest.$ac_ext
3448: EXEEXT=$ac_cv_exeext
3449: ac_exeext=$EXEEXT
1.51 ! ohara 3450: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 3451: /* end confdefs.h. */
! 3452: #include <stdio.h>
! 3453: int
! 3454: main ()
! 3455: {
! 3456: FILE *f = fopen ("conftest.out", "w");
! 3457: return ferror (f) || fclose (f) != 0;
! 3458:
! 3459: ;
! 3460: return 0;
! 3461: }
! 3462: _ACEOF
! 3463: ac_clean_files="$ac_clean_files conftest.out"
! 3464: # Check that the compiler produces executables we can run. If not, either
! 3465: # the compiler is broken, or we cross compile.
! 3466: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
! 3467: $as_echo_n "checking whether we are cross compiling... " >&6; }
! 3468: if test "$cross_compiling" != yes; then
! 3469: { { ac_try="$ac_link"
! 3470: case "(($ac_try" in
! 3471: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3472: *) ac_try_echo=$ac_try;;
! 3473: esac
! 3474: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 3475: $as_echo "$ac_try_echo"; } >&5
! 3476: (eval "$ac_link") 2>&5
! 3477: ac_status=$?
! 3478: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 3479: test $ac_status = 0; }
! 3480: if { ac_try='./conftest$ac_cv_exeext'
! 3481: { { case "(($ac_try" in
! 3482: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 3483: *) ac_try_echo=$ac_try;;
! 3484: esac
! 3485: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 3486: $as_echo "$ac_try_echo"; } >&5
! 3487: (eval "$ac_try") 2>&5
! 3488: ac_status=$?
! 3489: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 3490: test $ac_status = 0; }; }; then
! 3491: cross_compiling=no
! 3492: else
! 3493: if test "$cross_compiling" = maybe; then
! 3494: cross_compiling=yes
! 3495: else
! 3496: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 3497: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 3498: as_fn_error $? "cannot run C compiled programs.
! 3499: If you meant to cross compile, use \`--host'.
! 3500: See \`config.log' for more details" "$LINENO" 5; }
! 3501: fi
! 3502: fi
! 3503: fi
! 3504: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
! 3505: $as_echo "$cross_compiling" >&6; }
! 3506:
! 3507: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
! 3508: ac_clean_files=$ac_clean_files_save
! 3509: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
1.43 ohara 3510: $as_echo_n "checking for suffix of object files... " >&6; }
1.51 ! ohara 3511: if ${ac_cv_objext+:} false; then :
1.43 ohara 3512: $as_echo_n "(cached) " >&6
1.14 noro 3513: else
1.51 ! ohara 3514: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 3515: /* end confdefs.h. */
1.14 noro 3516:
3517: int
3518: main ()
3519: {
3520:
3521: ;
3522: return 0;
3523: }
3524: _ACEOF
3525: rm -f conftest.o conftest.obj
1.51 ! ohara 3526: if { { ac_try="$ac_compile"
1.37 ohara 3527: case "(($ac_try" in
3528: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529: *) ac_try_echo=$ac_try;;
3530: esac
1.51 ! ohara 3531: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 3532: $as_echo "$ac_try_echo"; } >&5
1.37 ohara 3533: (eval "$ac_compile") 2>&5
1.14 noro 3534: ac_status=$?
1.51 ! ohara 3535: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 3536: test $ac_status = 0; }; then :
1.37 ohara 3537: for ac_file in conftest.o conftest.obj conftest.*; do
3538: test -f "$ac_file" || continue;
1.14 noro 3539: case $ac_file in
1.43 ohara 3540: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.14 noro 3541: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3542: break;;
3543: esac
3544: done
3545: else
1.43 ohara 3546: $as_echo "$as_me: failed program was:" >&5
1.32 noro 3547: sed 's/^/| /' conftest.$ac_ext >&5
3548:
1.51 ! ohara 3549: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 3550: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 3551: as_fn_error $? "cannot compute suffix of object files: cannot compile
! 3552: See \`config.log' for more details" "$LINENO" 5; }
1.14 noro 3553: fi
3554: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3555: fi
1.51 ! ohara 3556: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
1.43 ohara 3557: $as_echo "$ac_cv_objext" >&6; }
1.14 noro 3558: OBJEXT=$ac_cv_objext
3559: ac_objext=$OBJEXT
1.51 ! ohara 3560: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
1.43 ohara 3561: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
1.51 ! ohara 3562: if ${ac_cv_c_compiler_gnu+:} false; then :
1.43 ohara 3563: $as_echo_n "(cached) " >&6
1.14 noro 3564: else
1.51 ! ohara 3565: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 3566: /* end confdefs.h. */
1.14 noro 3567:
3568: int
3569: main ()
3570: {
3571: #ifndef __GNUC__
3572: choke me
3573: #endif
3574:
3575: ;
3576: return 0;
3577: }
3578: _ACEOF
1.51 ! ohara 3579: if ac_fn_c_try_compile "$LINENO"; then :
1.14 noro 3580: ac_compiler_gnu=yes
3581: else
1.51 ! ohara 3582: ac_compiler_gnu=no
1.14 noro 3583: fi
1.37 ohara 3584: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.14 noro 3585: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3586:
3587: fi
1.51 ! ohara 3588: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
1.43 ohara 3589: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3590: if test $ac_compiler_gnu = yes; then
3591: GCC=yes
3592: else
3593: GCC=
3594: fi
1.14 noro 3595: ac_test_CFLAGS=${CFLAGS+set}
3596: ac_save_CFLAGS=$CFLAGS
1.51 ! ohara 3597: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
1.43 ohara 3598: $as_echo_n "checking whether $CC accepts -g... " >&6; }
1.51 ! ohara 3599: if ${ac_cv_prog_cc_g+:} false; then :
1.43 ohara 3600: $as_echo_n "(cached) " >&6
1.14 noro 3601: else
1.37 ohara 3602: ac_save_c_werror_flag=$ac_c_werror_flag
3603: ac_c_werror_flag=yes
3604: ac_cv_prog_cc_g=no
3605: CFLAGS="-g"
1.51 ! ohara 3606: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 3607: /* end confdefs.h. */
1.14 noro 3608:
3609: int
3610: main ()
3611: {
3612:
3613: ;
3614: return 0;
3615: }
3616: _ACEOF
1.51 ! ohara 3617: if ac_fn_c_try_compile "$LINENO"; then :
1.37 ohara 3618: ac_cv_prog_cc_g=yes
3619: else
1.51 ! ohara 3620: CFLAGS=""
! 3621: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.37 ohara 3622: /* end confdefs.h. */
3623:
3624: int
3625: main ()
3626: {
3627:
3628: ;
3629: return 0;
3630: }
3631: _ACEOF
1.51 ! ohara 3632: if ac_fn_c_try_compile "$LINENO"; then :
! 3633:
1.37 ohara 3634: else
1.51 ! ohara 3635: ac_c_werror_flag=$ac_save_c_werror_flag
1.37 ohara 3636: CFLAGS="-g"
1.51 ! ohara 3637: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.37 ohara 3638: /* end confdefs.h. */
3639:
3640: int
3641: main ()
3642: {
3643:
3644: ;
3645: return 0;
3646: }
3647: _ACEOF
1.51 ! ohara 3648: if ac_fn_c_try_compile "$LINENO"; then :
1.14 noro 3649: ac_cv_prog_cc_g=yes
1.37 ohara 3650: fi
3651: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.14 noro 3652: fi
1.37 ohara 3653: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654: fi
3655: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3656: ac_c_werror_flag=$ac_save_c_werror_flag
1.14 noro 3657: fi
1.51 ! ohara 3658: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
1.43 ohara 3659: $as_echo "$ac_cv_prog_cc_g" >&6; }
1.14 noro 3660: if test "$ac_test_CFLAGS" = set; then
3661: CFLAGS=$ac_save_CFLAGS
3662: elif test $ac_cv_prog_cc_g = yes; then
3663: if test "$GCC" = yes; then
3664: CFLAGS="-g -O2"
3665: else
3666: CFLAGS="-g"
3667: fi
3668: else
3669: if test "$GCC" = yes; then
3670: CFLAGS="-O2"
3671: else
3672: CFLAGS=
3673: fi
3674: fi
1.51 ! ohara 3675: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
1.43 ohara 3676: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
1.51 ! ohara 3677: if ${ac_cv_prog_cc_c89+:} false; then :
1.43 ohara 3678: $as_echo_n "(cached) " >&6
1.32 noro 3679: else
1.37 ohara 3680: ac_cv_prog_cc_c89=no
1.32 noro 3681: ac_save_CC=$CC
1.51 ! ohara 3682: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 3683: /* end confdefs.h. */
3684: #include <stdarg.h>
3685: #include <stdio.h>
3686: #include <sys/types.h>
3687: #include <sys/stat.h>
3688: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3689: struct buf { int x; };
3690: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3691: static char *e (p, i)
3692: char **p;
3693: int i;
3694: {
3695: return p[i];
3696: }
3697: static char *f (char * (*g) (char **, int), char **p, ...)
3698: {
3699: char *s;
3700: va_list v;
3701: va_start (v,p);
3702: s = g (p, va_arg (v,int));
3703: va_end (v);
3704: return s;
3705: }
3706:
3707: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3708: function prototypes and stuff, but not '\xHH' hex character constants.
3709: These don't provoke an error unfortunately, instead are silently treated
1.37 ohara 3710: as 'x'. The following induces an error, until -std is added to get
1.32 noro 3711: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3712: array size at least. It's necessary to write '\x00'==0 to get something
1.37 ohara 3713: that's true only with -std. */
1.32 noro 3714: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3715:
1.37 ohara 3716: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3717: inside strings and character constants. */
3718: #define FOO(x) 'x'
3719: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3720:
1.32 noro 3721: int test (int i, double x);
3722: struct s1 {int (*f) (int a);};
3723: struct s2 {int (*f) (double a);};
3724: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3725: int argc;
3726: char **argv;
3727: int
3728: main ()
3729: {
3730: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3731: ;
3732: return 0;
3733: }
3734: _ACEOF
1.37 ohara 3735: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3736: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.32 noro 3737: do
3738: CC="$ac_save_CC $ac_arg"
1.51 ! ohara 3739: if ac_fn_c_try_compile "$LINENO"; then :
1.37 ohara 3740: ac_cv_prog_cc_c89=$ac_arg
1.32 noro 3741: fi
1.37 ohara 3742: rm -f core conftest.err conftest.$ac_objext
3743: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.32 noro 3744: done
1.37 ohara 3745: rm -f conftest.$ac_ext
1.32 noro 3746: CC=$ac_save_CC
3747:
3748: fi
1.37 ohara 3749: # AC_CACHE_VAL
3750: case "x$ac_cv_prog_cc_c89" in
3751: x)
1.51 ! ohara 3752: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
1.43 ohara 3753: $as_echo "none needed" >&6; } ;;
1.37 ohara 3754: xno)
1.51 ! ohara 3755: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
1.43 ohara 3756: $as_echo "unsupported" >&6; } ;;
1.32 noro 3757: *)
1.37 ohara 3758: CC="$CC $ac_cv_prog_cc_c89"
1.51 ! ohara 3759: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
1.43 ohara 3760: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.32 noro 3761: esac
1.51 ! ohara 3762: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.32 noro 3763:
1.51 ! ohara 3764: fi
1.32 noro 3765:
1.14 noro 3766: ac_ext=c
3767: ac_cpp='$CPP $CPPFLAGS'
3768: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.37 ohara 3771: DEPDIR="${am__leading_dot}deps"
3772:
3773: ac_config_commands="$ac_config_commands depfiles"
1.14 noro 3774:
3775:
3776: am_make=${MAKE-make}
3777: cat > confinc << 'END'
1.37 ohara 3778: am__doit:
1.51 ! ohara 3779: @echo this is the am__doit target
1.37 ohara 3780: .PHONY: am__doit
1.14 noro 3781: END
3782: # If we don't find an include directive, just comment out the code.
1.51 ! ohara 3783: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
1.43 ohara 3784: $as_echo_n "checking for style of include used by $am_make... " >&6; }
1.37 ohara 3785: am__include="#"
1.14 noro 3786: am__quote=
3787: _am_result=none
3788: # First try GNU make style include.
3789: echo "include confinc" > confmf
1.51 ! ohara 3790: # Ignore all kinds of additional output from `make'.
! 3791: case `$am_make -s -f confmf 2> /dev/null` in #(
! 3792: *the\ am__doit\ target*)
! 3793: am__include=include
! 3794: am__quote=
! 3795: _am_result=GNU
! 3796: ;;
! 3797: esac
1.14 noro 3798: # Now try BSD make style include.
3799: if test "$am__include" = "#"; then
3800: echo '.include "confinc"' > confmf
1.51 ! ohara 3801: case `$am_make -s -f confmf 2> /dev/null` in #(
! 3802: *the\ am__doit\ target*)
! 3803: am__include=.include
! 3804: am__quote="\""
! 3805: _am_result=BSD
! 3806: ;;
! 3807: esac
1.14 noro 3808: fi
3809:
3810:
1.51 ! ohara 3811: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
1.43 ohara 3812: $as_echo "$_am_result" >&6; }
1.14 noro 3813: rm -f confinc confmf
3814:
1.37 ohara 3815: # Check whether --enable-dependency-tracking was given.
1.51 ! ohara 3816: if test "${enable_dependency_tracking+set}" = set; then :
1.37 ohara 3817: enableval=$enable_dependency_tracking;
3818: fi
3819:
3820: if test "x$enable_dependency_tracking" != xno; then
3821: am_depcomp="$ac_aux_dir/depcomp"
3822: AMDEPBACKSLASH='\'
3823: fi
3824: if test "x$enable_dependency_tracking" != xno; then
3825: AMDEP_TRUE=
3826: AMDEP_FALSE='#'
3827: else
3828: AMDEP_TRUE='#'
3829: AMDEP_FALSE=
3830: fi
3831:
3832:
1.14 noro 3833:
3834: depcc="$CC" am_compiler_list=
3835:
1.51 ! ohara 3836: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
1.43 ohara 3837: $as_echo_n "checking dependency style of $depcc... " >&6; }
1.51 ! ohara 3838: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
1.43 ohara 3839: $as_echo_n "(cached) " >&6
1.14 noro 3840: else
3841: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3842: # We make a subdir and do the tests there. Otherwise we can end up
3843: # making bogus files that we don't know about and never remove. For
3844: # instance it was reported that on HP-UX the gcc test will end up
3845: # making a dummy file named `D' -- because `-MD' means `put the output
3846: # in D'.
3847: mkdir conftest.dir
3848: # Copy depcomp to subdir because otherwise we won't find it if we're
3849: # using a relative directory.
3850: cp "$am_depcomp" conftest.dir
3851: cd conftest.dir
1.37 ohara 3852: # We will build objects and dependencies in a subdirectory because
3853: # it helps to detect inapplicable dependency modes. For instance
3854: # both Tru64's cc and ICC support -MD to output dependencies as a
3855: # side effect of compilation, but ICC will put the dependencies in
3856: # the current directory while Tru64 will put them in the object
3857: # directory.
3858: mkdir sub
1.14 noro 3859:
3860: am_cv_CC_dependencies_compiler_type=none
3861: if test "$am_compiler_list" = ""; then
3862: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3863: fi
1.51 ! ohara 3864: am__universal=false
! 3865: case " $depcc " in #(
! 3866: *\ -arch\ *\ -arch\ *) am__universal=true ;;
! 3867: esac
! 3868:
1.14 noro 3869: for depmode in $am_compiler_list; do
1.37 ohara 3870: # Setup a source with many dependencies, because some compilers
3871: # like to wrap large dependency lists on column 80 (with \), and
3872: # we should not choose a depcomp mode which is confused by this.
3873: #
1.14 noro 3874: # We need to recreate these files for each test, as the compiler may
3875: # overwrite some of them when testing with obscure command lines.
3876: # This happens at least with the AIX C compiler.
1.37 ohara 3877: : > sub/conftest.c
3878: for i in 1 2 3 4 5 6; do
3879: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3880: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3881: # Solaris 8's {/usr,}/bin/sh.
3882: touch sub/conftst$i.h
3883: done
3884: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.14 noro 3885:
1.51 ! ohara 3886: # We check with `-c' and `-o' for the sake of the "dashmstdout"
! 3887: # mode. It turns out that the SunPro C++ compiler does not properly
! 3888: # handle `-M -o', and we need to detect this. Also, some Intel
! 3889: # versions had trouble with output in subdirs
! 3890: am__obj=sub/conftest.${OBJEXT-o}
! 3891: am__minus_obj="-o $am__obj"
1.14 noro 3892: case $depmode in
1.51 ! ohara 3893: gcc)
! 3894: # This depmode causes a compiler race in universal mode.
! 3895: test "$am__universal" = false || continue
! 3896: ;;
1.14 noro 3897: nosideeffect)
3898: # after this tag, mechanisms are not by side-effect, so they'll
3899: # only be used when explicitly requested
3900: if test "x$enable_dependency_tracking" = xyes; then
3901: continue
3902: else
3903: break
3904: fi
3905: ;;
1.51 ! ohara 3906: msvisualcpp | msvcmsys)
! 3907: # This compiler won't grok `-c -o', but also, the minuso test has
! 3908: # not run yet. These depmodes are late enough in the game, and
! 3909: # so weak that their functioning should not be impacted.
! 3910: am__obj=conftest.${OBJEXT-o}
! 3911: am__minus_obj=
! 3912: ;;
1.14 noro 3913: none) break ;;
3914: esac
3915: if depmode=$depmode \
1.51 ! ohara 3916: source=sub/conftest.c object=$am__obj \
1.37 ohara 3917: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.51 ! ohara 3918: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.37 ohara 3919: >/dev/null 2>conftest.err &&
3920: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3921: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.51 ! ohara 3922: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.14 noro 3923: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.37 ohara 3924: # icc doesn't choke on unknown options, it will just issue warnings
3925: # or remarks (even with -Werror). So we grep stderr for any message
3926: # that says an option was ignored or not supported.
3927: # When given -MP, icc 7.0 and 7.1 complain thusly:
3928: # icc: Command line warning: ignoring option '-M'; no argument required
3929: # The diagnosis changed in icc 8.0:
3930: # icc: Command line remark: option '-MP' not supported
3931: if (grep 'ignoring option' conftest.err ||
3932: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3933: am_cv_CC_dependencies_compiler_type=$depmode
3934: break
3935: fi
1.14 noro 3936: fi
3937: done
3938:
1.51 ! ohara 3939: cd ..
! 3940: rm -rf conftest.dir
! 3941: else
! 3942: am_cv_CC_dependencies_compiler_type=none
! 3943: fi
1.14 noro 3944:
1.51 ! ohara 3945: fi
! 3946: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
! 3947: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
! 3948: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.14 noro 3949:
1.51 ! ohara 3950: if
! 3951: test "x$enable_dependency_tracking" != xno \
! 3952: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
! 3953: am__fastdepCC_TRUE=
! 3954: am__fastdepCC_FALSE='#'
! 3955: else
! 3956: am__fastdepCC_TRUE='#'
! 3957: am__fastdepCC_FALSE=
1.14 noro 3958: fi
3959:
3960:
3961:
1.51 ! ohara 3962: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
1.43 ohara 3963: $as_echo_n "checking whether ln -s works... " >&6; }
1.14 noro 3964: LN_S=$as_ln_s
3965: if test "$LN_S" = "ln -s"; then
1.51 ! ohara 3966: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.43 ohara 3967: $as_echo "yes" >&6; }
1.14 noro 3968: else
1.51 ! ohara 3969: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
1.43 ohara 3970: $as_echo "no, using $LN_S" >&6; }
1.14 noro 3971: fi
3972:
3973: if test -n "$ac_tool_prefix"; then
3974: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3975: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.51 ! ohara 3976: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.43 ohara 3977: $as_echo_n "checking for $ac_word... " >&6; }
1.51 ! ohara 3978: if ${ac_cv_prog_RANLIB+:} false; then :
1.43 ohara 3979: $as_echo_n "(cached) " >&6
1.14 noro 3980: else
3981: if test -n "$RANLIB"; then
3982: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3983: else
3984: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985: for as_dir in $PATH
3986: do
3987: IFS=$as_save_IFS
3988: test -z "$as_dir" && as_dir=.
1.51 ! ohara 3989: for ac_exec_ext in '' $ac_executable_extensions; do
1.37 ohara 3990: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.14 noro 3991: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.51 ! ohara 3992: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 noro 3993: break 2
3994: fi
3995: done
1.51 ! ohara 3996: done
1.37 ohara 3997: IFS=$as_save_IFS
1.14 noro 3998:
3999: fi
4000: fi
4001: RANLIB=$ac_cv_prog_RANLIB
4002: if test -n "$RANLIB"; then
1.51 ! ohara 4003: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
1.43 ohara 4004: $as_echo "$RANLIB" >&6; }
1.14 noro 4005: else
1.51 ! ohara 4006: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.43 ohara 4007: $as_echo "no" >&6; }
1.14 noro 4008: fi
4009:
1.37 ohara 4010:
1.14 noro 4011: fi
4012: if test -z "$ac_cv_prog_RANLIB"; then
4013: ac_ct_RANLIB=$RANLIB
4014: # Extract the first word of "ranlib", so it can be a program name with args.
4015: set dummy ranlib; ac_word=$2
1.51 ! ohara 4016: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.43 ohara 4017: $as_echo_n "checking for $ac_word... " >&6; }
1.51 ! ohara 4018: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
1.43 ohara 4019: $as_echo_n "(cached) " >&6
1.14 noro 4020: else
4021: if test -n "$ac_ct_RANLIB"; then
4022: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4023: else
4024: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025: for as_dir in $PATH
4026: do
4027: IFS=$as_save_IFS
4028: test -z "$as_dir" && as_dir=.
1.51 ! ohara 4029: for ac_exec_ext in '' $ac_executable_extensions; do
1.37 ohara 4030: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.14 noro 4031: ac_cv_prog_ac_ct_RANLIB="ranlib"
1.51 ! ohara 4032: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 noro 4033: break 2
4034: fi
4035: done
1.51 ! ohara 4036: done
1.37 ohara 4037: IFS=$as_save_IFS
1.14 noro 4038:
4039: fi
4040: fi
4041: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4042: if test -n "$ac_ct_RANLIB"; then
1.51 ! ohara 4043: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
1.43 ohara 4044: $as_echo "$ac_ct_RANLIB" >&6; }
1.14 noro 4045: else
1.51 ! ohara 4046: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.43 ohara 4047: $as_echo "no" >&6; }
1.14 noro 4048: fi
4049:
1.37 ohara 4050: if test "x$ac_ct_RANLIB" = x; then
4051: RANLIB=":"
4052: else
4053: case $cross_compiling:$ac_tool_warned in
4054: yes:)
1.51 ! ohara 4055: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 4056: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.37 ohara 4057: ac_tool_warned=yes ;;
4058: esac
4059: RANLIB=$ac_ct_RANLIB
4060: fi
1.14 noro 4061: else
4062: RANLIB="$ac_cv_prog_RANLIB"
4063: fi
4064:
4065: for ac_prog in 'bison -y' byacc
4066: do
4067: # Extract the first word of "$ac_prog", so it can be a program name with args.
4068: set dummy $ac_prog; ac_word=$2
1.51 ! ohara 4069: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1.43 ohara 4070: $as_echo_n "checking for $ac_word... " >&6; }
1.51 ! ohara 4071: if ${ac_cv_prog_YACC+:} false; then :
1.43 ohara 4072: $as_echo_n "(cached) " >&6
1.14 noro 4073: else
4074: if test -n "$YACC"; then
4075: ac_cv_prog_YACC="$YACC" # Let the user override the test.
4076: else
4077: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078: for as_dir in $PATH
4079: do
4080: IFS=$as_save_IFS
4081: test -z "$as_dir" && as_dir=.
1.51 ! ohara 4082: for ac_exec_ext in '' $ac_executable_extensions; do
1.37 ohara 4083: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.14 noro 4084: ac_cv_prog_YACC="$ac_prog"
1.51 ! ohara 4085: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 noro 4086: break 2
4087: fi
4088: done
1.51 ! ohara 4089: done
1.37 ohara 4090: IFS=$as_save_IFS
1.14 noro 4091:
4092: fi
4093: fi
4094: YACC=$ac_cv_prog_YACC
4095: if test -n "$YACC"; then
1.51 ! ohara 4096: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
1.43 ohara 4097: $as_echo "$YACC" >&6; }
1.14 noro 4098: else
1.51 ! ohara 4099: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.43 ohara 4100: $as_echo "no" >&6; }
1.14 noro 4101: fi
4102:
1.37 ohara 4103:
1.14 noro 4104: test -n "$YACC" && break
4105: done
4106: test -n "$YACC" || YACC="yacc"
4107:
4108:
4109:
4110: ac_ext=c
4111: ac_cpp='$CPP $CPPFLAGS'
4112: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4113: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4114: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.51 ! ohara 4115: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
1.43 ohara 4116: $as_echo_n "checking how to run the C preprocessor... " >&6; }
1.14 noro 4117: # On Suns, sometimes $CPP names a directory.
4118: if test -n "$CPP" && test -d "$CPP"; then
4119: CPP=
4120: fi
4121: if test -z "$CPP"; then
1.51 ! ohara 4122: if ${ac_cv_prog_CPP+:} false; then :
1.43 ohara 4123: $as_echo_n "(cached) " >&6
1.14 noro 4124: else
4125: # Double quotes because CPP needs to be expanded
4126: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4127: do
4128: ac_preproc_ok=false
4129: for ac_c_preproc_warn_flag in '' yes
4130: do
4131: # Use a header file that comes with gcc, so configuring glibc
4132: # with a fresh cross-compiler works.
1.32 noro 4133: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4134: # <limits.h> exists even on freestanding compilers.
1.14 noro 4135: # On the NeXT, cc -E runs the code through the compiler's parser,
4136: # not just through cpp. "Syntax error" is here to catch this case.
1.51 ! ohara 4137: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 4138: /* end confdefs.h. */
4139: #ifdef __STDC__
4140: # include <limits.h>
4141: #else
4142: # include <assert.h>
4143: #endif
4144: Syntax error
1.14 noro 4145: _ACEOF
1.51 ! ohara 4146: if ac_fn_c_try_cpp "$LINENO"; then :
! 4147:
1.14 noro 4148: else
4149: # Broken: fails on valid input.
4150: continue
4151: fi
1.51 ! ohara 4152: rm -f conftest.err conftest.i conftest.$ac_ext
1.14 noro 4153:
1.37 ohara 4154: # OK, works on sane cases. Now check whether nonexistent headers
1.14 noro 4155: # can be detected and how.
1.51 ! ohara 4156: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 4157: /* end confdefs.h. */
1.14 noro 4158: #include <ac_nonexistent.h>
4159: _ACEOF
1.51 ! ohara 4160: if ac_fn_c_try_cpp "$LINENO"; then :
1.14 noro 4161: # Broken: success on invalid input.
4162: continue
4163: else
4164: # Passes both tests.
4165: ac_preproc_ok=:
4166: break
4167: fi
1.51 ! ohara 4168: rm -f conftest.err conftest.i conftest.$ac_ext
1.14 noro 4169:
4170: done
4171: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.51 ! ohara 4172: rm -f conftest.i conftest.err conftest.$ac_ext
! 4173: if $ac_preproc_ok; then :
1.14 noro 4174: break
4175: fi
4176:
4177: done
4178: ac_cv_prog_CPP=$CPP
4179:
4180: fi
4181: CPP=$ac_cv_prog_CPP
4182: else
4183: ac_cv_prog_CPP=$CPP
4184: fi
1.51 ! ohara 4185: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
1.43 ohara 4186: $as_echo "$CPP" >&6; }
1.14 noro 4187: ac_preproc_ok=false
4188: for ac_c_preproc_warn_flag in '' yes
4189: do
4190: # Use a header file that comes with gcc, so configuring glibc
4191: # with a fresh cross-compiler works.
1.32 noro 4192: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4193: # <limits.h> exists even on freestanding compilers.
1.14 noro 4194: # On the NeXT, cc -E runs the code through the compiler's parser,
4195: # not just through cpp. "Syntax error" is here to catch this case.
1.51 ! ohara 4196: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 4197: /* end confdefs.h. */
4198: #ifdef __STDC__
4199: # include <limits.h>
4200: #else
4201: # include <assert.h>
4202: #endif
4203: Syntax error
1.14 noro 4204: _ACEOF
1.51 ! ohara 4205: if ac_fn_c_try_cpp "$LINENO"; then :
! 4206:
1.14 noro 4207: else
4208: # Broken: fails on valid input.
4209: continue
4210: fi
1.51 ! ohara 4211: rm -f conftest.err conftest.i conftest.$ac_ext
1.14 noro 4212:
1.37 ohara 4213: # OK, works on sane cases. Now check whether nonexistent headers
1.14 noro 4214: # can be detected and how.
1.51 ! ohara 4215: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 4216: /* end confdefs.h. */
1.14 noro 4217: #include <ac_nonexistent.h>
4218: _ACEOF
1.51 ! ohara 4219: if ac_fn_c_try_cpp "$LINENO"; then :
1.14 noro 4220: # Broken: success on invalid input.
4221: continue
4222: else
4223: # Passes both tests.
4224: ac_preproc_ok=:
4225: break
4226: fi
1.51 ! ohara 4227: rm -f conftest.err conftest.i conftest.$ac_ext
1.14 noro 4228:
4229: done
4230: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.51 ! ohara 4231: rm -f conftest.i conftest.err conftest.$ac_ext
! 4232: if $ac_preproc_ok; then :
! 4233:
1.14 noro 4234: else
1.51 ! ohara 4235: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 4236: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 4237: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
! 4238: See \`config.log' for more details" "$LINENO" 5; }
1.14 noro 4239: fi
4240:
4241: ac_ext=c
4242: ac_cpp='$CPP $CPPFLAGS'
4243: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4244: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4245: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4246:
4247:
1.51 ! ohara 4248: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
1.43 ohara 4249: $as_echo_n "checking for X... " >&6; }
1.14 noro 4250:
4251:
1.37 ohara 4252: # Check whether --with-x was given.
1.51 ! ohara 4253: if test "${with_x+set}" = set; then :
1.37 ohara 4254: withval=$with_x;
4255: fi
1.14 noro 4256:
4257: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4258: if test "x$with_x" = xno; then
4259: # The user explicitly disabled X.
4260: have_x=disabled
4261: else
1.37 ohara 4262: case $x_includes,$x_libraries in #(
1.51 ! ohara 4263: *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
! 4264: *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
1.43 ohara 4265: $as_echo_n "(cached) " >&6
1.14 noro 4266: else
4267: # One or both of the vars are not set, and there is no cached value.
4268: ac_x_includes=no ac_x_libraries=no
1.37 ohara 4269: rm -f -r conftest.dir
1.14 noro 4270: if mkdir conftest.dir; then
4271: cd conftest.dir
4272: cat >Imakefile <<'_ACEOF'
1.37 ohara 4273: incroot:
4274: @echo incroot='${INCROOT}'
4275: usrlibdir:
4276: @echo usrlibdir='${USRLIBDIR}'
4277: libdir:
4278: @echo libdir='${LIBDIR}'
1.14 noro 4279: _ACEOF
1.37 ohara 4280: if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
1.51 ! ohara 4281: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.37 ohara 4282: for ac_var in incroot usrlibdir libdir; do
4283: eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4284: done
1.14 noro 4285: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1.43 ohara 4286: for ac_extension in a so sl dylib la dll; do
1.37 ohara 4287: if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4288: test -f "$ac_im_libdir/libX11.$ac_extension"; then
1.32 noro 4289: ac_im_usrlibdir=$ac_im_libdir; break
1.14 noro 4290: fi
4291: done
4292: # Screen out bogus values from the imake configuration. They are
4293: # bogus both because they are the default anyway, and because
4294: # using them would break gcc on systems where it needs fixed includes.
4295: case $ac_im_incroot in
1.37 ohara 4296: /usr/include) ac_x_includes= ;;
1.14 noro 4297: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4298: esac
4299: case $ac_im_usrlibdir in
1.51 ! ohara 4300: /usr/lib | /usr/lib64 | /lib | /lib64) ;;
1.14 noro 4301: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4302: esac
4303: fi
4304: cd ..
1.37 ohara 4305: rm -f -r conftest.dir
1.14 noro 4306: fi
4307:
4308: # Standard set of common directories for X headers.
4309: # Check X11 before X11Rn because it is often a symlink to the current release.
4310: ac_x_header_dirs='
4311: /usr/X11/include
1.51 ! ohara 4312: /usr/X11R7/include
1.14 noro 4313: /usr/X11R6/include
4314: /usr/X11R5/include
4315: /usr/X11R4/include
4316:
4317: /usr/include/X11
1.51 ! ohara 4318: /usr/include/X11R7
1.14 noro 4319: /usr/include/X11R6
4320: /usr/include/X11R5
4321: /usr/include/X11R4
4322:
4323: /usr/local/X11/include
1.51 ! ohara 4324: /usr/local/X11R7/include
1.14 noro 4325: /usr/local/X11R6/include
4326: /usr/local/X11R5/include
4327: /usr/local/X11R4/include
4328:
4329: /usr/local/include/X11
1.51 ! ohara 4330: /usr/local/include/X11R7
1.14 noro 4331: /usr/local/include/X11R6
4332: /usr/local/include/X11R5
4333: /usr/local/include/X11R4
4334:
4335: /usr/X386/include
4336: /usr/x386/include
4337: /usr/XFree86/include/X11
4338:
4339: /usr/include
4340: /usr/local/include
4341: /usr/unsupported/include
4342: /usr/athena/include
4343: /usr/local/x11r5/include
4344: /usr/lpp/Xamples/include
4345:
4346: /usr/openwin/include
4347: /usr/openwin/share/include'
4348:
4349: if test "$ac_x_includes" = no; then
1.37 ohara 4350: # Guess where to find include files, by looking for Xlib.h.
1.14 noro 4351: # First, try using that file with no special directory specified.
1.51 ! ohara 4352: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 4353: /* end confdefs.h. */
1.37 ohara 4354: #include <X11/Xlib.h>
1.14 noro 4355: _ACEOF
1.51 ! ohara 4356: if ac_fn_c_try_cpp "$LINENO"; then :
1.14 noro 4357: # We can compile using X headers with no special include directory.
4358: ac_x_includes=
4359: else
4360: for ac_dir in $ac_x_header_dirs; do
1.37 ohara 4361: if test -r "$ac_dir/X11/Xlib.h"; then
1.14 noro 4362: ac_x_includes=$ac_dir
4363: break
4364: fi
4365: done
4366: fi
1.51 ! ohara 4367: rm -f conftest.err conftest.i conftest.$ac_ext
1.14 noro 4368: fi # $ac_x_includes = no
4369:
4370: if test "$ac_x_libraries" = no; then
4371: # Check for the libraries.
4372: # See if we find them without any special options.
4373: # Don't add to $LIBS permanently.
4374: ac_save_LIBS=$LIBS
1.37 ohara 4375: LIBS="-lX11 $LIBS"
1.51 ! ohara 4376: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 4377: /* end confdefs.h. */
1.37 ohara 4378: #include <X11/Xlib.h>
1.14 noro 4379: int
4380: main ()
4381: {
1.37 ohara 4382: XrmInitialize ()
1.14 noro 4383: ;
4384: return 0;
4385: }
4386: _ACEOF
1.51 ! ohara 4387: if ac_fn_c_try_link "$LINENO"; then :
1.14 noro 4388: LIBS=$ac_save_LIBS
4389: # We can link X programs with no special library path.
4390: ac_x_libraries=
4391: else
1.51 ! ohara 4392: LIBS=$ac_save_LIBS
1.43 ohara 4393: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
1.14 noro 4394: do
4395: # Don't even attempt the hair of trying to link an X program!
1.43 ohara 4396: for ac_extension in a so sl dylib la dll; do
1.37 ohara 4397: if test -r "$ac_dir/libX11.$ac_extension"; then
1.14 noro 4398: ac_x_libraries=$ac_dir
4399: break 2
4400: fi
4401: done
4402: done
4403: fi
1.51 ! ohara 4404: rm -f core conftest.err conftest.$ac_objext \
! 4405: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4406: fi # $ac_x_libraries = no
4407:
1.37 ohara 4408: case $ac_x_includes,$ac_x_libraries in #(
4409: no,* | *,no | *\'*)
4410: # Didn't find X, or a directory has "'" in its name.
4411: ac_cv_have_x="have_x=no";; #(
4412: *)
4413: # Record where we found X for the cache.
4414: ac_cv_have_x="have_x=yes\
4415: ac_x_includes='$ac_x_includes'\
4416: ac_x_libraries='$ac_x_libraries'"
4417: esac
1.14 noro 4418: fi
1.37 ohara 4419: ;; #(
4420: *) have_x=yes;;
4421: esac
1.14 noro 4422: eval "$ac_cv_have_x"
4423: fi # $with_x != no
4424:
4425: if test "$have_x" != yes; then
1.51 ! ohara 4426: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
1.43 ohara 4427: $as_echo "$have_x" >&6; }
1.14 noro 4428: no_x=yes
4429: else
4430: # If each of the values was on the command line, it overrides each guess.
4431: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4432: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4433: # Update the cache value to reflect the command line values.
1.37 ohara 4434: ac_cv_have_x="have_x=yes\
4435: ac_x_includes='$x_includes'\
4436: ac_x_libraries='$x_libraries'"
1.51 ! ohara 4437: { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
1.43 ohara 4438: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
1.14 noro 4439: fi
4440:
4441: if test "$no_x" = yes; then
4442: # Not all programs may use this symbol, but it does not hurt to define it.
4443:
1.51 ! ohara 4444: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
1.14 noro 4445:
4446: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4447: else
4448: if test -n "$x_includes"; then
4449: X_CFLAGS="$X_CFLAGS -I$x_includes"
4450: fi
4451:
4452: # It would also be nice to do this for all -L options, not just this one.
4453: if test -n "$x_libraries"; then
4454: X_LIBS="$X_LIBS -L$x_libraries"
4455: # For Solaris; some versions of Sun CC require a space after -R and
4456: # others require no space. Words are not sufficient . . . .
1.51 ! ohara 4457: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
1.43 ohara 4458: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
1.37 ohara 4459: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4460: ac_xsave_c_werror_flag=$ac_c_werror_flag
4461: ac_c_werror_flag=yes
1.51 ! ohara 4462: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 4463: /* end confdefs.h. */
1.14 noro 4464:
4465: int
4466: main ()
4467: {
4468:
4469: ;
4470: return 0;
4471: }
4472: _ACEOF
1.51 ! ohara 4473: if ac_fn_c_try_link "$LINENO"; then :
! 4474: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.43 ohara 4475: $as_echo "no" >&6; }
1.37 ohara 4476: X_LIBS="$X_LIBS -R$x_libraries"
1.14 noro 4477: else
1.51 ! ohara 4478: LIBS="$ac_xsave_LIBS -R $x_libraries"
! 4479: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 4480: /* end confdefs.h. */
1.14 noro 4481:
4482: int
4483: main ()
4484: {
4485:
4486: ;
4487: return 0;
4488: }
4489: _ACEOF
1.51 ! ohara 4490: if ac_fn_c_try_link "$LINENO"; then :
! 4491: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1.43 ohara 4492: $as_echo "yes" >&6; }
1.37 ohara 4493: X_LIBS="$X_LIBS -R $x_libraries"
1.14 noro 4494: else
1.51 ! ohara 4495: { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
1.43 ohara 4496: $as_echo "neither works" >&6; }
1.37 ohara 4497: fi
1.51 ! ohara 4498: rm -f core conftest.err conftest.$ac_objext \
! 4499: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4500: fi
1.51 ! ohara 4501: rm -f core conftest.err conftest.$ac_objext \
! 4502: conftest$ac_exeext conftest.$ac_ext
1.37 ohara 4503: ac_c_werror_flag=$ac_xsave_c_werror_flag
4504: LIBS=$ac_xsave_LIBS
1.14 noro 4505: fi
4506:
4507: # Check for system-dependent libraries X programs must link with.
4508: # Do this before checking for the system-independent R6 libraries
4509: # (-lICE), since we may need -lsocket or whatever for X linking.
4510:
4511: if test "$ISC" = yes; then
4512: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4513: else
4514: # Martyn Johnson says this is needed for Ultrix, if the X
4515: # libraries were built with DECnet support. And Karl Berry says
4516: # the Alpha needs dnet_stub (dnet does not exist).
4517: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
1.51 ! ohara 4518: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 4519: /* end confdefs.h. */
1.14 noro 4520:
1.37 ohara 4521: /* Override any GCC internal prototype to avoid an error.
4522: Use char because int might match the return type of a GCC
4523: builtin and then its argument prototype would still apply. */
1.14 noro 4524: #ifdef __cplusplus
4525: extern "C"
4526: #endif
4527: char XOpenDisplay ();
4528: int
4529: main ()
4530: {
1.37 ohara 4531: return XOpenDisplay ();
1.14 noro 4532: ;
4533: return 0;
4534: }
4535: _ACEOF
1.51 ! ohara 4536: if ac_fn_c_try_link "$LINENO"; then :
! 4537:
1.14 noro 4538: else
1.51 ! ohara 4539: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
1.43 ohara 4540: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
1.51 ! ohara 4541: if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
1.43 ohara 4542: $as_echo_n "(cached) " >&6
1.14 noro 4543: else
4544: ac_check_lib_save_LIBS=$LIBS
4545: LIBS="-ldnet $LIBS"
1.51 ! ohara 4546: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 4547: /* end confdefs.h. */
1.14 noro 4548:
1.37 ohara 4549: /* Override any GCC internal prototype to avoid an error.
4550: Use char because int might match the return type of a GCC
4551: builtin and then its argument prototype would still apply. */
1.14 noro 4552: #ifdef __cplusplus
4553: extern "C"
4554: #endif
4555: char dnet_ntoa ();
4556: int
4557: main ()
4558: {
1.37 ohara 4559: return dnet_ntoa ();
1.14 noro 4560: ;
4561: return 0;
4562: }
4563: _ACEOF
1.51 ! ohara 4564: if ac_fn_c_try_link "$LINENO"; then :
1.14 noro 4565: ac_cv_lib_dnet_dnet_ntoa=yes
4566: else
1.51 ! ohara 4567: ac_cv_lib_dnet_dnet_ntoa=no
1.14 noro 4568: fi
1.51 ! ohara 4569: rm -f core conftest.err conftest.$ac_objext \
! 4570: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4571: LIBS=$ac_check_lib_save_LIBS
4572: fi
1.51 ! ohara 4573: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
1.43 ohara 4574: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
1.51 ! ohara 4575: if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
1.14 noro 4576: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4577: fi
4578:
4579: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1.51 ! ohara 4580: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
1.43 ohara 4581: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
1.51 ! ohara 4582: if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
1.43 ohara 4583: $as_echo_n "(cached) " >&6
1.14 noro 4584: else
4585: ac_check_lib_save_LIBS=$LIBS
4586: LIBS="-ldnet_stub $LIBS"
1.51 ! ohara 4587: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 4588: /* end confdefs.h. */
1.14 noro 4589:
1.37 ohara 4590: /* Override any GCC internal prototype to avoid an error.
4591: Use char because int might match the return type of a GCC
4592: builtin and then its argument prototype would still apply. */
1.14 noro 4593: #ifdef __cplusplus
4594: extern "C"
4595: #endif
4596: char dnet_ntoa ();
4597: int
4598: main ()
4599: {
1.37 ohara 4600: return dnet_ntoa ();
1.14 noro 4601: ;
4602: return 0;
4603: }
4604: _ACEOF
1.51 ! ohara 4605: if ac_fn_c_try_link "$LINENO"; then :
1.14 noro 4606: ac_cv_lib_dnet_stub_dnet_ntoa=yes
4607: else
1.51 ! ohara 4608: ac_cv_lib_dnet_stub_dnet_ntoa=no
1.14 noro 4609: fi
1.51 ! ohara 4610: rm -f core conftest.err conftest.$ac_objext \
! 4611: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4612: LIBS=$ac_check_lib_save_LIBS
4613: fi
1.51 ! ohara 4614: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
1.43 ohara 4615: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
1.51 ! ohara 4616: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
1.14 noro 4617: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4618: fi
4619:
4620: fi
4621: fi
1.51 ! ohara 4622: rm -f core conftest.err conftest.$ac_objext \
! 4623: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4624: LIBS="$ac_xsave_LIBS"
4625:
4626: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4627: # to get the SysV transport functions.
4628: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4629: # needs -lnsl.
4630: # The nsl library prevents programs from opening the X display
4631: # on Irix 5.2, according to T.E. Dickey.
4632: # The functions gethostbyname, getservbyname, and inet_addr are
4633: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
1.51 ! ohara 4634: ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
! 4635: if test "x$ac_cv_func_gethostbyname" = xyes; then :
1.37 ohara 4636:
1.14 noro 4637: fi
4638:
4639: if test $ac_cv_func_gethostbyname = no; then
1.51 ! ohara 4640: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
1.43 ohara 4641: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
1.51 ! ohara 4642: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
1.43 ohara 4643: $as_echo_n "(cached) " >&6
1.14 noro 4644: else
4645: ac_check_lib_save_LIBS=$LIBS
4646: LIBS="-lnsl $LIBS"
1.51 ! ohara 4647: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 4648: /* end confdefs.h. */
1.14 noro 4649:
1.37 ohara 4650: /* Override any GCC internal prototype to avoid an error.
4651: Use char because int might match the return type of a GCC
4652: builtin and then its argument prototype would still apply. */
1.14 noro 4653: #ifdef __cplusplus
4654: extern "C"
4655: #endif
4656: char gethostbyname ();
4657: int
4658: main ()
4659: {
1.37 ohara 4660: return gethostbyname ();
1.14 noro 4661: ;
4662: return 0;
4663: }
4664: _ACEOF
1.51 ! ohara 4665: if ac_fn_c_try_link "$LINENO"; then :
1.14 noro 4666: ac_cv_lib_nsl_gethostbyname=yes
4667: else
1.51 ! ohara 4668: ac_cv_lib_nsl_gethostbyname=no
1.14 noro 4669: fi
1.51 ! ohara 4670: rm -f core conftest.err conftest.$ac_objext \
! 4671: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4672: LIBS=$ac_check_lib_save_LIBS
4673: fi
1.51 ! ohara 4674: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
1.43 ohara 4675: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
1.51 ! ohara 4676: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
1.14 noro 4677: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4678: fi
4679:
4680: if test $ac_cv_lib_nsl_gethostbyname = no; then
1.51 ! ohara 4681: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
1.43 ohara 4682: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
1.51 ! ohara 4683: if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
1.43 ohara 4684: $as_echo_n "(cached) " >&6
1.14 noro 4685: else
4686: ac_check_lib_save_LIBS=$LIBS
4687: LIBS="-lbsd $LIBS"
1.51 ! ohara 4688: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 4689: /* end confdefs.h. */
1.14 noro 4690:
1.37 ohara 4691: /* Override any GCC internal prototype to avoid an error.
4692: Use char because int might match the return type of a GCC
4693: builtin and then its argument prototype would still apply. */
1.14 noro 4694: #ifdef __cplusplus
4695: extern "C"
4696: #endif
4697: char gethostbyname ();
4698: int
4699: main ()
4700: {
1.37 ohara 4701: return gethostbyname ();
1.14 noro 4702: ;
4703: return 0;
4704: }
4705: _ACEOF
1.51 ! ohara 4706: if ac_fn_c_try_link "$LINENO"; then :
1.14 noro 4707: ac_cv_lib_bsd_gethostbyname=yes
4708: else
1.51 ! ohara 4709: ac_cv_lib_bsd_gethostbyname=no
1.14 noro 4710: fi
1.51 ! ohara 4711: rm -f core conftest.err conftest.$ac_objext \
! 4712: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4713: LIBS=$ac_check_lib_save_LIBS
4714: fi
1.51 ! ohara 4715: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
1.43 ohara 4716: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
1.51 ! ohara 4717: if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
1.14 noro 4718: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4719: fi
4720:
4721: fi
4722: fi
4723:
4724: # lieder@skyler.mavd.honeywell.com says without -lsocket,
4725: # socket/setsockopt and other routines are undefined under SCO ODT
4726: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4727: # on later versions), says Simon Leinen: it contains gethostby*
1.32 noro 4728: # variants that don't use the name server (or something). -lsocket
1.14 noro 4729: # must be given before -lnsl if both are needed. We assume that
4730: # if connect needs -lnsl, so does gethostbyname.
1.51 ! ohara 4731: ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
! 4732: if test "x$ac_cv_func_connect" = xyes; then :
1.32 noro 4733:
1.14 noro 4734: fi
1.37 ohara 4735:
1.14 noro 4736: if test $ac_cv_func_connect = no; then
1.51 ! ohara 4737: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
1.43 ohara 4738: $as_echo_n "checking for connect in -lsocket... " >&6; }
1.51 ! ohara 4739: if ${ac_cv_lib_socket_connect+:} false; then :
1.43 ohara 4740: $as_echo_n "(cached) " >&6
1.14 noro 4741: else
4742: ac_check_lib_save_LIBS=$LIBS
4743: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1.51 ! ohara 4744: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 4745: /* end confdefs.h. */
1.14 noro 4746:
1.37 ohara 4747: /* Override any GCC internal prototype to avoid an error.
4748: Use char because int might match the return type of a GCC
4749: builtin and then its argument prototype would still apply. */
1.14 noro 4750: #ifdef __cplusplus
4751: extern "C"
4752: #endif
4753: char connect ();
4754: int
4755: main ()
4756: {
1.37 ohara 4757: return connect ();
1.14 noro 4758: ;
4759: return 0;
4760: }
4761: _ACEOF
1.51 ! ohara 4762: if ac_fn_c_try_link "$LINENO"; then :
1.14 noro 4763: ac_cv_lib_socket_connect=yes
4764: else
1.51 ! ohara 4765: ac_cv_lib_socket_connect=no
1.14 noro 4766: fi
1.51 ! ohara 4767: rm -f core conftest.err conftest.$ac_objext \
! 4768: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4769: LIBS=$ac_check_lib_save_LIBS
4770: fi
1.51 ! ohara 4771: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
1.43 ohara 4772: $as_echo "$ac_cv_lib_socket_connect" >&6; }
1.51 ! ohara 4773: if test "x$ac_cv_lib_socket_connect" = xyes; then :
1.14 noro 4774: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4775: fi
4776:
4777: fi
4778:
4779: # Guillermo Gomez says -lposix is necessary on A/UX.
1.51 ! ohara 4780: ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
! 4781: if test "x$ac_cv_func_remove" = xyes; then :
1.32 noro 4782:
1.14 noro 4783: fi
1.37 ohara 4784:
1.14 noro 4785: if test $ac_cv_func_remove = no; then
1.51 ! ohara 4786: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
1.43 ohara 4787: $as_echo_n "checking for remove in -lposix... " >&6; }
1.51 ! ohara 4788: if ${ac_cv_lib_posix_remove+:} false; then :
1.43 ohara 4789: $as_echo_n "(cached) " >&6
1.14 noro 4790: else
4791: ac_check_lib_save_LIBS=$LIBS
4792: LIBS="-lposix $LIBS"
1.51 ! ohara 4793: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 4794: /* end confdefs.h. */
1.14 noro 4795:
1.37 ohara 4796: /* Override any GCC internal prototype to avoid an error.
4797: Use char because int might match the return type of a GCC
4798: builtin and then its argument prototype would still apply. */
1.14 noro 4799: #ifdef __cplusplus
4800: extern "C"
4801: #endif
4802: char remove ();
4803: int
4804: main ()
4805: {
1.37 ohara 4806: return remove ();
1.14 noro 4807: ;
4808: return 0;
4809: }
4810: _ACEOF
1.51 ! ohara 4811: if ac_fn_c_try_link "$LINENO"; then :
1.14 noro 4812: ac_cv_lib_posix_remove=yes
4813: else
1.51 ! ohara 4814: ac_cv_lib_posix_remove=no
1.14 noro 4815: fi
1.51 ! ohara 4816: rm -f core conftest.err conftest.$ac_objext \
! 4817: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4818: LIBS=$ac_check_lib_save_LIBS
4819: fi
1.51 ! ohara 4820: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
1.43 ohara 4821: $as_echo "$ac_cv_lib_posix_remove" >&6; }
1.51 ! ohara 4822: if test "x$ac_cv_lib_posix_remove" = xyes; then :
1.14 noro 4823: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4824: fi
4825:
4826: fi
4827:
4828: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1.51 ! ohara 4829: ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
! 4830: if test "x$ac_cv_func_shmat" = xyes; then :
1.32 noro 4831:
1.14 noro 4832: fi
1.37 ohara 4833:
1.14 noro 4834: if test $ac_cv_func_shmat = no; then
1.51 ! ohara 4835: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
1.43 ohara 4836: $as_echo_n "checking for shmat in -lipc... " >&6; }
1.51 ! ohara 4837: if ${ac_cv_lib_ipc_shmat+:} false; then :
1.43 ohara 4838: $as_echo_n "(cached) " >&6
1.14 noro 4839: else
4840: ac_check_lib_save_LIBS=$LIBS
4841: LIBS="-lipc $LIBS"
1.51 ! ohara 4842: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 4843: /* end confdefs.h. */
1.14 noro 4844:
1.37 ohara 4845: /* Override any GCC internal prototype to avoid an error.
4846: Use char because int might match the return type of a GCC
4847: builtin and then its argument prototype would still apply. */
1.14 noro 4848: #ifdef __cplusplus
4849: extern "C"
4850: #endif
4851: char shmat ();
4852: int
4853: main ()
4854: {
1.37 ohara 4855: return shmat ();
1.14 noro 4856: ;
4857: return 0;
4858: }
4859: _ACEOF
1.51 ! ohara 4860: if ac_fn_c_try_link "$LINENO"; then :
1.14 noro 4861: ac_cv_lib_ipc_shmat=yes
4862: else
1.51 ! ohara 4863: ac_cv_lib_ipc_shmat=no
1.14 noro 4864: fi
1.51 ! ohara 4865: rm -f core conftest.err conftest.$ac_objext \
! 4866: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4867: LIBS=$ac_check_lib_save_LIBS
4868: fi
1.51 ! ohara 4869: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
1.43 ohara 4870: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
1.51 ! ohara 4871: if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
1.14 noro 4872: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4873: fi
4874:
4875: fi
4876: fi
4877:
4878: # Check for libraries that X11R6 Xt/Xaw programs need.
4879: ac_save_LDFLAGS=$LDFLAGS
4880: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4881: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4882: # check for ICE first), but we must link in the order -lSM -lICE or
4883: # we get undefined symbols. So assume we have SM if we have ICE.
4884: # These have to be linked with before -lX11, unlike the other
4885: # libraries we check for below, so use a different variable.
4886: # John Interrante, Karl Berry
1.51 ! ohara 4887: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
1.43 ohara 4888: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
1.51 ! ohara 4889: if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
1.43 ohara 4890: $as_echo_n "(cached) " >&6
1.14 noro 4891: else
4892: ac_check_lib_save_LIBS=$LIBS
4893: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1.51 ! ohara 4894: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 4895: /* end confdefs.h. */
1.14 noro 4896:
1.37 ohara 4897: /* Override any GCC internal prototype to avoid an error.
4898: Use char because int might match the return type of a GCC
4899: builtin and then its argument prototype would still apply. */
1.14 noro 4900: #ifdef __cplusplus
4901: extern "C"
4902: #endif
4903: char IceConnectionNumber ();
4904: int
4905: main ()
4906: {
1.37 ohara 4907: return IceConnectionNumber ();
1.14 noro 4908: ;
4909: return 0;
4910: }
4911: _ACEOF
1.51 ! ohara 4912: if ac_fn_c_try_link "$LINENO"; then :
1.14 noro 4913: ac_cv_lib_ICE_IceConnectionNumber=yes
4914: else
1.51 ! ohara 4915: ac_cv_lib_ICE_IceConnectionNumber=no
1.14 noro 4916: fi
1.51 ! ohara 4917: rm -f core conftest.err conftest.$ac_objext \
! 4918: conftest$ac_exeext conftest.$ac_ext
1.14 noro 4919: LIBS=$ac_check_lib_save_LIBS
4920: fi
1.51 ! ohara 4921: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
1.43 ohara 4922: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
1.51 ! ohara 4923: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
1.14 noro 4924: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4925: fi
4926:
4927: LDFLAGS=$ac_save_LDFLAGS
4928:
4929: fi
4930:
4931:
1.37 ohara 4932: # Check whether --enable-shared was given.
1.51 ! ohara 4933: if test "${enable_shared+set}" = set; then :
1.37 ohara 4934: enableval=$enable_shared; enable_shared=yes
1.14 noro 4935: else
4936: enable_shared=no
1.37 ohara 4937: fi
4938:
1.14 noro 4939:
4940: if test "${enable_shared:=no}" != no ; then
4941: true
4942: fi
4943:
1.17 ohara 4944: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
4945: if test "${ac_cv_prog_cc_g}" = yes; then
4946: CFLAGS="-g -O"
4947: else
4948: CFLAGS="-O"
4949: fi
1.29 ohara 4950: elif test `basename ./"${CC}"` = "icc" ; then
4951: CFLAGS="-g -O"
1.17 ohara 4952: fi
1.15 noro 4953:
1.37 ohara 4954: GC=gc6.8
1.43 ohara 4955:
4956: # Check whether --with-asir-gc was given.
1.51 ! ohara 4957: if test "${with_asir_gc+set}" = set; then :
1.43 ohara 4958: withval=$with_asir_gc; with_asir_gc=${withval}
4959: else
4960: with_asir_gc=yes
4961: fi
4962:
4963: if test ${with_asir_gc:=yes} != no; then
4964: ASIR_GCLIB=libasir-gc.a
4965: GCINC='-I${top_srcdir}/${GC}/include'
4966: else
4967: GCLIB='-L${prefix}/lib -lgc'
4968: GCINC='-I${prefix}/include'
1.51 ! ohara 4969: $as_echo "#define NO_ASIR_GC 1" >>confdefs.h
1.43 ohara 4970:
4971: fi
1.47 ohara 4972: GC_CONFIGURE_ARGS="--disable-threads --enable-large-config"
1.44 ohara 4973: if test -n "${host_alias}" ; then
1.37 ohara 4974: GC_CONFIGURE_ARGS="--host=${host_alias} ${GC_CONFIGURE_ARGS}"
4975: fi
4976:
1.38 ohara 4977: # Check whether --with-gc7 was given.
1.51 ! ohara 4978: if test "${with_gc7+set}" = set; then :
1.38 ohara 4979: withval=$with_gc7; with_gc7=${withval}
4980: else
4981: with_gc7=no
4982: fi
4983:
4984: if test ${with_gc7:=no} != no; then
4985: case "${with_gc7}" in
4986: 7*) GC_VERSION=${with_gc7} ;;
1.48 ohara 4987: *) GC_VERSION=7.1 ;;
1.38 ohara 4988: esac
4989: GC=gc-${GC_VERSION}
1.51 ! ohara 4990: $as_echo "#define GC7 1" >>confdefs.h
1.38 ohara 4991:
4992: fi
4993:
4994:
1.43 ohara 4995:
4996:
4997:
4998:
4999:
1.38 ohara 5000: if test "$with_gc7" != no; then
5001: USE_GC7_TRUE=
5002: USE_GC7_FALSE='#'
5003: else
5004: USE_GC7_TRUE='#'
5005: USE_GC7_FALSE=
5006: fi
1.37 ohara 5007:
1.35 ohara 5008:
1.37 ohara 5009:
5010: # Check whether --with-distdir was given.
1.51 ! ohara 5011: if test "${with_distdir+set}" = set; then :
1.37 ohara 5012: withval=$with_distdir; with_distdir=${withval}
1.35 ohara 5013: else
5014: with_distdir=no
1.37 ohara 5015: fi
5016:
1.35 ohara 5017: GC_DISTDIR='${prefix}/../OpenXM_dist'
5018: if test ${with_distdir:=no} != no -a ${with_distdir} != yes ; then
5019: GC_DISTDIR=${with_distdir}
5020: fi
5021:
5022:
1.14 noro 5023: libasir_postfix=""
5024:
1.37 ohara 5025: # Check whether --with-pari was given.
1.51 ! ohara 5026: if test "${with_pari+set}" = set; then :
1.37 ohara 5027: withval=$with_pari; with_pari=${withval}
1.14 noro 5028: else
5029: with_pari=no
1.37 ohara 5030: fi
5031:
1.14 noro 5032:
5033: if test ${with_pari:=no} != no ; then
5034: libasir_postfix=${libasir_postfix}_pari
5035: PARIINC='-I${prefix}/include/pari'
5036: if test "${enable_shared}" != yes ; then
1.43 ohara 5037: PARILIB='${libdir}/libpari.a'
1.14 noro 5038: else
1.43 ohara 5039: PARILIB='-L${libdir} -lpari'
1.14 noro 5040: fi
1.51 ! ohara 5041: $as_echo "#define PARI 1" >>confdefs.h
1.14 noro 5042:
1.16 noro 5043: fi
5044:
5045:
5046:
1.51 ! ohara 5047: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
1.43 ohara 5048: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
1.51 ! ohara 5049: if ${ac_cv_path_GREP+:} false; then :
1.43 ohara 5050: $as_echo_n "(cached) " >&6
1.32 noro 5051: else
1.43 ohara 5052: if test -z "$GREP"; then
1.37 ohara 5053: ac_path_GREP_found=false
1.43 ohara 5054: # Loop through the user's path and test for each of PROGNAME-LIST
5055: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.37 ohara 5056: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5057: do
5058: IFS=$as_save_IFS
5059: test -z "$as_dir" && as_dir=.
1.51 ! ohara 5060: for ac_prog in grep ggrep; do
1.43 ohara 5061: for ac_exec_ext in '' $ac_executable_extensions; do
5062: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5063: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5064: # Check for GNU ac_path_GREP and select it if it is found.
1.37 ohara 5065: # Check for GNU $ac_path_GREP
5066: case `"$ac_path_GREP" --version 2>&1` in
5067: *GNU*)
5068: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5069: *)
5070: ac_count=0
1.43 ohara 5071: $as_echo_n 0123456789 >"conftest.in"
1.37 ohara 5072: while :
5073: do
5074: cat "conftest.in" "conftest.in" >"conftest.tmp"
5075: mv "conftest.tmp" "conftest.in"
5076: cp "conftest.in" "conftest.nl"
1.43 ohara 5077: $as_echo 'GREP' >> "conftest.nl"
1.37 ohara 5078: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5079: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1.51 ! ohara 5080: as_fn_arith $ac_count + 1 && ac_count=$as_val
1.37 ohara 5081: if test $ac_count -gt ${ac_path_GREP_max-0}; then
5082: # Best one so far, save it but keep looking for a better one
5083: ac_cv_path_GREP="$ac_path_GREP"
5084: ac_path_GREP_max=$ac_count
1.32 noro 5085: fi
1.37 ohara 5086: # 10*(2^10) chars as input seems more than enough
5087: test $ac_count -gt 10 && break
5088: done
5089: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5090: esac
5091:
1.43 ohara 5092: $ac_path_GREP_found && break 3
5093: done
1.37 ohara 5094: done
1.51 ! ohara 5095: done
1.37 ohara 5096: IFS=$as_save_IFS
1.43 ohara 5097: if test -z "$ac_cv_path_GREP"; then
1.51 ! ohara 5098: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.43 ohara 5099: fi
1.14 noro 5100: else
1.37 ohara 5101: ac_cv_path_GREP=$GREP
5102: fi
5103:
5104: fi
1.51 ! ohara 5105: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
1.43 ohara 5106: $as_echo "$ac_cv_path_GREP" >&6; }
1.37 ohara 5107: GREP="$ac_cv_path_GREP"
1.14 noro 5108:
1.37 ohara 5109:
1.51 ! ohara 5110: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
1.43 ohara 5111: $as_echo_n "checking for egrep... " >&6; }
1.51 ! ohara 5112: if ${ac_cv_path_EGREP+:} false; then :
1.43 ohara 5113: $as_echo_n "(cached) " >&6
1.37 ohara 5114: else
5115: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5116: then ac_cv_path_EGREP="$GREP -E"
5117: else
1.43 ohara 5118: if test -z "$EGREP"; then
1.37 ohara 5119: ac_path_EGREP_found=false
1.43 ohara 5120: # Loop through the user's path and test for each of PROGNAME-LIST
5121: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.37 ohara 5122: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5123: do
5124: IFS=$as_save_IFS
5125: test -z "$as_dir" && as_dir=.
1.51 ! ohara 5126: for ac_prog in egrep; do
1.43 ohara 5127: for ac_exec_ext in '' $ac_executable_extensions; do
5128: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5129: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5130: # Check for GNU ac_path_EGREP and select it if it is found.
1.37 ohara 5131: # Check for GNU $ac_path_EGREP
5132: case `"$ac_path_EGREP" --version 2>&1` in
5133: *GNU*)
5134: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5135: *)
5136: ac_count=0
1.43 ohara 5137: $as_echo_n 0123456789 >"conftest.in"
1.37 ohara 5138: while :
5139: do
5140: cat "conftest.in" "conftest.in" >"conftest.tmp"
5141: mv "conftest.tmp" "conftest.in"
5142: cp "conftest.in" "conftest.nl"
1.43 ohara 5143: $as_echo 'EGREP' >> "conftest.nl"
1.37 ohara 5144: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5145: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1.51 ! ohara 5146: as_fn_arith $ac_count + 1 && ac_count=$as_val
1.37 ohara 5147: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5148: # Best one so far, save it but keep looking for a better one
5149: ac_cv_path_EGREP="$ac_path_EGREP"
5150: ac_path_EGREP_max=$ac_count
5151: fi
5152: # 10*(2^10) chars as input seems more than enough
5153: test $ac_count -gt 10 && break
5154: done
5155: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5156: esac
5157:
1.43 ohara 5158: $ac_path_EGREP_found && break 3
5159: done
1.37 ohara 5160: done
1.51 ! ohara 5161: done
1.37 ohara 5162: IFS=$as_save_IFS
1.43 ohara 5163: if test -z "$ac_cv_path_EGREP"; then
1.51 ! ohara 5164: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.43 ohara 5165: fi
1.37 ohara 5166: else
5167: ac_cv_path_EGREP=$EGREP
5168: fi
5169:
5170: fi
5171: fi
1.51 ! ohara 5172: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
1.43 ohara 5173: $as_echo "$ac_cv_path_EGREP" >&6; }
1.37 ohara 5174: EGREP="$ac_cv_path_EGREP"
5175:
5176:
1.51 ! ohara 5177: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
1.43 ohara 5178: $as_echo_n "checking for ANSI C header files... " >&6; }
1.51 ! ohara 5179: if ${ac_cv_header_stdc+:} false; then :
1.43 ohara 5180: $as_echo_n "(cached) " >&6
1.37 ohara 5181: else
1.51 ! ohara 5182: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.37 ohara 5183: /* end confdefs.h. */
5184: #include <stdlib.h>
5185: #include <stdarg.h>
5186: #include <string.h>
5187: #include <float.h>
5188:
5189: int
5190: main ()
5191: {
1.32 noro 5192:
5193: ;
5194: return 0;
5195: }
1.14 noro 5196: _ACEOF
1.51 ! ohara 5197: if ac_fn_c_try_compile "$LINENO"; then :
1.14 noro 5198: ac_cv_header_stdc=yes
5199: else
1.51 ! ohara 5200: ac_cv_header_stdc=no
1.14 noro 5201: fi
1.37 ohara 5202: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.14 noro 5203:
5204: if test $ac_cv_header_stdc = yes; then
5205: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.51 ! ohara 5206: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 5207: /* end confdefs.h. */
1.14 noro 5208: #include <string.h>
5209:
5210: _ACEOF
5211: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.51 ! ohara 5212: $EGREP "memchr" >/dev/null 2>&1; then :
! 5213:
1.14 noro 5214: else
5215: ac_cv_header_stdc=no
5216: fi
5217: rm -f conftest*
5218:
5219: fi
5220:
5221: if test $ac_cv_header_stdc = yes; then
5222: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.51 ! ohara 5223: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 5224: /* end confdefs.h. */
1.14 noro 5225: #include <stdlib.h>
5226:
5227: _ACEOF
5228: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.51 ! ohara 5229: $EGREP "free" >/dev/null 2>&1; then :
! 5230:
1.14 noro 5231: else
5232: ac_cv_header_stdc=no
5233: fi
5234: rm -f conftest*
5235:
5236: fi
5237:
5238: if test $ac_cv_header_stdc = yes; then
5239: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.51 ! ohara 5240: if test "$cross_compiling" = yes; then :
1.14 noro 5241: :
5242: else
1.51 ! ohara 5243: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 5244: /* end confdefs.h. */
1.14 noro 5245: #include <ctype.h>
1.37 ohara 5246: #include <stdlib.h>
1.14 noro 5247: #if ((' ' & 0x0FF) == 0x020)
5248: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5249: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5250: #else
1.32 noro 5251: # define ISLOWER(c) \
5252: (('a' <= (c) && (c) <= 'i') \
5253: || ('j' <= (c) && (c) <= 'r') \
5254: || ('s' <= (c) && (c) <= 'z'))
1.14 noro 5255: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5256: #endif
5257:
5258: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5259: int
5260: main ()
5261: {
5262: int i;
5263: for (i = 0; i < 256; i++)
5264: if (XOR (islower (i), ISLOWER (i))
1.32 noro 5265: || toupper (i) != TOUPPER (i))
1.37 ohara 5266: return 2;
5267: return 0;
1.14 noro 5268: }
5269: _ACEOF
1.51 ! ohara 5270: if ac_fn_c_try_run "$LINENO"; then :
1.14 noro 5271:
5272: else
1.51 ! ohara 5273: ac_cv_header_stdc=no
! 5274: fi
! 5275: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
! 5276: conftest.$ac_objext conftest.beam conftest.$ac_ext
! 5277: fi
1.32 noro 5278:
1.14 noro 5279: fi
1.51 ! ohara 5280: fi
! 5281: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
! 5282: $as_echo "$ac_cv_header_stdc" >&6; }
! 5283: if test $ac_cv_header_stdc = yes; then
1.37 ohara 5284:
1.51 ! ohara 5285: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.32 noro 5286:
1.14 noro 5287: fi
1.37 ohara 5288:
1.51 ! ohara 5289: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
! 5290: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
! 5291: inttypes.h stdint.h unistd.h
! 5292: do :
! 5293: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 5294: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
! 5295: "
! 5296: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
! 5297: cat >>confdefs.h <<_ACEOF
! 5298: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 5299: _ACEOF
! 5300:
1.14 noro 5301: fi
1.37 ohara 5302:
1.51 ! ohara 5303: done
! 5304:
! 5305:
! 5306: ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
! 5307: if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
! 5308:
! 5309: cat >>confdefs.h <<_ACEOF
! 5310: #define HAVE_UNSIGNED_LONG_LONG 1
1.32 noro 5311: _ACEOF
1.14 noro 5312:
1.32 noro 5313:
1.14 noro 5314: fi
1.37 ohara 5315:
1.51 ! ohara 5316: # The cast to long int works around a bug in the HP C Compiler
! 5317: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
! 5318: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
! 5319: # This bug is HP SR number 8606223364.
! 5320: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
! 5321: $as_echo_n "checking size of long... " >&6; }
! 5322: if ${ac_cv_sizeof_long+:} false; then :
! 5323: $as_echo_n "(cached) " >&6
1.14 noro 5324: else
1.51 ! ohara 5325: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
1.14 noro 5326:
5327: else
1.51 ! ohara 5328: if test "$ac_cv_type_long" = yes; then
! 5329: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 5330: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 5331: as_fn_error 77 "cannot compute sizeof (long)
! 5332: See \`config.log' for more details" "$LINENO" 5; }
1.37 ohara 5333: else
5334: ac_cv_sizeof_long=0
5335: fi
1.14 noro 5336: fi
1.51 ! ohara 5337:
1.14 noro 5338: fi
1.51 ! ohara 5339: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
1.43 ohara 5340: $as_echo "$ac_cv_sizeof_long" >&6; }
1.37 ohara 5341:
5342:
5343:
1.14 noro 5344: cat >>confdefs.h <<_ACEOF
5345: #define SIZEOF_LONG $ac_cv_sizeof_long
5346: _ACEOF
5347:
5348:
1.26 noro 5349: if test "${ac_cv_sizeof_long}" = 8; then
1.51 ! ohara 5350: $as_echo "#define LONG_IS_64BIT 1" >>confdefs.h
1.14 noro 5351:
1.16 noro 5352: else
1.51 ! ohara 5353: $as_echo "#define LONG_IS_32BIT 1" >>confdefs.h
1.14 noro 5354:
5355: fi
5356: if test "${no_x}" != yes ; then
1.25 ohara 5357: if test -f "${x_libraries}/libXpm.a" -o -f "${x_libraries}/libXpm.dll.a" ; then
1.21 ohara 5358: XPMLIB="-lXpm"
5359: fi
1.37 ohara 5360: # Check whether --enable-plot was given.
1.51 ! ohara 5361: if test "${enable_plot+set}" = set; then :
1.37 ohara 5362: enableval=$enable_plot; enable_plot=yes
1.14 noro 5363: else
5364: enable_plot=no
1.37 ohara 5365: fi
5366:
1.14 noro 5367: fi
5368:
1.21 ohara 5369:
1.14 noro 5370: if test ${enable_plot:=no} != no ; then
5371: libasir_postfix=${libasir_postfix}_X
1.51 ! ohara 5372: $as_echo "#define DO_PLOT 1" >>confdefs.h
1.14 noro 5373:
5374: fi
1.37 ohara 5375: if test "$enable_plot" = yes; then
1.14 noro 5376: USE_PLOT_TRUE=
5377: USE_PLOT_FALSE='#'
5378: else
5379: USE_PLOT_TRUE='#'
5380: USE_PLOT_FALSE=
5381: fi
5382:
1.37 ohara 5383:
5384: # Check whether --enable-interval was given.
1.51 ! ohara 5385: if test "${enable_interval+set}" = set; then :
1.37 ohara 5386: enableval=$enable_interval; enable_interval=${enableval}
1.14 noro 5387: else
5388: enable_interval=no
1.37 ohara 5389: fi
5390:
1.14 noro 5391:
5392: if test ${enable_interval:=no} != no ; then
5393: libasir_postfix=${libasir_postfix}_itv
1.51 ! ohara 5394: $as_echo "#define INTERVAL 1" >>confdefs.h
1.14 noro 5395:
5396: if test "${enable_interval}" = debug ; then
1.51 ! ohara 5397: $as_echo "#define ITVDEBUG 1" >>confdefs.h
1.14 noro 5398:
5399: fi
5400: fi
5401:
5402:
5403: if test "${enable_fep:=no}" != no ; then
1.51 ! ohara 5404: $as_echo "#define FEP 1" >>confdefs.h
1.14 noro 5405:
5406: FEPLIB="-lreadline -ltermcap"
5407: fi
5408:
5409:
1.37 ohara 5410: # Check whether --enable-fft-float was given.
1.51 ! ohara 5411: if test "${enable_fft_float+set}" = set; then :
1.37 ohara 5412: enableval=$enable_fft_float; enable_fft_float=yes
1.14 noro 5413: else
5414: enable_fft_float=no
1.37 ohara 5415: fi
5416:
1.14 noro 5417:
5418: if test "${enable_fft_float:=no}" != no ; then
1.51 ! ohara 5419: $as_echo "#define USE_FLOAT 1" >>confdefs.h
1.14 noro 5420:
5421: fi
5422:
5423:
1.45 ohara 5424: # Check whether --with-mpi was given.
1.51 ! ohara 5425: if test "${with_mpi+set}" = set; then :
1.45 ohara 5426: withval=$with_mpi; with_mpi=${withval}
5427: else
5428: with_mpi=no
5429: fi
5430:
5431:
1.14 noro 5432: if test "${with_mpi:=no}" != no ; then
1.51 ! ohara 5433: $as_echo "#define MPI 1" >>confdefs.h
1.14 noro 5434:
5435: fi
5436:
5437:
5438: if test "${with_lapack:=no}" != no ; then
1.33 noro 5439: LAPACKLIB="-llapack -lblas -lg2c"
1.51 ! ohara 5440: $as_echo "#define LAPACK 1" >>confdefs.h
1.14 noro 5441:
5442: fi
5443:
5444:
5445:
5446:
5447:
5448: i386_elf_obj=asmi_l.o
5449: i386_aout_obj=asmi.o
5450: sparc_v8_obj="sparc-2.o asm4-2.o edr-2.o"
1.30 noro 5451: sparc_v9_obj=asmalpha.o
1.14 noro 5452: generic_obj=asmalpha.o
5453:
5454: case "${host}" in
1.20 ohara 5455: i[3-6]86-*-freebsd[3-9].*)
1.14 noro 5456: asm_obj="${i386_elf_obj}"
1.20 ohara 5457: ;;
5458: i[3-6]86-*-linux*|x86-*-linux*)
5459: asm_obj="${i386_elf_obj}"
1.51 ! ohara 5460: $as_echo "#define _BSD_SOURCE 1" >>confdefs.h
1.20 ohara 5461:
1.14 noro 5462: ;;
5463: *-*-cygwin*)
5464: asm_obj="${i386_aout_obj}"
5465: ;;
1.27 ohara 5466: i[3-6]86-*-interix*)
1.28 ohara 5467: asm_obj="${i386_aout_obj}"
1.51 ! ohara 5468: $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
1.27 ohara 5469:
5470: ;;
1.14 noro 5471: sparc-sun-solaris2.*)
5472: case "`uname -m`" in
5473: sun4[dm]) asm_obj="${sparc_v8_obj}" ;;
1.31 ohara 5474: sun4u*) asm_obj="${sparc_v9_obj}"
5475: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
5476: CFLAGS="${CFLAGS} -m64"
5477: fi
5478:
5479: ;;
1.14 noro 5480: *) asm_obj="${generic_obj}" ;;
5481: esac
1.51 ! ohara 5482: $as_echo "#define SYSV 1" >>confdefs.h
1.14 noro 5483:
5484: ;;
1.36 ohara 5485: *-apple-darwin*)
1.14 noro 5486: asm_obj="${generic_obj}"
1.51 ! ohara 5487: $as_echo "#define __DARWIN__ 1" >>confdefs.h
1.14 noro 5488:
1.19 ohara 5489: ;;
5490: arm*-*-linux*)
5491: asm_obj="${generic_obj}"
5492: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
5493: CFLAGS="${CFLAGS} -fsigned-char"
5494: fi
1.14 noro 5495: ;;
5496: *)
5497: asm_obj="${generic_obj}"
5498: ;;
5499: esac
5500:
5501:
5502:
1.51 ! ohara 5503: ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
! 5504: if test "x$ac_cv_func_socket" = xyes; then :
1.37 ohara 5505:
1.14 noro 5506: else
1.51 ! ohara 5507: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
1.43 ohara 5508: $as_echo_n "checking for socket in -lsocket... " >&6; }
1.51 ! ohara 5509: if ${ac_cv_lib_socket_socket+:} false; then :
1.43 ohara 5510: $as_echo_n "(cached) " >&6
1.14 noro 5511: else
5512: ac_check_lib_save_LIBS=$LIBS
5513: LIBS="-lsocket $LIBS"
1.51 ! ohara 5514: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 5515: /* end confdefs.h. */
1.14 noro 5516:
1.37 ohara 5517: /* Override any GCC internal prototype to avoid an error.
5518: Use char because int might match the return type of a GCC
5519: builtin and then its argument prototype would still apply. */
1.14 noro 5520: #ifdef __cplusplus
5521: extern "C"
5522: #endif
5523: char socket ();
5524: int
5525: main ()
5526: {
1.37 ohara 5527: return socket ();
1.14 noro 5528: ;
5529: return 0;
5530: }
5531: _ACEOF
1.51 ! ohara 5532: if ac_fn_c_try_link "$LINENO"; then :
1.14 noro 5533: ac_cv_lib_socket_socket=yes
5534: else
1.51 ! ohara 5535: ac_cv_lib_socket_socket=no
1.14 noro 5536: fi
1.51 ! ohara 5537: rm -f core conftest.err conftest.$ac_objext \
! 5538: conftest$ac_exeext conftest.$ac_ext
1.14 noro 5539: LIBS=$ac_check_lib_save_LIBS
5540: fi
1.51 ! ohara 5541: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
1.43 ohara 5542: $as_echo "$ac_cv_lib_socket_socket" >&6; }
1.51 ! ohara 5543: if test "x$ac_cv_lib_socket_socket" = xyes; then :
1.14 noro 5544: cat >>confdefs.h <<_ACEOF
5545: #define HAVE_LIBSOCKET 1
5546: _ACEOF
5547:
5548: LIBS="-lsocket $LIBS"
5549:
5550: fi
5551:
5552: fi
1.51 ! ohara 5553:
! 5554: ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
! 5555: if test "x$ac_cv_func_gethostbyname" = xyes; then :
! 5556:
1.14 noro 5557: else
1.51 ! ohara 5558: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
1.43 ohara 5559: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
1.51 ! ohara 5560: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
1.43 ohara 5561: $as_echo_n "(cached) " >&6
1.14 noro 5562: else
5563: ac_check_lib_save_LIBS=$LIBS
5564: LIBS="-lnsl $LIBS"
1.51 ! ohara 5565: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.32 noro 5566: /* end confdefs.h. */
1.14 noro 5567:
1.37 ohara 5568: /* Override any GCC internal prototype to avoid an error.
5569: Use char because int might match the return type of a GCC
5570: builtin and then its argument prototype would still apply. */
1.14 noro 5571: #ifdef __cplusplus
5572: extern "C"
5573: #endif
5574: char gethostbyname ();
5575: int
5576: main ()
5577: {
1.37 ohara 5578: return gethostbyname ();
1.14 noro 5579: ;
5580: return 0;
5581: }
5582: _ACEOF
1.51 ! ohara 5583: if ac_fn_c_try_link "$LINENO"; then :
1.14 noro 5584: ac_cv_lib_nsl_gethostbyname=yes
5585: else
1.51 ! ohara 5586: ac_cv_lib_nsl_gethostbyname=no
1.14 noro 5587: fi
1.51 ! ohara 5588: rm -f core conftest.err conftest.$ac_objext \
! 5589: conftest$ac_exeext conftest.$ac_ext
1.14 noro 5590: LIBS=$ac_check_lib_save_LIBS
5591: fi
1.51 ! ohara 5592: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
1.43 ohara 5593: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
1.51 ! ohara 5594: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
1.14 noro 5595: cat >>confdefs.h <<_ACEOF
5596: #define HAVE_LIBNSL 1
5597: _ACEOF
5598:
5599: LIBS="-lnsl $LIBS"
5600:
5601: fi
5602:
5603: fi
5604:
5605:
1.37 ohara 5606: ac_config_files="$ac_config_files Makefile engine/Makefile asm/Makefile builtin/Makefile fft/Makefile include/Makefile io/Makefile lib/Makefile parse/Makefile plot/Makefile"
5607:
1.14 noro 5608: cat >confcache <<\_ACEOF
5609: # This file is a shell script that caches the results of configure
5610: # tests run on this system so they can be shared between configure
5611: # scripts and configure runs, see configure's option --config-cache.
5612: # It is not useful on other systems. If it contains results you don't
5613: # want to keep, you may remove or edit it.
5614: #
5615: # config.status only pays attention to the cache file if you give it
5616: # the --recheck option to rerun configure.
5617: #
1.32 noro 5618: # `ac_cv_env_foo' variables (set or unset) will be overridden when
1.14 noro 5619: # loading this file, other *unset* `ac_cv_foo' will be assigned the
5620: # following values.
5621:
5622: _ACEOF
5623:
5624: # The following way of writing the cache mishandles newlines in values,
5625: # but we know of no workaround that is simple, portable, and efficient.
1.37 ohara 5626: # So, we kill variables containing newlines.
1.14 noro 5627: # Ultrix sh set writes to stderr and can't be redirected directly,
5628: # and sets the high bit in the cache file unless we assign to the vars.
1.37 ohara 5629: (
5630: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5631: eval ac_val=\$$ac_var
5632: case $ac_val in #(
5633: *${as_nl}*)
5634: case $ac_var in #(
1.51 ! ohara 5635: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
! 5636: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.37 ohara 5637: esac
5638: case $ac_var in #(
5639: _ | IFS | as_nl) ;; #(
1.43 ohara 5640: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1.51 ! ohara 5641: *) { eval $ac_var=; unset $ac_var;} ;;
1.37 ohara 5642: esac ;;
5643: esac
5644: done
5645:
1.14 noro 5646: (set) 2>&1 |
1.37 ohara 5647: case $as_nl`(ac_space=' '; set) 2>&1` in #(
5648: *${as_nl}ac_space=\ *)
1.51 ! ohara 5649: # `set' does not quote correctly, so add quotes: double-quote
! 5650: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.14 noro 5651: sed -n \
1.32 noro 5652: "s/'/'\\\\''/g;
5653: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.37 ohara 5654: ;; #(
1.14 noro 5655: *)
5656: # `set' quotes correctly as required by POSIX, so do not add quotes.
1.37 ohara 5657: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.14 noro 5658: ;;
1.37 ohara 5659: esac |
5660: sort
5661: ) |
1.14 noro 5662: sed '
1.37 ohara 5663: /^ac_cv_env_/b end
1.14 noro 5664: t clear
1.37 ohara 5665: :clear
1.14 noro 5666: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5667: t end
1.37 ohara 5668: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5669: :end' >>confcache
5670: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5671: if test -w "$cache_file"; then
1.51 ! ohara 5672: if test "x$cache_file" != "x/dev/null"; then
! 5673: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
1.43 ohara 5674: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.51 ! ohara 5675: if test ! -f "$cache_file" || test -h "$cache_file"; then
! 5676: cat confcache >"$cache_file"
! 5677: else
! 5678: case $cache_file in #(
! 5679: */* | ?:*)
! 5680: mv -f confcache "$cache_file"$$ &&
! 5681: mv -f "$cache_file"$$ "$cache_file" ;; #(
! 5682: *)
! 5683: mv -f confcache "$cache_file" ;;
! 5684: esac
! 5685: fi
! 5686: fi
1.14 noro 5687: else
1.51 ! ohara 5688: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
1.43 ohara 5689: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.14 noro 5690: fi
5691: fi
5692: rm -f confcache
5693:
5694: test "x$prefix" = xNONE && prefix=$ac_default_prefix
5695: # Let make expand exec_prefix.
5696: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5697:
5698: # Transform confdefs.h into DEFS.
5699: # Protect against shell expansion while executing Makefile rules.
5700: # Protect against Makefile macro expansion.
5701: #
5702: # If the first sed substitution is executed (which looks for macros that
1.37 ohara 5703: # take arguments), then branch to the quote section. Otherwise,
1.14 noro 5704: # look for a macro that doesn't take arguments.
1.37 ohara 5705: ac_script='
1.43 ohara 5706: :mline
5707: /\\$/{
5708: N
5709: s,\\\n,,
5710: b mline
5711: }
1.14 noro 5712: t clear
1.37 ohara 5713: :clear
5714: s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1.14 noro 5715: t quote
1.37 ohara 5716: s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1.14 noro 5717: t quote
1.37 ohara 5718: b any
5719: :quote
5720: s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5721: s/\[/\\&/g
5722: s/\]/\\&/g
5723: s/\$/$$/g
5724: H
5725: :any
5726: ${
5727: g
5728: s/^\n//
5729: s/\n/ /g
5730: p
5731: }
5732: '
5733: DEFS=`sed -n "$ac_script" confdefs.h`
1.14 noro 5734:
5735:
1.32 noro 5736: ac_libobjs=
5737: ac_ltlibobjs=
1.51 ! ohara 5738: U=
1.32 noro 5739: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5740: # 1. Remove the extension, and $U if already installed.
1.37 ohara 5741: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.43 ohara 5742: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1.37 ohara 5743: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5744: # will be set to the directory where LIBOBJS objects are built.
1.51 ! ohara 5745: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
! 5746: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.32 noro 5747: done
5748: LIBOBJS=$ac_libobjs
5749:
5750: LTLIBOBJS=$ac_ltlibobjs
5751:
5752:
1.51 ! ohara 5753: if test -n "$EXEEXT"; then
! 5754: am__EXEEXT_TRUE=
! 5755: am__EXEEXT_FALSE='#'
! 5756: else
! 5757: am__EXEEXT_TRUE='#'
! 5758: am__EXEEXT_FALSE=
! 5759: fi
! 5760:
1.37 ohara 5761: if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
1.51 ! ohara 5762: as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
! 5763: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.37 ohara 5764: fi
5765: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.51 ! ohara 5766: as_fn_error $? "conditional \"AMDEP\" was never defined.
! 5767: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.37 ohara 5768: fi
5769: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.51 ! ohara 5770: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
! 5771: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.37 ohara 5772: fi
1.38 ohara 5773: if test -z "${USE_GC7_TRUE}" && test -z "${USE_GC7_FALSE}"; then
1.51 ! ohara 5774: as_fn_error $? "conditional \"USE_GC7\" was never defined.
! 5775: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.38 ohara 5776: fi
1.37 ohara 5777: if test -z "${USE_PLOT_TRUE}" && test -z "${USE_PLOT_FALSE}"; then
1.51 ! ohara 5778: as_fn_error $? "conditional \"USE_PLOT\" was never defined.
! 5779: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.37 ohara 5780: fi
1.14 noro 5781:
1.51 ! ohara 5782: : "${CONFIG_STATUS=./config.status}"
1.43 ohara 5783: ac_write_fail=0
1.14 noro 5784: ac_clean_files_save=$ac_clean_files
5785: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.51 ! ohara 5786: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
1.43 ohara 5787: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
1.51 ! ohara 5788: as_write_fail=0
! 5789: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.14 noro 5790: #! $SHELL
5791: # Generated by $as_me.
5792: # Run this file to recreate the current configuration.
5793: # Compiler output produced by configure, useful for debugging
5794: # configure, is in config.log if it exists.
5795:
5796: debug=false
1.32 noro 5797: ac_cs_recheck=false
5798: ac_cs_silent=false
1.51 ! ohara 5799:
1.14 noro 5800: SHELL=\${CONFIG_SHELL-$SHELL}
1.51 ! ohara 5801: export SHELL
! 5802: _ASEOF
! 5803: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
! 5804: ## -------------------- ##
! 5805: ## M4sh Initialization. ##
! 5806: ## -------------------- ##
1.14 noro 5807:
1.37 ohara 5808: # Be more Bourne compatible
5809: DUALCASE=1; export DUALCASE # for MKS sh
1.51 ! ohara 5810: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.14 noro 5811: emulate sh
5812: NULLCMD=:
1.43 ohara 5813: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.32 noro 5814: # is contrary to our usage. Disable this feature.
5815: alias -g '${1+"$@"}'='"$@"'
1.37 ohara 5816: setopt NO_GLOB_SUBST
5817: else
1.51 ! ohara 5818: case `(set -o) 2>/dev/null` in #(
! 5819: *posix*) :
! 5820: set -o posix ;; #(
! 5821: *) :
! 5822: ;;
1.37 ohara 5823: esac
5824: fi
5825:
5826:
1.43 ohara 5827: as_nl='
5828: '
5829: export as_nl
5830: # Printing a long string crashes Solaris 7 /usr/bin/printf.
5831: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5832: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5833: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
1.51 ! ohara 5834: # Prefer a ksh shell builtin over an external printf program on Solaris,
! 5835: # but without wasting forks for bash or zsh.
! 5836: if test -z "$BASH_VERSION$ZSH_VERSION" \
! 5837: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
! 5838: as_echo='print -r --'
! 5839: as_echo_n='print -rn --'
! 5840: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
1.43 ohara 5841: as_echo='printf %s\n'
5842: as_echo_n='printf %s'
5843: else
5844: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5845: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5846: as_echo_n='/usr/ucb/echo -n'
5847: else
5848: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5849: as_echo_n_body='eval
5850: arg=$1;
1.51 ! ohara 5851: case $arg in #(
1.43 ohara 5852: *"$as_nl"*)
5853: expr "X$arg" : "X\\(.*\\)$as_nl";
5854: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5855: esac;
5856: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5857: '
5858: export as_echo_n_body
5859: as_echo_n='sh -c $as_echo_n_body as_echo'
5860: fi
5861: export as_echo_body
5862: as_echo='sh -c $as_echo_body as_echo'
5863: fi
5864:
1.37 ohara 5865: # The user is always right.
5866: if test "${PATH_SEPARATOR+set}" != set; then
1.43 ohara 5867: PATH_SEPARATOR=:
5868: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5869: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5870: PATH_SEPARATOR=';'
5871: }
1.14 noro 5872: fi
5873:
1.32 noro 5874:
1.37 ohara 5875: # IFS
5876: # We need space, tab and new line, in precisely that order. Quoting is
5877: # there to prevent editors from complaining about space-tab.
5878: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5879: # splitting by setting IFS to empty value.)
5880: IFS=" "" $as_nl"
5881:
5882: # Find who we are. Look in the path if we contain no directory separator.
1.51 ! ohara 5883: as_myself=
! 5884: case $0 in #((
1.37 ohara 5885: *[\\/]* ) as_myself=$0 ;;
5886: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5887: for as_dir in $PATH
5888: do
5889: IFS=$as_save_IFS
5890: test -z "$as_dir" && as_dir=.
1.51 ! ohara 5891: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 5892: done
1.37 ohara 5893: IFS=$as_save_IFS
5894:
5895: ;;
5896: esac
5897: # We did not find ourselves, most probably we were run as `sh COMMAND'
5898: # in which case we are not to be found in the path.
5899: if test "x$as_myself" = x; then
5900: as_myself=$0
5901: fi
5902: if test ! -f "$as_myself"; then
1.43 ohara 5903: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.51 ! ohara 5904: exit 1
1.37 ohara 5905: fi
5906:
1.51 ! ohara 5907: # Unset variables that we do not need and which cause bugs (e.g. in
! 5908: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
! 5909: # suppresses any "Segmentation fault" message there. '((' could
! 5910: # trigger a bug in pdksh 5.2.14.
! 5911: for as_var in BASH_ENV ENV MAIL MAILPATH
! 5912: do eval test x\${$as_var+set} = xset \
! 5913: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.37 ohara 5914: done
1.32 noro 5915: PS1='$ '
5916: PS2='> '
5917: PS4='+ '
5918:
5919: # NLS nuisances.
1.43 ohara 5920: LC_ALL=C
5921: export LC_ALL
5922: LANGUAGE=C
5923: export LANGUAGE
1.32 noro 5924:
1.51 ! ohara 5925: # CDPATH.
! 5926: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
! 5927:
! 5928:
! 5929: # as_fn_error STATUS ERROR [LINENO LOG_FD]
! 5930: # ----------------------------------------
! 5931: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
! 5932: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
! 5933: # script with STATUS, using 1 if that was 0.
! 5934: as_fn_error ()
! 5935: {
! 5936: as_status=$1; test $as_status -eq 0 && as_status=1
! 5937: if test "$4"; then
! 5938: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 5939: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
! 5940: fi
! 5941: $as_echo "$as_me: error: $2" >&2
! 5942: as_fn_exit $as_status
! 5943: } # as_fn_error
! 5944:
! 5945:
! 5946: # as_fn_set_status STATUS
! 5947: # -----------------------
! 5948: # Set $? to STATUS, without forking.
! 5949: as_fn_set_status ()
! 5950: {
! 5951: return $1
! 5952: } # as_fn_set_status
! 5953:
! 5954: # as_fn_exit STATUS
! 5955: # -----------------
! 5956: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
! 5957: as_fn_exit ()
! 5958: {
! 5959: set +e
! 5960: as_fn_set_status $1
! 5961: exit $1
! 5962: } # as_fn_exit
! 5963:
! 5964: # as_fn_unset VAR
! 5965: # ---------------
! 5966: # Portably unset VAR.
! 5967: as_fn_unset ()
! 5968: {
! 5969: { eval $1=; unset $1;}
! 5970: }
! 5971: as_unset=as_fn_unset
! 5972: # as_fn_append VAR VALUE
! 5973: # ----------------------
! 5974: # Append the text in VALUE to the end of the definition contained in VAR. Take
! 5975: # advantage of any shell optimizations that allow amortized linear growth over
! 5976: # repeated appends, instead of the typical quadratic growth present in naive
! 5977: # implementations.
! 5978: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
! 5979: eval 'as_fn_append ()
! 5980: {
! 5981: eval $1+=\$2
! 5982: }'
! 5983: else
! 5984: as_fn_append ()
! 5985: {
! 5986: eval $1=\$$1\$2
! 5987: }
! 5988: fi # as_fn_append
! 5989:
! 5990: # as_fn_arith ARG...
! 5991: # ------------------
! 5992: # Perform arithmetic evaluation on the ARGs, and store the result in the
! 5993: # global $as_val. Take advantage of shells that can avoid forks. The arguments
! 5994: # must be portable across $(()) and expr.
! 5995: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
! 5996: eval 'as_fn_arith ()
! 5997: {
! 5998: as_val=$(( $* ))
! 5999: }'
! 6000: else
! 6001: as_fn_arith ()
! 6002: {
! 6003: as_val=`expr "$@" || test $? -eq 1`
! 6004: }
! 6005: fi # as_fn_arith
! 6006:
! 6007:
1.37 ohara 6008: if expr a : '\(a\)' >/dev/null 2>&1 &&
6009: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.32 noro 6010: as_expr=expr
6011: else
6012: as_expr=false
6013: fi
6014:
1.37 ohara 6015: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.32 noro 6016: as_basename=basename
6017: else
6018: as_basename=false
6019: fi
1.14 noro 6020:
1.51 ! ohara 6021: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
! 6022: as_dirname=dirname
! 6023: else
! 6024: as_dirname=false
! 6025: fi
1.14 noro 6026:
1.37 ohara 6027: as_me=`$as_basename -- "$0" ||
1.14 noro 6028: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6029: X"$0" : 'X\(//\)$' \| \
1.37 ohara 6030: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.43 ohara 6031: $as_echo X/"$0" |
1.37 ohara 6032: sed '/^.*\/\([^/][^/]*\)\/*$/{
6033: s//\1/
6034: q
6035: }
6036: /^X\/\(\/\/\)$/{
6037: s//\1/
6038: q
6039: }
6040: /^X\/\(\/\).*/{
6041: s//\1/
6042: q
6043: }
6044: s/.*/./; q'`
1.14 noro 6045:
1.51 ! ohara 6046: # Avoid depending upon Character Ranges.
! 6047: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
! 6048: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
! 6049: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
! 6050: as_cr_digits='0123456789'
! 6051: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.37 ohara 6052:
6053: ECHO_C= ECHO_N= ECHO_T=
1.51 ! ohara 6054: case `echo -n x` in #(((((
1.37 ohara 6055: -n*)
1.51 ! ohara 6056: case `echo 'xy\c'` in
1.37 ohara 6057: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
1.51 ! ohara 6058: xy) ECHO_C='\c';;
! 6059: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
! 6060: ECHO_T=' ';;
1.37 ohara 6061: esac;;
6062: *)
6063: ECHO_N='-n';;
1.14 noro 6064: esac
1.2 noro 6065:
1.14 noro 6066: rm -f conf$$ conf$$.exe conf$$.file
1.37 ohara 6067: if test -d conf$$.dir; then
6068: rm -f conf$$.dir/conf$$.file
6069: else
6070: rm -f conf$$.dir
1.43 ohara 6071: mkdir conf$$.dir 2>/dev/null
1.37 ohara 6072: fi
1.43 ohara 6073: if (echo >conf$$.file) 2>/dev/null; then
6074: if ln -s conf$$.file conf$$ 2>/dev/null; then
6075: as_ln_s='ln -s'
6076: # ... but there are two gotchas:
6077: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6078: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6079: # In both cases, we have to default to `cp -p'.
6080: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6081: as_ln_s='cp -p'
6082: elif ln conf$$.file conf$$ 2>/dev/null; then
6083: as_ln_s=ln
6084: else
1.14 noro 6085: as_ln_s='cp -p'
1.43 ohara 6086: fi
1.14 noro 6087: else
6088: as_ln_s='cp -p'
6089: fi
1.37 ohara 6090: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6091: rmdir conf$$.dir 2>/dev/null
1.2 noro 6092:
1.51 ! ohara 6093:
! 6094: # as_fn_mkdir_p
! 6095: # -------------
! 6096: # Create "$as_dir" as a directory, including parents if necessary.
! 6097: as_fn_mkdir_p ()
! 6098: {
! 6099:
! 6100: case $as_dir in #(
! 6101: -*) as_dir=./$as_dir;;
! 6102: esac
! 6103: test -d "$as_dir" || eval $as_mkdir_p || {
! 6104: as_dirs=
! 6105: while :; do
! 6106: case $as_dir in #(
! 6107: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
! 6108: *) as_qdir=$as_dir;;
! 6109: esac
! 6110: as_dirs="'$as_qdir' $as_dirs"
! 6111: as_dir=`$as_dirname -- "$as_dir" ||
! 6112: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 6113: X"$as_dir" : 'X\(//\)[^/]' \| \
! 6114: X"$as_dir" : 'X\(//\)$' \| \
! 6115: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
! 6116: $as_echo X"$as_dir" |
! 6117: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
! 6118: s//\1/
! 6119: q
! 6120: }
! 6121: /^X\(\/\/\)[^/].*/{
! 6122: s//\1/
! 6123: q
! 6124: }
! 6125: /^X\(\/\/\)$/{
! 6126: s//\1/
! 6127: q
! 6128: }
! 6129: /^X\(\/\).*/{
! 6130: s//\1/
! 6131: q
! 6132: }
! 6133: s/.*/./; q'`
! 6134: test -d "$as_dir" && break
! 6135: done
! 6136: test -z "$as_dirs" || eval "mkdir $as_dirs"
! 6137: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
! 6138:
! 6139:
! 6140: } # as_fn_mkdir_p
1.32 noro 6141: if mkdir -p . 2>/dev/null; then
1.51 ! ohara 6142: as_mkdir_p='mkdir -p "$as_dir"'
1.32 noro 6143: else
6144: test -d ./-p && rmdir ./-p
6145: as_mkdir_p=false
6146: fi
6147:
1.37 ohara 6148: if test -x / >/dev/null 2>&1; then
6149: as_test_x='test -x'
6150: else
6151: if ls -dL / >/dev/null 2>&1; then
6152: as_ls_L_option=L
6153: else
6154: as_ls_L_option=
6155: fi
6156: as_test_x='
6157: eval sh -c '\''
6158: if test -d "$1"; then
1.43 ohara 6159: test -d "$1/.";
1.37 ohara 6160: else
1.51 ! ohara 6161: case $1 in #(
1.43 ohara 6162: -*)set "./$1";;
1.37 ohara 6163: esac;
1.51 ! ohara 6164: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.37 ohara 6165: ???[sx]*):;;*)false;;esac;fi
6166: '\'' sh
6167: '
6168: fi
6169: as_executable_p=$as_test_x
1.14 noro 6170:
6171: # Sed expression to map a string onto a valid CPP name.
1.32 noro 6172: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.14 noro 6173:
6174: # Sed expression to map a string onto a valid variable name.
1.32 noro 6175: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.14 noro 6176:
6177:
6178: exec 6>&1
1.51 ! ohara 6179: ## ----------------------------------- ##
! 6180: ## Main body of $CONFIG_STATUS script. ##
! 6181: ## ----------------------------------- ##
! 6182: _ASEOF
! 6183: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.14 noro 6184:
1.51 ! ohara 6185: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
! 6186: # Save the log message, to keep $0 and so on meaningful, and to
1.14 noro 6187: # report actual input values of CONFIG_FILES etc. instead of their
1.37 ohara 6188: # values after options handling.
6189: ac_log="
1.14 noro 6190: This file was extended by $as_me, which was
1.51 ! ohara 6191: generated by GNU Autoconf 2.68. Invocation command line was
1.14 noro 6192:
6193: CONFIG_FILES = $CONFIG_FILES
6194: CONFIG_HEADERS = $CONFIG_HEADERS
6195: CONFIG_LINKS = $CONFIG_LINKS
6196: CONFIG_COMMANDS = $CONFIG_COMMANDS
6197: $ $0 $@
6198:
1.37 ohara 6199: on `(hostname || uname -n) 2>/dev/null | sed 1q`
6200: "
6201:
1.14 noro 6202: _ACEOF
6203:
1.51 ! ohara 6204: case $ac_config_files in *"
! 6205: "*) set x $ac_config_files; shift; ac_config_files=$*;;
! 6206: esac
! 6207:
! 6208:
! 6209:
1.43 ohara 6210: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.14 noro 6211: # Files that config.status was made for.
1.37 ohara 6212: config_files="$ac_config_files"
6213: config_commands="$ac_config_commands"
1.2 noro 6214:
1.37 ohara 6215: _ACEOF
1.4 saito 6216:
1.43 ohara 6217: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.14 noro 6218: ac_cs_usage="\
1.51 ! ohara 6219: \`$as_me' instantiates files and other configuration actions
! 6220: from templates according to the current configuration. Unless the files
! 6221: and actions are specified as TAGs, all are instantiated by default.
1.14 noro 6222:
1.51 ! ohara 6223: Usage: $0 [OPTION]... [TAG]...
1.14 noro 6224:
6225: -h, --help print this help, then exit
1.37 ohara 6226: -V, --version print version number and configuration settings, then exit
1.51 ! ohara 6227: --config print configuration, then exit
! 6228: -q, --quiet, --silent
! 6229: do not print progress messages
1.14 noro 6230: -d, --debug don't remove temporary files
6231: --recheck update $as_me by reconfiguring in the same conditions
1.51 ! ohara 6232: --file=FILE[:TEMPLATE]
1.43 ohara 6233: instantiate the configuration file FILE
1.4 saito 6234:
1.14 noro 6235: Configuration files:
6236: $config_files
6237:
6238: Configuration commands:
6239: $config_commands
6240:
1.51 ! ohara 6241: Report bugs to the package provider."
1.37 ohara 6242:
1.14 noro 6243: _ACEOF
1.43 ohara 6244: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.51 ! ohara 6245: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.14 noro 6246: ac_cs_version="\\
6247: config.status
1.51 ! ohara 6248: configured by $0, generated by GNU Autoconf 2.68,
! 6249: with options \\"\$ac_cs_config\\"
1.14 noro 6250:
1.51 ! ohara 6251: Copyright (C) 2010 Free Software Foundation, Inc.
1.14 noro 6252: This config.status script is free software; the Free Software Foundation
6253: gives unlimited permission to copy, distribute and modify it."
1.37 ohara 6254:
6255: ac_pwd='$ac_pwd'
6256: srcdir='$srcdir'
6257: INSTALL='$INSTALL'
6258: MKDIR_P='$MKDIR_P'
1.43 ohara 6259: AWK='$AWK'
6260: test -n "\$AWK" || AWK=awk
1.14 noro 6261: _ACEOF
6262:
1.43 ohara 6263: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6264: # The default lists apply if the user does not specify any file.
1.14 noro 6265: ac_need_defaults=:
6266: while test $# != 0
6267: do
6268: case $1 in
1.51 ! ohara 6269: --*=?*)
1.37 ohara 6270: ac_option=`expr "X$1" : 'X\([^=]*\)='`
6271: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1.32 noro 6272: ac_shift=:
6273: ;;
1.51 ! ohara 6274: --*=)
! 6275: ac_option=`expr "X$1" : 'X\([^=]*\)='`
! 6276: ac_optarg=
! 6277: ac_shift=:
! 6278: ;;
1.37 ohara 6279: *)
1.32 noro 6280: ac_option=$1
6281: ac_optarg=$2
6282: ac_shift=shift
1.12 ohara 6283: ;;
1.14 noro 6284: esac
6285:
1.32 noro 6286: case $ac_option in
1.14 noro 6287: # Handling of the options.
1.17 ohara 6288: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1.32 noro 6289: ac_cs_recheck=: ;;
1.37 ohara 6290: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.43 ohara 6291: $as_echo "$ac_cs_version"; exit ;;
1.51 ! ohara 6292: --config | --confi | --conf | --con | --co | --c )
! 6293: $as_echo "$ac_cs_config"; exit ;;
1.37 ohara 6294: --debug | --debu | --deb | --de | --d | -d )
1.14 noro 6295: debug=: ;;
6296: --file | --fil | --fi | --f )
1.32 noro 6297: $ac_shift
1.43 ohara 6298: case $ac_optarg in
6299: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.51 ! ohara 6300: '') as_fn_error $? "missing file argument" ;;
1.43 ohara 6301: esac
1.51 ! ohara 6302: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.14 noro 6303: ac_need_defaults=false;;
1.37 ohara 6304: --he | --h | --help | --hel | -h )
1.43 ohara 6305: $as_echo "$ac_cs_usage"; exit ;;
1.32 noro 6306: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6307: | -silent | --silent | --silen | --sile | --sil | --si | --s)
6308: ac_cs_silent=: ;;
1.14 noro 6309:
6310: # This is an error.
1.51 ! ohara 6311: -*) as_fn_error $? "unrecognized option: \`$1'
! 6312: Try \`$0 --help' for more information." ;;
1.14 noro 6313:
1.51 ! ohara 6314: *) as_fn_append ac_config_targets " $1"
1.37 ohara 6315: ac_need_defaults=false ;;
1.14 noro 6316:
6317: esac
6318: shift
6319: done
6320:
1.32 noro 6321: ac_configure_extra_args=
6322:
6323: if $ac_cs_silent; then
6324: exec 6>/dev/null
6325: ac_configure_extra_args="$ac_configure_extra_args --silent"
6326: fi
6327:
6328: _ACEOF
1.43 ohara 6329: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.32 noro 6330: if \$ac_cs_recheck; then
1.43 ohara 6331: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6332: shift
6333: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6334: CONFIG_SHELL='$SHELL'
1.37 ohara 6335: export CONFIG_SHELL
1.43 ohara 6336: exec "\$@"
1.32 noro 6337: fi
6338:
1.14 noro 6339: _ACEOF
1.43 ohara 6340: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.37 ohara 6341: exec 5>>config.log
6342: {
6343: echo
6344: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6345: ## Running $as_me. ##
6346: _ASBOX
1.43 ohara 6347: $as_echo "$ac_log"
1.37 ohara 6348: } >&5
1.14 noro 6349:
1.37 ohara 6350: _ACEOF
1.43 ohara 6351: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.14 noro 6352: #
1.37 ohara 6353: # INIT-COMMANDS
1.14 noro 6354: #
1.37 ohara 6355: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
1.14 noro 6356:
6357: _ACEOF
6358:
1.43 ohara 6359: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.14 noro 6360:
1.37 ohara 6361: # Handling of arguments.
1.14 noro 6362: for ac_config_target in $ac_config_targets
6363: do
1.37 ohara 6364: case $ac_config_target in
6365: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6366: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6367: "engine/Makefile") CONFIG_FILES="$CONFIG_FILES engine/Makefile" ;;
6368: "asm/Makefile") CONFIG_FILES="$CONFIG_FILES asm/Makefile" ;;
6369: "builtin/Makefile") CONFIG_FILES="$CONFIG_FILES builtin/Makefile" ;;
6370: "fft/Makefile") CONFIG_FILES="$CONFIG_FILES fft/Makefile" ;;
6371: "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
6372: "io/Makefile") CONFIG_FILES="$CONFIG_FILES io/Makefile" ;;
6373: "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
6374: "parse/Makefile") CONFIG_FILES="$CONFIG_FILES parse/Makefile" ;;
6375: "plot/Makefile") CONFIG_FILES="$CONFIG_FILES plot/Makefile" ;;
6376:
1.51 ! ohara 6377: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.14 noro 6378: esac
6379: done
6380:
1.37 ohara 6381:
1.14 noro 6382: # If the user did not use the arguments to specify the items to instantiate,
6383: # then the envvar interface is used. Set only those that are not.
6384: # We use the long form for the default assignment because of an extremely
6385: # bizarre bug on SunOS 4.1.3.
6386: if $ac_need_defaults; then
6387: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6388: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6389: fi
6390:
1.32 noro 6391: # Have a temporary directory for convenience. Make it in the build tree
1.37 ohara 6392: # simply because there is no reason against having it here, and in addition,
1.32 noro 6393: # creating and moving files from /tmp can sometimes cause problems.
1.37 ohara 6394: # Hook for its removal unless debugging.
6395: # Note that there is a small window in which the directory will not be cleaned:
6396: # after its creation but before its name has been assigned to `$tmp'.
1.14 noro 6397: $debug ||
6398: {
1.51 ! ohara 6399: tmp= ac_tmp=
1.37 ohara 6400: trap 'exit_status=$?
1.51 ! ohara 6401: : "${ac_tmp:=$tmp}"
! 6402: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1.37 ohara 6403: ' 0
1.51 ! ohara 6404: trap 'as_fn_exit 1' 1 2 13 15
1.14 noro 6405: }
6406: # Create a (secure) tmp directory for tmp files.
1.32 noro 6407:
1.14 noro 6408: {
1.37 ohara 6409: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.51 ! ohara 6410: test -d "$tmp"
1.14 noro 6411: } ||
6412: {
1.37 ohara 6413: tmp=./conf$$-$RANDOM
6414: (umask 077 && mkdir "$tmp")
1.51 ! ohara 6415: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
! 6416: ac_tmp=$tmp
1.14 noro 6417:
1.43 ohara 6418: # Set up the scripts for CONFIG_FILES section.
6419: # No need to generate them if there are no CONFIG_FILES.
6420: # This happens for instance with `./config.status config.h'.
1.37 ohara 6421: if test -n "$CONFIG_FILES"; then
6422:
1.14 noro 6423:
1.51 ! ohara 6424: ac_cr=`echo X | tr X '\015'`
! 6425: # On cygwin, bash can eat \r inside `` if the user requested igncr.
! 6426: # But we know of no other shell where ac_cr would be empty at this
! 6427: # point, so we can use a bashism as a fallback.
! 6428: if test "x$ac_cr" = x; then
! 6429: eval ac_cr=\$\'\\r\'
! 6430: fi
1.43 ohara 6431: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6432: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6433: ac_cs_awk_cr='\\r'
6434: else
6435: ac_cs_awk_cr=$ac_cr
1.37 ohara 6436: fi
6437:
1.51 ! ohara 6438: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1.37 ohara 6439: _ACEOF
6440:
1.14 noro 6441:
1.43 ohara 6442: {
6443: echo "cat >conf$$subs.awk <<_ACEOF" &&
6444: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6445: echo "_ACEOF"
6446: } >conf$$subs.sh ||
1.51 ! ohara 6447: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
! 6448: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1.37 ohara 6449: ac_delim='%!_!# '
6450: for ac_last_try in false false false false false :; do
1.43 ohara 6451: . ./conf$$subs.sh ||
1.51 ! ohara 6452: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14 noro 6453:
1.51 ! ohara 6454: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
! 6455: if test $ac_delim_n = $ac_delim_num; then
1.37 ohara 6456: break
6457: elif $ac_last_try; then
1.51 ! ohara 6458: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.37 ohara 6459: else
6460: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.14 noro 6461: fi
1.37 ohara 6462: done
1.43 ohara 6463: rm -f conf$$subs.sh
1.37 ohara 6464:
1.43 ohara 6465: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.51 ! ohara 6466: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1.43 ohara 6467: _ACEOF
6468: sed -n '
6469: h
6470: s/^/S["/; s/!.*/"]=/
6471: p
6472: g
6473: s/^[^!]*!//
6474: :repl
6475: t repl
6476: s/'"$ac_delim"'$//
6477: t delim
6478: :nl
6479: h
1.51 ! ohara 6480: s/\(.\{148\}\)..*/\1/
1.43 ohara 6481: t more1
6482: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6483: p
6484: n
6485: b repl
6486: :more1
6487: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6488: p
6489: g
6490: s/.\{148\}//
6491: t nl
6492: :delim
6493: h
1.51 ! ohara 6494: s/\(.\{148\}\)..*/\1/
1.43 ohara 6495: t more2
6496: s/["\\]/\\&/g; s/^/"/; s/$/"/
6497: p
6498: b
6499: :more2
6500: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6501: p
6502: g
6503: s/.\{148\}//
6504: t delim
6505: ' <conf$$subs.awk | sed '
6506: /^[^""]/{
6507: N
6508: s/\n//
6509: }
6510: ' >>$CONFIG_STATUS || ac_write_fail=1
6511: rm -f conf$$subs.awk
6512: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6513: _ACAWK
1.51 ! ohara 6514: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1.43 ohara 6515: for (key in S) S_is_set[key] = 1
6516: FS = ""
6517:
6518: }
6519: {
6520: line = $ 0
6521: nfields = split(line, field, "@")
6522: substed = 0
6523: len = length(field[1])
6524: for (i = 2; i < nfields; i++) {
6525: key = field[i]
6526: keylen = length(key)
6527: if (S_is_set[key]) {
6528: value = S[key]
6529: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6530: len += length(value) + length(field[++i])
6531: substed = 1
6532: } else
6533: len += 1 + keylen
6534: }
6535:
6536: print line
6537: }
6538:
6539: _ACAWK
6540: _ACEOF
6541: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6542: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6543: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6544: else
6545: cat
1.51 ! ohara 6546: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
! 6547: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.14 noro 6548: _ACEOF
1.37 ohara 6549:
1.51 ! ohara 6550: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
! 6551: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1.37 ohara 6552: # trailing colons and then remove the whole line if VPATH becomes empty
6553: # (actually we leave an empty line to preserve line numbers).
6554: if test "x$srcdir" = x.; then
1.51 ! ohara 6555: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
! 6556: h
! 6557: s///
! 6558: s/^/:/
! 6559: s/[ ]*$/:/
! 6560: s/:\$(srcdir):/:/g
! 6561: s/:\${srcdir}:/:/g
! 6562: s/:@srcdir@:/:/g
! 6563: s/^:*//
1.37 ohara 6564: s/:*$//
1.51 ! ohara 6565: x
! 6566: s/\(=[ ]*\).*/\1/
! 6567: G
! 6568: s/\n//
1.37 ohara 6569: s/^[^=]*=[ ]*$//
6570: }'
6571: fi
6572:
1.43 ohara 6573: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.37 ohara 6574: fi # test -n "$CONFIG_FILES"
6575:
6576:
1.43 ohara 6577: eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
6578: shift
6579: for ac_tag
1.37 ohara 6580: do
6581: case $ac_tag in
6582: :[FHLC]) ac_mode=$ac_tag; continue;;
6583: esac
6584: case $ac_mode$ac_tag in
6585: :[FHL]*:*);;
1.51 ! ohara 6586: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1.37 ohara 6587: :[FH]-) ac_tag=-:-;;
6588: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6589: esac
6590: ac_save_IFS=$IFS
6591: IFS=:
6592: set x $ac_tag
6593: IFS=$ac_save_IFS
6594: shift
6595: ac_file=$1
6596: shift
6597:
6598: case $ac_mode in
6599: :L) ac_source=$1;;
6600: :[FH])
6601: ac_file_inputs=
6602: for ac_f
6603: do
6604: case $ac_f in
1.51 ! ohara 6605: -) ac_f="$ac_tmp/stdin";;
1.37 ohara 6606: *) # Look for the file first in the build tree, then in the source tree
6607: # (if the path is not absolute). The absolute path cannot be DOS-style,
6608: # because $ac_f cannot contain `:'.
6609: test -f "$ac_f" ||
6610: case $ac_f in
6611: [\\/$]*) false;;
6612: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6613: esac ||
1.51 ! ohara 6614: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1.37 ohara 6615: esac
1.43 ohara 6616: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1.51 ! ohara 6617: as_fn_append ac_file_inputs " '$ac_f'"
1.37 ohara 6618: done
6619:
6620: # Let's still pretend it is `configure' which instantiates (i.e., don't
6621: # use $as_me), people would be surprised to read:
6622: # /* config.h. Generated by config.status. */
1.43 ohara 6623: configure_input='Generated from '`
6624: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6625: `' by configure.'
1.37 ohara 6626: if test x"$ac_file" != x-; then
6627: configure_input="$ac_file. $configure_input"
1.51 ! ohara 6628: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
1.43 ohara 6629: $as_echo "$as_me: creating $ac_file" >&6;}
1.37 ohara 6630: fi
1.43 ohara 6631: # Neutralize special characters interpreted by sed in replacement strings.
6632: case $configure_input in #(
6633: *\&* | *\|* | *\\* )
6634: ac_sed_conf_input=`$as_echo "$configure_input" |
6635: sed 's/[\\\\&|]/\\\\&/g'`;; #(
6636: *) ac_sed_conf_input=$configure_input;;
6637: esac
1.37 ohara 6638:
6639: case $ac_tag in
1.51 ! ohara 6640: *:-:* | *:-) cat >"$ac_tmp/stdin" \
! 6641: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1.37 ohara 6642: esac
6643: ;;
1.14 noro 6644: esac
6645:
1.37 ohara 6646: ac_dir=`$as_dirname -- "$ac_file" ||
1.14 noro 6647: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.32 noro 6648: X"$ac_file" : 'X\(//\)[^/]' \| \
6649: X"$ac_file" : 'X\(//\)$' \| \
1.37 ohara 6650: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.43 ohara 6651: $as_echo X"$ac_file" |
1.37 ohara 6652: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6653: s//\1/
6654: q
6655: }
6656: /^X\(\/\/\)[^/].*/{
6657: s//\1/
6658: q
6659: }
6660: /^X\(\/\/\)$/{
6661: s//\1/
6662: q
6663: }
6664: /^X\(\/\).*/{
6665: s//\1/
6666: q
6667: }
6668: s/.*/./; q'`
1.51 ! ohara 6669: as_dir="$ac_dir"; as_fn_mkdir_p
1.14 noro 6670: ac_builddir=.
6671:
1.37 ohara 6672: case "$ac_dir" in
6673: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6674: *)
1.43 ohara 6675: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.37 ohara 6676: # A ".." for each directory in $ac_dir_suffix.
1.43 ohara 6677: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.37 ohara 6678: case $ac_top_builddir_sub in
6679: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6680: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6681: esac ;;
6682: esac
6683: ac_abs_top_builddir=$ac_pwd
6684: ac_abs_builddir=$ac_pwd$ac_dir_suffix
6685: # for backward compatibility:
6686: ac_top_builddir=$ac_top_build_prefix
1.14 noro 6687:
6688: case $srcdir in
1.37 ohara 6689: .) # We are building in place.
1.14 noro 6690: ac_srcdir=.
1.37 ohara 6691: ac_top_srcdir=$ac_top_builddir_sub
6692: ac_abs_top_srcdir=$ac_pwd ;;
6693: [\\/]* | ?:[\\/]* ) # Absolute name.
1.14 noro 6694: ac_srcdir=$srcdir$ac_dir_suffix;
1.37 ohara 6695: ac_top_srcdir=$srcdir
6696: ac_abs_top_srcdir=$srcdir ;;
6697: *) # Relative name.
6698: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6699: ac_top_srcdir=$ac_top_build_prefix$srcdir
6700: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.14 noro 6701: esac
1.37 ohara 6702: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.32 noro 6703:
1.14 noro 6704:
1.37 ohara 6705: case $ac_mode in
6706: :F)
6707: #
6708: # CONFIG_FILE
6709: #
1.14 noro 6710:
6711: case $INSTALL in
6712: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.37 ohara 6713: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1.14 noro 6714: esac
1.37 ohara 6715: ac_MKDIR_P=$MKDIR_P
6716: case $MKDIR_P in
6717: [\\/$]* | ?:[\\/]* ) ;;
6718: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6719: esac
6720: _ACEOF
1.14 noro 6721:
1.43 ohara 6722: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.37 ohara 6723: # If the template does not know about datarootdir, expand it.
6724: # FIXME: This hack should be removed a few years after 2.60.
6725: ac_datarootdir_hack=; ac_datarootdir_seen=
1.43 ohara 6726: ac_sed_dataroot='
6727: /datarootdir/ {
1.37 ohara 6728: p
6729: q
6730: }
6731: /@datadir@/p
6732: /@docdir@/p
6733: /@infodir@/p
6734: /@localedir@/p
1.51 ! ohara 6735: /@mandir@/p'
1.43 ohara 6736: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1.37 ohara 6737: *datarootdir*) ac_datarootdir_seen=yes;;
6738: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.51 ! ohara 6739: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
1.43 ohara 6740: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.37 ohara 6741: _ACEOF
1.43 ohara 6742: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.37 ohara 6743: ac_datarootdir_hack='
6744: s&@datadir@&$datadir&g
6745: s&@docdir@&$docdir&g
6746: s&@infodir@&$infodir&g
6747: s&@localedir@&$localedir&g
6748: s&@mandir@&$mandir&g
1.51 ! ohara 6749: s&\\\${datarootdir}&$datarootdir&g' ;;
1.37 ohara 6750: esac
6751: _ACEOF
1.14 noro 6752:
1.37 ohara 6753: # Neutralize VPATH when `$srcdir' = `.'.
6754: # Shell code in configure.ac might set extrasub.
6755: # FIXME: do we really want to maintain this feature?
1.43 ohara 6756: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6757: ac_sed_extra="$ac_vpsub
1.14 noro 6758: $extrasub
6759: _ACEOF
1.43 ohara 6760: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.14 noro 6761: :t
6762: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.43 ohara 6763: s|@configure_input@|$ac_sed_conf_input|;t t
1.37 ohara 6764: s&@top_builddir@&$ac_top_builddir_sub&;t t
1.43 ohara 6765: s&@top_build_prefix@&$ac_top_build_prefix&;t t
1.37 ohara 6766: s&@srcdir@&$ac_srcdir&;t t
6767: s&@abs_srcdir@&$ac_abs_srcdir&;t t
6768: s&@top_srcdir@&$ac_top_srcdir&;t t
6769: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6770: s&@builddir@&$ac_builddir&;t t
6771: s&@abs_builddir@&$ac_abs_builddir&;t t
6772: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6773: s&@INSTALL@&$ac_INSTALL&;t t
6774: s&@MKDIR_P@&$ac_MKDIR_P&;t t
6775: $ac_datarootdir_hack
1.43 ohara 6776: "
1.51 ! ohara 6777: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
! 6778: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.37 ohara 6779:
6780: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1.51 ! ohara 6781: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
! 6782: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
! 6783: "$ac_tmp/out"`; test -z "$ac_out"; } &&
! 6784: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
! 6785: which seems to be undefined. Please make sure it is defined" >&5
1.43 ohara 6786: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.51 ! ohara 6787: which seems to be undefined. Please make sure it is defined" >&2;}
1.37 ohara 6788:
1.51 ! ohara 6789: rm -f "$ac_tmp/stdin"
1.37 ohara 6790: case $ac_file in
1.51 ! ohara 6791: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
! 6792: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1.43 ohara 6793: esac \
1.51 ! ohara 6794: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.37 ohara 6795: ;;
6796:
6797:
1.51 ! ohara 6798: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
1.43 ohara 6799: $as_echo "$as_me: executing $ac_file commands" >&6;}
1.37 ohara 6800: ;;
6801: esac
1.14 noro 6802:
6803:
1.37 ohara 6804: case $ac_file$ac_mode in
1.51 ! ohara 6805: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
! 6806: # Autoconf 2.62 quotes --file arguments for eval, but not when files
! 6807: # are listed without --file. Let's play safe and only enable the eval
! 6808: # if we detect the quoting.
! 6809: case $CONFIG_FILES in
! 6810: *\'*) eval set x "$CONFIG_FILES" ;;
! 6811: *) set x $CONFIG_FILES ;;
! 6812: esac
! 6813: shift
! 6814: for mf
! 6815: do
! 6816: # Strip MF so we end up with the name of the file.
! 6817: mf=`echo "$mf" | sed -e 's/:.*$//'`
! 6818: # Check whether this is an Automake generated Makefile or not.
! 6819: # We used to match only the files named `Makefile.in', but
! 6820: # some people rename them; so instead we look at the file content.
! 6821: # Grep'ing the first line is not enough: some people post-process
! 6822: # each Makefile.in and add a new line on top of each file to say so.
! 6823: # Grep'ing the whole file is not good either: AIX grep has a line
! 6824: # limit of 2048, but all sed's we know have understand at least 4000.
! 6825: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
! 6826: dirpart=`$as_dirname -- "$mf" ||
1.37 ohara 6827: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6828: X"$mf" : 'X\(//\)[^/]' \| \
6829: X"$mf" : 'X\(//\)$' \| \
6830: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1.43 ohara 6831: $as_echo X"$mf" |
1.37 ohara 6832: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6833: s//\1/
6834: q
6835: }
6836: /^X\(\/\/\)[^/].*/{
6837: s//\1/
6838: q
6839: }
6840: /^X\(\/\/\)$/{
6841: s//\1/
6842: q
6843: }
6844: /^X\(\/\).*/{
6845: s//\1/
6846: q
6847: }
6848: s/.*/./; q'`
1.51 ! ohara 6849: else
! 6850: continue
! 6851: fi
! 6852: # Extract the definition of DEPDIR, am__include, and am__quote
! 6853: # from the Makefile without running `make'.
! 6854: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
! 6855: test -z "$DEPDIR" && continue
! 6856: am__include=`sed -n 's/^am__include = //p' < "$mf"`
! 6857: test -z "am__include" && continue
! 6858: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
! 6859: # When using ansi2knr, U may be empty or an underscore; expand it
! 6860: U=`sed -n 's/^U = //p' < "$mf"`
! 6861: # Find all dependency output files, they are included files with
! 6862: # $(DEPDIR) in their names. We invoke sed twice because it is the
! 6863: # simplest approach to changing $(DEPDIR) to its actual value in the
! 6864: # expansion.
! 6865: for file in `sed -n "
! 6866: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
! 6867: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
! 6868: # Make sure the directory exists.
! 6869: test -f "$dirpart/$file" && continue
! 6870: fdir=`$as_dirname -- "$file" ||
1.37 ohara 6871: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6872: X"$file" : 'X\(//\)[^/]' \| \
6873: X"$file" : 'X\(//\)$' \| \
6874: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1.43 ohara 6875: $as_echo X"$file" |
1.37 ohara 6876: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6877: s//\1/
6878: q
6879: }
6880: /^X\(\/\/\)[^/].*/{
6881: s//\1/
6882: q
6883: }
6884: /^X\(\/\/\)$/{
6885: s//\1/
6886: q
6887: }
6888: /^X\(\/\).*/{
6889: s//\1/
6890: q
6891: }
6892: s/.*/./; q'`
1.51 ! ohara 6893: as_dir=$dirpart/$fdir; as_fn_mkdir_p
! 6894: # echo "creating $dirpart/$file"
! 6895: echo '# dummy' > "$dirpart/$file"
1.32 noro 6896: done
1.14 noro 6897: done
1.51 ! ohara 6898: }
1.14 noro 6899: ;;
1.37 ohara 6900:
1.14 noro 6901: esac
1.37 ohara 6902: done # for ac_tag
1.14 noro 6903:
6904:
1.51 ! ohara 6905: as_fn_exit 0
1.14 noro 6906: _ACEOF
6907: ac_clean_files=$ac_clean_files_save
6908:
1.43 ohara 6909: test $ac_write_fail = 0 ||
1.51 ! ohara 6910: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1.43 ohara 6911:
1.14 noro 6912:
6913: # configure is writing to config.log, and then calls config.status.
6914: # config.status does its own redirection, appending to config.log.
6915: # Unfortunately, on DOS this fails, as config.log is still kept open
6916: # by configure, so config.status won't be able to write to it; its
6917: # output is simply discarded. So we exec the FD to /dev/null,
6918: # effectively closing config.log, so it can be properly (re)opened and
6919: # appended to by config.status. When coming back to configure, we
6920: # need to make the FD available again.
6921: if test "$no_create" != yes; then
6922: ac_cs_success=:
1.32 noro 6923: ac_config_status_args=
6924: test "$silent" = yes &&
6925: ac_config_status_args="$ac_config_status_args --quiet"
1.14 noro 6926: exec 5>/dev/null
1.32 noro 6927: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1.14 noro 6928: exec 5>>config.log
6929: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6930: # would make configure fail if this is the last instruction.
1.51 ! ohara 6931: $ac_cs_success || as_fn_exit 1
1.14 noro 6932: fi
1.43 ohara 6933: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
1.51 ! ohara 6934: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
! 6935: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1.43 ohara 6936: fi
1.14 noro 6937:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>