Annotation of OpenXM/src/oxc/configure, Revision 1.3
1.1 ohara 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
3: # Generated by GNU Autoconf 2.53.
4: #
5: # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6: # Free Software Foundation, Inc.
7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
9:
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: #
242: ac_default_prefix=/usr/local
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="oxc.c"
262:
263: # Initialize some variables set by options.
264: ac_init_help=
265: ac_init_version=false
266: # The variables have the same names as the options, with
267: # dashes changed to underlines.
268: cache_file=/dev/null
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
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.
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:
311: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
312:
313: # Accept the important Cygnus configure options, so we can diagnose typos.
314:
315: case $ac_option in
316:
317: -bindir | --bindir | --bindi | --bind | --bin | --bi)
318: ac_prev=bindir ;;
319: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
320: bindir=$ac_optarg ;;
321:
322: -build | --build | --buil | --bui | --bu)
323: ac_prev=build_alias ;;
324: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
325: build_alias=$ac_optarg ;;
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=*)
332: cache_file=$ac_optarg ;;
333:
334: --config-cache | -C)
335: cache_file=config.cache ;;
336:
337: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
338: ac_prev=datadir ;;
339: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
340: | --da=*)
341: datadir=$ac_optarg ;;
342:
343: -disable-* | --disable-*)
344: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
345: # Reject names that are not valid shell variable names.
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" ;;
351:
352: -enable-* | --enable-*)
353: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
354: # Reject names that are not valid shell variable names.
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"`;;
361: *) ac_optarg=yes ;;
362: esac
363: eval "enable_$ac_feature='$ac_optarg'" ;;
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=*)
372: exec_prefix=$ac_optarg ;;
373:
374: -gas | --gas | --ga | --g)
375: # Obsolete; use --with-gas.
376: with_gas=yes ;;
377:
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 ;;
384:
385: -host | --host | --hos | --ho)
386: ac_prev=host_alias ;;
387: -host=* | --host=* | --hos=* | --ho=*)
388: host_alias=$ac_optarg ;;
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=*)
395: includedir=$ac_optarg ;;
396:
397: -infodir | --infodir | --infodi | --infod | --info | --inf)
398: ac_prev=infodir ;;
399: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
400: infodir=$ac_optarg ;;
401:
402: -libdir | --libdir | --libdi | --libd)
403: ac_prev=libdir ;;
404: -libdir=* | --libdir=* | --libdi=* | --libd=*)
405: libdir=$ac_optarg ;;
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=*)
412: libexecdir=$ac_optarg ;;
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=*)
421: localstatedir=$ac_optarg ;;
422:
423: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
424: ac_prev=mandir ;;
425: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
426: mandir=$ac_optarg ;;
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 \
433: | --no-cr | --no-c | -n)
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=*)
447: oldincludedir=$ac_optarg ;;
448:
449: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
450: ac_prev=prefix ;;
451: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
452: prefix=$ac_optarg ;;
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=*)
459: program_prefix=$ac_optarg ;;
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=*)
466: program_suffix=$ac_optarg ;;
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=*)
483: program_transform_name=$ac_optarg ;;
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=*)
493: sbindir=$ac_optarg ;;
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=*)
504: sharedstatedir=$ac_optarg ;;
505:
506: -site | --site | --sit)
507: ac_prev=site ;;
508: -site=* | --site=* | --sit=*)
509: site=$ac_optarg ;;
510:
511: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
512: ac_prev=srcdir ;;
513: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
514: srcdir=$ac_optarg ;;
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=*)
521: sysconfdir=$ac_optarg ;;
522:
523: -target | --target | --targe | --targ | --tar | --ta | --t)
524: ac_prev=target_alias ;;
525: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
526: target_alias=$ac_optarg ;;
527:
528: -v | -verbose | --verbose | --verbos | --verbo | --verb)
529: verbose=yes ;;
530:
531: -version | --version | --versio | --versi | --vers | -V)
532: ac_init_version=: ;;
533:
534: -with-* | --with-*)
535: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
536: # Reject names that are not valid shell variable names.
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; }; }
540: ac_package=`echo $ac_package| sed 's/-/_/g'`
541: case $ac_option in
542: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
543: *) ac_optarg=yes ;;
544: esac
545: eval "with_$ac_package='$ac_optarg'" ;;
546:
547: -without-* | --without-*)
548: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
549: # Reject names that are not valid shell variable names.
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" ;;
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=*)
565: x_includes=$ac_optarg ;;
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=*)
572: x_libraries=$ac_optarg ;;
573:
574: -*) { echo "$as_me: error: unrecognized option: $ac_option
575: Try \`$0 --help' for more information." >&2
576: { (exit 1); exit 1; }; }
577: ;;
578:
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:
589: *)
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}
595: ;;
596:
597: esac
598: done
599:
600: if test -n "$ac_prev"; then
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; }; }
604: fi
605:
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
616:
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
620: do
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; }; };;
626: esac
627: done
628:
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-
649:
650: test "$silent" = yes && exec 6>/dev/null
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.
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'`
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
678: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
679: { (exit 1); exit 1; }; }
680: else
681: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
682: { (exit 1); exit 1; }; }
683: fi
684: fi
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:
779: X features:
780: --x-includes=DIR X include files are in DIR
781: --x-libraries=DIR X library files are in DIR
782: _ACEOF
783: fi
784:
785: if test -n "$ac_init_help"; then
786:
787: cat <<\_ACEOF
788:
789: Optional Packages:
790: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
791: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
792: --with-x use the X Window System
793:
794: Some influential environment variables:
795: CC C compiler command
796: CFLAGS C compiler flags
797: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
798: nonstandard directory <lib dir>
799: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
800: headers in a nonstandard directory <include dir>
801: CPP C preprocessor
802:
803: Use these variables to override the choices made by `configure' or to help
804: it to find libraries and programs with nonstandard names/locations.
805:
806: _ACEOF
807: fi
808:
809: if test "$ac_init_help" = "recursive"; then
810: # If there are subdirs, report their specific --help.
811: ac_popdir=`pwd`
812: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
813: test -d $ac_dir || continue
814: ac_builddir=.
815:
816: if test "$ac_dir" != .; then
817: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
818: # A "../" for each directory in $ac_dir_suffix.
819: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
820: else
821: ac_dir_suffix= ac_top_builddir=
822: fi
823:
824: case $srcdir in
825: .) # No --srcdir option. We are building in place.
826: ac_srcdir=.
827: if test -z "$ac_top_builddir"; then
828: ac_top_srcdir=.
829: else
830: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
831: fi ;;
832: [\\/]* | ?:[\\/]* ) # Absolute path.
833: ac_srcdir=$srcdir$ac_dir_suffix;
834: ac_top_srcdir=$srcdir ;;
835: *) # Relative path.
836: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
837: ac_top_srcdir=$ac_top_builddir$srcdir ;;
838: esac
839: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
840: # absolute.
841: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
842: ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
843: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
844: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
845:
846: cd $ac_dir
847: # Check for guested configure; otherwise get Cygnus style configure.
848: if test -f $ac_srcdir/configure.gnu; then
849: echo
850: $SHELL $ac_srcdir/configure.gnu --help=recursive
851: elif test -f $ac_srcdir/configure; then
852: echo
853: $SHELL $ac_srcdir/configure --help=recursive
854: elif test -f $ac_srcdir/configure.ac ||
855: test -f $ac_srcdir/configure.in; then
856: echo
857: $ac_configure --help
858: else
859: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
860: fi
861: cd $ac_popdir
862: done
863: fi
864:
865: test -n "$ac_init_help" && exit 0
866: if $ac_init_version; then
867: cat <<\_ACEOF
868:
869: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
870: Free Software Foundation, Inc.
871: This configure script is free software; the Free Software Foundation
872: gives unlimited permission to copy, distribute and modify it.
873: _ACEOF
874: exit 0
875: fi
876: exec 5>config.log
877: cat >&5 <<_ACEOF
878: This file contains any messages produced by compilers while
879: running configure, to aid debugging if configure makes a mistake.
880:
881: It was created by $as_me, which was
882: generated by GNU Autoconf 2.53. Invocation command line was
883:
884: $ $0 $@
885:
886: _ACEOF
887: {
888: cat <<_ASUNAME
889: ## --------- ##
890: ## Platform. ##
891: ## --------- ##
892:
893: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
894: uname -m = `(uname -m) 2>/dev/null || echo unknown`
895: uname -r = `(uname -r) 2>/dev/null || echo unknown`
896: uname -s = `(uname -s) 2>/dev/null || echo unknown`
897: uname -v = `(uname -v) 2>/dev/null || echo unknown`
898:
899: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
900: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
901:
902: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
903: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
904: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
905: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
906: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
907: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
908: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
909:
910: _ASUNAME
911:
912: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
913: for as_dir in $PATH
914: do
915: IFS=$as_save_IFS
916: test -z "$as_dir" && as_dir=.
917: echo "PATH: $as_dir"
918: done
919:
920: } >&5
921:
922: cat >&5 <<_ACEOF
923:
924:
925: ## ----------- ##
926: ## Core tests. ##
927: ## ----------- ##
928:
929: _ACEOF
930:
931:
932: # Keep a trace of the command line.
933: # Strip out --no-create and --no-recursion so they do not pile up.
934: # Also quote any args containing shell meta-characters.
935: ac_configure_args=
936: ac_sep=
937: for ac_arg
938: do
939: case $ac_arg in
940: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
941: | --no-cr | --no-c | -n ) continue ;;
942: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
943: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
944: continue ;;
945: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
946: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
947: esac
948: case " $ac_configure_args " in
949: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
950: *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
951: ac_sep=" " ;;
952: esac
953: # Get rid of the leading space.
954: done
955:
956: # When interrupted or exit'd, cleanup temporary files, and complete
957: # config.log. We remove comments because anyway the quotes in there
958: # would cause problems or look ugly.
959: # WARNING: Be sure not to use single quotes in there, as some shells,
960: # such as our DU 5.0 friend, will then `close' the trap.
961: trap 'exit_status=$?
962: # Save into config.log some information that might help in debugging.
963: {
964: echo
965: cat <<\_ASBOX
966: ## ---------------- ##
967: ## Cache variables. ##
968: ## ---------------- ##
969: _ASBOX
970: echo
971: # The following way of writing the cache mishandles newlines in values,
972: {
973: (set) 2>&1 |
974: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
975: *ac_space=\ *)
976: sed -n \
977: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
978: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
979: ;;
980: *)
981: sed -n \
982: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
983: ;;
984: esac;
985: }
986: echo
987: if test -s confdefs.h; then
988: cat <<\_ASBOX
989: ## ----------- ##
990: ## confdefs.h. ##
991: ## ----------- ##
992: _ASBOX
993: echo
994: sed "/^$/d" confdefs.h
995: echo
996: fi
997: test "$ac_signal" != 0 &&
998: echo "$as_me: caught signal $ac_signal"
999: echo "$as_me: exit $exit_status"
1000: } >&5
1001: rm -f core core.* *.core &&
1002: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1003: exit $exit_status
1004: ' 0
1005: for ac_signal in 1 2 13 15; do
1006: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1007: done
1008: ac_signal=0
1009:
1010: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1011: rm -rf conftest* confdefs.h
1012: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1013: echo >confdefs.h
1014:
1015: # Predefined preprocessor variables.
1016:
1017: cat >>confdefs.h <<_ACEOF
1018: #define PACKAGE_NAME "$PACKAGE_NAME"
1019: _ACEOF
1020:
1021:
1022: cat >>confdefs.h <<_ACEOF
1023: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1024: _ACEOF
1025:
1026:
1027: cat >>confdefs.h <<_ACEOF
1028: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1029: _ACEOF
1030:
1031:
1032: cat >>confdefs.h <<_ACEOF
1033: #define PACKAGE_STRING "$PACKAGE_STRING"
1034: _ACEOF
1035:
1036:
1037: cat >>confdefs.h <<_ACEOF
1038: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1039: _ACEOF
1040:
1041:
1042: # Let the site file select an alternate cache file if it wants to.
1043: # Prefer explicitly selected file to automatically selected ones.
1044: if test -z "$CONFIG_SITE"; then
1045: if test "x$prefix" != xNONE; then
1046: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1047: else
1048: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1049: fi
1050: fi
1051: for ac_site_file in $CONFIG_SITE; do
1052: if test -r "$ac_site_file"; then
1053: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1054: echo "$as_me: loading site script $ac_site_file" >&6;}
1055: sed 's/^/| /' "$ac_site_file" >&5
1056: . "$ac_site_file"
1057: fi
1058: done
1059:
1060: if test -r "$cache_file"; then
1061: # Some versions of bash will fail to source /dev/null (special
1062: # files actually), so we avoid doing that.
1063: if test -f "$cache_file"; then
1064: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1065: echo "$as_me: loading cache $cache_file" >&6;}
1066: case $cache_file in
1067: [\\/]* | ?:[\\/]* ) . $cache_file;;
1068: *) . ./$cache_file;;
1069: esac
1070: fi
1071: else
1072: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1073: echo "$as_me: creating cache $cache_file" >&6;}
1074: >$cache_file
1075: fi
1076:
1077: # Check that the precious variables saved in the cache have kept the same
1078: # value.
1079: ac_cache_corrupted=false
1080: for ac_var in `(set) 2>&1 |
1081: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1082: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1083: eval ac_new_set=\$ac_env_${ac_var}_set
1084: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1085: eval ac_new_val="\$ac_env_${ac_var}_value"
1086: case $ac_old_set,$ac_new_set in
1087: set,)
1088: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1089: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1090: ac_cache_corrupted=: ;;
1091: ,set)
1092: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1093: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1094: ac_cache_corrupted=: ;;
1095: ,);;
1096: *)
1097: if test "x$ac_old_val" != "x$ac_new_val"; then
1098: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1099: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1100: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1101: echo "$as_me: former value: $ac_old_val" >&2;}
1102: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1103: echo "$as_me: current value: $ac_new_val" >&2;}
1104: ac_cache_corrupted=:
1105: fi;;
1106: esac
1107: # Pass precious variables to config.status.
1108: if test "$ac_new_set" = set; then
1109: case $ac_new_val in
1110: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1111: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1112: *) ac_arg=$ac_var=$ac_new_val ;;
1113: esac
1114: case " $ac_configure_args " in
1115: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1116: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1117: esac
1118: fi
1119: done
1120: if $ac_cache_corrupted; then
1121: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1122: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1123: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1124: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1125: { (exit 1); exit 1; }; }
1126: fi
1127:
1128: ac_ext=c
1129: ac_cpp='$CPP $CPPFLAGS'
1130: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1131: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1132: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1133:
1134:
1135:
1136:
1137:
1138:
1139:
1140:
1141:
1142:
1143:
1144:
1145:
1146:
1147:
1148:
1149:
1150:
1151: ac_ext=c
1152: ac_cpp='$CPP $CPPFLAGS'
1153: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1154: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1155: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1156: if test -n "$ac_tool_prefix"; then
1157: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1158: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1159: echo "$as_me:$LINENO: checking for $ac_word" >&5
1160: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1161: if test "${ac_cv_prog_CC+set}" = set; then
1162: echo $ECHO_N "(cached) $ECHO_C" >&6
1163: else
1164: if test -n "$CC"; then
1165: ac_cv_prog_CC="$CC" # Let the user override the test.
1166: else
1167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1168: for as_dir in $PATH
1169: do
1170: IFS=$as_save_IFS
1171: test -z "$as_dir" && as_dir=.
1172: for ac_exec_ext in '' $ac_executable_extensions; do
1173: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1174: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1175: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1176: break 2
1177: fi
1178: done
1179: done
1180:
1181: fi
1182: fi
1183: CC=$ac_cv_prog_CC
1184: if test -n "$CC"; then
1185: echo "$as_me:$LINENO: result: $CC" >&5
1186: echo "${ECHO_T}$CC" >&6
1187: else
1188: echo "$as_me:$LINENO: result: no" >&5
1189: echo "${ECHO_T}no" >&6
1190: fi
1191:
1192: fi
1193: if test -z "$ac_cv_prog_CC"; then
1194: ac_ct_CC=$CC
1195: # Extract the first word of "gcc", so it can be a program name with args.
1196: set dummy gcc; ac_word=$2
1197: echo "$as_me:$LINENO: checking for $ac_word" >&5
1198: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1199: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1200: echo $ECHO_N "(cached) $ECHO_C" >&6
1201: else
1202: if test -n "$ac_ct_CC"; then
1203: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1204: else
1205: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1206: for as_dir in $PATH
1207: do
1208: IFS=$as_save_IFS
1209: test -z "$as_dir" && as_dir=.
1210: for ac_exec_ext in '' $ac_executable_extensions; do
1211: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1212: ac_cv_prog_ac_ct_CC="gcc"
1213: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1214: break 2
1215: fi
1216: done
1217: done
1218:
1219: fi
1220: fi
1221: ac_ct_CC=$ac_cv_prog_ac_ct_CC
1222: if test -n "$ac_ct_CC"; then
1223: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1224: echo "${ECHO_T}$ac_ct_CC" >&6
1225: else
1226: echo "$as_me:$LINENO: result: no" >&5
1227: echo "${ECHO_T}no" >&6
1228: fi
1229:
1230: CC=$ac_ct_CC
1231: else
1232: CC="$ac_cv_prog_CC"
1233: fi
1234:
1235: if test -z "$CC"; then
1236: if test -n "$ac_tool_prefix"; then
1237: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1238: set dummy ${ac_tool_prefix}cc; ac_word=$2
1239: echo "$as_me:$LINENO: checking for $ac_word" >&5
1240: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1241: if test "${ac_cv_prog_CC+set}" = set; then
1242: echo $ECHO_N "(cached) $ECHO_C" >&6
1243: else
1244: if test -n "$CC"; then
1245: ac_cv_prog_CC="$CC" # Let the user override the test.
1246: else
1247: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1248: for as_dir in $PATH
1249: do
1250: IFS=$as_save_IFS
1251: test -z "$as_dir" && as_dir=.
1252: for ac_exec_ext in '' $ac_executable_extensions; do
1253: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1254: ac_cv_prog_CC="${ac_tool_prefix}cc"
1255: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1256: break 2
1257: fi
1258: done
1259: done
1260:
1261: fi
1262: fi
1263: CC=$ac_cv_prog_CC
1264: if test -n "$CC"; then
1265: echo "$as_me:$LINENO: result: $CC" >&5
1266: echo "${ECHO_T}$CC" >&6
1267: else
1268: echo "$as_me:$LINENO: result: no" >&5
1269: echo "${ECHO_T}no" >&6
1270: fi
1271:
1272: fi
1273: if test -z "$ac_cv_prog_CC"; then
1274: ac_ct_CC=$CC
1275: # Extract the first word of "cc", so it can be a program name with args.
1276: set dummy cc; ac_word=$2
1277: echo "$as_me:$LINENO: checking for $ac_word" >&5
1278: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1279: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1280: echo $ECHO_N "(cached) $ECHO_C" >&6
1281: else
1282: if test -n "$ac_ct_CC"; then
1283: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1284: else
1285: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1286: for as_dir in $PATH
1287: do
1288: IFS=$as_save_IFS
1289: test -z "$as_dir" && as_dir=.
1290: for ac_exec_ext in '' $ac_executable_extensions; do
1291: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1292: ac_cv_prog_ac_ct_CC="cc"
1293: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1294: break 2
1295: fi
1296: done
1297: done
1298:
1299: fi
1300: fi
1301: ac_ct_CC=$ac_cv_prog_ac_ct_CC
1302: if test -n "$ac_ct_CC"; then
1303: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1304: echo "${ECHO_T}$ac_ct_CC" >&6
1305: else
1306: echo "$as_me:$LINENO: result: no" >&5
1307: echo "${ECHO_T}no" >&6
1308: fi
1309:
1310: CC=$ac_ct_CC
1311: else
1312: CC="$ac_cv_prog_CC"
1313: fi
1314:
1315: fi
1316: if test -z "$CC"; then
1317: # Extract the first word of "cc", so it can be a program name with args.
1318: set dummy cc; ac_word=$2
1319: echo "$as_me:$LINENO: checking for $ac_word" >&5
1320: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1321: if test "${ac_cv_prog_CC+set}" = set; then
1322: echo $ECHO_N "(cached) $ECHO_C" >&6
1323: else
1324: if test -n "$CC"; then
1325: ac_cv_prog_CC="$CC" # Let the user override the test.
1326: else
1327: ac_prog_rejected=no
1328: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1329: for as_dir in $PATH
1330: do
1331: IFS=$as_save_IFS
1332: test -z "$as_dir" && as_dir=.
1333: for ac_exec_ext in '' $ac_executable_extensions; do
1334: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1335: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1336: ac_prog_rejected=yes
1337: continue
1338: fi
1339: ac_cv_prog_CC="cc"
1340: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1341: break 2
1342: fi
1343: done
1344: done
1345:
1346: if test $ac_prog_rejected = yes; then
1347: # We found a bogon in the path, so make sure we never use it.
1348: set dummy $ac_cv_prog_CC
1349: shift
1350: if test $# != 0; then
1351: # We chose a different compiler from the bogus one.
1352: # However, it has the same basename, so the bogon will be chosen
1353: # first if we set CC to just the basename; use the full file name.
1354: shift
1355: set dummy "$as_dir/$ac_word" ${1+"$@"}
1356: shift
1357: ac_cv_prog_CC="$@"
1358: fi
1359: fi
1360: fi
1361: fi
1362: CC=$ac_cv_prog_CC
1363: if test -n "$CC"; then
1364: echo "$as_me:$LINENO: result: $CC" >&5
1365: echo "${ECHO_T}$CC" >&6
1366: else
1367: echo "$as_me:$LINENO: result: no" >&5
1368: echo "${ECHO_T}no" >&6
1369: fi
1370:
1371: fi
1372: if test -z "$CC"; then
1373: if test -n "$ac_tool_prefix"; then
1374: for ac_prog in cl
1375: do
1376: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1377: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1378: echo "$as_me:$LINENO: checking for $ac_word" >&5
1379: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1380: if test "${ac_cv_prog_CC+set}" = set; then
1381: echo $ECHO_N "(cached) $ECHO_C" >&6
1382: else
1383: if test -n "$CC"; then
1384: ac_cv_prog_CC="$CC" # Let the user override the test.
1385: else
1386: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1387: for as_dir in $PATH
1388: do
1389: IFS=$as_save_IFS
1390: test -z "$as_dir" && as_dir=.
1391: for ac_exec_ext in '' $ac_executable_extensions; do
1392: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1393: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1394: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1395: break 2
1396: fi
1397: done
1398: done
1399:
1400: fi
1401: fi
1402: CC=$ac_cv_prog_CC
1403: if test -n "$CC"; then
1404: echo "$as_me:$LINENO: result: $CC" >&5
1405: echo "${ECHO_T}$CC" >&6
1406: else
1407: echo "$as_me:$LINENO: result: no" >&5
1408: echo "${ECHO_T}no" >&6
1409: fi
1410:
1411: test -n "$CC" && break
1412: done
1413: fi
1414: if test -z "$CC"; then
1415: ac_ct_CC=$CC
1416: for ac_prog in cl
1417: do
1418: # Extract the first word of "$ac_prog", so it can be a program name with args.
1419: set dummy $ac_prog; ac_word=$2
1420: echo "$as_me:$LINENO: checking for $ac_word" >&5
1421: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1422: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1423: echo $ECHO_N "(cached) $ECHO_C" >&6
1424: else
1425: if test -n "$ac_ct_CC"; then
1426: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1427: else
1428: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1429: for as_dir in $PATH
1430: do
1431: IFS=$as_save_IFS
1432: test -z "$as_dir" && as_dir=.
1433: for ac_exec_ext in '' $ac_executable_extensions; do
1434: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1435: ac_cv_prog_ac_ct_CC="$ac_prog"
1436: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1437: break 2
1438: fi
1439: done
1440: done
1441:
1442: fi
1443: fi
1444: ac_ct_CC=$ac_cv_prog_ac_ct_CC
1445: if test -n "$ac_ct_CC"; then
1446: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1447: echo "${ECHO_T}$ac_ct_CC" >&6
1448: else
1449: echo "$as_me:$LINENO: result: no" >&5
1450: echo "${ECHO_T}no" >&6
1451: fi
1452:
1453: test -n "$ac_ct_CC" && break
1454: done
1455:
1456: CC=$ac_ct_CC
1457: fi
1458:
1459: fi
1460:
1461:
1462: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1463: echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1464: { (exit 1); exit 1; }; }
1465:
1466: # Provide some information about the compiler.
1467: echo "$as_me:$LINENO:" \
1468: "checking for C compiler version" >&5
1469: ac_compiler=`set X $ac_compile; echo $2`
1470: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1471: (eval $ac_compiler --version </dev/null >&5) 2>&5
1472: ac_status=$?
1473: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1474: (exit $ac_status); }
1475: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1476: (eval $ac_compiler -v </dev/null >&5) 2>&5
1477: ac_status=$?
1478: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1479: (exit $ac_status); }
1480: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1481: (eval $ac_compiler -V </dev/null >&5) 2>&5
1482: ac_status=$?
1483: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1484: (exit $ac_status); }
1485:
1486: cat >conftest.$ac_ext <<_ACEOF
1487: #line $LINENO "configure"
1488: #include "confdefs.h"
1489:
1490: #ifdef F77_DUMMY_MAIN
1491: # ifdef __cplusplus
1492: extern "C"
1493: # endif
1494: int F77_DUMMY_MAIN() { return 1; }
1495: #endif
1496: int
1497: main ()
1498: {
1499:
1500: ;
1501: return 0;
1502: }
1503: _ACEOF
1504: ac_clean_files_save=$ac_clean_files
1505: ac_clean_files="$ac_clean_files a.out a.exe"
1506: # Try to create an executable without -o first, disregard a.out.
1507: # It will help us diagnose broken compilers, and finding out an intuition
1508: # of exeext.
1509: echo "$as_me:$LINENO: checking for C compiler default output" >&5
1510: echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1511: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1512: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1513: (eval $ac_link_default) 2>&5
1514: ac_status=$?
1515: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1516: (exit $ac_status); }; then
1517: # Find the output, starting from the most likely. This scheme is
1518: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1519: # resort.
1520:
1521: # Be careful to initialize this variable, since it used to be cached.
1522: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1523: ac_cv_exeext=
1524: for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1525: ls a.out conftest 2>/dev/null;
1526: ls a.* conftest.* 2>/dev/null`; do
1527: case $ac_file in
1528: *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1529: a.out ) # We found the default executable, but exeext='' is most
1530: # certainly right.
1531: break;;
1532: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1533: # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1534: export ac_cv_exeext
1535: break;;
1536: * ) break;;
1537: esac
1538: done
1539: else
1540: echo "$as_me: failed program was:" >&5
1541: cat conftest.$ac_ext >&5
1542: { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1543: echo "$as_me: error: C compiler cannot create executables" >&2;}
1544: { (exit 77); exit 77; }; }
1545: fi
1546:
1547: ac_exeext=$ac_cv_exeext
1548: echo "$as_me:$LINENO: result: $ac_file" >&5
1549: echo "${ECHO_T}$ac_file" >&6
1550:
1551: # Check the compiler produces executables we can run. If not, either
1552: # the compiler is broken, or we cross compile.
1553: echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1554: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1555: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1556: # If not cross compiling, check that we can run a simple program.
1557: if test "$cross_compiling" != yes; then
1558: if { ac_try='./$ac_file'
1559: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1560: (eval $ac_try) 2>&5
1561: ac_status=$?
1562: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1563: (exit $ac_status); }; }; then
1564: cross_compiling=no
1565: else
1566: if test "$cross_compiling" = maybe; then
1567: cross_compiling=yes
1568: else
1569: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1570: If you meant to cross compile, use \`--host'." >&5
1571: echo "$as_me: error: cannot run C compiled programs.
1572: If you meant to cross compile, use \`--host'." >&2;}
1573: { (exit 1); exit 1; }; }
1574: fi
1575: fi
1576: fi
1577: echo "$as_me:$LINENO: result: yes" >&5
1578: echo "${ECHO_T}yes" >&6
1579:
1580: rm -f a.out a.exe conftest$ac_cv_exeext
1581: ac_clean_files=$ac_clean_files_save
1582: # Check the compiler produces executables we can run. If not, either
1583: # the compiler is broken, or we cross compile.
1584: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1585: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1586: echo "$as_me:$LINENO: result: $cross_compiling" >&5
1587: echo "${ECHO_T}$cross_compiling" >&6
1588:
1589: echo "$as_me:$LINENO: checking for suffix of executables" >&5
1590: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1591: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1592: (eval $ac_link) 2>&5
1593: ac_status=$?
1594: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1595: (exit $ac_status); }; then
1596: # If both `conftest.exe' and `conftest' are `present' (well, observable)
1597: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1598: # work properly (i.e., refer to `conftest.exe'), while it won't with
1599: # `rm'.
1600: for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1601: case $ac_file in
1602: *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1603: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1604: export ac_cv_exeext
1605: break;;
1606: * ) break;;
1607: esac
1608: done
1609: else
1610: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1611: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1612: { (exit 1); exit 1; }; }
1613: fi
1614:
1615: rm -f conftest$ac_cv_exeext
1616: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1617: echo "${ECHO_T}$ac_cv_exeext" >&6
1618:
1619: rm -f conftest.$ac_ext
1620: EXEEXT=$ac_cv_exeext
1621: ac_exeext=$EXEEXT
1622: echo "$as_me:$LINENO: checking for suffix of object files" >&5
1623: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1624: if test "${ac_cv_objext+set}" = set; then
1625: echo $ECHO_N "(cached) $ECHO_C" >&6
1626: else
1627: cat >conftest.$ac_ext <<_ACEOF
1628: #line $LINENO "configure"
1629: #include "confdefs.h"
1630:
1631: #ifdef F77_DUMMY_MAIN
1632: # ifdef __cplusplus
1633: extern "C"
1634: # endif
1635: int F77_DUMMY_MAIN() { return 1; }
1636: #endif
1637: int
1638: main ()
1639: {
1640:
1641: ;
1642: return 0;
1643: }
1644: _ACEOF
1645: rm -f conftest.o conftest.obj
1646: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1647: (eval $ac_compile) 2>&5
1648: ac_status=$?
1649: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1650: (exit $ac_status); }; then
1651: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1652: case $ac_file in
1653: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1654: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1655: break;;
1656: esac
1657: done
1658: else
1659: echo "$as_me: failed program was:" >&5
1660: cat conftest.$ac_ext >&5
1661: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1662: echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1663: { (exit 1); exit 1; }; }
1664: fi
1665:
1666: rm -f conftest.$ac_cv_objext conftest.$ac_ext
1667: fi
1668: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1669: echo "${ECHO_T}$ac_cv_objext" >&6
1670: OBJEXT=$ac_cv_objext
1671: ac_objext=$OBJEXT
1672: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1673: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1674: if test "${ac_cv_c_compiler_gnu+set}" = set; then
1675: echo $ECHO_N "(cached) $ECHO_C" >&6
1676: else
1677: cat >conftest.$ac_ext <<_ACEOF
1678: #line $LINENO "configure"
1679: #include "confdefs.h"
1680:
1681: #ifdef F77_DUMMY_MAIN
1682: # ifdef __cplusplus
1683: extern "C"
1684: # endif
1685: int F77_DUMMY_MAIN() { return 1; }
1686: #endif
1687: int
1688: main ()
1689: {
1690: #ifndef __GNUC__
1691: choke me
1692: #endif
1693:
1694: ;
1695: return 0;
1696: }
1697: _ACEOF
1698: rm -f conftest.$ac_objext
1699: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1700: (eval $ac_compile) 2>&5
1701: ac_status=$?
1702: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1703: (exit $ac_status); } &&
1704: { ac_try='test -s conftest.$ac_objext'
1705: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1706: (eval $ac_try) 2>&5
1707: ac_status=$?
1708: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1709: (exit $ac_status); }; }; then
1710: ac_compiler_gnu=yes
1711: else
1712: echo "$as_me: failed program was:" >&5
1713: cat conftest.$ac_ext >&5
1714: ac_compiler_gnu=no
1715: fi
1716: rm -f conftest.$ac_objext conftest.$ac_ext
1717: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1718:
1719: fi
1720: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1721: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1722: GCC=`test $ac_compiler_gnu = yes && echo yes`
1723: ac_test_CFLAGS=${CFLAGS+set}
1724: ac_save_CFLAGS=$CFLAGS
1725: CFLAGS="-g"
1726: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1727: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1728: if test "${ac_cv_prog_cc_g+set}" = set; then
1729: echo $ECHO_N "(cached) $ECHO_C" >&6
1730: else
1731: cat >conftest.$ac_ext <<_ACEOF
1732: #line $LINENO "configure"
1733: #include "confdefs.h"
1734:
1735: #ifdef F77_DUMMY_MAIN
1736: # ifdef __cplusplus
1737: extern "C"
1738: # endif
1739: int F77_DUMMY_MAIN() { return 1; }
1740: #endif
1741: int
1742: main ()
1743: {
1744:
1745: ;
1746: return 0;
1747: }
1748: _ACEOF
1749: rm -f conftest.$ac_objext
1750: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1751: (eval $ac_compile) 2>&5
1752: ac_status=$?
1753: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1754: (exit $ac_status); } &&
1755: { ac_try='test -s conftest.$ac_objext'
1756: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1757: (eval $ac_try) 2>&5
1758: ac_status=$?
1759: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1760: (exit $ac_status); }; }; then
1761: ac_cv_prog_cc_g=yes
1762: else
1763: echo "$as_me: failed program was:" >&5
1764: cat conftest.$ac_ext >&5
1765: ac_cv_prog_cc_g=no
1766: fi
1767: rm -f conftest.$ac_objext conftest.$ac_ext
1768: fi
1769: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1770: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1771: if test "$ac_test_CFLAGS" = set; then
1772: CFLAGS=$ac_save_CFLAGS
1773: elif test $ac_cv_prog_cc_g = yes; then
1774: if test "$GCC" = yes; then
1775: CFLAGS="-g -O2"
1776: else
1777: CFLAGS="-g"
1778: fi
1779: else
1780: if test "$GCC" = yes; then
1781: CFLAGS="-O2"
1782: else
1783: CFLAGS=
1784: fi
1785: fi
1786: # Some people use a C++ compiler to compile C. Since we use `exit',
1787: # in C++ we need to declare it. In case someone uses the same compiler
1788: # for both compiling C and C++ we need to have the C++ compiler decide
1789: # the declaration of exit, since it's the most demanding environment.
1790: cat >conftest.$ac_ext <<_ACEOF
1791: #ifndef __cplusplus
1792: choke me
1793: #endif
1794: _ACEOF
1795: rm -f conftest.$ac_objext
1796: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1797: (eval $ac_compile) 2>&5
1798: ac_status=$?
1799: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1800: (exit $ac_status); } &&
1801: { ac_try='test -s conftest.$ac_objext'
1802: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1803: (eval $ac_try) 2>&5
1804: ac_status=$?
1805: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1806: (exit $ac_status); }; }; then
1807: for ac_declaration in \
1808: ''\
1809: '#include <stdlib.h>' \
1810: 'extern "C" void std::exit (int) throw (); using std::exit;' \
1811: 'extern "C" void std::exit (int); using std::exit;' \
1812: 'extern "C" void exit (int) throw ();' \
1813: 'extern "C" void exit (int);' \
1814: 'void exit (int);'
1815: do
1816: cat >conftest.$ac_ext <<_ACEOF
1817: #line $LINENO "configure"
1818: #include "confdefs.h"
1819: #include <stdlib.h>
1820: $ac_declaration
1821: #ifdef F77_DUMMY_MAIN
1822: # ifdef __cplusplus
1823: extern "C"
1824: # endif
1825: int F77_DUMMY_MAIN() { return 1; }
1826: #endif
1827: int
1828: main ()
1829: {
1830: exit (42);
1831: ;
1832: return 0;
1833: }
1834: _ACEOF
1835: rm -f conftest.$ac_objext
1836: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1837: (eval $ac_compile) 2>&5
1838: ac_status=$?
1839: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1840: (exit $ac_status); } &&
1841: { ac_try='test -s conftest.$ac_objext'
1842: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1843: (eval $ac_try) 2>&5
1844: ac_status=$?
1845: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846: (exit $ac_status); }; }; then
1847: :
1848: else
1849: echo "$as_me: failed program was:" >&5
1850: cat conftest.$ac_ext >&5
1851: continue
1852: fi
1853: rm -f conftest.$ac_objext conftest.$ac_ext
1854: cat >conftest.$ac_ext <<_ACEOF
1855: #line $LINENO "configure"
1856: #include "confdefs.h"
1857: $ac_declaration
1858: #ifdef F77_DUMMY_MAIN
1859: # ifdef __cplusplus
1860: extern "C"
1861: # endif
1862: int F77_DUMMY_MAIN() { return 1; }
1863: #endif
1864: int
1865: main ()
1866: {
1867: exit (42);
1868: ;
1869: return 0;
1870: }
1871: _ACEOF
1872: rm -f conftest.$ac_objext
1873: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1874: (eval $ac_compile) 2>&5
1875: ac_status=$?
1876: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877: (exit $ac_status); } &&
1878: { ac_try='test -s conftest.$ac_objext'
1879: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1880: (eval $ac_try) 2>&5
1881: ac_status=$?
1882: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883: (exit $ac_status); }; }; then
1884: break
1885: else
1886: echo "$as_me: failed program was:" >&5
1887: cat conftest.$ac_ext >&5
1888: fi
1889: rm -f conftest.$ac_objext conftest.$ac_ext
1890: done
1891: rm -f conftest*
1892: if test -n "$ac_declaration"; then
1893: echo '#ifdef __cplusplus' >>confdefs.h
1894: echo $ac_declaration >>confdefs.h
1895: echo '#endif' >>confdefs.h
1896: fi
1897:
1898: else
1899: echo "$as_me: failed program was:" >&5
1900: cat conftest.$ac_ext >&5
1901: fi
1902: rm -f conftest.$ac_objext conftest.$ac_ext
1903: ac_ext=c
1904: ac_cpp='$CPP $CPPFLAGS'
1905: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1906: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1907: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1908:
1.3 ! ohara 1909: ac_aux_dir=
! 1910: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
! 1911: if test -f $ac_dir/install-sh; then
! 1912: ac_aux_dir=$ac_dir
! 1913: ac_install_sh="$ac_aux_dir/install-sh -c"
! 1914: break
! 1915: elif test -f $ac_dir/install.sh; then
! 1916: ac_aux_dir=$ac_dir
! 1917: ac_install_sh="$ac_aux_dir/install.sh -c"
! 1918: break
! 1919: elif test -f $ac_dir/shtool; then
! 1920: ac_aux_dir=$ac_dir
! 1921: ac_install_sh="$ac_aux_dir/shtool install -c"
! 1922: break
! 1923: fi
! 1924: done
! 1925: if test -z "$ac_aux_dir"; then
! 1926: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
! 1927: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
! 1928: { (exit 1); exit 1; }; }
! 1929: fi
! 1930: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
! 1931: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
! 1932: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
! 1933:
! 1934: # Find a good install program. We prefer a C program (faster),
! 1935: # so one script is as good as another. But avoid the broken or
! 1936: # incompatible versions:
! 1937: # SysV /etc/install, /usr/sbin/install
! 1938: # SunOS /usr/etc/install
! 1939: # IRIX /sbin/install
! 1940: # AIX /bin/install
! 1941: # AmigaOS /C/install, which installs bootblocks on floppy discs
! 1942: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
! 1943: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
! 1944: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
! 1945: # ./install, which can be erroneously created by make from ./install.sh.
! 1946: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
! 1947: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
! 1948: if test -z "$INSTALL"; then
! 1949: if test "${ac_cv_path_install+set}" = set; then
! 1950: echo $ECHO_N "(cached) $ECHO_C" >&6
! 1951: else
! 1952: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 1953: for as_dir in $PATH
! 1954: do
! 1955: IFS=$as_save_IFS
! 1956: test -z "$as_dir" && as_dir=.
! 1957: # Account for people who put trailing slashes in PATH elements.
! 1958: case $as_dir/ in
! 1959: ./ | .// | /cC/* | \
! 1960: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
! 1961: /usr/ucb/* ) ;;
! 1962: *)
! 1963: # OSF1 and SCO ODT 3.0 have their own names for install.
! 1964: # Don't use installbsd from OSF since it installs stuff as root
! 1965: # by default.
! 1966: for ac_prog in ginstall scoinst install; do
! 1967: for ac_exec_ext in '' $ac_executable_extensions; do
! 1968: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
! 1969: if test $ac_prog = install &&
! 1970: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
! 1971: # AIX install. It has an incompatible calling convention.
! 1972: :
! 1973: elif test $ac_prog = install &&
! 1974: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
! 1975: # program-specific install script used by HP pwplus--don't use.
! 1976: :
! 1977: else
! 1978: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
! 1979: break 3
! 1980: fi
! 1981: fi
! 1982: done
! 1983: done
! 1984: ;;
! 1985: esac
! 1986: done
! 1987:
! 1988:
! 1989: fi
! 1990: if test "${ac_cv_path_install+set}" = set; then
! 1991: INSTALL=$ac_cv_path_install
! 1992: else
! 1993: # As a last resort, use the slow shell script. We don't cache a
! 1994: # path for INSTALL within a source directory, because that will
! 1995: # break other packages using the cache if that directory is
! 1996: # removed, or if the path is relative.
! 1997: INSTALL=$ac_install_sh
! 1998: fi
! 1999: fi
! 2000: echo "$as_me:$LINENO: result: $INSTALL" >&5
! 2001: echo "${ECHO_T}$INSTALL" >&6
! 2002:
! 2003: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
! 2004: # It thinks the first close brace ends the variable substitution.
! 2005: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
! 2006:
! 2007: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
! 2008:
! 2009: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
! 2010:
1.1 ohara 2011:
2012: ac_ext=c
2013: ac_cpp='$CPP $CPPFLAGS'
2014: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2015: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2016: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2017: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2018: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2019: # On Suns, sometimes $CPP names a directory.
2020: if test -n "$CPP" && test -d "$CPP"; then
2021: CPP=
2022: fi
2023: if test -z "$CPP"; then
2024: if test "${ac_cv_prog_CPP+set}" = set; then
2025: echo $ECHO_N "(cached) $ECHO_C" >&6
2026: else
2027: # Double quotes because CPP needs to be expanded
2028: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2029: do
2030: ac_preproc_ok=false
2031: for ac_c_preproc_warn_flag in '' yes
2032: do
2033: # Use a header file that comes with gcc, so configuring glibc
2034: # with a fresh cross-compiler works.
2035: # On the NeXT, cc -E runs the code through the compiler's parser,
2036: # not just through cpp. "Syntax error" is here to catch this case.
2037: cat >conftest.$ac_ext <<_ACEOF
2038: #line $LINENO "configure"
2039: #include "confdefs.h"
2040: #include <assert.h>
2041: Syntax error
2042: _ACEOF
2043: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2044: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2045: ac_status=$?
2046: egrep -v '^ *\+' conftest.er1 >conftest.err
2047: rm -f conftest.er1
2048: cat conftest.err >&5
2049: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050: (exit $ac_status); } >/dev/null; then
2051: if test -s conftest.err; then
2052: ac_cpp_err=$ac_c_preproc_warn_flag
2053: else
2054: ac_cpp_err=
2055: fi
2056: else
2057: ac_cpp_err=yes
2058: fi
2059: if test -z "$ac_cpp_err"; then
2060: :
2061: else
2062: echo "$as_me: failed program was:" >&5
2063: cat conftest.$ac_ext >&5
2064: # Broken: fails on valid input.
2065: continue
2066: fi
2067: rm -f conftest.err conftest.$ac_ext
2068:
2069: # OK, works on sane cases. Now check whether non-existent headers
2070: # can be detected and how.
2071: cat >conftest.$ac_ext <<_ACEOF
2072: #line $LINENO "configure"
2073: #include "confdefs.h"
2074: #include <ac_nonexistent.h>
2075: _ACEOF
2076: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2077: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2078: ac_status=$?
2079: egrep -v '^ *\+' conftest.er1 >conftest.err
2080: rm -f conftest.er1
2081: cat conftest.err >&5
2082: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083: (exit $ac_status); } >/dev/null; then
2084: if test -s conftest.err; then
2085: ac_cpp_err=$ac_c_preproc_warn_flag
2086: else
2087: ac_cpp_err=
2088: fi
2089: else
2090: ac_cpp_err=yes
2091: fi
2092: if test -z "$ac_cpp_err"; then
2093: # Broken: success on invalid input.
2094: continue
2095: else
2096: echo "$as_me: failed program was:" >&5
2097: cat conftest.$ac_ext >&5
2098: # Passes both tests.
2099: ac_preproc_ok=:
2100: break
2101: fi
2102: rm -f conftest.err conftest.$ac_ext
2103:
2104: done
2105: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2106: rm -f conftest.err conftest.$ac_ext
2107: if $ac_preproc_ok; then
2108: break
2109: fi
2110:
2111: done
2112: ac_cv_prog_CPP=$CPP
2113:
2114: fi
2115: CPP=$ac_cv_prog_CPP
2116: else
2117: ac_cv_prog_CPP=$CPP
2118: fi
2119: echo "$as_me:$LINENO: result: $CPP" >&5
2120: echo "${ECHO_T}$CPP" >&6
2121: ac_preproc_ok=false
2122: for ac_c_preproc_warn_flag in '' yes
2123: do
2124: # Use a header file that comes with gcc, so configuring glibc
2125: # with a fresh cross-compiler works.
2126: # On the NeXT, cc -E runs the code through the compiler's parser,
2127: # not just through cpp. "Syntax error" is here to catch this case.
2128: cat >conftest.$ac_ext <<_ACEOF
2129: #line $LINENO "configure"
2130: #include "confdefs.h"
2131: #include <assert.h>
2132: Syntax error
2133: _ACEOF
2134: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2135: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2136: ac_status=$?
2137: egrep -v '^ *\+' conftest.er1 >conftest.err
2138: rm -f conftest.er1
2139: cat conftest.err >&5
2140: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141: (exit $ac_status); } >/dev/null; then
2142: if test -s conftest.err; then
2143: ac_cpp_err=$ac_c_preproc_warn_flag
2144: else
2145: ac_cpp_err=
2146: fi
2147: else
2148: ac_cpp_err=yes
2149: fi
2150: if test -z "$ac_cpp_err"; then
2151: :
2152: else
2153: echo "$as_me: failed program was:" >&5
2154: cat conftest.$ac_ext >&5
2155: # Broken: fails on valid input.
2156: continue
2157: fi
2158: rm -f conftest.err conftest.$ac_ext
2159:
2160: # OK, works on sane cases. Now check whether non-existent headers
2161: # can be detected and how.
2162: cat >conftest.$ac_ext <<_ACEOF
2163: #line $LINENO "configure"
2164: #include "confdefs.h"
2165: #include <ac_nonexistent.h>
2166: _ACEOF
2167: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2168: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2169: ac_status=$?
2170: egrep -v '^ *\+' conftest.er1 >conftest.err
2171: rm -f conftest.er1
2172: cat conftest.err >&5
2173: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174: (exit $ac_status); } >/dev/null; then
2175: if test -s conftest.err; then
2176: ac_cpp_err=$ac_c_preproc_warn_flag
2177: else
2178: ac_cpp_err=
2179: fi
2180: else
2181: ac_cpp_err=yes
2182: fi
2183: if test -z "$ac_cpp_err"; then
2184: # Broken: success on invalid input.
2185: continue
2186: else
2187: echo "$as_me: failed program was:" >&5
2188: cat conftest.$ac_ext >&5
2189: # Passes both tests.
2190: ac_preproc_ok=:
2191: break
2192: fi
2193: rm -f conftest.err conftest.$ac_ext
2194:
2195: done
2196: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2197: rm -f conftest.err conftest.$ac_ext
2198: if $ac_preproc_ok; then
2199: :
2200: else
2201: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2202: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2203: { (exit 1); exit 1; }; }
2204: fi
2205:
2206: ac_ext=c
2207: ac_cpp='$CPP $CPPFLAGS'
2208: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2209: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2210: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2211:
2212:
2213: echo "$as_me:$LINENO: checking for X" >&5
2214: echo $ECHO_N "checking for X... $ECHO_C" >&6
2215:
2216:
2217: # Check whether --with-x or --without-x was given.
2218: if test "${with_x+set}" = set; then
2219: withval="$with_x"
2220:
2221: fi;
2222: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2223: if test "x$with_x" = xno; then
2224: # The user explicitly disabled X.
2225: have_x=disabled
2226: else
2227: if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2228: # Both variables are already set.
2229: have_x=yes
2230: else
2231: if test "${ac_cv_have_x+set}" = set; then
2232: echo $ECHO_N "(cached) $ECHO_C" >&6
2233: else
2234: # One or both of the vars are not set, and there is no cached value.
2235: ac_x_includes=no ac_x_libraries=no
2236: rm -fr conftest.dir
2237: if mkdir conftest.dir; then
2238: cd conftest.dir
2239: # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2240: cat >Imakefile <<'_ACEOF'
2241: acfindx:
2242: @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2243: _ACEOF
2244: if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2245: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2246: eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2247: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2248: for ac_extension in a so sl; do
2249: if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2250: test -f $ac_im_libdir/libX11.$ac_extension; then
2251: ac_im_usrlibdir=$ac_im_libdir; break
2252: fi
2253: done
2254: # Screen out bogus values from the imake configuration. They are
2255: # bogus both because they are the default anyway, and because
2256: # using them would break gcc on systems where it needs fixed includes.
2257: case $ac_im_incroot in
2258: /usr/include) ;;
2259: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2260: esac
2261: case $ac_im_usrlibdir in
2262: /usr/lib | /lib) ;;
2263: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2264: esac
2265: fi
2266: cd ..
2267: rm -fr conftest.dir
2268: fi
2269:
2270: # Standard set of common directories for X headers.
2271: # Check X11 before X11Rn because it is often a symlink to the current release.
2272: ac_x_header_dirs='
2273: /usr/X11/include
2274: /usr/X11R6/include
2275: /usr/X11R5/include
2276: /usr/X11R4/include
2277:
2278: /usr/include/X11
2279: /usr/include/X11R6
2280: /usr/include/X11R5
2281: /usr/include/X11R4
2282:
2283: /usr/local/X11/include
2284: /usr/local/X11R6/include
2285: /usr/local/X11R5/include
2286: /usr/local/X11R4/include
2287:
2288: /usr/local/include/X11
2289: /usr/local/include/X11R6
2290: /usr/local/include/X11R5
2291: /usr/local/include/X11R4
2292:
2293: /usr/X386/include
2294: /usr/x386/include
2295: /usr/XFree86/include/X11
2296:
2297: /usr/include
2298: /usr/local/include
2299: /usr/unsupported/include
2300: /usr/athena/include
2301: /usr/local/x11r5/include
2302: /usr/lpp/Xamples/include
2303:
2304: /usr/openwin/include
2305: /usr/openwin/share/include'
2306:
2307: if test "$ac_x_includes" = no; then
2308: # Guess where to find include files, by looking for Intrinsic.h.
2309: # First, try using that file with no special directory specified.
2310: cat >conftest.$ac_ext <<_ACEOF
2311: #line $LINENO "configure"
2312: #include "confdefs.h"
2313: #include <X11/Intrinsic.h>
2314: _ACEOF
2315: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2316: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2317: ac_status=$?
2318: egrep -v '^ *\+' conftest.er1 >conftest.err
2319: rm -f conftest.er1
2320: cat conftest.err >&5
2321: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322: (exit $ac_status); } >/dev/null; then
2323: if test -s conftest.err; then
2324: ac_cpp_err=$ac_c_preproc_warn_flag
2325: else
2326: ac_cpp_err=
2327: fi
2328: else
2329: ac_cpp_err=yes
2330: fi
2331: if test -z "$ac_cpp_err"; then
2332: # We can compile using X headers with no special include directory.
2333: ac_x_includes=
2334: else
2335: echo "$as_me: failed program was:" >&5
2336: cat conftest.$ac_ext >&5
2337: for ac_dir in $ac_x_header_dirs; do
2338: if test -r "$ac_dir/X11/Intrinsic.h"; then
2339: ac_x_includes=$ac_dir
2340: break
2341: fi
2342: done
2343: fi
2344: rm -f conftest.err conftest.$ac_ext
2345: fi # $ac_x_includes = no
2346:
2347: if test "$ac_x_libraries" = no; then
2348: # Check for the libraries.
2349: # See if we find them without any special options.
2350: # Don't add to $LIBS permanently.
2351: ac_save_LIBS=$LIBS
2352: LIBS="-lXt $LIBS"
2353: cat >conftest.$ac_ext <<_ACEOF
2354: #line $LINENO "configure"
2355: #include "confdefs.h"
2356: #include <X11/Intrinsic.h>
2357: #ifdef F77_DUMMY_MAIN
2358: # ifdef __cplusplus
2359: extern "C"
2360: # endif
2361: int F77_DUMMY_MAIN() { return 1; }
2362: #endif
2363: int
2364: main ()
2365: {
2366: XtMalloc (0)
2367: ;
2368: return 0;
2369: }
2370: _ACEOF
2371: rm -f conftest.$ac_objext conftest$ac_exeext
2372: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2373: (eval $ac_link) 2>&5
2374: ac_status=$?
2375: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376: (exit $ac_status); } &&
2377: { ac_try='test -s conftest$ac_exeext'
2378: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379: (eval $ac_try) 2>&5
2380: ac_status=$?
2381: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382: (exit $ac_status); }; }; then
2383: LIBS=$ac_save_LIBS
2384: # We can link X programs with no special library path.
2385: ac_x_libraries=
2386: else
2387: echo "$as_me: failed program was:" >&5
2388: cat conftest.$ac_ext >&5
2389: LIBS=$ac_save_LIBS
2390: for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2391: do
2392: # Don't even attempt the hair of trying to link an X program!
2393: for ac_extension in a so sl; do
2394: if test -r $ac_dir/libXt.$ac_extension; then
2395: ac_x_libraries=$ac_dir
2396: break 2
2397: fi
2398: done
2399: done
2400: fi
2401: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2402: fi # $ac_x_libraries = no
2403:
2404: if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2405: # Didn't find X anywhere. Cache the known absence of X.
2406: ac_cv_have_x="have_x=no"
2407: else
2408: # Record where we found X for the cache.
2409: ac_cv_have_x="have_x=yes \
2410: ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2411: fi
2412: fi
2413:
2414: fi
2415: eval "$ac_cv_have_x"
2416: fi # $with_x != no
2417:
2418: if test "$have_x" != yes; then
2419: echo "$as_me:$LINENO: result: $have_x" >&5
2420: echo "${ECHO_T}$have_x" >&6
2421: no_x=yes
2422: else
2423: # If each of the values was on the command line, it overrides each guess.
2424: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2425: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2426: # Update the cache value to reflect the command line values.
2427: ac_cv_have_x="have_x=yes \
2428: ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2429: echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2430: echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2431: fi
2432:
2433: if test "$no_x" = yes; then
2434: # Not all programs may use this symbol, but it does not hurt to define it.
2435:
2436: cat >>confdefs.h <<\_ACEOF
2437: #define X_DISPLAY_MISSING 1
2438: _ACEOF
2439:
2440: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2441: else
2442: if test -n "$x_includes"; then
2443: X_CFLAGS="$X_CFLAGS -I$x_includes"
2444: fi
2445:
2446: # It would also be nice to do this for all -L options, not just this one.
2447: if test -n "$x_libraries"; then
2448: X_LIBS="$X_LIBS -L$x_libraries"
2449: # For Solaris; some versions of Sun CC require a space after -R and
2450: # others require no space. Words are not sufficient . . . .
2451: case `(uname -sr) 2>/dev/null` in
2452: "SunOS 5"*)
2453: echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2454: echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2455: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2456: cat >conftest.$ac_ext <<_ACEOF
2457: #line $LINENO "configure"
2458: #include "confdefs.h"
2459:
2460: #ifdef F77_DUMMY_MAIN
2461: # ifdef __cplusplus
2462: extern "C"
2463: # endif
2464: int F77_DUMMY_MAIN() { return 1; }
2465: #endif
2466: int
2467: main ()
2468: {
2469:
2470: ;
2471: return 0;
2472: }
2473: _ACEOF
2474: rm -f conftest.$ac_objext conftest$ac_exeext
2475: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2476: (eval $ac_link) 2>&5
2477: ac_status=$?
2478: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479: (exit $ac_status); } &&
2480: { ac_try='test -s conftest$ac_exeext'
2481: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482: (eval $ac_try) 2>&5
2483: ac_status=$?
2484: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485: (exit $ac_status); }; }; then
2486: ac_R_nospace=yes
2487: else
2488: echo "$as_me: failed program was:" >&5
2489: cat conftest.$ac_ext >&5
2490: ac_R_nospace=no
2491: fi
2492: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2493: if test $ac_R_nospace = yes; then
2494: echo "$as_me:$LINENO: result: no" >&5
2495: echo "${ECHO_T}no" >&6
2496: X_LIBS="$X_LIBS -R$x_libraries"
2497: else
2498: LIBS="$ac_xsave_LIBS -R $x_libraries"
2499: cat >conftest.$ac_ext <<_ACEOF
2500: #line $LINENO "configure"
2501: #include "confdefs.h"
2502:
2503: #ifdef F77_DUMMY_MAIN
2504: # ifdef __cplusplus
2505: extern "C"
2506: # endif
2507: int F77_DUMMY_MAIN() { return 1; }
2508: #endif
2509: int
2510: main ()
2511: {
2512:
2513: ;
2514: return 0;
2515: }
2516: _ACEOF
2517: rm -f conftest.$ac_objext conftest$ac_exeext
2518: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2519: (eval $ac_link) 2>&5
2520: ac_status=$?
2521: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522: (exit $ac_status); } &&
2523: { ac_try='test -s conftest$ac_exeext'
2524: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2525: (eval $ac_try) 2>&5
2526: ac_status=$?
2527: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528: (exit $ac_status); }; }; then
2529: ac_R_space=yes
2530: else
2531: echo "$as_me: failed program was:" >&5
2532: cat conftest.$ac_ext >&5
2533: ac_R_space=no
2534: fi
2535: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2536: if test $ac_R_space = yes; then
2537: echo "$as_me:$LINENO: result: yes" >&5
2538: echo "${ECHO_T}yes" >&6
2539: X_LIBS="$X_LIBS -R $x_libraries"
2540: else
2541: echo "$as_me:$LINENO: result: neither works" >&5
2542: echo "${ECHO_T}neither works" >&6
2543: fi
2544: fi
2545: LIBS=$ac_xsave_LIBS
2546: esac
2547: fi
2548:
2549: # Check for system-dependent libraries X programs must link with.
2550: # Do this before checking for the system-independent R6 libraries
2551: # (-lICE), since we may need -lsocket or whatever for X linking.
2552:
2553: if test "$ISC" = yes; then
2554: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2555: else
2556: # Martyn Johnson says this is needed for Ultrix, if the X
2557: # libraries were built with DECnet support. And Karl Berry says
2558: # the Alpha needs dnet_stub (dnet does not exist).
2559: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2560: cat >conftest.$ac_ext <<_ACEOF
2561: #line $LINENO "configure"
2562: #include "confdefs.h"
2563:
2564: /* Override any gcc2 internal prototype to avoid an error. */
2565: #ifdef __cplusplus
2566: extern "C"
2567: #endif
2568: /* We use char because int might match the return type of a gcc2
2569: builtin and then its argument prototype would still apply. */
2570: char XOpenDisplay ();
2571: #ifdef F77_DUMMY_MAIN
2572: # ifdef __cplusplus
2573: extern "C"
2574: # endif
2575: int F77_DUMMY_MAIN() { return 1; }
2576: #endif
2577: int
2578: main ()
2579: {
2580: XOpenDisplay ();
2581: ;
2582: return 0;
2583: }
2584: _ACEOF
2585: rm -f conftest.$ac_objext conftest$ac_exeext
2586: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2587: (eval $ac_link) 2>&5
2588: ac_status=$?
2589: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590: (exit $ac_status); } &&
2591: { ac_try='test -s conftest$ac_exeext'
2592: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593: (eval $ac_try) 2>&5
2594: ac_status=$?
2595: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596: (exit $ac_status); }; }; then
2597: :
2598: else
2599: echo "$as_me: failed program was:" >&5
2600: cat conftest.$ac_ext >&5
2601: echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2602: echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2603: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2604: echo $ECHO_N "(cached) $ECHO_C" >&6
2605: else
2606: ac_check_lib_save_LIBS=$LIBS
2607: LIBS="-ldnet $LIBS"
2608: cat >conftest.$ac_ext <<_ACEOF
2609: #line $LINENO "configure"
2610: #include "confdefs.h"
2611:
2612: /* Override any gcc2 internal prototype to avoid an error. */
2613: #ifdef __cplusplus
2614: extern "C"
2615: #endif
2616: /* We use char because int might match the return type of a gcc2
2617: builtin and then its argument prototype would still apply. */
2618: char dnet_ntoa ();
2619: #ifdef F77_DUMMY_MAIN
2620: # ifdef __cplusplus
2621: extern "C"
2622: # endif
2623: int F77_DUMMY_MAIN() { return 1; }
2624: #endif
2625: int
2626: main ()
2627: {
2628: dnet_ntoa ();
2629: ;
2630: return 0;
2631: }
2632: _ACEOF
2633: rm -f conftest.$ac_objext conftest$ac_exeext
2634: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2635: (eval $ac_link) 2>&5
2636: ac_status=$?
2637: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638: (exit $ac_status); } &&
2639: { ac_try='test -s conftest$ac_exeext'
2640: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641: (eval $ac_try) 2>&5
2642: ac_status=$?
2643: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644: (exit $ac_status); }; }; then
2645: ac_cv_lib_dnet_dnet_ntoa=yes
2646: else
2647: echo "$as_me: failed program was:" >&5
2648: cat conftest.$ac_ext >&5
2649: ac_cv_lib_dnet_dnet_ntoa=no
2650: fi
2651: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2652: LIBS=$ac_check_lib_save_LIBS
2653: fi
2654: echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
2655: echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2656: if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
2657: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2658: fi
2659:
2660: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2661: echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
2662: echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2663: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2664: echo $ECHO_N "(cached) $ECHO_C" >&6
2665: else
2666: ac_check_lib_save_LIBS=$LIBS
2667: LIBS="-ldnet_stub $LIBS"
2668: cat >conftest.$ac_ext <<_ACEOF
2669: #line $LINENO "configure"
2670: #include "confdefs.h"
2671:
2672: /* Override any gcc2 internal prototype to avoid an error. */
2673: #ifdef __cplusplus
2674: extern "C"
2675: #endif
2676: /* We use char because int might match the return type of a gcc2
2677: builtin and then its argument prototype would still apply. */
2678: char dnet_ntoa ();
2679: #ifdef F77_DUMMY_MAIN
2680: # ifdef __cplusplus
2681: extern "C"
2682: # endif
2683: int F77_DUMMY_MAIN() { return 1; }
2684: #endif
2685: int
2686: main ()
2687: {
2688: dnet_ntoa ();
2689: ;
2690: return 0;
2691: }
2692: _ACEOF
2693: rm -f conftest.$ac_objext conftest$ac_exeext
2694: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2695: (eval $ac_link) 2>&5
2696: ac_status=$?
2697: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698: (exit $ac_status); } &&
2699: { ac_try='test -s conftest$ac_exeext'
2700: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701: (eval $ac_try) 2>&5
2702: ac_status=$?
2703: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704: (exit $ac_status); }; }; then
2705: ac_cv_lib_dnet_stub_dnet_ntoa=yes
2706: else
2707: echo "$as_me: failed program was:" >&5
2708: cat conftest.$ac_ext >&5
2709: ac_cv_lib_dnet_stub_dnet_ntoa=no
2710: fi
2711: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2712: LIBS=$ac_check_lib_save_LIBS
2713: fi
2714: echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
2715: echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
2716: if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
2717: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2718: fi
2719:
2720: fi
2721: fi
2722: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2723: LIBS="$ac_xsave_LIBS"
2724:
2725: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2726: # to get the SysV transport functions.
2727: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
2728: # needs -lnsl.
2729: # The nsl library prevents programs from opening the X display
2730: # on Irix 5.2, according to T.E. Dickey.
2731: # The functions gethostbyname, getservbyname, and inet_addr are
2732: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
2733: echo "$as_me:$LINENO: checking for gethostbyname" >&5
2734: echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2735: if test "${ac_cv_func_gethostbyname+set}" = set; then
2736: echo $ECHO_N "(cached) $ECHO_C" >&6
2737: else
2738: cat >conftest.$ac_ext <<_ACEOF
2739: #line $LINENO "configure"
2740: #include "confdefs.h"
2741: /* System header to define __stub macros and hopefully few prototypes,
2742: which can conflict with char gethostbyname (); below. */
2743: #include <assert.h>
2744: /* Override any gcc2 internal prototype to avoid an error. */
2745: #ifdef __cplusplus
2746: extern "C"
2747: #endif
2748: /* We use char because int might match the return type of a gcc2
2749: builtin and then its argument prototype would still apply. */
2750: char gethostbyname ();
2751: char (*f) ();
2752:
2753: #ifdef F77_DUMMY_MAIN
2754: # ifdef __cplusplus
2755: extern "C"
2756: # endif
2757: int F77_DUMMY_MAIN() { return 1; }
2758: #endif
2759: int
2760: main ()
2761: {
2762: /* The GNU C library defines this for functions which it implements
2763: to always fail with ENOSYS. Some functions are actually named
2764: something starting with __ and the normal name is an alias. */
2765: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2766: choke me
2767: #else
2768: f = gethostbyname;
2769: #endif
2770:
2771: ;
2772: return 0;
2773: }
2774: _ACEOF
2775: rm -f conftest.$ac_objext conftest$ac_exeext
2776: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2777: (eval $ac_link) 2>&5
2778: ac_status=$?
2779: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780: (exit $ac_status); } &&
2781: { ac_try='test -s conftest$ac_exeext'
2782: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783: (eval $ac_try) 2>&5
2784: ac_status=$?
2785: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786: (exit $ac_status); }; }; then
2787: ac_cv_func_gethostbyname=yes
2788: else
2789: echo "$as_me: failed program was:" >&5
2790: cat conftest.$ac_ext >&5
2791: ac_cv_func_gethostbyname=no
2792: fi
2793: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2794: fi
2795: echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2796: echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2797:
2798: if test $ac_cv_func_gethostbyname = no; then
2799: echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2800: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2801: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2802: echo $ECHO_N "(cached) $ECHO_C" >&6
2803: else
2804: ac_check_lib_save_LIBS=$LIBS
2805: LIBS="-lnsl $LIBS"
2806: cat >conftest.$ac_ext <<_ACEOF
2807: #line $LINENO "configure"
2808: #include "confdefs.h"
2809:
2810: /* Override any gcc2 internal prototype to avoid an error. */
2811: #ifdef __cplusplus
2812: extern "C"
2813: #endif
2814: /* We use char because int might match the return type of a gcc2
2815: builtin and then its argument prototype would still apply. */
2816: char gethostbyname ();
2817: #ifdef F77_DUMMY_MAIN
2818: # ifdef __cplusplus
2819: extern "C"
2820: # endif
2821: int F77_DUMMY_MAIN() { return 1; }
2822: #endif
2823: int
2824: main ()
2825: {
2826: gethostbyname ();
2827: ;
2828: return 0;
2829: }
2830: _ACEOF
2831: rm -f conftest.$ac_objext conftest$ac_exeext
2832: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2833: (eval $ac_link) 2>&5
2834: ac_status=$?
2835: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836: (exit $ac_status); } &&
2837: { ac_try='test -s conftest$ac_exeext'
2838: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839: (eval $ac_try) 2>&5
2840: ac_status=$?
2841: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842: (exit $ac_status); }; }; then
2843: ac_cv_lib_nsl_gethostbyname=yes
2844: else
2845: echo "$as_me: failed program was:" >&5
2846: cat conftest.$ac_ext >&5
2847: ac_cv_lib_nsl_gethostbyname=no
2848: fi
2849: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2850: LIBS=$ac_check_lib_save_LIBS
2851: fi
2852: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
2853: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2854: if test $ac_cv_lib_nsl_gethostbyname = yes; then
2855: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2856: fi
2857:
2858: if test $ac_cv_lib_nsl_gethostbyname = no; then
2859: echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
2860: echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
2861: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
2862: echo $ECHO_N "(cached) $ECHO_C" >&6
2863: else
2864: ac_check_lib_save_LIBS=$LIBS
2865: LIBS="-lbsd $LIBS"
2866: cat >conftest.$ac_ext <<_ACEOF
2867: #line $LINENO "configure"
2868: #include "confdefs.h"
2869:
2870: /* Override any gcc2 internal prototype to avoid an error. */
2871: #ifdef __cplusplus
2872: extern "C"
2873: #endif
2874: /* We use char because int might match the return type of a gcc2
2875: builtin and then its argument prototype would still apply. */
2876: char gethostbyname ();
2877: #ifdef F77_DUMMY_MAIN
2878: # ifdef __cplusplus
2879: extern "C"
2880: # endif
2881: int F77_DUMMY_MAIN() { return 1; }
2882: #endif
2883: int
2884: main ()
2885: {
2886: gethostbyname ();
2887: ;
2888: return 0;
2889: }
2890: _ACEOF
2891: rm -f conftest.$ac_objext conftest$ac_exeext
2892: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2893: (eval $ac_link) 2>&5
2894: ac_status=$?
2895: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896: (exit $ac_status); } &&
2897: { ac_try='test -s conftest$ac_exeext'
2898: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899: (eval $ac_try) 2>&5
2900: ac_status=$?
2901: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902: (exit $ac_status); }; }; then
2903: ac_cv_lib_bsd_gethostbyname=yes
2904: else
2905: echo "$as_me: failed program was:" >&5
2906: cat conftest.$ac_ext >&5
2907: ac_cv_lib_bsd_gethostbyname=no
2908: fi
2909: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2910: LIBS=$ac_check_lib_save_LIBS
2911: fi
2912: echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
2913: echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
2914: if test $ac_cv_lib_bsd_gethostbyname = yes; then
2915: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
2916: fi
2917:
2918: fi
2919: fi
2920:
2921: # lieder@skyler.mavd.honeywell.com says without -lsocket,
2922: # socket/setsockopt and other routines are undefined under SCO ODT
2923: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2924: # on later versions), says Simon Leinen: it contains gethostby*
2925: # variants that don't use the nameserver (or something). -lsocket
2926: # must be given before -lnsl if both are needed. We assume that
2927: # if connect needs -lnsl, so does gethostbyname.
2928: echo "$as_me:$LINENO: checking for connect" >&5
2929: echo $ECHO_N "checking for connect... $ECHO_C" >&6
2930: if test "${ac_cv_func_connect+set}" = set; then
2931: echo $ECHO_N "(cached) $ECHO_C" >&6
2932: else
2933: cat >conftest.$ac_ext <<_ACEOF
2934: #line $LINENO "configure"
2935: #include "confdefs.h"
2936: /* System header to define __stub macros and hopefully few prototypes,
2937: which can conflict with char connect (); below. */
2938: #include <assert.h>
2939: /* Override any gcc2 internal prototype to avoid an error. */
2940: #ifdef __cplusplus
2941: extern "C"
2942: #endif
2943: /* We use char because int might match the return type of a gcc2
2944: builtin and then its argument prototype would still apply. */
2945: char connect ();
2946: char (*f) ();
2947:
2948: #ifdef F77_DUMMY_MAIN
2949: # ifdef __cplusplus
2950: extern "C"
2951: # endif
2952: int F77_DUMMY_MAIN() { return 1; }
2953: #endif
2954: int
2955: main ()
2956: {
2957: /* The GNU C library defines this for functions which it implements
2958: to always fail with ENOSYS. Some functions are actually named
2959: something starting with __ and the normal name is an alias. */
2960: #if defined (__stub_connect) || defined (__stub___connect)
2961: choke me
2962: #else
2963: f = connect;
2964: #endif
2965:
2966: ;
2967: return 0;
2968: }
2969: _ACEOF
2970: rm -f conftest.$ac_objext conftest$ac_exeext
2971: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2972: (eval $ac_link) 2>&5
2973: ac_status=$?
2974: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975: (exit $ac_status); } &&
2976: { ac_try='test -s conftest$ac_exeext'
2977: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2978: (eval $ac_try) 2>&5
2979: ac_status=$?
2980: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981: (exit $ac_status); }; }; then
2982: ac_cv_func_connect=yes
2983: else
2984: echo "$as_me: failed program was:" >&5
2985: cat conftest.$ac_ext >&5
2986: ac_cv_func_connect=no
2987: fi
2988: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2989: fi
2990: echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
2991: echo "${ECHO_T}$ac_cv_func_connect" >&6
2992:
2993: if test $ac_cv_func_connect = no; then
2994: echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
2995: echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
2996: if test "${ac_cv_lib_socket_connect+set}" = set; then
2997: echo $ECHO_N "(cached) $ECHO_C" >&6
2998: else
2999: ac_check_lib_save_LIBS=$LIBS
3000: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3001: cat >conftest.$ac_ext <<_ACEOF
3002: #line $LINENO "configure"
3003: #include "confdefs.h"
3004:
3005: /* Override any gcc2 internal prototype to avoid an error. */
3006: #ifdef __cplusplus
3007: extern "C"
3008: #endif
3009: /* We use char because int might match the return type of a gcc2
3010: builtin and then its argument prototype would still apply. */
3011: char connect ();
3012: #ifdef F77_DUMMY_MAIN
3013: # ifdef __cplusplus
3014: extern "C"
3015: # endif
3016: int F77_DUMMY_MAIN() { return 1; }
3017: #endif
3018: int
3019: main ()
3020: {
3021: connect ();
3022: ;
3023: return 0;
3024: }
3025: _ACEOF
3026: rm -f conftest.$ac_objext conftest$ac_exeext
3027: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3028: (eval $ac_link) 2>&5
3029: ac_status=$?
3030: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031: (exit $ac_status); } &&
3032: { ac_try='test -s conftest$ac_exeext'
3033: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034: (eval $ac_try) 2>&5
3035: ac_status=$?
3036: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037: (exit $ac_status); }; }; then
3038: ac_cv_lib_socket_connect=yes
3039: else
3040: echo "$as_me: failed program was:" >&5
3041: cat conftest.$ac_ext >&5
3042: ac_cv_lib_socket_connect=no
3043: fi
3044: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3045: LIBS=$ac_check_lib_save_LIBS
3046: fi
3047: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3048: echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3049: if test $ac_cv_lib_socket_connect = yes; then
3050: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3051: fi
3052:
3053: fi
3054:
3055: # Guillermo Gomez says -lposix is necessary on A/UX.
3056: echo "$as_me:$LINENO: checking for remove" >&5
3057: echo $ECHO_N "checking for remove... $ECHO_C" >&6
3058: if test "${ac_cv_func_remove+set}" = set; then
3059: echo $ECHO_N "(cached) $ECHO_C" >&6
3060: else
3061: cat >conftest.$ac_ext <<_ACEOF
3062: #line $LINENO "configure"
3063: #include "confdefs.h"
3064: /* System header to define __stub macros and hopefully few prototypes,
3065: which can conflict with char remove (); below. */
3066: #include <assert.h>
3067: /* Override any gcc2 internal prototype to avoid an error. */
3068: #ifdef __cplusplus
3069: extern "C"
3070: #endif
3071: /* We use char because int might match the return type of a gcc2
3072: builtin and then its argument prototype would still apply. */
3073: char remove ();
3074: char (*f) ();
3075:
3076: #ifdef F77_DUMMY_MAIN
3077: # ifdef __cplusplus
3078: extern "C"
3079: # endif
3080: int F77_DUMMY_MAIN() { return 1; }
3081: #endif
3082: int
3083: main ()
3084: {
3085: /* The GNU C library defines this for functions which it implements
3086: to always fail with ENOSYS. Some functions are actually named
3087: something starting with __ and the normal name is an alias. */
3088: #if defined (__stub_remove) || defined (__stub___remove)
3089: choke me
3090: #else
3091: f = remove;
3092: #endif
3093:
3094: ;
3095: return 0;
3096: }
3097: _ACEOF
3098: rm -f conftest.$ac_objext conftest$ac_exeext
3099: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3100: (eval $ac_link) 2>&5
3101: ac_status=$?
3102: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103: (exit $ac_status); } &&
3104: { ac_try='test -s conftest$ac_exeext'
3105: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106: (eval $ac_try) 2>&5
3107: ac_status=$?
3108: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109: (exit $ac_status); }; }; then
3110: ac_cv_func_remove=yes
3111: else
3112: echo "$as_me: failed program was:" >&5
3113: cat conftest.$ac_ext >&5
3114: ac_cv_func_remove=no
3115: fi
3116: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3117: fi
3118: echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3119: echo "${ECHO_T}$ac_cv_func_remove" >&6
3120:
3121: if test $ac_cv_func_remove = no; then
3122: echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3123: echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3124: if test "${ac_cv_lib_posix_remove+set}" = set; then
3125: echo $ECHO_N "(cached) $ECHO_C" >&6
3126: else
3127: ac_check_lib_save_LIBS=$LIBS
3128: LIBS="-lposix $LIBS"
3129: cat >conftest.$ac_ext <<_ACEOF
3130: #line $LINENO "configure"
3131: #include "confdefs.h"
3132:
3133: /* Override any gcc2 internal prototype to avoid an error. */
3134: #ifdef __cplusplus
3135: extern "C"
3136: #endif
3137: /* We use char because int might match the return type of a gcc2
3138: builtin and then its argument prototype would still apply. */
3139: char remove ();
3140: #ifdef F77_DUMMY_MAIN
3141: # ifdef __cplusplus
3142: extern "C"
3143: # endif
3144: int F77_DUMMY_MAIN() { return 1; }
3145: #endif
3146: int
3147: main ()
3148: {
3149: remove ();
3150: ;
3151: return 0;
3152: }
3153: _ACEOF
3154: rm -f conftest.$ac_objext conftest$ac_exeext
3155: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3156: (eval $ac_link) 2>&5
3157: ac_status=$?
3158: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159: (exit $ac_status); } &&
3160: { ac_try='test -s conftest$ac_exeext'
3161: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162: (eval $ac_try) 2>&5
3163: ac_status=$?
3164: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165: (exit $ac_status); }; }; then
3166: ac_cv_lib_posix_remove=yes
3167: else
3168: echo "$as_me: failed program was:" >&5
3169: cat conftest.$ac_ext >&5
3170: ac_cv_lib_posix_remove=no
3171: fi
3172: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3173: LIBS=$ac_check_lib_save_LIBS
3174: fi
3175: echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3176: echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3177: if test $ac_cv_lib_posix_remove = yes; then
3178: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3179: fi
3180:
3181: fi
3182:
3183: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3184: echo "$as_me:$LINENO: checking for shmat" >&5
3185: echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3186: if test "${ac_cv_func_shmat+set}" = set; then
3187: echo $ECHO_N "(cached) $ECHO_C" >&6
3188: else
3189: cat >conftest.$ac_ext <<_ACEOF
3190: #line $LINENO "configure"
3191: #include "confdefs.h"
3192: /* System header to define __stub macros and hopefully few prototypes,
3193: which can conflict with char shmat (); below. */
3194: #include <assert.h>
3195: /* Override any gcc2 internal prototype to avoid an error. */
3196: #ifdef __cplusplus
3197: extern "C"
3198: #endif
3199: /* We use char because int might match the return type of a gcc2
3200: builtin and then its argument prototype would still apply. */
3201: char shmat ();
3202: char (*f) ();
3203:
3204: #ifdef F77_DUMMY_MAIN
3205: # ifdef __cplusplus
3206: extern "C"
3207: # endif
3208: int F77_DUMMY_MAIN() { return 1; }
3209: #endif
3210: int
3211: main ()
3212: {
3213: /* The GNU C library defines this for functions which it implements
3214: to always fail with ENOSYS. Some functions are actually named
3215: something starting with __ and the normal name is an alias. */
3216: #if defined (__stub_shmat) || defined (__stub___shmat)
3217: choke me
3218: #else
3219: f = shmat;
3220: #endif
3221:
3222: ;
3223: return 0;
3224: }
3225: _ACEOF
3226: rm -f conftest.$ac_objext conftest$ac_exeext
3227: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3228: (eval $ac_link) 2>&5
3229: ac_status=$?
3230: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231: (exit $ac_status); } &&
3232: { ac_try='test -s conftest$ac_exeext'
3233: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3234: (eval $ac_try) 2>&5
3235: ac_status=$?
3236: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237: (exit $ac_status); }; }; then
3238: ac_cv_func_shmat=yes
3239: else
3240: echo "$as_me: failed program was:" >&5
3241: cat conftest.$ac_ext >&5
3242: ac_cv_func_shmat=no
3243: fi
3244: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3245: fi
3246: echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3247: echo "${ECHO_T}$ac_cv_func_shmat" >&6
3248:
3249: if test $ac_cv_func_shmat = no; then
3250: echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3251: echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3252: if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3253: echo $ECHO_N "(cached) $ECHO_C" >&6
3254: else
3255: ac_check_lib_save_LIBS=$LIBS
3256: LIBS="-lipc $LIBS"
3257: cat >conftest.$ac_ext <<_ACEOF
3258: #line $LINENO "configure"
3259: #include "confdefs.h"
3260:
3261: /* Override any gcc2 internal prototype to avoid an error. */
3262: #ifdef __cplusplus
3263: extern "C"
3264: #endif
3265: /* We use char because int might match the return type of a gcc2
3266: builtin and then its argument prototype would still apply. */
3267: char shmat ();
3268: #ifdef F77_DUMMY_MAIN
3269: # ifdef __cplusplus
3270: extern "C"
3271: # endif
3272: int F77_DUMMY_MAIN() { return 1; }
3273: #endif
3274: int
3275: main ()
3276: {
3277: shmat ();
3278: ;
3279: return 0;
3280: }
3281: _ACEOF
3282: rm -f conftest.$ac_objext conftest$ac_exeext
3283: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3284: (eval $ac_link) 2>&5
3285: ac_status=$?
3286: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287: (exit $ac_status); } &&
3288: { ac_try='test -s conftest$ac_exeext'
3289: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290: (eval $ac_try) 2>&5
3291: ac_status=$?
3292: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293: (exit $ac_status); }; }; then
3294: ac_cv_lib_ipc_shmat=yes
3295: else
3296: echo "$as_me: failed program was:" >&5
3297: cat conftest.$ac_ext >&5
3298: ac_cv_lib_ipc_shmat=no
3299: fi
3300: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3301: LIBS=$ac_check_lib_save_LIBS
3302: fi
3303: echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3304: echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3305: if test $ac_cv_lib_ipc_shmat = yes; then
3306: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3307: fi
3308:
3309: fi
3310: fi
3311:
3312: # Check for libraries that X11R6 Xt/Xaw programs need.
3313: ac_save_LDFLAGS=$LDFLAGS
3314: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3315: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3316: # check for ICE first), but we must link in the order -lSM -lICE or
3317: # we get undefined symbols. So assume we have SM if we have ICE.
3318: # These have to be linked with before -lX11, unlike the other
3319: # libraries we check for below, so use a different variable.
3320: # John Interrante, Karl Berry
3321: echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3322: echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3323: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3324: echo $ECHO_N "(cached) $ECHO_C" >&6
3325: else
3326: ac_check_lib_save_LIBS=$LIBS
3327: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3328: cat >conftest.$ac_ext <<_ACEOF
3329: #line $LINENO "configure"
3330: #include "confdefs.h"
3331:
3332: /* Override any gcc2 internal prototype to avoid an error. */
3333: #ifdef __cplusplus
3334: extern "C"
3335: #endif
3336: /* We use char because int might match the return type of a gcc2
3337: builtin and then its argument prototype would still apply. */
3338: char IceConnectionNumber ();
3339: #ifdef F77_DUMMY_MAIN
3340: # ifdef __cplusplus
3341: extern "C"
3342: # endif
3343: int F77_DUMMY_MAIN() { return 1; }
3344: #endif
3345: int
3346: main ()
3347: {
3348: IceConnectionNumber ();
3349: ;
3350: return 0;
3351: }
3352: _ACEOF
3353: rm -f conftest.$ac_objext conftest$ac_exeext
3354: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3355: (eval $ac_link) 2>&5
3356: ac_status=$?
3357: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358: (exit $ac_status); } &&
3359: { ac_try='test -s conftest$ac_exeext'
3360: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361: (eval $ac_try) 2>&5
3362: ac_status=$?
3363: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364: (exit $ac_status); }; }; then
3365: ac_cv_lib_ICE_IceConnectionNumber=yes
3366: else
3367: echo "$as_me: failed program was:" >&5
3368: cat conftest.$ac_ext >&5
3369: ac_cv_lib_ICE_IceConnectionNumber=no
3370: fi
3371: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3372: LIBS=$ac_check_lib_save_LIBS
3373: fi
3374: echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3375: echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3376: if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3377: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3378: fi
3379:
3380: LDFLAGS=$ac_save_LDFLAGS
3381:
3382: fi
3383:
3384:
3385: echo "$as_me:$LINENO: checking for socket" >&5
3386: echo $ECHO_N "checking for socket... $ECHO_C" >&6
3387: if test "${ac_cv_func_socket+set}" = set; then
3388: echo $ECHO_N "(cached) $ECHO_C" >&6
3389: else
3390: cat >conftest.$ac_ext <<_ACEOF
3391: #line $LINENO "configure"
3392: #include "confdefs.h"
3393: /* System header to define __stub macros and hopefully few prototypes,
3394: which can conflict with char socket (); below. */
3395: #include <assert.h>
3396: /* Override any gcc2 internal prototype to avoid an error. */
3397: #ifdef __cplusplus
3398: extern "C"
3399: #endif
3400: /* We use char because int might match the return type of a gcc2
3401: builtin and then its argument prototype would still apply. */
3402: char socket ();
3403: char (*f) ();
3404:
3405: #ifdef F77_DUMMY_MAIN
3406: # ifdef __cplusplus
3407: extern "C"
3408: # endif
3409: int F77_DUMMY_MAIN() { return 1; }
3410: #endif
3411: int
3412: main ()
3413: {
3414: /* The GNU C library defines this for functions which it implements
3415: to always fail with ENOSYS. Some functions are actually named
3416: something starting with __ and the normal name is an alias. */
3417: #if defined (__stub_socket) || defined (__stub___socket)
3418: choke me
3419: #else
3420: f = socket;
3421: #endif
3422:
3423: ;
3424: return 0;
3425: }
3426: _ACEOF
3427: rm -f conftest.$ac_objext conftest$ac_exeext
3428: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3429: (eval $ac_link) 2>&5
3430: ac_status=$?
3431: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432: (exit $ac_status); } &&
3433: { ac_try='test -s conftest$ac_exeext'
3434: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435: (eval $ac_try) 2>&5
3436: ac_status=$?
3437: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438: (exit $ac_status); }; }; then
3439: ac_cv_func_socket=yes
3440: else
3441: echo "$as_me: failed program was:" >&5
3442: cat conftest.$ac_ext >&5
3443: ac_cv_func_socket=no
3444: fi
3445: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3446: fi
3447: echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3448: echo "${ECHO_T}$ac_cv_func_socket" >&6
3449:
3450: if test "$ac_cv_func_socket" = no ; then
3451:
3452: echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3453: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3454: if test "${ac_cv_lib_socket_socket+set}" = set; then
3455: echo $ECHO_N "(cached) $ECHO_C" >&6
3456: else
3457: ac_check_lib_save_LIBS=$LIBS
3458: LIBS="-lsocket $LIBS"
3459: cat >conftest.$ac_ext <<_ACEOF
3460: #line $LINENO "configure"
3461: #include "confdefs.h"
3462:
3463: /* Override any gcc2 internal prototype to avoid an error. */
3464: #ifdef __cplusplus
3465: extern "C"
3466: #endif
3467: /* We use char because int might match the return type of a gcc2
3468: builtin and then its argument prototype would still apply. */
3469: char socket ();
3470: #ifdef F77_DUMMY_MAIN
3471: # ifdef __cplusplus
3472: extern "C"
3473: # endif
3474: int F77_DUMMY_MAIN() { return 1; }
3475: #endif
3476: int
3477: main ()
3478: {
3479: socket ();
3480: ;
3481: return 0;
3482: }
3483: _ACEOF
3484: rm -f conftest.$ac_objext conftest$ac_exeext
3485: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3486: (eval $ac_link) 2>&5
3487: ac_status=$?
3488: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489: (exit $ac_status); } &&
3490: { ac_try='test -s conftest$ac_exeext'
3491: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492: (eval $ac_try) 2>&5
3493: ac_status=$?
3494: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495: (exit $ac_status); }; }; then
3496: ac_cv_lib_socket_socket=yes
3497: else
3498: echo "$as_me: failed program was:" >&5
3499: cat conftest.$ac_ext >&5
3500: ac_cv_lib_socket_socket=no
3501: fi
3502: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3503: LIBS=$ac_check_lib_save_LIBS
3504: fi
3505: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3506: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3507: if test $ac_cv_lib_socket_socket = yes; then
3508: cat >>confdefs.h <<_ACEOF
3509: #define HAVE_LIBSOCKET 1
3510: _ACEOF
3511:
3512: LIBS="-lsocket $LIBS"
3513:
3514: fi
3515:
3516: fi
3517: echo "$as_me:$LINENO: checking for gethostbyname" >&5
3518: echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3519: if test "${ac_cv_func_gethostbyname+set}" = set; then
3520: echo $ECHO_N "(cached) $ECHO_C" >&6
3521: else
3522: cat >conftest.$ac_ext <<_ACEOF
3523: #line $LINENO "configure"
3524: #include "confdefs.h"
3525: /* System header to define __stub macros and hopefully few prototypes,
3526: which can conflict with char gethostbyname (); below. */
3527: #include <assert.h>
3528: /* Override any gcc2 internal prototype to avoid an error. */
3529: #ifdef __cplusplus
3530: extern "C"
3531: #endif
3532: /* We use char because int might match the return type of a gcc2
3533: builtin and then its argument prototype would still apply. */
3534: char gethostbyname ();
3535: char (*f) ();
3536:
3537: #ifdef F77_DUMMY_MAIN
3538: # ifdef __cplusplus
3539: extern "C"
3540: # endif
3541: int F77_DUMMY_MAIN() { return 1; }
3542: #endif
3543: int
3544: main ()
3545: {
3546: /* The GNU C library defines this for functions which it implements
3547: to always fail with ENOSYS. Some functions are actually named
3548: something starting with __ and the normal name is an alias. */
3549: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3550: choke me
3551: #else
3552: f = gethostbyname;
3553: #endif
3554:
3555: ;
3556: return 0;
3557: }
3558: _ACEOF
3559: rm -f conftest.$ac_objext conftest$ac_exeext
3560: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3561: (eval $ac_link) 2>&5
3562: ac_status=$?
3563: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564: (exit $ac_status); } &&
3565: { ac_try='test -s conftest$ac_exeext'
3566: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567: (eval $ac_try) 2>&5
3568: ac_status=$?
3569: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570: (exit $ac_status); }; }; then
3571: ac_cv_func_gethostbyname=yes
3572: else
3573: echo "$as_me: failed program was:" >&5
3574: cat conftest.$ac_ext >&5
3575: ac_cv_func_gethostbyname=no
3576: fi
3577: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3578: fi
3579: echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3580: echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3581:
3582: if test "$ac_cv_func_gethostbyname" = no ; then
3583:
3584: echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3585: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3586: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3587: echo $ECHO_N "(cached) $ECHO_C" >&6
3588: else
3589: ac_check_lib_save_LIBS=$LIBS
3590: LIBS="-lnsl $LIBS"
3591: cat >conftest.$ac_ext <<_ACEOF
3592: #line $LINENO "configure"
3593: #include "confdefs.h"
3594:
3595: /* Override any gcc2 internal prototype to avoid an error. */
3596: #ifdef __cplusplus
3597: extern "C"
3598: #endif
3599: /* We use char because int might match the return type of a gcc2
3600: builtin and then its argument prototype would still apply. */
3601: char gethostbyname ();
3602: #ifdef F77_DUMMY_MAIN
3603: # ifdef __cplusplus
3604: extern "C"
3605: # endif
3606: int F77_DUMMY_MAIN() { return 1; }
3607: #endif
3608: int
3609: main ()
3610: {
3611: gethostbyname ();
3612: ;
3613: return 0;
3614: }
3615: _ACEOF
3616: rm -f conftest.$ac_objext conftest$ac_exeext
3617: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3618: (eval $ac_link) 2>&5
3619: ac_status=$?
3620: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621: (exit $ac_status); } &&
3622: { ac_try='test -s conftest$ac_exeext'
3623: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624: (eval $ac_try) 2>&5
3625: ac_status=$?
3626: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627: (exit $ac_status); }; }; then
3628: ac_cv_lib_nsl_gethostbyname=yes
3629: else
3630: echo "$as_me: failed program was:" >&5
3631: cat conftest.$ac_ext >&5
3632: ac_cv_lib_nsl_gethostbyname=no
3633: fi
3634: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3635: LIBS=$ac_check_lib_save_LIBS
3636: fi
3637: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3638: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3639: if test $ac_cv_lib_nsl_gethostbyname = yes; then
3640: cat >>confdefs.h <<_ACEOF
3641: #define HAVE_LIBNSL 1
3642: _ACEOF
3643:
3644: LIBS="-lnsl $LIBS"
3645:
3646: fi
3647:
3648: fi
1.2 takayama 3649: echo "$as_me:$LINENO: checking for dlopen" >&5
3650: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
3651: if test "${ac_cv_func_dlopen+set}" = set; then
3652: echo $ECHO_N "(cached) $ECHO_C" >&6
3653: else
3654: cat >conftest.$ac_ext <<_ACEOF
3655: #line $LINENO "configure"
3656: #include "confdefs.h"
3657: /* System header to define __stub macros and hopefully few prototypes,
3658: which can conflict with char dlopen (); below. */
3659: #include <assert.h>
3660: /* Override any gcc2 internal prototype to avoid an error. */
3661: #ifdef __cplusplus
3662: extern "C"
3663: #endif
3664: /* We use char because int might match the return type of a gcc2
3665: builtin and then its argument prototype would still apply. */
3666: char dlopen ();
3667: char (*f) ();
3668:
3669: #ifdef F77_DUMMY_MAIN
3670: # ifdef __cplusplus
3671: extern "C"
3672: # endif
3673: int F77_DUMMY_MAIN() { return 1; }
3674: #endif
3675: int
3676: main ()
3677: {
3678: /* The GNU C library defines this for functions which it implements
3679: to always fail with ENOSYS. Some functions are actually named
3680: something starting with __ and the normal name is an alias. */
3681: #if defined (__stub_dlopen) || defined (__stub___dlopen)
3682: choke me
3683: #else
3684: f = dlopen;
3685: #endif
3686:
3687: ;
3688: return 0;
3689: }
3690: _ACEOF
3691: rm -f conftest.$ac_objext conftest$ac_exeext
3692: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3693: (eval $ac_link) 2>&5
3694: ac_status=$?
3695: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696: (exit $ac_status); } &&
3697: { ac_try='test -s conftest$ac_exeext'
3698: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699: (eval $ac_try) 2>&5
3700: ac_status=$?
3701: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702: (exit $ac_status); }; }; then
3703: ac_cv_func_dlopen=yes
3704: else
3705: echo "$as_me: failed program was:" >&5
3706: cat conftest.$ac_ext >&5
3707: ac_cv_func_dlopen=no
3708: fi
3709: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3710: fi
3711: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
3712: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
3713:
3714: if test "$ac_cv_func_dlopen" = no ; then
3715:
3716: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
3717: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
3718: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3719: echo $ECHO_N "(cached) $ECHO_C" >&6
3720: else
3721: ac_check_lib_save_LIBS=$LIBS
3722: LIBS="-ldl $LIBS"
3723: cat >conftest.$ac_ext <<_ACEOF
3724: #line $LINENO "configure"
3725: #include "confdefs.h"
3726:
3727: /* Override any gcc2 internal prototype to avoid an error. */
3728: #ifdef __cplusplus
3729: extern "C"
3730: #endif
3731: /* We use char because int might match the return type of a gcc2
3732: builtin and then its argument prototype would still apply. */
3733: char dlopen ();
3734: #ifdef F77_DUMMY_MAIN
3735: # ifdef __cplusplus
3736: extern "C"
3737: # endif
3738: int F77_DUMMY_MAIN() { return 1; }
3739: #endif
3740: int
3741: main ()
3742: {
3743: dlopen ();
3744: ;
3745: return 0;
3746: }
3747: _ACEOF
3748: rm -f conftest.$ac_objext conftest$ac_exeext
3749: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3750: (eval $ac_link) 2>&5
3751: ac_status=$?
3752: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753: (exit $ac_status); } &&
3754: { ac_try='test -s conftest$ac_exeext'
3755: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756: (eval $ac_try) 2>&5
3757: ac_status=$?
3758: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759: (exit $ac_status); }; }; then
3760: ac_cv_lib_dl_dlopen=yes
3761: else
3762: echo "$as_me: failed program was:" >&5
3763: cat conftest.$ac_ext >&5
3764: ac_cv_lib_dl_dlopen=no
3765: fi
3766: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3767: LIBS=$ac_check_lib_save_LIBS
3768: fi
3769: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
3770: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
3771: if test $ac_cv_lib_dl_dlopen = yes; then
3772: cat >>confdefs.h <<_ACEOF
3773: #define HAVE_LIBDL 1
3774: _ACEOF
3775:
3776: LIBS="-ldl $LIBS"
3777:
3778: fi
3779:
3780: fi
1.1 ohara 3781:
3782: ac_config_files="$ac_config_files Makefile"
3783: cat >confcache <<\_ACEOF
3784: # This file is a shell script that caches the results of configure
3785: # tests run on this system so they can be shared between configure
3786: # scripts and configure runs, see configure's option --config-cache.
3787: # It is not useful on other systems. If it contains results you don't
3788: # want to keep, you may remove or edit it.
3789: #
3790: # config.status only pays attention to the cache file if you give it
3791: # the --recheck option to rerun configure.
3792: #
3793: # `ac_cv_env_foo' variables (set or unset) will be overriden when
3794: # loading this file, other *unset* `ac_cv_foo' will be assigned the
3795: # following values.
3796:
3797: _ACEOF
3798:
3799: # The following way of writing the cache mishandles newlines in values,
3800: # but we know of no workaround that is simple, portable, and efficient.
3801: # So, don't put newlines in cache variables' values.
3802: # Ultrix sh set writes to stderr and can't be redirected directly,
3803: # and sets the high bit in the cache file unless we assign to the vars.
3804: {
3805: (set) 2>&1 |
3806: case `(ac_space=' '; set | grep ac_space) 2>&1` in
3807: *ac_space=\ *)
3808: # `set' does not quote correctly, so add quotes (double-quote
3809: # substitution turns \\\\ into \\, and sed turns \\ into \).
3810: sed -n \
3811: "s/'/'\\\\''/g;
3812: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3813: ;;
3814: *)
3815: # `set' quotes correctly as required by POSIX, so do not add quotes.
3816: sed -n \
3817: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3818: ;;
3819: esac;
3820: } |
3821: sed '
3822: t clear
3823: : clear
3824: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3825: t end
3826: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3827: : end' >>confcache
3828: if cmp -s $cache_file confcache; then :; else
3829: if test -w $cache_file; then
3830: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3831: cat confcache >$cache_file
3832: else
3833: echo "not updating unwritable cache $cache_file"
3834: fi
3835: fi
3836: rm -f confcache
3837:
3838: test "x$prefix" = xNONE && prefix=$ac_default_prefix
3839: # Let make expand exec_prefix.
3840: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3841:
3842: # VPATH may cause trouble with some makes, so we remove $(srcdir),
3843: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3844: # trailing colons and then remove the whole line if VPATH becomes empty
3845: # (actually we leave an empty line to preserve line numbers).
3846: if test "x$srcdir" = x.; then
3847: ac_vpsub='/^[ ]*VPATH[ ]*=/{
3848: s/:*\$(srcdir):*/:/;
3849: s/:*\${srcdir}:*/:/;
3850: s/:*@srcdir@:*/:/;
3851: s/^\([^=]*=[ ]*\):*/\1/;
3852: s/:*$//;
3853: s/^[^=]*=[ ]*$//;
3854: }'
3855: fi
3856:
3857: # Transform confdefs.h into DEFS.
3858: # Protect against shell expansion while executing Makefile rules.
3859: # Protect against Makefile macro expansion.
3860: #
3861: # If the first sed substitution is executed (which looks for macros that
3862: # take arguments), then we branch to the quote section. Otherwise,
3863: # look for a macro that doesn't take arguments.
3864: cat >confdef2opt.sed <<\_ACEOF
3865: t clear
3866: : clear
3867: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3868: t quote
3869: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3870: t quote
3871: d
3872: : quote
3873: s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3874: s,\[,\\&,g
3875: s,\],\\&,g
3876: s,\$,$$,g
3877: p
3878: _ACEOF
3879: # We use echo to avoid assuming a particular line-breaking character.
3880: # The extra dot is to prevent the shell from consuming trailing
3881: # line-breaks from the sub-command output. A line-break within
3882: # single-quotes doesn't work because, if this script is created in a
3883: # platform that uses two characters for line-breaks (e.g., DOS), tr
3884: # would break.
3885: ac_LF_and_DOT=`echo; echo .`
3886: DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3887: rm -f confdef2opt.sed
3888:
3889:
3890:
3891: : ${CONFIG_STATUS=./config.status}
3892: ac_clean_files_save=$ac_clean_files
3893: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3894: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3895: echo "$as_me: creating $CONFIG_STATUS" >&6;}
3896: cat >$CONFIG_STATUS <<_ACEOF
3897: #! $SHELL
3898: # Generated by $as_me.
3899: # Run this file to recreate the current configuration.
3900: # Compiler output produced by configure, useful for debugging
3901: # configure, is in config.log if it exists.
3902:
3903: debug=false
3904: SHELL=\${CONFIG_SHELL-$SHELL}
3905: _ACEOF
3906:
3907: cat >>$CONFIG_STATUS <<\_ACEOF
3908:
3909: ## --------------------- ##
3910: ## M4sh Initialization. ##
3911: ## --------------------- ##
3912:
3913: # Be Bourne compatible
3914: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3915: emulate sh
3916: NULLCMD=:
3917: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3918: set -o posix
3919: fi
3920:
3921: # NLS nuisances.
3922: # Support unset when possible.
3923: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3924: as_unset=unset
3925: else
3926: as_unset=false
3927: fi
3928:
3929: (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
3930: { $as_unset LANG || test "${LANG+set}" != set; } ||
3931: { LANG=C; export LANG; }
3932: (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
3933: { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
3934: { LC_ALL=C; export LC_ALL; }
3935: (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
3936: { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
3937: { LC_TIME=C; export LC_TIME; }
3938: (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
3939: { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
3940: { LC_CTYPE=C; export LC_CTYPE; }
3941: (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
3942: { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
3943: { LANGUAGE=C; export LANGUAGE; }
3944: (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
3945: { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
3946: { LC_COLLATE=C; export LC_COLLATE; }
3947: (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
3948: { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
3949: { LC_NUMERIC=C; export LC_NUMERIC; }
3950: (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
3951: { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
3952: { LC_MESSAGES=C; export LC_MESSAGES; }
3953:
3954:
3955: # Name of the executable.
3956: as_me=`(basename "$0") 2>/dev/null ||
3957: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3958: X"$0" : 'X\(//\)$' \| \
3959: X"$0" : 'X\(/\)$' \| \
3960: . : '\(.\)' 2>/dev/null ||
3961: echo X/"$0" |
3962: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3963: /^X\/\(\/\/\)$/{ s//\1/; q; }
3964: /^X\/\(\/\).*/{ s//\1/; q; }
3965: s/.*/./; q'`
3966:
3967: # PATH needs CR, and LINENO needs CR and PATH.
3968: # Avoid depending upon Character Ranges.
3969: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3970: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3971: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3972: as_cr_digits='0123456789'
3973: as_cr_alnum=$as_cr_Letters$as_cr_digits
3974:
3975: # The user is always right.
3976: if test "${PATH_SEPARATOR+set}" != set; then
3977: echo "#! /bin/sh" >conftest.sh
3978: echo "exit 0" >>conftest.sh
3979: chmod +x conftest.sh
3980: if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
3981: PATH_SEPARATOR=';'
3982: else
3983: PATH_SEPARATOR=:
3984: fi
3985: rm -f conftest.sh
3986: fi
3987:
3988:
3989: as_lineno_1=$LINENO
3990: as_lineno_2=$LINENO
3991: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3992: test "x$as_lineno_1" != "x$as_lineno_2" &&
3993: test "x$as_lineno_3" = "x$as_lineno_2" || {
3994: # Find who we are. Look in the path if we contain no path at all
3995: # relative or not.
3996: case $0 in
3997: *[\\/]* ) as_myself=$0 ;;
3998: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999: for as_dir in $PATH
4000: do
4001: IFS=$as_save_IFS
4002: test -z "$as_dir" && as_dir=.
4003: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4004: done
4005:
4006: ;;
4007: esac
4008: # We did not find ourselves, most probably we were run as `sh COMMAND'
4009: # in which case we are not to be found in the path.
4010: if test "x$as_myself" = x; then
4011: as_myself=$0
4012: fi
4013: if test ! -f "$as_myself"; then
4014: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4015: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4016: { (exit 1); exit 1; }; }
4017: fi
4018: case $CONFIG_SHELL in
4019: '')
4020: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4022: do
4023: IFS=$as_save_IFS
4024: test -z "$as_dir" && as_dir=.
4025: for as_base in sh bash ksh sh5; do
4026: case $as_dir in
4027: /*)
4028: if ("$as_dir/$as_base" -c '
4029: as_lineno_1=$LINENO
4030: as_lineno_2=$LINENO
4031: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4032: test "x$as_lineno_1" != "x$as_lineno_2" &&
4033: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4034: CONFIG_SHELL=$as_dir/$as_base
4035: export CONFIG_SHELL
4036: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4037: fi;;
4038: esac
4039: done
4040: done
4041: ;;
4042: esac
4043:
4044: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4045: # uniformly replaced by the line number. The first 'sed' inserts a
4046: # line-number line before each line; the second 'sed' does the real
4047: # work. The second script uses 'N' to pair each line-number line
4048: # with the numbered line, and appends trailing '-' during
4049: # substitution so that $LINENO is not a special case at line end.
4050: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4051: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4052: sed '=' <$as_myself |
4053: sed '
4054: N
4055: s,$,-,
4056: : loop
4057: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4058: t loop
4059: s,-$,,
4060: s,^['$as_cr_digits']*\n,,
4061: ' >$as_me.lineno &&
4062: chmod +x $as_me.lineno ||
4063: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4064: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4065: { (exit 1); exit 1; }; }
4066:
4067: # Don't try to exec as it changes $[0], causing all sort of problems
4068: # (the dirname of $[0] is not the place where we might find the
4069: # original and so on. Autoconf is especially sensible to this).
4070: . ./$as_me.lineno
4071: # Exit status is that of the last command.
4072: exit
4073: }
4074:
4075:
4076: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4077: *c*,-n*) ECHO_N= ECHO_C='
4078: ' ECHO_T=' ' ;;
4079: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4080: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4081: esac
4082:
4083: if expr a : '\(a\)' >/dev/null 2>&1; then
4084: as_expr=expr
4085: else
4086: as_expr=false
4087: fi
4088:
4089: rm -f conf$$ conf$$.exe conf$$.file
4090: echo >conf$$.file
4091: if ln -s conf$$.file conf$$ 2>/dev/null; then
4092: # We could just check for DJGPP; but this test a) works b) is more generic
4093: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4094: if test -f conf$$.exe; then
4095: # Don't use ln at all; we don't have any links
4096: as_ln_s='cp -p'
4097: else
4098: as_ln_s='ln -s'
4099: fi
4100: elif ln conf$$.file conf$$ 2>/dev/null; then
4101: as_ln_s=ln
4102: else
4103: as_ln_s='cp -p'
4104: fi
4105: rm -f conf$$ conf$$.exe conf$$.file
4106:
4107: as_executable_p="test -f"
4108:
4109: # Sed expression to map a string onto a valid CPP name.
4110: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4111:
4112: # Sed expression to map a string onto a valid variable name.
4113: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4114:
4115:
4116: # IFS
4117: # We need space, tab and new line, in precisely that order.
4118: as_nl='
4119: '
4120: IFS=" $as_nl"
4121:
4122: # CDPATH.
4123: $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
4124:
4125: exec 6>&1
4126:
4127: # Open the log real soon, to keep \$[0] and so on meaningful, and to
4128: # report actual input values of CONFIG_FILES etc. instead of their
4129: # values after options handling. Logging --version etc. is OK.
4130: exec 5>>config.log
4131: {
4132: echo
4133: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4134: ## Running $as_me. ##
4135: _ASBOX
4136: } >&5
4137: cat >&5 <<_CSEOF
4138:
4139: This file was extended by $as_me, which was
4140: generated by GNU Autoconf 2.53. Invocation command line was
4141:
4142: CONFIG_FILES = $CONFIG_FILES
4143: CONFIG_HEADERS = $CONFIG_HEADERS
4144: CONFIG_LINKS = $CONFIG_LINKS
4145: CONFIG_COMMANDS = $CONFIG_COMMANDS
4146: $ $0 $@
4147:
4148: _CSEOF
4149: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4150: echo >&5
4151: _ACEOF
4152:
4153: # Files that config.status was made for.
4154: if test -n "$ac_config_files"; then
4155: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4156: fi
4157:
4158: if test -n "$ac_config_headers"; then
4159: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4160: fi
4161:
4162: if test -n "$ac_config_links"; then
4163: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4164: fi
4165:
4166: if test -n "$ac_config_commands"; then
4167: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4168: fi
4169:
4170: cat >>$CONFIG_STATUS <<\_ACEOF
4171:
4172: ac_cs_usage="\
4173: \`$as_me' instantiates files from templates according to the
4174: current configuration.
4175:
4176: Usage: $0 [OPTIONS] [FILE]...
4177:
4178: -h, --help print this help, then exit
4179: -V, --version print version number, then exit
4180: -d, --debug don't remove temporary files
4181: --recheck update $as_me by reconfiguring in the same conditions
4182: --file=FILE[:TEMPLATE]
4183: instantiate the configuration file FILE
4184:
4185: Configuration files:
4186: $config_files
4187:
4188: Report bugs to <bug-autoconf@gnu.org>."
4189: _ACEOF
4190:
4191: cat >>$CONFIG_STATUS <<_ACEOF
4192: ac_cs_version="\\
4193: config.status
4194: configured by $0, generated by GNU Autoconf 2.53,
4195: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4196:
4197: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4198: Free Software Foundation, Inc.
4199: This config.status script is free software; the Free Software Foundation
4200: gives unlimited permission to copy, distribute and modify it."
4201: srcdir=$srcdir
1.3 ! ohara 4202: INSTALL="$INSTALL"
1.1 ohara 4203: _ACEOF
4204:
4205: cat >>$CONFIG_STATUS <<\_ACEOF
4206: # If no file are specified by the user, then we need to provide default
4207: # value. By we need to know if files were specified by the user.
4208: ac_need_defaults=:
4209: while test $# != 0
4210: do
4211: case $1 in
4212: --*=*)
4213: ac_option=`expr "x$1" : 'x\([^=]*\)='`
4214: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4215: shift
4216: set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4217: shift
4218: ;;
4219: -*);;
4220: *) # This is not an option, so the user has probably given explicit
4221: # arguments.
4222: ac_need_defaults=false;;
4223: esac
4224:
4225: case $1 in
4226: # Handling of the options.
4227: _ACEOF
4228: cat >>$CONFIG_STATUS <<_ACEOF
4229: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4230: echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4231: exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4232: _ACEOF
4233: cat >>$CONFIG_STATUS <<\_ACEOF
4234: --version | --vers* | -V )
4235: echo "$ac_cs_version"; exit 0 ;;
4236: --he | --h)
4237: # Conflict between --help and --header
4238: { { echo "$as_me:$LINENO: error: ambiguous option: $1
4239: Try \`$0 --help' for more information." >&5
4240: echo "$as_me: error: ambiguous option: $1
4241: Try \`$0 --help' for more information." >&2;}
4242: { (exit 1); exit 1; }; };;
4243: --help | --hel | -h )
4244: echo "$ac_cs_usage"; exit 0 ;;
4245: --debug | --d* | -d )
4246: debug=: ;;
4247: --file | --fil | --fi | --f )
4248: shift
4249: CONFIG_FILES="$CONFIG_FILES $1"
4250: ac_need_defaults=false;;
4251: --header | --heade | --head | --hea )
4252: shift
4253: CONFIG_HEADERS="$CONFIG_HEADERS $1"
4254: ac_need_defaults=false;;
4255:
4256: # This is an error.
4257: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4258: Try \`$0 --help' for more information." >&5
4259: echo "$as_me: error: unrecognized option: $1
4260: Try \`$0 --help' for more information." >&2;}
4261: { (exit 1); exit 1; }; } ;;
4262:
4263: *) ac_config_targets="$ac_config_targets $1" ;;
4264:
4265: esac
4266: shift
4267: done
4268:
4269: _ACEOF
4270:
4271:
4272:
4273:
4274:
4275: cat >>$CONFIG_STATUS <<\_ACEOF
4276: for ac_config_target in $ac_config_targets
4277: do
4278: case "$ac_config_target" in
4279: # Handling of arguments.
4280: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4281: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4282: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4283: { (exit 1); exit 1; }; };;
4284: esac
4285: done
4286:
4287: # If the user did not use the arguments to specify the items to instantiate,
4288: # then the envvar interface is used. Set only those that are not.
4289: # We use the long form for the default assignment because of an extremely
4290: # bizarre bug on SunOS 4.1.3.
4291: if $ac_need_defaults; then
4292: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4293: fi
4294:
4295: # Create a temporary directory, and hook for its removal unless debugging.
4296: $debug ||
4297: {
4298: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4299: trap '{ (exit 1); exit 1; }' 1 2 13 15
4300: }
4301:
4302: # Create a (secure) tmp directory for tmp files.
4303: : ${TMPDIR=/tmp}
4304: {
4305: tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4306: test -n "$tmp" && test -d "$tmp"
4307: } ||
4308: {
4309: tmp=$TMPDIR/cs$$-$RANDOM
4310: (umask 077 && mkdir $tmp)
4311: } ||
4312: {
4313: echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4314: { (exit 1); exit 1; }
4315: }
4316:
4317: _ACEOF
4318:
4319: cat >>$CONFIG_STATUS <<_ACEOF
4320:
4321: #
4322: # CONFIG_FILES section.
4323: #
4324:
4325: # No need to generate the scripts if there are no CONFIG_FILES.
4326: # This happens for instance when ./config.status config.h
4327: if test -n "\$CONFIG_FILES"; then
4328: # Protect against being on the right side of a sed subst in config.status.
4329: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4330: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4331: s,@SHELL@,$SHELL,;t t
4332: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4333: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4334: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4335: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4336: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4337: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4338: s,@exec_prefix@,$exec_prefix,;t t
4339: s,@prefix@,$prefix,;t t
4340: s,@program_transform_name@,$program_transform_name,;t t
4341: s,@bindir@,$bindir,;t t
4342: s,@sbindir@,$sbindir,;t t
4343: s,@libexecdir@,$libexecdir,;t t
4344: s,@datadir@,$datadir,;t t
4345: s,@sysconfdir@,$sysconfdir,;t t
4346: s,@sharedstatedir@,$sharedstatedir,;t t
4347: s,@localstatedir@,$localstatedir,;t t
4348: s,@libdir@,$libdir,;t t
4349: s,@includedir@,$includedir,;t t
4350: s,@oldincludedir@,$oldincludedir,;t t
4351: s,@infodir@,$infodir,;t t
4352: s,@mandir@,$mandir,;t t
4353: s,@build_alias@,$build_alias,;t t
4354: s,@host_alias@,$host_alias,;t t
4355: s,@target_alias@,$target_alias,;t t
4356: s,@DEFS@,$DEFS,;t t
4357: s,@ECHO_C@,$ECHO_C,;t t
4358: s,@ECHO_N@,$ECHO_N,;t t
4359: s,@ECHO_T@,$ECHO_T,;t t
4360: s,@LIBS@,$LIBS,;t t
4361: s,@CC@,$CC,;t t
4362: s,@CFLAGS@,$CFLAGS,;t t
4363: s,@LDFLAGS@,$LDFLAGS,;t t
4364: s,@CPPFLAGS@,$CPPFLAGS,;t t
4365: s,@ac_ct_CC@,$ac_ct_CC,;t t
4366: s,@EXEEXT@,$EXEEXT,;t t
4367: s,@OBJEXT@,$OBJEXT,;t t
1.3 ! ohara 4368: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
! 4369: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
! 4370: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
1.1 ohara 4371: s,@CPP@,$CPP,;t t
4372: s,@X_CFLAGS@,$X_CFLAGS,;t t
4373: s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
4374: s,@X_LIBS@,$X_LIBS,;t t
4375: s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
4376: CEOF
4377:
4378: _ACEOF
4379:
4380: cat >>$CONFIG_STATUS <<\_ACEOF
4381: # Split the substitutions into bite-sized pieces for seds with
4382: # small command number limits, like on Digital OSF/1 and HP-UX.
4383: ac_max_sed_lines=48
4384: ac_sed_frag=1 # Number of current file.
4385: ac_beg=1 # First line for current file.
4386: ac_end=$ac_max_sed_lines # Line after last line for current file.
4387: ac_more_lines=:
4388: ac_sed_cmds=
4389: while $ac_more_lines; do
4390: if test $ac_beg -gt 1; then
4391: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4392: else
4393: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4394: fi
4395: if test ! -s $tmp/subs.frag; then
4396: ac_more_lines=false
4397: else
4398: # The purpose of the label and of the branching condition is to
4399: # speed up the sed processing (if there are no `@' at all, there
4400: # is no need to browse any of the substitutions).
4401: # These are the two extra sed commands mentioned above.
4402: (echo ':t
4403: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4404: if test -z "$ac_sed_cmds"; then
4405: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4406: else
4407: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4408: fi
4409: ac_sed_frag=`expr $ac_sed_frag + 1`
4410: ac_beg=$ac_end
4411: ac_end=`expr $ac_end + $ac_max_sed_lines`
4412: fi
4413: done
4414: if test -z "$ac_sed_cmds"; then
4415: ac_sed_cmds=cat
4416: fi
4417: fi # test -n "$CONFIG_FILES"
4418:
4419: _ACEOF
4420: cat >>$CONFIG_STATUS <<\_ACEOF
4421: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4422: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4423: case $ac_file in
4424: - | *:- | *:-:* ) # input from stdin
4425: cat >$tmp/stdin
4426: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4427: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4428: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4429: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4430: * ) ac_file_in=$ac_file.in ;;
4431: esac
4432:
4433: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4434: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4435: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4436: X"$ac_file" : 'X\(//\)[^/]' \| \
4437: X"$ac_file" : 'X\(//\)$' \| \
4438: X"$ac_file" : 'X\(/\)' \| \
4439: . : '\(.\)' 2>/dev/null ||
4440: echo X"$ac_file" |
4441: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4442: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4443: /^X\(\/\/\)$/{ s//\1/; q; }
4444: /^X\(\/\).*/{ s//\1/; q; }
4445: s/.*/./; q'`
4446: { case "$ac_dir" in
4447: [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4448: *) as_incr_dir=.;;
4449: esac
4450: as_dummy="$ac_dir"
4451: for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4452: case $as_mkdir_dir in
4453: # Skip DOS drivespec
4454: ?:) as_incr_dir=$as_mkdir_dir ;;
4455: *)
4456: as_incr_dir=$as_incr_dir/$as_mkdir_dir
4457: test -d "$as_incr_dir" ||
4458: mkdir "$as_incr_dir" ||
4459: { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
4460: echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
4461: { (exit 1); exit 1; }; }
4462: ;;
4463: esac
4464: done; }
4465:
4466: ac_builddir=.
4467:
4468: if test "$ac_dir" != .; then
4469: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4470: # A "../" for each directory in $ac_dir_suffix.
4471: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4472: else
4473: ac_dir_suffix= ac_top_builddir=
4474: fi
4475:
4476: case $srcdir in
4477: .) # No --srcdir option. We are building in place.
4478: ac_srcdir=.
4479: if test -z "$ac_top_builddir"; then
4480: ac_top_srcdir=.
4481: else
4482: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4483: fi ;;
4484: [\\/]* | ?:[\\/]* ) # Absolute path.
4485: ac_srcdir=$srcdir$ac_dir_suffix;
4486: ac_top_srcdir=$srcdir ;;
4487: *) # Relative path.
4488: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4489: ac_top_srcdir=$ac_top_builddir$srcdir ;;
4490: esac
4491: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4492: # absolute.
4493: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4494: ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
4495: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4496: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4497:
4498:
1.3 ! ohara 4499: case $INSTALL in
! 4500: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
! 4501: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
! 4502: esac
1.1 ohara 4503:
4504: if test x"$ac_file" != x-; then
4505: { echo "$as_me:$LINENO: creating $ac_file" >&5
4506: echo "$as_me: creating $ac_file" >&6;}
4507: rm -f "$ac_file"
4508: fi
4509: # Let's still pretend it is `configure' which instantiates (i.e., don't
4510: # use $as_me), people would be surprised to read:
4511: # /* config.h. Generated by config.status. */
4512: if test x"$ac_file" = x-; then
4513: configure_input=
4514: else
4515: configure_input="$ac_file. "
4516: fi
4517: configure_input=$configure_input"Generated from `echo $ac_file_in |
4518: sed 's,.*/,,'` by configure."
4519:
4520: # First look for the input files in the build tree, otherwise in the
4521: # src tree.
4522: ac_file_inputs=`IFS=:
4523: for f in $ac_file_in; do
4524: case $f in
4525: -) echo $tmp/stdin ;;
4526: [\\/$]*)
4527: # Absolute (can't be DOS-style, as IFS=:)
4528: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4529: echo "$as_me: error: cannot find input file: $f" >&2;}
4530: { (exit 1); exit 1; }; }
4531: echo $f;;
4532: *) # Relative
4533: if test -f "$f"; then
4534: # Build tree
4535: echo $f
4536: elif test -f "$srcdir/$f"; then
4537: # Source tree
4538: echo $srcdir/$f
4539: else
4540: # /dev/null tree
4541: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4542: echo "$as_me: error: cannot find input file: $f" >&2;}
4543: { (exit 1); exit 1; }; }
4544: fi;;
4545: esac
4546: done` || { (exit 1); exit 1; }
4547: _ACEOF
4548: cat >>$CONFIG_STATUS <<_ACEOF
4549: sed "$ac_vpsub
4550: $extrasub
4551: _ACEOF
4552: cat >>$CONFIG_STATUS <<\_ACEOF
4553: :t
4554: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4555: s,@configure_input@,$configure_input,;t t
4556: s,@srcdir@,$ac_srcdir,;t t
4557: s,@abs_srcdir@,$ac_abs_srcdir,;t t
4558: s,@top_srcdir@,$ac_top_srcdir,;t t
4559: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4560: s,@builddir@,$ac_builddir,;t t
4561: s,@abs_builddir@,$ac_abs_builddir,;t t
4562: s,@top_builddir@,$ac_top_builddir,;t t
4563: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
1.3 ! ohara 4564: s,@INSTALL@,$ac_INSTALL,;t t
1.1 ohara 4565: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4566: rm -f $tmp/stdin
4567: if test x"$ac_file" != x-; then
4568: mv $tmp/out $ac_file
4569: else
4570: cat $tmp/out
4571: rm -f $tmp/out
4572: fi
4573:
4574: done
4575: _ACEOF
4576:
4577: cat >>$CONFIG_STATUS <<\_ACEOF
4578:
4579: { (exit 0); exit 0; }
4580: _ACEOF
4581: chmod +x $CONFIG_STATUS
4582: ac_clean_files=$ac_clean_files_save
4583:
4584:
4585: # configure is writing to config.log, and then calls config.status.
4586: # config.status does its own redirection, appending to config.log.
4587: # Unfortunately, on DOS this fails, as config.log is still kept open
4588: # by configure, so config.status won't be able to write to it; its
4589: # output is simply discarded. So we exec the FD to /dev/null,
4590: # effectively closing config.log, so it can be properly (re)opened and
4591: # appended to by config.status. When coming back to configure, we
4592: # need to make the FD available again.
4593: if test "$no_create" != yes; then
4594: ac_cs_success=:
4595: exec 5>/dev/null
4596: $SHELL $CONFIG_STATUS || ac_cs_success=false
4597: exec 5>>config.log
4598: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4599: # would make configure fail if this is the last instruction.
4600: $ac_cs_success || { (exit 1); exit 1; }
4601: fi
4602:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>