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