1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.57. |
---|
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 | ## M4sh Initialization. ## |
---|
11 | ## --------------------- ## |
---|
12 | |
---|
13 | # Be Bourne compatible |
---|
14 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
15 | emulate sh |
---|
16 | NULLCMD=: |
---|
17 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
18 | # is contrary to our usage. Disable this feature. |
---|
19 | alias -g '${1+"$@"}'='"$@"' |
---|
20 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
21 | set -o posix |
---|
22 | fi |
---|
23 | |
---|
24 | # Support unset when possible. |
---|
25 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
---|
26 | as_unset=unset |
---|
27 | else |
---|
28 | as_unset=false |
---|
29 | fi |
---|
30 | |
---|
31 | |
---|
32 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
33 | $as_unset ENV MAIL MAILPATH |
---|
34 | PS1='$ ' |
---|
35 | PS2='> ' |
---|
36 | PS4='+ ' |
---|
37 | |
---|
38 | # NLS nuisances. |
---|
39 | for as_var in \ |
---|
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
42 | LC_TELEPHONE LC_TIME |
---|
43 | do |
---|
44 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
45 | eval $as_var=C; export $as_var |
---|
46 | else |
---|
47 | $as_unset $as_var |
---|
48 | fi |
---|
49 | done |
---|
50 | |
---|
51 | # Required to use basename. |
---|
52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
53 | as_expr=expr |
---|
54 | else |
---|
55 | as_expr=false |
---|
56 | fi |
---|
57 | |
---|
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
59 | as_basename=basename |
---|
60 | else |
---|
61 | as_basename=false |
---|
62 | fi |
---|
63 | |
---|
64 | |
---|
65 | # Name of the executable. |
---|
66 | as_me=`$as_basename "$0" || |
---|
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
68 | X"$0" : 'X\(//\)$' \| \ |
---|
69 | X"$0" : 'X\(/\)$' \| \ |
---|
70 | . : '\(.\)' 2>/dev/null || |
---|
71 | echo X/"$0" | |
---|
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
74 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
75 | s/.*/./; q'` |
---|
76 | |
---|
77 | |
---|
78 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
79 | # Avoid depending upon Character Ranges. |
---|
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
83 | as_cr_digits='0123456789' |
---|
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
85 | |
---|
86 | # The user is always right. |
---|
87 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
88 | echo "#! /bin/sh" >conf$$.sh |
---|
89 | echo "exit 0" >>conf$$.sh |
---|
90 | chmod +x conf$$.sh |
---|
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
92 | PATH_SEPARATOR=';' |
---|
93 | else |
---|
94 | PATH_SEPARATOR=: |
---|
95 | fi |
---|
96 | rm -f conf$$.sh |
---|
97 | fi |
---|
98 | |
---|
99 | |
---|
100 | as_lineno_1=$LINENO |
---|
101 | as_lineno_2=$LINENO |
---|
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
103 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
105 | # Find who we are. Look in the path if we contain no path at all |
---|
106 | # relative or not. |
---|
107 | case $0 in |
---|
108 | *[\\/]* ) as_myself=$0 ;; |
---|
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
110 | for as_dir in $PATH |
---|
111 | do |
---|
112 | IFS=$as_save_IFS |
---|
113 | test -z "$as_dir" && as_dir=. |
---|
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
115 | done |
---|
116 | |
---|
117 | ;; |
---|
118 | esac |
---|
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
120 | # in which case we are not to be found in the path. |
---|
121 | if test "x$as_myself" = x; then |
---|
122 | as_myself=$0 |
---|
123 | fi |
---|
124 | if test ! -f "$as_myself"; then |
---|
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
---|
126 | { (exit 1); exit 1; }; } |
---|
127 | fi |
---|
128 | case $CONFIG_SHELL in |
---|
129 | '') |
---|
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
132 | do |
---|
133 | IFS=$as_save_IFS |
---|
134 | test -z "$as_dir" && as_dir=. |
---|
135 | for as_base in sh bash ksh sh5; do |
---|
136 | case $as_dir in |
---|
137 | /*) |
---|
138 | if ("$as_dir/$as_base" -c ' |
---|
139 | as_lineno_1=$LINENO |
---|
140 | as_lineno_2=$LINENO |
---|
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
146 | CONFIG_SHELL=$as_dir/$as_base |
---|
147 | export CONFIG_SHELL |
---|
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
149 | fi;; |
---|
150 | esac |
---|
151 | done |
---|
152 | done |
---|
153 | ;; |
---|
154 | esac |
---|
155 | |
---|
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
157 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
158 | # line-number line before each line; the second 'sed' does the real |
---|
159 | # work. The second script uses 'N' to pair each line-number line |
---|
160 | # with the numbered line, and appends trailing '-' during |
---|
161 | # substitution so that $LINENO is not a special case at line end. |
---|
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
164 | sed '=' <$as_myself | |
---|
165 | sed ' |
---|
166 | N |
---|
167 | s,$,-, |
---|
168 | : loop |
---|
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
170 | t loop |
---|
171 | s,-$,, |
---|
172 | s,^['$as_cr_digits']*\n,, |
---|
173 | ' >$as_me.lineno && |
---|
174 | chmod +x $as_me.lineno || |
---|
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
176 | { (exit 1); exit 1; }; } |
---|
177 | |
---|
178 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
179 | # (the dirname of $[0] is not the place where we might find the |
---|
180 | # original and so on. Autoconf is especially sensible to this). |
---|
181 | . ./$as_me.lineno |
---|
182 | # Exit status is that of the last command. |
---|
183 | exit |
---|
184 | } |
---|
185 | |
---|
186 | |
---|
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
188 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
189 | ' ECHO_T=' ' ;; |
---|
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
192 | esac |
---|
193 | |
---|
194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
195 | as_expr=expr |
---|
196 | else |
---|
197 | as_expr=false |
---|
198 | fi |
---|
199 | |
---|
200 | rm -f conf$$ conf$$.exe conf$$.file |
---|
201 | echo >conf$$.file |
---|
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
203 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
205 | if test -f conf$$.exe; then |
---|
206 | # Don't use ln at all; we don't have any links |
---|
207 | as_ln_s='cp -p' |
---|
208 | else |
---|
209 | as_ln_s='ln -s' |
---|
210 | fi |
---|
211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
212 | as_ln_s=ln |
---|
213 | else |
---|
214 | as_ln_s='cp -p' |
---|
215 | fi |
---|
216 | rm -f conf$$ conf$$.exe conf$$.file |
---|
217 | |
---|
218 | if mkdir -p . 2>/dev/null; then |
---|
219 | as_mkdir_p=: |
---|
220 | else |
---|
221 | as_mkdir_p=false |
---|
222 | fi |
---|
223 | |
---|
224 | as_executable_p="test -f" |
---|
225 | |
---|
226 | # Sed expression to map a string onto a valid CPP name. |
---|
227 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
---|
228 | |
---|
229 | # Sed expression to map a string onto a valid variable name. |
---|
230 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
---|
231 | |
---|
232 | |
---|
233 | # IFS |
---|
234 | # We need space, tab and new line, in precisely that order. |
---|
235 | as_nl=' |
---|
236 | ' |
---|
237 | IFS=" $as_nl" |
---|
238 | |
---|
239 | # CDPATH. |
---|
240 | $as_unset CDPATH |
---|
241 | |
---|
242 | |
---|
243 | # Name of the host. |
---|
244 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
245 | # so uname gets run too. |
---|
246 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
247 | |
---|
248 | exec 6>&1 |
---|
249 | |
---|
250 | # |
---|
251 | # Initializations. |
---|
252 | # |
---|
253 | ac_default_prefix=/usr/local |
---|
254 | ac_config_libobj_dir=. |
---|
255 | cross_compiling=no |
---|
256 | subdirs= |
---|
257 | MFLAGS= |
---|
258 | MAKEFLAGS= |
---|
259 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
260 | |
---|
261 | # Maximum number of lines to put in a shell here document. |
---|
262 | # This variable seems obsolete. It should probably be removed, and |
---|
263 | # only ac_max_sed_lines should be used. |
---|
264 | : ${ac_max_here_lines=38} |
---|
265 | |
---|
266 | # Identity of this package. |
---|
267 | PACKAGE_NAME= |
---|
268 | PACKAGE_TARNAME= |
---|
269 | PACKAGE_VERSION= |
---|
270 | PACKAGE_STRING= |
---|
271 | PACKAGE_BUGREPORT= |
---|
272 | |
---|
273 | ac_unique_file="src/cmd/cmd.h" |
---|
274 | # Factoring default headers for most tests. |
---|
275 | ac_includes_default="\ |
---|
276 | #include <stdio.h> |
---|
277 | #if HAVE_SYS_TYPES_H |
---|
278 | # include <sys/types.h> |
---|
279 | #endif |
---|
280 | #if HAVE_SYS_STAT_H |
---|
281 | # include <sys/stat.h> |
---|
282 | #endif |
---|
283 | #if STDC_HEADERS |
---|
284 | # include <stdlib.h> |
---|
285 | # include <stddef.h> |
---|
286 | #else |
---|
287 | # if HAVE_STDLIB_H |
---|
288 | # include <stdlib.h> |
---|
289 | # endif |
---|
290 | #endif |
---|
291 | #if HAVE_STRING_H |
---|
292 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
293 | # include <memory.h> |
---|
294 | # endif |
---|
295 | # include <string.h> |
---|
296 | #endif |
---|
297 | #if HAVE_STRINGS_H |
---|
298 | # include <strings.h> |
---|
299 | #endif |
---|
300 | #if HAVE_INTTYPES_H |
---|
301 | # include <inttypes.h> |
---|
302 | #else |
---|
303 | # if HAVE_STDINT_H |
---|
304 | # include <stdint.h> |
---|
305 | # endif |
---|
306 | #endif |
---|
307 | #if HAVE_UNISTD_H |
---|
308 | # include <unistd.h> |
---|
309 | #endif" |
---|
310 | |
---|
311 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS glulibdir gluincdir vislibdir local_srcdir BDDLIB ZCHAFF AR RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINKER PLINKER LEX LEXLIB LEX_OUTPUT_ROOT YACC CPP EGREP LIBDIRS LIBOBJS AWK LTLIBOBJS' |
---|
312 | ac_subst_files='' |
---|
313 | |
---|
314 | # Initialize some variables set by options. |
---|
315 | ac_init_help= |
---|
316 | ac_init_version=false |
---|
317 | # The variables have the same names as the options, with |
---|
318 | # dashes changed to underlines. |
---|
319 | cache_file=/dev/null |
---|
320 | exec_prefix=NONE |
---|
321 | no_create= |
---|
322 | no_recursion= |
---|
323 | prefix=NONE |
---|
324 | program_prefix=NONE |
---|
325 | program_suffix=NONE |
---|
326 | program_transform_name=s,x,x, |
---|
327 | silent= |
---|
328 | site= |
---|
329 | srcdir= |
---|
330 | verbose= |
---|
331 | x_includes=NONE |
---|
332 | x_libraries=NONE |
---|
333 | |
---|
334 | # Installation directory options. |
---|
335 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
336 | # and all the variables that are supposed to be based on exec_prefix |
---|
337 | # by default will actually change. |
---|
338 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
339 | bindir='${exec_prefix}/bin' |
---|
340 | sbindir='${exec_prefix}/sbin' |
---|
341 | libexecdir='${exec_prefix}/libexec' |
---|
342 | datadir='${prefix}/share' |
---|
343 | sysconfdir='${prefix}/etc' |
---|
344 | sharedstatedir='${prefix}/com' |
---|
345 | localstatedir='${prefix}/var' |
---|
346 | libdir='${exec_prefix}/lib' |
---|
347 | includedir='${prefix}/include' |
---|
348 | oldincludedir='/usr/include' |
---|
349 | infodir='${prefix}/info' |
---|
350 | mandir='${prefix}/man' |
---|
351 | |
---|
352 | ac_prev= |
---|
353 | for ac_option |
---|
354 | do |
---|
355 | # If the previous option needs an argument, assign it. |
---|
356 | if test -n "$ac_prev"; then |
---|
357 | eval "$ac_prev=\$ac_option" |
---|
358 | ac_prev= |
---|
359 | continue |
---|
360 | fi |
---|
361 | |
---|
362 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
363 | |
---|
364 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
365 | |
---|
366 | case $ac_option in |
---|
367 | |
---|
368 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
369 | ac_prev=bindir ;; |
---|
370 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
371 | bindir=$ac_optarg ;; |
---|
372 | |
---|
373 | -build | --build | --buil | --bui | --bu) |
---|
374 | ac_prev=build_alias ;; |
---|
375 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
376 | build_alias=$ac_optarg ;; |
---|
377 | |
---|
378 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
379 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
380 | ac_prev=cache_file ;; |
---|
381 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
382 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
383 | cache_file=$ac_optarg ;; |
---|
384 | |
---|
385 | --config-cache | -C) |
---|
386 | cache_file=config.cache ;; |
---|
387 | |
---|
388 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
389 | ac_prev=datadir ;; |
---|
390 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
391 | | --da=*) |
---|
392 | datadir=$ac_optarg ;; |
---|
393 | |
---|
394 | -disable-* | --disable-*) |
---|
395 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
396 | # Reject names that are not valid shell variable names. |
---|
397 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
398 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
399 | { (exit 1); exit 1; }; } |
---|
400 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
401 | eval "enable_$ac_feature=no" ;; |
---|
402 | |
---|
403 | -enable-* | --enable-*) |
---|
404 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
405 | # Reject names that are not valid shell variable names. |
---|
406 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
407 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
408 | { (exit 1); exit 1; }; } |
---|
409 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
410 | case $ac_option in |
---|
411 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
412 | *) ac_optarg=yes ;; |
---|
413 | esac |
---|
414 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
415 | |
---|
416 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
417 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
418 | | --exec | --exe | --ex) |
---|
419 | ac_prev=exec_prefix ;; |
---|
420 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
421 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
422 | | --exec=* | --exe=* | --ex=*) |
---|
423 | exec_prefix=$ac_optarg ;; |
---|
424 | |
---|
425 | -gas | --gas | --ga | --g) |
---|
426 | # Obsolete; use --with-gas. |
---|
427 | with_gas=yes ;; |
---|
428 | |
---|
429 | -help | --help | --hel | --he | -h) |
---|
430 | ac_init_help=long ;; |
---|
431 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
432 | ac_init_help=recursive ;; |
---|
433 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
434 | ac_init_help=short ;; |
---|
435 | |
---|
436 | -host | --host | --hos | --ho) |
---|
437 | ac_prev=host_alias ;; |
---|
438 | -host=* | --host=* | --hos=* | --ho=*) |
---|
439 | host_alias=$ac_optarg ;; |
---|
440 | |
---|
441 | -includedir | --includedir | --includedi | --included | --include \ |
---|
442 | | --includ | --inclu | --incl | --inc) |
---|
443 | ac_prev=includedir ;; |
---|
444 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
445 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
446 | includedir=$ac_optarg ;; |
---|
447 | |
---|
448 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
449 | ac_prev=infodir ;; |
---|
450 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
451 | infodir=$ac_optarg ;; |
---|
452 | |
---|
453 | -libdir | --libdir | --libdi | --libd) |
---|
454 | ac_prev=libdir ;; |
---|
455 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
456 | libdir=$ac_optarg ;; |
---|
457 | |
---|
458 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
459 | | --libexe | --libex | --libe) |
---|
460 | ac_prev=libexecdir ;; |
---|
461 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
462 | | --libexe=* | --libex=* | --libe=*) |
---|
463 | libexecdir=$ac_optarg ;; |
---|
464 | |
---|
465 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
466 | | --localstate | --localstat | --localsta | --localst \ |
---|
467 | | --locals | --local | --loca | --loc | --lo) |
---|
468 | ac_prev=localstatedir ;; |
---|
469 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
470 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
471 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
472 | localstatedir=$ac_optarg ;; |
---|
473 | |
---|
474 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
475 | ac_prev=mandir ;; |
---|
476 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
477 | mandir=$ac_optarg ;; |
---|
478 | |
---|
479 | -nfp | --nfp | --nf) |
---|
480 | # Obsolete; use --without-fp. |
---|
481 | with_fp=no ;; |
---|
482 | |
---|
483 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
484 | | --no-cr | --no-c | -n) |
---|
485 | no_create=yes ;; |
---|
486 | |
---|
487 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
488 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
489 | no_recursion=yes ;; |
---|
490 | |
---|
491 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
492 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
493 | | --oldin | --oldi | --old | --ol | --o) |
---|
494 | ac_prev=oldincludedir ;; |
---|
495 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
496 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
497 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
498 | oldincludedir=$ac_optarg ;; |
---|
499 | |
---|
500 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
501 | ac_prev=prefix ;; |
---|
502 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
503 | prefix=$ac_optarg ;; |
---|
504 | |
---|
505 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
506 | | --program-pre | --program-pr | --program-p) |
---|
507 | ac_prev=program_prefix ;; |
---|
508 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
509 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
510 | program_prefix=$ac_optarg ;; |
---|
511 | |
---|
512 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
513 | | --program-suf | --program-su | --program-s) |
---|
514 | ac_prev=program_suffix ;; |
---|
515 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
516 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
517 | program_suffix=$ac_optarg ;; |
---|
518 | |
---|
519 | -program-transform-name | --program-transform-name \ |
---|
520 | | --program-transform-nam | --program-transform-na \ |
---|
521 | | --program-transform-n | --program-transform- \ |
---|
522 | | --program-transform | --program-transfor \ |
---|
523 | | --program-transfo | --program-transf \ |
---|
524 | | --program-trans | --program-tran \ |
---|
525 | | --progr-tra | --program-tr | --program-t) |
---|
526 | ac_prev=program_transform_name ;; |
---|
527 | -program-transform-name=* | --program-transform-name=* \ |
---|
528 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
529 | | --program-transform-n=* | --program-transform-=* \ |
---|
530 | | --program-transform=* | --program-transfor=* \ |
---|
531 | | --program-transfo=* | --program-transf=* \ |
---|
532 | | --program-trans=* | --program-tran=* \ |
---|
533 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
534 | program_transform_name=$ac_optarg ;; |
---|
535 | |
---|
536 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
537 | | -silent | --silent | --silen | --sile | --sil) |
---|
538 | silent=yes ;; |
---|
539 | |
---|
540 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
541 | ac_prev=sbindir ;; |
---|
542 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
543 | | --sbi=* | --sb=*) |
---|
544 | sbindir=$ac_optarg ;; |
---|
545 | |
---|
546 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
547 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
548 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
549 | | --sha | --sh) |
---|
550 | ac_prev=sharedstatedir ;; |
---|
551 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
552 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
553 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
554 | | --sha=* | --sh=*) |
---|
555 | sharedstatedir=$ac_optarg ;; |
---|
556 | |
---|
557 | -site | --site | --sit) |
---|
558 | ac_prev=site ;; |
---|
559 | -site=* | --site=* | --sit=*) |
---|
560 | site=$ac_optarg ;; |
---|
561 | |
---|
562 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
563 | ac_prev=srcdir ;; |
---|
564 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
565 | srcdir=$ac_optarg ;; |
---|
566 | |
---|
567 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
568 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
569 | ac_prev=sysconfdir ;; |
---|
570 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
571 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
572 | sysconfdir=$ac_optarg ;; |
---|
573 | |
---|
574 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
575 | ac_prev=target_alias ;; |
---|
576 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
577 | target_alias=$ac_optarg ;; |
---|
578 | |
---|
579 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
580 | verbose=yes ;; |
---|
581 | |
---|
582 | -version | --version | --versio | --versi | --vers | -V) |
---|
583 | ac_init_version=: ;; |
---|
584 | |
---|
585 | -with-* | --with-*) |
---|
586 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
587 | # Reject names that are not valid shell variable names. |
---|
588 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
589 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
590 | { (exit 1); exit 1; }; } |
---|
591 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
592 | case $ac_option in |
---|
593 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
594 | *) ac_optarg=yes ;; |
---|
595 | esac |
---|
596 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
597 | |
---|
598 | -without-* | --without-*) |
---|
599 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
600 | # Reject names that are not valid shell variable names. |
---|
601 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
602 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
603 | { (exit 1); exit 1; }; } |
---|
604 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
605 | eval "with_$ac_package=no" ;; |
---|
606 | |
---|
607 | --x) |
---|
608 | # Obsolete; use --with-x. |
---|
609 | with_x=yes ;; |
---|
610 | |
---|
611 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
612 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
613 | ac_prev=x_includes ;; |
---|
614 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
615 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
616 | x_includes=$ac_optarg ;; |
---|
617 | |
---|
618 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
619 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
620 | ac_prev=x_libraries ;; |
---|
621 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
622 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
623 | x_libraries=$ac_optarg ;; |
---|
624 | |
---|
625 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
626 | Try \`$0 --help' for more information." >&2 |
---|
627 | { (exit 1); exit 1; }; } |
---|
628 | ;; |
---|
629 | |
---|
630 | *=*) |
---|
631 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
632 | # Reject names that are not valid shell variable names. |
---|
633 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
634 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
635 | { (exit 1); exit 1; }; } |
---|
636 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
637 | eval "$ac_envvar='$ac_optarg'" |
---|
638 | export $ac_envvar ;; |
---|
639 | |
---|
640 | *) |
---|
641 | # FIXME: should be removed in autoconf 3.0. |
---|
642 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
643 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
644 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
645 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
646 | ;; |
---|
647 | |
---|
648 | esac |
---|
649 | done |
---|
650 | |
---|
651 | if test -n "$ac_prev"; then |
---|
652 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
653 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
654 | { (exit 1); exit 1; }; } |
---|
655 | fi |
---|
656 | |
---|
657 | # Be sure to have absolute paths. |
---|
658 | for ac_var in exec_prefix prefix |
---|
659 | do |
---|
660 | eval ac_val=$`echo $ac_var` |
---|
661 | case $ac_val in |
---|
662 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
663 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
664 | { (exit 1); exit 1; }; };; |
---|
665 | esac |
---|
666 | done |
---|
667 | |
---|
668 | # Be sure to have absolute paths. |
---|
669 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
670 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
671 | do |
---|
672 | eval ac_val=$`echo $ac_var` |
---|
673 | case $ac_val in |
---|
674 | [\\/$]* | ?:[\\/]* ) ;; |
---|
675 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
676 | { (exit 1); exit 1; }; };; |
---|
677 | esac |
---|
678 | done |
---|
679 | |
---|
680 | # There might be people who depend on the old broken behavior: `$host' |
---|
681 | # used to hold the argument of --host etc. |
---|
682 | # FIXME: To remove some day. |
---|
683 | build=$build_alias |
---|
684 | host=$host_alias |
---|
685 | target=$target_alias |
---|
686 | |
---|
687 | # FIXME: To remove some day. |
---|
688 | if test "x$host_alias" != x; then |
---|
689 | if test "x$build_alias" = x; then |
---|
690 | cross_compiling=maybe |
---|
691 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
692 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
693 | elif test "x$build_alias" != "x$host_alias"; then |
---|
694 | cross_compiling=yes |
---|
695 | fi |
---|
696 | fi |
---|
697 | |
---|
698 | ac_tool_prefix= |
---|
699 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
700 | |
---|
701 | test "$silent" = yes && exec 6>/dev/null |
---|
702 | |
---|
703 | |
---|
704 | # Find the source files, if location was not specified. |
---|
705 | if test -z "$srcdir"; then |
---|
706 | ac_srcdir_defaulted=yes |
---|
707 | # Try the directory containing this script, then its parent. |
---|
708 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
709 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
710 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
711 | X"$0" : 'X\(//\)$' \| \ |
---|
712 | X"$0" : 'X\(/\)' \| \ |
---|
713 | . : '\(.\)' 2>/dev/null || |
---|
714 | echo X"$0" | |
---|
715 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
716 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
717 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
718 | /^X\(\/\).*/{ s//\1/; q; } |
---|
719 | s/.*/./; q'` |
---|
720 | srcdir=$ac_confdir |
---|
721 | if test ! -r $srcdir/$ac_unique_file; then |
---|
722 | srcdir=.. |
---|
723 | fi |
---|
724 | else |
---|
725 | ac_srcdir_defaulted=no |
---|
726 | fi |
---|
727 | if test ! -r $srcdir/$ac_unique_file; then |
---|
728 | if test "$ac_srcdir_defaulted" = yes; then |
---|
729 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
730 | { (exit 1); exit 1; }; } |
---|
731 | else |
---|
732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
733 | { (exit 1); exit 1; }; } |
---|
734 | fi |
---|
735 | fi |
---|
736 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
737 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
738 | { (exit 1); exit 1; }; } |
---|
739 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
740 | ac_env_build_alias_set=${build_alias+set} |
---|
741 | ac_env_build_alias_value=$build_alias |
---|
742 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
743 | ac_cv_env_build_alias_value=$build_alias |
---|
744 | ac_env_host_alias_set=${host_alias+set} |
---|
745 | ac_env_host_alias_value=$host_alias |
---|
746 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
747 | ac_cv_env_host_alias_value=$host_alias |
---|
748 | ac_env_target_alias_set=${target_alias+set} |
---|
749 | ac_env_target_alias_value=$target_alias |
---|
750 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
751 | ac_cv_env_target_alias_value=$target_alias |
---|
752 | ac_env_CC_set=${CC+set} |
---|
753 | ac_env_CC_value=$CC |
---|
754 | ac_cv_env_CC_set=${CC+set} |
---|
755 | ac_cv_env_CC_value=$CC |
---|
756 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
757 | ac_env_CFLAGS_value=$CFLAGS |
---|
758 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
759 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
760 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
761 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
762 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
763 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
764 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
765 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
766 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
767 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
768 | ac_env_CPP_set=${CPP+set} |
---|
769 | ac_env_CPP_value=$CPP |
---|
770 | ac_cv_env_CPP_set=${CPP+set} |
---|
771 | ac_cv_env_CPP_value=$CPP |
---|
772 | |
---|
773 | # |
---|
774 | # Report the --help message. |
---|
775 | # |
---|
776 | if test "$ac_init_help" = "long"; then |
---|
777 | # Omit some internal or obsolete options to make the list less imposing. |
---|
778 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
779 | cat <<_ACEOF |
---|
780 | \`configure' configures this package to adapt to many kinds of systems. |
---|
781 | |
---|
782 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
783 | |
---|
784 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
785 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
786 | |
---|
787 | Defaults for the options are specified in brackets. |
---|
788 | |
---|
789 | Configuration: |
---|
790 | -h, --help display this help and exit |
---|
791 | --help=short display options specific to this package |
---|
792 | --help=recursive display the short help of all the included packages |
---|
793 | -V, --version display version information and exit |
---|
794 | -q, --quiet, --silent do not print \`checking...' messages |
---|
795 | --cache-file=FILE cache test results in FILE [disabled] |
---|
796 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
797 | -n, --no-create do not create output files |
---|
798 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
799 | |
---|
800 | _ACEOF |
---|
801 | |
---|
802 | cat <<_ACEOF |
---|
803 | Installation directories: |
---|
804 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
805 | [$ac_default_prefix] |
---|
806 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
807 | [PREFIX] |
---|
808 | |
---|
809 | By default, \`make install' will install all the files in |
---|
810 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
811 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
812 | for instance \`--prefix=\$HOME'. |
---|
813 | |
---|
814 | For better control, use the options below. |
---|
815 | |
---|
816 | Fine tuning of the installation directories: |
---|
817 | --bindir=DIR user executables [EPREFIX/bin] |
---|
818 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
819 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
820 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
821 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
822 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
823 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
824 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
825 | --includedir=DIR C header files [PREFIX/include] |
---|
826 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
827 | --infodir=DIR info documentation [PREFIX/info] |
---|
828 | --mandir=DIR man documentation [PREFIX/man] |
---|
829 | _ACEOF |
---|
830 | |
---|
831 | cat <<\_ACEOF |
---|
832 | |
---|
833 | System types: |
---|
834 | --build=BUILD configure for building on BUILD [guessed] |
---|
835 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
836 | --target=TARGET configure for building compilers for TARGET [HOST] |
---|
837 | _ACEOF |
---|
838 | fi |
---|
839 | |
---|
840 | if test -n "$ac_init_help"; then |
---|
841 | |
---|
842 | cat <<\_ACEOF |
---|
843 | |
---|
844 | Optional Features: |
---|
845 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
846 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
847 | --enable-gcc Allow use of gcc if available |
---|
848 | --enable-64 Use 64-bit pointers on 64-bit Alpha machines |
---|
849 | |
---|
850 | Optional Packages: |
---|
851 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
852 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
853 | --with-glu-libdir=<libdir> Specify directories to search for the GLU library. |
---|
854 | Expects to find <libdir>/libglu.a |
---|
855 | --with-glu-incdir=<incdir> Specify directories to search for the GLU headers |
---|
856 | --with-vis-libdir=<libdir> Specify directories to search for the VIS |
---|
857 | and headers. Defaults to \".\". |
---|
858 | Expects to find <libdir>/libvis.a |
---|
859 | --with-local-srcdir=<srcdir> Specify the root directory to search for |
---|
860 | source for packages (the PKGS list). |
---|
861 | Expects to find, e.g., <srcdir>/tbl/tbl.c |
---|
862 | --with-bdd=<bddPackage> Specify the BDD library to link against. |
---|
863 | Defaults to --with-bdd=cu. |
---|
864 | --with-comp-mode=<mode> Specify a special compilation mode: |
---|
865 | optimize (the default): Produce optimized |
---|
866 | code, with symbol table information |
---|
867 | if supported on the platform/compiler, |
---|
868 | and without asserts. |
---|
869 | debug: Produce unoptimized code with symbol table |
---|
870 | information and asserts enabled |
---|
871 | purify: Unoptimized code linked with purify |
---|
872 | quantify: Optimized code without asserts |
---|
873 | linked with quantify |
---|
874 | |
---|
875 | Some influential environment variables: |
---|
876 | CC C compiler command |
---|
877 | CFLAGS C compiler flags |
---|
878 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
879 | nonstandard directory <lib dir> |
---|
880 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
881 | headers in a nonstandard directory <include dir> |
---|
882 | CPP C preprocessor |
---|
883 | |
---|
884 | Use these variables to override the choices made by `configure' or to help |
---|
885 | it to find libraries and programs with nonstandard names/locations. |
---|
886 | |
---|
887 | _ACEOF |
---|
888 | fi |
---|
889 | |
---|
890 | if test "$ac_init_help" = "recursive"; then |
---|
891 | # If there are subdirs, report their specific --help. |
---|
892 | ac_popdir=`pwd` |
---|
893 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
894 | test -d $ac_dir || continue |
---|
895 | ac_builddir=. |
---|
896 | |
---|
897 | if test "$ac_dir" != .; then |
---|
898 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
899 | # A "../" for each directory in $ac_dir_suffix. |
---|
900 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
901 | else |
---|
902 | ac_dir_suffix= ac_top_builddir= |
---|
903 | fi |
---|
904 | |
---|
905 | case $srcdir in |
---|
906 | .) # No --srcdir option. We are building in place. |
---|
907 | ac_srcdir=. |
---|
908 | if test -z "$ac_top_builddir"; then |
---|
909 | ac_top_srcdir=. |
---|
910 | else |
---|
911 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
912 | fi ;; |
---|
913 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
914 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
915 | ac_top_srcdir=$srcdir ;; |
---|
916 | *) # Relative path. |
---|
917 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
918 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
919 | esac |
---|
920 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
---|
921 | # absolute. |
---|
922 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
---|
923 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
---|
924 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
---|
925 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
---|
926 | |
---|
927 | cd $ac_dir |
---|
928 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
929 | if test -f $ac_srcdir/configure.gnu; then |
---|
930 | echo |
---|
931 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
932 | elif test -f $ac_srcdir/configure; then |
---|
933 | echo |
---|
934 | $SHELL $ac_srcdir/configure --help=recursive |
---|
935 | elif test -f $ac_srcdir/configure.ac || |
---|
936 | test -f $ac_srcdir/configure.in; then |
---|
937 | echo |
---|
938 | $ac_configure --help |
---|
939 | else |
---|
940 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
941 | fi |
---|
942 | cd $ac_popdir |
---|
943 | done |
---|
944 | fi |
---|
945 | |
---|
946 | test -n "$ac_init_help" && exit 0 |
---|
947 | if $ac_init_version; then |
---|
948 | cat <<\_ACEOF |
---|
949 | |
---|
950 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
---|
951 | Free Software Foundation, Inc. |
---|
952 | This configure script is free software; the Free Software Foundation |
---|
953 | gives unlimited permission to copy, distribute and modify it. |
---|
954 | _ACEOF |
---|
955 | exit 0 |
---|
956 | fi |
---|
957 | exec 5>config.log |
---|
958 | cat >&5 <<_ACEOF |
---|
959 | This file contains any messages produced by compilers while |
---|
960 | running configure, to aid debugging if configure makes a mistake. |
---|
961 | |
---|
962 | It was created by $as_me, which was |
---|
963 | generated by GNU Autoconf 2.57. Invocation command line was |
---|
964 | |
---|
965 | $ $0 $@ |
---|
966 | |
---|
967 | _ACEOF |
---|
968 | { |
---|
969 | cat <<_ASUNAME |
---|
970 | ## --------- ## |
---|
971 | ## Platform. ## |
---|
972 | ## --------- ## |
---|
973 | |
---|
974 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
975 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
976 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
977 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
978 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
979 | |
---|
980 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
981 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
982 | |
---|
983 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
984 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
985 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
986 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
987 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
988 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
989 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
990 | |
---|
991 | _ASUNAME |
---|
992 | |
---|
993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
994 | for as_dir in $PATH |
---|
995 | do |
---|
996 | IFS=$as_save_IFS |
---|
997 | test -z "$as_dir" && as_dir=. |
---|
998 | echo "PATH: $as_dir" |
---|
999 | done |
---|
1000 | |
---|
1001 | } >&5 |
---|
1002 | |
---|
1003 | cat >&5 <<_ACEOF |
---|
1004 | |
---|
1005 | |
---|
1006 | ## ----------- ## |
---|
1007 | ## Core tests. ## |
---|
1008 | ## ----------- ## |
---|
1009 | |
---|
1010 | _ACEOF |
---|
1011 | |
---|
1012 | |
---|
1013 | # Keep a trace of the command line. |
---|
1014 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1015 | # Strip out --silent because we don't want to record it for future runs. |
---|
1016 | # Also quote any args containing shell meta-characters. |
---|
1017 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1018 | ac_configure_args= |
---|
1019 | ac_configure_args0= |
---|
1020 | ac_configure_args1= |
---|
1021 | ac_sep= |
---|
1022 | ac_must_keep_next=false |
---|
1023 | for ac_pass in 1 2 |
---|
1024 | do |
---|
1025 | for ac_arg |
---|
1026 | do |
---|
1027 | case $ac_arg in |
---|
1028 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1029 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1030 | | -silent | --silent | --silen | --sile | --sil) |
---|
1031 | continue ;; |
---|
1032 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1033 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1034 | esac |
---|
1035 | case $ac_pass in |
---|
1036 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1037 | 2) |
---|
1038 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1039 | if test $ac_must_keep_next = true; then |
---|
1040 | ac_must_keep_next=false # Got value, back to normal. |
---|
1041 | else |
---|
1042 | case $ac_arg in |
---|
1043 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1044 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1045 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1046 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1047 | case "$ac_configure_args0 " in |
---|
1048 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1049 | esac |
---|
1050 | ;; |
---|
1051 | -* ) ac_must_keep_next=true ;; |
---|
1052 | esac |
---|
1053 | fi |
---|
1054 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1055 | # Get rid of the leading space. |
---|
1056 | ac_sep=" " |
---|
1057 | ;; |
---|
1058 | esac |
---|
1059 | done |
---|
1060 | done |
---|
1061 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1062 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1063 | |
---|
1064 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1065 | # config.log. We remove comments because anyway the quotes in there |
---|
1066 | # would cause problems or look ugly. |
---|
1067 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1068 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1069 | trap 'exit_status=$? |
---|
1070 | # Save into config.log some information that might help in debugging. |
---|
1071 | { |
---|
1072 | echo |
---|
1073 | |
---|
1074 | cat <<\_ASBOX |
---|
1075 | ## ---------------- ## |
---|
1076 | ## Cache variables. ## |
---|
1077 | ## ---------------- ## |
---|
1078 | _ASBOX |
---|
1079 | echo |
---|
1080 | # The following way of writing the cache mishandles newlines in values, |
---|
1081 | { |
---|
1082 | (set) 2>&1 | |
---|
1083 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1084 | *ac_space=\ *) |
---|
1085 | sed -n \ |
---|
1086 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1087 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1088 | ;; |
---|
1089 | *) |
---|
1090 | sed -n \ |
---|
1091 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1092 | ;; |
---|
1093 | esac; |
---|
1094 | } |
---|
1095 | echo |
---|
1096 | |
---|
1097 | cat <<\_ASBOX |
---|
1098 | ## ----------------- ## |
---|
1099 | ## Output variables. ## |
---|
1100 | ## ----------------- ## |
---|
1101 | _ASBOX |
---|
1102 | echo |
---|
1103 | for ac_var in $ac_subst_vars |
---|
1104 | do |
---|
1105 | eval ac_val=$`echo $ac_var` |
---|
1106 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1107 | done | sort |
---|
1108 | echo |
---|
1109 | |
---|
1110 | if test -n "$ac_subst_files"; then |
---|
1111 | cat <<\_ASBOX |
---|
1112 | ## ------------- ## |
---|
1113 | ## Output files. ## |
---|
1114 | ## ------------- ## |
---|
1115 | _ASBOX |
---|
1116 | echo |
---|
1117 | for ac_var in $ac_subst_files |
---|
1118 | do |
---|
1119 | eval ac_val=$`echo $ac_var` |
---|
1120 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1121 | done | sort |
---|
1122 | echo |
---|
1123 | fi |
---|
1124 | |
---|
1125 | if test -s confdefs.h; then |
---|
1126 | cat <<\_ASBOX |
---|
1127 | ## ----------- ## |
---|
1128 | ## confdefs.h. ## |
---|
1129 | ## ----------- ## |
---|
1130 | _ASBOX |
---|
1131 | echo |
---|
1132 | sed "/^$/d" confdefs.h | sort |
---|
1133 | echo |
---|
1134 | fi |
---|
1135 | test "$ac_signal" != 0 && |
---|
1136 | echo "$as_me: caught signal $ac_signal" |
---|
1137 | echo "$as_me: exit $exit_status" |
---|
1138 | } >&5 |
---|
1139 | rm -f core core.* *.core && |
---|
1140 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1141 | exit $exit_status |
---|
1142 | ' 0 |
---|
1143 | for ac_signal in 1 2 13 15; do |
---|
1144 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1145 | done |
---|
1146 | ac_signal=0 |
---|
1147 | |
---|
1148 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1149 | rm -rf conftest* confdefs.h |
---|
1150 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1151 | echo >confdefs.h |
---|
1152 | |
---|
1153 | # Predefined preprocessor variables. |
---|
1154 | |
---|
1155 | cat >>confdefs.h <<_ACEOF |
---|
1156 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1157 | _ACEOF |
---|
1158 | |
---|
1159 | |
---|
1160 | cat >>confdefs.h <<_ACEOF |
---|
1161 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1162 | _ACEOF |
---|
1163 | |
---|
1164 | |
---|
1165 | cat >>confdefs.h <<_ACEOF |
---|
1166 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1167 | _ACEOF |
---|
1168 | |
---|
1169 | |
---|
1170 | cat >>confdefs.h <<_ACEOF |
---|
1171 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1172 | _ACEOF |
---|
1173 | |
---|
1174 | |
---|
1175 | cat >>confdefs.h <<_ACEOF |
---|
1176 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1177 | _ACEOF |
---|
1178 | |
---|
1179 | |
---|
1180 | # Let the site file select an alternate cache file if it wants to. |
---|
1181 | # Prefer explicitly selected file to automatically selected ones. |
---|
1182 | if test -z "$CONFIG_SITE"; then |
---|
1183 | if test "x$prefix" != xNONE; then |
---|
1184 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1185 | else |
---|
1186 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1187 | fi |
---|
1188 | fi |
---|
1189 | for ac_site_file in $CONFIG_SITE; do |
---|
1190 | if test -r "$ac_site_file"; then |
---|
1191 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1192 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1193 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1194 | . "$ac_site_file" |
---|
1195 | fi |
---|
1196 | done |
---|
1197 | |
---|
1198 | if test -r "$cache_file"; then |
---|
1199 | # Some versions of bash will fail to source /dev/null (special |
---|
1200 | # files actually), so we avoid doing that. |
---|
1201 | if test -f "$cache_file"; then |
---|
1202 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1203 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1204 | case $cache_file in |
---|
1205 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1206 | *) . ./$cache_file;; |
---|
1207 | esac |
---|
1208 | fi |
---|
1209 | else |
---|
1210 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1211 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1212 | >$cache_file |
---|
1213 | fi |
---|
1214 | |
---|
1215 | # Check that the precious variables saved in the cache have kept the same |
---|
1216 | # value. |
---|
1217 | ac_cache_corrupted=false |
---|
1218 | for ac_var in `(set) 2>&1 | |
---|
1219 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1220 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1221 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1222 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1223 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1224 | case $ac_old_set,$ac_new_set in |
---|
1225 | set,) |
---|
1226 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1227 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1228 | ac_cache_corrupted=: ;; |
---|
1229 | ,set) |
---|
1230 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1231 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1232 | ac_cache_corrupted=: ;; |
---|
1233 | ,);; |
---|
1234 | *) |
---|
1235 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1236 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1237 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1238 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1239 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1240 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1241 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1242 | ac_cache_corrupted=: |
---|
1243 | fi;; |
---|
1244 | esac |
---|
1245 | # Pass precious variables to config.status. |
---|
1246 | if test "$ac_new_set" = set; then |
---|
1247 | case $ac_new_val in |
---|
1248 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1249 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1250 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1251 | esac |
---|
1252 | case " $ac_configure_args " in |
---|
1253 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1254 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1255 | esac |
---|
1256 | fi |
---|
1257 | done |
---|
1258 | if $ac_cache_corrupted; then |
---|
1259 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1260 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1261 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1262 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1263 | { (exit 1); exit 1; }; } |
---|
1264 | fi |
---|
1265 | |
---|
1266 | ac_ext=c |
---|
1267 | ac_cpp='$CPP $CPPFLAGS' |
---|
1268 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1269 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1270 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1271 | |
---|
1272 | |
---|
1273 | |
---|
1274 | |
---|
1275 | |
---|
1276 | |
---|
1277 | |
---|
1278 | |
---|
1279 | |
---|
1280 | |
---|
1281 | |
---|
1282 | |
---|
1283 | |
---|
1284 | |
---|
1285 | |
---|
1286 | |
---|
1287 | |
---|
1288 | |
---|
1289 | |
---|
1290 | |
---|
1291 | # Look for install.sh, config.guess, and config.sub in the "helpers" dir |
---|
1292 | ac_aux_dir= |
---|
1293 | for ac_dir in helpers $srcdir/helpers; do |
---|
1294 | if test -f $ac_dir/install-sh; then |
---|
1295 | ac_aux_dir=$ac_dir |
---|
1296 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1297 | break |
---|
1298 | elif test -f $ac_dir/install.sh; then |
---|
1299 | ac_aux_dir=$ac_dir |
---|
1300 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1301 | break |
---|
1302 | elif test -f $ac_dir/shtool; then |
---|
1303 | ac_aux_dir=$ac_dir |
---|
1304 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1305 | break |
---|
1306 | fi |
---|
1307 | done |
---|
1308 | if test -z "$ac_aux_dir"; then |
---|
1309 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in helpers $srcdir/helpers" >&5 |
---|
1310 | echo "$as_me: error: cannot find install-sh or install.sh in helpers $srcdir/helpers" >&2;} |
---|
1311 | { (exit 1); exit 1; }; } |
---|
1312 | fi |
---|
1313 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1314 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1315 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1316 | |
---|
1317 | |
---|
1318 | #---------------------------------------------------------------------- |
---|
1319 | # Configuration options |
---|
1320 | #---------------------------------------------------------------------- |
---|
1321 | |
---|
1322 | # Give the configurer a chance to set the location of the GLU tree |
---|
1323 | |
---|
1324 | |
---|
1325 | |
---|
1326 | # Check whether --with-glu-libdir or --without-glu-libdir was given. |
---|
1327 | if test "${with_glu_libdir+set}" = set; then |
---|
1328 | withval="$with_glu_libdir" |
---|
1329 | glulibdir=$withval |
---|
1330 | else |
---|
1331 | glulibdir="" |
---|
1332 | fi; |
---|
1333 | |
---|
1334 | |
---|
1335 | |
---|
1336 | # Check whether --with-glu-incdir or --without-glu-incdir was given. |
---|
1337 | if test "${with_glu_incdir+set}" = set; then |
---|
1338 | withval="$with_glu_incdir" |
---|
1339 | gluincdir=$withval |
---|
1340 | else |
---|
1341 | gluincdir="" |
---|
1342 | fi; |
---|
1343 | |
---|
1344 | # Give the configurer a chance to set a different location for the VIS |
---|
1345 | # headers and library |
---|
1346 | |
---|
1347 | |
---|
1348 | |
---|
1349 | # Check whether --with-vis-libdir or --without-vis-libdir was given. |
---|
1350 | if test "${with_vis_libdir+set}" = set; then |
---|
1351 | withval="$with_vis_libdir" |
---|
1352 | vislibdir=$withval |
---|
1353 | else |
---|
1354 | vislibdir="." |
---|
1355 | fi; |
---|
1356 | |
---|
1357 | # Give the configurer a chance to set a different location for the VIS |
---|
1358 | # source. When specified, "srcdir" points to "master" source, and |
---|
1359 | # "local_srcdir" points to the source under local development. |
---|
1360 | |
---|
1361 | |
---|
1362 | |
---|
1363 | # Check whether --with-local-srcdir or --without-local-srcdir was given. |
---|
1364 | if test "${with_local_srcdir+set}" = set; then |
---|
1365 | withval="$with_local_srcdir" |
---|
1366 | local_srcdir=$withval |
---|
1367 | else |
---|
1368 | local_srcdir=$srcdir |
---|
1369 | fi; |
---|
1370 | |
---|
1371 | # Give the configurer a chance to set the BDD library |
---|
1372 | |
---|
1373 | |
---|
1374 | |
---|
1375 | # Check whether --with-bdd or --without-bdd was given. |
---|
1376 | if test "${with_bdd+set}" = set; then |
---|
1377 | withval="$with_bdd" |
---|
1378 | BDDLIB=$withval |
---|
1379 | else |
---|
1380 | BDDLIB=cu |
---|
1381 | fi; |
---|
1382 | |
---|
1383 | #---------------------------------------------------------------------- |
---|
1384 | # Checks for programs we need |
---|
1385 | #---------------------------------------------------------------------- |
---|
1386 | # Extract the first word of "zchaff", so it can be a program name with args. |
---|
1387 | set dummy zchaff; ac_word=$2 |
---|
1388 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1389 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1390 | if test "${ac_cv_path_ZCHAFF+set}" = set; then |
---|
1391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1392 | else |
---|
1393 | case $ZCHAFF in |
---|
1394 | [\\/]* | ?:[\\/]*) |
---|
1395 | ac_cv_path_ZCHAFF="$ZCHAFF" # Let the user override the test with a path. |
---|
1396 | ;; |
---|
1397 | *) |
---|
1398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1399 | for as_dir in $PATH |
---|
1400 | do |
---|
1401 | IFS=$as_save_IFS |
---|
1402 | test -z "$as_dir" && as_dir=. |
---|
1403 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1404 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1405 | ac_cv_path_ZCHAFF="$as_dir/$ac_word$ac_exec_ext" |
---|
1406 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1407 | break 2 |
---|
1408 | fi |
---|
1409 | done |
---|
1410 | done |
---|
1411 | |
---|
1412 | ;; |
---|
1413 | esac |
---|
1414 | fi |
---|
1415 | ZCHAFF=$ac_cv_path_ZCHAFF |
---|
1416 | |
---|
1417 | if test -n "$ZCHAFF"; then |
---|
1418 | echo "$as_me:$LINENO: result: $ZCHAFF" >&5 |
---|
1419 | echo "${ECHO_T}$ZCHAFF" >&6 |
---|
1420 | else |
---|
1421 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1422 | echo "${ECHO_T}no" >&6 |
---|
1423 | fi |
---|
1424 | |
---|
1425 | # Extract the first word of "ar", so it can be a program name with args. |
---|
1426 | set dummy ar; ac_word=$2 |
---|
1427 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1428 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1429 | if test "${ac_cv_path_AR+set}" = set; then |
---|
1430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1431 | else |
---|
1432 | case $AR in |
---|
1433 | [\\/]* | ?:[\\/]*) |
---|
1434 | ac_cv_path_AR="$AR" # Let the user override the test with a path. |
---|
1435 | ;; |
---|
1436 | *) |
---|
1437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1438 | for as_dir in $PATH |
---|
1439 | do |
---|
1440 | IFS=$as_save_IFS |
---|
1441 | test -z "$as_dir" && as_dir=. |
---|
1442 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1443 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1444 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
---|
1445 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1446 | break 2 |
---|
1447 | fi |
---|
1448 | done |
---|
1449 | done |
---|
1450 | |
---|
1451 | test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar" |
---|
1452 | ;; |
---|
1453 | esac |
---|
1454 | fi |
---|
1455 | AR=$ac_cv_path_AR |
---|
1456 | |
---|
1457 | if test -n "$AR"; then |
---|
1458 | echo "$as_me:$LINENO: result: $AR" >&5 |
---|
1459 | echo "${ECHO_T}$AR" >&6 |
---|
1460 | else |
---|
1461 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1462 | echo "${ECHO_T}no" >&6 |
---|
1463 | fi |
---|
1464 | |
---|
1465 | if test -n "$ac_tool_prefix"; then |
---|
1466 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
1467 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
1468 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1469 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1470 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
1471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1472 | else |
---|
1473 | if test -n "$RANLIB"; then |
---|
1474 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
1475 | else |
---|
1476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1477 | for as_dir in $PATH |
---|
1478 | do |
---|
1479 | IFS=$as_save_IFS |
---|
1480 | test -z "$as_dir" && as_dir=. |
---|
1481 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1482 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1483 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
1484 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1485 | break 2 |
---|
1486 | fi |
---|
1487 | done |
---|
1488 | done |
---|
1489 | |
---|
1490 | fi |
---|
1491 | fi |
---|
1492 | RANLIB=$ac_cv_prog_RANLIB |
---|
1493 | if test -n "$RANLIB"; then |
---|
1494 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
1495 | echo "${ECHO_T}$RANLIB" >&6 |
---|
1496 | else |
---|
1497 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1498 | echo "${ECHO_T}no" >&6 |
---|
1499 | fi |
---|
1500 | |
---|
1501 | fi |
---|
1502 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
1503 | ac_ct_RANLIB=$RANLIB |
---|
1504 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
1505 | set dummy ranlib; ac_word=$2 |
---|
1506 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1507 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1508 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
1509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1510 | else |
---|
1511 | if test -n "$ac_ct_RANLIB"; then |
---|
1512 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
1513 | else |
---|
1514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1515 | for as_dir in $PATH |
---|
1516 | do |
---|
1517 | IFS=$as_save_IFS |
---|
1518 | test -z "$as_dir" && as_dir=. |
---|
1519 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1520 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1521 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
1522 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1523 | break 2 |
---|
1524 | fi |
---|
1525 | done |
---|
1526 | done |
---|
1527 | |
---|
1528 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
---|
1529 | fi |
---|
1530 | fi |
---|
1531 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
1532 | if test -n "$ac_ct_RANLIB"; then |
---|
1533 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
1534 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
---|
1535 | else |
---|
1536 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1537 | echo "${ECHO_T}no" >&6 |
---|
1538 | fi |
---|
1539 | |
---|
1540 | RANLIB=$ac_ct_RANLIB |
---|
1541 | else |
---|
1542 | RANLIB="$ac_cv_prog_RANLIB" |
---|
1543 | fi |
---|
1544 | |
---|
1545 | |
---|
1546 | # Make sure we can run config.sub. |
---|
1547 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
1548 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
1549 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
1550 | { (exit 1); exit 1; }; } |
---|
1551 | |
---|
1552 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
1553 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
1554 | if test "${ac_cv_build+set}" = set; then |
---|
1555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1556 | else |
---|
1557 | ac_cv_build_alias=$build_alias |
---|
1558 | test -z "$ac_cv_build_alias" && |
---|
1559 | ac_cv_build_alias=`$ac_config_guess` |
---|
1560 | test -z "$ac_cv_build_alias" && |
---|
1561 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
1562 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
1563 | { (exit 1); exit 1; }; } |
---|
1564 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
1565 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
1566 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
1567 | { (exit 1); exit 1; }; } |
---|
1568 | |
---|
1569 | fi |
---|
1570 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
1571 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
1572 | build=$ac_cv_build |
---|
1573 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1574 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1575 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1576 | |
---|
1577 | |
---|
1578 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
1579 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
1580 | if test "${ac_cv_host+set}" = set; then |
---|
1581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1582 | else |
---|
1583 | ac_cv_host_alias=$host_alias |
---|
1584 | test -z "$ac_cv_host_alias" && |
---|
1585 | ac_cv_host_alias=$ac_cv_build_alias |
---|
1586 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
1587 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
1588 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
1589 | { (exit 1); exit 1; }; } |
---|
1590 | |
---|
1591 | fi |
---|
1592 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
1593 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
1594 | host=$ac_cv_host |
---|
1595 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1596 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1597 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1598 | |
---|
1599 | |
---|
1600 | echo "$as_me:$LINENO: checking target system type" >&5 |
---|
1601 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
---|
1602 | if test "${ac_cv_target+set}" = set; then |
---|
1603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1604 | else |
---|
1605 | ac_cv_target_alias=$target_alias |
---|
1606 | test "x$ac_cv_target_alias" = "x" && |
---|
1607 | ac_cv_target_alias=$ac_cv_host_alias |
---|
1608 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
---|
1609 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
---|
1610 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
---|
1611 | { (exit 1); exit 1; }; } |
---|
1612 | |
---|
1613 | fi |
---|
1614 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
1615 | echo "${ECHO_T}$ac_cv_target" >&6 |
---|
1616 | target=$ac_cv_target |
---|
1617 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1618 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1619 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1620 | |
---|
1621 | |
---|
1622 | # The aliases save the names the user supplied, while $host etc. |
---|
1623 | # will get canonicalized. |
---|
1624 | test -n "$target_alias" && |
---|
1625 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
1626 | NONENONEs,x,x, && |
---|
1627 | program_prefix=${target_alias}- |
---|
1628 | |
---|
1629 | |
---|
1630 | # Determine the name of the C compiler we're going to use |
---|
1631 | |
---|
1632 | # Check whether --enable-gcc or --disable-gcc was given. |
---|
1633 | if test "${enable_gcc+set}" = set; then |
---|
1634 | enableval="$enable_gcc" |
---|
1635 | gcc_ok=$enableval |
---|
1636 | else |
---|
1637 | gcc_ok=no |
---|
1638 | fi; |
---|
1639 | |
---|
1640 | # We cannot set CC=g++ directly because many configuration test programs |
---|
1641 | # do not compile with g++. Hence, when the user specifies --enable-gcc=g++, |
---|
1642 | # we set CC=gcc during configuration, and then CC=g++ at the end. |
---|
1643 | # The same applies to icpc and icc. |
---|
1644 | if test "$gcc_ok" != no; then |
---|
1645 | case "$gcc_ok" in |
---|
1646 | yes | g++) |
---|
1647 | CC=gcc ;; |
---|
1648 | icpc) |
---|
1649 | CC=icc ;; |
---|
1650 | *) |
---|
1651 | CC=$gcc_ok |
---|
1652 | esac |
---|
1653 | else |
---|
1654 | if test -z "$CC" ; then |
---|
1655 | # Balakrishna Kumthekar <kumtheka@colorado.edu> |
---|
1656 | # As we do not support cc on RS6000, Cygwin and SunOS. |
---|
1657 | case "$target" in |
---|
1658 | rs6000-ibm-aix* | *-pc-cygwin32 | sparc-sun-sunos*) |
---|
1659 | CC=gcc ;; |
---|
1660 | *) |
---|
1661 | CC=cc ;; |
---|
1662 | esac |
---|
1663 | fi |
---|
1664 | fi |
---|
1665 | ac_ext=c |
---|
1666 | ac_cpp='$CPP $CPPFLAGS' |
---|
1667 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1668 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1669 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1670 | if test -n "$ac_tool_prefix"; then |
---|
1671 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
1672 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
1673 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1674 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1675 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1677 | else |
---|
1678 | if test -n "$CC"; then |
---|
1679 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1680 | else |
---|
1681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1682 | for as_dir in $PATH |
---|
1683 | do |
---|
1684 | IFS=$as_save_IFS |
---|
1685 | test -z "$as_dir" && as_dir=. |
---|
1686 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1687 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1688 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
1689 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1690 | break 2 |
---|
1691 | fi |
---|
1692 | done |
---|
1693 | done |
---|
1694 | |
---|
1695 | fi |
---|
1696 | fi |
---|
1697 | CC=$ac_cv_prog_CC |
---|
1698 | if test -n "$CC"; then |
---|
1699 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1700 | echo "${ECHO_T}$CC" >&6 |
---|
1701 | else |
---|
1702 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1703 | echo "${ECHO_T}no" >&6 |
---|
1704 | fi |
---|
1705 | |
---|
1706 | fi |
---|
1707 | if test -z "$ac_cv_prog_CC"; then |
---|
1708 | ac_ct_CC=$CC |
---|
1709 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
1710 | set dummy gcc; ac_word=$2 |
---|
1711 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1712 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1713 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
1714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1715 | else |
---|
1716 | if test -n "$ac_ct_CC"; then |
---|
1717 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
1718 | else |
---|
1719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1720 | for as_dir in $PATH |
---|
1721 | do |
---|
1722 | IFS=$as_save_IFS |
---|
1723 | test -z "$as_dir" && as_dir=. |
---|
1724 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1725 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1726 | ac_cv_prog_ac_ct_CC="gcc" |
---|
1727 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1728 | break 2 |
---|
1729 | fi |
---|
1730 | done |
---|
1731 | done |
---|
1732 | |
---|
1733 | fi |
---|
1734 | fi |
---|
1735 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
1736 | if test -n "$ac_ct_CC"; then |
---|
1737 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
1738 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
1739 | else |
---|
1740 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1741 | echo "${ECHO_T}no" >&6 |
---|
1742 | fi |
---|
1743 | |
---|
1744 | CC=$ac_ct_CC |
---|
1745 | else |
---|
1746 | CC="$ac_cv_prog_CC" |
---|
1747 | fi |
---|
1748 | |
---|
1749 | if test -z "$CC"; then |
---|
1750 | if test -n "$ac_tool_prefix"; then |
---|
1751 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
1752 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
1753 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1754 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1755 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1757 | else |
---|
1758 | if test -n "$CC"; then |
---|
1759 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1760 | else |
---|
1761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1762 | for as_dir in $PATH |
---|
1763 | do |
---|
1764 | IFS=$as_save_IFS |
---|
1765 | test -z "$as_dir" && as_dir=. |
---|
1766 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1767 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1768 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
1769 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1770 | break 2 |
---|
1771 | fi |
---|
1772 | done |
---|
1773 | done |
---|
1774 | |
---|
1775 | fi |
---|
1776 | fi |
---|
1777 | CC=$ac_cv_prog_CC |
---|
1778 | if test -n "$CC"; then |
---|
1779 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1780 | echo "${ECHO_T}$CC" >&6 |
---|
1781 | else |
---|
1782 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1783 | echo "${ECHO_T}no" >&6 |
---|
1784 | fi |
---|
1785 | |
---|
1786 | fi |
---|
1787 | if test -z "$ac_cv_prog_CC"; then |
---|
1788 | ac_ct_CC=$CC |
---|
1789 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1790 | set dummy cc; ac_word=$2 |
---|
1791 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1792 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1793 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
1794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1795 | else |
---|
1796 | if test -n "$ac_ct_CC"; then |
---|
1797 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
1798 | else |
---|
1799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1800 | for as_dir in $PATH |
---|
1801 | do |
---|
1802 | IFS=$as_save_IFS |
---|
1803 | test -z "$as_dir" && as_dir=. |
---|
1804 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1805 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1806 | ac_cv_prog_ac_ct_CC="cc" |
---|
1807 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1808 | break 2 |
---|
1809 | fi |
---|
1810 | done |
---|
1811 | done |
---|
1812 | |
---|
1813 | fi |
---|
1814 | fi |
---|
1815 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
1816 | if test -n "$ac_ct_CC"; then |
---|
1817 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
1818 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
1819 | else |
---|
1820 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1821 | echo "${ECHO_T}no" >&6 |
---|
1822 | fi |
---|
1823 | |
---|
1824 | CC=$ac_ct_CC |
---|
1825 | else |
---|
1826 | CC="$ac_cv_prog_CC" |
---|
1827 | fi |
---|
1828 | |
---|
1829 | fi |
---|
1830 | if test -z "$CC"; then |
---|
1831 | # Extract the first word of "cc", so it can be a program name with args. |
---|
1832 | set dummy cc; ac_word=$2 |
---|
1833 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1834 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1835 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1837 | else |
---|
1838 | if test -n "$CC"; then |
---|
1839 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1840 | else |
---|
1841 | ac_prog_rejected=no |
---|
1842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1843 | for as_dir in $PATH |
---|
1844 | do |
---|
1845 | IFS=$as_save_IFS |
---|
1846 | test -z "$as_dir" && as_dir=. |
---|
1847 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1848 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1849 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
1850 | ac_prog_rejected=yes |
---|
1851 | continue |
---|
1852 | fi |
---|
1853 | ac_cv_prog_CC="cc" |
---|
1854 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1855 | break 2 |
---|
1856 | fi |
---|
1857 | done |
---|
1858 | done |
---|
1859 | |
---|
1860 | if test $ac_prog_rejected = yes; then |
---|
1861 | # We found a bogon in the path, so make sure we never use it. |
---|
1862 | set dummy $ac_cv_prog_CC |
---|
1863 | shift |
---|
1864 | if test $# != 0; then |
---|
1865 | # We chose a different compiler from the bogus one. |
---|
1866 | # However, it has the same basename, so the bogon will be chosen |
---|
1867 | # first if we set CC to just the basename; use the full file name. |
---|
1868 | shift |
---|
1869 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
1870 | fi |
---|
1871 | fi |
---|
1872 | fi |
---|
1873 | fi |
---|
1874 | CC=$ac_cv_prog_CC |
---|
1875 | if test -n "$CC"; then |
---|
1876 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1877 | echo "${ECHO_T}$CC" >&6 |
---|
1878 | else |
---|
1879 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1880 | echo "${ECHO_T}no" >&6 |
---|
1881 | fi |
---|
1882 | |
---|
1883 | fi |
---|
1884 | if test -z "$CC"; then |
---|
1885 | if test -n "$ac_tool_prefix"; then |
---|
1886 | for ac_prog in cl |
---|
1887 | do |
---|
1888 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
1889 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
1890 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1891 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1892 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
1893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1894 | else |
---|
1895 | if test -n "$CC"; then |
---|
1896 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
1897 | else |
---|
1898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1899 | for as_dir in $PATH |
---|
1900 | do |
---|
1901 | IFS=$as_save_IFS |
---|
1902 | test -z "$as_dir" && as_dir=. |
---|
1903 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1904 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1905 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
1906 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1907 | break 2 |
---|
1908 | fi |
---|
1909 | done |
---|
1910 | done |
---|
1911 | |
---|
1912 | fi |
---|
1913 | fi |
---|
1914 | CC=$ac_cv_prog_CC |
---|
1915 | if test -n "$CC"; then |
---|
1916 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
1917 | echo "${ECHO_T}$CC" >&6 |
---|
1918 | else |
---|
1919 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1920 | echo "${ECHO_T}no" >&6 |
---|
1921 | fi |
---|
1922 | |
---|
1923 | test -n "$CC" && break |
---|
1924 | done |
---|
1925 | fi |
---|
1926 | if test -z "$CC"; then |
---|
1927 | ac_ct_CC=$CC |
---|
1928 | for ac_prog in cl |
---|
1929 | do |
---|
1930 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1931 | set dummy $ac_prog; ac_word=$2 |
---|
1932 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1933 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1934 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
1935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1936 | else |
---|
1937 | if test -n "$ac_ct_CC"; then |
---|
1938 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
1939 | else |
---|
1940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1941 | for as_dir in $PATH |
---|
1942 | do |
---|
1943 | IFS=$as_save_IFS |
---|
1944 | test -z "$as_dir" && as_dir=. |
---|
1945 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1946 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1947 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
1948 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1949 | break 2 |
---|
1950 | fi |
---|
1951 | done |
---|
1952 | done |
---|
1953 | |
---|
1954 | fi |
---|
1955 | fi |
---|
1956 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
1957 | if test -n "$ac_ct_CC"; then |
---|
1958 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
1959 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
1960 | else |
---|
1961 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1962 | echo "${ECHO_T}no" >&6 |
---|
1963 | fi |
---|
1964 | |
---|
1965 | test -n "$ac_ct_CC" && break |
---|
1966 | done |
---|
1967 | |
---|
1968 | CC=$ac_ct_CC |
---|
1969 | fi |
---|
1970 | |
---|
1971 | fi |
---|
1972 | |
---|
1973 | |
---|
1974 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
1975 | See \`config.log' for more details." >&5 |
---|
1976 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
1977 | See \`config.log' for more details." >&2;} |
---|
1978 | { (exit 1); exit 1; }; } |
---|
1979 | |
---|
1980 | # Provide some information about the compiler. |
---|
1981 | echo "$as_me:$LINENO:" \ |
---|
1982 | "checking for C compiler version" >&5 |
---|
1983 | ac_compiler=`set X $ac_compile; echo $2` |
---|
1984 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
1985 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
1986 | ac_status=$? |
---|
1987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1988 | (exit $ac_status); } |
---|
1989 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
1990 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
1991 | ac_status=$? |
---|
1992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1993 | (exit $ac_status); } |
---|
1994 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
1995 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
1996 | ac_status=$? |
---|
1997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1998 | (exit $ac_status); } |
---|
1999 | |
---|
2000 | cat >conftest.$ac_ext <<_ACEOF |
---|
2001 | #line $LINENO "configure" |
---|
2002 | /* confdefs.h. */ |
---|
2003 | _ACEOF |
---|
2004 | cat confdefs.h >>conftest.$ac_ext |
---|
2005 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2006 | /* end confdefs.h. */ |
---|
2007 | |
---|
2008 | int |
---|
2009 | main () |
---|
2010 | { |
---|
2011 | |
---|
2012 | ; |
---|
2013 | return 0; |
---|
2014 | } |
---|
2015 | _ACEOF |
---|
2016 | ac_clean_files_save=$ac_clean_files |
---|
2017 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
2018 | # Try to create an executable without -o first, disregard a.out. |
---|
2019 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
2020 | # of exeext. |
---|
2021 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
---|
2022 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
---|
2023 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
2024 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
2025 | (eval $ac_link_default) 2>&5 |
---|
2026 | ac_status=$? |
---|
2027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2028 | (exit $ac_status); }; then |
---|
2029 | # Find the output, starting from the most likely. This scheme is |
---|
2030 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
2031 | # resort. |
---|
2032 | |
---|
2033 | # Be careful to initialize this variable, since it used to be cached. |
---|
2034 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
2035 | ac_cv_exeext= |
---|
2036 | # b.out is created by i960 compilers. |
---|
2037 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
2038 | do |
---|
2039 | test -f "$ac_file" || continue |
---|
2040 | case $ac_file in |
---|
2041 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
2042 | ;; |
---|
2043 | conftest.$ac_ext ) |
---|
2044 | # This is the source file. |
---|
2045 | ;; |
---|
2046 | [ab].out ) |
---|
2047 | # We found the default executable, but exeext='' is most |
---|
2048 | # certainly right. |
---|
2049 | break;; |
---|
2050 | *.* ) |
---|
2051 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2052 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
2053 | # but it would be cool to find out if it's true. Does anybody |
---|
2054 | # maintain Libtool? --akim. |
---|
2055 | export ac_cv_exeext |
---|
2056 | break;; |
---|
2057 | * ) |
---|
2058 | break;; |
---|
2059 | esac |
---|
2060 | done |
---|
2061 | else |
---|
2062 | echo "$as_me: failed program was:" >&5 |
---|
2063 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2064 | |
---|
2065 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
2066 | See \`config.log' for more details." >&5 |
---|
2067 | echo "$as_me: error: C compiler cannot create executables |
---|
2068 | See \`config.log' for more details." >&2;} |
---|
2069 | { (exit 77); exit 77; }; } |
---|
2070 | fi |
---|
2071 | |
---|
2072 | ac_exeext=$ac_cv_exeext |
---|
2073 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2074 | echo "${ECHO_T}$ac_file" >&6 |
---|
2075 | |
---|
2076 | # Check the compiler produces executables we can run. If not, either |
---|
2077 | # the compiler is broken, or we cross compile. |
---|
2078 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
2079 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
---|
2080 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2081 | # If not cross compiling, check that we can run a simple program. |
---|
2082 | if test "$cross_compiling" != yes; then |
---|
2083 | if { ac_try='./$ac_file' |
---|
2084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2085 | (eval $ac_try) 2>&5 |
---|
2086 | ac_status=$? |
---|
2087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2088 | (exit $ac_status); }; }; then |
---|
2089 | cross_compiling=no |
---|
2090 | else |
---|
2091 | if test "$cross_compiling" = maybe; then |
---|
2092 | cross_compiling=yes |
---|
2093 | else |
---|
2094 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
2095 | If you meant to cross compile, use \`--host'. |
---|
2096 | See \`config.log' for more details." >&5 |
---|
2097 | echo "$as_me: error: cannot run C compiled programs. |
---|
2098 | If you meant to cross compile, use \`--host'. |
---|
2099 | See \`config.log' for more details." >&2;} |
---|
2100 | { (exit 1); exit 1; }; } |
---|
2101 | fi |
---|
2102 | fi |
---|
2103 | fi |
---|
2104 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
2105 | echo "${ECHO_T}yes" >&6 |
---|
2106 | |
---|
2107 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
2108 | ac_clean_files=$ac_clean_files_save |
---|
2109 | # Check the compiler produces executables we can run. If not, either |
---|
2110 | # the compiler is broken, or we cross compile. |
---|
2111 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2112 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
2113 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2114 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
2115 | |
---|
2116 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2117 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
2118 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2119 | (eval $ac_link) 2>&5 |
---|
2120 | ac_status=$? |
---|
2121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2122 | (exit $ac_status); }; then |
---|
2123 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2124 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2125 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2126 | # `rm'. |
---|
2127 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2128 | test -f "$ac_file" || continue |
---|
2129 | case $ac_file in |
---|
2130 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
2131 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2132 | export ac_cv_exeext |
---|
2133 | break;; |
---|
2134 | * ) break;; |
---|
2135 | esac |
---|
2136 | done |
---|
2137 | else |
---|
2138 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2139 | See \`config.log' for more details." >&5 |
---|
2140 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2141 | See \`config.log' for more details." >&2;} |
---|
2142 | { (exit 1); exit 1; }; } |
---|
2143 | fi |
---|
2144 | |
---|
2145 | rm -f conftest$ac_cv_exeext |
---|
2146 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2147 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2148 | |
---|
2149 | rm -f conftest.$ac_ext |
---|
2150 | EXEEXT=$ac_cv_exeext |
---|
2151 | ac_exeext=$EXEEXT |
---|
2152 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2153 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2154 | if test "${ac_cv_objext+set}" = set; then |
---|
2155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2156 | else |
---|
2157 | cat >conftest.$ac_ext <<_ACEOF |
---|
2158 | #line $LINENO "configure" |
---|
2159 | /* confdefs.h. */ |
---|
2160 | _ACEOF |
---|
2161 | cat confdefs.h >>conftest.$ac_ext |
---|
2162 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2163 | /* end confdefs.h. */ |
---|
2164 | |
---|
2165 | int |
---|
2166 | main () |
---|
2167 | { |
---|
2168 | |
---|
2169 | ; |
---|
2170 | return 0; |
---|
2171 | } |
---|
2172 | _ACEOF |
---|
2173 | rm -f conftest.o conftest.obj |
---|
2174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2175 | (eval $ac_compile) 2>&5 |
---|
2176 | ac_status=$? |
---|
2177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2178 | (exit $ac_status); }; then |
---|
2179 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2180 | case $ac_file in |
---|
2181 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2182 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2183 | break;; |
---|
2184 | esac |
---|
2185 | done |
---|
2186 | else |
---|
2187 | echo "$as_me: failed program was:" >&5 |
---|
2188 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2189 | |
---|
2190 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2191 | See \`config.log' for more details." >&5 |
---|
2192 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2193 | See \`config.log' for more details." >&2;} |
---|
2194 | { (exit 1); exit 1; }; } |
---|
2195 | fi |
---|
2196 | |
---|
2197 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2198 | fi |
---|
2199 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2200 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2201 | OBJEXT=$ac_cv_objext |
---|
2202 | ac_objext=$OBJEXT |
---|
2203 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2204 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2205 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2207 | else |
---|
2208 | cat >conftest.$ac_ext <<_ACEOF |
---|
2209 | #line $LINENO "configure" |
---|
2210 | /* confdefs.h. */ |
---|
2211 | _ACEOF |
---|
2212 | cat confdefs.h >>conftest.$ac_ext |
---|
2213 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2214 | /* end confdefs.h. */ |
---|
2215 | |
---|
2216 | int |
---|
2217 | main () |
---|
2218 | { |
---|
2219 | #ifndef __GNUC__ |
---|
2220 | choke me |
---|
2221 | #endif |
---|
2222 | |
---|
2223 | ; |
---|
2224 | return 0; |
---|
2225 | } |
---|
2226 | _ACEOF |
---|
2227 | rm -f conftest.$ac_objext |
---|
2228 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2229 | (eval $ac_compile) 2>&5 |
---|
2230 | ac_status=$? |
---|
2231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2232 | (exit $ac_status); } && |
---|
2233 | { ac_try='test -s conftest.$ac_objext' |
---|
2234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2235 | (eval $ac_try) 2>&5 |
---|
2236 | ac_status=$? |
---|
2237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2238 | (exit $ac_status); }; }; then |
---|
2239 | ac_compiler_gnu=yes |
---|
2240 | else |
---|
2241 | echo "$as_me: failed program was:" >&5 |
---|
2242 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2243 | |
---|
2244 | ac_compiler_gnu=no |
---|
2245 | fi |
---|
2246 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2247 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2248 | |
---|
2249 | fi |
---|
2250 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2251 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2252 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2253 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2254 | ac_save_CFLAGS=$CFLAGS |
---|
2255 | CFLAGS="-g" |
---|
2256 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2257 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2258 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2260 | else |
---|
2261 | cat >conftest.$ac_ext <<_ACEOF |
---|
2262 | #line $LINENO "configure" |
---|
2263 | /* confdefs.h. */ |
---|
2264 | _ACEOF |
---|
2265 | cat confdefs.h >>conftest.$ac_ext |
---|
2266 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2267 | /* end confdefs.h. */ |
---|
2268 | |
---|
2269 | int |
---|
2270 | main () |
---|
2271 | { |
---|
2272 | |
---|
2273 | ; |
---|
2274 | return 0; |
---|
2275 | } |
---|
2276 | _ACEOF |
---|
2277 | rm -f conftest.$ac_objext |
---|
2278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2279 | (eval $ac_compile) 2>&5 |
---|
2280 | ac_status=$? |
---|
2281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2282 | (exit $ac_status); } && |
---|
2283 | { ac_try='test -s conftest.$ac_objext' |
---|
2284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2285 | (eval $ac_try) 2>&5 |
---|
2286 | ac_status=$? |
---|
2287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2288 | (exit $ac_status); }; }; then |
---|
2289 | ac_cv_prog_cc_g=yes |
---|
2290 | else |
---|
2291 | echo "$as_me: failed program was:" >&5 |
---|
2292 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2293 | |
---|
2294 | ac_cv_prog_cc_g=no |
---|
2295 | fi |
---|
2296 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2297 | fi |
---|
2298 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
2299 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
2300 | if test "$ac_test_CFLAGS" = set; then |
---|
2301 | CFLAGS=$ac_save_CFLAGS |
---|
2302 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2303 | if test "$GCC" = yes; then |
---|
2304 | CFLAGS="-g -O2" |
---|
2305 | else |
---|
2306 | CFLAGS="-g" |
---|
2307 | fi |
---|
2308 | else |
---|
2309 | if test "$GCC" = yes; then |
---|
2310 | CFLAGS="-O2" |
---|
2311 | else |
---|
2312 | CFLAGS= |
---|
2313 | fi |
---|
2314 | fi |
---|
2315 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
2316 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
2317 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
2318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2319 | else |
---|
2320 | ac_cv_prog_cc_stdc=no |
---|
2321 | ac_save_CC=$CC |
---|
2322 | cat >conftest.$ac_ext <<_ACEOF |
---|
2323 | #line $LINENO "configure" |
---|
2324 | /* confdefs.h. */ |
---|
2325 | _ACEOF |
---|
2326 | cat confdefs.h >>conftest.$ac_ext |
---|
2327 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2328 | /* end confdefs.h. */ |
---|
2329 | #include <stdarg.h> |
---|
2330 | #include <stdio.h> |
---|
2331 | #include <sys/types.h> |
---|
2332 | #include <sys/stat.h> |
---|
2333 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2334 | struct buf { int x; }; |
---|
2335 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2336 | static char *e (p, i) |
---|
2337 | char **p; |
---|
2338 | int i; |
---|
2339 | { |
---|
2340 | return p[i]; |
---|
2341 | } |
---|
2342 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2343 | { |
---|
2344 | char *s; |
---|
2345 | va_list v; |
---|
2346 | va_start (v,p); |
---|
2347 | s = g (p, va_arg (v,int)); |
---|
2348 | va_end (v); |
---|
2349 | return s; |
---|
2350 | } |
---|
2351 | int test (int i, double x); |
---|
2352 | struct s1 {int (*f) (int a);}; |
---|
2353 | struct s2 {int (*f) (double a);}; |
---|
2354 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2355 | int argc; |
---|
2356 | char **argv; |
---|
2357 | int |
---|
2358 | main () |
---|
2359 | { |
---|
2360 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2361 | ; |
---|
2362 | return 0; |
---|
2363 | } |
---|
2364 | _ACEOF |
---|
2365 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
2366 | # breaks some systems' header files. |
---|
2367 | # AIX -qlanglvl=ansi |
---|
2368 | # Ultrix and OSF/1 -std1 |
---|
2369 | # HP-UX 10.20 and later -Ae |
---|
2370 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
2371 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
2372 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
2373 | do |
---|
2374 | CC="$ac_save_CC $ac_arg" |
---|
2375 | rm -f conftest.$ac_objext |
---|
2376 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2377 | (eval $ac_compile) 2>&5 |
---|
2378 | ac_status=$? |
---|
2379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2380 | (exit $ac_status); } && |
---|
2381 | { ac_try='test -s conftest.$ac_objext' |
---|
2382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2383 | (eval $ac_try) 2>&5 |
---|
2384 | ac_status=$? |
---|
2385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2386 | (exit $ac_status); }; }; then |
---|
2387 | ac_cv_prog_cc_stdc=$ac_arg |
---|
2388 | break |
---|
2389 | else |
---|
2390 | echo "$as_me: failed program was:" >&5 |
---|
2391 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2392 | |
---|
2393 | fi |
---|
2394 | rm -f conftest.$ac_objext |
---|
2395 | done |
---|
2396 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
2397 | CC=$ac_save_CC |
---|
2398 | |
---|
2399 | fi |
---|
2400 | |
---|
2401 | case "x$ac_cv_prog_cc_stdc" in |
---|
2402 | x|xno) |
---|
2403 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
2404 | echo "${ECHO_T}none needed" >&6 ;; |
---|
2405 | *) |
---|
2406 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
2407 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
2408 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
2409 | esac |
---|
2410 | |
---|
2411 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
2412 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
2413 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
2414 | # the declaration of exit, since it's the most demanding environment. |
---|
2415 | cat >conftest.$ac_ext <<_ACEOF |
---|
2416 | #ifndef __cplusplus |
---|
2417 | choke me |
---|
2418 | #endif |
---|
2419 | _ACEOF |
---|
2420 | rm -f conftest.$ac_objext |
---|
2421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2422 | (eval $ac_compile) 2>&5 |
---|
2423 | ac_status=$? |
---|
2424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2425 | (exit $ac_status); } && |
---|
2426 | { ac_try='test -s conftest.$ac_objext' |
---|
2427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2428 | (eval $ac_try) 2>&5 |
---|
2429 | ac_status=$? |
---|
2430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2431 | (exit $ac_status); }; }; then |
---|
2432 | for ac_declaration in \ |
---|
2433 | ''\ |
---|
2434 | '#include <stdlib.h>' \ |
---|
2435 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2436 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2437 | 'extern "C" void exit (int) throw ();' \ |
---|
2438 | 'extern "C" void exit (int);' \ |
---|
2439 | 'void exit (int);' |
---|
2440 | do |
---|
2441 | cat >conftest.$ac_ext <<_ACEOF |
---|
2442 | #line $LINENO "configure" |
---|
2443 | /* confdefs.h. */ |
---|
2444 | _ACEOF |
---|
2445 | cat confdefs.h >>conftest.$ac_ext |
---|
2446 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2447 | /* end confdefs.h. */ |
---|
2448 | #include <stdlib.h> |
---|
2449 | $ac_declaration |
---|
2450 | int |
---|
2451 | main () |
---|
2452 | { |
---|
2453 | exit (42); |
---|
2454 | ; |
---|
2455 | return 0; |
---|
2456 | } |
---|
2457 | _ACEOF |
---|
2458 | rm -f conftest.$ac_objext |
---|
2459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2460 | (eval $ac_compile) 2>&5 |
---|
2461 | ac_status=$? |
---|
2462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2463 | (exit $ac_status); } && |
---|
2464 | { ac_try='test -s conftest.$ac_objext' |
---|
2465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2466 | (eval $ac_try) 2>&5 |
---|
2467 | ac_status=$? |
---|
2468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2469 | (exit $ac_status); }; }; then |
---|
2470 | : |
---|
2471 | else |
---|
2472 | echo "$as_me: failed program was:" >&5 |
---|
2473 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2474 | |
---|
2475 | continue |
---|
2476 | fi |
---|
2477 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2478 | cat >conftest.$ac_ext <<_ACEOF |
---|
2479 | #line $LINENO "configure" |
---|
2480 | /* confdefs.h. */ |
---|
2481 | _ACEOF |
---|
2482 | cat confdefs.h >>conftest.$ac_ext |
---|
2483 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2484 | /* end confdefs.h. */ |
---|
2485 | $ac_declaration |
---|
2486 | int |
---|
2487 | main () |
---|
2488 | { |
---|
2489 | exit (42); |
---|
2490 | ; |
---|
2491 | return 0; |
---|
2492 | } |
---|
2493 | _ACEOF |
---|
2494 | rm -f conftest.$ac_objext |
---|
2495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2496 | (eval $ac_compile) 2>&5 |
---|
2497 | ac_status=$? |
---|
2498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2499 | (exit $ac_status); } && |
---|
2500 | { ac_try='test -s conftest.$ac_objext' |
---|
2501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2502 | (eval $ac_try) 2>&5 |
---|
2503 | ac_status=$? |
---|
2504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2505 | (exit $ac_status); }; }; then |
---|
2506 | break |
---|
2507 | else |
---|
2508 | echo "$as_me: failed program was:" >&5 |
---|
2509 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2510 | |
---|
2511 | fi |
---|
2512 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2513 | done |
---|
2514 | rm -f conftest* |
---|
2515 | if test -n "$ac_declaration"; then |
---|
2516 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2517 | echo $ac_declaration >>confdefs.h |
---|
2518 | echo '#endif' >>confdefs.h |
---|
2519 | fi |
---|
2520 | |
---|
2521 | else |
---|
2522 | echo "$as_me: failed program was:" >&5 |
---|
2523 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2524 | |
---|
2525 | fi |
---|
2526 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2527 | ac_ext=c |
---|
2528 | ac_cpp='$CPP $CPPFLAGS' |
---|
2529 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2530 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2531 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2532 | |
---|
2533 | |
---|
2534 | # Check whether --enable-64 or --disable-64 was given. |
---|
2535 | if test "${enable_64+set}" = set; then |
---|
2536 | enableval="$enable_64" |
---|
2537 | use_sixty_four=$enableval |
---|
2538 | else |
---|
2539 | use_sixty_four=no |
---|
2540 | fi; |
---|
2541 | |
---|
2542 | # Gcc does not support 32-bit pointers on the Alphas. |
---|
2543 | if test "$gcc_ok" != no; then |
---|
2544 | use_sixty_four=yes |
---|
2545 | fi |
---|
2546 | |
---|
2547 | |
---|
2548 | # Roderick Bloem (rbloem@colorado.edu): making a special case for |
---|
2549 | # ultrix install, since it's annoying about setting groupids. |
---|
2550 | case "$target" in |
---|
2551 | mips-dec-ultrix*) |
---|
2552 | INSTALL="helpers/install-sh -c" |
---|
2553 | INSTALL_PROGRAM="\${INSTALL}" |
---|
2554 | INSTALL_DATA="\${INSTALL} -m 644";; |
---|
2555 | |
---|
2556 | *) |
---|
2557 | # Find a good install program. We prefer a C program (faster), |
---|
2558 | # so one script is as good as another. But avoid the broken or |
---|
2559 | # incompatible versions: |
---|
2560 | # SysV /etc/install, /usr/sbin/install |
---|
2561 | # SunOS /usr/etc/install |
---|
2562 | # IRIX /sbin/install |
---|
2563 | # AIX /bin/install |
---|
2564 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
2565 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
2566 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
2567 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
2568 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
2569 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
2570 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
2571 | if test -z "$INSTALL"; then |
---|
2572 | if test "${ac_cv_path_install+set}" = set; then |
---|
2573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2574 | else |
---|
2575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2576 | for as_dir in $PATH |
---|
2577 | do |
---|
2578 | IFS=$as_save_IFS |
---|
2579 | test -z "$as_dir" && as_dir=. |
---|
2580 | # Account for people who put trailing slashes in PATH elements. |
---|
2581 | case $as_dir/ in |
---|
2582 | ./ | .// | /cC/* | \ |
---|
2583 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
2584 | /usr/ucb/* ) ;; |
---|
2585 | *) |
---|
2586 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
2587 | # Don't use installbsd from OSF since it installs stuff as root |
---|
2588 | # by default. |
---|
2589 | for ac_prog in ginstall scoinst install; do |
---|
2590 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2591 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
2592 | if test $ac_prog = install && |
---|
2593 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2594 | # AIX install. It has an incompatible calling convention. |
---|
2595 | : |
---|
2596 | elif test $ac_prog = install && |
---|
2597 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2598 | # program-specific install script used by HP pwplus--don't use. |
---|
2599 | : |
---|
2600 | else |
---|
2601 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
2602 | break 3 |
---|
2603 | fi |
---|
2604 | fi |
---|
2605 | done |
---|
2606 | done |
---|
2607 | ;; |
---|
2608 | esac |
---|
2609 | done |
---|
2610 | |
---|
2611 | |
---|
2612 | fi |
---|
2613 | if test "${ac_cv_path_install+set}" = set; then |
---|
2614 | INSTALL=$ac_cv_path_install |
---|
2615 | else |
---|
2616 | # As a last resort, use the slow shell script. We don't cache a |
---|
2617 | # path for INSTALL within a source directory, because that will |
---|
2618 | # break other packages using the cache if that directory is |
---|
2619 | # removed, or if the path is relative. |
---|
2620 | INSTALL=$ac_install_sh |
---|
2621 | fi |
---|
2622 | fi |
---|
2623 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
2624 | echo "${ECHO_T}$INSTALL" >&6 |
---|
2625 | |
---|
2626 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
2627 | # It thinks the first close brace ends the variable substitution. |
---|
2628 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
2629 | |
---|
2630 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
2631 | |
---|
2632 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
2633 | ;; |
---|
2634 | esac |
---|
2635 | |
---|
2636 | # Determine the compiler flags to use |
---|
2637 | |
---|
2638 | DEBUG_CFLAGS="-g" |
---|
2639 | DEBUG_LDFLAGS="" |
---|
2640 | |
---|
2641 | case "$target" in |
---|
2642 | |
---|
2643 | i686-pc-linux-gnu) |
---|
2644 | # Linux with Intel compiler |
---|
2645 | # -ansi: ANSI C conformance |
---|
2646 | # -ip: inter-procedural optimization |
---|
2647 | OPTIMIZE_CFLAGS="-g -O3 -ansi -ip" |
---|
2648 | ;; |
---|
2649 | |
---|
2650 | sparc-sun-solaris* | i386-pc-solaris*) |
---|
2651 | # Sparc and X86 Solaris: |
---|
2652 | # -xO3: Highest safe level of optimization |
---|
2653 | # -native: Optimize for the native processor (if supported) |
---|
2654 | # -dalign: Generate double-word load/store for performance |
---|
2655 | # (only for SPARC) |
---|
2656 | # and other arcane compilation flags. |
---|
2657 | if test "$GCC" = yes; then |
---|
2658 | OPTIMIZE_CFLAGS="-O" |
---|
2659 | else |
---|
2660 | case "$target" in |
---|
2661 | sparc-sun-solaris*) |
---|
2662 | ALIGN=" -dalign" ;; |
---|
2663 | *) |
---|
2664 | ALIGN="" ;; |
---|
2665 | esac |
---|
2666 | echo "$as_me:$LINENO: checking for -native" >&5 |
---|
2667 | echo $ECHO_N "checking for -native... $ECHO_C" >&6 |
---|
2668 | CFLAGS="-xO3 -native$ALIGN" |
---|
2669 | |
---|
2670 | if test "${ac_cv_have_native+set}" = set; then |
---|
2671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2672 | else |
---|
2673 | if test "$cross_compiling" = yes; then |
---|
2674 | ac_cv_have_native=no |
---|
2675 | else |
---|
2676 | cat >conftest.$ac_ext <<_ACEOF |
---|
2677 | #line $LINENO "configure" |
---|
2678 | /* confdefs.h. */ |
---|
2679 | _ACEOF |
---|
2680 | cat confdefs.h >>conftest.$ac_ext |
---|
2681 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2682 | /* end confdefs.h. */ |
---|
2683 | |
---|
2684 | main(){exit(0);} |
---|
2685 | |
---|
2686 | _ACEOF |
---|
2687 | rm -f conftest$ac_exeext |
---|
2688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2689 | (eval $ac_link) 2>&5 |
---|
2690 | ac_status=$? |
---|
2691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2692 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
2693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2694 | (eval $ac_try) 2>&5 |
---|
2695 | ac_status=$? |
---|
2696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2697 | (exit $ac_status); }; }; then |
---|
2698 | ac_cv_have_native=yes |
---|
2699 | else |
---|
2700 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
2701 | echo "$as_me: failed program was:" >&5 |
---|
2702 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2703 | |
---|
2704 | ( exit $ac_status ) |
---|
2705 | ac_cv_have_native=no |
---|
2706 | fi |
---|
2707 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
2708 | fi |
---|
2709 | fi |
---|
2710 | |
---|
2711 | if test $ac_cv_have_native = yes ; then |
---|
2712 | echo "$as_me:$LINENO: result: working" >&5 |
---|
2713 | echo "${ECHO_T}working" >&6 |
---|
2714 | OPTIMIZE_CFLAGS="-xO3 -native$ALIGN" |
---|
2715 | else |
---|
2716 | echo "$as_me:$LINENO: result: broken" >&5 |
---|
2717 | echo "${ECHO_T}broken" >&6 |
---|
2718 | echo "$as_me:$LINENO: checking for fallback optimization flags" >&5 |
---|
2719 | echo $ECHO_N "checking for fallback optimization flags... $ECHO_C" >&6 |
---|
2720 | CFLAGS="-xO3 -fns -fsimple=2$ALIGN -ftrap=%none -xlibmil" |
---|
2721 | if test "${ac_cv_have_fallback+set}" = set; then |
---|
2722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2723 | else |
---|
2724 | if test "$cross_compiling" = yes; then |
---|
2725 | ac_cv_have_fallback=no |
---|
2726 | else |
---|
2727 | cat >conftest.$ac_ext <<_ACEOF |
---|
2728 | #line $LINENO "configure" |
---|
2729 | /* confdefs.h. */ |
---|
2730 | _ACEOF |
---|
2731 | cat confdefs.h >>conftest.$ac_ext |
---|
2732 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2733 | /* end confdefs.h. */ |
---|
2734 | |
---|
2735 | main(){exit(0);} |
---|
2736 | |
---|
2737 | _ACEOF |
---|
2738 | rm -f conftest$ac_exeext |
---|
2739 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2740 | (eval $ac_link) 2>&5 |
---|
2741 | ac_status=$? |
---|
2742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2743 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
2744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2745 | (eval $ac_try) 2>&5 |
---|
2746 | ac_status=$? |
---|
2747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2748 | (exit $ac_status); }; }; then |
---|
2749 | ac_cv_have_fallback=yes |
---|
2750 | else |
---|
2751 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
2752 | echo "$as_me: failed program was:" >&5 |
---|
2753 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2754 | |
---|
2755 | ( exit $ac_status ) |
---|
2756 | ac_cv_have_fallback=no |
---|
2757 | fi |
---|
2758 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
2759 | fi |
---|
2760 | fi |
---|
2761 | |
---|
2762 | if test $ac_cv_have_fallback = yes ; then |
---|
2763 | echo "$as_me:$LINENO: result: working" >&5 |
---|
2764 | echo "${ECHO_T}working" >&6 |
---|
2765 | OPTIMIZE_CFLAGS="-xO3 -fns -fsimple=2$ALIGN -ftrap=%none -xlibmil" |
---|
2766 | else |
---|
2767 | echo "$as_me:$LINENO: result: broken" >&5 |
---|
2768 | echo "${ECHO_T}broken" >&6 |
---|
2769 | OPTIMIZE_CFLAGS="-O" |
---|
2770 | fi |
---|
2771 | fi |
---|
2772 | fi |
---|
2773 | ;; |
---|
2774 | |
---|
2775 | mips-dec-ultrix*) |
---|
2776 | # MIPS-based DECstations running Ultrix: |
---|
2777 | # -std1: Produce non-ANSI code warnings, and define __STDC__ |
---|
2778 | # -O: Use the global "ucode" optimizer |
---|
2779 | # -Olimit 5000: Don't optimize routines bigger than 5000 basic blocks |
---|
2780 | OPTIMIZE_CFLAGS="-std1 -O -Olimit 5000" ;; |
---|
2781 | |
---|
2782 | alpha-dec-osf*) |
---|
2783 | # DEC Alpha running OSF: |
---|
2784 | |
---|
2785 | # 64-bit mode: |
---|
2786 | # -g3: Produce symbol table information for optimized code |
---|
2787 | # -O4: Enable every optimization |
---|
2788 | # -std: Enforce the ANSI standard with extensions, define __STDC__ |
---|
2789 | # -ieee_with_no_inexact: Disable (potentially slow) signaling |
---|
2790 | # for inexact floating-point results |
---|
2791 | # -tune host: Tune instructions for the compilation host machine |
---|
2792 | OPTIMIZE_CFLAGS="-g3 -O4 -std -ieee_with_no_inexact -tune host" |
---|
2793 | DEBUG_CFLAGS="-g -std -ieee_with_no_inexact" |
---|
2794 | |
---|
2795 | # -non_shared: Do not use shared libraries |
---|
2796 | # -om: Generate an OMAGIC file for the om optimizer |
---|
2797 | OPTIMIZE_LDFLAGS="-non_shared" |
---|
2798 | |
---|
2799 | if test "$use_sixty_four" = "no"; then |
---|
2800 | # 32-bit mode: |
---|
2801 | # -xtaso: Make the compiler respond to #pragma pointer_size directives |
---|
2802 | OPTIMIZE_CFLAGS="$OPTIMIZE_CFLAGS -xtaso" |
---|
2803 | DEBUG_CFLAGS="$DEBUG_CFLAGS -xtaso" |
---|
2804 | |
---|
2805 | # -taso: Load the executable into the lower 31-bit address space |
---|
2806 | OPTIMIZE_LDFLAGS="$OPTIMIZE_LDFLAGS -om -taso" |
---|
2807 | DEBUG_LDFLAGS="$DEBUG_LDFLAGS -taso" |
---|
2808 | |
---|
2809 | cat >>confdefs.h <<\_ACEOF |
---|
2810 | #define SIZEOF_VOID_P 4 |
---|
2811 | _ACEOF |
---|
2812 | |
---|
2813 | ac_sizeof_voidp=4 |
---|
2814 | fi |
---|
2815 | ;; |
---|
2816 | |
---|
2817 | hppa*-*-hpux*) |
---|
2818 | # HP running HPUX |
---|
2819 | # -Aa: Behave as an ANSI compiler |
---|
2820 | # -D_HPUX_SOURCE: Include "HP-specific" symbols in the header |
---|
2821 | # files (e.g., this means sys/resource.h has struct rusage) |
---|
2822 | # +Onolimit: removes resource restrictions for optimization |
---|
2823 | OPTIMIZE_CFLAGS="-O -Aa +Onolimit -D_HPUX_SOURCE" |
---|
2824 | DEBUG_CFLAGS="-g -Aa -D_HPUX_SOURCE" ;; |
---|
2825 | |
---|
2826 | *) |
---|
2827 | # Other systems: |
---|
2828 | OPTIMIZE_CFLAGS="-O" ;; |
---|
2829 | |
---|
2830 | esac |
---|
2831 | |
---|
2832 | if test "$GCC" = yes; then |
---|
2833 | case "$target" in |
---|
2834 | i686-pc-linux-gnu | i386-pc-solaris* | i386-pc-cygwin32 | i386-*-freebsd*) |
---|
2835 | echo "$as_me:$LINENO: checking for -mcpu and -malign compiler options" >&5 |
---|
2836 | echo $ECHO_N "checking for -mcpu and -malign compiler options... $ECHO_C" >&6 |
---|
2837 | CFLAGS="-g -O6 -mcpu=pentiumpro -malign-double" |
---|
2838 | cat >conftest.$ac_ext <<_ACEOF |
---|
2839 | #line $LINENO "configure" |
---|
2840 | /* confdefs.h. */ |
---|
2841 | _ACEOF |
---|
2842 | cat confdefs.h >>conftest.$ac_ext |
---|
2843 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2844 | /* end confdefs.h. */ |
---|
2845 | |
---|
2846 | int |
---|
2847 | main () |
---|
2848 | { |
---|
2849 | |
---|
2850 | ; |
---|
2851 | return 0; |
---|
2852 | } |
---|
2853 | _ACEOF |
---|
2854 | rm -f conftest.$ac_objext |
---|
2855 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2856 | (eval $ac_compile) 2>&5 |
---|
2857 | ac_status=$? |
---|
2858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2859 | (exit $ac_status); } && |
---|
2860 | { ac_try='test -s conftest.$ac_objext' |
---|
2861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2862 | (eval $ac_try) 2>&5 |
---|
2863 | ac_status=$? |
---|
2864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2865 | (exit $ac_status); }; }; then |
---|
2866 | ac_have_mcpu=yes |
---|
2867 | else |
---|
2868 | echo "$as_me: failed program was:" >&5 |
---|
2869 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2870 | |
---|
2871 | ac_have_mcpu=no |
---|
2872 | fi |
---|
2873 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2874 | if test "$ac_have_mcpu" = yes; then |
---|
2875 | echo "$as_me:$LINENO: result: working" >&5 |
---|
2876 | echo "${ECHO_T}working" >&6 |
---|
2877 | OPTIMIZE_CFLAGS="-g -O6 -mcpu=pentiumpro -malign-double" |
---|
2878 | else |
---|
2879 | echo "$as_me:$LINENO: result: broken" >&5 |
---|
2880 | echo "${ECHO_T}broken" >&6 |
---|
2881 | OPTIMIZE_CFLAGS="-g -O3" |
---|
2882 | fi |
---|
2883 | ;; |
---|
2884 | sparc-sun-solaris*) |
---|
2885 | echo "$as_me:$LINENO: checking for -mtune compiler option" >&5 |
---|
2886 | echo $ECHO_N "checking for -mtune compiler option... $ECHO_C" >&6 |
---|
2887 | CFLAGS="-g -O6 -mtune=ultrasparc" |
---|
2888 | cat >conftest.$ac_ext <<_ACEOF |
---|
2889 | #line $LINENO "configure" |
---|
2890 | /* confdefs.h. */ |
---|
2891 | _ACEOF |
---|
2892 | cat confdefs.h >>conftest.$ac_ext |
---|
2893 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2894 | /* end confdefs.h. */ |
---|
2895 | |
---|
2896 | int |
---|
2897 | main () |
---|
2898 | { |
---|
2899 | |
---|
2900 | ; |
---|
2901 | return 0; |
---|
2902 | } |
---|
2903 | _ACEOF |
---|
2904 | rm -f conftest.$ac_objext |
---|
2905 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2906 | (eval $ac_compile) 2>&5 |
---|
2907 | ac_status=$? |
---|
2908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2909 | (exit $ac_status); } && |
---|
2910 | { ac_try='test -s conftest.$ac_objext' |
---|
2911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2912 | (eval $ac_try) 2>&5 |
---|
2913 | ac_status=$? |
---|
2914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2915 | (exit $ac_status); }; }; then |
---|
2916 | ac_have_mtune=yes |
---|
2917 | else |
---|
2918 | echo "$as_me: failed program was:" >&5 |
---|
2919 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2920 | |
---|
2921 | ac_have_mtune=no |
---|
2922 | fi |
---|
2923 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2924 | if test "$ac_have_mtune" = yes; then |
---|
2925 | echo "$as_me:$LINENO: result: working" >&5 |
---|
2926 | echo "${ECHO_T}working" >&6 |
---|
2927 | OPTIMIZE_CFLAGS="-g -O6 -mtune=ultrasparc" |
---|
2928 | else |
---|
2929 | echo "$as_me:$LINENO: result: not working" >&5 |
---|
2930 | echo "${ECHO_T}not working" >&6 |
---|
2931 | OPTIMIZE_CFLAGS="-g -O3" |
---|
2932 | fi |
---|
2933 | ;; |
---|
2934 | *) |
---|
2935 | OPTIMIZE_CFLAGS="-g -O3" |
---|
2936 | ;; |
---|
2937 | esac |
---|
2938 | OPTIMIZE_LDFLAGS="" |
---|
2939 | DEBUG_CFLAGS="-g" |
---|
2940 | DEBUG_LDFLAGS="" |
---|
2941 | fi |
---|
2942 | |
---|
2943 | |
---|
2944 | # Check whether --with-comp-mode or --without-comp-mode was given. |
---|
2945 | if test "${with_comp_mode+set}" = set; then |
---|
2946 | withval="$with_comp_mode" |
---|
2947 | comp_mode=$withval |
---|
2948 | else |
---|
2949 | comp_mode=optimize |
---|
2950 | fi; |
---|
2951 | |
---|
2952 | |
---|
2953 | |
---|
2954 | LINKER="$CC" |
---|
2955 | |
---|
2956 | case "$comp_mode" in |
---|
2957 | debug) |
---|
2958 | CFLAGS="$DEBUG_CFLAGS" |
---|
2959 | LDFLAGS="$DEBUG_LDFLAGS" ;; |
---|
2960 | purify) |
---|
2961 | CFLAGS="$DEBUG_CFLAGS" |
---|
2962 | LDFLAGS="$DEBUG_LDFLAGS" |
---|
2963 | cat >>confdefs.h <<\_ACEOF |
---|
2964 | #define PURIFY 1 |
---|
2965 | _ACEOF |
---|
2966 | |
---|
2967 | LINKER="purify -cache-dir=/tmp $CC" |
---|
2968 | PLINKER="purify -log-file=./purify.log -cachedir=/tmp $CC" ;; |
---|
2969 | quantify) |
---|
2970 | CFLAGS="$OPTIMIZE_CFLAGS" |
---|
2971 | LDFLAGS="$OPTIMIZE_LDFLAGS" |
---|
2972 | cat >>confdefs.h <<\_ACEOF |
---|
2973 | #define QUANTIFY 1 |
---|
2974 | _ACEOF |
---|
2975 | |
---|
2976 | cat >>confdefs.h <<\_ACEOF |
---|
2977 | #define NDEBUG 1 |
---|
2978 | _ACEOF |
---|
2979 | |
---|
2980 | LINKER="quantify $CC" ;; |
---|
2981 | optimize | *) |
---|
2982 | CFLAGS="$OPTIMIZE_CFLAGS" |
---|
2983 | LDFLAGS="$OPTIMIZE_LDFLAGS" |
---|
2984 | cat >>confdefs.h <<\_ACEOF |
---|
2985 | #define NDEBUG 1 |
---|
2986 | _ACEOF |
---|
2987 | ;; |
---|
2988 | esac |
---|
2989 | |
---|
2990 | for ac_prog in flex lex |
---|
2991 | do |
---|
2992 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2993 | set dummy $ac_prog; ac_word=$2 |
---|
2994 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2995 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2996 | if test "${ac_cv_prog_LEX+set}" = set; then |
---|
2997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2998 | else |
---|
2999 | if test -n "$LEX"; then |
---|
3000 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
---|
3001 | else |
---|
3002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3003 | for as_dir in $PATH |
---|
3004 | do |
---|
3005 | IFS=$as_save_IFS |
---|
3006 | test -z "$as_dir" && as_dir=. |
---|
3007 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3008 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3009 | ac_cv_prog_LEX="$ac_prog" |
---|
3010 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3011 | break 2 |
---|
3012 | fi |
---|
3013 | done |
---|
3014 | done |
---|
3015 | |
---|
3016 | fi |
---|
3017 | fi |
---|
3018 | LEX=$ac_cv_prog_LEX |
---|
3019 | if test -n "$LEX"; then |
---|
3020 | echo "$as_me:$LINENO: result: $LEX" >&5 |
---|
3021 | echo "${ECHO_T}$LEX" >&6 |
---|
3022 | else |
---|
3023 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3024 | echo "${ECHO_T}no" >&6 |
---|
3025 | fi |
---|
3026 | |
---|
3027 | test -n "$LEX" && break |
---|
3028 | done |
---|
3029 | test -n "$LEX" || LEX=":" |
---|
3030 | |
---|
3031 | if test -z "$LEXLIB" |
---|
3032 | then |
---|
3033 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
---|
3034 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
---|
3035 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
---|
3036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3037 | else |
---|
3038 | ac_check_lib_save_LIBS=$LIBS |
---|
3039 | LIBS="-lfl $LIBS" |
---|
3040 | cat >conftest.$ac_ext <<_ACEOF |
---|
3041 | #line $LINENO "configure" |
---|
3042 | /* confdefs.h. */ |
---|
3043 | _ACEOF |
---|
3044 | cat confdefs.h >>conftest.$ac_ext |
---|
3045 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3046 | /* end confdefs.h. */ |
---|
3047 | |
---|
3048 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3049 | #ifdef __cplusplus |
---|
3050 | extern "C" |
---|
3051 | #endif |
---|
3052 | /* We use char because int might match the return type of a gcc2 |
---|
3053 | builtin and then its argument prototype would still apply. */ |
---|
3054 | char yywrap (); |
---|
3055 | int |
---|
3056 | main () |
---|
3057 | { |
---|
3058 | yywrap (); |
---|
3059 | ; |
---|
3060 | return 0; |
---|
3061 | } |
---|
3062 | _ACEOF |
---|
3063 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3064 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3065 | (eval $ac_link) 2>&5 |
---|
3066 | ac_status=$? |
---|
3067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3068 | (exit $ac_status); } && |
---|
3069 | { ac_try='test -s conftest$ac_exeext' |
---|
3070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3071 | (eval $ac_try) 2>&5 |
---|
3072 | ac_status=$? |
---|
3073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3074 | (exit $ac_status); }; }; then |
---|
3075 | ac_cv_lib_fl_yywrap=yes |
---|
3076 | else |
---|
3077 | echo "$as_me: failed program was:" >&5 |
---|
3078 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3079 | |
---|
3080 | ac_cv_lib_fl_yywrap=no |
---|
3081 | fi |
---|
3082 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
3083 | LIBS=$ac_check_lib_save_LIBS |
---|
3084 | fi |
---|
3085 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
---|
3086 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
---|
3087 | if test $ac_cv_lib_fl_yywrap = yes; then |
---|
3088 | LEXLIB="-lfl" |
---|
3089 | else |
---|
3090 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
---|
3091 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
---|
3092 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
---|
3093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3094 | else |
---|
3095 | ac_check_lib_save_LIBS=$LIBS |
---|
3096 | LIBS="-ll $LIBS" |
---|
3097 | cat >conftest.$ac_ext <<_ACEOF |
---|
3098 | #line $LINENO "configure" |
---|
3099 | /* confdefs.h. */ |
---|
3100 | _ACEOF |
---|
3101 | cat confdefs.h >>conftest.$ac_ext |
---|
3102 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3103 | /* end confdefs.h. */ |
---|
3104 | |
---|
3105 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3106 | #ifdef __cplusplus |
---|
3107 | extern "C" |
---|
3108 | #endif |
---|
3109 | /* We use char because int might match the return type of a gcc2 |
---|
3110 | builtin and then its argument prototype would still apply. */ |
---|
3111 | char yywrap (); |
---|
3112 | int |
---|
3113 | main () |
---|
3114 | { |
---|
3115 | yywrap (); |
---|
3116 | ; |
---|
3117 | return 0; |
---|
3118 | } |
---|
3119 | _ACEOF |
---|
3120 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3121 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3122 | (eval $ac_link) 2>&5 |
---|
3123 | ac_status=$? |
---|
3124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3125 | (exit $ac_status); } && |
---|
3126 | { ac_try='test -s conftest$ac_exeext' |
---|
3127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3128 | (eval $ac_try) 2>&5 |
---|
3129 | ac_status=$? |
---|
3130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3131 | (exit $ac_status); }; }; then |
---|
3132 | ac_cv_lib_l_yywrap=yes |
---|
3133 | else |
---|
3134 | echo "$as_me: failed program was:" >&5 |
---|
3135 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3136 | |
---|
3137 | ac_cv_lib_l_yywrap=no |
---|
3138 | fi |
---|
3139 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
3140 | LIBS=$ac_check_lib_save_LIBS |
---|
3141 | fi |
---|
3142 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
---|
3143 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
---|
3144 | if test $ac_cv_lib_l_yywrap = yes; then |
---|
3145 | LEXLIB="-ll" |
---|
3146 | fi |
---|
3147 | |
---|
3148 | fi |
---|
3149 | |
---|
3150 | fi |
---|
3151 | |
---|
3152 | if test "x$LEX" != "x:"; then |
---|
3153 | echo "$as_me:$LINENO: checking lex output file root" >&5 |
---|
3154 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
---|
3155 | if test "${ac_cv_prog_lex_root+set}" = set; then |
---|
3156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3157 | else |
---|
3158 | # The minimal lex program is just a single line: %%. But some broken lexes |
---|
3159 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
---|
3160 | cat >conftest.l <<_ACEOF |
---|
3161 | %% |
---|
3162 | %% |
---|
3163 | _ACEOF |
---|
3164 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
---|
3165 | (eval $LEX conftest.l) 2>&5 |
---|
3166 | ac_status=$? |
---|
3167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3168 | (exit $ac_status); } |
---|
3169 | if test -f lex.yy.c; then |
---|
3170 | ac_cv_prog_lex_root=lex.yy |
---|
3171 | elif test -f lexyy.c; then |
---|
3172 | ac_cv_prog_lex_root=lexyy |
---|
3173 | else |
---|
3174 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
---|
3175 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
---|
3176 | { (exit 1); exit 1; }; } |
---|
3177 | fi |
---|
3178 | fi |
---|
3179 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
---|
3180 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
---|
3181 | rm -f conftest.l |
---|
3182 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
---|
3183 | |
---|
3184 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
---|
3185 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
---|
3186 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
---|
3187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3188 | else |
---|
3189 | # POSIX says lex can declare yytext either as a pointer or an array; the |
---|
3190 | # default is implementation-dependent. Figure out which it is, since |
---|
3191 | # not all implementations provide the %pointer and %array declarations. |
---|
3192 | ac_cv_prog_lex_yytext_pointer=no |
---|
3193 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
---|
3194 | ac_save_LIBS=$LIBS |
---|
3195 | LIBS="$LIBS $LEXLIB" |
---|
3196 | cat >conftest.$ac_ext <<_ACEOF |
---|
3197 | `cat $LEX_OUTPUT_ROOT.c` |
---|
3198 | _ACEOF |
---|
3199 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3200 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3201 | (eval $ac_link) 2>&5 |
---|
3202 | ac_status=$? |
---|
3203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3204 | (exit $ac_status); } && |
---|
3205 | { ac_try='test -s conftest$ac_exeext' |
---|
3206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3207 | (eval $ac_try) 2>&5 |
---|
3208 | ac_status=$? |
---|
3209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3210 | (exit $ac_status); }; }; then |
---|
3211 | ac_cv_prog_lex_yytext_pointer=yes |
---|
3212 | else |
---|
3213 | echo "$as_me: failed program was:" >&5 |
---|
3214 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3215 | |
---|
3216 | fi |
---|
3217 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
3218 | LIBS=$ac_save_LIBS |
---|
3219 | rm -f "${LEX_OUTPUT_ROOT}.c" |
---|
3220 | |
---|
3221 | fi |
---|
3222 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
---|
3223 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
---|
3224 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
---|
3225 | |
---|
3226 | cat >>confdefs.h <<\_ACEOF |
---|
3227 | #define YYTEXT_POINTER 1 |
---|
3228 | _ACEOF |
---|
3229 | |
---|
3230 | fi |
---|
3231 | |
---|
3232 | fi |
---|
3233 | echo "$as_me:$LINENO: checking if $LEX accepts the -o and -P options" >&5 |
---|
3234 | echo $ECHO_N "checking if $LEX accepts the -o and -P options... $ECHO_C" >&6 |
---|
3235 | |
---|
3236 | if test "${ac_cv_flex_accepts_op+set}" = set; then |
---|
3237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3238 | else |
---|
3239 | ac_cv_flex_accepts_op=yes ; |
---|
3240 | echo "%%\ |
---|
3241 | %%" | $LEX -Ptest -o/dev/null >/dev/null 2>&1 || ac_cv_flex_accepts_op=no |
---|
3242 | fi |
---|
3243 | |
---|
3244 | if test $ac_cv_flex_accepts_op = yes ; then |
---|
3245 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
3246 | echo "${ECHO_T}yes" >&6 |
---|
3247 | else |
---|
3248 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3249 | echo "${ECHO_T}no" >&6 |
---|
3250 | { echo "$as_me:$LINENO: WARNING: You either need a newer version of flex, or need to modify |
---|
3251 | the defintion of LEX in the Makefile to point to a version that does |
---|
3252 | accept -p -t and -o." >&5 |
---|
3253 | echo "$as_me: WARNING: You either need a newer version of flex, or need to modify |
---|
3254 | the defintion of LEX in the Makefile to point to a version that does |
---|
3255 | accept -p -t and -o." >&2;} |
---|
3256 | fi |
---|
3257 | |
---|
3258 | for ac_prog in 'bison -y' byacc |
---|
3259 | do |
---|
3260 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3261 | set dummy $ac_prog; ac_word=$2 |
---|
3262 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3263 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
3264 | if test "${ac_cv_prog_YACC+set}" = set; then |
---|
3265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3266 | else |
---|
3267 | if test -n "$YACC"; then |
---|
3268 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
---|
3269 | else |
---|
3270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3271 | for as_dir in $PATH |
---|
3272 | do |
---|
3273 | IFS=$as_save_IFS |
---|
3274 | test -z "$as_dir" && as_dir=. |
---|
3275 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3276 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
3277 | ac_cv_prog_YACC="$ac_prog" |
---|
3278 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3279 | break 2 |
---|
3280 | fi |
---|
3281 | done |
---|
3282 | done |
---|
3283 | |
---|
3284 | fi |
---|
3285 | fi |
---|
3286 | YACC=$ac_cv_prog_YACC |
---|
3287 | if test -n "$YACC"; then |
---|
3288 | echo "$as_me:$LINENO: result: $YACC" >&5 |
---|
3289 | echo "${ECHO_T}$YACC" >&6 |
---|
3290 | else |
---|
3291 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3292 | echo "${ECHO_T}no" >&6 |
---|
3293 | fi |
---|
3294 | |
---|
3295 | test -n "$YACC" && break |
---|
3296 | done |
---|
3297 | test -n "$YACC" || YACC="yacc" |
---|
3298 | |
---|
3299 | echo "$as_me:$LINENO: checking if $YACC accepts the -p, -t, and -o options" >&5 |
---|
3300 | echo $ECHO_N "checking if $YACC accepts the -p, -t, and -o options... $ECHO_C" >&6 |
---|
3301 | if test "${ac_cv_yacc_accepts_pto+set}" = set; then |
---|
3302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3303 | else |
---|
3304 | ac_cv_yacc_accepts_pto=yes ; |
---|
3305 | echo "%token terminal\ |
---|
3306 | %%\ |
---|
3307 | nonterminal: terminal\ |
---|
3308 | %%" > config.in |
---|
3309 | $YACC -ptest -o /dev/null config.in >/dev/null 2>&1 || ac_cv_yacc_accepts_pto=no |
---|
3310 | rm -f config.in |
---|
3311 | fi |
---|
3312 | |
---|
3313 | if test $ac_cv_yacc_accepts_pto = yes ; then |
---|
3314 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
3315 | echo "${ECHO_T}yes" >&6 |
---|
3316 | else |
---|
3317 | echo "$as_me:$LINENO: result: no" >&5 |
---|
3318 | echo "${ECHO_T}no" >&6 |
---|
3319 | { echo "$as_me:$LINENO: WARNING: You either need a newer version of bison, or need to modify |
---|
3320 | the defintion of YACC in the Makefile to point to a version that does |
---|
3321 | accept -p -t and -o." >&5 |
---|
3322 | echo "$as_me: WARNING: You either need a newer version of bison, or need to modify |
---|
3323 | the defintion of YACC in the Makefile to point to a version that does |
---|
3324 | accept -p -t and -o." >&2;} |
---|
3325 | fi |
---|
3326 | |
---|
3327 | #---------------------------------------------------------------------- |
---|
3328 | # Checks for headers and libraries |
---|
3329 | #---------------------------------------------------------------------- |
---|
3330 | ac_ext=c |
---|
3331 | ac_cpp='$CPP $CPPFLAGS' |
---|
3332 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3333 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3334 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3335 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
3336 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
3337 | # On Suns, sometimes $CPP names a directory. |
---|
3338 | if test -n "$CPP" && test -d "$CPP"; then |
---|
3339 | CPP= |
---|
3340 | fi |
---|
3341 | if test -z "$CPP"; then |
---|
3342 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
3343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3344 | else |
---|
3345 | # Double quotes because CPP needs to be expanded |
---|
3346 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
3347 | do |
---|
3348 | ac_preproc_ok=false |
---|
3349 | for ac_c_preproc_warn_flag in '' yes |
---|
3350 | do |
---|
3351 | # Use a header file that comes with gcc, so configuring glibc |
---|
3352 | # with a fresh cross-compiler works. |
---|
3353 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3354 | # <limits.h> exists even on freestanding compilers. |
---|
3355 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3356 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3357 | cat >conftest.$ac_ext <<_ACEOF |
---|
3358 | #line $LINENO "configure" |
---|
3359 | /* confdefs.h. */ |
---|
3360 | _ACEOF |
---|
3361 | cat confdefs.h >>conftest.$ac_ext |
---|
3362 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3363 | /* end confdefs.h. */ |
---|
3364 | #ifdef __STDC__ |
---|
3365 | # include <limits.h> |
---|
3366 | #else |
---|
3367 | # include <assert.h> |
---|
3368 | #endif |
---|
3369 | Syntax error |
---|
3370 | _ACEOF |
---|
3371 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3372 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3373 | ac_status=$? |
---|
3374 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3375 | rm -f conftest.er1 |
---|
3376 | cat conftest.err >&5 |
---|
3377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3378 | (exit $ac_status); } >/dev/null; then |
---|
3379 | if test -s conftest.err; then |
---|
3380 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3381 | else |
---|
3382 | ac_cpp_err= |
---|
3383 | fi |
---|
3384 | else |
---|
3385 | ac_cpp_err=yes |
---|
3386 | fi |
---|
3387 | if test -z "$ac_cpp_err"; then |
---|
3388 | : |
---|
3389 | else |
---|
3390 | echo "$as_me: failed program was:" >&5 |
---|
3391 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3392 | |
---|
3393 | # Broken: fails on valid input. |
---|
3394 | continue |
---|
3395 | fi |
---|
3396 | rm -f conftest.err conftest.$ac_ext |
---|
3397 | |
---|
3398 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3399 | # can be detected and how. |
---|
3400 | cat >conftest.$ac_ext <<_ACEOF |
---|
3401 | #line $LINENO "configure" |
---|
3402 | /* confdefs.h. */ |
---|
3403 | _ACEOF |
---|
3404 | cat confdefs.h >>conftest.$ac_ext |
---|
3405 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3406 | /* end confdefs.h. */ |
---|
3407 | #include <ac_nonexistent.h> |
---|
3408 | _ACEOF |
---|
3409 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3410 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3411 | ac_status=$? |
---|
3412 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3413 | rm -f conftest.er1 |
---|
3414 | cat conftest.err >&5 |
---|
3415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3416 | (exit $ac_status); } >/dev/null; then |
---|
3417 | if test -s conftest.err; then |
---|
3418 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3419 | else |
---|
3420 | ac_cpp_err= |
---|
3421 | fi |
---|
3422 | else |
---|
3423 | ac_cpp_err=yes |
---|
3424 | fi |
---|
3425 | if test -z "$ac_cpp_err"; then |
---|
3426 | # Broken: success on invalid input. |
---|
3427 | continue |
---|
3428 | else |
---|
3429 | echo "$as_me: failed program was:" >&5 |
---|
3430 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3431 | |
---|
3432 | # Passes both tests. |
---|
3433 | ac_preproc_ok=: |
---|
3434 | break |
---|
3435 | fi |
---|
3436 | rm -f conftest.err conftest.$ac_ext |
---|
3437 | |
---|
3438 | done |
---|
3439 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3440 | rm -f conftest.err conftest.$ac_ext |
---|
3441 | if $ac_preproc_ok; then |
---|
3442 | break |
---|
3443 | fi |
---|
3444 | |
---|
3445 | done |
---|
3446 | ac_cv_prog_CPP=$CPP |
---|
3447 | |
---|
3448 | fi |
---|
3449 | CPP=$ac_cv_prog_CPP |
---|
3450 | else |
---|
3451 | ac_cv_prog_CPP=$CPP |
---|
3452 | fi |
---|
3453 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
3454 | echo "${ECHO_T}$CPP" >&6 |
---|
3455 | ac_preproc_ok=false |
---|
3456 | for ac_c_preproc_warn_flag in '' yes |
---|
3457 | do |
---|
3458 | # Use a header file that comes with gcc, so configuring glibc |
---|
3459 | # with a fresh cross-compiler works. |
---|
3460 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3461 | # <limits.h> exists even on freestanding compilers. |
---|
3462 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3463 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3464 | cat >conftest.$ac_ext <<_ACEOF |
---|
3465 | #line $LINENO "configure" |
---|
3466 | /* confdefs.h. */ |
---|
3467 | _ACEOF |
---|
3468 | cat confdefs.h >>conftest.$ac_ext |
---|
3469 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3470 | /* end confdefs.h. */ |
---|
3471 | #ifdef __STDC__ |
---|
3472 | # include <limits.h> |
---|
3473 | #else |
---|
3474 | # include <assert.h> |
---|
3475 | #endif |
---|
3476 | Syntax error |
---|
3477 | _ACEOF |
---|
3478 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3479 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3480 | ac_status=$? |
---|
3481 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3482 | rm -f conftest.er1 |
---|
3483 | cat conftest.err >&5 |
---|
3484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3485 | (exit $ac_status); } >/dev/null; then |
---|
3486 | if test -s conftest.err; then |
---|
3487 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3488 | else |
---|
3489 | ac_cpp_err= |
---|
3490 | fi |
---|
3491 | else |
---|
3492 | ac_cpp_err=yes |
---|
3493 | fi |
---|
3494 | if test -z "$ac_cpp_err"; then |
---|
3495 | : |
---|
3496 | else |
---|
3497 | echo "$as_me: failed program was:" >&5 |
---|
3498 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3499 | |
---|
3500 | # Broken: fails on valid input. |
---|
3501 | continue |
---|
3502 | fi |
---|
3503 | rm -f conftest.err conftest.$ac_ext |
---|
3504 | |
---|
3505 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3506 | # can be detected and how. |
---|
3507 | cat >conftest.$ac_ext <<_ACEOF |
---|
3508 | #line $LINENO "configure" |
---|
3509 | /* confdefs.h. */ |
---|
3510 | _ACEOF |
---|
3511 | cat confdefs.h >>conftest.$ac_ext |
---|
3512 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3513 | /* end confdefs.h. */ |
---|
3514 | #include <ac_nonexistent.h> |
---|
3515 | _ACEOF |
---|
3516 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3517 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3518 | ac_status=$? |
---|
3519 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3520 | rm -f conftest.er1 |
---|
3521 | cat conftest.err >&5 |
---|
3522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3523 | (exit $ac_status); } >/dev/null; then |
---|
3524 | if test -s conftest.err; then |
---|
3525 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3526 | else |
---|
3527 | ac_cpp_err= |
---|
3528 | fi |
---|
3529 | else |
---|
3530 | ac_cpp_err=yes |
---|
3531 | fi |
---|
3532 | if test -z "$ac_cpp_err"; then |
---|
3533 | # Broken: success on invalid input. |
---|
3534 | continue |
---|
3535 | else |
---|
3536 | echo "$as_me: failed program was:" >&5 |
---|
3537 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3538 | |
---|
3539 | # Passes both tests. |
---|
3540 | ac_preproc_ok=: |
---|
3541 | break |
---|
3542 | fi |
---|
3543 | rm -f conftest.err conftest.$ac_ext |
---|
3544 | |
---|
3545 | done |
---|
3546 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3547 | rm -f conftest.err conftest.$ac_ext |
---|
3548 | if $ac_preproc_ok; then |
---|
3549 | : |
---|
3550 | else |
---|
3551 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
3552 | See \`config.log' for more details." >&5 |
---|
3553 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
3554 | See \`config.log' for more details." >&2;} |
---|
3555 | { (exit 1); exit 1; }; } |
---|
3556 | fi |
---|
3557 | |
---|
3558 | ac_ext=c |
---|
3559 | ac_cpp='$CPP $CPPFLAGS' |
---|
3560 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3561 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3562 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3563 | |
---|
3564 | |
---|
3565 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
3566 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
3567 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
3568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3569 | else |
---|
3570 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
3571 | then ac_cv_prog_egrep='grep -E' |
---|
3572 | else ac_cv_prog_egrep='egrep' |
---|
3573 | fi |
---|
3574 | fi |
---|
3575 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
3576 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
3577 | EGREP=$ac_cv_prog_egrep |
---|
3578 | |
---|
3579 | |
---|
3580 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
3581 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
3582 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
3583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3584 | else |
---|
3585 | cat >conftest.$ac_ext <<_ACEOF |
---|
3586 | #line $LINENO "configure" |
---|
3587 | /* confdefs.h. */ |
---|
3588 | _ACEOF |
---|
3589 | cat confdefs.h >>conftest.$ac_ext |
---|
3590 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3591 | /* end confdefs.h. */ |
---|
3592 | #include <stdlib.h> |
---|
3593 | #include <stdarg.h> |
---|
3594 | #include <string.h> |
---|
3595 | #include <float.h> |
---|
3596 | |
---|
3597 | int |
---|
3598 | main () |
---|
3599 | { |
---|
3600 | |
---|
3601 | ; |
---|
3602 | return 0; |
---|
3603 | } |
---|
3604 | _ACEOF |
---|
3605 | rm -f conftest.$ac_objext |
---|
3606 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3607 | (eval $ac_compile) 2>&5 |
---|
3608 | ac_status=$? |
---|
3609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3610 | (exit $ac_status); } && |
---|
3611 | { ac_try='test -s conftest.$ac_objext' |
---|
3612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3613 | (eval $ac_try) 2>&5 |
---|
3614 | ac_status=$? |
---|
3615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3616 | (exit $ac_status); }; }; then |
---|
3617 | ac_cv_header_stdc=yes |
---|
3618 | else |
---|
3619 | echo "$as_me: failed program was:" >&5 |
---|
3620 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3621 | |
---|
3622 | ac_cv_header_stdc=no |
---|
3623 | fi |
---|
3624 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
3625 | |
---|
3626 | if test $ac_cv_header_stdc = yes; then |
---|
3627 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
3628 | cat >conftest.$ac_ext <<_ACEOF |
---|
3629 | #line $LINENO "configure" |
---|
3630 | /* confdefs.h. */ |
---|
3631 | _ACEOF |
---|
3632 | cat confdefs.h >>conftest.$ac_ext |
---|
3633 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3634 | /* end confdefs.h. */ |
---|
3635 | #include <string.h> |
---|
3636 | |
---|
3637 | _ACEOF |
---|
3638 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3639 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
3640 | : |
---|
3641 | else |
---|
3642 | ac_cv_header_stdc=no |
---|
3643 | fi |
---|
3644 | rm -f conftest* |
---|
3645 | |
---|
3646 | fi |
---|
3647 | |
---|
3648 | if test $ac_cv_header_stdc = yes; then |
---|
3649 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
3650 | cat >conftest.$ac_ext <<_ACEOF |
---|
3651 | #line $LINENO "configure" |
---|
3652 | /* confdefs.h. */ |
---|
3653 | _ACEOF |
---|
3654 | cat confdefs.h >>conftest.$ac_ext |
---|
3655 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3656 | /* end confdefs.h. */ |
---|
3657 | #include <stdlib.h> |
---|
3658 | |
---|
3659 | _ACEOF |
---|
3660 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3661 | $EGREP "free" >/dev/null 2>&1; then |
---|
3662 | : |
---|
3663 | else |
---|
3664 | ac_cv_header_stdc=no |
---|
3665 | fi |
---|
3666 | rm -f conftest* |
---|
3667 | |
---|
3668 | fi |
---|
3669 | |
---|
3670 | if test $ac_cv_header_stdc = yes; then |
---|
3671 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
3672 | if test "$cross_compiling" = yes; then |
---|
3673 | : |
---|
3674 | else |
---|
3675 | cat >conftest.$ac_ext <<_ACEOF |
---|
3676 | #line $LINENO "configure" |
---|
3677 | /* confdefs.h. */ |
---|
3678 | _ACEOF |
---|
3679 | cat confdefs.h >>conftest.$ac_ext |
---|
3680 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3681 | /* end confdefs.h. */ |
---|
3682 | #include <ctype.h> |
---|
3683 | #if ((' ' & 0x0FF) == 0x020) |
---|
3684 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
3685 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
3686 | #else |
---|
3687 | # define ISLOWER(c) \ |
---|
3688 | (('a' <= (c) && (c) <= 'i') \ |
---|
3689 | || ('j' <= (c) && (c) <= 'r') \ |
---|
3690 | || ('s' <= (c) && (c) <= 'z')) |
---|
3691 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
3692 | #endif |
---|
3693 | |
---|
3694 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
3695 | int |
---|
3696 | main () |
---|
3697 | { |
---|
3698 | int i; |
---|
3699 | for (i = 0; i < 256; i++) |
---|
3700 | if (XOR (islower (i), ISLOWER (i)) |
---|
3701 | || toupper (i) != TOUPPER (i)) |
---|
3702 | exit(2); |
---|
3703 | exit (0); |
---|
3704 | } |
---|
3705 | _ACEOF |
---|
3706 | rm -f conftest$ac_exeext |
---|
3707 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3708 | (eval $ac_link) 2>&5 |
---|
3709 | ac_status=$? |
---|
3710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3711 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
3712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3713 | (eval $ac_try) 2>&5 |
---|
3714 | ac_status=$? |
---|
3715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3716 | (exit $ac_status); }; }; then |
---|
3717 | : |
---|
3718 | else |
---|
3719 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
3720 | echo "$as_me: failed program was:" >&5 |
---|
3721 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3722 | |
---|
3723 | ( exit $ac_status ) |
---|
3724 | ac_cv_header_stdc=no |
---|
3725 | fi |
---|
3726 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
3727 | fi |
---|
3728 | fi |
---|
3729 | fi |
---|
3730 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
3731 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
3732 | if test $ac_cv_header_stdc = yes; then |
---|
3733 | |
---|
3734 | cat >>confdefs.h <<\_ACEOF |
---|
3735 | #define STDC_HEADERS 1 |
---|
3736 | _ACEOF |
---|
3737 | |
---|
3738 | fi |
---|
3739 | |
---|
3740 | |
---|
3741 | |
---|
3742 | |
---|
3743 | # add -lucb to LIBS and -L/usr/ucblib to LIBDIRS |
---|
3744 | # if there's a libucb.a available |
---|
3745 | # (Solaris needs this for signals) |
---|
3746 | |
---|
3747 | ac_save_ldflags="$LDFLAGS" |
---|
3748 | LDFLAGS=-L/usr/ucblib |
---|
3749 | echo "$as_me:$LINENO: checking for main in -lucb" >&5 |
---|
3750 | echo $ECHO_N "checking for main in -lucb... $ECHO_C" >&6 |
---|
3751 | if test "${ac_cv_lib_ucb_main+set}" = set; then |
---|
3752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3753 | else |
---|
3754 | ac_check_lib_save_LIBS=$LIBS |
---|
3755 | LIBS="-lucb $LIBS" |
---|
3756 | cat >conftest.$ac_ext <<_ACEOF |
---|
3757 | #line $LINENO "configure" |
---|
3758 | /* confdefs.h. */ |
---|
3759 | _ACEOF |
---|
3760 | cat confdefs.h >>conftest.$ac_ext |
---|
3761 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3762 | /* end confdefs.h. */ |
---|
3763 | |
---|
3764 | |
---|
3765 | int |
---|
3766 | main () |
---|
3767 | { |
---|
3768 | main (); |
---|
3769 | ; |
---|
3770 | return 0; |
---|
3771 | } |
---|
3772 | _ACEOF |
---|
3773 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3774 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3775 | (eval $ac_link) 2>&5 |
---|
3776 | ac_status=$? |
---|
3777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3778 | (exit $ac_status); } && |
---|
3779 | { ac_try='test -s conftest$ac_exeext' |
---|
3780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3781 | (eval $ac_try) 2>&5 |
---|
3782 | ac_status=$? |
---|
3783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3784 | (exit $ac_status); }; }; then |
---|
3785 | ac_cv_lib_ucb_main=yes |
---|
3786 | else |
---|
3787 | echo "$as_me: failed program was:" >&5 |
---|
3788 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3789 | |
---|
3790 | ac_cv_lib_ucb_main=no |
---|
3791 | fi |
---|
3792 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
3793 | LIBS=$ac_check_lib_save_LIBS |
---|
3794 | fi |
---|
3795 | echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_main" >&5 |
---|
3796 | echo "${ECHO_T}$ac_cv_lib_ucb_main" >&6 |
---|
3797 | if test $ac_cv_lib_ucb_main = yes; then |
---|
3798 | LIBDIRS="$LIBDIRS -L/usr/ucblib" |
---|
3799 | fi |
---|
3800 | |
---|
3801 | LDFLAGS="$ac_save_ldflags" |
---|
3802 | |
---|
3803 | # add -lbsd if there's a libbsd.a available |
---|
3804 | # (e.g., Linux needs this for bsd_ioctl) |
---|
3805 | |
---|
3806 | echo "$as_me:$LINENO: checking for main in -lbsd" >&5 |
---|
3807 | echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6 |
---|
3808 | if test "${ac_cv_lib_bsd_main+set}" = set; then |
---|
3809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3810 | else |
---|
3811 | ac_check_lib_save_LIBS=$LIBS |
---|
3812 | LIBS="-lbsd $LIBS" |
---|
3813 | cat >conftest.$ac_ext <<_ACEOF |
---|
3814 | #line $LINENO "configure" |
---|
3815 | /* confdefs.h. */ |
---|
3816 | _ACEOF |
---|
3817 | cat confdefs.h >>conftest.$ac_ext |
---|
3818 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3819 | /* end confdefs.h. */ |
---|
3820 | |
---|
3821 | |
---|
3822 | int |
---|
3823 | main () |
---|
3824 | { |
---|
3825 | main (); |
---|
3826 | ; |
---|
3827 | return 0; |
---|
3828 | } |
---|
3829 | _ACEOF |
---|
3830 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3831 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3832 | (eval $ac_link) 2>&5 |
---|
3833 | ac_status=$? |
---|
3834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3835 | (exit $ac_status); } && |
---|
3836 | { ac_try='test -s conftest$ac_exeext' |
---|
3837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3838 | (eval $ac_try) 2>&5 |
---|
3839 | ac_status=$? |
---|
3840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3841 | (exit $ac_status); }; }; then |
---|
3842 | ac_cv_lib_bsd_main=yes |
---|
3843 | else |
---|
3844 | echo "$as_me: failed program was:" >&5 |
---|
3845 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3846 | |
---|
3847 | ac_cv_lib_bsd_main=no |
---|
3848 | fi |
---|
3849 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
3850 | LIBS=$ac_check_lib_save_LIBS |
---|
3851 | fi |
---|
3852 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5 |
---|
3853 | echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6 |
---|
3854 | if test $ac_cv_lib_bsd_main = yes; then |
---|
3855 | cat >>confdefs.h <<_ACEOF |
---|
3856 | #define HAVE_LIBBSD 1 |
---|
3857 | _ACEOF |
---|
3858 | |
---|
3859 | LIBS="-lbsd $LIBS" |
---|
3860 | |
---|
3861 | fi |
---|
3862 | |
---|
3863 | |
---|
3864 | # Check if libreadline exists and the function readline can be used. |
---|
3865 | # This implies checking for the availability of libtermcap or of a |
---|
3866 | # suitable replacement. (We only look for libncurses.) |
---|
3867 | if test "${vis_cv_termcap_lib+set}" = set; then |
---|
3868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3869 | else |
---|
3870 | echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5 |
---|
3871 | echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6 |
---|
3872 | if test "${ac_cv_lib_termcap_tgetent+set}" = set; then |
---|
3873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3874 | else |
---|
3875 | ac_check_lib_save_LIBS=$LIBS |
---|
3876 | LIBS="-ltermcap $LIBS" |
---|
3877 | cat >conftest.$ac_ext <<_ACEOF |
---|
3878 | #line $LINENO "configure" |
---|
3879 | /* confdefs.h. */ |
---|
3880 | _ACEOF |
---|
3881 | cat confdefs.h >>conftest.$ac_ext |
---|
3882 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3883 | /* end confdefs.h. */ |
---|
3884 | |
---|
3885 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3886 | #ifdef __cplusplus |
---|
3887 | extern "C" |
---|
3888 | #endif |
---|
3889 | /* We use char because int might match the return type of a gcc2 |
---|
3890 | builtin and then its argument prototype would still apply. */ |
---|
3891 | char tgetent (); |
---|
3892 | int |
---|
3893 | main () |
---|
3894 | { |
---|
3895 | tgetent (); |
---|
3896 | ; |
---|
3897 | return 0; |
---|
3898 | } |
---|
3899 | _ACEOF |
---|
3900 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3901 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3902 | (eval $ac_link) 2>&5 |
---|
3903 | ac_status=$? |
---|
3904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3905 | (exit $ac_status); } && |
---|
3906 | { ac_try='test -s conftest$ac_exeext' |
---|
3907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3908 | (eval $ac_try) 2>&5 |
---|
3909 | ac_status=$? |
---|
3910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3911 | (exit $ac_status); }; }; then |
---|
3912 | ac_cv_lib_termcap_tgetent=yes |
---|
3913 | else |
---|
3914 | echo "$as_me: failed program was:" >&5 |
---|
3915 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3916 | |
---|
3917 | ac_cv_lib_termcap_tgetent=no |
---|
3918 | fi |
---|
3919 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
3920 | LIBS=$ac_check_lib_save_LIBS |
---|
3921 | fi |
---|
3922 | echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5 |
---|
3923 | echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6 |
---|
3924 | if test $ac_cv_lib_termcap_tgetent = yes; then |
---|
3925 | vis_cv_termcap_lib=-ltermcap |
---|
3926 | else |
---|
3927 | echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5 |
---|
3928 | echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6 |
---|
3929 | if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then |
---|
3930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3931 | else |
---|
3932 | ac_check_lib_save_LIBS=$LIBS |
---|
3933 | LIBS="-lncurses $LIBS" |
---|
3934 | cat >conftest.$ac_ext <<_ACEOF |
---|
3935 | #line $LINENO "configure" |
---|
3936 | /* confdefs.h. */ |
---|
3937 | _ACEOF |
---|
3938 | cat confdefs.h >>conftest.$ac_ext |
---|
3939 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3940 | /* end confdefs.h. */ |
---|
3941 | |
---|
3942 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
3943 | #ifdef __cplusplus |
---|
3944 | extern "C" |
---|
3945 | #endif |
---|
3946 | /* We use char because int might match the return type of a gcc2 |
---|
3947 | builtin and then its argument prototype would still apply. */ |
---|
3948 | char tgetent (); |
---|
3949 | int |
---|
3950 | main () |
---|
3951 | { |
---|
3952 | tgetent (); |
---|
3953 | ; |
---|
3954 | return 0; |
---|
3955 | } |
---|
3956 | _ACEOF |
---|
3957 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3958 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3959 | (eval $ac_link) 2>&5 |
---|
3960 | ac_status=$? |
---|
3961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3962 | (exit $ac_status); } && |
---|
3963 | { ac_try='test -s conftest$ac_exeext' |
---|
3964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3965 | (eval $ac_try) 2>&5 |
---|
3966 | ac_status=$? |
---|
3967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3968 | (exit $ac_status); }; }; then |
---|
3969 | ac_cv_lib_ncurses_tgetent=yes |
---|
3970 | else |
---|
3971 | echo "$as_me: failed program was:" >&5 |
---|
3972 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3973 | |
---|
3974 | ac_cv_lib_ncurses_tgetent=no |
---|
3975 | fi |
---|
3976 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
3977 | LIBS=$ac_check_lib_save_LIBS |
---|
3978 | fi |
---|
3979 | echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5 |
---|
3980 | echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6 |
---|
3981 | if test $ac_cv_lib_ncurses_tgetent = yes; then |
---|
3982 | vis_cv_termcap_lib=-lncurses |
---|
3983 | else |
---|
3984 | bash_cv_termcap_lib=none |
---|
3985 | fi |
---|
3986 | |
---|
3987 | fi |
---|
3988 | |
---|
3989 | fi |
---|
3990 | |
---|
3991 | if test "$vis_cv_termcap_lib" != none; then |
---|
3992 | echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
---|
3993 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 |
---|
3994 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
---|
3995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3996 | else |
---|
3997 | ac_check_lib_save_LIBS=$LIBS |
---|
3998 | LIBS="-lreadline $vis_cv_termcap_lib $LIBS" |
---|
3999 | cat >conftest.$ac_ext <<_ACEOF |
---|
4000 | #line $LINENO "configure" |
---|
4001 | /* confdefs.h. */ |
---|
4002 | _ACEOF |
---|
4003 | cat confdefs.h >>conftest.$ac_ext |
---|
4004 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4005 | /* end confdefs.h. */ |
---|
4006 | |
---|
4007 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4008 | #ifdef __cplusplus |
---|
4009 | extern "C" |
---|
4010 | #endif |
---|
4011 | /* We use char because int might match the return type of a gcc2 |
---|
4012 | builtin and then its argument prototype would still apply. */ |
---|
4013 | char readline (); |
---|
4014 | int |
---|
4015 | main () |
---|
4016 | { |
---|
4017 | readline (); |
---|
4018 | ; |
---|
4019 | return 0; |
---|
4020 | } |
---|
4021 | _ACEOF |
---|
4022 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4023 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4024 | (eval $ac_link) 2>&5 |
---|
4025 | ac_status=$? |
---|
4026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4027 | (exit $ac_status); } && |
---|
4028 | { ac_try='test -s conftest$ac_exeext' |
---|
4029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4030 | (eval $ac_try) 2>&5 |
---|
4031 | ac_status=$? |
---|
4032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4033 | (exit $ac_status); }; }; then |
---|
4034 | ac_cv_lib_readline_readline=yes |
---|
4035 | else |
---|
4036 | echo "$as_me: failed program was:" >&5 |
---|
4037 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4038 | |
---|
4039 | ac_cv_lib_readline_readline=no |
---|
4040 | fi |
---|
4041 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4042 | LIBS=$ac_check_lib_save_LIBS |
---|
4043 | fi |
---|
4044 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
---|
4045 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6 |
---|
4046 | if test $ac_cv_lib_readline_readline = yes; then |
---|
4047 | ac_readline_flag=1 |
---|
4048 | else |
---|
4049 | ac_readline_flag=0 |
---|
4050 | fi |
---|
4051 | |
---|
4052 | if test $ac_readline_flag = 1 ; then |
---|
4053 | LIBS="$LIBS -lreadline $vis_cv_termcap_lib" ; cat >>confdefs.h <<\_ACEOF |
---|
4054 | #define HAVE_LIBREADLINE 1 |
---|
4055 | _ACEOF |
---|
4056 | |
---|
4057 | fi |
---|
4058 | fi |
---|
4059 | |
---|
4060 | # Check for the dirent header file, which is quite a mess |
---|
4061 | |
---|
4062 | |
---|
4063 | |
---|
4064 | |
---|
4065 | |
---|
4066 | ac_header_dirent=no |
---|
4067 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
---|
4068 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
---|
4069 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
---|
4070 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
---|
4071 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4073 | else |
---|
4074 | cat >conftest.$ac_ext <<_ACEOF |
---|
4075 | #line $LINENO "configure" |
---|
4076 | /* confdefs.h. */ |
---|
4077 | _ACEOF |
---|
4078 | cat confdefs.h >>conftest.$ac_ext |
---|
4079 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4080 | /* end confdefs.h. */ |
---|
4081 | #include <sys/types.h> |
---|
4082 | #include <$ac_hdr> |
---|
4083 | |
---|
4084 | int |
---|
4085 | main () |
---|
4086 | { |
---|
4087 | if ((DIR *) 0) |
---|
4088 | return 0; |
---|
4089 | ; |
---|
4090 | return 0; |
---|
4091 | } |
---|
4092 | _ACEOF |
---|
4093 | rm -f conftest.$ac_objext |
---|
4094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4095 | (eval $ac_compile) 2>&5 |
---|
4096 | ac_status=$? |
---|
4097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4098 | (exit $ac_status); } && |
---|
4099 | { ac_try='test -s conftest.$ac_objext' |
---|
4100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4101 | (eval $ac_try) 2>&5 |
---|
4102 | ac_status=$? |
---|
4103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4104 | (exit $ac_status); }; }; then |
---|
4105 | eval "$as_ac_Header=yes" |
---|
4106 | else |
---|
4107 | echo "$as_me: failed program was:" >&5 |
---|
4108 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4109 | |
---|
4110 | eval "$as_ac_Header=no" |
---|
4111 | fi |
---|
4112 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
4113 | fi |
---|
4114 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4115 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4116 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4117 | cat >>confdefs.h <<_ACEOF |
---|
4118 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
---|
4119 | _ACEOF |
---|
4120 | |
---|
4121 | ac_header_dirent=$ac_hdr; break |
---|
4122 | fi |
---|
4123 | |
---|
4124 | done |
---|
4125 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
---|
4126 | if test $ac_header_dirent = dirent.h; then |
---|
4127 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
---|
4128 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
---|
4129 | if test "${ac_cv_search_opendir+set}" = set; then |
---|
4130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4131 | else |
---|
4132 | ac_func_search_save_LIBS=$LIBS |
---|
4133 | ac_cv_search_opendir=no |
---|
4134 | cat >conftest.$ac_ext <<_ACEOF |
---|
4135 | #line $LINENO "configure" |
---|
4136 | /* confdefs.h. */ |
---|
4137 | _ACEOF |
---|
4138 | cat confdefs.h >>conftest.$ac_ext |
---|
4139 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4140 | /* end confdefs.h. */ |
---|
4141 | |
---|
4142 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4143 | #ifdef __cplusplus |
---|
4144 | extern "C" |
---|
4145 | #endif |
---|
4146 | /* We use char because int might match the return type of a gcc2 |
---|
4147 | builtin and then its argument prototype would still apply. */ |
---|
4148 | char opendir (); |
---|
4149 | int |
---|
4150 | main () |
---|
4151 | { |
---|
4152 | opendir (); |
---|
4153 | ; |
---|
4154 | return 0; |
---|
4155 | } |
---|
4156 | _ACEOF |
---|
4157 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4158 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4159 | (eval $ac_link) 2>&5 |
---|
4160 | ac_status=$? |
---|
4161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4162 | (exit $ac_status); } && |
---|
4163 | { ac_try='test -s conftest$ac_exeext' |
---|
4164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4165 | (eval $ac_try) 2>&5 |
---|
4166 | ac_status=$? |
---|
4167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4168 | (exit $ac_status); }; }; then |
---|
4169 | ac_cv_search_opendir="none required" |
---|
4170 | else |
---|
4171 | echo "$as_me: failed program was:" >&5 |
---|
4172 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4173 | |
---|
4174 | fi |
---|
4175 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4176 | if test "$ac_cv_search_opendir" = no; then |
---|
4177 | for ac_lib in dir; do |
---|
4178 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
---|
4179 | cat >conftest.$ac_ext <<_ACEOF |
---|
4180 | #line $LINENO "configure" |
---|
4181 | /* confdefs.h. */ |
---|
4182 | _ACEOF |
---|
4183 | cat confdefs.h >>conftest.$ac_ext |
---|
4184 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4185 | /* end confdefs.h. */ |
---|
4186 | |
---|
4187 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4188 | #ifdef __cplusplus |
---|
4189 | extern "C" |
---|
4190 | #endif |
---|
4191 | /* We use char because int might match the return type of a gcc2 |
---|
4192 | builtin and then its argument prototype would still apply. */ |
---|
4193 | char opendir (); |
---|
4194 | int |
---|
4195 | main () |
---|
4196 | { |
---|
4197 | opendir (); |
---|
4198 | ; |
---|
4199 | return 0; |
---|
4200 | } |
---|
4201 | _ACEOF |
---|
4202 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4203 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4204 | (eval $ac_link) 2>&5 |
---|
4205 | ac_status=$? |
---|
4206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4207 | (exit $ac_status); } && |
---|
4208 | { ac_try='test -s conftest$ac_exeext' |
---|
4209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4210 | (eval $ac_try) 2>&5 |
---|
4211 | ac_status=$? |
---|
4212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4213 | (exit $ac_status); }; }; then |
---|
4214 | ac_cv_search_opendir="-l$ac_lib" |
---|
4215 | break |
---|
4216 | else |
---|
4217 | echo "$as_me: failed program was:" >&5 |
---|
4218 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4219 | |
---|
4220 | fi |
---|
4221 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4222 | done |
---|
4223 | fi |
---|
4224 | LIBS=$ac_func_search_save_LIBS |
---|
4225 | fi |
---|
4226 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
---|
4227 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
---|
4228 | if test "$ac_cv_search_opendir" != no; then |
---|
4229 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
---|
4230 | |
---|
4231 | fi |
---|
4232 | |
---|
4233 | else |
---|
4234 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
---|
4235 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
---|
4236 | if test "${ac_cv_search_opendir+set}" = set; then |
---|
4237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4238 | else |
---|
4239 | ac_func_search_save_LIBS=$LIBS |
---|
4240 | ac_cv_search_opendir=no |
---|
4241 | cat >conftest.$ac_ext <<_ACEOF |
---|
4242 | #line $LINENO "configure" |
---|
4243 | /* confdefs.h. */ |
---|
4244 | _ACEOF |
---|
4245 | cat confdefs.h >>conftest.$ac_ext |
---|
4246 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4247 | /* end confdefs.h. */ |
---|
4248 | |
---|
4249 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4250 | #ifdef __cplusplus |
---|
4251 | extern "C" |
---|
4252 | #endif |
---|
4253 | /* We use char because int might match the return type of a gcc2 |
---|
4254 | builtin and then its argument prototype would still apply. */ |
---|
4255 | char opendir (); |
---|
4256 | int |
---|
4257 | main () |
---|
4258 | { |
---|
4259 | opendir (); |
---|
4260 | ; |
---|
4261 | return 0; |
---|
4262 | } |
---|
4263 | _ACEOF |
---|
4264 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4265 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4266 | (eval $ac_link) 2>&5 |
---|
4267 | ac_status=$? |
---|
4268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4269 | (exit $ac_status); } && |
---|
4270 | { ac_try='test -s conftest$ac_exeext' |
---|
4271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4272 | (eval $ac_try) 2>&5 |
---|
4273 | ac_status=$? |
---|
4274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4275 | (exit $ac_status); }; }; then |
---|
4276 | ac_cv_search_opendir="none required" |
---|
4277 | else |
---|
4278 | echo "$as_me: failed program was:" >&5 |
---|
4279 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4280 | |
---|
4281 | fi |
---|
4282 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4283 | if test "$ac_cv_search_opendir" = no; then |
---|
4284 | for ac_lib in x; do |
---|
4285 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
---|
4286 | cat >conftest.$ac_ext <<_ACEOF |
---|
4287 | #line $LINENO "configure" |
---|
4288 | /* confdefs.h. */ |
---|
4289 | _ACEOF |
---|
4290 | cat confdefs.h >>conftest.$ac_ext |
---|
4291 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4292 | /* end confdefs.h. */ |
---|
4293 | |
---|
4294 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4295 | #ifdef __cplusplus |
---|
4296 | extern "C" |
---|
4297 | #endif |
---|
4298 | /* We use char because int might match the return type of a gcc2 |
---|
4299 | builtin and then its argument prototype would still apply. */ |
---|
4300 | char opendir (); |
---|
4301 | int |
---|
4302 | main () |
---|
4303 | { |
---|
4304 | opendir (); |
---|
4305 | ; |
---|
4306 | return 0; |
---|
4307 | } |
---|
4308 | _ACEOF |
---|
4309 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4310 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4311 | (eval $ac_link) 2>&5 |
---|
4312 | ac_status=$? |
---|
4313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4314 | (exit $ac_status); } && |
---|
4315 | { ac_try='test -s conftest$ac_exeext' |
---|
4316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4317 | (eval $ac_try) 2>&5 |
---|
4318 | ac_status=$? |
---|
4319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4320 | (exit $ac_status); }; }; then |
---|
4321 | ac_cv_search_opendir="-l$ac_lib" |
---|
4322 | break |
---|
4323 | else |
---|
4324 | echo "$as_me: failed program was:" >&5 |
---|
4325 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4326 | |
---|
4327 | fi |
---|
4328 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4329 | done |
---|
4330 | fi |
---|
4331 | LIBS=$ac_func_search_save_LIBS |
---|
4332 | fi |
---|
4333 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
---|
4334 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
---|
4335 | if test "$ac_cv_search_opendir" != no; then |
---|
4336 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
---|
4337 | |
---|
4338 | fi |
---|
4339 | |
---|
4340 | fi |
---|
4341 | |
---|
4342 | |
---|
4343 | # Check for these system header files |
---|
4344 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
4345 | |
---|
4346 | |
---|
4347 | |
---|
4348 | |
---|
4349 | |
---|
4350 | |
---|
4351 | |
---|
4352 | |
---|
4353 | |
---|
4354 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
4355 | inttypes.h stdint.h unistd.h |
---|
4356 | do |
---|
4357 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4358 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4359 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4360 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4362 | else |
---|
4363 | cat >conftest.$ac_ext <<_ACEOF |
---|
4364 | #line $LINENO "configure" |
---|
4365 | /* confdefs.h. */ |
---|
4366 | _ACEOF |
---|
4367 | cat confdefs.h >>conftest.$ac_ext |
---|
4368 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4369 | /* end confdefs.h. */ |
---|
4370 | $ac_includes_default |
---|
4371 | |
---|
4372 | #include <$ac_header> |
---|
4373 | _ACEOF |
---|
4374 | rm -f conftest.$ac_objext |
---|
4375 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4376 | (eval $ac_compile) 2>&5 |
---|
4377 | ac_status=$? |
---|
4378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4379 | (exit $ac_status); } && |
---|
4380 | { ac_try='test -s conftest.$ac_objext' |
---|
4381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4382 | (eval $ac_try) 2>&5 |
---|
4383 | ac_status=$? |
---|
4384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4385 | (exit $ac_status); }; }; then |
---|
4386 | eval "$as_ac_Header=yes" |
---|
4387 | else |
---|
4388 | echo "$as_me: failed program was:" >&5 |
---|
4389 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4390 | |
---|
4391 | eval "$as_ac_Header=no" |
---|
4392 | fi |
---|
4393 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
4394 | fi |
---|
4395 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4396 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4397 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4398 | cat >>confdefs.h <<_ACEOF |
---|
4399 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4400 | _ACEOF |
---|
4401 | |
---|
4402 | fi |
---|
4403 | |
---|
4404 | done |
---|
4405 | |
---|
4406 | |
---|
4407 | |
---|
4408 | |
---|
4409 | |
---|
4410 | |
---|
4411 | |
---|
4412 | |
---|
4413 | |
---|
4414 | for ac_header in sys/termios.h sys/ioctl.h sys/time.h signal.h sys/signal.h readline/readline.h readline/history.h |
---|
4415 | do |
---|
4416 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4417 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4418 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4419 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4420 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4422 | fi |
---|
4423 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4424 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4425 | else |
---|
4426 | # Is the header compilable? |
---|
4427 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4428 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4429 | cat >conftest.$ac_ext <<_ACEOF |
---|
4430 | #line $LINENO "configure" |
---|
4431 | /* confdefs.h. */ |
---|
4432 | _ACEOF |
---|
4433 | cat confdefs.h >>conftest.$ac_ext |
---|
4434 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4435 | /* end confdefs.h. */ |
---|
4436 | $ac_includes_default |
---|
4437 | #include <$ac_header> |
---|
4438 | _ACEOF |
---|
4439 | rm -f conftest.$ac_objext |
---|
4440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4441 | (eval $ac_compile) 2>&5 |
---|
4442 | ac_status=$? |
---|
4443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4444 | (exit $ac_status); } && |
---|
4445 | { ac_try='test -s conftest.$ac_objext' |
---|
4446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4447 | (eval $ac_try) 2>&5 |
---|
4448 | ac_status=$? |
---|
4449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4450 | (exit $ac_status); }; }; then |
---|
4451 | ac_header_compiler=yes |
---|
4452 | else |
---|
4453 | echo "$as_me: failed program was:" >&5 |
---|
4454 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4455 | |
---|
4456 | ac_header_compiler=no |
---|
4457 | fi |
---|
4458 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
4459 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4460 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4461 | |
---|
4462 | # Is the header present? |
---|
4463 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4464 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4465 | cat >conftest.$ac_ext <<_ACEOF |
---|
4466 | #line $LINENO "configure" |
---|
4467 | /* confdefs.h. */ |
---|
4468 | _ACEOF |
---|
4469 | cat confdefs.h >>conftest.$ac_ext |
---|
4470 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4471 | /* end confdefs.h. */ |
---|
4472 | #include <$ac_header> |
---|
4473 | _ACEOF |
---|
4474 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4475 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4476 | ac_status=$? |
---|
4477 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4478 | rm -f conftest.er1 |
---|
4479 | cat conftest.err >&5 |
---|
4480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4481 | (exit $ac_status); } >/dev/null; then |
---|
4482 | if test -s conftest.err; then |
---|
4483 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4484 | else |
---|
4485 | ac_cpp_err= |
---|
4486 | fi |
---|
4487 | else |
---|
4488 | ac_cpp_err=yes |
---|
4489 | fi |
---|
4490 | if test -z "$ac_cpp_err"; then |
---|
4491 | ac_header_preproc=yes |
---|
4492 | else |
---|
4493 | echo "$as_me: failed program was:" >&5 |
---|
4494 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4495 | |
---|
4496 | ac_header_preproc=no |
---|
4497 | fi |
---|
4498 | rm -f conftest.err conftest.$ac_ext |
---|
4499 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4500 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4501 | |
---|
4502 | # So? What about this header? |
---|
4503 | case $ac_header_compiler:$ac_header_preproc in |
---|
4504 | yes:no ) |
---|
4505 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4506 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4507 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4508 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4509 | ( |
---|
4510 | cat <<\_ASBOX |
---|
4511 | ## ------------------------------------ ## |
---|
4512 | ## Report this to bug-autoconf@gnu.org. ## |
---|
4513 | ## ------------------------------------ ## |
---|
4514 | _ASBOX |
---|
4515 | ) | |
---|
4516 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4517 | ;; |
---|
4518 | no:yes ) |
---|
4519 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4520 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4521 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4522 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4523 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4524 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4525 | ( |
---|
4526 | cat <<\_ASBOX |
---|
4527 | ## ------------------------------------ ## |
---|
4528 | ## Report this to bug-autoconf@gnu.org. ## |
---|
4529 | ## ------------------------------------ ## |
---|
4530 | _ASBOX |
---|
4531 | ) | |
---|
4532 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4533 | ;; |
---|
4534 | esac |
---|
4535 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4536 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4537 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4539 | else |
---|
4540 | eval "$as_ac_Header=$ac_header_preproc" |
---|
4541 | fi |
---|
4542 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4543 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4544 | |
---|
4545 | fi |
---|
4546 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4547 | cat >>confdefs.h <<_ACEOF |
---|
4548 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4549 | _ACEOF |
---|
4550 | |
---|
4551 | fi |
---|
4552 | |
---|
4553 | done |
---|
4554 | |
---|
4555 | |
---|
4556 | # This is for Linux |
---|
4557 | |
---|
4558 | for ac_header in bsd/sgtty.h |
---|
4559 | do |
---|
4560 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4561 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4562 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4563 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4564 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4566 | fi |
---|
4567 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4568 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4569 | else |
---|
4570 | # Is the header compilable? |
---|
4571 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4572 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4573 | cat >conftest.$ac_ext <<_ACEOF |
---|
4574 | #line $LINENO "configure" |
---|
4575 | /* confdefs.h. */ |
---|
4576 | _ACEOF |
---|
4577 | cat confdefs.h >>conftest.$ac_ext |
---|
4578 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4579 | /* end confdefs.h. */ |
---|
4580 | $ac_includes_default |
---|
4581 | #include <$ac_header> |
---|
4582 | _ACEOF |
---|
4583 | rm -f conftest.$ac_objext |
---|
4584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4585 | (eval $ac_compile) 2>&5 |
---|
4586 | ac_status=$? |
---|
4587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4588 | (exit $ac_status); } && |
---|
4589 | { ac_try='test -s conftest.$ac_objext' |
---|
4590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4591 | (eval $ac_try) 2>&5 |
---|
4592 | ac_status=$? |
---|
4593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4594 | (exit $ac_status); }; }; then |
---|
4595 | ac_header_compiler=yes |
---|
4596 | else |
---|
4597 | echo "$as_me: failed program was:" >&5 |
---|
4598 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4599 | |
---|
4600 | ac_header_compiler=no |
---|
4601 | fi |
---|
4602 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
4603 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4604 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4605 | |
---|
4606 | # Is the header present? |
---|
4607 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4608 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4609 | cat >conftest.$ac_ext <<_ACEOF |
---|
4610 | #line $LINENO "configure" |
---|
4611 | /* confdefs.h. */ |
---|
4612 | _ACEOF |
---|
4613 | cat confdefs.h >>conftest.$ac_ext |
---|
4614 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4615 | /* end confdefs.h. */ |
---|
4616 | #include <$ac_header> |
---|
4617 | _ACEOF |
---|
4618 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4619 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4620 | ac_status=$? |
---|
4621 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4622 | rm -f conftest.er1 |
---|
4623 | cat conftest.err >&5 |
---|
4624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4625 | (exit $ac_status); } >/dev/null; then |
---|
4626 | if test -s conftest.err; then |
---|
4627 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4628 | else |
---|
4629 | ac_cpp_err= |
---|
4630 | fi |
---|
4631 | else |
---|
4632 | ac_cpp_err=yes |
---|
4633 | fi |
---|
4634 | if test -z "$ac_cpp_err"; then |
---|
4635 | ac_header_preproc=yes |
---|
4636 | else |
---|
4637 | echo "$as_me: failed program was:" >&5 |
---|
4638 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4639 | |
---|
4640 | ac_header_preproc=no |
---|
4641 | fi |
---|
4642 | rm -f conftest.err conftest.$ac_ext |
---|
4643 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4644 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4645 | |
---|
4646 | # So? What about this header? |
---|
4647 | case $ac_header_compiler:$ac_header_preproc in |
---|
4648 | yes:no ) |
---|
4649 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4650 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4651 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4652 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4653 | ( |
---|
4654 | cat <<\_ASBOX |
---|
4655 | ## ------------------------------------ ## |
---|
4656 | ## Report this to bug-autoconf@gnu.org. ## |
---|
4657 | ## ------------------------------------ ## |
---|
4658 | _ASBOX |
---|
4659 | ) | |
---|
4660 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4661 | ;; |
---|
4662 | no:yes ) |
---|
4663 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4664 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4665 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4666 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4667 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4668 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4669 | ( |
---|
4670 | cat <<\_ASBOX |
---|
4671 | ## ------------------------------------ ## |
---|
4672 | ## Report this to bug-autoconf@gnu.org. ## |
---|
4673 | ## ------------------------------------ ## |
---|
4674 | _ASBOX |
---|
4675 | ) | |
---|
4676 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4677 | ;; |
---|
4678 | esac |
---|
4679 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4680 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4681 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4683 | else |
---|
4684 | eval "$as_ac_Header=$ac_header_preproc" |
---|
4685 | fi |
---|
4686 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4687 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4688 | |
---|
4689 | fi |
---|
4690 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4691 | cat >>confdefs.h <<_ACEOF |
---|
4692 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4693 | _ACEOF |
---|
4694 | |
---|
4695 | fi |
---|
4696 | |
---|
4697 | done |
---|
4698 | |
---|
4699 | |
---|
4700 | # Some systems want both sys/ioctl.h and sys/termios.h, but others can |
---|
4701 | # only have one -- check for that |
---|
4702 | |
---|
4703 | echo "$as_me:$LINENO: checking whether sys/termios.h and sys/ioctl.h should both be included" >&5 |
---|
4704 | echo $ECHO_N "checking whether sys/termios.h and sys/ioctl.h should both be included... $ECHO_C" >&6 |
---|
4705 | |
---|
4706 | if test "${ac_cv_ioctl_with_termios+set}" = set; then |
---|
4707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4708 | else |
---|
4709 | cat >conftest.$ac_ext <<_ACEOF |
---|
4710 | #line $LINENO "configure" |
---|
4711 | /* confdefs.h. */ |
---|
4712 | _ACEOF |
---|
4713 | cat confdefs.h >>conftest.$ac_ext |
---|
4714 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4715 | /* end confdefs.h. */ |
---|
4716 | |
---|
4717 | #include <sys/termios.h> |
---|
4718 | #include <sys/ioctl.h> |
---|
4719 | |
---|
4720 | _ACEOF |
---|
4721 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4722 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4723 | ac_status=$? |
---|
4724 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4725 | rm -f conftest.er1 |
---|
4726 | cat conftest.err >&5 |
---|
4727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4728 | (exit $ac_status); } >/dev/null; then |
---|
4729 | if test -s conftest.err; then |
---|
4730 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4731 | else |
---|
4732 | ac_cpp_err= |
---|
4733 | fi |
---|
4734 | else |
---|
4735 | ac_cpp_err=yes |
---|
4736 | fi |
---|
4737 | if test -z "$ac_cpp_err"; then |
---|
4738 | ac_cv_ioctl_with_termios=1 |
---|
4739 | else |
---|
4740 | echo "$as_me: failed program was:" >&5 |
---|
4741 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4742 | |
---|
4743 | ac_cv_ioctl_with_termios=0 |
---|
4744 | fi |
---|
4745 | rm -f conftest.err conftest.$ac_ext |
---|
4746 | fi |
---|
4747 | |
---|
4748 | if test $ac_cv_ioctl_with_termios = 1 ; then |
---|
4749 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4750 | echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<\_ACEOF |
---|
4751 | #define IOCTL_WITH_TERMIOS 1 |
---|
4752 | _ACEOF |
---|
4753 | |
---|
4754 | else |
---|
4755 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4756 | echo "${ECHO_T}no" >&6 |
---|
4757 | fi |
---|
4758 | |
---|
4759 | # cmdFile.c wants to be able to use TIOCGETC to do file completion, |
---|
4760 | # but some systems (e.g., HPUX) don't have this |
---|
4761 | # |
---|
4762 | |
---|
4763 | echo "$as_me:$LINENO: checking for TIOCGETC" >&5 |
---|
4764 | echo $ECHO_N "checking for TIOCGETC... $ECHO_C" >&6 |
---|
4765 | |
---|
4766 | if test "${ac_cv_have_ioctl_with_tiocgetc+set}" = set; then |
---|
4767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4768 | else |
---|
4769 | if test $ac_cv_ioctl_with_termios = 1 ; then |
---|
4770 | cat >conftest.$ac_ext <<_ACEOF |
---|
4771 | #line $LINENO "configure" |
---|
4772 | /* confdefs.h. */ |
---|
4773 | _ACEOF |
---|
4774 | cat confdefs.h >>conftest.$ac_ext |
---|
4775 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4776 | /* end confdefs.h. */ |
---|
4777 | #include <sys/termios.h> |
---|
4778 | #include <sys/ioctl.h> |
---|
4779 | #ifdef TIOCGETC |
---|
4780 | yes |
---|
4781 | #endif |
---|
4782 | _ACEOF |
---|
4783 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4784 | $EGREP "yes" >/dev/null 2>&1; then |
---|
4785 | ac_cv_have_ioctl_with_tiocgetc=yes |
---|
4786 | else |
---|
4787 | ac_cv_have_ioctl_with_tiocgetc=no |
---|
4788 | fi |
---|
4789 | rm -f conftest* |
---|
4790 | |
---|
4791 | else |
---|
4792 | cat >conftest.$ac_ext <<_ACEOF |
---|
4793 | #line $LINENO "configure" |
---|
4794 | /* confdefs.h. */ |
---|
4795 | _ACEOF |
---|
4796 | cat confdefs.h >>conftest.$ac_ext |
---|
4797 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4798 | /* end confdefs.h. */ |
---|
4799 | #include <sys/ioctl.h> |
---|
4800 | #ifdef TIOCGETC |
---|
4801 | yes |
---|
4802 | #endif |
---|
4803 | _ACEOF |
---|
4804 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4805 | $EGREP "yes" >/dev/null 2>&1; then |
---|
4806 | ac_cv_have_ioctl_with_tiocgetc=yes |
---|
4807 | else |
---|
4808 | ac_cv_have_ioctl_with_tiocgetc=no |
---|
4809 | fi |
---|
4810 | rm -f conftest* |
---|
4811 | |
---|
4812 | fi |
---|
4813 | fi |
---|
4814 | |
---|
4815 | if test $ac_cv_have_ioctl_with_tiocgetc = "yes" ; then |
---|
4816 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
4817 | echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<\_ACEOF |
---|
4818 | #define HAVE_IOCTL_WITH_TIOCGETC 1 |
---|
4819 | _ACEOF |
---|
4820 | |
---|
4821 | else |
---|
4822 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4823 | echo "${ECHO_T}no" >&6 |
---|
4824 | fi |
---|
4825 | |
---|
4826 | # # cmdFile.c wants to turn off interrupts, but some systems don't |
---|
4827 | # # seem to know how to do that using TIOCLBIS |
---|
4828 | # # |
---|
4829 | # # This is probably fairly fragile, and it's probably cmdFile.c that should |
---|
4830 | # # be fixed |
---|
4831 | # # |
---|
4832 | # # This has been very unreliable (e.g., on Solaris), so the facility has |
---|
4833 | # # been turned off |
---|
4834 | # |
---|
4835 | # if test $ac_cv_have_ioctl_with_tiocgetc = "yes" ; then |
---|
4836 | # |
---|
4837 | # AC_MSG_CHECKING(for TIOCLBIS) |
---|
4838 | # |
---|
4839 | # AC_CACHE_VAL(ac_cv_have_term_interrupts, |
---|
4840 | # [AC_EGREP_CPP(yes, |
---|
4841 | # [#include <sys/ioctl.h> |
---|
4842 | # #include <sys/termios.h> |
---|
4843 | # #ifdef TIOCLBIS |
---|
4844 | # yes |
---|
4845 | # #endif |
---|
4846 | # ], ac_cv_have_term_interrupts=1, |
---|
4847 | # ac_cv_have_term_interrupts=0 )]) |
---|
4848 | # |
---|
4849 | # if test $ac_cv_have_term_interrupts = 1 ; then |
---|
4850 | # AC_MSG_RESULT(yes) ; AC_DEFINE(HAVE_TERM_INTERRUPTS) |
---|
4851 | # else |
---|
4852 | # AC_MSG_RESULT(no) |
---|
4853 | # fi |
---|
4854 | # |
---|
4855 | # fi # ac_cv_have_ioctl_with_tiocgetc |
---|
4856 | |
---|
4857 | #---------------------------------------------------------------------- |
---|
4858 | # Checks for typedefs, structures, and compiler characteristics. |
---|
4859 | #---------------------------------------------------------------------- |
---|
4860 | |
---|
4861 | # Check to see if the compiler understands "const" |
---|
4862 | # #define it empty otherwise |
---|
4863 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
---|
4864 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
---|
4865 | if test "${ac_cv_c_const+set}" = set; then |
---|
4866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4867 | else |
---|
4868 | cat >conftest.$ac_ext <<_ACEOF |
---|
4869 | #line $LINENO "configure" |
---|
4870 | /* confdefs.h. */ |
---|
4871 | _ACEOF |
---|
4872 | cat confdefs.h >>conftest.$ac_ext |
---|
4873 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4874 | /* end confdefs.h. */ |
---|
4875 | |
---|
4876 | int |
---|
4877 | main () |
---|
4878 | { |
---|
4879 | /* FIXME: Include the comments suggested by Paul. */ |
---|
4880 | #ifndef __cplusplus |
---|
4881 | /* Ultrix mips cc rejects this. */ |
---|
4882 | typedef int charset[2]; |
---|
4883 | const charset x; |
---|
4884 | /* SunOS 4.1.1 cc rejects this. */ |
---|
4885 | char const *const *ccp; |
---|
4886 | char **p; |
---|
4887 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
4888 | struct point {int x, y;}; |
---|
4889 | static struct point const zero = {0,0}; |
---|
4890 | /* AIX XL C 1.02.0.0 rejects this. |
---|
4891 | It does not let you subtract one const X* pointer from another in |
---|
4892 | an arm of an if-expression whose if-part is not a constant |
---|
4893 | expression */ |
---|
4894 | const char *g = "string"; |
---|
4895 | ccp = &g + (g ? g-g : 0); |
---|
4896 | /* HPUX 7.0 cc rejects these. */ |
---|
4897 | ++ccp; |
---|
4898 | p = (char**) ccp; |
---|
4899 | ccp = (char const *const *) p; |
---|
4900 | { /* SCO 3.2v4 cc rejects this. */ |
---|
4901 | char *t; |
---|
4902 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
4903 | |
---|
4904 | *t++ = 0; |
---|
4905 | } |
---|
4906 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
4907 | int x[] = {25, 17}; |
---|
4908 | const int *foo = &x[0]; |
---|
4909 | ++foo; |
---|
4910 | } |
---|
4911 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
4912 | typedef const int *iptr; |
---|
4913 | iptr p = 0; |
---|
4914 | ++p; |
---|
4915 | } |
---|
4916 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
4917 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
4918 | struct s { int j; const int *ap[3]; }; |
---|
4919 | struct s *b; b->j = 5; |
---|
4920 | } |
---|
4921 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
4922 | const int foo = 10; |
---|
4923 | } |
---|
4924 | #endif |
---|
4925 | |
---|
4926 | ; |
---|
4927 | return 0; |
---|
4928 | } |
---|
4929 | _ACEOF |
---|
4930 | rm -f conftest.$ac_objext |
---|
4931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4932 | (eval $ac_compile) 2>&5 |
---|
4933 | ac_status=$? |
---|
4934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4935 | (exit $ac_status); } && |
---|
4936 | { ac_try='test -s conftest.$ac_objext' |
---|
4937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4938 | (eval $ac_try) 2>&5 |
---|
4939 | ac_status=$? |
---|
4940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4941 | (exit $ac_status); }; }; then |
---|
4942 | ac_cv_c_const=yes |
---|
4943 | else |
---|
4944 | echo "$as_me: failed program was:" >&5 |
---|
4945 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4946 | |
---|
4947 | ac_cv_c_const=no |
---|
4948 | fi |
---|
4949 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
4950 | fi |
---|
4951 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
---|
4952 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
---|
4953 | if test $ac_cv_c_const = no; then |
---|
4954 | |
---|
4955 | cat >>confdefs.h <<\_ACEOF |
---|
4956 | #define const |
---|
4957 | _ACEOF |
---|
4958 | |
---|
4959 | fi |
---|
4960 | |
---|
4961 | |
---|
4962 | # Sort out "time.h" nonsense |
---|
4963 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
---|
4964 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
---|
4965 | if test "${ac_cv_header_time+set}" = set; then |
---|
4966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4967 | else |
---|
4968 | cat >conftest.$ac_ext <<_ACEOF |
---|
4969 | #line $LINENO "configure" |
---|
4970 | /* confdefs.h. */ |
---|
4971 | _ACEOF |
---|
4972 | cat confdefs.h >>conftest.$ac_ext |
---|
4973 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4974 | /* end confdefs.h. */ |
---|
4975 | #include <sys/types.h> |
---|
4976 | #include <sys/time.h> |
---|
4977 | #include <time.h> |
---|
4978 | |
---|
4979 | int |
---|
4980 | main () |
---|
4981 | { |
---|
4982 | if ((struct tm *) 0) |
---|
4983 | return 0; |
---|
4984 | ; |
---|
4985 | return 0; |
---|
4986 | } |
---|
4987 | _ACEOF |
---|
4988 | rm -f conftest.$ac_objext |
---|
4989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4990 | (eval $ac_compile) 2>&5 |
---|
4991 | ac_status=$? |
---|
4992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4993 | (exit $ac_status); } && |
---|
4994 | { ac_try='test -s conftest.$ac_objext' |
---|
4995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4996 | (eval $ac_try) 2>&5 |
---|
4997 | ac_status=$? |
---|
4998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4999 | (exit $ac_status); }; }; then |
---|
5000 | ac_cv_header_time=yes |
---|
5001 | else |
---|
5002 | echo "$as_me: failed program was:" >&5 |
---|
5003 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5004 | |
---|
5005 | ac_cv_header_time=no |
---|
5006 | fi |
---|
5007 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
5008 | fi |
---|
5009 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
---|
5010 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
---|
5011 | if test $ac_cv_header_time = yes; then |
---|
5012 | |
---|
5013 | cat >>confdefs.h <<\_ACEOF |
---|
5014 | #define TIME_WITH_SYS_TIME 1 |
---|
5015 | _ACEOF |
---|
5016 | |
---|
5017 | fi |
---|
5018 | |
---|
5019 | |
---|
5020 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
---|
5021 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
---|
5022 | if test "${ac_cv_struct_tm+set}" = set; then |
---|
5023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5024 | else |
---|
5025 | cat >conftest.$ac_ext <<_ACEOF |
---|
5026 | #line $LINENO "configure" |
---|
5027 | /* confdefs.h. */ |
---|
5028 | _ACEOF |
---|
5029 | cat confdefs.h >>conftest.$ac_ext |
---|
5030 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5031 | /* end confdefs.h. */ |
---|
5032 | #include <sys/types.h> |
---|
5033 | #include <time.h> |
---|
5034 | |
---|
5035 | int |
---|
5036 | main () |
---|
5037 | { |
---|
5038 | struct tm *tp; tp->tm_sec; |
---|
5039 | ; |
---|
5040 | return 0; |
---|
5041 | } |
---|
5042 | _ACEOF |
---|
5043 | rm -f conftest.$ac_objext |
---|
5044 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5045 | (eval $ac_compile) 2>&5 |
---|
5046 | ac_status=$? |
---|
5047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5048 | (exit $ac_status); } && |
---|
5049 | { ac_try='test -s conftest.$ac_objext' |
---|
5050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5051 | (eval $ac_try) 2>&5 |
---|
5052 | ac_status=$? |
---|
5053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5054 | (exit $ac_status); }; }; then |
---|
5055 | ac_cv_struct_tm=time.h |
---|
5056 | else |
---|
5057 | echo "$as_me: failed program was:" >&5 |
---|
5058 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5059 | |
---|
5060 | ac_cv_struct_tm=sys/time.h |
---|
5061 | fi |
---|
5062 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
5063 | fi |
---|
5064 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
---|
5065 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
---|
5066 | if test $ac_cv_struct_tm = sys/time.h; then |
---|
5067 | |
---|
5068 | cat >>confdefs.h <<\_ACEOF |
---|
5069 | #define TM_IN_SYS_TIME 1 |
---|
5070 | _ACEOF |
---|
5071 | |
---|
5072 | fi |
---|
5073 | |
---|
5074 | |
---|
5075 | # Set RETSIGTYPE to the proper return type for a signal handler (void or int) |
---|
5076 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
---|
5077 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
---|
5078 | if test "${ac_cv_type_signal+set}" = set; then |
---|
5079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5080 | else |
---|
5081 | cat >conftest.$ac_ext <<_ACEOF |
---|
5082 | #line $LINENO "configure" |
---|
5083 | /* confdefs.h. */ |
---|
5084 | _ACEOF |
---|
5085 | cat confdefs.h >>conftest.$ac_ext |
---|
5086 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5087 | /* end confdefs.h. */ |
---|
5088 | #include <sys/types.h> |
---|
5089 | #include <signal.h> |
---|
5090 | #ifdef signal |
---|
5091 | # undef signal |
---|
5092 | #endif |
---|
5093 | #ifdef __cplusplus |
---|
5094 | extern "C" void (*signal (int, void (*)(int)))(int); |
---|
5095 | #else |
---|
5096 | void (*signal ()) (); |
---|
5097 | #endif |
---|
5098 | |
---|
5099 | int |
---|
5100 | main () |
---|
5101 | { |
---|
5102 | int i; |
---|
5103 | ; |
---|
5104 | return 0; |
---|
5105 | } |
---|
5106 | _ACEOF |
---|
5107 | rm -f conftest.$ac_objext |
---|
5108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5109 | (eval $ac_compile) 2>&5 |
---|
5110 | ac_status=$? |
---|
5111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5112 | (exit $ac_status); } && |
---|
5113 | { ac_try='test -s conftest.$ac_objext' |
---|
5114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5115 | (eval $ac_try) 2>&5 |
---|
5116 | ac_status=$? |
---|
5117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5118 | (exit $ac_status); }; }; then |
---|
5119 | ac_cv_type_signal=void |
---|
5120 | else |
---|
5121 | echo "$as_me: failed program was:" >&5 |
---|
5122 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5123 | |
---|
5124 | ac_cv_type_signal=int |
---|
5125 | fi |
---|
5126 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
5127 | fi |
---|
5128 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
---|
5129 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
---|
5130 | |
---|
5131 | cat >>confdefs.h <<_ACEOF |
---|
5132 | #define RETSIGTYPE $ac_cv_type_signal |
---|
5133 | _ACEOF |
---|
5134 | |
---|
5135 | |
---|
5136 | |
---|
5137 | # Roderick Bloem (rbloem@colorado.edu) : On Irix we need ttold |
---|
5138 | case "$target" in |
---|
5139 | mips-sgi-irix*) |
---|
5140 | cat >>confdefs.h <<\_ACEOF |
---|
5141 | #define NEED_TTOLD 1 |
---|
5142 | _ACEOF |
---|
5143 | ;; |
---|
5144 | esac |
---|
5145 | |
---|
5146 | #---------------------------------------------------------------------- |
---|
5147 | # Checks for library functions. |
---|
5148 | #---------------------------------------------------------------------- |
---|
5149 | |
---|
5150 | if test $ac_cv_c_compiler_gnu = yes; then |
---|
5151 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
---|
5152 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 |
---|
5153 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
---|
5154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5155 | else |
---|
5156 | ac_pattern="Autoconf.*'x'" |
---|
5157 | cat >conftest.$ac_ext <<_ACEOF |
---|
5158 | #line $LINENO "configure" |
---|
5159 | /* confdefs.h. */ |
---|
5160 | _ACEOF |
---|
5161 | cat confdefs.h >>conftest.$ac_ext |
---|
5162 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5163 | /* end confdefs.h. */ |
---|
5164 | #include <sgtty.h> |
---|
5165 | Autoconf TIOCGETP |
---|
5166 | _ACEOF |
---|
5167 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5168 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
---|
5169 | ac_cv_prog_gcc_traditional=yes |
---|
5170 | else |
---|
5171 | ac_cv_prog_gcc_traditional=no |
---|
5172 | fi |
---|
5173 | rm -f conftest* |
---|
5174 | |
---|
5175 | |
---|
5176 | if test $ac_cv_prog_gcc_traditional = no; then |
---|
5177 | cat >conftest.$ac_ext <<_ACEOF |
---|
5178 | #line $LINENO "configure" |
---|
5179 | /* confdefs.h. */ |
---|
5180 | _ACEOF |
---|
5181 | cat confdefs.h >>conftest.$ac_ext |
---|
5182 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5183 | /* end confdefs.h. */ |
---|
5184 | #include <termio.h> |
---|
5185 | Autoconf TCGETA |
---|
5186 | _ACEOF |
---|
5187 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
5188 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
---|
5189 | ac_cv_prog_gcc_traditional=yes |
---|
5190 | fi |
---|
5191 | rm -f conftest* |
---|
5192 | |
---|
5193 | fi |
---|
5194 | fi |
---|
5195 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
---|
5196 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 |
---|
5197 | if test $ac_cv_prog_gcc_traditional = yes; then |
---|
5198 | CC="$CC -traditional" |
---|
5199 | fi |
---|
5200 | fi |
---|
5201 | |
---|
5202 | echo "$as_me:$LINENO: checking for working memcmp" >&5 |
---|
5203 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 |
---|
5204 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
---|
5205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5206 | else |
---|
5207 | if test "$cross_compiling" = yes; then |
---|
5208 | ac_cv_func_memcmp_working=no |
---|
5209 | else |
---|
5210 | cat >conftest.$ac_ext <<_ACEOF |
---|
5211 | #line $LINENO "configure" |
---|
5212 | /* confdefs.h. */ |
---|
5213 | _ACEOF |
---|
5214 | cat confdefs.h >>conftest.$ac_ext |
---|
5215 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5216 | /* end confdefs.h. */ |
---|
5217 | |
---|
5218 | int |
---|
5219 | main () |
---|
5220 | { |
---|
5221 | |
---|
5222 | /* Some versions of memcmp are not 8-bit clean. */ |
---|
5223 | char c0 = 0x40, c1 = 0x80, c2 = 0x81; |
---|
5224 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
---|
5225 | exit (1); |
---|
5226 | |
---|
5227 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
---|
5228 | or more and with at least one buffer not starting on a 4-byte boundary. |
---|
5229 | William Lewis provided this test program. */ |
---|
5230 | { |
---|
5231 | char foo[21]; |
---|
5232 | char bar[21]; |
---|
5233 | int i; |
---|
5234 | for (i = 0; i < 4; i++) |
---|
5235 | { |
---|
5236 | char *a = foo + i; |
---|
5237 | char *b = bar + i; |
---|
5238 | strcpy (a, "--------01111111"); |
---|
5239 | strcpy (b, "--------10000000"); |
---|
5240 | if (memcmp (a, b, 16) >= 0) |
---|
5241 | exit (1); |
---|
5242 | } |
---|
5243 | exit (0); |
---|
5244 | } |
---|
5245 | |
---|
5246 | ; |
---|
5247 | return 0; |
---|
5248 | } |
---|
5249 | _ACEOF |
---|
5250 | rm -f conftest$ac_exeext |
---|
5251 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5252 | (eval $ac_link) 2>&5 |
---|
5253 | ac_status=$? |
---|
5254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5255 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
5256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5257 | (eval $ac_try) 2>&5 |
---|
5258 | ac_status=$? |
---|
5259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5260 | (exit $ac_status); }; }; then |
---|
5261 | ac_cv_func_memcmp_working=yes |
---|
5262 | else |
---|
5263 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
5264 | echo "$as_me: failed program was:" >&5 |
---|
5265 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5266 | |
---|
5267 | ( exit $ac_status ) |
---|
5268 | ac_cv_func_memcmp_working=no |
---|
5269 | fi |
---|
5270 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
5271 | fi |
---|
5272 | fi |
---|
5273 | echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
---|
5274 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 |
---|
5275 | test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
---|
5276 | |
---|
5277 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
---|
5278 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
---|
5279 | if test "${ac_cv_type_signal+set}" = set; then |
---|
5280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5281 | else |
---|
5282 | cat >conftest.$ac_ext <<_ACEOF |
---|
5283 | #line $LINENO "configure" |
---|
5284 | /* confdefs.h. */ |
---|
5285 | _ACEOF |
---|
5286 | cat confdefs.h >>conftest.$ac_ext |
---|
5287 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5288 | /* end confdefs.h. */ |
---|
5289 | #include <sys/types.h> |
---|
5290 | #include <signal.h> |
---|
5291 | #ifdef signal |
---|
5292 | # undef signal |
---|
5293 | #endif |
---|
5294 | #ifdef __cplusplus |
---|
5295 | extern "C" void (*signal (int, void (*)(int)))(int); |
---|
5296 | #else |
---|
5297 | void (*signal ()) (); |
---|
5298 | #endif |
---|
5299 | |
---|
5300 | int |
---|
5301 | main () |
---|
5302 | { |
---|
5303 | int i; |
---|
5304 | ; |
---|
5305 | return 0; |
---|
5306 | } |
---|
5307 | _ACEOF |
---|
5308 | rm -f conftest.$ac_objext |
---|
5309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5310 | (eval $ac_compile) 2>&5 |
---|
5311 | ac_status=$? |
---|
5312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5313 | (exit $ac_status); } && |
---|
5314 | { ac_try='test -s conftest.$ac_objext' |
---|
5315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5316 | (eval $ac_try) 2>&5 |
---|
5317 | ac_status=$? |
---|
5318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5319 | (exit $ac_status); }; }; then |
---|
5320 | ac_cv_type_signal=void |
---|
5321 | else |
---|
5322 | echo "$as_me: failed program was:" >&5 |
---|
5323 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5324 | |
---|
5325 | ac_cv_type_signal=int |
---|
5326 | fi |
---|
5327 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
5328 | fi |
---|
5329 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
---|
5330 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
---|
5331 | |
---|
5332 | cat >>confdefs.h <<_ACEOF |
---|
5333 | #define RETSIGTYPE $ac_cv_type_signal |
---|
5334 | _ACEOF |
---|
5335 | |
---|
5336 | |
---|
5337 | |
---|
5338 | |
---|
5339 | |
---|
5340 | |
---|
5341 | |
---|
5342 | |
---|
5343 | |
---|
5344 | |
---|
5345 | for ac_func in gettimeofday strchr strstr setvbuf getenv unlink mkstemp close |
---|
5346 | do |
---|
5347 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
5348 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
5349 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
5350 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
5351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5352 | else |
---|
5353 | cat >conftest.$ac_ext <<_ACEOF |
---|
5354 | #line $LINENO "configure" |
---|
5355 | /* confdefs.h. */ |
---|
5356 | _ACEOF |
---|
5357 | cat confdefs.h >>conftest.$ac_ext |
---|
5358 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5359 | /* end confdefs.h. */ |
---|
5360 | /* System header to define __stub macros and hopefully few prototypes, |
---|
5361 | which can conflict with char $ac_func (); below. |
---|
5362 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
5363 | <limits.h> exists even on freestanding compilers. */ |
---|
5364 | #ifdef __STDC__ |
---|
5365 | # include <limits.h> |
---|
5366 | #else |
---|
5367 | # include <assert.h> |
---|
5368 | #endif |
---|
5369 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
5370 | #ifdef __cplusplus |
---|
5371 | extern "C" |
---|
5372 | { |
---|
5373 | #endif |
---|
5374 | /* We use char because int might match the return type of a gcc2 |
---|
5375 | builtin and then its argument prototype would still apply. */ |
---|
5376 | char $ac_func (); |
---|
5377 | /* The GNU C library defines this for functions which it implements |
---|
5378 | to always fail with ENOSYS. Some functions are actually named |
---|
5379 | something starting with __ and the normal name is an alias. */ |
---|
5380 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
5381 | choke me |
---|
5382 | #else |
---|
5383 | char (*f) () = $ac_func; |
---|
5384 | #endif |
---|
5385 | #ifdef __cplusplus |
---|
5386 | } |
---|
5387 | #endif |
---|
5388 | |
---|
5389 | int |
---|
5390 | main () |
---|
5391 | { |
---|
5392 | return f != $ac_func; |
---|
5393 | ; |
---|
5394 | return 0; |
---|
5395 | } |
---|
5396 | _ACEOF |
---|
5397 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5398 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5399 | (eval $ac_link) 2>&5 |
---|
5400 | ac_status=$? |
---|
5401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5402 | (exit $ac_status); } && |
---|
5403 | { ac_try='test -s conftest$ac_exeext' |
---|
5404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5405 | (eval $ac_try) 2>&5 |
---|
5406 | ac_status=$? |
---|
5407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5408 | (exit $ac_status); }; }; then |
---|
5409 | eval "$as_ac_var=yes" |
---|
5410 | else |
---|
5411 | echo "$as_me: failed program was:" >&5 |
---|
5412 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5413 | |
---|
5414 | eval "$as_ac_var=no" |
---|
5415 | fi |
---|
5416 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
5417 | fi |
---|
5418 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
5419 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
5420 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
5421 | cat >>confdefs.h <<_ACEOF |
---|
5422 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
5423 | _ACEOF |
---|
5424 | |
---|
5425 | fi |
---|
5426 | done |
---|
5427 | |
---|
5428 | |
---|
5429 | #----------------------------------------------------------------------- |
---|
5430 | # Check for mawk, gawk, nawk, awk in that order |
---|
5431 | #----------------------------------------------------------------------- |
---|
5432 | for ac_prog in gawk mawk nawk awk |
---|
5433 | do |
---|
5434 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
5435 | set dummy $ac_prog; ac_word=$2 |
---|
5436 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5437 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5438 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
5439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5440 | else |
---|
5441 | if test -n "$AWK"; then |
---|
5442 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
5443 | else |
---|
5444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5445 | for as_dir in $PATH |
---|
5446 | do |
---|
5447 | IFS=$as_save_IFS |
---|
5448 | test -z "$as_dir" && as_dir=. |
---|
5449 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5450 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5451 | ac_cv_prog_AWK="$ac_prog" |
---|
5452 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5453 | break 2 |
---|
5454 | fi |
---|
5455 | done |
---|
5456 | done |
---|
5457 | |
---|
5458 | fi |
---|
5459 | fi |
---|
5460 | AWK=$ac_cv_prog_AWK |
---|
5461 | if test -n "$AWK"; then |
---|
5462 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
5463 | echo "${ECHO_T}$AWK" >&6 |
---|
5464 | else |
---|
5465 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5466 | echo "${ECHO_T}no" >&6 |
---|
5467 | fi |
---|
5468 | |
---|
5469 | test -n "$AWK" && break |
---|
5470 | done |
---|
5471 | |
---|
5472 | |
---|
5473 | #---------------------------------------------------------------------- |
---|
5474 | # Create the Makefile from Makefile.in |
---|
5475 | #---------------------------------------------------------------------- |
---|
5476 | if test "$gcc_ok" = "g++"; then |
---|
5477 | CC=$gcc_ok |
---|
5478 | fi |
---|
5479 | ac_config_files="$ac_config_files Makefile" |
---|
5480 | cat >confcache <<\_ACEOF |
---|
5481 | # This file is a shell script that caches the results of configure |
---|
5482 | # tests run on this system so they can be shared between configure |
---|
5483 | # scripts and configure runs, see configure's option --config-cache. |
---|
5484 | # It is not useful on other systems. If it contains results you don't |
---|
5485 | # want to keep, you may remove or edit it. |
---|
5486 | # |
---|
5487 | # config.status only pays attention to the cache file if you give it |
---|
5488 | # the --recheck option to rerun configure. |
---|
5489 | # |
---|
5490 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
5491 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
5492 | # following values. |
---|
5493 | |
---|
5494 | _ACEOF |
---|
5495 | |
---|
5496 | # The following way of writing the cache mishandles newlines in values, |
---|
5497 | # but we know of no workaround that is simple, portable, and efficient. |
---|
5498 | # So, don't put newlines in cache variables' values. |
---|
5499 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
5500 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
5501 | { |
---|
5502 | (set) 2>&1 | |
---|
5503 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
5504 | *ac_space=\ *) |
---|
5505 | # `set' does not quote correctly, so add quotes (double-quote |
---|
5506 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
5507 | sed -n \ |
---|
5508 | "s/'/'\\\\''/g; |
---|
5509 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
5510 | ;; |
---|
5511 | *) |
---|
5512 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
5513 | sed -n \ |
---|
5514 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
5515 | ;; |
---|
5516 | esac; |
---|
5517 | } | |
---|
5518 | sed ' |
---|
5519 | t clear |
---|
5520 | : clear |
---|
5521 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
5522 | t end |
---|
5523 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
5524 | : end' >>confcache |
---|
5525 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
5526 | if test -w $cache_file; then |
---|
5527 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
5528 | cat confcache >$cache_file |
---|
5529 | else |
---|
5530 | echo "not updating unwritable cache $cache_file" |
---|
5531 | fi |
---|
5532 | fi |
---|
5533 | rm -f confcache |
---|
5534 | |
---|
5535 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
5536 | # Let make expand exec_prefix. |
---|
5537 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
5538 | |
---|
5539 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
5540 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
5541 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
5542 | # (actually we leave an empty line to preserve line numbers). |
---|
5543 | if test "x$srcdir" = x.; then |
---|
5544 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
5545 | s/:*\$(srcdir):*/:/; |
---|
5546 | s/:*\${srcdir}:*/:/; |
---|
5547 | s/:*@srcdir@:*/:/; |
---|
5548 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
5549 | s/:*$//; |
---|
5550 | s/^[^=]*=[ ]*$//; |
---|
5551 | }' |
---|
5552 | fi |
---|
5553 | |
---|
5554 | # Transform confdefs.h into DEFS. |
---|
5555 | # Protect against shell expansion while executing Makefile rules. |
---|
5556 | # Protect against Makefile macro expansion. |
---|
5557 | # |
---|
5558 | # If the first sed substitution is executed (which looks for macros that |
---|
5559 | # take arguments), then we branch to the quote section. Otherwise, |
---|
5560 | # look for a macro that doesn't take arguments. |
---|
5561 | cat >confdef2opt.sed <<\_ACEOF |
---|
5562 | t clear |
---|
5563 | : clear |
---|
5564 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g |
---|
5565 | t quote |
---|
5566 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
---|
5567 | t quote |
---|
5568 | d |
---|
5569 | : quote |
---|
5570 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g |
---|
5571 | s,\[,\\&,g |
---|
5572 | s,\],\\&,g |
---|
5573 | s,\$,$$,g |
---|
5574 | p |
---|
5575 | _ACEOF |
---|
5576 | # We use echo to avoid assuming a particular line-breaking character. |
---|
5577 | # The extra dot is to prevent the shell from consuming trailing |
---|
5578 | # line-breaks from the sub-command output. A line-break within |
---|
5579 | # single-quotes doesn't work because, if this script is created in a |
---|
5580 | # platform that uses two characters for line-breaks (e.g., DOS), tr |
---|
5581 | # would break. |
---|
5582 | ac_LF_and_DOT=`echo; echo .` |
---|
5583 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` |
---|
5584 | rm -f confdef2opt.sed |
---|
5585 | |
---|
5586 | |
---|
5587 | ac_libobjs= |
---|
5588 | ac_ltlibobjs= |
---|
5589 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
5590 | # 1. Remove the extension, and $U if already installed. |
---|
5591 | ac_i=`echo "$ac_i" | |
---|
5592 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
5593 | # 2. Add them. |
---|
5594 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
5595 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
5596 | done |
---|
5597 | LIBOBJS=$ac_libobjs |
---|
5598 | |
---|
5599 | LTLIBOBJS=$ac_ltlibobjs |
---|
5600 | |
---|
5601 | |
---|
5602 | |
---|
5603 | : ${CONFIG_STATUS=./config.status} |
---|
5604 | ac_clean_files_save=$ac_clean_files |
---|
5605 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
5606 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
5607 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
5608 | cat >$CONFIG_STATUS <<_ACEOF |
---|
5609 | #! $SHELL |
---|
5610 | # Generated by $as_me. |
---|
5611 | # Run this file to recreate the current configuration. |
---|
5612 | # Compiler output produced by configure, useful for debugging |
---|
5613 | # configure, is in config.log if it exists. |
---|
5614 | |
---|
5615 | debug=false |
---|
5616 | ac_cs_recheck=false |
---|
5617 | ac_cs_silent=false |
---|
5618 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
5619 | _ACEOF |
---|
5620 | |
---|
5621 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
5622 | ## --------------------- ## |
---|
5623 | ## M4sh Initialization. ## |
---|
5624 | ## --------------------- ## |
---|
5625 | |
---|
5626 | # Be Bourne compatible |
---|
5627 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
5628 | emulate sh |
---|
5629 | NULLCMD=: |
---|
5630 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
5631 | # is contrary to our usage. Disable this feature. |
---|
5632 | alias -g '${1+"$@"}'='"$@"' |
---|
5633 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
5634 | set -o posix |
---|
5635 | fi |
---|
5636 | |
---|
5637 | # Support unset when possible. |
---|
5638 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
---|
5639 | as_unset=unset |
---|
5640 | else |
---|
5641 | as_unset=false |
---|
5642 | fi |
---|
5643 | |
---|
5644 | |
---|
5645 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
5646 | $as_unset ENV MAIL MAILPATH |
---|
5647 | PS1='$ ' |
---|
5648 | PS2='> ' |
---|
5649 | PS4='+ ' |
---|
5650 | |
---|
5651 | # NLS nuisances. |
---|
5652 | for as_var in \ |
---|
5653 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
5654 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
5655 | LC_TELEPHONE LC_TIME |
---|
5656 | do |
---|
5657 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
5658 | eval $as_var=C; export $as_var |
---|
5659 | else |
---|
5660 | $as_unset $as_var |
---|
5661 | fi |
---|
5662 | done |
---|
5663 | |
---|
5664 | # Required to use basename. |
---|
5665 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
5666 | as_expr=expr |
---|
5667 | else |
---|
5668 | as_expr=false |
---|
5669 | fi |
---|
5670 | |
---|
5671 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
5672 | as_basename=basename |
---|
5673 | else |
---|
5674 | as_basename=false |
---|
5675 | fi |
---|
5676 | |
---|
5677 | |
---|
5678 | # Name of the executable. |
---|
5679 | as_me=`$as_basename "$0" || |
---|
5680 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
5681 | X"$0" : 'X\(//\)$' \| \ |
---|
5682 | X"$0" : 'X\(/\)$' \| \ |
---|
5683 | . : '\(.\)' 2>/dev/null || |
---|
5684 | echo X/"$0" | |
---|
5685 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
5686 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
5687 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
5688 | s/.*/./; q'` |
---|
5689 | |
---|
5690 | |
---|
5691 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
5692 | # Avoid depending upon Character Ranges. |
---|
5693 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
5694 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
5695 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
5696 | as_cr_digits='0123456789' |
---|
5697 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
5698 | |
---|
5699 | # The user is always right. |
---|
5700 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
5701 | echo "#! /bin/sh" >conf$$.sh |
---|
5702 | echo "exit 0" >>conf$$.sh |
---|
5703 | chmod +x conf$$.sh |
---|
5704 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
5705 | PATH_SEPARATOR=';' |
---|
5706 | else |
---|
5707 | PATH_SEPARATOR=: |
---|
5708 | fi |
---|
5709 | rm -f conf$$.sh |
---|
5710 | fi |
---|
5711 | |
---|
5712 | |
---|
5713 | as_lineno_1=$LINENO |
---|
5714 | as_lineno_2=$LINENO |
---|
5715 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
5716 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
5717 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
5718 | # Find who we are. Look in the path if we contain no path at all |
---|
5719 | # relative or not. |
---|
5720 | case $0 in |
---|
5721 | *[\\/]* ) as_myself=$0 ;; |
---|
5722 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5723 | for as_dir in $PATH |
---|
5724 | do |
---|
5725 | IFS=$as_save_IFS |
---|
5726 | test -z "$as_dir" && as_dir=. |
---|
5727 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
5728 | done |
---|
5729 | |
---|
5730 | ;; |
---|
5731 | esac |
---|
5732 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
5733 | # in which case we are not to be found in the path. |
---|
5734 | if test "x$as_myself" = x; then |
---|
5735 | as_myself=$0 |
---|
5736 | fi |
---|
5737 | if test ! -f "$as_myself"; then |
---|
5738 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
5739 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
5740 | { (exit 1); exit 1; }; } |
---|
5741 | fi |
---|
5742 | case $CONFIG_SHELL in |
---|
5743 | '') |
---|
5744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5745 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
5746 | do |
---|
5747 | IFS=$as_save_IFS |
---|
5748 | test -z "$as_dir" && as_dir=. |
---|
5749 | for as_base in sh bash ksh sh5; do |
---|
5750 | case $as_dir in |
---|
5751 | /*) |
---|
5752 | if ("$as_dir/$as_base" -c ' |
---|
5753 | as_lineno_1=$LINENO |
---|
5754 | as_lineno_2=$LINENO |
---|
5755 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
5756 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
5757 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
5758 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
5759 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
5760 | CONFIG_SHELL=$as_dir/$as_base |
---|
5761 | export CONFIG_SHELL |
---|
5762 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
5763 | fi;; |
---|
5764 | esac |
---|
5765 | done |
---|
5766 | done |
---|
5767 | ;; |
---|
5768 | esac |
---|
5769 | |
---|
5770 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
5771 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
5772 | # line-number line before each line; the second 'sed' does the real |
---|
5773 | # work. The second script uses 'N' to pair each line-number line |
---|
5774 | # with the numbered line, and appends trailing '-' during |
---|
5775 | # substitution so that $LINENO is not a special case at line end. |
---|
5776 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
5777 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
5778 | sed '=' <$as_myself | |
---|
5779 | sed ' |
---|
5780 | N |
---|
5781 | s,$,-, |
---|
5782 | : loop |
---|
5783 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
5784 | t loop |
---|
5785 | s,-$,, |
---|
5786 | s,^['$as_cr_digits']*\n,, |
---|
5787 | ' >$as_me.lineno && |
---|
5788 | chmod +x $as_me.lineno || |
---|
5789 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
5790 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
5791 | { (exit 1); exit 1; }; } |
---|
5792 | |
---|
5793 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
5794 | # (the dirname of $[0] is not the place where we might find the |
---|
5795 | # original and so on. Autoconf is especially sensible to this). |
---|
5796 | . ./$as_me.lineno |
---|
5797 | # Exit status is that of the last command. |
---|
5798 | exit |
---|
5799 | } |
---|
5800 | |
---|
5801 | |
---|
5802 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
5803 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
5804 | ' ECHO_T=' ' ;; |
---|
5805 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
5806 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
5807 | esac |
---|
5808 | |
---|
5809 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
5810 | as_expr=expr |
---|
5811 | else |
---|
5812 | as_expr=false |
---|
5813 | fi |
---|
5814 | |
---|
5815 | rm -f conf$$ conf$$.exe conf$$.file |
---|
5816 | echo >conf$$.file |
---|
5817 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
5818 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
5819 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
5820 | if test -f conf$$.exe; then |
---|
5821 | # Don't use ln at all; we don't have any links |
---|
5822 | as_ln_s='cp -p' |
---|
5823 | else |
---|
5824 | as_ln_s='ln -s' |
---|
5825 | fi |
---|
5826 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
5827 | as_ln_s=ln |
---|
5828 | else |
---|
5829 | as_ln_s='cp -p' |
---|
5830 | fi |
---|
5831 | rm -f conf$$ conf$$.exe conf$$.file |
---|
5832 | |
---|
5833 | if mkdir -p . 2>/dev/null; then |
---|
5834 | as_mkdir_p=: |
---|
5835 | else |
---|
5836 | as_mkdir_p=false |
---|
5837 | fi |
---|
5838 | |
---|
5839 | as_executable_p="test -f" |
---|
5840 | |
---|
5841 | # Sed expression to map a string onto a valid CPP name. |
---|
5842 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
---|
5843 | |
---|
5844 | # Sed expression to map a string onto a valid variable name. |
---|
5845 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
---|
5846 | |
---|
5847 | |
---|
5848 | # IFS |
---|
5849 | # We need space, tab and new line, in precisely that order. |
---|
5850 | as_nl=' |
---|
5851 | ' |
---|
5852 | IFS=" $as_nl" |
---|
5853 | |
---|
5854 | # CDPATH. |
---|
5855 | $as_unset CDPATH |
---|
5856 | |
---|
5857 | exec 6>&1 |
---|
5858 | |
---|
5859 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
5860 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
5861 | # values after options handling. Logging --version etc. is OK. |
---|
5862 | exec 5>>config.log |
---|
5863 | { |
---|
5864 | echo |
---|
5865 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
5866 | ## Running $as_me. ## |
---|
5867 | _ASBOX |
---|
5868 | } >&5 |
---|
5869 | cat >&5 <<_CSEOF |
---|
5870 | |
---|
5871 | This file was extended by $as_me, which was |
---|
5872 | generated by GNU Autoconf 2.57. Invocation command line was |
---|
5873 | |
---|
5874 | CONFIG_FILES = $CONFIG_FILES |
---|
5875 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
5876 | CONFIG_LINKS = $CONFIG_LINKS |
---|
5877 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
5878 | $ $0 $@ |
---|
5879 | |
---|
5880 | _CSEOF |
---|
5881 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
5882 | echo >&5 |
---|
5883 | _ACEOF |
---|
5884 | |
---|
5885 | # Files that config.status was made for. |
---|
5886 | if test -n "$ac_config_files"; then |
---|
5887 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
5888 | fi |
---|
5889 | |
---|
5890 | if test -n "$ac_config_headers"; then |
---|
5891 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
5892 | fi |
---|
5893 | |
---|
5894 | if test -n "$ac_config_links"; then |
---|
5895 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
5896 | fi |
---|
5897 | |
---|
5898 | if test -n "$ac_config_commands"; then |
---|
5899 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
5900 | fi |
---|
5901 | |
---|
5902 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
5903 | |
---|
5904 | ac_cs_usage="\ |
---|
5905 | \`$as_me' instantiates files from templates according to the |
---|
5906 | current configuration. |
---|
5907 | |
---|
5908 | Usage: $0 [OPTIONS] [FILE]... |
---|
5909 | |
---|
5910 | -h, --help print this help, then exit |
---|
5911 | -V, --version print version number, then exit |
---|
5912 | -q, --quiet do not print progress messages |
---|
5913 | -d, --debug don't remove temporary files |
---|
5914 | --recheck update $as_me by reconfiguring in the same conditions |
---|
5915 | --file=FILE[:TEMPLATE] |
---|
5916 | instantiate the configuration file FILE |
---|
5917 | |
---|
5918 | Configuration files: |
---|
5919 | $config_files |
---|
5920 | |
---|
5921 | Report bugs to <bug-autoconf@gnu.org>." |
---|
5922 | _ACEOF |
---|
5923 | |
---|
5924 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
5925 | ac_cs_version="\\ |
---|
5926 | config.status |
---|
5927 | configured by $0, generated by GNU Autoconf 2.57, |
---|
5928 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
5929 | |
---|
5930 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
---|
5931 | Free Software Foundation, Inc. |
---|
5932 | This config.status script is free software; the Free Software Foundation |
---|
5933 | gives unlimited permission to copy, distribute and modify it." |
---|
5934 | srcdir=$srcdir |
---|
5935 | INSTALL="$INSTALL" |
---|
5936 | _ACEOF |
---|
5937 | |
---|
5938 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
5939 | # If no file are specified by the user, then we need to provide default |
---|
5940 | # value. By we need to know if files were specified by the user. |
---|
5941 | ac_need_defaults=: |
---|
5942 | while test $# != 0 |
---|
5943 | do |
---|
5944 | case $1 in |
---|
5945 | --*=*) |
---|
5946 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
5947 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
5948 | ac_shift=: |
---|
5949 | ;; |
---|
5950 | -*) |
---|
5951 | ac_option=$1 |
---|
5952 | ac_optarg=$2 |
---|
5953 | ac_shift=shift |
---|
5954 | ;; |
---|
5955 | *) # This is not an option, so the user has probably given explicit |
---|
5956 | # arguments. |
---|
5957 | ac_option=$1 |
---|
5958 | ac_need_defaults=false;; |
---|
5959 | esac |
---|
5960 | |
---|
5961 | case $ac_option in |
---|
5962 | # Handling of the options. |
---|
5963 | _ACEOF |
---|
5964 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
5965 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
5966 | ac_cs_recheck=: ;; |
---|
5967 | --version | --vers* | -V ) |
---|
5968 | echo "$ac_cs_version"; exit 0 ;; |
---|
5969 | --he | --h) |
---|
5970 | # Conflict between --help and --header |
---|
5971 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
5972 | Try \`$0 --help' for more information." >&5 |
---|
5973 | echo "$as_me: error: ambiguous option: $1 |
---|
5974 | Try \`$0 --help' for more information." >&2;} |
---|
5975 | { (exit 1); exit 1; }; };; |
---|
5976 | --help | --hel | -h ) |
---|
5977 | echo "$ac_cs_usage"; exit 0 ;; |
---|
5978 | --debug | --d* | -d ) |
---|
5979 | debug=: ;; |
---|
5980 | --file | --fil | --fi | --f ) |
---|
5981 | $ac_shift |
---|
5982 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
5983 | ac_need_defaults=false;; |
---|
5984 | --header | --heade | --head | --hea ) |
---|
5985 | $ac_shift |
---|
5986 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
5987 | ac_need_defaults=false;; |
---|
5988 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
5989 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
5990 | ac_cs_silent=: ;; |
---|
5991 | |
---|
5992 | # This is an error. |
---|
5993 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
5994 | Try \`$0 --help' for more information." >&5 |
---|
5995 | echo "$as_me: error: unrecognized option: $1 |
---|
5996 | Try \`$0 --help' for more information." >&2;} |
---|
5997 | { (exit 1); exit 1; }; } ;; |
---|
5998 | |
---|
5999 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
6000 | |
---|
6001 | esac |
---|
6002 | shift |
---|
6003 | done |
---|
6004 | |
---|
6005 | ac_configure_extra_args= |
---|
6006 | |
---|
6007 | if $ac_cs_silent; then |
---|
6008 | exec 6>/dev/null |
---|
6009 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
6010 | fi |
---|
6011 | |
---|
6012 | _ACEOF |
---|
6013 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6014 | if \$ac_cs_recheck; then |
---|
6015 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
6016 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
6017 | fi |
---|
6018 | |
---|
6019 | _ACEOF |
---|
6020 | |
---|
6021 | |
---|
6022 | |
---|
6023 | |
---|
6024 | |
---|
6025 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6026 | for ac_config_target in $ac_config_targets |
---|
6027 | do |
---|
6028 | case "$ac_config_target" in |
---|
6029 | # Handling of arguments. |
---|
6030 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
6031 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
6032 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
6033 | { (exit 1); exit 1; }; };; |
---|
6034 | esac |
---|
6035 | done |
---|
6036 | |
---|
6037 | # If the user did not use the arguments to specify the items to instantiate, |
---|
6038 | # then the envvar interface is used. Set only those that are not. |
---|
6039 | # We use the long form for the default assignment because of an extremely |
---|
6040 | # bizarre bug on SunOS 4.1.3. |
---|
6041 | if $ac_need_defaults; then |
---|
6042 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
6043 | fi |
---|
6044 | |
---|
6045 | # Have a temporary directory for convenience. Make it in the build tree |
---|
6046 | # simply because there is no reason to put it here, and in addition, |
---|
6047 | # creating and moving files from /tmp can sometimes cause problems. |
---|
6048 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
6049 | $debug || |
---|
6050 | { |
---|
6051 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
6052 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
6053 | } |
---|
6054 | |
---|
6055 | # Create a (secure) tmp directory for tmp files. |
---|
6056 | |
---|
6057 | { |
---|
6058 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
6059 | test -n "$tmp" && test -d "$tmp" |
---|
6060 | } || |
---|
6061 | { |
---|
6062 | tmp=./confstat$$-$RANDOM |
---|
6063 | (umask 077 && mkdir $tmp) |
---|
6064 | } || |
---|
6065 | { |
---|
6066 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
6067 | { (exit 1); exit 1; } |
---|
6068 | } |
---|
6069 | |
---|
6070 | _ACEOF |
---|
6071 | |
---|
6072 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6073 | |
---|
6074 | # |
---|
6075 | # CONFIG_FILES section. |
---|
6076 | # |
---|
6077 | |
---|
6078 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
6079 | # This happens for instance when ./config.status config.h |
---|
6080 | if test -n "\$CONFIG_FILES"; then |
---|
6081 | # Protect against being on the right side of a sed subst in config.status. |
---|
6082 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
6083 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
6084 | s,@SHELL@,$SHELL,;t t |
---|
6085 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
6086 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
6087 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
6088 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
6089 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
6090 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
6091 | s,@exec_prefix@,$exec_prefix,;t t |
---|
6092 | s,@prefix@,$prefix,;t t |
---|
6093 | s,@program_transform_name@,$program_transform_name,;t t |
---|
6094 | s,@bindir@,$bindir,;t t |
---|
6095 | s,@sbindir@,$sbindir,;t t |
---|
6096 | s,@libexecdir@,$libexecdir,;t t |
---|
6097 | s,@datadir@,$datadir,;t t |
---|
6098 | s,@sysconfdir@,$sysconfdir,;t t |
---|
6099 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
6100 | s,@localstatedir@,$localstatedir,;t t |
---|
6101 | s,@libdir@,$libdir,;t t |
---|
6102 | s,@includedir@,$includedir,;t t |
---|
6103 | s,@oldincludedir@,$oldincludedir,;t t |
---|
6104 | s,@infodir@,$infodir,;t t |
---|
6105 | s,@mandir@,$mandir,;t t |
---|
6106 | s,@build_alias@,$build_alias,;t t |
---|
6107 | s,@host_alias@,$host_alias,;t t |
---|
6108 | s,@target_alias@,$target_alias,;t t |
---|
6109 | s,@DEFS@,$DEFS,;t t |
---|
6110 | s,@ECHO_C@,$ECHO_C,;t t |
---|
6111 | s,@ECHO_N@,$ECHO_N,;t t |
---|
6112 | s,@ECHO_T@,$ECHO_T,;t t |
---|
6113 | s,@LIBS@,$LIBS,;t t |
---|
6114 | s,@glulibdir@,$glulibdir,;t t |
---|
6115 | s,@gluincdir@,$gluincdir,;t t |
---|
6116 | s,@vislibdir@,$vislibdir,;t t |
---|
6117 | s,@local_srcdir@,$local_srcdir,;t t |
---|
6118 | s,@BDDLIB@,$BDDLIB,;t t |
---|
6119 | s,@ZCHAFF@,$ZCHAFF,;t t |
---|
6120 | s,@AR@,$AR,;t t |
---|
6121 | s,@RANLIB@,$RANLIB,;t t |
---|
6122 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
---|
6123 | s,@build@,$build,;t t |
---|
6124 | s,@build_cpu@,$build_cpu,;t t |
---|
6125 | s,@build_vendor@,$build_vendor,;t t |
---|
6126 | s,@build_os@,$build_os,;t t |
---|
6127 | s,@host@,$host,;t t |
---|
6128 | s,@host_cpu@,$host_cpu,;t t |
---|
6129 | s,@host_vendor@,$host_vendor,;t t |
---|
6130 | s,@host_os@,$host_os,;t t |
---|
6131 | s,@target@,$target,;t t |
---|
6132 | s,@target_cpu@,$target_cpu,;t t |
---|
6133 | s,@target_vendor@,$target_vendor,;t t |
---|
6134 | s,@target_os@,$target_os,;t t |
---|
6135 | s,@CC@,$CC,;t t |
---|
6136 | s,@CFLAGS@,$CFLAGS,;t t |
---|
6137 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
6138 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
6139 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
6140 | s,@EXEEXT@,$EXEEXT,;t t |
---|
6141 | s,@OBJEXT@,$OBJEXT,;t t |
---|
6142 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
6143 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
6144 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
6145 | s,@LINKER@,$LINKER,;t t |
---|
6146 | s,@PLINKER@,$PLINKER,;t t |
---|
6147 | s,@LEX@,$LEX,;t t |
---|
6148 | s,@LEXLIB@,$LEXLIB,;t t |
---|
6149 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
---|
6150 | s,@YACC@,$YACC,;t t |
---|
6151 | s,@CPP@,$CPP,;t t |
---|
6152 | s,@EGREP@,$EGREP,;t t |
---|
6153 | s,@LIBDIRS@,$LIBDIRS,;t t |
---|
6154 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
6155 | s,@AWK@,$AWK,;t t |
---|
6156 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
6157 | CEOF |
---|
6158 | |
---|
6159 | _ACEOF |
---|
6160 | |
---|
6161 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6162 | # Split the substitutions into bite-sized pieces for seds with |
---|
6163 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
6164 | ac_max_sed_lines=48 |
---|
6165 | ac_sed_frag=1 # Number of current file. |
---|
6166 | ac_beg=1 # First line for current file. |
---|
6167 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
6168 | ac_more_lines=: |
---|
6169 | ac_sed_cmds= |
---|
6170 | while $ac_more_lines; do |
---|
6171 | if test $ac_beg -gt 1; then |
---|
6172 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
6173 | else |
---|
6174 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
6175 | fi |
---|
6176 | if test ! -s $tmp/subs.frag; then |
---|
6177 | ac_more_lines=false |
---|
6178 | else |
---|
6179 | # The purpose of the label and of the branching condition is to |
---|
6180 | # speed up the sed processing (if there are no `@' at all, there |
---|
6181 | # is no need to browse any of the substitutions). |
---|
6182 | # These are the two extra sed commands mentioned above. |
---|
6183 | (echo ':t |
---|
6184 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
6185 | if test -z "$ac_sed_cmds"; then |
---|
6186 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
6187 | else |
---|
6188 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
6189 | fi |
---|
6190 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
6191 | ac_beg=$ac_end |
---|
6192 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
6193 | fi |
---|
6194 | done |
---|
6195 | if test -z "$ac_sed_cmds"; then |
---|
6196 | ac_sed_cmds=cat |
---|
6197 | fi |
---|
6198 | fi # test -n "$CONFIG_FILES" |
---|
6199 | |
---|
6200 | _ACEOF |
---|
6201 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6202 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
6203 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
6204 | case $ac_file in |
---|
6205 | - | *:- | *:-:* ) # input from stdin |
---|
6206 | cat >$tmp/stdin |
---|
6207 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
6208 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
6209 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
6210 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
6211 | * ) ac_file_in=$ac_file.in ;; |
---|
6212 | esac |
---|
6213 | |
---|
6214 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
6215 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
6216 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6217 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
6218 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
6219 | X"$ac_file" : 'X\(/\)' \| \ |
---|
6220 | . : '\(.\)' 2>/dev/null || |
---|
6221 | echo X"$ac_file" | |
---|
6222 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
6223 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
6224 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
6225 | /^X\(\/\).*/{ s//\1/; q; } |
---|
6226 | s/.*/./; q'` |
---|
6227 | { if $as_mkdir_p; then |
---|
6228 | mkdir -p "$ac_dir" |
---|
6229 | else |
---|
6230 | as_dir="$ac_dir" |
---|
6231 | as_dirs= |
---|
6232 | while test ! -d "$as_dir"; do |
---|
6233 | as_dirs="$as_dir $as_dirs" |
---|
6234 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
6235 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6236 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
6237 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
6238 | X"$as_dir" : 'X\(/\)' \| \ |
---|
6239 | . : '\(.\)' 2>/dev/null || |
---|
6240 | echo X"$as_dir" | |
---|
6241 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
6242 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
6243 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
6244 | /^X\(\/\).*/{ s//\1/; q; } |
---|
6245 | s/.*/./; q'` |
---|
6246 | done |
---|
6247 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
6248 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
6249 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
6250 | { (exit 1); exit 1; }; }; } |
---|
6251 | |
---|
6252 | ac_builddir=. |
---|
6253 | |
---|
6254 | if test "$ac_dir" != .; then |
---|
6255 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
6256 | # A "../" for each directory in $ac_dir_suffix. |
---|
6257 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
6258 | else |
---|
6259 | ac_dir_suffix= ac_top_builddir= |
---|
6260 | fi |
---|
6261 | |
---|
6262 | case $srcdir in |
---|
6263 | .) # No --srcdir option. We are building in place. |
---|
6264 | ac_srcdir=. |
---|
6265 | if test -z "$ac_top_builddir"; then |
---|
6266 | ac_top_srcdir=. |
---|
6267 | else |
---|
6268 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
6269 | fi ;; |
---|
6270 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
6271 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
6272 | ac_top_srcdir=$srcdir ;; |
---|
6273 | *) # Relative path. |
---|
6274 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
6275 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
6276 | esac |
---|
6277 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
---|
6278 | # absolute. |
---|
6279 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
---|
6280 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
---|
6281 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
---|
6282 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
---|
6283 | |
---|
6284 | |
---|
6285 | case $INSTALL in |
---|
6286 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
6287 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
6288 | esac |
---|
6289 | |
---|
6290 | if test x"$ac_file" != x-; then |
---|
6291 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
6292 | echo "$as_me: creating $ac_file" >&6;} |
---|
6293 | rm -f "$ac_file" |
---|
6294 | fi |
---|
6295 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
6296 | # use $as_me), people would be surprised to read: |
---|
6297 | # /* config.h. Generated by config.status. */ |
---|
6298 | if test x"$ac_file" = x-; then |
---|
6299 | configure_input= |
---|
6300 | else |
---|
6301 | configure_input="$ac_file. " |
---|
6302 | fi |
---|
6303 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
6304 | sed 's,.*/,,'` by configure." |
---|
6305 | |
---|
6306 | # First look for the input files in the build tree, otherwise in the |
---|
6307 | # src tree. |
---|
6308 | ac_file_inputs=`IFS=: |
---|
6309 | for f in $ac_file_in; do |
---|
6310 | case $f in |
---|
6311 | -) echo $tmp/stdin ;; |
---|
6312 | [\\/$]*) |
---|
6313 | # Absolute (can't be DOS-style, as IFS=:) |
---|
6314 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
6315 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
6316 | { (exit 1); exit 1; }; } |
---|
6317 | echo $f;; |
---|
6318 | *) # Relative |
---|
6319 | if test -f "$f"; then |
---|
6320 | # Build tree |
---|
6321 | echo $f |
---|
6322 | elif test -f "$srcdir/$f"; then |
---|
6323 | # Source tree |
---|
6324 | echo $srcdir/$f |
---|
6325 | else |
---|
6326 | # /dev/null tree |
---|
6327 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
6328 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
6329 | { (exit 1); exit 1; }; } |
---|
6330 | fi;; |
---|
6331 | esac |
---|
6332 | done` || { (exit 1); exit 1; } |
---|
6333 | _ACEOF |
---|
6334 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
6335 | sed "$ac_vpsub |
---|
6336 | $extrasub |
---|
6337 | _ACEOF |
---|
6338 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6339 | :t |
---|
6340 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
6341 | s,@configure_input@,$configure_input,;t t |
---|
6342 | s,@srcdir@,$ac_srcdir,;t t |
---|
6343 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
6344 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
6345 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
6346 | s,@builddir@,$ac_builddir,;t t |
---|
6347 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
6348 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
6349 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
6350 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
6351 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
6352 | rm -f $tmp/stdin |
---|
6353 | if test x"$ac_file" != x-; then |
---|
6354 | mv $tmp/out $ac_file |
---|
6355 | else |
---|
6356 | cat $tmp/out |
---|
6357 | rm -f $tmp/out |
---|
6358 | fi |
---|
6359 | |
---|
6360 | done |
---|
6361 | _ACEOF |
---|
6362 | |
---|
6363 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6364 | |
---|
6365 | { (exit 0); exit 0; } |
---|
6366 | _ACEOF |
---|
6367 | chmod +x $CONFIG_STATUS |
---|
6368 | ac_clean_files=$ac_clean_files_save |
---|
6369 | |
---|
6370 | |
---|
6371 | # configure is writing to config.log, and then calls config.status. |
---|
6372 | # config.status does its own redirection, appending to config.log. |
---|
6373 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
6374 | # by configure, so config.status won't be able to write to it; its |
---|
6375 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
6376 | # effectively closing config.log, so it can be properly (re)opened and |
---|
6377 | # appended to by config.status. When coming back to configure, we |
---|
6378 | # need to make the FD available again. |
---|
6379 | if test "$no_create" != yes; then |
---|
6380 | ac_cs_success=: |
---|
6381 | ac_config_status_args= |
---|
6382 | test "$silent" = yes && |
---|
6383 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
6384 | exec 5>/dev/null |
---|
6385 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
6386 | exec 5>>config.log |
---|
6387 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
6388 | # would make configure fail if this is the last instruction. |
---|
6389 | $ac_cs_success || { (exit 1); exit 1; } |
---|
6390 | fi |
---|
6391 | |
---|