Annotation of OpenXM/src/oxc/configure, Revision 1.2
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:
1909:
1910: ac_ext=c
1911: ac_cpp='$CPP $CPPFLAGS'
1912: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1913: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1914: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1915: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1916: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1917: # On Suns, sometimes $CPP names a directory.
1918: if test -n "$CPP" && test -d "$CPP"; then
1919: CPP=
1920: fi
1921: if test -z "$CPP"; then
1922: if test "${ac_cv_prog_CPP+set}" = set; then
1923: echo $ECHO_N "(cached) $ECHO_C" >&6
1924: else
1925: # Double quotes because CPP needs to be expanded
1926: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1927: do
1928: ac_preproc_ok=false
1929: for ac_c_preproc_warn_flag in '' yes
1930: do
1931: # Use a header file that comes with gcc, so configuring glibc
1932: # with a fresh cross-compiler works.
1933: # On the NeXT, cc -E runs the code through the compiler's parser,
1934: # not just through cpp. "Syntax error" is here to catch this case.
1935: cat >conftest.$ac_ext <<_ACEOF
1936: #line $LINENO "configure"
1937: #include "confdefs.h"
1938: #include <assert.h>
1939: Syntax error
1940: _ACEOF
1941: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1942: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1943: ac_status=$?
1944: egrep -v '^ *\+' conftest.er1 >conftest.err
1945: rm -f conftest.er1
1946: cat conftest.err >&5
1947: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948: (exit $ac_status); } >/dev/null; then
1949: if test -s conftest.err; then
1950: ac_cpp_err=$ac_c_preproc_warn_flag
1951: else
1952: ac_cpp_err=
1953: fi
1954: else
1955: ac_cpp_err=yes
1956: fi
1957: if test -z "$ac_cpp_err"; then
1958: :
1959: else
1960: echo "$as_me: failed program was:" >&5
1961: cat conftest.$ac_ext >&5
1962: # Broken: fails on valid input.
1963: continue
1964: fi
1965: rm -f conftest.err conftest.$ac_ext
1966:
1967: # OK, works on sane cases. Now check whether non-existent headers
1968: # can be detected and how.
1969: cat >conftest.$ac_ext <<_ACEOF
1970: #line $LINENO "configure"
1971: #include "confdefs.h"
1972: #include <ac_nonexistent.h>
1973: _ACEOF
1974: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1975: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1976: ac_status=$?
1977: egrep -v '^ *\+' conftest.er1 >conftest.err
1978: rm -f conftest.er1
1979: cat conftest.err >&5
1980: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981: (exit $ac_status); } >/dev/null; then
1982: if test -s conftest.err; then
1983: ac_cpp_err=$ac_c_preproc_warn_flag
1984: else
1985: ac_cpp_err=
1986: fi
1987: else
1988: ac_cpp_err=yes
1989: fi
1990: if test -z "$ac_cpp_err"; then
1991: # Broken: success on invalid input.
1992: continue
1993: else
1994: echo "$as_me: failed program was:" >&5
1995: cat conftest.$ac_ext >&5
1996: # Passes both tests.
1997: ac_preproc_ok=:
1998: break
1999: fi
2000: rm -f conftest.err conftest.$ac_ext
2001:
2002: done
2003: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2004: rm -f conftest.err conftest.$ac_ext
2005: if $ac_preproc_ok; then
2006: break
2007: fi
2008:
2009: done
2010: ac_cv_prog_CPP=$CPP
2011:
2012: fi
2013: CPP=$ac_cv_prog_CPP
2014: else
2015: ac_cv_prog_CPP=$CPP
2016: fi
2017: echo "$as_me:$LINENO: result: $CPP" >&5
2018: echo "${ECHO_T}$CPP" >&6
2019: ac_preproc_ok=false
2020: for ac_c_preproc_warn_flag in '' yes
2021: do
2022: # Use a header file that comes with gcc, so configuring glibc
2023: # with a fresh cross-compiler works.
2024: # On the NeXT, cc -E runs the code through the compiler's parser,
2025: # not just through cpp. "Syntax error" is here to catch this case.
2026: cat >conftest.$ac_ext <<_ACEOF
2027: #line $LINENO "configure"
2028: #include "confdefs.h"
2029: #include <assert.h>
2030: Syntax error
2031: _ACEOF
2032: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2033: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2034: ac_status=$?
2035: egrep -v '^ *\+' conftest.er1 >conftest.err
2036: rm -f conftest.er1
2037: cat conftest.err >&5
2038: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039: (exit $ac_status); } >/dev/null; then
2040: if test -s conftest.err; then
2041: ac_cpp_err=$ac_c_preproc_warn_flag
2042: else
2043: ac_cpp_err=
2044: fi
2045: else
2046: ac_cpp_err=yes
2047: fi
2048: if test -z "$ac_cpp_err"; then
2049: :
2050: else
2051: echo "$as_me: failed program was:" >&5
2052: cat conftest.$ac_ext >&5
2053: # Broken: fails on valid input.
2054: continue
2055: fi
2056: rm -f conftest.err conftest.$ac_ext
2057:
2058: # OK, works on sane cases. Now check whether non-existent headers
2059: # can be detected and how.
2060: cat >conftest.$ac_ext <<_ACEOF
2061: #line $LINENO "configure"
2062: #include "confdefs.h"
2063: #include <ac_nonexistent.h>
2064: _ACEOF
2065: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2066: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2067: ac_status=$?
2068: egrep -v '^ *\+' conftest.er1 >conftest.err
2069: rm -f conftest.er1
2070: cat conftest.err >&5
2071: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072: (exit $ac_status); } >/dev/null; then
2073: if test -s conftest.err; then
2074: ac_cpp_err=$ac_c_preproc_warn_flag
2075: else
2076: ac_cpp_err=
2077: fi
2078: else
2079: ac_cpp_err=yes
2080: fi
2081: if test -z "$ac_cpp_err"; then
2082: # Broken: success on invalid input.
2083: continue
2084: else
2085: echo "$as_me: failed program was:" >&5
2086: cat conftest.$ac_ext >&5
2087: # Passes both tests.
2088: ac_preproc_ok=:
2089: break
2090: fi
2091: rm -f conftest.err conftest.$ac_ext
2092:
2093: done
2094: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2095: rm -f conftest.err conftest.$ac_ext
2096: if $ac_preproc_ok; then
2097: :
2098: else
2099: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2100: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2101: { (exit 1); exit 1; }; }
2102: fi
2103:
2104: ac_ext=c
2105: ac_cpp='$CPP $CPPFLAGS'
2106: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2107: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2108: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2109:
2110:
2111: echo "$as_me:$LINENO: checking for X" >&5
2112: echo $ECHO_N "checking for X... $ECHO_C" >&6
2113:
2114:
2115: # Check whether --with-x or --without-x was given.
2116: if test "${with_x+set}" = set; then
2117: withval="$with_x"
2118:
2119: fi;
2120: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2121: if test "x$with_x" = xno; then
2122: # The user explicitly disabled X.
2123: have_x=disabled
2124: else
2125: if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2126: # Both variables are already set.
2127: have_x=yes
2128: else
2129: if test "${ac_cv_have_x+set}" = set; then
2130: echo $ECHO_N "(cached) $ECHO_C" >&6
2131: else
2132: # One or both of the vars are not set, and there is no cached value.
2133: ac_x_includes=no ac_x_libraries=no
2134: rm -fr conftest.dir
2135: if mkdir conftest.dir; then
2136: cd conftest.dir
2137: # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2138: cat >Imakefile <<'_ACEOF'
2139: acfindx:
2140: @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2141: _ACEOF
2142: if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2143: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2144: eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2145: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2146: for ac_extension in a so sl; do
2147: if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2148: test -f $ac_im_libdir/libX11.$ac_extension; then
2149: ac_im_usrlibdir=$ac_im_libdir; break
2150: fi
2151: done
2152: # Screen out bogus values from the imake configuration. They are
2153: # bogus both because they are the default anyway, and because
2154: # using them would break gcc on systems where it needs fixed includes.
2155: case $ac_im_incroot in
2156: /usr/include) ;;
2157: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2158: esac
2159: case $ac_im_usrlibdir in
2160: /usr/lib | /lib) ;;
2161: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2162: esac
2163: fi
2164: cd ..
2165: rm -fr conftest.dir
2166: fi
2167:
2168: # Standard set of common directories for X headers.
2169: # Check X11 before X11Rn because it is often a symlink to the current release.
2170: ac_x_header_dirs='
2171: /usr/X11/include
2172: /usr/X11R6/include
2173: /usr/X11R5/include
2174: /usr/X11R4/include
2175:
2176: /usr/include/X11
2177: /usr/include/X11R6
2178: /usr/include/X11R5
2179: /usr/include/X11R4
2180:
2181: /usr/local/X11/include
2182: /usr/local/X11R6/include
2183: /usr/local/X11R5/include
2184: /usr/local/X11R4/include
2185:
2186: /usr/local/include/X11
2187: /usr/local/include/X11R6
2188: /usr/local/include/X11R5
2189: /usr/local/include/X11R4
2190:
2191: /usr/X386/include
2192: /usr/x386/include
2193: /usr/XFree86/include/X11
2194:
2195: /usr/include
2196: /usr/local/include
2197: /usr/unsupported/include
2198: /usr/athena/include
2199: /usr/local/x11r5/include
2200: /usr/lpp/Xamples/include
2201:
2202: /usr/openwin/include
2203: /usr/openwin/share/include'
2204:
2205: if test "$ac_x_includes" = no; then
2206: # Guess where to find include files, by looking for Intrinsic.h.
2207: # First, try using that file with no special directory specified.
2208: cat >conftest.$ac_ext <<_ACEOF
2209: #line $LINENO "configure"
2210: #include "confdefs.h"
2211: #include <X11/Intrinsic.h>
2212: _ACEOF
2213: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2214: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2215: ac_status=$?
2216: egrep -v '^ *\+' conftest.er1 >conftest.err
2217: rm -f conftest.er1
2218: cat conftest.err >&5
2219: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220: (exit $ac_status); } >/dev/null; then
2221: if test -s conftest.err; then
2222: ac_cpp_err=$ac_c_preproc_warn_flag
2223: else
2224: ac_cpp_err=
2225: fi
2226: else
2227: ac_cpp_err=yes
2228: fi
2229: if test -z "$ac_cpp_err"; then
2230: # We can compile using X headers with no special include directory.
2231: ac_x_includes=
2232: else
2233: echo "$as_me: failed program was:" >&5
2234: cat conftest.$ac_ext >&5
2235: for ac_dir in $ac_x_header_dirs; do
2236: if test -r "$ac_dir/X11/Intrinsic.h"; then
2237: ac_x_includes=$ac_dir
2238: break
2239: fi
2240: done
2241: fi
2242: rm -f conftest.err conftest.$ac_ext
2243: fi # $ac_x_includes = no
2244:
2245: if test "$ac_x_libraries" = no; then
2246: # Check for the libraries.
2247: # See if we find them without any special options.
2248: # Don't add to $LIBS permanently.
2249: ac_save_LIBS=$LIBS
2250: LIBS="-lXt $LIBS"
2251: cat >conftest.$ac_ext <<_ACEOF
2252: #line $LINENO "configure"
2253: #include "confdefs.h"
2254: #include <X11/Intrinsic.h>
2255: #ifdef F77_DUMMY_MAIN
2256: # ifdef __cplusplus
2257: extern "C"
2258: # endif
2259: int F77_DUMMY_MAIN() { return 1; }
2260: #endif
2261: int
2262: main ()
2263: {
2264: XtMalloc (0)
2265: ;
2266: return 0;
2267: }
2268: _ACEOF
2269: rm -f conftest.$ac_objext conftest$ac_exeext
2270: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2271: (eval $ac_link) 2>&5
2272: ac_status=$?
2273: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274: (exit $ac_status); } &&
2275: { ac_try='test -s conftest$ac_exeext'
2276: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277: (eval $ac_try) 2>&5
2278: ac_status=$?
2279: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280: (exit $ac_status); }; }; then
2281: LIBS=$ac_save_LIBS
2282: # We can link X programs with no special library path.
2283: ac_x_libraries=
2284: else
2285: echo "$as_me: failed program was:" >&5
2286: cat conftest.$ac_ext >&5
2287: LIBS=$ac_save_LIBS
2288: for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2289: do
2290: # Don't even attempt the hair of trying to link an X program!
2291: for ac_extension in a so sl; do
2292: if test -r $ac_dir/libXt.$ac_extension; then
2293: ac_x_libraries=$ac_dir
2294: break 2
2295: fi
2296: done
2297: done
2298: fi
2299: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2300: fi # $ac_x_libraries = no
2301:
2302: if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2303: # Didn't find X anywhere. Cache the known absence of X.
2304: ac_cv_have_x="have_x=no"
2305: else
2306: # Record where we found X for the cache.
2307: ac_cv_have_x="have_x=yes \
2308: ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2309: fi
2310: fi
2311:
2312: fi
2313: eval "$ac_cv_have_x"
2314: fi # $with_x != no
2315:
2316: if test "$have_x" != yes; then
2317: echo "$as_me:$LINENO: result: $have_x" >&5
2318: echo "${ECHO_T}$have_x" >&6
2319: no_x=yes
2320: else
2321: # If each of the values was on the command line, it overrides each guess.
2322: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2323: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2324: # Update the cache value to reflect the command line values.
2325: ac_cv_have_x="have_x=yes \
2326: ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2327: echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2328: echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2329: fi
2330:
2331: if test "$no_x" = yes; then
2332: # Not all programs may use this symbol, but it does not hurt to define it.
2333:
2334: cat >>confdefs.h <<\_ACEOF
2335: #define X_DISPLAY_MISSING 1
2336: _ACEOF
2337:
2338: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2339: else
2340: if test -n "$x_includes"; then
2341: X_CFLAGS="$X_CFLAGS -I$x_includes"
2342: fi
2343:
2344: # It would also be nice to do this for all -L options, not just this one.
2345: if test -n "$x_libraries"; then
2346: X_LIBS="$X_LIBS -L$x_libraries"
2347: # For Solaris; some versions of Sun CC require a space after -R and
2348: # others require no space. Words are not sufficient . . . .
2349: case `(uname -sr) 2>/dev/null` in
2350: "SunOS 5"*)
2351: echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2352: echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2353: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2354: cat >conftest.$ac_ext <<_ACEOF
2355: #line $LINENO "configure"
2356: #include "confdefs.h"
2357:
2358: #ifdef F77_DUMMY_MAIN
2359: # ifdef __cplusplus
2360: extern "C"
2361: # endif
2362: int F77_DUMMY_MAIN() { return 1; }
2363: #endif
2364: int
2365: main ()
2366: {
2367:
2368: ;
2369: return 0;
2370: }
2371: _ACEOF
2372: rm -f conftest.$ac_objext conftest$ac_exeext
2373: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2374: (eval $ac_link) 2>&5
2375: ac_status=$?
2376: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377: (exit $ac_status); } &&
2378: { ac_try='test -s conftest$ac_exeext'
2379: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380: (eval $ac_try) 2>&5
2381: ac_status=$?
2382: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383: (exit $ac_status); }; }; then
2384: ac_R_nospace=yes
2385: else
2386: echo "$as_me: failed program was:" >&5
2387: cat conftest.$ac_ext >&5
2388: ac_R_nospace=no
2389: fi
2390: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2391: if test $ac_R_nospace = yes; then
2392: echo "$as_me:$LINENO: result: no" >&5
2393: echo "${ECHO_T}no" >&6
2394: X_LIBS="$X_LIBS -R$x_libraries"
2395: else
2396: LIBS="$ac_xsave_LIBS -R $x_libraries"
2397: cat >conftest.$ac_ext <<_ACEOF
2398: #line $LINENO "configure"
2399: #include "confdefs.h"
2400:
2401: #ifdef F77_DUMMY_MAIN
2402: # ifdef __cplusplus
2403: extern "C"
2404: # endif
2405: int F77_DUMMY_MAIN() { return 1; }
2406: #endif
2407: int
2408: main ()
2409: {
2410:
2411: ;
2412: return 0;
2413: }
2414: _ACEOF
2415: rm -f conftest.$ac_objext conftest$ac_exeext
2416: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2417: (eval $ac_link) 2>&5
2418: ac_status=$?
2419: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420: (exit $ac_status); } &&
2421: { ac_try='test -s conftest$ac_exeext'
2422: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423: (eval $ac_try) 2>&5
2424: ac_status=$?
2425: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426: (exit $ac_status); }; }; then
2427: ac_R_space=yes
2428: else
2429: echo "$as_me: failed program was:" >&5
2430: cat conftest.$ac_ext >&5
2431: ac_R_space=no
2432: fi
2433: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2434: if test $ac_R_space = yes; then
2435: echo "$as_me:$LINENO: result: yes" >&5
2436: echo "${ECHO_T}yes" >&6
2437: X_LIBS="$X_LIBS -R $x_libraries"
2438: else
2439: echo "$as_me:$LINENO: result: neither works" >&5
2440: echo "${ECHO_T}neither works" >&6
2441: fi
2442: fi
2443: LIBS=$ac_xsave_LIBS
2444: esac
2445: fi
2446:
2447: # Check for system-dependent libraries X programs must link with.
2448: # Do this before checking for the system-independent R6 libraries
2449: # (-lICE), since we may need -lsocket or whatever for X linking.
2450:
2451: if test "$ISC" = yes; then
2452: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2453: else
2454: # Martyn Johnson says this is needed for Ultrix, if the X
2455: # libraries were built with DECnet support. And Karl Berry says
2456: # the Alpha needs dnet_stub (dnet does not exist).
2457: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2458: cat >conftest.$ac_ext <<_ACEOF
2459: #line $LINENO "configure"
2460: #include "confdefs.h"
2461:
2462: /* Override any gcc2 internal prototype to avoid an error. */
2463: #ifdef __cplusplus
2464: extern "C"
2465: #endif
2466: /* We use char because int might match the return type of a gcc2
2467: builtin and then its argument prototype would still apply. */
2468: char XOpenDisplay ();
2469: #ifdef F77_DUMMY_MAIN
2470: # ifdef __cplusplus
2471: extern "C"
2472: # endif
2473: int F77_DUMMY_MAIN() { return 1; }
2474: #endif
2475: int
2476: main ()
2477: {
2478: XOpenDisplay ();
2479: ;
2480: return 0;
2481: }
2482: _ACEOF
2483: rm -f conftest.$ac_objext conftest$ac_exeext
2484: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2485: (eval $ac_link) 2>&5
2486: ac_status=$?
2487: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488: (exit $ac_status); } &&
2489: { ac_try='test -s conftest$ac_exeext'
2490: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491: (eval $ac_try) 2>&5
2492: ac_status=$?
2493: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494: (exit $ac_status); }; }; then
2495: :
2496: else
2497: echo "$as_me: failed program was:" >&5
2498: cat conftest.$ac_ext >&5
2499: echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
2500: echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2501: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2502: echo $ECHO_N "(cached) $ECHO_C" >&6
2503: else
2504: ac_check_lib_save_LIBS=$LIBS
2505: LIBS="-ldnet $LIBS"
2506: cat >conftest.$ac_ext <<_ACEOF
2507: #line $LINENO "configure"
2508: #include "confdefs.h"
2509:
2510: /* Override any gcc2 internal prototype to avoid an error. */
2511: #ifdef __cplusplus
2512: extern "C"
2513: #endif
2514: /* We use char because int might match the return type of a gcc2
2515: builtin and then its argument prototype would still apply. */
2516: char dnet_ntoa ();
2517: #ifdef F77_DUMMY_MAIN
2518: # ifdef __cplusplus
2519: extern "C"
2520: # endif
2521: int F77_DUMMY_MAIN() { return 1; }
2522: #endif
2523: int
2524: main ()
2525: {
2526: dnet_ntoa ();
2527: ;
2528: return 0;
2529: }
2530: _ACEOF
2531: rm -f conftest.$ac_objext conftest$ac_exeext
2532: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2533: (eval $ac_link) 2>&5
2534: ac_status=$?
2535: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536: (exit $ac_status); } &&
2537: { ac_try='test -s conftest$ac_exeext'
2538: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539: (eval $ac_try) 2>&5
2540: ac_status=$?
2541: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542: (exit $ac_status); }; }; then
2543: ac_cv_lib_dnet_dnet_ntoa=yes
2544: else
2545: echo "$as_me: failed program was:" >&5
2546: cat conftest.$ac_ext >&5
2547: ac_cv_lib_dnet_dnet_ntoa=no
2548: fi
2549: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2550: LIBS=$ac_check_lib_save_LIBS
2551: fi
2552: echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
2553: echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2554: if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
2555: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2556: fi
2557:
2558: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2559: echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
2560: echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2561: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2562: echo $ECHO_N "(cached) $ECHO_C" >&6
2563: else
2564: ac_check_lib_save_LIBS=$LIBS
2565: LIBS="-ldnet_stub $LIBS"
2566: cat >conftest.$ac_ext <<_ACEOF
2567: #line $LINENO "configure"
2568: #include "confdefs.h"
2569:
2570: /* Override any gcc2 internal prototype to avoid an error. */
2571: #ifdef __cplusplus
2572: extern "C"
2573: #endif
2574: /* We use char because int might match the return type of a gcc2
2575: builtin and then its argument prototype would still apply. */
2576: char dnet_ntoa ();
2577: #ifdef F77_DUMMY_MAIN
2578: # ifdef __cplusplus
2579: extern "C"
2580: # endif
2581: int F77_DUMMY_MAIN() { return 1; }
2582: #endif
2583: int
2584: main ()
2585: {
2586: dnet_ntoa ();
2587: ;
2588: return 0;
2589: }
2590: _ACEOF
2591: rm -f conftest.$ac_objext conftest$ac_exeext
2592: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2593: (eval $ac_link) 2>&5
2594: ac_status=$?
2595: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596: (exit $ac_status); } &&
2597: { ac_try='test -s conftest$ac_exeext'
2598: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599: (eval $ac_try) 2>&5
2600: ac_status=$?
2601: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602: (exit $ac_status); }; }; then
2603: ac_cv_lib_dnet_stub_dnet_ntoa=yes
2604: else
2605: echo "$as_me: failed program was:" >&5
2606: cat conftest.$ac_ext >&5
2607: ac_cv_lib_dnet_stub_dnet_ntoa=no
2608: fi
2609: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2610: LIBS=$ac_check_lib_save_LIBS
2611: fi
2612: echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
2613: echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
2614: if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
2615: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2616: fi
2617:
2618: fi
2619: fi
2620: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2621: LIBS="$ac_xsave_LIBS"
2622:
2623: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2624: # to get the SysV transport functions.
2625: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
2626: # needs -lnsl.
2627: # The nsl library prevents programs from opening the X display
2628: # on Irix 5.2, according to T.E. Dickey.
2629: # The functions gethostbyname, getservbyname, and inet_addr are
2630: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
2631: echo "$as_me:$LINENO: checking for gethostbyname" >&5
2632: echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2633: if test "${ac_cv_func_gethostbyname+set}" = set; then
2634: echo $ECHO_N "(cached) $ECHO_C" >&6
2635: else
2636: cat >conftest.$ac_ext <<_ACEOF
2637: #line $LINENO "configure"
2638: #include "confdefs.h"
2639: /* System header to define __stub macros and hopefully few prototypes,
2640: which can conflict with char gethostbyname (); below. */
2641: #include <assert.h>
2642: /* Override any gcc2 internal prototype to avoid an error. */
2643: #ifdef __cplusplus
2644: extern "C"
2645: #endif
2646: /* We use char because int might match the return type of a gcc2
2647: builtin and then its argument prototype would still apply. */
2648: char gethostbyname ();
2649: char (*f) ();
2650:
2651: #ifdef F77_DUMMY_MAIN
2652: # ifdef __cplusplus
2653: extern "C"
2654: # endif
2655: int F77_DUMMY_MAIN() { return 1; }
2656: #endif
2657: int
2658: main ()
2659: {
2660: /* The GNU C library defines this for functions which it implements
2661: to always fail with ENOSYS. Some functions are actually named
2662: something starting with __ and the normal name is an alias. */
2663: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2664: choke me
2665: #else
2666: f = gethostbyname;
2667: #endif
2668:
2669: ;
2670: return 0;
2671: }
2672: _ACEOF
2673: rm -f conftest.$ac_objext conftest$ac_exeext
2674: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2675: (eval $ac_link) 2>&5
2676: ac_status=$?
2677: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678: (exit $ac_status); } &&
2679: { ac_try='test -s conftest$ac_exeext'
2680: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681: (eval $ac_try) 2>&5
2682: ac_status=$?
2683: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684: (exit $ac_status); }; }; then
2685: ac_cv_func_gethostbyname=yes
2686: else
2687: echo "$as_me: failed program was:" >&5
2688: cat conftest.$ac_ext >&5
2689: ac_cv_func_gethostbyname=no
2690: fi
2691: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2692: fi
2693: echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
2694: echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
2695:
2696: if test $ac_cv_func_gethostbyname = no; then
2697: echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
2698: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2699: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2700: echo $ECHO_N "(cached) $ECHO_C" >&6
2701: else
2702: ac_check_lib_save_LIBS=$LIBS
2703: LIBS="-lnsl $LIBS"
2704: cat >conftest.$ac_ext <<_ACEOF
2705: #line $LINENO "configure"
2706: #include "confdefs.h"
2707:
2708: /* Override any gcc2 internal prototype to avoid an error. */
2709: #ifdef __cplusplus
2710: extern "C"
2711: #endif
2712: /* We use char because int might match the return type of a gcc2
2713: builtin and then its argument prototype would still apply. */
2714: char gethostbyname ();
2715: #ifdef F77_DUMMY_MAIN
2716: # ifdef __cplusplus
2717: extern "C"
2718: # endif
2719: int F77_DUMMY_MAIN() { return 1; }
2720: #endif
2721: int
2722: main ()
2723: {
2724: gethostbyname ();
2725: ;
2726: return 0;
2727: }
2728: _ACEOF
2729: rm -f conftest.$ac_objext conftest$ac_exeext
2730: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2731: (eval $ac_link) 2>&5
2732: ac_status=$?
2733: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734: (exit $ac_status); } &&
2735: { ac_try='test -s conftest$ac_exeext'
2736: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737: (eval $ac_try) 2>&5
2738: ac_status=$?
2739: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740: (exit $ac_status); }; }; then
2741: ac_cv_lib_nsl_gethostbyname=yes
2742: else
2743: echo "$as_me: failed program was:" >&5
2744: cat conftest.$ac_ext >&5
2745: ac_cv_lib_nsl_gethostbyname=no
2746: fi
2747: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2748: LIBS=$ac_check_lib_save_LIBS
2749: fi
2750: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
2751: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2752: if test $ac_cv_lib_nsl_gethostbyname = yes; then
2753: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2754: fi
2755:
2756: if test $ac_cv_lib_nsl_gethostbyname = no; then
2757: echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
2758: echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
2759: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
2760: echo $ECHO_N "(cached) $ECHO_C" >&6
2761: else
2762: ac_check_lib_save_LIBS=$LIBS
2763: LIBS="-lbsd $LIBS"
2764: cat >conftest.$ac_ext <<_ACEOF
2765: #line $LINENO "configure"
2766: #include "confdefs.h"
2767:
2768: /* Override any gcc2 internal prototype to avoid an error. */
2769: #ifdef __cplusplus
2770: extern "C"
2771: #endif
2772: /* We use char because int might match the return type of a gcc2
2773: builtin and then its argument prototype would still apply. */
2774: char gethostbyname ();
2775: #ifdef F77_DUMMY_MAIN
2776: # ifdef __cplusplus
2777: extern "C"
2778: # endif
2779: int F77_DUMMY_MAIN() { return 1; }
2780: #endif
2781: int
2782: main ()
2783: {
2784: gethostbyname ();
2785: ;
2786: return 0;
2787: }
2788: _ACEOF
2789: rm -f conftest.$ac_objext conftest$ac_exeext
2790: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2791: (eval $ac_link) 2>&5
2792: ac_status=$?
2793: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794: (exit $ac_status); } &&
2795: { ac_try='test -s conftest$ac_exeext'
2796: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797: (eval $ac_try) 2>&5
2798: ac_status=$?
2799: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800: (exit $ac_status); }; }; then
2801: ac_cv_lib_bsd_gethostbyname=yes
2802: else
2803: echo "$as_me: failed program was:" >&5
2804: cat conftest.$ac_ext >&5
2805: ac_cv_lib_bsd_gethostbyname=no
2806: fi
2807: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2808: LIBS=$ac_check_lib_save_LIBS
2809: fi
2810: echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
2811: echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
2812: if test $ac_cv_lib_bsd_gethostbyname = yes; then
2813: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
2814: fi
2815:
2816: fi
2817: fi
2818:
2819: # lieder@skyler.mavd.honeywell.com says without -lsocket,
2820: # socket/setsockopt and other routines are undefined under SCO ODT
2821: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2822: # on later versions), says Simon Leinen: it contains gethostby*
2823: # variants that don't use the nameserver (or something). -lsocket
2824: # must be given before -lnsl if both are needed. We assume that
2825: # if connect needs -lnsl, so does gethostbyname.
2826: echo "$as_me:$LINENO: checking for connect" >&5
2827: echo $ECHO_N "checking for connect... $ECHO_C" >&6
2828: if test "${ac_cv_func_connect+set}" = set; then
2829: echo $ECHO_N "(cached) $ECHO_C" >&6
2830: else
2831: cat >conftest.$ac_ext <<_ACEOF
2832: #line $LINENO "configure"
2833: #include "confdefs.h"
2834: /* System header to define __stub macros and hopefully few prototypes,
2835: which can conflict with char connect (); below. */
2836: #include <assert.h>
2837: /* Override any gcc2 internal prototype to avoid an error. */
2838: #ifdef __cplusplus
2839: extern "C"
2840: #endif
2841: /* We use char because int might match the return type of a gcc2
2842: builtin and then its argument prototype would still apply. */
2843: char connect ();
2844: char (*f) ();
2845:
2846: #ifdef F77_DUMMY_MAIN
2847: # ifdef __cplusplus
2848: extern "C"
2849: # endif
2850: int F77_DUMMY_MAIN() { return 1; }
2851: #endif
2852: int
2853: main ()
2854: {
2855: /* The GNU C library defines this for functions which it implements
2856: to always fail with ENOSYS. Some functions are actually named
2857: something starting with __ and the normal name is an alias. */
2858: #if defined (__stub_connect) || defined (__stub___connect)
2859: choke me
2860: #else
2861: f = connect;
2862: #endif
2863:
2864: ;
2865: return 0;
2866: }
2867: _ACEOF
2868: rm -f conftest.$ac_objext conftest$ac_exeext
2869: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2870: (eval $ac_link) 2>&5
2871: ac_status=$?
2872: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873: (exit $ac_status); } &&
2874: { ac_try='test -s conftest$ac_exeext'
2875: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876: (eval $ac_try) 2>&5
2877: ac_status=$?
2878: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879: (exit $ac_status); }; }; then
2880: ac_cv_func_connect=yes
2881: else
2882: echo "$as_me: failed program was:" >&5
2883: cat conftest.$ac_ext >&5
2884: ac_cv_func_connect=no
2885: fi
2886: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2887: fi
2888: echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
2889: echo "${ECHO_T}$ac_cv_func_connect" >&6
2890:
2891: if test $ac_cv_func_connect = no; then
2892: echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
2893: echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
2894: if test "${ac_cv_lib_socket_connect+set}" = set; then
2895: echo $ECHO_N "(cached) $ECHO_C" >&6
2896: else
2897: ac_check_lib_save_LIBS=$LIBS
2898: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2899: cat >conftest.$ac_ext <<_ACEOF
2900: #line $LINENO "configure"
2901: #include "confdefs.h"
2902:
2903: /* Override any gcc2 internal prototype to avoid an error. */
2904: #ifdef __cplusplus
2905: extern "C"
2906: #endif
2907: /* We use char because int might match the return type of a gcc2
2908: builtin and then its argument prototype would still apply. */
2909: char connect ();
2910: #ifdef F77_DUMMY_MAIN
2911: # ifdef __cplusplus
2912: extern "C"
2913: # endif
2914: int F77_DUMMY_MAIN() { return 1; }
2915: #endif
2916: int
2917: main ()
2918: {
2919: connect ();
2920: ;
2921: return 0;
2922: }
2923: _ACEOF
2924: rm -f conftest.$ac_objext conftest$ac_exeext
2925: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2926: (eval $ac_link) 2>&5
2927: ac_status=$?
2928: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929: (exit $ac_status); } &&
2930: { ac_try='test -s conftest$ac_exeext'
2931: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932: (eval $ac_try) 2>&5
2933: ac_status=$?
2934: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935: (exit $ac_status); }; }; then
2936: ac_cv_lib_socket_connect=yes
2937: else
2938: echo "$as_me: failed program was:" >&5
2939: cat conftest.$ac_ext >&5
2940: ac_cv_lib_socket_connect=no
2941: fi
2942: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2943: LIBS=$ac_check_lib_save_LIBS
2944: fi
2945: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
2946: echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
2947: if test $ac_cv_lib_socket_connect = yes; then
2948: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2949: fi
2950:
2951: fi
2952:
2953: # Guillermo Gomez says -lposix is necessary on A/UX.
2954: echo "$as_me:$LINENO: checking for remove" >&5
2955: echo $ECHO_N "checking for remove... $ECHO_C" >&6
2956: if test "${ac_cv_func_remove+set}" = set; then
2957: echo $ECHO_N "(cached) $ECHO_C" >&6
2958: else
2959: cat >conftest.$ac_ext <<_ACEOF
2960: #line $LINENO "configure"
2961: #include "confdefs.h"
2962: /* System header to define __stub macros and hopefully few prototypes,
2963: which can conflict with char remove (); below. */
2964: #include <assert.h>
2965: /* Override any gcc2 internal prototype to avoid an error. */
2966: #ifdef __cplusplus
2967: extern "C"
2968: #endif
2969: /* We use char because int might match the return type of a gcc2
2970: builtin and then its argument prototype would still apply. */
2971: char remove ();
2972: char (*f) ();
2973:
2974: #ifdef F77_DUMMY_MAIN
2975: # ifdef __cplusplus
2976: extern "C"
2977: # endif
2978: int F77_DUMMY_MAIN() { return 1; }
2979: #endif
2980: int
2981: main ()
2982: {
2983: /* The GNU C library defines this for functions which it implements
2984: to always fail with ENOSYS. Some functions are actually named
2985: something starting with __ and the normal name is an alias. */
2986: #if defined (__stub_remove) || defined (__stub___remove)
2987: choke me
2988: #else
2989: f = remove;
2990: #endif
2991:
2992: ;
2993: return 0;
2994: }
2995: _ACEOF
2996: rm -f conftest.$ac_objext conftest$ac_exeext
2997: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2998: (eval $ac_link) 2>&5
2999: ac_status=$?
3000: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001: (exit $ac_status); } &&
3002: { ac_try='test -s conftest$ac_exeext'
3003: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004: (eval $ac_try) 2>&5
3005: ac_status=$?
3006: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007: (exit $ac_status); }; }; then
3008: ac_cv_func_remove=yes
3009: else
3010: echo "$as_me: failed program was:" >&5
3011: cat conftest.$ac_ext >&5
3012: ac_cv_func_remove=no
3013: fi
3014: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3015: fi
3016: echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3017: echo "${ECHO_T}$ac_cv_func_remove" >&6
3018:
3019: if test $ac_cv_func_remove = no; then
3020: echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3021: echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3022: if test "${ac_cv_lib_posix_remove+set}" = set; then
3023: echo $ECHO_N "(cached) $ECHO_C" >&6
3024: else
3025: ac_check_lib_save_LIBS=$LIBS
3026: LIBS="-lposix $LIBS"
3027: cat >conftest.$ac_ext <<_ACEOF
3028: #line $LINENO "configure"
3029: #include "confdefs.h"
3030:
3031: /* Override any gcc2 internal prototype to avoid an error. */
3032: #ifdef __cplusplus
3033: extern "C"
3034: #endif
3035: /* We use char because int might match the return type of a gcc2
3036: builtin and then its argument prototype would still apply. */
3037: char remove ();
3038: #ifdef F77_DUMMY_MAIN
3039: # ifdef __cplusplus
3040: extern "C"
3041: # endif
3042: int F77_DUMMY_MAIN() { return 1; }
3043: #endif
3044: int
3045: main ()
3046: {
3047: remove ();
3048: ;
3049: return 0;
3050: }
3051: _ACEOF
3052: rm -f conftest.$ac_objext conftest$ac_exeext
3053: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3054: (eval $ac_link) 2>&5
3055: ac_status=$?
3056: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057: (exit $ac_status); } &&
3058: { ac_try='test -s conftest$ac_exeext'
3059: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060: (eval $ac_try) 2>&5
3061: ac_status=$?
3062: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063: (exit $ac_status); }; }; then
3064: ac_cv_lib_posix_remove=yes
3065: else
3066: echo "$as_me: failed program was:" >&5
3067: cat conftest.$ac_ext >&5
3068: ac_cv_lib_posix_remove=no
3069: fi
3070: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3071: LIBS=$ac_check_lib_save_LIBS
3072: fi
3073: echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3074: echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3075: if test $ac_cv_lib_posix_remove = yes; then
3076: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3077: fi
3078:
3079: fi
3080:
3081: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3082: echo "$as_me:$LINENO: checking for shmat" >&5
3083: echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3084: if test "${ac_cv_func_shmat+set}" = set; then
3085: echo $ECHO_N "(cached) $ECHO_C" >&6
3086: else
3087: cat >conftest.$ac_ext <<_ACEOF
3088: #line $LINENO "configure"
3089: #include "confdefs.h"
3090: /* System header to define __stub macros and hopefully few prototypes,
3091: which can conflict with char shmat (); below. */
3092: #include <assert.h>
3093: /* Override any gcc2 internal prototype to avoid an error. */
3094: #ifdef __cplusplus
3095: extern "C"
3096: #endif
3097: /* We use char because int might match the return type of a gcc2
3098: builtin and then its argument prototype would still apply. */
3099: char shmat ();
3100: char (*f) ();
3101:
3102: #ifdef F77_DUMMY_MAIN
3103: # ifdef __cplusplus
3104: extern "C"
3105: # endif
3106: int F77_DUMMY_MAIN() { return 1; }
3107: #endif
3108: int
3109: main ()
3110: {
3111: /* The GNU C library defines this for functions which it implements
3112: to always fail with ENOSYS. Some functions are actually named
3113: something starting with __ and the normal name is an alias. */
3114: #if defined (__stub_shmat) || defined (__stub___shmat)
3115: choke me
3116: #else
3117: f = shmat;
3118: #endif
3119:
3120: ;
3121: return 0;
3122: }
3123: _ACEOF
3124: rm -f conftest.$ac_objext conftest$ac_exeext
3125: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3126: (eval $ac_link) 2>&5
3127: ac_status=$?
3128: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129: (exit $ac_status); } &&
3130: { ac_try='test -s conftest$ac_exeext'
3131: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3132: (eval $ac_try) 2>&5
3133: ac_status=$?
3134: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135: (exit $ac_status); }; }; then
3136: ac_cv_func_shmat=yes
3137: else
3138: echo "$as_me: failed program was:" >&5
3139: cat conftest.$ac_ext >&5
3140: ac_cv_func_shmat=no
3141: fi
3142: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3143: fi
3144: echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3145: echo "${ECHO_T}$ac_cv_func_shmat" >&6
3146:
3147: if test $ac_cv_func_shmat = no; then
3148: echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3149: echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3150: if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3151: echo $ECHO_N "(cached) $ECHO_C" >&6
3152: else
3153: ac_check_lib_save_LIBS=$LIBS
3154: LIBS="-lipc $LIBS"
3155: cat >conftest.$ac_ext <<_ACEOF
3156: #line $LINENO "configure"
3157: #include "confdefs.h"
3158:
3159: /* Override any gcc2 internal prototype to avoid an error. */
3160: #ifdef __cplusplus
3161: extern "C"
3162: #endif
3163: /* We use char because int might match the return type of a gcc2
3164: builtin and then its argument prototype would still apply. */
3165: char shmat ();
3166: #ifdef F77_DUMMY_MAIN
3167: # ifdef __cplusplus
3168: extern "C"
3169: # endif
3170: int F77_DUMMY_MAIN() { return 1; }
3171: #endif
3172: int
3173: main ()
3174: {
3175: shmat ();
3176: ;
3177: return 0;
3178: }
3179: _ACEOF
3180: rm -f conftest.$ac_objext conftest$ac_exeext
3181: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3182: (eval $ac_link) 2>&5
3183: ac_status=$?
3184: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185: (exit $ac_status); } &&
3186: { ac_try='test -s conftest$ac_exeext'
3187: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188: (eval $ac_try) 2>&5
3189: ac_status=$?
3190: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191: (exit $ac_status); }; }; then
3192: ac_cv_lib_ipc_shmat=yes
3193: else
3194: echo "$as_me: failed program was:" >&5
3195: cat conftest.$ac_ext >&5
3196: ac_cv_lib_ipc_shmat=no
3197: fi
3198: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3199: LIBS=$ac_check_lib_save_LIBS
3200: fi
3201: echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3202: echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3203: if test $ac_cv_lib_ipc_shmat = yes; then
3204: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3205: fi
3206:
3207: fi
3208: fi
3209:
3210: # Check for libraries that X11R6 Xt/Xaw programs need.
3211: ac_save_LDFLAGS=$LDFLAGS
3212: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3213: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3214: # check for ICE first), but we must link in the order -lSM -lICE or
3215: # we get undefined symbols. So assume we have SM if we have ICE.
3216: # These have to be linked with before -lX11, unlike the other
3217: # libraries we check for below, so use a different variable.
3218: # John Interrante, Karl Berry
3219: echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3220: echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3221: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3222: echo $ECHO_N "(cached) $ECHO_C" >&6
3223: else
3224: ac_check_lib_save_LIBS=$LIBS
3225: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3226: cat >conftest.$ac_ext <<_ACEOF
3227: #line $LINENO "configure"
3228: #include "confdefs.h"
3229:
3230: /* Override any gcc2 internal prototype to avoid an error. */
3231: #ifdef __cplusplus
3232: extern "C"
3233: #endif
3234: /* We use char because int might match the return type of a gcc2
3235: builtin and then its argument prototype would still apply. */
3236: char IceConnectionNumber ();
3237: #ifdef F77_DUMMY_MAIN
3238: # ifdef __cplusplus
3239: extern "C"
3240: # endif
3241: int F77_DUMMY_MAIN() { return 1; }
3242: #endif
3243: int
3244: main ()
3245: {
3246: IceConnectionNumber ();
3247: ;
3248: return 0;
3249: }
3250: _ACEOF
3251: rm -f conftest.$ac_objext conftest$ac_exeext
3252: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3253: (eval $ac_link) 2>&5
3254: ac_status=$?
3255: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256: (exit $ac_status); } &&
3257: { ac_try='test -s conftest$ac_exeext'
3258: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259: (eval $ac_try) 2>&5
3260: ac_status=$?
3261: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262: (exit $ac_status); }; }; then
3263: ac_cv_lib_ICE_IceConnectionNumber=yes
3264: else
3265: echo "$as_me: failed program was:" >&5
3266: cat conftest.$ac_ext >&5
3267: ac_cv_lib_ICE_IceConnectionNumber=no
3268: fi
3269: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3270: LIBS=$ac_check_lib_save_LIBS
3271: fi
3272: echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3273: echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3274: if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3275: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3276: fi
3277:
3278: LDFLAGS=$ac_save_LDFLAGS
3279:
3280: fi
3281:
3282:
3283: echo "$as_me:$LINENO: checking for socket" >&5
3284: echo $ECHO_N "checking for socket... $ECHO_C" >&6
3285: if test "${ac_cv_func_socket+set}" = set; then
3286: echo $ECHO_N "(cached) $ECHO_C" >&6
3287: else
3288: cat >conftest.$ac_ext <<_ACEOF
3289: #line $LINENO "configure"
3290: #include "confdefs.h"
3291: /* System header to define __stub macros and hopefully few prototypes,
3292: which can conflict with char socket (); below. */
3293: #include <assert.h>
3294: /* Override any gcc2 internal prototype to avoid an error. */
3295: #ifdef __cplusplus
3296: extern "C"
3297: #endif
3298: /* We use char because int might match the return type of a gcc2
3299: builtin and then its argument prototype would still apply. */
3300: char socket ();
3301: char (*f) ();
3302:
3303: #ifdef F77_DUMMY_MAIN
3304: # ifdef __cplusplus
3305: extern "C"
3306: # endif
3307: int F77_DUMMY_MAIN() { return 1; }
3308: #endif
3309: int
3310: main ()
3311: {
3312: /* The GNU C library defines this for functions which it implements
3313: to always fail with ENOSYS. Some functions are actually named
3314: something starting with __ and the normal name is an alias. */
3315: #if defined (__stub_socket) || defined (__stub___socket)
3316: choke me
3317: #else
3318: f = socket;
3319: #endif
3320:
3321: ;
3322: return 0;
3323: }
3324: _ACEOF
3325: rm -f conftest.$ac_objext conftest$ac_exeext
3326: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3327: (eval $ac_link) 2>&5
3328: ac_status=$?
3329: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330: (exit $ac_status); } &&
3331: { ac_try='test -s conftest$ac_exeext'
3332: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3333: (eval $ac_try) 2>&5
3334: ac_status=$?
3335: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336: (exit $ac_status); }; }; then
3337: ac_cv_func_socket=yes
3338: else
3339: echo "$as_me: failed program was:" >&5
3340: cat conftest.$ac_ext >&5
3341: ac_cv_func_socket=no
3342: fi
3343: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3344: fi
3345: echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3346: echo "${ECHO_T}$ac_cv_func_socket" >&6
3347:
3348: if test "$ac_cv_func_socket" = no ; then
3349:
3350: echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3351: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3352: if test "${ac_cv_lib_socket_socket+set}" = set; then
3353: echo $ECHO_N "(cached) $ECHO_C" >&6
3354: else
3355: ac_check_lib_save_LIBS=$LIBS
3356: LIBS="-lsocket $LIBS"
3357: cat >conftest.$ac_ext <<_ACEOF
3358: #line $LINENO "configure"
3359: #include "confdefs.h"
3360:
3361: /* Override any gcc2 internal prototype to avoid an error. */
3362: #ifdef __cplusplus
3363: extern "C"
3364: #endif
3365: /* We use char because int might match the return type of a gcc2
3366: builtin and then its argument prototype would still apply. */
3367: char socket ();
3368: #ifdef F77_DUMMY_MAIN
3369: # ifdef __cplusplus
3370: extern "C"
3371: # endif
3372: int F77_DUMMY_MAIN() { return 1; }
3373: #endif
3374: int
3375: main ()
3376: {
3377: socket ();
3378: ;
3379: return 0;
3380: }
3381: _ACEOF
3382: rm -f conftest.$ac_objext conftest$ac_exeext
3383: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3384: (eval $ac_link) 2>&5
3385: ac_status=$?
3386: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387: (exit $ac_status); } &&
3388: { ac_try='test -s conftest$ac_exeext'
3389: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390: (eval $ac_try) 2>&5
3391: ac_status=$?
3392: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393: (exit $ac_status); }; }; then
3394: ac_cv_lib_socket_socket=yes
3395: else
3396: echo "$as_me: failed program was:" >&5
3397: cat conftest.$ac_ext >&5
3398: ac_cv_lib_socket_socket=no
3399: fi
3400: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3401: LIBS=$ac_check_lib_save_LIBS
3402: fi
3403: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3404: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3405: if test $ac_cv_lib_socket_socket = yes; then
3406: cat >>confdefs.h <<_ACEOF
3407: #define HAVE_LIBSOCKET 1
3408: _ACEOF
3409:
3410: LIBS="-lsocket $LIBS"
3411:
3412: fi
3413:
3414: fi
3415: echo "$as_me:$LINENO: checking for gethostbyname" >&5
3416: echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3417: if test "${ac_cv_func_gethostbyname+set}" = set; then
3418: echo $ECHO_N "(cached) $ECHO_C" >&6
3419: else
3420: cat >conftest.$ac_ext <<_ACEOF
3421: #line $LINENO "configure"
3422: #include "confdefs.h"
3423: /* System header to define __stub macros and hopefully few prototypes,
3424: which can conflict with char gethostbyname (); below. */
3425: #include <assert.h>
3426: /* Override any gcc2 internal prototype to avoid an error. */
3427: #ifdef __cplusplus
3428: extern "C"
3429: #endif
3430: /* We use char because int might match the return type of a gcc2
3431: builtin and then its argument prototype would still apply. */
3432: char gethostbyname ();
3433: char (*f) ();
3434:
3435: #ifdef F77_DUMMY_MAIN
3436: # ifdef __cplusplus
3437: extern "C"
3438: # endif
3439: int F77_DUMMY_MAIN() { return 1; }
3440: #endif
3441: int
3442: main ()
3443: {
3444: /* The GNU C library defines this for functions which it implements
3445: to always fail with ENOSYS. Some functions are actually named
3446: something starting with __ and the normal name is an alias. */
3447: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3448: choke me
3449: #else
3450: f = gethostbyname;
3451: #endif
3452:
3453: ;
3454: return 0;
3455: }
3456: _ACEOF
3457: rm -f conftest.$ac_objext conftest$ac_exeext
3458: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3459: (eval $ac_link) 2>&5
3460: ac_status=$?
3461: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462: (exit $ac_status); } &&
3463: { ac_try='test -s conftest$ac_exeext'
3464: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465: (eval $ac_try) 2>&5
3466: ac_status=$?
3467: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468: (exit $ac_status); }; }; then
3469: ac_cv_func_gethostbyname=yes
3470: else
3471: echo "$as_me: failed program was:" >&5
3472: cat conftest.$ac_ext >&5
3473: ac_cv_func_gethostbyname=no
3474: fi
3475: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3476: fi
3477: echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3478: echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3479:
3480: if test "$ac_cv_func_gethostbyname" = no ; then
3481:
3482: echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3483: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3484: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3485: echo $ECHO_N "(cached) $ECHO_C" >&6
3486: else
3487: ac_check_lib_save_LIBS=$LIBS
3488: LIBS="-lnsl $LIBS"
3489: cat >conftest.$ac_ext <<_ACEOF
3490: #line $LINENO "configure"
3491: #include "confdefs.h"
3492:
3493: /* Override any gcc2 internal prototype to avoid an error. */
3494: #ifdef __cplusplus
3495: extern "C"
3496: #endif
3497: /* We use char because int might match the return type of a gcc2
3498: builtin and then its argument prototype would still apply. */
3499: char gethostbyname ();
3500: #ifdef F77_DUMMY_MAIN
3501: # ifdef __cplusplus
3502: extern "C"
3503: # endif
3504: int F77_DUMMY_MAIN() { return 1; }
3505: #endif
3506: int
3507: main ()
3508: {
3509: gethostbyname ();
3510: ;
3511: return 0;
3512: }
3513: _ACEOF
3514: rm -f conftest.$ac_objext conftest$ac_exeext
3515: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3516: (eval $ac_link) 2>&5
3517: ac_status=$?
3518: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519: (exit $ac_status); } &&
3520: { ac_try='test -s conftest$ac_exeext'
3521: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522: (eval $ac_try) 2>&5
3523: ac_status=$?
3524: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525: (exit $ac_status); }; }; then
3526: ac_cv_lib_nsl_gethostbyname=yes
3527: else
3528: echo "$as_me: failed program was:" >&5
3529: cat conftest.$ac_ext >&5
3530: ac_cv_lib_nsl_gethostbyname=no
3531: fi
3532: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3533: LIBS=$ac_check_lib_save_LIBS
3534: fi
3535: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3536: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3537: if test $ac_cv_lib_nsl_gethostbyname = yes; then
3538: cat >>confdefs.h <<_ACEOF
3539: #define HAVE_LIBNSL 1
3540: _ACEOF
3541:
3542: LIBS="-lnsl $LIBS"
3543:
3544: fi
3545:
3546: fi
1.2 ! takayama 3547: echo "$as_me:$LINENO: checking for dlopen" >&5
! 3548: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
! 3549: if test "${ac_cv_func_dlopen+set}" = set; then
! 3550: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3551: else
! 3552: cat >conftest.$ac_ext <<_ACEOF
! 3553: #line $LINENO "configure"
! 3554: #include "confdefs.h"
! 3555: /* System header to define __stub macros and hopefully few prototypes,
! 3556: which can conflict with char dlopen (); below. */
! 3557: #include <assert.h>
! 3558: /* Override any gcc2 internal prototype to avoid an error. */
! 3559: #ifdef __cplusplus
! 3560: extern "C"
! 3561: #endif
! 3562: /* We use char because int might match the return type of a gcc2
! 3563: builtin and then its argument prototype would still apply. */
! 3564: char dlopen ();
! 3565: char (*f) ();
! 3566:
! 3567: #ifdef F77_DUMMY_MAIN
! 3568: # ifdef __cplusplus
! 3569: extern "C"
! 3570: # endif
! 3571: int F77_DUMMY_MAIN() { return 1; }
! 3572: #endif
! 3573: int
! 3574: main ()
! 3575: {
! 3576: /* The GNU C library defines this for functions which it implements
! 3577: to always fail with ENOSYS. Some functions are actually named
! 3578: something starting with __ and the normal name is an alias. */
! 3579: #if defined (__stub_dlopen) || defined (__stub___dlopen)
! 3580: choke me
! 3581: #else
! 3582: f = dlopen;
! 3583: #endif
! 3584:
! 3585: ;
! 3586: return 0;
! 3587: }
! 3588: _ACEOF
! 3589: rm -f conftest.$ac_objext conftest$ac_exeext
! 3590: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 3591: (eval $ac_link) 2>&5
! 3592: ac_status=$?
! 3593: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3594: (exit $ac_status); } &&
! 3595: { ac_try='test -s conftest$ac_exeext'
! 3596: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3597: (eval $ac_try) 2>&5
! 3598: ac_status=$?
! 3599: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3600: (exit $ac_status); }; }; then
! 3601: ac_cv_func_dlopen=yes
! 3602: else
! 3603: echo "$as_me: failed program was:" >&5
! 3604: cat conftest.$ac_ext >&5
! 3605: ac_cv_func_dlopen=no
! 3606: fi
! 3607: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 3608: fi
! 3609: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
! 3610: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
! 3611:
! 3612: if test "$ac_cv_func_dlopen" = no ; then
! 3613:
! 3614: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
! 3615: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
! 3616: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
! 3617: echo $ECHO_N "(cached) $ECHO_C" >&6
! 3618: else
! 3619: ac_check_lib_save_LIBS=$LIBS
! 3620: LIBS="-ldl $LIBS"
! 3621: cat >conftest.$ac_ext <<_ACEOF
! 3622: #line $LINENO "configure"
! 3623: #include "confdefs.h"
! 3624:
! 3625: /* Override any gcc2 internal prototype to avoid an error. */
! 3626: #ifdef __cplusplus
! 3627: extern "C"
! 3628: #endif
! 3629: /* We use char because int might match the return type of a gcc2
! 3630: builtin and then its argument prototype would still apply. */
! 3631: char dlopen ();
! 3632: #ifdef F77_DUMMY_MAIN
! 3633: # ifdef __cplusplus
! 3634: extern "C"
! 3635: # endif
! 3636: int F77_DUMMY_MAIN() { return 1; }
! 3637: #endif
! 3638: int
! 3639: main ()
! 3640: {
! 3641: dlopen ();
! 3642: ;
! 3643: return 0;
! 3644: }
! 3645: _ACEOF
! 3646: rm -f conftest.$ac_objext conftest$ac_exeext
! 3647: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 3648: (eval $ac_link) 2>&5
! 3649: ac_status=$?
! 3650: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3651: (exit $ac_status); } &&
! 3652: { ac_try='test -s conftest$ac_exeext'
! 3653: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3654: (eval $ac_try) 2>&5
! 3655: ac_status=$?
! 3656: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3657: (exit $ac_status); }; }; then
! 3658: ac_cv_lib_dl_dlopen=yes
! 3659: else
! 3660: echo "$as_me: failed program was:" >&5
! 3661: cat conftest.$ac_ext >&5
! 3662: ac_cv_lib_dl_dlopen=no
! 3663: fi
! 3664: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 3665: LIBS=$ac_check_lib_save_LIBS
! 3666: fi
! 3667: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
! 3668: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
! 3669: if test $ac_cv_lib_dl_dlopen = yes; then
! 3670: cat >>confdefs.h <<_ACEOF
! 3671: #define HAVE_LIBDL 1
! 3672: _ACEOF
! 3673:
! 3674: LIBS="-ldl $LIBS"
! 3675:
! 3676: fi
! 3677:
! 3678: fi
1.1 ohara 3679:
3680: ac_config_files="$ac_config_files Makefile"
3681: cat >confcache <<\_ACEOF
3682: # This file is a shell script that caches the results of configure
3683: # tests run on this system so they can be shared between configure
3684: # scripts and configure runs, see configure's option --config-cache.
3685: # It is not useful on other systems. If it contains results you don't
3686: # want to keep, you may remove or edit it.
3687: #
3688: # config.status only pays attention to the cache file if you give it
3689: # the --recheck option to rerun configure.
3690: #
3691: # `ac_cv_env_foo' variables (set or unset) will be overriden when
3692: # loading this file, other *unset* `ac_cv_foo' will be assigned the
3693: # following values.
3694:
3695: _ACEOF
3696:
3697: # The following way of writing the cache mishandles newlines in values,
3698: # but we know of no workaround that is simple, portable, and efficient.
3699: # So, don't put newlines in cache variables' values.
3700: # Ultrix sh set writes to stderr and can't be redirected directly,
3701: # and sets the high bit in the cache file unless we assign to the vars.
3702: {
3703: (set) 2>&1 |
3704: case `(ac_space=' '; set | grep ac_space) 2>&1` in
3705: *ac_space=\ *)
3706: # `set' does not quote correctly, so add quotes (double-quote
3707: # substitution turns \\\\ into \\, and sed turns \\ into \).
3708: sed -n \
3709: "s/'/'\\\\''/g;
3710: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3711: ;;
3712: *)
3713: # `set' quotes correctly as required by POSIX, so do not add quotes.
3714: sed -n \
3715: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3716: ;;
3717: esac;
3718: } |
3719: sed '
3720: t clear
3721: : clear
3722: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3723: t end
3724: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3725: : end' >>confcache
3726: if cmp -s $cache_file confcache; then :; else
3727: if test -w $cache_file; then
3728: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3729: cat confcache >$cache_file
3730: else
3731: echo "not updating unwritable cache $cache_file"
3732: fi
3733: fi
3734: rm -f confcache
3735:
3736: test "x$prefix" = xNONE && prefix=$ac_default_prefix
3737: # Let make expand exec_prefix.
3738: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3739:
3740: # VPATH may cause trouble with some makes, so we remove $(srcdir),
3741: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3742: # trailing colons and then remove the whole line if VPATH becomes empty
3743: # (actually we leave an empty line to preserve line numbers).
3744: if test "x$srcdir" = x.; then
3745: ac_vpsub='/^[ ]*VPATH[ ]*=/{
3746: s/:*\$(srcdir):*/:/;
3747: s/:*\${srcdir}:*/:/;
3748: s/:*@srcdir@:*/:/;
3749: s/^\([^=]*=[ ]*\):*/\1/;
3750: s/:*$//;
3751: s/^[^=]*=[ ]*$//;
3752: }'
3753: fi
3754:
3755: # Transform confdefs.h into DEFS.
3756: # Protect against shell expansion while executing Makefile rules.
3757: # Protect against Makefile macro expansion.
3758: #
3759: # If the first sed substitution is executed (which looks for macros that
3760: # take arguments), then we branch to the quote section. Otherwise,
3761: # look for a macro that doesn't take arguments.
3762: cat >confdef2opt.sed <<\_ACEOF
3763: t clear
3764: : clear
3765: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3766: t quote
3767: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3768: t quote
3769: d
3770: : quote
3771: s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3772: s,\[,\\&,g
3773: s,\],\\&,g
3774: s,\$,$$,g
3775: p
3776: _ACEOF
3777: # We use echo to avoid assuming a particular line-breaking character.
3778: # The extra dot is to prevent the shell from consuming trailing
3779: # line-breaks from the sub-command output. A line-break within
3780: # single-quotes doesn't work because, if this script is created in a
3781: # platform that uses two characters for line-breaks (e.g., DOS), tr
3782: # would break.
3783: ac_LF_and_DOT=`echo; echo .`
3784: DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3785: rm -f confdef2opt.sed
3786:
3787:
3788:
3789: : ${CONFIG_STATUS=./config.status}
3790: ac_clean_files_save=$ac_clean_files
3791: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3792: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3793: echo "$as_me: creating $CONFIG_STATUS" >&6;}
3794: cat >$CONFIG_STATUS <<_ACEOF
3795: #! $SHELL
3796: # Generated by $as_me.
3797: # Run this file to recreate the current configuration.
3798: # Compiler output produced by configure, useful for debugging
3799: # configure, is in config.log if it exists.
3800:
3801: debug=false
3802: SHELL=\${CONFIG_SHELL-$SHELL}
3803: _ACEOF
3804:
3805: cat >>$CONFIG_STATUS <<\_ACEOF
3806:
3807: ## --------------------- ##
3808: ## M4sh Initialization. ##
3809: ## --------------------- ##
3810:
3811: # Be Bourne compatible
3812: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3813: emulate sh
3814: NULLCMD=:
3815: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3816: set -o posix
3817: fi
3818:
3819: # NLS nuisances.
3820: # Support unset when possible.
3821: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3822: as_unset=unset
3823: else
3824: as_unset=false
3825: fi
3826:
3827: (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
3828: { $as_unset LANG || test "${LANG+set}" != set; } ||
3829: { LANG=C; export LANG; }
3830: (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
3831: { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
3832: { LC_ALL=C; export LC_ALL; }
3833: (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
3834: { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
3835: { LC_TIME=C; export LC_TIME; }
3836: (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
3837: { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
3838: { LC_CTYPE=C; export LC_CTYPE; }
3839: (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
3840: { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
3841: { LANGUAGE=C; export LANGUAGE; }
3842: (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
3843: { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
3844: { LC_COLLATE=C; export LC_COLLATE; }
3845: (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
3846: { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
3847: { LC_NUMERIC=C; export LC_NUMERIC; }
3848: (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
3849: { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
3850: { LC_MESSAGES=C; export LC_MESSAGES; }
3851:
3852:
3853: # Name of the executable.
3854: as_me=`(basename "$0") 2>/dev/null ||
3855: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3856: X"$0" : 'X\(//\)$' \| \
3857: X"$0" : 'X\(/\)$' \| \
3858: . : '\(.\)' 2>/dev/null ||
3859: echo X/"$0" |
3860: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3861: /^X\/\(\/\/\)$/{ s//\1/; q; }
3862: /^X\/\(\/\).*/{ s//\1/; q; }
3863: s/.*/./; q'`
3864:
3865: # PATH needs CR, and LINENO needs CR and PATH.
3866: # Avoid depending upon Character Ranges.
3867: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3868: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3869: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3870: as_cr_digits='0123456789'
3871: as_cr_alnum=$as_cr_Letters$as_cr_digits
3872:
3873: # The user is always right.
3874: if test "${PATH_SEPARATOR+set}" != set; then
3875: echo "#! /bin/sh" >conftest.sh
3876: echo "exit 0" >>conftest.sh
3877: chmod +x conftest.sh
3878: if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
3879: PATH_SEPARATOR=';'
3880: else
3881: PATH_SEPARATOR=:
3882: fi
3883: rm -f conftest.sh
3884: fi
3885:
3886:
3887: as_lineno_1=$LINENO
3888: as_lineno_2=$LINENO
3889: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3890: test "x$as_lineno_1" != "x$as_lineno_2" &&
3891: test "x$as_lineno_3" = "x$as_lineno_2" || {
3892: # Find who we are. Look in the path if we contain no path at all
3893: # relative or not.
3894: case $0 in
3895: *[\\/]* ) as_myself=$0 ;;
3896: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897: for as_dir in $PATH
3898: do
3899: IFS=$as_save_IFS
3900: test -z "$as_dir" && as_dir=.
3901: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3902: done
3903:
3904: ;;
3905: esac
3906: # We did not find ourselves, most probably we were run as `sh COMMAND'
3907: # in which case we are not to be found in the path.
3908: if test "x$as_myself" = x; then
3909: as_myself=$0
3910: fi
3911: if test ! -f "$as_myself"; then
3912: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3913: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3914: { (exit 1); exit 1; }; }
3915: fi
3916: case $CONFIG_SHELL in
3917: '')
3918: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3920: do
3921: IFS=$as_save_IFS
3922: test -z "$as_dir" && as_dir=.
3923: for as_base in sh bash ksh sh5; do
3924: case $as_dir in
3925: /*)
3926: if ("$as_dir/$as_base" -c '
3927: as_lineno_1=$LINENO
3928: as_lineno_2=$LINENO
3929: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3930: test "x$as_lineno_1" != "x$as_lineno_2" &&
3931: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3932: CONFIG_SHELL=$as_dir/$as_base
3933: export CONFIG_SHELL
3934: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3935: fi;;
3936: esac
3937: done
3938: done
3939: ;;
3940: esac
3941:
3942: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3943: # uniformly replaced by the line number. The first 'sed' inserts a
3944: # line-number line before each line; the second 'sed' does the real
3945: # work. The second script uses 'N' to pair each line-number line
3946: # with the numbered line, and appends trailing '-' during
3947: # substitution so that $LINENO is not a special case at line end.
3948: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3949: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3950: sed '=' <$as_myself |
3951: sed '
3952: N
3953: s,$,-,
3954: : loop
3955: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3956: t loop
3957: s,-$,,
3958: s,^['$as_cr_digits']*\n,,
3959: ' >$as_me.lineno &&
3960: chmod +x $as_me.lineno ||
3961: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3962: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3963: { (exit 1); exit 1; }; }
3964:
3965: # Don't try to exec as it changes $[0], causing all sort of problems
3966: # (the dirname of $[0] is not the place where we might find the
3967: # original and so on. Autoconf is especially sensible to this).
3968: . ./$as_me.lineno
3969: # Exit status is that of the last command.
3970: exit
3971: }
3972:
3973:
3974: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3975: *c*,-n*) ECHO_N= ECHO_C='
3976: ' ECHO_T=' ' ;;
3977: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3978: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3979: esac
3980:
3981: if expr a : '\(a\)' >/dev/null 2>&1; then
3982: as_expr=expr
3983: else
3984: as_expr=false
3985: fi
3986:
3987: rm -f conf$$ conf$$.exe conf$$.file
3988: echo >conf$$.file
3989: if ln -s conf$$.file conf$$ 2>/dev/null; then
3990: # We could just check for DJGPP; but this test a) works b) is more generic
3991: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3992: if test -f conf$$.exe; then
3993: # Don't use ln at all; we don't have any links
3994: as_ln_s='cp -p'
3995: else
3996: as_ln_s='ln -s'
3997: fi
3998: elif ln conf$$.file conf$$ 2>/dev/null; then
3999: as_ln_s=ln
4000: else
4001: as_ln_s='cp -p'
4002: fi
4003: rm -f conf$$ conf$$.exe conf$$.file
4004:
4005: as_executable_p="test -f"
4006:
4007: # Sed expression to map a string onto a valid CPP name.
4008: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4009:
4010: # Sed expression to map a string onto a valid variable name.
4011: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4012:
4013:
4014: # IFS
4015: # We need space, tab and new line, in precisely that order.
4016: as_nl='
4017: '
4018: IFS=" $as_nl"
4019:
4020: # CDPATH.
4021: $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
4022:
4023: exec 6>&1
4024:
4025: # Open the log real soon, to keep \$[0] and so on meaningful, and to
4026: # report actual input values of CONFIG_FILES etc. instead of their
4027: # values after options handling. Logging --version etc. is OK.
4028: exec 5>>config.log
4029: {
4030: echo
4031: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4032: ## Running $as_me. ##
4033: _ASBOX
4034: } >&5
4035: cat >&5 <<_CSEOF
4036:
4037: This file was extended by $as_me, which was
4038: generated by GNU Autoconf 2.53. Invocation command line was
4039:
4040: CONFIG_FILES = $CONFIG_FILES
4041: CONFIG_HEADERS = $CONFIG_HEADERS
4042: CONFIG_LINKS = $CONFIG_LINKS
4043: CONFIG_COMMANDS = $CONFIG_COMMANDS
4044: $ $0 $@
4045:
4046: _CSEOF
4047: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4048: echo >&5
4049: _ACEOF
4050:
4051: # Files that config.status was made for.
4052: if test -n "$ac_config_files"; then
4053: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4054: fi
4055:
4056: if test -n "$ac_config_headers"; then
4057: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4058: fi
4059:
4060: if test -n "$ac_config_links"; then
4061: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4062: fi
4063:
4064: if test -n "$ac_config_commands"; then
4065: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4066: fi
4067:
4068: cat >>$CONFIG_STATUS <<\_ACEOF
4069:
4070: ac_cs_usage="\
4071: \`$as_me' instantiates files from templates according to the
4072: current configuration.
4073:
4074: Usage: $0 [OPTIONS] [FILE]...
4075:
4076: -h, --help print this help, then exit
4077: -V, --version print version number, then exit
4078: -d, --debug don't remove temporary files
4079: --recheck update $as_me by reconfiguring in the same conditions
4080: --file=FILE[:TEMPLATE]
4081: instantiate the configuration file FILE
4082:
4083: Configuration files:
4084: $config_files
4085:
4086: Report bugs to <bug-autoconf@gnu.org>."
4087: _ACEOF
4088:
4089: cat >>$CONFIG_STATUS <<_ACEOF
4090: ac_cs_version="\\
4091: config.status
4092: configured by $0, generated by GNU Autoconf 2.53,
4093: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4094:
4095: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4096: Free Software Foundation, Inc.
4097: This config.status script is free software; the Free Software Foundation
4098: gives unlimited permission to copy, distribute and modify it."
4099: srcdir=$srcdir
4100: _ACEOF
4101:
4102: cat >>$CONFIG_STATUS <<\_ACEOF
4103: # If no file are specified by the user, then we need to provide default
4104: # value. By we need to know if files were specified by the user.
4105: ac_need_defaults=:
4106: while test $# != 0
4107: do
4108: case $1 in
4109: --*=*)
4110: ac_option=`expr "x$1" : 'x\([^=]*\)='`
4111: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4112: shift
4113: set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4114: shift
4115: ;;
4116: -*);;
4117: *) # This is not an option, so the user has probably given explicit
4118: # arguments.
4119: ac_need_defaults=false;;
4120: esac
4121:
4122: case $1 in
4123: # Handling of the options.
4124: _ACEOF
4125: cat >>$CONFIG_STATUS <<_ACEOF
4126: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4127: echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4128: exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4129: _ACEOF
4130: cat >>$CONFIG_STATUS <<\_ACEOF
4131: --version | --vers* | -V )
4132: echo "$ac_cs_version"; exit 0 ;;
4133: --he | --h)
4134: # Conflict between --help and --header
4135: { { echo "$as_me:$LINENO: error: ambiguous option: $1
4136: Try \`$0 --help' for more information." >&5
4137: echo "$as_me: error: ambiguous option: $1
4138: Try \`$0 --help' for more information." >&2;}
4139: { (exit 1); exit 1; }; };;
4140: --help | --hel | -h )
4141: echo "$ac_cs_usage"; exit 0 ;;
4142: --debug | --d* | -d )
4143: debug=: ;;
4144: --file | --fil | --fi | --f )
4145: shift
4146: CONFIG_FILES="$CONFIG_FILES $1"
4147: ac_need_defaults=false;;
4148: --header | --heade | --head | --hea )
4149: shift
4150: CONFIG_HEADERS="$CONFIG_HEADERS $1"
4151: ac_need_defaults=false;;
4152:
4153: # This is an error.
4154: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4155: Try \`$0 --help' for more information." >&5
4156: echo "$as_me: error: unrecognized option: $1
4157: Try \`$0 --help' for more information." >&2;}
4158: { (exit 1); exit 1; }; } ;;
4159:
4160: *) ac_config_targets="$ac_config_targets $1" ;;
4161:
4162: esac
4163: shift
4164: done
4165:
4166: _ACEOF
4167:
4168:
4169:
4170:
4171:
4172: cat >>$CONFIG_STATUS <<\_ACEOF
4173: for ac_config_target in $ac_config_targets
4174: do
4175: case "$ac_config_target" in
4176: # Handling of arguments.
4177: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4178: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4179: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4180: { (exit 1); exit 1; }; };;
4181: esac
4182: done
4183:
4184: # If the user did not use the arguments to specify the items to instantiate,
4185: # then the envvar interface is used. Set only those that are not.
4186: # We use the long form for the default assignment because of an extremely
4187: # bizarre bug on SunOS 4.1.3.
4188: if $ac_need_defaults; then
4189: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4190: fi
4191:
4192: # Create a temporary directory, and hook for its removal unless debugging.
4193: $debug ||
4194: {
4195: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4196: trap '{ (exit 1); exit 1; }' 1 2 13 15
4197: }
4198:
4199: # Create a (secure) tmp directory for tmp files.
4200: : ${TMPDIR=/tmp}
4201: {
4202: tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4203: test -n "$tmp" && test -d "$tmp"
4204: } ||
4205: {
4206: tmp=$TMPDIR/cs$$-$RANDOM
4207: (umask 077 && mkdir $tmp)
4208: } ||
4209: {
4210: echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4211: { (exit 1); exit 1; }
4212: }
4213:
4214: _ACEOF
4215:
4216: cat >>$CONFIG_STATUS <<_ACEOF
4217:
4218: #
4219: # CONFIG_FILES section.
4220: #
4221:
4222: # No need to generate the scripts if there are no CONFIG_FILES.
4223: # This happens for instance when ./config.status config.h
4224: if test -n "\$CONFIG_FILES"; then
4225: # Protect against being on the right side of a sed subst in config.status.
4226: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4227: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4228: s,@SHELL@,$SHELL,;t t
4229: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4230: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4231: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4232: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4233: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4234: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4235: s,@exec_prefix@,$exec_prefix,;t t
4236: s,@prefix@,$prefix,;t t
4237: s,@program_transform_name@,$program_transform_name,;t t
4238: s,@bindir@,$bindir,;t t
4239: s,@sbindir@,$sbindir,;t t
4240: s,@libexecdir@,$libexecdir,;t t
4241: s,@datadir@,$datadir,;t t
4242: s,@sysconfdir@,$sysconfdir,;t t
4243: s,@sharedstatedir@,$sharedstatedir,;t t
4244: s,@localstatedir@,$localstatedir,;t t
4245: s,@libdir@,$libdir,;t t
4246: s,@includedir@,$includedir,;t t
4247: s,@oldincludedir@,$oldincludedir,;t t
4248: s,@infodir@,$infodir,;t t
4249: s,@mandir@,$mandir,;t t
4250: s,@build_alias@,$build_alias,;t t
4251: s,@host_alias@,$host_alias,;t t
4252: s,@target_alias@,$target_alias,;t t
4253: s,@DEFS@,$DEFS,;t t
4254: s,@ECHO_C@,$ECHO_C,;t t
4255: s,@ECHO_N@,$ECHO_N,;t t
4256: s,@ECHO_T@,$ECHO_T,;t t
4257: s,@LIBS@,$LIBS,;t t
4258: s,@CC@,$CC,;t t
4259: s,@CFLAGS@,$CFLAGS,;t t
4260: s,@LDFLAGS@,$LDFLAGS,;t t
4261: s,@CPPFLAGS@,$CPPFLAGS,;t t
4262: s,@ac_ct_CC@,$ac_ct_CC,;t t
4263: s,@EXEEXT@,$EXEEXT,;t t
4264: s,@OBJEXT@,$OBJEXT,;t t
4265: s,@CPP@,$CPP,;t t
4266: s,@X_CFLAGS@,$X_CFLAGS,;t t
4267: s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
4268: s,@X_LIBS@,$X_LIBS,;t t
4269: s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
4270: CEOF
4271:
4272: _ACEOF
4273:
4274: cat >>$CONFIG_STATUS <<\_ACEOF
4275: # Split the substitutions into bite-sized pieces for seds with
4276: # small command number limits, like on Digital OSF/1 and HP-UX.
4277: ac_max_sed_lines=48
4278: ac_sed_frag=1 # Number of current file.
4279: ac_beg=1 # First line for current file.
4280: ac_end=$ac_max_sed_lines # Line after last line for current file.
4281: ac_more_lines=:
4282: ac_sed_cmds=
4283: while $ac_more_lines; do
4284: if test $ac_beg -gt 1; then
4285: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4286: else
4287: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4288: fi
4289: if test ! -s $tmp/subs.frag; then
4290: ac_more_lines=false
4291: else
4292: # The purpose of the label and of the branching condition is to
4293: # speed up the sed processing (if there are no `@' at all, there
4294: # is no need to browse any of the substitutions).
4295: # These are the two extra sed commands mentioned above.
4296: (echo ':t
4297: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4298: if test -z "$ac_sed_cmds"; then
4299: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4300: else
4301: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4302: fi
4303: ac_sed_frag=`expr $ac_sed_frag + 1`
4304: ac_beg=$ac_end
4305: ac_end=`expr $ac_end + $ac_max_sed_lines`
4306: fi
4307: done
4308: if test -z "$ac_sed_cmds"; then
4309: ac_sed_cmds=cat
4310: fi
4311: fi # test -n "$CONFIG_FILES"
4312:
4313: _ACEOF
4314: cat >>$CONFIG_STATUS <<\_ACEOF
4315: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4316: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4317: case $ac_file in
4318: - | *:- | *:-:* ) # input from stdin
4319: cat >$tmp/stdin
4320: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4321: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4322: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4323: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4324: * ) ac_file_in=$ac_file.in ;;
4325: esac
4326:
4327: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4328: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4329: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4330: X"$ac_file" : 'X\(//\)[^/]' \| \
4331: X"$ac_file" : 'X\(//\)$' \| \
4332: X"$ac_file" : 'X\(/\)' \| \
4333: . : '\(.\)' 2>/dev/null ||
4334: echo X"$ac_file" |
4335: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4336: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4337: /^X\(\/\/\)$/{ s//\1/; q; }
4338: /^X\(\/\).*/{ s//\1/; q; }
4339: s/.*/./; q'`
4340: { case "$ac_dir" in
4341: [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4342: *) as_incr_dir=.;;
4343: esac
4344: as_dummy="$ac_dir"
4345: for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4346: case $as_mkdir_dir in
4347: # Skip DOS drivespec
4348: ?:) as_incr_dir=$as_mkdir_dir ;;
4349: *)
4350: as_incr_dir=$as_incr_dir/$as_mkdir_dir
4351: test -d "$as_incr_dir" ||
4352: mkdir "$as_incr_dir" ||
4353: { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
4354: echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
4355: { (exit 1); exit 1; }; }
4356: ;;
4357: esac
4358: done; }
4359:
4360: ac_builddir=.
4361:
4362: if test "$ac_dir" != .; then
4363: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4364: # A "../" for each directory in $ac_dir_suffix.
4365: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4366: else
4367: ac_dir_suffix= ac_top_builddir=
4368: fi
4369:
4370: case $srcdir in
4371: .) # No --srcdir option. We are building in place.
4372: ac_srcdir=.
4373: if test -z "$ac_top_builddir"; then
4374: ac_top_srcdir=.
4375: else
4376: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4377: fi ;;
4378: [\\/]* | ?:[\\/]* ) # Absolute path.
4379: ac_srcdir=$srcdir$ac_dir_suffix;
4380: ac_top_srcdir=$srcdir ;;
4381: *) # Relative path.
4382: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4383: ac_top_srcdir=$ac_top_builddir$srcdir ;;
4384: esac
4385: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4386: # absolute.
4387: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4388: ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
4389: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4390: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4391:
4392:
4393:
4394: if test x"$ac_file" != x-; then
4395: { echo "$as_me:$LINENO: creating $ac_file" >&5
4396: echo "$as_me: creating $ac_file" >&6;}
4397: rm -f "$ac_file"
4398: fi
4399: # Let's still pretend it is `configure' which instantiates (i.e., don't
4400: # use $as_me), people would be surprised to read:
4401: # /* config.h. Generated by config.status. */
4402: if test x"$ac_file" = x-; then
4403: configure_input=
4404: else
4405: configure_input="$ac_file. "
4406: fi
4407: configure_input=$configure_input"Generated from `echo $ac_file_in |
4408: sed 's,.*/,,'` by configure."
4409:
4410: # First look for the input files in the build tree, otherwise in the
4411: # src tree.
4412: ac_file_inputs=`IFS=:
4413: for f in $ac_file_in; do
4414: case $f in
4415: -) echo $tmp/stdin ;;
4416: [\\/$]*)
4417: # Absolute (can't be DOS-style, as IFS=:)
4418: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4419: echo "$as_me: error: cannot find input file: $f" >&2;}
4420: { (exit 1); exit 1; }; }
4421: echo $f;;
4422: *) # Relative
4423: if test -f "$f"; then
4424: # Build tree
4425: echo $f
4426: elif test -f "$srcdir/$f"; then
4427: # Source tree
4428: echo $srcdir/$f
4429: else
4430: # /dev/null tree
4431: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4432: echo "$as_me: error: cannot find input file: $f" >&2;}
4433: { (exit 1); exit 1; }; }
4434: fi;;
4435: esac
4436: done` || { (exit 1); exit 1; }
4437: _ACEOF
4438: cat >>$CONFIG_STATUS <<_ACEOF
4439: sed "$ac_vpsub
4440: $extrasub
4441: _ACEOF
4442: cat >>$CONFIG_STATUS <<\_ACEOF
4443: :t
4444: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4445: s,@configure_input@,$configure_input,;t t
4446: s,@srcdir@,$ac_srcdir,;t t
4447: s,@abs_srcdir@,$ac_abs_srcdir,;t t
4448: s,@top_srcdir@,$ac_top_srcdir,;t t
4449: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4450: s,@builddir@,$ac_builddir,;t t
4451: s,@abs_builddir@,$ac_abs_builddir,;t t
4452: s,@top_builddir@,$ac_top_builddir,;t t
4453: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4454: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4455: rm -f $tmp/stdin
4456: if test x"$ac_file" != x-; then
4457: mv $tmp/out $ac_file
4458: else
4459: cat $tmp/out
4460: rm -f $tmp/out
4461: fi
4462:
4463: done
4464: _ACEOF
4465:
4466: cat >>$CONFIG_STATUS <<\_ACEOF
4467:
4468: { (exit 0); exit 0; }
4469: _ACEOF
4470: chmod +x $CONFIG_STATUS
4471: ac_clean_files=$ac_clean_files_save
4472:
4473:
4474: # configure is writing to config.log, and then calls config.status.
4475: # config.status does its own redirection, appending to config.log.
4476: # Unfortunately, on DOS this fails, as config.log is still kept open
4477: # by configure, so config.status won't be able to write to it; its
4478: # output is simply discarded. So we exec the FD to /dev/null,
4479: # effectively closing config.log, so it can be properly (re)opened and
4480: # appended to by config.status. When coming back to configure, we
4481: # need to make the FD available again.
4482: if test "$no_create" != yes; then
4483: ac_cs_success=:
4484: exec 5>/dev/null
4485: $SHELL $CONFIG_STATUS || ac_cs_success=false
4486: exec 5>>config.log
4487: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4488: # would make configure fail if this is the last instruction.
4489: $ac_cs_success || { (exit 1); exit 1; }
4490: fi
4491:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>