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