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