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