Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
10 | reyssat | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
||
3 | # Generated by GNU Autoconf 2.59 for WIMS 3.62. |
||
4 | # |
||
5 | # Report bugs to <xiao@unice.fr>. |
||
6 | # |
||
7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
||
8 | # This configure script is free software; the Free Software Foundation |
||
9 | # gives unlimited permission to copy, distribute and modify it. |
||
10 | ## --------------------- ## |
||
11 | ## M4sh Initialization. ## |
||
12 | ## --------------------- ## |
||
13 | |||
14 | # Be Bourne compatible |
||
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
||
16 | emulate sh |
||
17 | NULLCMD=: |
||
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
||
19 | # is contrary to our usage. Disable this feature. |
||
20 | alias -g '${1+"$@"}'='"$@"' |
||
21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
||
22 | set -o posix |
||
23 | fi |
||
24 | DUALCASE=1; export DUALCASE # for MKS sh |
||
25 | |||
26 | # Support unset when possible. |
||
27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
||
28 | as_unset=unset |
||
29 | else |
||
30 | as_unset=false |
||
31 | fi |
||
32 | |||
33 | |||
34 | # Work around bugs in pre-3.0 UWIN ksh. |
||
35 | $as_unset ENV MAIL MAILPATH |
||
36 | PS1='$ ' |
||
37 | PS2='> ' |
||
38 | PS4='+ ' |
||
39 | |||
40 | # NLS nuisances. |
||
41 | for as_var in \ |
||
42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
||
43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
||
44 | LC_TELEPHONE LC_TIME |
||
45 | do |
||
46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
||
47 | eval $as_var=C; export $as_var |
||
48 | else |
||
49 | $as_unset $as_var |
||
50 | fi |
||
51 | done |
||
52 | |||
53 | # Required to use basename. |
||
54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
||
55 | as_expr=expr |
||
56 | else |
||
57 | as_expr=false |
||
58 | fi |
||
59 | |||
60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
||
61 | as_basename=basename |
||
62 | else |
||
63 | as_basename=false |
||
64 | fi |
||
65 | |||
66 | |||
67 | # Name of the executable. |
||
68 | as_me=`$as_basename "$0" || |
||
69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
||
70 | X"$0" : 'X\(//\)$' \| \ |
||
71 | X"$0" : 'X\(/\)$' \| \ |
||
72 | . : '\(.\)' 2>/dev/null || |
||
73 | echo X/"$0" | |
||
74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
||
75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
||
76 | /^X\/\(\/\).*/{ s//\1/; q; } |
||
77 | s/.*/./; q'` |
||
78 | |||
79 | |||
80 | # PATH needs CR, and LINENO needs CR and PATH. |
||
81 | # Avoid depending upon Character Ranges. |
||
82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
||
83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
||
84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
||
85 | as_cr_digits='0123456789' |
||
86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
||
87 | |||
88 | # The user is always right. |
||
89 | if test "${PATH_SEPARATOR+set}" != set; then |
||
90 | echo "#! /bin/sh" >conf$$.sh |
||
91 | echo "exit 0" >>conf$$.sh |
||
92 | chmod +x conf$$.sh |
||
93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
||
94 | PATH_SEPARATOR=';' |
||
95 | else |
||
96 | PATH_SEPARATOR=: |
||
97 | fi |
||
98 | rm -f conf$$.sh |
||
99 | fi |
||
100 | |||
101 | |||
102 | as_lineno_1=$LINENO |
||
103 | as_lineno_2=$LINENO |
||
104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
||
105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
||
106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
||
107 | # Find who we are. Look in the path if we contain no path at all |
||
108 | # relative or not. |
||
109 | case $0 in |
||
110 | *[\\/]* ) as_myself=$0 ;; |
||
111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
112 | for as_dir in $PATH |
||
113 | do |
||
114 | IFS=$as_save_IFS |
||
115 | test -z "$as_dir" && as_dir=. |
||
116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
||
117 | done |
||
118 | |||
119 | ;; |
||
120 | esac |
||
121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
||
122 | # in which case we are not to be found in the path. |
||
123 | if test "x$as_myself" = x; then |
||
124 | as_myself=$0 |
||
125 | fi |
||
126 | if test ! -f "$as_myself"; then |
||
127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
||
128 | { (exit 1); exit 1; }; } |
||
129 | fi |
||
130 | case $CONFIG_SHELL in |
||
131 | '') |
||
132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
||
134 | do |
||
135 | IFS=$as_save_IFS |
||
136 | test -z "$as_dir" && as_dir=. |
||
137 | for as_base in sh bash ksh sh5; do |
||
138 | case $as_dir in |
||
139 | /*) |
||
140 | if ("$as_dir/$as_base" -c ' |
||
141 | as_lineno_1=$LINENO |
||
142 | as_lineno_2=$LINENO |
||
143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
||
144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
||
145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
||
146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
||
147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
||
148 | CONFIG_SHELL=$as_dir/$as_base |
||
149 | export CONFIG_SHELL |
||
150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
||
151 | fi;; |
||
152 | esac |
||
153 | done |
||
154 | done |
||
155 | ;; |
||
156 | esac |
||
157 | |||
158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
||
159 | # uniformly replaced by the line number. The first 'sed' inserts a |
||
160 | # line-number line before each line; the second 'sed' does the real |
||
161 | # work. The second script uses 'N' to pair each line-number line |
||
162 | # with the numbered line, and appends trailing '-' during |
||
163 | # substitution so that $LINENO is not a special case at line end. |
||
164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
||
165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
||
166 | sed '=' <$as_myself | |
||
167 | sed ' |
||
168 | N |
||
169 | s,$,-, |
||
170 | : loop |
||
171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
||
172 | t loop |
||
173 | s,-$,, |
||
174 | s,^['$as_cr_digits']*\n,, |
||
175 | ' >$as_me.lineno && |
||
176 | chmod +x $as_me.lineno || |
||
177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
||
178 | { (exit 1); exit 1; }; } |
||
179 | |||
180 | # Don't try to exec as it changes $[0], causing all sort of problems |
||
181 | # (the dirname of $[0] is not the place where we might find the |
||
182 | # original and so on. Autoconf is especially sensible to this). |
||
183 | . ./$as_me.lineno |
||
184 | # Exit status is that of the last command. |
||
185 | exit |
||
186 | } |
||
187 | |||
188 | |||
189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
||
190 | *c*,-n*) ECHO_N= ECHO_C=' |
||
191 | ' ECHO_T=' ' ;; |
||
192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
||
193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
||
194 | esac |
||
195 | |||
196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
||
197 | as_expr=expr |
||
198 | else |
||
199 | as_expr=false |
||
200 | fi |
||
201 | |||
202 | rm -f conf$$ conf$$.exe conf$$.file |
||
203 | echo >conf$$.file |
||
204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
||
205 | # We could just check for DJGPP; but this test a) works b) is more generic |
||
206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
||
207 | if test -f conf$$.exe; then |
||
208 | # Don't use ln at all; we don't have any links |
||
209 | as_ln_s='cp -p' |
||
210 | else |
||
211 | as_ln_s='ln -s' |
||
212 | fi |
||
213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
||
214 | as_ln_s=ln |
||
215 | else |
||
216 | as_ln_s='cp -p' |
||
217 | fi |
||
218 | rm -f conf$$ conf$$.exe conf$$.file |
||
219 | |||
220 | if mkdir -p . 2>/dev/null; then |
||
221 | as_mkdir_p=: |
||
222 | else |
||
223 | test -d ./-p && rmdir ./-p |
||
224 | as_mkdir_p=false |
||
225 | fi |
||
226 | |||
227 | as_executable_p="test -f" |
||
228 | |||
229 | # Sed expression to map a string onto a valid CPP name. |
||
230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
||
231 | |||
232 | # Sed expression to map a string onto a valid variable name. |
||
233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
||
234 | |||
235 | |||
236 | # IFS |
||
237 | # We need space, tab and new line, in precisely that order. |
||
238 | as_nl=' |
||
239 | ' |
||
240 | IFS=" $as_nl" |
||
241 | |||
242 | # CDPATH. |
||
243 | $as_unset CDPATH |
||
244 | |||
245 | |||
246 | # Name of the host. |
||
247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
||
248 | # so uname gets run too. |
||
249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
||
250 | |||
251 | exec 6>&1 |
||
252 | |||
253 | # |
||
254 | # Initializations. |
||
255 | # |
||
256 | ac_default_prefix=/usr/local |
||
257 | ac_config_libobj_dir=. |
||
258 | cross_compiling=no |
||
259 | subdirs= |
||
260 | MFLAGS= |
||
261 | MAKEFLAGS= |
||
262 | SHELL=${CONFIG_SHELL-/bin/sh} |
||
263 | |||
264 | # Maximum number of lines to put in a shell here document. |
||
265 | # This variable seems obsolete. It should probably be removed, and |
||
266 | # only ac_max_sed_lines should be used. |
||
267 | : ${ac_max_here_lines=38} |
||
268 | |||
269 | # Identity of this package. |
||
270 | PACKAGE_NAME='WIMS' |
||
271 | PACKAGE_TARNAME='wims' |
||
272 | PACKAGE_VERSION='3.62' |
||
273 | PACKAGE_STRING='WIMS 3.62' |
||
274 | PACKAGE_BUGREPORT='xiao@unice.fr' |
||
275 | |||
276 | ac_unique_file="wims.c" |
||
277 | # Factoring default headers for most tests. |
||
278 | ac_includes_default="\ |
||
279 | #include <stdio.h> |
||
280 | #if HAVE_SYS_TYPES_H |
||
281 | # include <sys/types.h> |
||
282 | #endif |
||
283 | #if HAVE_SYS_STAT_H |
||
284 | # include <sys/stat.h> |
||
285 | #endif |
||
286 | #if STDC_HEADERS |
||
287 | # include <stdlib.h> |
||
288 | # include <stddef.h> |
||
289 | #else |
||
290 | # if HAVE_STDLIB_H |
||
291 | # include <stdlib.h> |
||
292 | # endif |
||
293 | #endif |
||
294 | #if HAVE_STRING_H |
||
295 | # if !STDC_HEADERS && HAVE_MEMORY_H |
||
296 | # include <memory.h> |
||
297 | # endif |
||
298 | # include <string.h> |
||
299 | #endif |
||
300 | #if HAVE_STRINGS_H |
||
301 | # include <strings.h> |
||
302 | #endif |
||
303 | #if HAVE_INTTYPES_H |
||
304 | # include <inttypes.h> |
||
305 | #else |
||
306 | # if HAVE_STDINT_H |
||
307 | # include <stdint.h> |
||
308 | # endif |
||
309 | #endif |
||
310 | #if HAVE_UNISTD_H |
||
311 | # include <unistd.h> |
||
312 | #endif" |
||
313 | |||
314 | 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 LN_S AWK YACC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP LEX LEXLIB LEX_OUTPUT_ROOT SET_MAKE RANLIB ac_ct_RANLIB STRIP TEX ALLOCA EGREP LIBOBJS POW_LIB D_CASE_INSENSITIVE_FS STATIC_LIB DEFINES RPATH BUILD_UNITS BUILD_CHEMEQ BUILD_WIMSD SETENV_OBJS ALLSETENV_OBJS NETLIBS FLEXLIB CRYPTLIB LTLIBOBJS' |
||
315 | ac_subst_files='' |
||
316 | |||
317 | # Initialize some variables set by options. |
||
318 | ac_init_help= |
||
319 | ac_init_version=false |
||
320 | # The variables have the same names as the options, with |
||
321 | # dashes changed to underlines. |
||
322 | cache_file=/dev/null |
||
323 | exec_prefix=NONE |
||
324 | no_create= |
||
325 | no_recursion= |
||
326 | prefix=NONE |
||
327 | program_prefix=NONE |
||
328 | program_suffix=NONE |
||
329 | program_transform_name=s,x,x, |
||
330 | silent= |
||
331 | site= |
||
332 | srcdir= |
||
333 | verbose= |
||
334 | x_includes=NONE |
||
335 | x_libraries=NONE |
||
336 | |||
337 | # Installation directory options. |
||
338 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
||
339 | # and all the variables that are supposed to be based on exec_prefix |
||
340 | # by default will actually change. |
||
341 | # Use braces instead of parens because sh, perl, etc. also accept them. |
||
342 | bindir='${exec_prefix}/bin' |
||
343 | sbindir='${exec_prefix}/sbin' |
||
344 | libexecdir='${exec_prefix}/libexec' |
||
345 | datadir='${prefix}/share' |
||
346 | sysconfdir='${prefix}/etc' |
||
347 | sharedstatedir='${prefix}/com' |
||
348 | localstatedir='${prefix}/var' |
||
349 | libdir='${exec_prefix}/lib' |
||
350 | includedir='${prefix}/include' |
||
351 | oldincludedir='/usr/include' |
||
352 | infodir='${prefix}/info' |
||
353 | mandir='${prefix}/man' |
||
354 | |||
355 | ac_prev= |
||
356 | for ac_option |
||
357 | do |
||
358 | # If the previous option needs an argument, assign it. |
||
359 | if test -n "$ac_prev"; then |
||
360 | eval "$ac_prev=\$ac_option" |
||
361 | ac_prev= |
||
362 | continue |
||
363 | fi |
||
364 | |||
365 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
||
366 | |||
367 | # Accept the important Cygnus configure options, so we can diagnose typos. |
||
368 | |||
369 | case $ac_option in |
||
370 | |||
371 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
||
372 | ac_prev=bindir ;; |
||
373 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
||
374 | bindir=$ac_optarg ;; |
||
375 | |||
376 | -build | --build | --buil | --bui | --bu) |
||
377 | ac_prev=build_alias ;; |
||
378 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
||
379 | build_alias=$ac_optarg ;; |
||
380 | |||
381 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
||
382 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
||
383 | ac_prev=cache_file ;; |
||
384 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
||
385 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
||
386 | cache_file=$ac_optarg ;; |
||
387 | |||
388 | --config-cache | -C) |
||
389 | cache_file=config.cache ;; |
||
390 | |||
391 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
||
392 | ac_prev=datadir ;; |
||
393 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
||
394 | | --da=*) |
||
395 | datadir=$ac_optarg ;; |
||
396 | |||
397 | -disable-* | --disable-*) |
||
398 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
||
399 | # Reject names that are not valid shell variable names. |
||
400 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
||
401 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
||
402 | { (exit 1); exit 1; }; } |
||
403 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
||
404 | eval "enable_$ac_feature=no" ;; |
||
405 | |||
406 | -enable-* | --enable-*) |
||
407 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
||
408 | # Reject names that are not valid shell variable names. |
||
409 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
||
410 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
||
411 | { (exit 1); exit 1; }; } |
||
412 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
||
413 | case $ac_option in |
||
414 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
||
415 | *) ac_optarg=yes ;; |
||
416 | esac |
||
417 | eval "enable_$ac_feature='$ac_optarg'" ;; |
||
418 | |||
419 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
||
420 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
||
421 | | --exec | --exe | --ex) |
||
422 | ac_prev=exec_prefix ;; |
||
423 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
||
424 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
||
425 | | --exec=* | --exe=* | --ex=*) |
||
426 | exec_prefix=$ac_optarg ;; |
||
427 | |||
428 | -gas | --gas | --ga | --g) |
||
429 | # Obsolete; use --with-gas. |
||
430 | with_gas=yes ;; |
||
431 | |||
432 | -help | --help | --hel | --he | -h) |
||
433 | ac_init_help=long ;; |
||
434 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
||
435 | ac_init_help=recursive ;; |
||
436 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
||
437 | ac_init_help=short ;; |
||
438 | |||
439 | -host | --host | --hos | --ho) |
||
440 | ac_prev=host_alias ;; |
||
441 | -host=* | --host=* | --hos=* | --ho=*) |
||
442 | host_alias=$ac_optarg ;; |
||
443 | |||
444 | -includedir | --includedir | --includedi | --included | --include \ |
||
445 | | --includ | --inclu | --incl | --inc) |
||
446 | ac_prev=includedir ;; |
||
447 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
||
448 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
||
449 | includedir=$ac_optarg ;; |
||
450 | |||
451 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
||
452 | ac_prev=infodir ;; |
||
453 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
||
454 | infodir=$ac_optarg ;; |
||
455 | |||
456 | -libdir | --libdir | --libdi | --libd) |
||
457 | ac_prev=libdir ;; |
||
458 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
||
459 | libdir=$ac_optarg ;; |
||
460 | |||
461 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
||
462 | | --libexe | --libex | --libe) |
||
463 | ac_prev=libexecdir ;; |
||
464 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
||
465 | | --libexe=* | --libex=* | --libe=*) |
||
466 | libexecdir=$ac_optarg ;; |
||
467 | |||
468 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
||
469 | | --localstate | --localstat | --localsta | --localst \ |
||
470 | | --locals | --local | --loca | --loc | --lo) |
||
471 | ac_prev=localstatedir ;; |
||
472 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
||
473 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
||
474 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
||
475 | localstatedir=$ac_optarg ;; |
||
476 | |||
477 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
||
478 | ac_prev=mandir ;; |
||
479 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
||
480 | mandir=$ac_optarg ;; |
||
481 | |||
482 | -nfp | --nfp | --nf) |
||
483 | # Obsolete; use --without-fp. |
||
484 | with_fp=no ;; |
||
485 | |||
486 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
||
487 | | --no-cr | --no-c | -n) |
||
488 | no_create=yes ;; |
||
489 | |||
490 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
||
491 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
||
492 | no_recursion=yes ;; |
||
493 | |||
494 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
||
495 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
||
496 | | --oldin | --oldi | --old | --ol | --o) |
||
497 | ac_prev=oldincludedir ;; |
||
498 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
||
499 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
||
500 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
||
501 | oldincludedir=$ac_optarg ;; |
||
502 | |||
503 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
||
504 | ac_prev=prefix ;; |
||
505 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
||
506 | prefix=$ac_optarg ;; |
||
507 | |||
508 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
||
509 | | --program-pre | --program-pr | --program-p) |
||
510 | ac_prev=program_prefix ;; |
||
511 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
||
512 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
||
513 | program_prefix=$ac_optarg ;; |
||
514 | |||
515 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
||
516 | | --program-suf | --program-su | --program-s) |
||
517 | ac_prev=program_suffix ;; |
||
518 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
||
519 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
||
520 | program_suffix=$ac_optarg ;; |
||
521 | |||
522 | -program-transform-name | --program-transform-name \ |
||
523 | | --program-transform-nam | --program-transform-na \ |
||
524 | | --program-transform-n | --program-transform- \ |
||
525 | | --program-transform | --program-transfor \ |
||
526 | | --program-transfo | --program-transf \ |
||
527 | | --program-trans | --program-tran \ |
||
528 | | --progr-tra | --program-tr | --program-t) |
||
529 | ac_prev=program_transform_name ;; |
||
530 | -program-transform-name=* | --program-transform-name=* \ |
||
531 | | --program-transform-nam=* | --program-transform-na=* \ |
||
532 | | --program-transform-n=* | --program-transform-=* \ |
||
533 | | --program-transform=* | --program-transfor=* \ |
||
534 | | --program-transfo=* | --program-transf=* \ |
||
535 | | --program-trans=* | --program-tran=* \ |
||
536 | | --progr-tra=* | --program-tr=* | --program-t=*) |
||
537 | program_transform_name=$ac_optarg ;; |
||
538 | |||
539 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
||
540 | | -silent | --silent | --silen | --sile | --sil) |
||
541 | silent=yes ;; |
||
542 | |||
543 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
||
544 | ac_prev=sbindir ;; |
||
545 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
||
546 | | --sbi=* | --sb=*) |
||
547 | sbindir=$ac_optarg ;; |
||
548 | |||
549 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
||
550 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
||
551 | | --sharedst | --shareds | --shared | --share | --shar \ |
||
552 | | --sha | --sh) |
||
553 | ac_prev=sharedstatedir ;; |
||
554 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
||
555 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
||
556 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
||
557 | | --sha=* | --sh=*) |
||
558 | sharedstatedir=$ac_optarg ;; |
||
559 | |||
560 | -site | --site | --sit) |
||
561 | ac_prev=site ;; |
||
562 | -site=* | --site=* | --sit=*) |
||
563 | site=$ac_optarg ;; |
||
564 | |||
565 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
||
566 | ac_prev=srcdir ;; |
||
567 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
||
568 | srcdir=$ac_optarg ;; |
||
569 | |||
570 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
||
571 | | --syscon | --sysco | --sysc | --sys | --sy) |
||
572 | ac_prev=sysconfdir ;; |
||
573 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
||
574 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
||
575 | sysconfdir=$ac_optarg ;; |
||
576 | |||
577 | -target | --target | --targe | --targ | --tar | --ta | --t) |
||
578 | ac_prev=target_alias ;; |
||
579 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
||
580 | target_alias=$ac_optarg ;; |
||
581 | |||
582 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
||
583 | verbose=yes ;; |
||
584 | |||
585 | -version | --version | --versio | --versi | --vers | -V) |
||
586 | ac_init_version=: ;; |
||
587 | |||
588 | -with-* | --with-*) |
||
589 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
||
590 | # Reject names that are not valid shell variable names. |
||
591 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
||
592 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
||
593 | { (exit 1); exit 1; }; } |
||
594 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
||
595 | case $ac_option in |
||
596 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
||
597 | *) ac_optarg=yes ;; |
||
598 | esac |
||
599 | eval "with_$ac_package='$ac_optarg'" ;; |
||
600 | |||
601 | -without-* | --without-*) |
||
602 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
||
603 | # Reject names that are not valid shell variable names. |
||
604 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
||
605 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
||
606 | { (exit 1); exit 1; }; } |
||
607 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
||
608 | eval "with_$ac_package=no" ;; |
||
609 | |||
610 | --x) |
||
611 | # Obsolete; use --with-x. |
||
612 | with_x=yes ;; |
||
613 | |||
614 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
||
615 | | --x-incl | --x-inc | --x-in | --x-i) |
||
616 | ac_prev=x_includes ;; |
||
617 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
||
618 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
||
619 | x_includes=$ac_optarg ;; |
||
620 | |||
621 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
||
622 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
||
623 | ac_prev=x_libraries ;; |
||
624 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
||
625 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
||
626 | x_libraries=$ac_optarg ;; |
||
627 | |||
628 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
||
629 | Try \`$0 --help' for more information." >&2 |
||
630 | { (exit 1); exit 1; }; } |
||
631 | ;; |
||
632 | |||
633 | *=*) |
||
634 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
||
635 | # Reject names that are not valid shell variable names. |
||
636 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
||
637 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
||
638 | { (exit 1); exit 1; }; } |
||
639 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
||
640 | eval "$ac_envvar='$ac_optarg'" |
||
641 | export $ac_envvar ;; |
||
642 | |||
643 | *) |
||
644 | # FIXME: should be removed in autoconf 3.0. |
||
645 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
||
646 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
||
647 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
||
648 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
||
649 | ;; |
||
650 | |||
651 | esac |
||
652 | done |
||
653 | |||
654 | if test -n "$ac_prev"; then |
||
655 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
||
656 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
||
657 | { (exit 1); exit 1; }; } |
||
658 | fi |
||
659 | |||
660 | # Be sure to have absolute paths. |
||
661 | for ac_var in exec_prefix prefix |
||
662 | do |
||
663 | eval ac_val=$`echo $ac_var` |
||
664 | case $ac_val in |
||
665 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
||
666 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
||
667 | { (exit 1); exit 1; }; };; |
||
668 | esac |
||
669 | done |
||
670 | |||
671 | # Be sure to have absolute paths. |
||
672 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
||
673 | localstatedir libdir includedir oldincludedir infodir mandir |
||
674 | do |
||
675 | eval ac_val=$`echo $ac_var` |
||
676 | case $ac_val in |
||
677 | [\\/$]* | ?:[\\/]* ) ;; |
||
678 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
||
679 | { (exit 1); exit 1; }; };; |
||
680 | esac |
||
681 | done |
||
682 | |||
683 | # There might be people who depend on the old broken behavior: `$host' |
||
684 | # used to hold the argument of --host etc. |
||
685 | # FIXME: To remove some day. |
||
686 | build=$build_alias |
||
687 | host=$host_alias |
||
688 | target=$target_alias |
||
689 | |||
690 | # FIXME: To remove some day. |
||
691 | if test "x$host_alias" != x; then |
||
692 | if test "x$build_alias" = x; then |
||
693 | cross_compiling=maybe |
||
694 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
||
695 | If a cross compiler is detected then cross compile mode will be used." >&2 |
||
696 | elif test "x$build_alias" != "x$host_alias"; then |
||
697 | cross_compiling=yes |
||
698 | fi |
||
699 | fi |
||
700 | |||
701 | ac_tool_prefix= |
||
702 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
||
703 | |||
704 | test "$silent" = yes && exec 6>/dev/null |
||
705 | |||
706 | |||
707 | # Find the source files, if location was not specified. |
||
708 | if test -z "$srcdir"; then |
||
709 | ac_srcdir_defaulted=yes |
||
710 | # Try the directory containing this script, then its parent. |
||
711 | ac_confdir=`(dirname "$0") 2>/dev/null || |
||
712 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
713 | X"$0" : 'X\(//\)[^/]' \| \ |
||
714 | X"$0" : 'X\(//\)$' \| \ |
||
715 | X"$0" : 'X\(/\)' \| \ |
||
716 | . : '\(.\)' 2>/dev/null || |
||
717 | echo X"$0" | |
||
718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
||
719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
||
720 | /^X\(\/\/\)$/{ s//\1/; q; } |
||
721 | /^X\(\/\).*/{ s//\1/; q; } |
||
722 | s/.*/./; q'` |
||
723 | srcdir=$ac_confdir |
||
724 | if test ! -r $srcdir/$ac_unique_file; then |
||
725 | srcdir=.. |
||
726 | fi |
||
727 | else |
||
728 | ac_srcdir_defaulted=no |
||
729 | fi |
||
730 | if test ! -r $srcdir/$ac_unique_file; then |
||
731 | if test "$ac_srcdir_defaulted" = yes; then |
||
732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
||
733 | { (exit 1); exit 1; }; } |
||
734 | else |
||
735 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
||
736 | { (exit 1); exit 1; }; } |
||
737 | fi |
||
738 | fi |
||
739 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
||
740 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
||
741 | { (exit 1); exit 1; }; } |
||
742 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
||
743 | ac_env_build_alias_set=${build_alias+set} |
||
744 | ac_env_build_alias_value=$build_alias |
||
745 | ac_cv_env_build_alias_set=${build_alias+set} |
||
746 | ac_cv_env_build_alias_value=$build_alias |
||
747 | ac_env_host_alias_set=${host_alias+set} |
||
748 | ac_env_host_alias_value=$host_alias |
||
749 | ac_cv_env_host_alias_set=${host_alias+set} |
||
750 | ac_cv_env_host_alias_value=$host_alias |
||
751 | ac_env_target_alias_set=${target_alias+set} |
||
752 | ac_env_target_alias_value=$target_alias |
||
753 | ac_cv_env_target_alias_set=${target_alias+set} |
||
754 | ac_cv_env_target_alias_value=$target_alias |
||
755 | ac_env_CC_set=${CC+set} |
||
756 | ac_env_CC_value=$CC |
||
757 | ac_cv_env_CC_set=${CC+set} |
||
758 | ac_cv_env_CC_value=$CC |
||
759 | ac_env_CFLAGS_set=${CFLAGS+set} |
||
760 | ac_env_CFLAGS_value=$CFLAGS |
||
761 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
||
762 | ac_cv_env_CFLAGS_value=$CFLAGS |
||
763 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
||
764 | ac_env_LDFLAGS_value=$LDFLAGS |
||
765 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
||
766 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
||
767 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
||
768 | ac_env_CPPFLAGS_value=$CPPFLAGS |
||
769 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
||
770 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
||
771 | ac_env_CXX_set=${CXX+set} |
||
772 | ac_env_CXX_value=$CXX |
||
773 | ac_cv_env_CXX_set=${CXX+set} |
||
774 | ac_cv_env_CXX_value=$CXX |
||
775 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
||
776 | ac_env_CXXFLAGS_value=$CXXFLAGS |
||
777 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
||
778 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
||
779 | ac_env_CPP_set=${CPP+set} |
||
780 | ac_env_CPP_value=$CPP |
||
781 | ac_cv_env_CPP_set=${CPP+set} |
||
782 | ac_cv_env_CPP_value=$CPP |
||
783 | |||
784 | # |
||
785 | # Report the --help message. |
||
786 | # |
||
787 | if test "$ac_init_help" = "long"; then |
||
788 | # Omit some internal or obsolete options to make the list less imposing. |
||
789 | # This message is too long to be a string in the A/UX 3.1 sh. |
||
790 | cat <<_ACEOF |
||
791 | \`configure' configures WIMS 3.62 to adapt to many kinds of systems. |
||
792 | |||
793 | Usage: $0 [OPTION]... [VAR=VALUE]... |
||
794 | |||
795 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
||
796 | VAR=VALUE. See below for descriptions of some of the useful variables. |
||
797 | |||
798 | Defaults for the options are specified in brackets. |
||
799 | |||
800 | Configuration: |
||
801 | -h, --help display this help and exit |
||
802 | --help=short display options specific to this package |
||
803 | --help=recursive display the short help of all the included packages |
||
804 | -V, --version display version information and exit |
||
805 | -q, --quiet, --silent do not print \`checking...' messages |
||
806 | --cache-file=FILE cache test results in FILE [disabled] |
||
807 | -C, --config-cache alias for \`--cache-file=config.cache' |
||
808 | -n, --no-create do not create output files |
||
809 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
||
810 | |||
811 | _ACEOF |
||
812 | |||
813 | cat <<_ACEOF |
||
814 | Installation directories: |
||
815 | --prefix=PREFIX install architecture-independent files in PREFIX |
||
816 | [$ac_default_prefix] |
||
817 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
||
818 | [PREFIX] |
||
819 | |||
820 | By default, \`make install' will install all the files in |
||
821 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
||
822 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
||
823 | for instance \`--prefix=\$HOME'. |
||
824 | |||
825 | For better control, use the options below. |
||
826 | |||
827 | Fine tuning of the installation directories: |
||
828 | --bindir=DIR user executables [EPREFIX/bin] |
||
829 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
||
830 | --libexecdir=DIR program executables [EPREFIX/libexec] |
||
831 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
||
832 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
||
833 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
||
834 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
||
835 | --libdir=DIR object code libraries [EPREFIX/lib] |
||
836 | --includedir=DIR C header files [PREFIX/include] |
||
837 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
||
838 | --infodir=DIR info documentation [PREFIX/info] |
||
839 | --mandir=DIR man documentation [PREFIX/man] |
||
840 | _ACEOF |
||
841 | |||
842 | cat <<\_ACEOF |
||
843 | _ACEOF |
||
844 | fi |
||
845 | |||
846 | if test -n "$ac_init_help"; then |
||
847 | case $ac_init_help in |
||
848 | short | recursive ) echo "Configuration of WIMS 3.62:";; |
||
849 | esac |
||
850 | cat <<\_ACEOF |
||
851 | |||
852 | Optional Packages: |
||
853 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
||
854 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
||
855 | --without-units Don't compile units-filter (units recognition) |
||
856 | --without-chemeq Don't compile chemeq (chemical equation analyzer) |
||
857 | --without-wimsd Don't compile wimsd (standalone http server) |
||
858 | |||
859 | Some influential environment variables: |
||
860 | CC C compiler command |
||
861 | CFLAGS C compiler flags |
||
862 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
||
863 | nonstandard directory <lib dir> |
||
864 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
||
865 | headers in a nonstandard directory <include dir> |
||
866 | CXX C++ compiler command |
||
867 | CXXFLAGS C++ compiler flags |
||
868 | CPP C preprocessor |
||
869 | |||
870 | Use these variables to override the choices made by `configure' or to help |
||
871 | it to find libraries and programs with nonstandard names/locations. |
||
872 | |||
873 | Report bugs to <xiao@unice.fr>. |
||
874 | _ACEOF |
||
875 | fi |
||
876 | |||
877 | if test "$ac_init_help" = "recursive"; then |
||
878 | # If there are subdirs, report their specific --help. |
||
879 | ac_popdir=`pwd` |
||
880 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
||
881 | test -d $ac_dir || continue |
||
882 | ac_builddir=. |
||
883 | |||
884 | if test "$ac_dir" != .; then |
||
885 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
||
886 | # A "../" for each directory in $ac_dir_suffix. |
||
887 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
||
888 | else |
||
889 | ac_dir_suffix= ac_top_builddir= |
||
890 | fi |
||
891 | |||
892 | case $srcdir in |
||
893 | .) # No --srcdir option. We are building in place. |
||
894 | ac_srcdir=. |
||
895 | if test -z "$ac_top_builddir"; then |
||
896 | ac_top_srcdir=. |
||
897 | else |
||
898 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
||
899 | fi ;; |
||
900 | [\\/]* | ?:[\\/]* ) # Absolute path. |
||
901 | ac_srcdir=$srcdir$ac_dir_suffix; |
||
902 | ac_top_srcdir=$srcdir ;; |
||
903 | *) # Relative path. |
||
904 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
||
905 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
||
906 | esac |
||
907 | |||
908 | # Do not use `cd foo && pwd` to compute absolute paths, because |
||
909 | # the directories may not exist. |
||
910 | case `pwd` in |
||
911 | .) ac_abs_builddir="$ac_dir";; |
||
912 | *) |
||
913 | case "$ac_dir" in |
||
914 | .) ac_abs_builddir=`pwd`;; |
||
915 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
||
916 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
||
917 | esac;; |
||
918 | esac |
||
919 | case $ac_abs_builddir in |
||
920 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
||
921 | *) |
||
922 | case ${ac_top_builddir}. in |
||
923 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
||
924 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
||
925 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
||
926 | esac;; |
||
927 | esac |
||
928 | case $ac_abs_builddir in |
||
929 | .) ac_abs_srcdir=$ac_srcdir;; |
||
930 | *) |
||
931 | case $ac_srcdir in |
||
932 | .) ac_abs_srcdir=$ac_abs_builddir;; |
||
933 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
||
934 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
||
935 | esac;; |
||
936 | esac |
||
937 | case $ac_abs_builddir in |
||
938 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
||
939 | *) |
||
940 | case $ac_top_srcdir in |
||
941 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
||
942 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
||
943 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
||
944 | esac;; |
||
945 | esac |
||
946 | |||
947 | cd $ac_dir |
||
948 | # Check for guested configure; otherwise get Cygnus style configure. |
||
949 | if test -f $ac_srcdir/configure.gnu; then |
||
950 | echo |
||
951 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
||
952 | elif test -f $ac_srcdir/configure; then |
||
953 | echo |
||
954 | $SHELL $ac_srcdir/configure --help=recursive |
||
955 | elif test -f $ac_srcdir/configure.ac || |
||
956 | test -f $ac_srcdir/configure.in; then |
||
957 | echo |
||
958 | $ac_configure --help |
||
959 | else |
||
960 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
||
961 | fi |
||
962 | cd "$ac_popdir" |
||
963 | done |
||
964 | fi |
||
965 | |||
966 | test -n "$ac_init_help" && exit 0 |
||
967 | if $ac_init_version; then |
||
968 | cat <<\_ACEOF |
||
969 | WIMS configure 3.62 |
||
970 | generated by GNU Autoconf 2.59 |
||
971 | |||
972 | Copyright (C) 2003 Free Software Foundation, Inc. |
||
973 | This configure script is free software; the Free Software Foundation |
||
974 | gives unlimited permission to copy, distribute and modify it. |
||
975 | _ACEOF |
||
976 | exit 0 |
||
977 | fi |
||
978 | exec 5>config.log |
||
979 | cat >&5 <<_ACEOF |
||
980 | This file contains any messages produced by compilers while |
||
981 | running configure, to aid debugging if configure makes a mistake. |
||
982 | |||
983 | It was created by WIMS $as_me 3.62, which was |
||
984 | generated by GNU Autoconf 2.59. Invocation command line was |
||
985 | |||
986 | $ $0 $@ |
||
987 | |||
988 | _ACEOF |
||
989 | { |
||
990 | cat <<_ASUNAME |
||
991 | ## --------- ## |
||
992 | ## Platform. ## |
||
993 | ## --------- ## |
||
994 | |||
995 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
||
996 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
||
997 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
||
998 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
||
999 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
||
1000 | |||
1001 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
||
1002 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
||
1003 | |||
1004 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
||
1005 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
||
1006 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
||
1007 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
||
1008 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
||
1009 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
||
1010 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
||
1011 | |||
1012 | _ASUNAME |
||
1013 | |||
1014 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
1015 | for as_dir in $PATH |
||
1016 | do |
||
1017 | IFS=$as_save_IFS |
||
1018 | test -z "$as_dir" && as_dir=. |
||
1019 | echo "PATH: $as_dir" |
||
1020 | done |
||
1021 | |||
1022 | } >&5 |
||
1023 | |||
1024 | cat >&5 <<_ACEOF |
||
1025 | |||
1026 | |||
1027 | ## ----------- ## |
||
1028 | ## Core tests. ## |
||
1029 | ## ----------- ## |
||
1030 | |||
1031 | _ACEOF |
||
1032 | |||
1033 | |||
1034 | # Keep a trace of the command line. |
||
1035 | # Strip out --no-create and --no-recursion so they do not pile up. |
||
1036 | # Strip out --silent because we don't want to record it for future runs. |
||
1037 | # Also quote any args containing shell meta-characters. |
||
1038 | # Make two passes to allow for proper duplicate-argument suppression. |
||
1039 | ac_configure_args= |
||
1040 | ac_configure_args0= |
||
1041 | ac_configure_args1= |
||
1042 | ac_sep= |
||
1043 | ac_must_keep_next=false |
||
1044 | for ac_pass in 1 2 |
||
1045 | do |
||
1046 | for ac_arg |
||
1047 | do |
||
1048 | case $ac_arg in |
||
1049 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
||
1050 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
||
1051 | | -silent | --silent | --silen | --sile | --sil) |
||
1052 | continue ;; |
||
1053 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
||
1054 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
||
1055 | esac |
||
1056 | case $ac_pass in |
||
1057 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
||
1058 | 2) |
||
1059 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
||
1060 | if test $ac_must_keep_next = true; then |
||
1061 | ac_must_keep_next=false # Got value, back to normal. |
||
1062 | else |
||
1063 | case $ac_arg in |
||
1064 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
||
1065 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
||
1066 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
||
1067 | | -with-* | --with-* | -without-* | --without-* | --x) |
||
1068 | case "$ac_configure_args0 " in |
||
1069 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
||
1070 | esac |
||
1071 | ;; |
||
1072 | -* ) ac_must_keep_next=true ;; |
||
1073 | esac |
||
1074 | fi |
||
1075 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
||
1076 | # Get rid of the leading space. |
||
1077 | ac_sep=" " |
||
1078 | ;; |
||
1079 | esac |
||
1080 | done |
||
1081 | done |
||
1082 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
||
1083 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
||
1084 | |||
1085 | # When interrupted or exit'd, cleanup temporary files, and complete |
||
1086 | # config.log. We remove comments because anyway the quotes in there |
||
1087 | # would cause problems or look ugly. |
||
1088 | # WARNING: Be sure not to use single quotes in there, as some shells, |
||
1089 | # such as our DU 5.0 friend, will then `close' the trap. |
||
1090 | trap 'exit_status=$? |
||
1091 | # Save into config.log some information that might help in debugging. |
||
1092 | { |
||
1093 | echo |
||
1094 | |||
1095 | cat <<\_ASBOX |
||
1096 | ## ---------------- ## |
||
1097 | ## Cache variables. ## |
||
1098 | ## ---------------- ## |
||
1099 | _ASBOX |
||
1100 | echo |
||
1101 | # The following way of writing the cache mishandles newlines in values, |
||
1102 | { |
||
1103 | (set) 2>&1 | |
||
1104 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
||
1105 | *ac_space=\ *) |
||
1106 | sed -n \ |
||
1107 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
||
1108 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
||
1109 | ;; |
||
1110 | *) |
||
1111 | sed -n \ |
||
1112 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
||
1113 | ;; |
||
1114 | esac; |
||
1115 | } |
||
1116 | echo |
||
1117 | |||
1118 | cat <<\_ASBOX |
||
1119 | ## ----------------- ## |
||
1120 | ## Output variables. ## |
||
1121 | ## ----------------- ## |
||
1122 | _ASBOX |
||
1123 | echo |
||
1124 | for ac_var in $ac_subst_vars |
||
1125 | do |
||
1126 | eval ac_val=$`echo $ac_var` |
||
1127 | echo "$ac_var='"'"'$ac_val'"'"'" |
||
1128 | done | sort |
||
1129 | echo |
||
1130 | |||
1131 | if test -n "$ac_subst_files"; then |
||
1132 | cat <<\_ASBOX |
||
1133 | ## ------------- ## |
||
1134 | ## Output files. ## |
||
1135 | ## ------------- ## |
||
1136 | _ASBOX |
||
1137 | echo |
||
1138 | for ac_var in $ac_subst_files |
||
1139 | do |
||
1140 | eval ac_val=$`echo $ac_var` |
||
1141 | echo "$ac_var='"'"'$ac_val'"'"'" |
||
1142 | done | sort |
||
1143 | echo |
||
1144 | fi |
||
1145 | |||
1146 | if test -s confdefs.h; then |
||
1147 | cat <<\_ASBOX |
||
1148 | ## ----------- ## |
||
1149 | ## confdefs.h. ## |
||
1150 | ## ----------- ## |
||
1151 | _ASBOX |
||
1152 | echo |
||
1153 | sed "/^$/d" confdefs.h | sort |
||
1154 | echo |
||
1155 | fi |
||
1156 | test "$ac_signal" != 0 && |
||
1157 | echo "$as_me: caught signal $ac_signal" |
||
1158 | echo "$as_me: exit $exit_status" |
||
1159 | } >&5 |
||
1160 | rm -f core *.core && |
||
1161 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
||
1162 | exit $exit_status |
||
1163 | ' 0 |
||
1164 | for ac_signal in 1 2 13 15; do |
||
1165 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
||
1166 | done |
||
1167 | ac_signal=0 |
||
1168 | |||
1169 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
||
1170 | rm -rf conftest* confdefs.h |
||
1171 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
||
1172 | echo >confdefs.h |
||
1173 | |||
1174 | # Predefined preprocessor variables. |
||
1175 | |||
1176 | cat >>confdefs.h <<_ACEOF |
||
1177 | #define PACKAGE_NAME "$PACKAGE_NAME" |
||
1178 | _ACEOF |
||
1179 | |||
1180 | |||
1181 | cat >>confdefs.h <<_ACEOF |
||
1182 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
||
1183 | _ACEOF |
||
1184 | |||
1185 | |||
1186 | cat >>confdefs.h <<_ACEOF |
||
1187 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
||
1188 | _ACEOF |
||
1189 | |||
1190 | |||
1191 | cat >>confdefs.h <<_ACEOF |
||
1192 | #define PACKAGE_STRING "$PACKAGE_STRING" |
||
1193 | _ACEOF |
||
1194 | |||
1195 | |||
1196 | cat >>confdefs.h <<_ACEOF |
||
1197 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
||
1198 | _ACEOF |
||
1199 | |||
1200 | |||
1201 | # Let the site file select an alternate cache file if it wants to. |
||
1202 | # Prefer explicitly selected file to automatically selected ones. |
||
1203 | if test -z "$CONFIG_SITE"; then |
||
1204 | if test "x$prefix" != xNONE; then |
||
1205 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
||
1206 | else |
||
1207 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
||
1208 | fi |
||
1209 | fi |
||
1210 | for ac_site_file in $CONFIG_SITE; do |
||
1211 | if test -r "$ac_site_file"; then |
||
1212 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
||
1213 | echo "$as_me: loading site script $ac_site_file" >&6;} |
||
1214 | sed 's/^/| /' "$ac_site_file" >&5 |
||
1215 | . "$ac_site_file" |
||
1216 | fi |
||
1217 | done |
||
1218 | |||
1219 | if test -r "$cache_file"; then |
||
1220 | # Some versions of bash will fail to source /dev/null (special |
||
1221 | # files actually), so we avoid doing that. |
||
1222 | if test -f "$cache_file"; then |
||
1223 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
||
1224 | echo "$as_me: loading cache $cache_file" >&6;} |
||
1225 | case $cache_file in |
||
1226 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
||
1227 | *) . ./$cache_file;; |
||
1228 | esac |
||
1229 | fi |
||
1230 | else |
||
1231 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
||
1232 | echo "$as_me: creating cache $cache_file" >&6;} |
||
1233 | >$cache_file |
||
1234 | fi |
||
1235 | |||
1236 | # Check that the precious variables saved in the cache have kept the same |
||
1237 | # value. |
||
1238 | ac_cache_corrupted=false |
||
1239 | for ac_var in `(set) 2>&1 | |
||
1240 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
||
1241 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
||
1242 | eval ac_new_set=\$ac_env_${ac_var}_set |
||
1243 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
||
1244 | eval ac_new_val="\$ac_env_${ac_var}_value" |
||
1245 | case $ac_old_set,$ac_new_set in |
||
1246 | set,) |
||
1247 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
||
1248 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
||
1249 | ac_cache_corrupted=: ;; |
||
1250 | ,set) |
||
1251 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
||
1252 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
||
1253 | ac_cache_corrupted=: ;; |
||
1254 | ,);; |
||
1255 | *) |
||
1256 | if test "x$ac_old_val" != "x$ac_new_val"; then |
||
1257 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
||
1258 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
||
1259 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
||
1260 | echo "$as_me: former value: $ac_old_val" >&2;} |
||
1261 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
||
1262 | echo "$as_me: current value: $ac_new_val" >&2;} |
||
1263 | ac_cache_corrupted=: |
||
1264 | fi;; |
||
1265 | esac |
||
1266 | # Pass precious variables to config.status. |
||
1267 | if test "$ac_new_set" = set; then |
||
1268 | case $ac_new_val in |
||
1269 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
||
1270 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
||
1271 | *) ac_arg=$ac_var=$ac_new_val ;; |
||
1272 | esac |
||
1273 | case " $ac_configure_args " in |
||
1274 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
||
1275 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
||
1276 | esac |
||
1277 | fi |
||
1278 | done |
||
1279 | if $ac_cache_corrupted; then |
||
1280 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
||
1281 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
||
1282 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
||
1283 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
||
1284 | { (exit 1); exit 1; }; } |
||
1285 | fi |
||
1286 | |||
1287 | ac_ext=c |
||
1288 | ac_cpp='$CPP $CPPFLAGS' |
||
1289 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
1290 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
1291 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
1292 | |||
1293 | |||
1294 | |||
1295 | |||
1296 | |||
1297 | |||
1298 | |||
1299 | |||
1300 | |||
1301 | |||
1302 | |||
1303 | |||
1304 | |||
1305 | |||
1306 | |||
1307 | |||
1308 | |||
1309 | |||
1310 | |||
1311 | |||
1312 | |||
1313 | |||
1314 | |||
1315 | |||
1316 | |||
1317 | |||
1318 | |||
1319 | |||
1320 | ac_config_headers="$ac_config_headers config.h:config.hin" |
||
1321 | |||
1322 | |||
1323 | |||
1324 | |||
1325 | |||
1326 | # Checks for programs. |
||
1327 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
||
1328 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
||
1329 | LN_S=$as_ln_s |
||
1330 | if test "$LN_S" = "ln -s"; then |
||
1331 | echo "$as_me:$LINENO: result: yes" >&5 |
||
1332 | echo "${ECHO_T}yes" >&6 |
||
1333 | else |
||
1334 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
||
1335 | echo "${ECHO_T}no, using $LN_S" >&6 |
||
1336 | fi |
||
1337 | |||
1338 | if test "$LN_S" != "ln -s"; then |
||
1339 | |||
1340 | if test "no" = no; then |
||
1341 | echo |
||
1342 | echo ERROR! Your system does not have symbolic links |
||
1343 | echo WIMS cannot be installed. Please report. |
||
1344 | echo |
||
1345 | exit 1 |
||
1346 | fi |
||
1347 | |||
1348 | fi |
||
1349 | for ac_prog in gawk mawk nawk awk |
||
1350 | do |
||
1351 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
1352 | set dummy $ac_prog; ac_word=$2 |
||
1353 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
1354 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
||
1355 | if test "${ac_cv_prog_AWK+set}" = set; then |
||
1356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
1357 | else |
||
1358 | if test -n "$AWK"; then |
||
1359 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
||
1360 | else |
||
1361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
1362 | for as_dir in $PATH |
||
1363 | do |
||
1364 | IFS=$as_save_IFS |
||
1365 | test -z "$as_dir" && as_dir=. |
||
1366 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
1367 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
1368 | ac_cv_prog_AWK="$ac_prog" |
||
1369 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
1370 | break 2 |
||
1371 | fi |
||
1372 | done |
||
1373 | done |
||
1374 | |||
1375 | fi |
||
1376 | fi |
||
1377 | AWK=$ac_cv_prog_AWK |
||
1378 | if test -n "$AWK"; then |
||
1379 | echo "$as_me:$LINENO: result: $AWK" >&5 |
||
1380 | echo "${ECHO_T}$AWK" >&6 |
||
1381 | else |
||
1382 | echo "$as_me:$LINENO: result: no" >&5 |
||
1383 | echo "${ECHO_T}no" >&6 |
||
1384 | fi |
||
1385 | |||
1386 | test -n "$AWK" && break |
||
1387 | done |
||
1388 | |||
1389 | for ac_prog in 'bison -y' byacc |
||
1390 | do |
||
1391 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
1392 | set dummy $ac_prog; ac_word=$2 |
||
1393 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
1394 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
||
1395 | if test "${ac_cv_prog_YACC+set}" = set; then |
||
1396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
1397 | else |
||
1398 | if test -n "$YACC"; then |
||
1399 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
||
1400 | else |
||
1401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
1402 | for as_dir in $PATH |
||
1403 | do |
||
1404 | IFS=$as_save_IFS |
||
1405 | test -z "$as_dir" && as_dir=. |
||
1406 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
1407 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
1408 | ac_cv_prog_YACC="$ac_prog" |
||
1409 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
1410 | break 2 |
||
1411 | fi |
||
1412 | done |
||
1413 | done |
||
1414 | |||
1415 | fi |
||
1416 | fi |
||
1417 | YACC=$ac_cv_prog_YACC |
||
1418 | if test -n "$YACC"; then |
||
1419 | echo "$as_me:$LINENO: result: $YACC" >&5 |
||
1420 | echo "${ECHO_T}$YACC" >&6 |
||
1421 | else |
||
1422 | echo "$as_me:$LINENO: result: no" >&5 |
||
1423 | echo "${ECHO_T}no" >&6 |
||
1424 | fi |
||
1425 | |||
1426 | test -n "$YACC" && break |
||
1427 | done |
||
1428 | test -n "$YACC" || YACC="yacc" |
||
1429 | |||
1430 | ac_ext=c |
||
1431 | ac_cpp='$CPP $CPPFLAGS' |
||
1432 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
1433 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
1434 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
1435 | if test -n "$ac_tool_prefix"; then |
||
1436 | for ac_prog in gcc cc |
||
1437 | do |
||
1438 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
||
1439 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
||
1440 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
1441 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
||
1442 | if test "${ac_cv_prog_CC+set}" = set; then |
||
1443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
1444 | else |
||
1445 | if test -n "$CC"; then |
||
1446 | ac_cv_prog_CC="$CC" # Let the user override the test. |
||
1447 | else |
||
1448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
1449 | for as_dir in $PATH |
||
1450 | do |
||
1451 | IFS=$as_save_IFS |
||
1452 | test -z "$as_dir" && as_dir=. |
||
1453 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
1454 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
1455 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
||
1456 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
1457 | break 2 |
||
1458 | fi |
||
1459 | done |
||
1460 | done |
||
1461 | |||
1462 | fi |
||
1463 | fi |
||
1464 | CC=$ac_cv_prog_CC |
||
1465 | if test -n "$CC"; then |
||
1466 | echo "$as_me:$LINENO: result: $CC" >&5 |
||
1467 | echo "${ECHO_T}$CC" >&6 |
||
1468 | else |
||
1469 | echo "$as_me:$LINENO: result: no" >&5 |
||
1470 | echo "${ECHO_T}no" >&6 |
||
1471 | fi |
||
1472 | |||
1473 | test -n "$CC" && break |
||
1474 | done |
||
1475 | fi |
||
1476 | if test -z "$CC"; then |
||
1477 | ac_ct_CC=$CC |
||
1478 | for ac_prog in gcc cc |
||
1479 | do |
||
1480 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
1481 | set dummy $ac_prog; ac_word=$2 |
||
1482 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
1483 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
||
1484 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
||
1485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
1486 | else |
||
1487 | if test -n "$ac_ct_CC"; then |
||
1488 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
||
1489 | else |
||
1490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
1491 | for as_dir in $PATH |
||
1492 | do |
||
1493 | IFS=$as_save_IFS |
||
1494 | test -z "$as_dir" && as_dir=. |
||
1495 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
1496 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
1497 | ac_cv_prog_ac_ct_CC="$ac_prog" |
||
1498 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
1499 | break 2 |
||
1500 | fi |
||
1501 | done |
||
1502 | done |
||
1503 | |||
1504 | fi |
||
1505 | fi |
||
1506 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
||
1507 | if test -n "$ac_ct_CC"; then |
||
1508 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
||
1509 | echo "${ECHO_T}$ac_ct_CC" >&6 |
||
1510 | else |
||
1511 | echo "$as_me:$LINENO: result: no" >&5 |
||
1512 | echo "${ECHO_T}no" >&6 |
||
1513 | fi |
||
1514 | |||
1515 | test -n "$ac_ct_CC" && break |
||
1516 | done |
||
1517 | |||
1518 | CC=$ac_ct_CC |
||
1519 | fi |
||
1520 | |||
1521 | |||
1522 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
||
1523 | See \`config.log' for more details." >&5 |
||
1524 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
||
1525 | See \`config.log' for more details." >&2;} |
||
1526 | { (exit 1); exit 1; }; } |
||
1527 | |||
1528 | # Provide some information about the compiler. |
||
1529 | echo "$as_me:$LINENO:" \ |
||
1530 | "checking for C compiler version" >&5 |
||
1531 | ac_compiler=`set X $ac_compile; echo $2` |
||
1532 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
||
1533 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
||
1534 | ac_status=$? |
||
1535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
1536 | (exit $ac_status); } |
||
1537 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
||
1538 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
||
1539 | ac_status=$? |
||
1540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
1541 | (exit $ac_status); } |
||
1542 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
||
1543 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
||
1544 | ac_status=$? |
||
1545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
1546 | (exit $ac_status); } |
||
1547 | |||
1548 | cat >conftest.$ac_ext <<_ACEOF |
||
1549 | /* confdefs.h. */ |
||
1550 | _ACEOF |
||
1551 | cat confdefs.h >>conftest.$ac_ext |
||
1552 | cat >>conftest.$ac_ext <<_ACEOF |
||
1553 | /* end confdefs.h. */ |
||
1554 | |||
1555 | int |
||
1556 | main () |
||
1557 | { |
||
1558 | |||
1559 | ; |
||
1560 | return 0; |
||
1561 | } |
||
1562 | _ACEOF |
||
1563 | ac_clean_files_save=$ac_clean_files |
||
1564 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
||
1565 | # Try to create an executable without -o first, disregard a.out. |
||
1566 | # It will help us diagnose broken compilers, and finding out an intuition |
||
1567 | # of exeext. |
||
1568 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
||
1569 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
||
1570 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
||
1571 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
||
1572 | (eval $ac_link_default) 2>&5 |
||
1573 | ac_status=$? |
||
1574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
1575 | (exit $ac_status); }; then |
||
1576 | # Find the output, starting from the most likely. This scheme is |
||
1577 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
||
1578 | # resort. |
||
1579 | |||
1580 | # Be careful to initialize this variable, since it used to be cached. |
||
1581 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
||
1582 | ac_cv_exeext= |
||
1583 | # b.out is created by i960 compilers. |
||
1584 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
||
1585 | do |
||
1586 | test -f "$ac_file" || continue |
||
1587 | case $ac_file in |
||
1588 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
||
1589 | ;; |
||
1590 | conftest.$ac_ext ) |
||
1591 | # This is the source file. |
||
1592 | ;; |
||
1593 | [ab].out ) |
||
1594 | # We found the default executable, but exeext='' is most |
||
1595 | # certainly right. |
||
1596 | break;; |
||
1597 | *.* ) |
||
1598 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
||
1599 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
||
1600 | # but it would be cool to find out if it's true. Does anybody |
||
1601 | # maintain Libtool? --akim. |
||
1602 | export ac_cv_exeext |
||
1603 | break;; |
||
1604 | * ) |
||
1605 | break;; |
||
1606 | esac |
||
1607 | done |
||
1608 | else |
||
1609 | echo "$as_me: failed program was:" >&5 |
||
1610 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
1611 | |||
1612 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
||
1613 | See \`config.log' for more details." >&5 |
||
1614 | echo "$as_me: error: C compiler cannot create executables |
||
1615 | See \`config.log' for more details." >&2;} |
||
1616 | { (exit 77); exit 77; }; } |
||
1617 | fi |
||
1618 | |||
1619 | ac_exeext=$ac_cv_exeext |
||
1620 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
||
1621 | echo "${ECHO_T}$ac_file" >&6 |
||
1622 | |||
1623 | # Check the compiler produces executables we can run. If not, either |
||
1624 | # the compiler is broken, or we cross compile. |
||
1625 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
||
1626 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
||
1627 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
||
1628 | # If not cross compiling, check that we can run a simple program. |
||
1629 | if test "$cross_compiling" != yes; then |
||
1630 | if { ac_try='./$ac_file' |
||
1631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
1632 | (eval $ac_try) 2>&5 |
||
1633 | ac_status=$? |
||
1634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
1635 | (exit $ac_status); }; }; then |
||
1636 | cross_compiling=no |
||
1637 | else |
||
1638 | if test "$cross_compiling" = maybe; then |
||
1639 | cross_compiling=yes |
||
1640 | else |
||
1641 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
||
1642 | If you meant to cross compile, use \`--host'. |
||
1643 | See \`config.log' for more details." >&5 |
||
1644 | echo "$as_me: error: cannot run C compiled programs. |
||
1645 | If you meant to cross compile, use \`--host'. |
||
1646 | See \`config.log' for more details." >&2;} |
||
1647 | { (exit 1); exit 1; }; } |
||
1648 | fi |
||
1649 | fi |
||
1650 | fi |
||
1651 | echo "$as_me:$LINENO: result: yes" >&5 |
||
1652 | echo "${ECHO_T}yes" >&6 |
||
1653 | |||
1654 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
||
1655 | ac_clean_files=$ac_clean_files_save |
||
1656 | # Check the compiler produces executables we can run. If not, either |
||
1657 | # the compiler is broken, or we cross compile. |
||
1658 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
||
1659 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
||
1660 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
||
1661 | echo "${ECHO_T}$cross_compiling" >&6 |
||
1662 | |||
1663 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
||
1664 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
||
1665 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
1666 | (eval $ac_link) 2>&5 |
||
1667 | ac_status=$? |
||
1668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
1669 | (exit $ac_status); }; then |
||
1670 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
||
1671 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
||
1672 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
||
1673 | # `rm'. |
||
1674 | for ac_file in conftest.exe conftest conftest.*; do |
||
1675 | test -f "$ac_file" || continue |
||
1676 | case $ac_file in |
||
1677 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
||
1678 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
||
1679 | export ac_cv_exeext |
||
1680 | break;; |
||
1681 | * ) break;; |
||
1682 | esac |
||
1683 | done |
||
1684 | else |
||
1685 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
||
1686 | See \`config.log' for more details." >&5 |
||
1687 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
||
1688 | See \`config.log' for more details." >&2;} |
||
1689 | { (exit 1); exit 1; }; } |
||
1690 | fi |
||
1691 | |||
1692 | rm -f conftest$ac_cv_exeext |
||
1693 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
||
1694 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
||
1695 | |||
1696 | rm -f conftest.$ac_ext |
||
1697 | EXEEXT=$ac_cv_exeext |
||
1698 | ac_exeext=$EXEEXT |
||
1699 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
||
1700 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
||
1701 | if test "${ac_cv_objext+set}" = set; then |
||
1702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
1703 | else |
||
1704 | cat >conftest.$ac_ext <<_ACEOF |
||
1705 | /* confdefs.h. */ |
||
1706 | _ACEOF |
||
1707 | cat confdefs.h >>conftest.$ac_ext |
||
1708 | cat >>conftest.$ac_ext <<_ACEOF |
||
1709 | /* end confdefs.h. */ |
||
1710 | |||
1711 | int |
||
1712 | main () |
||
1713 | { |
||
1714 | |||
1715 | ; |
||
1716 | return 0; |
||
1717 | } |
||
1718 | _ACEOF |
||
1719 | rm -f conftest.o conftest.obj |
||
1720 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
1721 | (eval $ac_compile) 2>&5 |
||
1722 | ac_status=$? |
||
1723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
1724 | (exit $ac_status); }; then |
||
1725 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
||
1726 | case $ac_file in |
||
1727 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
||
1728 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
||
1729 | break;; |
||
1730 | esac |
||
1731 | done |
||
1732 | else |
||
1733 | echo "$as_me: failed program was:" >&5 |
||
1734 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
1735 | |||
1736 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
||
1737 | See \`config.log' for more details." >&5 |
||
1738 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
||
1739 | See \`config.log' for more details." >&2;} |
||
1740 | { (exit 1); exit 1; }; } |
||
1741 | fi |
||
1742 | |||
1743 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
||
1744 | fi |
||
1745 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
||
1746 | echo "${ECHO_T}$ac_cv_objext" >&6 |
||
1747 | OBJEXT=$ac_cv_objext |
||
1748 | ac_objext=$OBJEXT |
||
1749 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
||
1750 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
||
1751 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
||
1752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
1753 | else |
||
1754 | cat >conftest.$ac_ext <<_ACEOF |
||
1755 | /* confdefs.h. */ |
||
1756 | _ACEOF |
||
1757 | cat confdefs.h >>conftest.$ac_ext |
||
1758 | cat >>conftest.$ac_ext <<_ACEOF |
||
1759 | /* end confdefs.h. */ |
||
1760 | |||
1761 | int |
||
1762 | main () |
||
1763 | { |
||
1764 | #ifndef __GNUC__ |
||
1765 | choke me |
||
1766 | #endif |
||
1767 | |||
1768 | ; |
||
1769 | return 0; |
||
1770 | } |
||
1771 | _ACEOF |
||
1772 | rm -f conftest.$ac_objext |
||
1773 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
1774 | (eval $ac_compile) 2>conftest.er1 |
||
1775 | ac_status=$? |
||
1776 | grep -v '^ *+' conftest.er1 >conftest.err |
||
1777 | rm -f conftest.er1 |
||
1778 | cat conftest.err >&5 |
||
1779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
1780 | (exit $ac_status); } && |
||
1781 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
1782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
1783 | (eval $ac_try) 2>&5 |
||
1784 | ac_status=$? |
||
1785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
1786 | (exit $ac_status); }; } && |
||
1787 | { ac_try='test -s conftest.$ac_objext' |
||
1788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
1789 | (eval $ac_try) 2>&5 |
||
1790 | ac_status=$? |
||
1791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
1792 | (exit $ac_status); }; }; then |
||
1793 | ac_compiler_gnu=yes |
||
1794 | else |
||
1795 | echo "$as_me: failed program was:" >&5 |
||
1796 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
1797 | |||
1798 | ac_compiler_gnu=no |
||
1799 | fi |
||
1800 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
||
1801 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
||
1802 | |||
1803 | fi |
||
1804 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
||
1805 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
||
1806 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
||
1807 | ac_test_CFLAGS=${CFLAGS+set} |
||
1808 | ac_save_CFLAGS=$CFLAGS |
||
1809 | CFLAGS="-g" |
||
1810 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
||
1811 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
||
1812 | if test "${ac_cv_prog_cc_g+set}" = set; then |
||
1813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
1814 | else |
||
1815 | cat >conftest.$ac_ext <<_ACEOF |
||
1816 | /* confdefs.h. */ |
||
1817 | _ACEOF |
||
1818 | cat confdefs.h >>conftest.$ac_ext |
||
1819 | cat >>conftest.$ac_ext <<_ACEOF |
||
1820 | /* end confdefs.h. */ |
||
1821 | |||
1822 | int |
||
1823 | main () |
||
1824 | { |
||
1825 | |||
1826 | ; |
||
1827 | return 0; |
||
1828 | } |
||
1829 | _ACEOF |
||
1830 | rm -f conftest.$ac_objext |
||
1831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
1832 | (eval $ac_compile) 2>conftest.er1 |
||
1833 | ac_status=$? |
||
1834 | grep -v '^ *+' conftest.er1 >conftest.err |
||
1835 | rm -f conftest.er1 |
||
1836 | cat conftest.err >&5 |
||
1837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
1838 | (exit $ac_status); } && |
||
1839 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
1840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
1841 | (eval $ac_try) 2>&5 |
||
1842 | ac_status=$? |
||
1843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
1844 | (exit $ac_status); }; } && |
||
1845 | { ac_try='test -s conftest.$ac_objext' |
||
1846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
1847 | (eval $ac_try) 2>&5 |
||
1848 | ac_status=$? |
||
1849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
1850 | (exit $ac_status); }; }; then |
||
1851 | ac_cv_prog_cc_g=yes |
||
1852 | else |
||
1853 | echo "$as_me: failed program was:" >&5 |
||
1854 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
1855 | |||
1856 | ac_cv_prog_cc_g=no |
||
1857 | fi |
||
1858 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
||
1859 | fi |
||
1860 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
||
1861 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
||
1862 | if test "$ac_test_CFLAGS" = set; then |
||
1863 | CFLAGS=$ac_save_CFLAGS |
||
1864 | elif test $ac_cv_prog_cc_g = yes; then |
||
1865 | if test "$GCC" = yes; then |
||
1866 | CFLAGS="-g -O2" |
||
1867 | else |
||
1868 | CFLAGS="-g" |
||
1869 | fi |
||
1870 | else |
||
1871 | if test "$GCC" = yes; then |
||
1872 | CFLAGS="-O2" |
||
1873 | else |
||
1874 | CFLAGS= |
||
1875 | fi |
||
1876 | fi |
||
1877 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
||
1878 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
||
1879 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
||
1880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
1881 | else |
||
1882 | ac_cv_prog_cc_stdc=no |
||
1883 | ac_save_CC=$CC |
||
1884 | cat >conftest.$ac_ext <<_ACEOF |
||
1885 | /* confdefs.h. */ |
||
1886 | _ACEOF |
||
1887 | cat confdefs.h >>conftest.$ac_ext |
||
1888 | cat >>conftest.$ac_ext <<_ACEOF |
||
1889 | /* end confdefs.h. */ |
||
1890 | #include <stdarg.h> |
||
1891 | #include <stdio.h> |
||
1892 | #include <sys/types.h> |
||
1893 | #include <sys/stat.h> |
||
1894 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
||
1895 | struct buf { int x; }; |
||
1896 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
||
1897 | static char *e (p, i) |
||
1898 | char **p; |
||
1899 | int i; |
||
1900 | { |
||
1901 | return p[i]; |
||
1902 | } |
||
1903 | static char *f (char * (*g) (char **, int), char **p, ...) |
||
1904 | { |
||
1905 | char *s; |
||
1906 | va_list v; |
||
1907 | va_start (v,p); |
||
1908 | s = g (p, va_arg (v,int)); |
||
1909 | va_end (v); |
||
1910 | return s; |
||
1911 | } |
||
1912 | |||
1913 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
||
1914 | function prototypes and stuff, but not '\xHH' hex character constants. |
||
1915 | These don't provoke an error unfortunately, instead are silently treated |
||
1916 | as 'x'. The following induces an error, until -std1 is added to get |
||
1917 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
||
1918 | array size at least. It's necessary to write '\x00'==0 to get something |
||
1919 | that's true only with -std1. */ |
||
1920 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
||
1921 | |||
1922 | int test (int i, double x); |
||
1923 | struct s1 {int (*f) (int a);}; |
||
1924 | struct s2 {int (*f) (double a);}; |
||
1925 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
||
1926 | int argc; |
||
1927 | char **argv; |
||
1928 | int |
||
1929 | main () |
||
1930 | { |
||
1931 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
||
1932 | ; |
||
1933 | return 0; |
||
1934 | } |
||
1935 | _ACEOF |
||
1936 | # Don't try gcc -ansi; that turns off useful extensions and |
||
1937 | # breaks some systems' header files. |
||
1938 | # AIX -qlanglvl=ansi |
||
1939 | # Ultrix and OSF/1 -std1 |
||
1940 | # HP-UX 10.20 and later -Ae |
||
1941 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
||
1942 | # SVR4 -Xc -D__EXTENSIONS__ |
||
1943 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
||
1944 | do |
||
1945 | CC="$ac_save_CC $ac_arg" |
||
1946 | rm -f conftest.$ac_objext |
||
1947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
1948 | (eval $ac_compile) 2>conftest.er1 |
||
1949 | ac_status=$? |
||
1950 | grep -v '^ *+' conftest.er1 >conftest.err |
||
1951 | rm -f conftest.er1 |
||
1952 | cat conftest.err >&5 |
||
1953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
1954 | (exit $ac_status); } && |
||
1955 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
1956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
1957 | (eval $ac_try) 2>&5 |
||
1958 | ac_status=$? |
||
1959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
1960 | (exit $ac_status); }; } && |
||
1961 | { ac_try='test -s conftest.$ac_objext' |
||
1962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
1963 | (eval $ac_try) 2>&5 |
||
1964 | ac_status=$? |
||
1965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
1966 | (exit $ac_status); }; }; then |
||
1967 | ac_cv_prog_cc_stdc=$ac_arg |
||
1968 | break |
||
1969 | else |
||
1970 | echo "$as_me: failed program was:" >&5 |
||
1971 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
1972 | |||
1973 | fi |
||
1974 | rm -f conftest.err conftest.$ac_objext |
||
1975 | done |
||
1976 | rm -f conftest.$ac_ext conftest.$ac_objext |
||
1977 | CC=$ac_save_CC |
||
1978 | |||
1979 | fi |
||
1980 | |||
1981 | case "x$ac_cv_prog_cc_stdc" in |
||
1982 | x|xno) |
||
1983 | echo "$as_me:$LINENO: result: none needed" >&5 |
||
1984 | echo "${ECHO_T}none needed" >&6 ;; |
||
1985 | *) |
||
1986 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
||
1987 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
||
1988 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
||
1989 | esac |
||
1990 | |||
1991 | # Some people use a C++ compiler to compile C. Since we use `exit', |
||
1992 | # in C++ we need to declare it. In case someone uses the same compiler |
||
1993 | # for both compiling C and C++ we need to have the C++ compiler decide |
||
1994 | # the declaration of exit, since it's the most demanding environment. |
||
1995 | cat >conftest.$ac_ext <<_ACEOF |
||
1996 | #ifndef __cplusplus |
||
1997 | choke me |
||
1998 | #endif |
||
1999 | _ACEOF |
||
2000 | rm -f conftest.$ac_objext |
||
2001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
2002 | (eval $ac_compile) 2>conftest.er1 |
||
2003 | ac_status=$? |
||
2004 | grep -v '^ *+' conftest.er1 >conftest.err |
||
2005 | rm -f conftest.er1 |
||
2006 | cat conftest.err >&5 |
||
2007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2008 | (exit $ac_status); } && |
||
2009 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
2010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
2011 | (eval $ac_try) 2>&5 |
||
2012 | ac_status=$? |
||
2013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2014 | (exit $ac_status); }; } && |
||
2015 | { ac_try='test -s conftest.$ac_objext' |
||
2016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
2017 | (eval $ac_try) 2>&5 |
||
2018 | ac_status=$? |
||
2019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2020 | (exit $ac_status); }; }; then |
||
2021 | for ac_declaration in \ |
||
2022 | '' \ |
||
2023 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
||
2024 | 'extern "C" void std::exit (int); using std::exit;' \ |
||
2025 | 'extern "C" void exit (int) throw ();' \ |
||
2026 | 'extern "C" void exit (int);' \ |
||
2027 | 'void exit (int);' |
||
2028 | do |
||
2029 | cat >conftest.$ac_ext <<_ACEOF |
||
2030 | /* confdefs.h. */ |
||
2031 | _ACEOF |
||
2032 | cat confdefs.h >>conftest.$ac_ext |
||
2033 | cat >>conftest.$ac_ext <<_ACEOF |
||
2034 | /* end confdefs.h. */ |
||
2035 | $ac_declaration |
||
2036 | #include <stdlib.h> |
||
2037 | int |
||
2038 | main () |
||
2039 | { |
||
2040 | exit (42); |
||
2041 | ; |
||
2042 | return 0; |
||
2043 | } |
||
2044 | _ACEOF |
||
2045 | rm -f conftest.$ac_objext |
||
2046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
2047 | (eval $ac_compile) 2>conftest.er1 |
||
2048 | ac_status=$? |
||
2049 | grep -v '^ *+' conftest.er1 >conftest.err |
||
2050 | rm -f conftest.er1 |
||
2051 | cat conftest.err >&5 |
||
2052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2053 | (exit $ac_status); } && |
||
2054 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
2055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
2056 | (eval $ac_try) 2>&5 |
||
2057 | ac_status=$? |
||
2058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2059 | (exit $ac_status); }; } && |
||
2060 | { ac_try='test -s conftest.$ac_objext' |
||
2061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
2062 | (eval $ac_try) 2>&5 |
||
2063 | ac_status=$? |
||
2064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2065 | (exit $ac_status); }; }; then |
||
2066 | : |
||
2067 | else |
||
2068 | echo "$as_me: failed program was:" >&5 |
||
2069 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
2070 | |||
2071 | continue |
||
2072 | fi |
||
2073 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
||
2074 | cat >conftest.$ac_ext <<_ACEOF |
||
2075 | /* confdefs.h. */ |
||
2076 | _ACEOF |
||
2077 | cat confdefs.h >>conftest.$ac_ext |
||
2078 | cat >>conftest.$ac_ext <<_ACEOF |
||
2079 | /* end confdefs.h. */ |
||
2080 | $ac_declaration |
||
2081 | int |
||
2082 | main () |
||
2083 | { |
||
2084 | exit (42); |
||
2085 | ; |
||
2086 | return 0; |
||
2087 | } |
||
2088 | _ACEOF |
||
2089 | rm -f conftest.$ac_objext |
||
2090 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
2091 | (eval $ac_compile) 2>conftest.er1 |
||
2092 | ac_status=$? |
||
2093 | grep -v '^ *+' conftest.er1 >conftest.err |
||
2094 | rm -f conftest.er1 |
||
2095 | cat conftest.err >&5 |
||
2096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2097 | (exit $ac_status); } && |
||
2098 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
2099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
2100 | (eval $ac_try) 2>&5 |
||
2101 | ac_status=$? |
||
2102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2103 | (exit $ac_status); }; } && |
||
2104 | { ac_try='test -s conftest.$ac_objext' |
||
2105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
2106 | (eval $ac_try) 2>&5 |
||
2107 | ac_status=$? |
||
2108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2109 | (exit $ac_status); }; }; then |
||
2110 | break |
||
2111 | else |
||
2112 | echo "$as_me: failed program was:" >&5 |
||
2113 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
2114 | |||
2115 | fi |
||
2116 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
||
2117 | done |
||
2118 | rm -f conftest* |
||
2119 | if test -n "$ac_declaration"; then |
||
2120 | echo '#ifdef __cplusplus' >>confdefs.h |
||
2121 | echo $ac_declaration >>confdefs.h |
||
2122 | echo '#endif' >>confdefs.h |
||
2123 | fi |
||
2124 | |||
2125 | else |
||
2126 | echo "$as_me: failed program was:" >&5 |
||
2127 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
2128 | |||
2129 | fi |
||
2130 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
||
2131 | ac_ext=c |
||
2132 | ac_cpp='$CPP $CPPFLAGS' |
||
2133 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
2134 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
2135 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
2136 | |||
2137 | ac_ext=cc |
||
2138 | ac_cpp='$CXXCPP $CPPFLAGS' |
||
2139 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
2140 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
2141 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
||
2142 | if test -n "$ac_tool_prefix"; then |
||
2143 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
||
2144 | do |
||
2145 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
||
2146 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
||
2147 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
2148 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
||
2149 | if test "${ac_cv_prog_CXX+set}" = set; then |
||
2150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
2151 | else |
||
2152 | if test -n "$CXX"; then |
||
2153 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
||
2154 | else |
||
2155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2156 | for as_dir in $PATH |
||
2157 | do |
||
2158 | IFS=$as_save_IFS |
||
2159 | test -z "$as_dir" && as_dir=. |
||
2160 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2161 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
2162 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
||
2163 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
2164 | break 2 |
||
2165 | fi |
||
2166 | done |
||
2167 | done |
||
2168 | |||
2169 | fi |
||
2170 | fi |
||
2171 | CXX=$ac_cv_prog_CXX |
||
2172 | if test -n "$CXX"; then |
||
2173 | echo "$as_me:$LINENO: result: $CXX" >&5 |
||
2174 | echo "${ECHO_T}$CXX" >&6 |
||
2175 | else |
||
2176 | echo "$as_me:$LINENO: result: no" >&5 |
||
2177 | echo "${ECHO_T}no" >&6 |
||
2178 | fi |
||
2179 | |||
2180 | test -n "$CXX" && break |
||
2181 | done |
||
2182 | fi |
||
2183 | if test -z "$CXX"; then |
||
2184 | ac_ct_CXX=$CXX |
||
2185 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
||
2186 | do |
||
2187 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
2188 | set dummy $ac_prog; ac_word=$2 |
||
2189 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
2190 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
||
2191 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
||
2192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
2193 | else |
||
2194 | if test -n "$ac_ct_CXX"; then |
||
2195 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
||
2196 | else |
||
2197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2198 | for as_dir in $PATH |
||
2199 | do |
||
2200 | IFS=$as_save_IFS |
||
2201 | test -z "$as_dir" && as_dir=. |
||
2202 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2203 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
2204 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
||
2205 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
2206 | break 2 |
||
2207 | fi |
||
2208 | done |
||
2209 | done |
||
2210 | |||
2211 | fi |
||
2212 | fi |
||
2213 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
||
2214 | if test -n "$ac_ct_CXX"; then |
||
2215 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
||
2216 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
||
2217 | else |
||
2218 | echo "$as_me:$LINENO: result: no" >&5 |
||
2219 | echo "${ECHO_T}no" >&6 |
||
2220 | fi |
||
2221 | |||
2222 | test -n "$ac_ct_CXX" && break |
||
2223 | done |
||
2224 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
||
2225 | |||
2226 | CXX=$ac_ct_CXX |
||
2227 | fi |
||
2228 | |||
2229 | |||
2230 | # Provide some information about the compiler. |
||
2231 | echo "$as_me:$LINENO:" \ |
||
2232 | "checking for C++ compiler version" >&5 |
||
2233 | ac_compiler=`set X $ac_compile; echo $2` |
||
2234 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
||
2235 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
||
2236 | ac_status=$? |
||
2237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2238 | (exit $ac_status); } |
||
2239 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
||
2240 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
||
2241 | ac_status=$? |
||
2242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2243 | (exit $ac_status); } |
||
2244 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
||
2245 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
||
2246 | ac_status=$? |
||
2247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2248 | (exit $ac_status); } |
||
2249 | |||
2250 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
||
2251 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
||
2252 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
||
2253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
2254 | else |
||
2255 | cat >conftest.$ac_ext <<_ACEOF |
||
2256 | /* confdefs.h. */ |
||
2257 | _ACEOF |
||
2258 | cat confdefs.h >>conftest.$ac_ext |
||
2259 | cat >>conftest.$ac_ext <<_ACEOF |
||
2260 | /* end confdefs.h. */ |
||
2261 | |||
2262 | int |
||
2263 | main () |
||
2264 | { |
||
2265 | #ifndef __GNUC__ |
||
2266 | choke me |
||
2267 | #endif |
||
2268 | |||
2269 | ; |
||
2270 | return 0; |
||
2271 | } |
||
2272 | _ACEOF |
||
2273 | rm -f conftest.$ac_objext |
||
2274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
2275 | (eval $ac_compile) 2>conftest.er1 |
||
2276 | ac_status=$? |
||
2277 | grep -v '^ *+' conftest.er1 >conftest.err |
||
2278 | rm -f conftest.er1 |
||
2279 | cat conftest.err >&5 |
||
2280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2281 | (exit $ac_status); } && |
||
2282 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
||
2283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
2284 | (eval $ac_try) 2>&5 |
||
2285 | ac_status=$? |
||
2286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2287 | (exit $ac_status); }; } && |
||
2288 | { ac_try='test -s conftest.$ac_objext' |
||
2289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
2290 | (eval $ac_try) 2>&5 |
||
2291 | ac_status=$? |
||
2292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2293 | (exit $ac_status); }; }; then |
||
2294 | ac_compiler_gnu=yes |
||
2295 | else |
||
2296 | echo "$as_me: failed program was:" >&5 |
||
2297 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
2298 | |||
2299 | ac_compiler_gnu=no |
||
2300 | fi |
||
2301 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
||
2302 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
||
2303 | |||
2304 | fi |
||
2305 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
||
2306 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
||
2307 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
||
2308 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
||
2309 | ac_save_CXXFLAGS=$CXXFLAGS |
||
2310 | CXXFLAGS="-g" |
||
2311 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
||
2312 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
||
2313 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
||
2314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
2315 | else |
||
2316 | cat >conftest.$ac_ext <<_ACEOF |
||
2317 | /* confdefs.h. */ |
||
2318 | _ACEOF |
||
2319 | cat confdefs.h >>conftest.$ac_ext |
||
2320 | cat >>conftest.$ac_ext <<_ACEOF |
||
2321 | /* end confdefs.h. */ |
||
2322 | |||
2323 | int |
||
2324 | main () |
||
2325 | { |
||
2326 | |||
2327 | ; |
||
2328 | return 0; |
||
2329 | } |
||
2330 | _ACEOF |
||
2331 | rm -f conftest.$ac_objext |
||
2332 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
2333 | (eval $ac_compile) 2>conftest.er1 |
||
2334 | ac_status=$? |
||
2335 | grep -v '^ *+' conftest.er1 >conftest.err |
||
2336 | rm -f conftest.er1 |
||
2337 | cat conftest.err >&5 |
||
2338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2339 | (exit $ac_status); } && |
||
2340 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
||
2341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
2342 | (eval $ac_try) 2>&5 |
||
2343 | ac_status=$? |
||
2344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2345 | (exit $ac_status); }; } && |
||
2346 | { ac_try='test -s conftest.$ac_objext' |
||
2347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
2348 | (eval $ac_try) 2>&5 |
||
2349 | ac_status=$? |
||
2350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2351 | (exit $ac_status); }; }; then |
||
2352 | ac_cv_prog_cxx_g=yes |
||
2353 | else |
||
2354 | echo "$as_me: failed program was:" >&5 |
||
2355 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
2356 | |||
2357 | ac_cv_prog_cxx_g=no |
||
2358 | fi |
||
2359 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
||
2360 | fi |
||
2361 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
||
2362 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
||
2363 | if test "$ac_test_CXXFLAGS" = set; then |
||
2364 | CXXFLAGS=$ac_save_CXXFLAGS |
||
2365 | elif test $ac_cv_prog_cxx_g = yes; then |
||
2366 | if test "$GXX" = yes; then |
||
2367 | CXXFLAGS="-g -O2" |
||
2368 | else |
||
2369 | CXXFLAGS="-g" |
||
2370 | fi |
||
2371 | else |
||
2372 | if test "$GXX" = yes; then |
||
2373 | CXXFLAGS="-O2" |
||
2374 | else |
||
2375 | CXXFLAGS= |
||
2376 | fi |
||
2377 | fi |
||
2378 | for ac_declaration in \ |
||
2379 | '' \ |
||
2380 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
||
2381 | 'extern "C" void std::exit (int); using std::exit;' \ |
||
2382 | 'extern "C" void exit (int) throw ();' \ |
||
2383 | 'extern "C" void exit (int);' \ |
||
2384 | 'void exit (int);' |
||
2385 | do |
||
2386 | cat >conftest.$ac_ext <<_ACEOF |
||
2387 | /* confdefs.h. */ |
||
2388 | _ACEOF |
||
2389 | cat confdefs.h >>conftest.$ac_ext |
||
2390 | cat >>conftest.$ac_ext <<_ACEOF |
||
2391 | /* end confdefs.h. */ |
||
2392 | $ac_declaration |
||
2393 | #include <stdlib.h> |
||
2394 | int |
||
2395 | main () |
||
2396 | { |
||
2397 | exit (42); |
||
2398 | ; |
||
2399 | return 0; |
||
2400 | } |
||
2401 | _ACEOF |
||
2402 | rm -f conftest.$ac_objext |
||
2403 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
2404 | (eval $ac_compile) 2>conftest.er1 |
||
2405 | ac_status=$? |
||
2406 | grep -v '^ *+' conftest.er1 >conftest.err |
||
2407 | rm -f conftest.er1 |
||
2408 | cat conftest.err >&5 |
||
2409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2410 | (exit $ac_status); } && |
||
2411 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
||
2412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
2413 | (eval $ac_try) 2>&5 |
||
2414 | ac_status=$? |
||
2415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2416 | (exit $ac_status); }; } && |
||
2417 | { ac_try='test -s conftest.$ac_objext' |
||
2418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
2419 | (eval $ac_try) 2>&5 |
||
2420 | ac_status=$? |
||
2421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2422 | (exit $ac_status); }; }; then |
||
2423 | : |
||
2424 | else |
||
2425 | echo "$as_me: failed program was:" >&5 |
||
2426 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
2427 | |||
2428 | continue |
||
2429 | fi |
||
2430 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
||
2431 | cat >conftest.$ac_ext <<_ACEOF |
||
2432 | /* confdefs.h. */ |
||
2433 | _ACEOF |
||
2434 | cat confdefs.h >>conftest.$ac_ext |
||
2435 | cat >>conftest.$ac_ext <<_ACEOF |
||
2436 | /* end confdefs.h. */ |
||
2437 | $ac_declaration |
||
2438 | int |
||
2439 | main () |
||
2440 | { |
||
2441 | exit (42); |
||
2442 | ; |
||
2443 | return 0; |
||
2444 | } |
||
2445 | _ACEOF |
||
2446 | rm -f conftest.$ac_objext |
||
2447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
2448 | (eval $ac_compile) 2>conftest.er1 |
||
2449 | ac_status=$? |
||
2450 | grep -v '^ *+' conftest.er1 >conftest.err |
||
2451 | rm -f conftest.er1 |
||
2452 | cat conftest.err >&5 |
||
2453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2454 | (exit $ac_status); } && |
||
2455 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
||
2456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
2457 | (eval $ac_try) 2>&5 |
||
2458 | ac_status=$? |
||
2459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2460 | (exit $ac_status); }; } && |
||
2461 | { ac_try='test -s conftest.$ac_objext' |
||
2462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
2463 | (eval $ac_try) 2>&5 |
||
2464 | ac_status=$? |
||
2465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2466 | (exit $ac_status); }; }; then |
||
2467 | break |
||
2468 | else |
||
2469 | echo "$as_me: failed program was:" >&5 |
||
2470 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
2471 | |||
2472 | fi |
||
2473 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
||
2474 | done |
||
2475 | rm -f conftest* |
||
2476 | if test -n "$ac_declaration"; then |
||
2477 | echo '#ifdef __cplusplus' >>confdefs.h |
||
2478 | echo $ac_declaration >>confdefs.h |
||
2479 | echo '#endif' >>confdefs.h |
||
2480 | fi |
||
2481 | |||
2482 | ac_ext=c |
||
2483 | ac_cpp='$CPP $CPPFLAGS' |
||
2484 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
2485 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
2486 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
2487 | |||
2488 | ac_ext=c |
||
2489 | ac_cpp='$CPP $CPPFLAGS' |
||
2490 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
2491 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
2492 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
2493 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
||
2494 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
||
2495 | # On Suns, sometimes $CPP names a directory. |
||
2496 | if test -n "$CPP" && test -d "$CPP"; then |
||
2497 | CPP= |
||
2498 | fi |
||
2499 | if test -z "$CPP"; then |
||
2500 | if test "${ac_cv_prog_CPP+set}" = set; then |
||
2501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
2502 | else |
||
2503 | # Double quotes because CPP needs to be expanded |
||
2504 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
||
2505 | do |
||
2506 | ac_preproc_ok=false |
||
2507 | for ac_c_preproc_warn_flag in '' yes |
||
2508 | do |
||
2509 | # Use a header file that comes with gcc, so configuring glibc |
||
2510 | # with a fresh cross-compiler works. |
||
2511 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
2512 | # <limits.h> exists even on freestanding compilers. |
||
2513 | # On the NeXT, cc -E runs the code through the compiler's parser, |
||
2514 | # not just through cpp. "Syntax error" is here to catch this case. |
||
2515 | cat >conftest.$ac_ext <<_ACEOF |
||
2516 | /* confdefs.h. */ |
||
2517 | _ACEOF |
||
2518 | cat confdefs.h >>conftest.$ac_ext |
||
2519 | cat >>conftest.$ac_ext <<_ACEOF |
||
2520 | /* end confdefs.h. */ |
||
2521 | #ifdef __STDC__ |
||
2522 | # include <limits.h> |
||
2523 | #else |
||
2524 | # include <assert.h> |
||
2525 | #endif |
||
2526 | Syntax error |
||
2527 | _ACEOF |
||
2528 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
||
2529 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
||
2530 | ac_status=$? |
||
2531 | grep -v '^ *+' conftest.er1 >conftest.err |
||
2532 | rm -f conftest.er1 |
||
2533 | cat conftest.err >&5 |
||
2534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2535 | (exit $ac_status); } >/dev/null; then |
||
2536 | if test -s conftest.err; then |
||
2537 | ac_cpp_err=$ac_c_preproc_warn_flag |
||
2538 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
||
2539 | else |
||
2540 | ac_cpp_err= |
||
2541 | fi |
||
2542 | else |
||
2543 | ac_cpp_err=yes |
||
2544 | fi |
||
2545 | if test -z "$ac_cpp_err"; then |
||
2546 | : |
||
2547 | else |
||
2548 | echo "$as_me: failed program was:" >&5 |
||
2549 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
2550 | |||
2551 | # Broken: fails on valid input. |
||
2552 | continue |
||
2553 | fi |
||
2554 | rm -f conftest.err conftest.$ac_ext |
||
2555 | |||
2556 | # OK, works on sane cases. Now check whether non-existent headers |
||
2557 | # can be detected and how. |
||
2558 | cat >conftest.$ac_ext <<_ACEOF |
||
2559 | /* confdefs.h. */ |
||
2560 | _ACEOF |
||
2561 | cat confdefs.h >>conftest.$ac_ext |
||
2562 | cat >>conftest.$ac_ext <<_ACEOF |
||
2563 | /* end confdefs.h. */ |
||
2564 | #include <ac_nonexistent.h> |
||
2565 | _ACEOF |
||
2566 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
||
2567 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
||
2568 | ac_status=$? |
||
2569 | grep -v '^ *+' conftest.er1 >conftest.err |
||
2570 | rm -f conftest.er1 |
||
2571 | cat conftest.err >&5 |
||
2572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2573 | (exit $ac_status); } >/dev/null; then |
||
2574 | if test -s conftest.err; then |
||
2575 | ac_cpp_err=$ac_c_preproc_warn_flag |
||
2576 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
||
2577 | else |
||
2578 | ac_cpp_err= |
||
2579 | fi |
||
2580 | else |
||
2581 | ac_cpp_err=yes |
||
2582 | fi |
||
2583 | if test -z "$ac_cpp_err"; then |
||
2584 | # Broken: success on invalid input. |
||
2585 | continue |
||
2586 | else |
||
2587 | echo "$as_me: failed program was:" >&5 |
||
2588 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
2589 | |||
2590 | # Passes both tests. |
||
2591 | ac_preproc_ok=: |
||
2592 | break |
||
2593 | fi |
||
2594 | rm -f conftest.err conftest.$ac_ext |
||
2595 | |||
2596 | done |
||
2597 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
||
2598 | rm -f conftest.err conftest.$ac_ext |
||
2599 | if $ac_preproc_ok; then |
||
2600 | break |
||
2601 | fi |
||
2602 | |||
2603 | done |
||
2604 | ac_cv_prog_CPP=$CPP |
||
2605 | |||
2606 | fi |
||
2607 | CPP=$ac_cv_prog_CPP |
||
2608 | else |
||
2609 | ac_cv_prog_CPP=$CPP |
||
2610 | fi |
||
2611 | echo "$as_me:$LINENO: result: $CPP" >&5 |
||
2612 | echo "${ECHO_T}$CPP" >&6 |
||
2613 | ac_preproc_ok=false |
||
2614 | for ac_c_preproc_warn_flag in '' yes |
||
2615 | do |
||
2616 | # Use a header file that comes with gcc, so configuring glibc |
||
2617 | # with a fresh cross-compiler works. |
||
2618 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
2619 | # <limits.h> exists even on freestanding compilers. |
||
2620 | # On the NeXT, cc -E runs the code through the compiler's parser, |
||
2621 | # not just through cpp. "Syntax error" is here to catch this case. |
||
2622 | cat >conftest.$ac_ext <<_ACEOF |
||
2623 | /* confdefs.h. */ |
||
2624 | _ACEOF |
||
2625 | cat confdefs.h >>conftest.$ac_ext |
||
2626 | cat >>conftest.$ac_ext <<_ACEOF |
||
2627 | /* end confdefs.h. */ |
||
2628 | #ifdef __STDC__ |
||
2629 | # include <limits.h> |
||
2630 | #else |
||
2631 | # include <assert.h> |
||
2632 | #endif |
||
2633 | Syntax error |
||
2634 | _ACEOF |
||
2635 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
||
2636 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
||
2637 | ac_status=$? |
||
2638 | grep -v '^ *+' conftest.er1 >conftest.err |
||
2639 | rm -f conftest.er1 |
||
2640 | cat conftest.err >&5 |
||
2641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2642 | (exit $ac_status); } >/dev/null; then |
||
2643 | if test -s conftest.err; then |
||
2644 | ac_cpp_err=$ac_c_preproc_warn_flag |
||
2645 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
||
2646 | else |
||
2647 | ac_cpp_err= |
||
2648 | fi |
||
2649 | else |
||
2650 | ac_cpp_err=yes |
||
2651 | fi |
||
2652 | if test -z "$ac_cpp_err"; then |
||
2653 | : |
||
2654 | else |
||
2655 | echo "$as_me: failed program was:" >&5 |
||
2656 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
2657 | |||
2658 | # Broken: fails on valid input. |
||
2659 | continue |
||
2660 | fi |
||
2661 | rm -f conftest.err conftest.$ac_ext |
||
2662 | |||
2663 | # OK, works on sane cases. Now check whether non-existent headers |
||
2664 | # can be detected and how. |
||
2665 | cat >conftest.$ac_ext <<_ACEOF |
||
2666 | /* confdefs.h. */ |
||
2667 | _ACEOF |
||
2668 | cat confdefs.h >>conftest.$ac_ext |
||
2669 | cat >>conftest.$ac_ext <<_ACEOF |
||
2670 | /* end confdefs.h. */ |
||
2671 | #include <ac_nonexistent.h> |
||
2672 | _ACEOF |
||
2673 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
||
2674 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
||
2675 | ac_status=$? |
||
2676 | grep -v '^ *+' conftest.er1 >conftest.err |
||
2677 | rm -f conftest.er1 |
||
2678 | cat conftest.err >&5 |
||
2679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2680 | (exit $ac_status); } >/dev/null; then |
||
2681 | if test -s conftest.err; then |
||
2682 | ac_cpp_err=$ac_c_preproc_warn_flag |
||
2683 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
||
2684 | else |
||
2685 | ac_cpp_err= |
||
2686 | fi |
||
2687 | else |
||
2688 | ac_cpp_err=yes |
||
2689 | fi |
||
2690 | if test -z "$ac_cpp_err"; then |
||
2691 | # Broken: success on invalid input. |
||
2692 | continue |
||
2693 | else |
||
2694 | echo "$as_me: failed program was:" >&5 |
||
2695 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
2696 | |||
2697 | # Passes both tests. |
||
2698 | ac_preproc_ok=: |
||
2699 | break |
||
2700 | fi |
||
2701 | rm -f conftest.err conftest.$ac_ext |
||
2702 | |||
2703 | done |
||
2704 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
||
2705 | rm -f conftest.err conftest.$ac_ext |
||
2706 | if $ac_preproc_ok; then |
||
2707 | : |
||
2708 | else |
||
2709 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
||
2710 | See \`config.log' for more details." >&5 |
||
2711 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
||
2712 | See \`config.log' for more details." >&2;} |
||
2713 | { (exit 1); exit 1; }; } |
||
2714 | fi |
||
2715 | |||
2716 | ac_ext=c |
||
2717 | ac_cpp='$CPP $CPPFLAGS' |
||
2718 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
||
2719 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
||
2720 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
||
2721 | |||
2722 | |||
2723 | for ac_prog in flex lex |
||
2724 | do |
||
2725 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
||
2726 | set dummy $ac_prog; ac_word=$2 |
||
2727 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
2728 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
||
2729 | if test "${ac_cv_prog_LEX+set}" = set; then |
||
2730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
2731 | else |
||
2732 | if test -n "$LEX"; then |
||
2733 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
||
2734 | else |
||
2735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
2736 | for as_dir in $PATH |
||
2737 | do |
||
2738 | IFS=$as_save_IFS |
||
2739 | test -z "$as_dir" && as_dir=. |
||
2740 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
2741 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
2742 | ac_cv_prog_LEX="$ac_prog" |
||
2743 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
2744 | break 2 |
||
2745 | fi |
||
2746 | done |
||
2747 | done |
||
2748 | |||
2749 | fi |
||
2750 | fi |
||
2751 | LEX=$ac_cv_prog_LEX |
||
2752 | if test -n "$LEX"; then |
||
2753 | echo "$as_me:$LINENO: result: $LEX" >&5 |
||
2754 | echo "${ECHO_T}$LEX" >&6 |
||
2755 | else |
||
2756 | echo "$as_me:$LINENO: result: no" >&5 |
||
2757 | echo "${ECHO_T}no" >&6 |
||
2758 | fi |
||
2759 | |||
2760 | test -n "$LEX" && break |
||
2761 | done |
||
2762 | test -n "$LEX" || LEX=":" |
||
2763 | |||
2764 | if test -z "$LEXLIB" |
||
2765 | then |
||
2766 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
||
2767 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
||
2768 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
||
2769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
2770 | else |
||
2771 | ac_check_lib_save_LIBS=$LIBS |
||
2772 | LIBS="-lfl $LIBS" |
||
2773 | cat >conftest.$ac_ext <<_ACEOF |
||
2774 | /* confdefs.h. */ |
||
2775 | _ACEOF |
||
2776 | cat confdefs.h >>conftest.$ac_ext |
||
2777 | cat >>conftest.$ac_ext <<_ACEOF |
||
2778 | /* end confdefs.h. */ |
||
2779 | |||
2780 | /* Override any gcc2 internal prototype to avoid an error. */ |
||
2781 | #ifdef __cplusplus |
||
2782 | extern "C" |
||
2783 | #endif |
||
2784 | /* We use char because int might match the return type of a gcc2 |
||
2785 | builtin and then its argument prototype would still apply. */ |
||
2786 | char yywrap (); |
||
2787 | int |
||
2788 | main () |
||
2789 | { |
||
2790 | yywrap (); |
||
2791 | ; |
||
2792 | return 0; |
||
2793 | } |
||
2794 | _ACEOF |
||
2795 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
2796 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
2797 | (eval $ac_link) 2>conftest.er1 |
||
2798 | ac_status=$? |
||
2799 | grep -v '^ *+' conftest.er1 >conftest.err |
||
2800 | rm -f conftest.er1 |
||
2801 | cat conftest.err >&5 |
||
2802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2803 | (exit $ac_status); } && |
||
2804 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
2805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
2806 | (eval $ac_try) 2>&5 |
||
2807 | ac_status=$? |
||
2808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2809 | (exit $ac_status); }; } && |
||
2810 | { ac_try='test -s conftest$ac_exeext' |
||
2811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
2812 | (eval $ac_try) 2>&5 |
||
2813 | ac_status=$? |
||
2814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2815 | (exit $ac_status); }; }; then |
||
2816 | ac_cv_lib_fl_yywrap=yes |
||
2817 | else |
||
2818 | echo "$as_me: failed program was:" >&5 |
||
2819 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
2820 | |||
2821 | ac_cv_lib_fl_yywrap=no |
||
2822 | fi |
||
2823 | rm -f conftest.err conftest.$ac_objext \ |
||
2824 | conftest$ac_exeext conftest.$ac_ext |
||
2825 | LIBS=$ac_check_lib_save_LIBS |
||
2826 | fi |
||
2827 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
||
2828 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
||
2829 | if test $ac_cv_lib_fl_yywrap = yes; then |
||
2830 | LEXLIB="-lfl" |
||
2831 | else |
||
2832 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
||
2833 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
||
2834 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
||
2835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
2836 | else |
||
2837 | ac_check_lib_save_LIBS=$LIBS |
||
2838 | LIBS="-ll $LIBS" |
||
2839 | cat >conftest.$ac_ext <<_ACEOF |
||
2840 | /* confdefs.h. */ |
||
2841 | _ACEOF |
||
2842 | cat confdefs.h >>conftest.$ac_ext |
||
2843 | cat >>conftest.$ac_ext <<_ACEOF |
||
2844 | /* end confdefs.h. */ |
||
2845 | |||
2846 | /* Override any gcc2 internal prototype to avoid an error. */ |
||
2847 | #ifdef __cplusplus |
||
2848 | extern "C" |
||
2849 | #endif |
||
2850 | /* We use char because int might match the return type of a gcc2 |
||
2851 | builtin and then its argument prototype would still apply. */ |
||
2852 | char yywrap (); |
||
2853 | int |
||
2854 | main () |
||
2855 | { |
||
2856 | yywrap (); |
||
2857 | ; |
||
2858 | return 0; |
||
2859 | } |
||
2860 | _ACEOF |
||
2861 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
2862 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
2863 | (eval $ac_link) 2>conftest.er1 |
||
2864 | ac_status=$? |
||
2865 | grep -v '^ *+' conftest.er1 >conftest.err |
||
2866 | rm -f conftest.er1 |
||
2867 | cat conftest.err >&5 |
||
2868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2869 | (exit $ac_status); } && |
||
2870 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
2871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
2872 | (eval $ac_try) 2>&5 |
||
2873 | ac_status=$? |
||
2874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2875 | (exit $ac_status); }; } && |
||
2876 | { ac_try='test -s conftest$ac_exeext' |
||
2877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
2878 | (eval $ac_try) 2>&5 |
||
2879 | ac_status=$? |
||
2880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2881 | (exit $ac_status); }; }; then |
||
2882 | ac_cv_lib_l_yywrap=yes |
||
2883 | else |
||
2884 | echo "$as_me: failed program was:" >&5 |
||
2885 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
2886 | |||
2887 | ac_cv_lib_l_yywrap=no |
||
2888 | fi |
||
2889 | rm -f conftest.err conftest.$ac_objext \ |
||
2890 | conftest$ac_exeext conftest.$ac_ext |
||
2891 | LIBS=$ac_check_lib_save_LIBS |
||
2892 | fi |
||
2893 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
||
2894 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
||
2895 | if test $ac_cv_lib_l_yywrap = yes; then |
||
2896 | LEXLIB="-ll" |
||
2897 | fi |
||
2898 | |||
2899 | fi |
||
2900 | |||
2901 | fi |
||
2902 | |||
2903 | if test "x$LEX" != "x:"; then |
||
2904 | echo "$as_me:$LINENO: checking lex output file root" >&5 |
||
2905 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
||
2906 | if test "${ac_cv_prog_lex_root+set}" = set; then |
||
2907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
2908 | else |
||
2909 | # The minimal lex program is just a single line: %%. But some broken lexes |
||
2910 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
||
2911 | cat >conftest.l <<_ACEOF |
||
2912 | %% |
||
2913 | %% |
||
2914 | _ACEOF |
||
2915 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
||
2916 | (eval $LEX conftest.l) 2>&5 |
||
2917 | ac_status=$? |
||
2918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2919 | (exit $ac_status); } |
||
2920 | if test -f lex.yy.c; then |
||
2921 | ac_cv_prog_lex_root=lex.yy |
||
2922 | elif test -f lexyy.c; then |
||
2923 | ac_cv_prog_lex_root=lexyy |
||
2924 | else |
||
2925 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
||
2926 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
||
2927 | { (exit 1); exit 1; }; } |
||
2928 | fi |
||
2929 | fi |
||
2930 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
||
2931 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
||
2932 | rm -f conftest.l |
||
2933 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
||
2934 | |||
2935 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
||
2936 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
||
2937 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
||
2938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
2939 | else |
||
2940 | # POSIX says lex can declare yytext either as a pointer or an array; the |
||
2941 | # default is implementation-dependent. Figure out which it is, since |
||
2942 | # not all implementations provide the %pointer and %array declarations. |
||
2943 | ac_cv_prog_lex_yytext_pointer=no |
||
2944 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
||
2945 | ac_save_LIBS=$LIBS |
||
2946 | LIBS="$LIBS $LEXLIB" |
||
2947 | cat >conftest.$ac_ext <<_ACEOF |
||
2948 | `cat $LEX_OUTPUT_ROOT.c` |
||
2949 | _ACEOF |
||
2950 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
2951 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
2952 | (eval $ac_link) 2>conftest.er1 |
||
2953 | ac_status=$? |
||
2954 | grep -v '^ *+' conftest.er1 >conftest.err |
||
2955 | rm -f conftest.er1 |
||
2956 | cat conftest.err >&5 |
||
2957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2958 | (exit $ac_status); } && |
||
2959 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
2960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
2961 | (eval $ac_try) 2>&5 |
||
2962 | ac_status=$? |
||
2963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2964 | (exit $ac_status); }; } && |
||
2965 | { ac_try='test -s conftest$ac_exeext' |
||
2966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
2967 | (eval $ac_try) 2>&5 |
||
2968 | ac_status=$? |
||
2969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
2970 | (exit $ac_status); }; }; then |
||
2971 | ac_cv_prog_lex_yytext_pointer=yes |
||
2972 | else |
||
2973 | echo "$as_me: failed program was:" >&5 |
||
2974 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
2975 | |||
2976 | fi |
||
2977 | rm -f conftest.err conftest.$ac_objext \ |
||
2978 | conftest$ac_exeext conftest.$ac_ext |
||
2979 | LIBS=$ac_save_LIBS |
||
2980 | rm -f "${LEX_OUTPUT_ROOT}.c" |
||
2981 | |||
2982 | fi |
||
2983 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
||
2984 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
||
2985 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
||
2986 | |||
2987 | cat >>confdefs.h <<\_ACEOF |
||
2988 | #define YYTEXT_POINTER 1 |
||
2989 | _ACEOF |
||
2990 | |||
2991 | fi |
||
2992 | |||
2993 | fi |
||
2994 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
||
2995 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
||
2996 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
||
2997 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
||
2998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
2999 | else |
||
3000 | cat >conftest.make <<\_ACEOF |
||
3001 | all: |
||
3002 | @echo 'ac_maketemp="$(MAKE)"' |
||
3003 | _ACEOF |
||
3004 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
||
3005 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
||
3006 | if test -n "$ac_maketemp"; then |
||
3007 | eval ac_cv_prog_make_${ac_make}_set=yes |
||
3008 | else |
||
3009 | eval ac_cv_prog_make_${ac_make}_set=no |
||
3010 | fi |
||
3011 | rm -f conftest.make |
||
3012 | fi |
||
3013 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
||
3014 | echo "$as_me:$LINENO: result: yes" >&5 |
||
3015 | echo "${ECHO_T}yes" >&6 |
||
3016 | SET_MAKE= |
||
3017 | else |
||
3018 | echo "$as_me:$LINENO: result: no" >&5 |
||
3019 | echo "${ECHO_T}no" >&6 |
||
3020 | SET_MAKE="MAKE=${MAKE-make}" |
||
3021 | fi |
||
3022 | |||
3023 | if test -n "$ac_tool_prefix"; then |
||
3024 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
||
3025 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
||
3026 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
3027 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
||
3028 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
||
3029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
3030 | else |
||
3031 | if test -n "$RANLIB"; then |
||
3032 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
||
3033 | else |
||
3034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
3035 | for as_dir in $PATH |
||
3036 | do |
||
3037 | IFS=$as_save_IFS |
||
3038 | test -z "$as_dir" && as_dir=. |
||
3039 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
3040 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
3041 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
||
3042 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
3043 | break 2 |
||
3044 | fi |
||
3045 | done |
||
3046 | done |
||
3047 | |||
3048 | fi |
||
3049 | fi |
||
3050 | RANLIB=$ac_cv_prog_RANLIB |
||
3051 | if test -n "$RANLIB"; then |
||
3052 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
||
3053 | echo "${ECHO_T}$RANLIB" >&6 |
||
3054 | else |
||
3055 | echo "$as_me:$LINENO: result: no" >&5 |
||
3056 | echo "${ECHO_T}no" >&6 |
||
3057 | fi |
||
3058 | |||
3059 | fi |
||
3060 | if test -z "$ac_cv_prog_RANLIB"; then |
||
3061 | ac_ct_RANLIB=$RANLIB |
||
3062 | # Extract the first word of "ranlib", so it can be a program name with args. |
||
3063 | set dummy ranlib; ac_word=$2 |
||
3064 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
3065 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
||
3066 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
||
3067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
3068 | else |
||
3069 | if test -n "$ac_ct_RANLIB"; then |
||
3070 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
||
3071 | else |
||
3072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
3073 | for as_dir in $PATH |
||
3074 | do |
||
3075 | IFS=$as_save_IFS |
||
3076 | test -z "$as_dir" && as_dir=. |
||
3077 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
3078 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
3079 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
||
3080 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
3081 | break 2 |
||
3082 | fi |
||
3083 | done |
||
3084 | done |
||
3085 | |||
3086 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
||
3087 | fi |
||
3088 | fi |
||
3089 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
||
3090 | if test -n "$ac_ct_RANLIB"; then |
||
3091 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
||
3092 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
||
3093 | else |
||
3094 | echo "$as_me:$LINENO: result: no" >&5 |
||
3095 | echo "${ECHO_T}no" >&6 |
||
3096 | fi |
||
3097 | |||
3098 | RANLIB=$ac_ct_RANLIB |
||
3099 | else |
||
3100 | RANLIB="$ac_cv_prog_RANLIB" |
||
3101 | fi |
||
3102 | |||
3103 | # Extract the first word of "strip", so it can be a program name with args. |
||
3104 | set dummy strip; ac_word=$2 |
||
3105 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
3106 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
||
3107 | if test "${ac_cv_prog_STRIP+set}" = set; then |
||
3108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
3109 | else |
||
3110 | if test -n "$STRIP"; then |
||
3111 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
||
3112 | else |
||
3113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
3114 | for as_dir in $PATH |
||
3115 | do |
||
3116 | IFS=$as_save_IFS |
||
3117 | test -z "$as_dir" && as_dir=. |
||
3118 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
3119 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
3120 | ac_cv_prog_STRIP="strip" |
||
3121 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
3122 | break 2 |
||
3123 | fi |
||
3124 | done |
||
3125 | done |
||
3126 | |||
3127 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
||
3128 | fi |
||
3129 | fi |
||
3130 | STRIP=$ac_cv_prog_STRIP |
||
3131 | if test -n "$STRIP"; then |
||
3132 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
||
3133 | echo "${ECHO_T}$STRIP" >&6 |
||
3134 | else |
||
3135 | echo "$as_me:$LINENO: result: no" >&5 |
||
3136 | echo "${ECHO_T}no" >&6 |
||
3137 | fi |
||
3138 | |||
3139 | |||
3140 | |||
3141 | # Extract the first word of "tex", so it can be a program name with args. |
||
3142 | set dummy tex; ac_word=$2 |
||
3143 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
||
3144 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
||
3145 | if test "${ac_cv_path_TEX+set}" = set; then |
||
3146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
3147 | else |
||
3148 | case $TEX in |
||
3149 | [\\/]* | ?:[\\/]*) |
||
3150 | ac_cv_path_TEX="$TEX" # Let the user override the test with a path. |
||
3151 | ;; |
||
3152 | *) |
||
3153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
3154 | for as_dir in $PATH |
||
3155 | do |
||
3156 | IFS=$as_save_IFS |
||
3157 | test -z "$as_dir" && as_dir=. |
||
3158 | for ac_exec_ext in '' $ac_executable_extensions; do |
||
3159 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
||
3160 | ac_cv_path_TEX="$as_dir/$ac_word$ac_exec_ext" |
||
3161 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
||
3162 | break 2 |
||
3163 | fi |
||
3164 | done |
||
3165 | done |
||
3166 | |||
3167 | ;; |
||
3168 | esac |
||
3169 | fi |
||
3170 | TEX=$ac_cv_path_TEX |
||
3171 | |||
3172 | if test -n "$TEX"; then |
||
3173 | echo "$as_me:$LINENO: result: $TEX" >&5 |
||
3174 | echo "${ECHO_T}$TEX" >&6 |
||
3175 | else |
||
3176 | echo "$as_me:$LINENO: result: no" >&5 |
||
3177 | echo "${ECHO_T}no" >&6 |
||
3178 | fi |
||
3179 | |||
3180 | if test -z "`eval echo '$'TEX`"; then |
||
3181 | echo ERROR: WIMS requires TeX |
||
3182 | echo Please install this package then restart configure. |
||
3183 | exit 1 |
||
3184 | fi |
||
3185 | |||
3186 | #WIMS_NEED([GP], [gp], [Pari/GP]) |
||
3187 | #WIMS_NEED([CONVERT], [convert], [ImageMagick]) |
||
3188 | |||
3189 | # Checks for libraries. |
||
3190 | SAVE=$LIBS |
||
3191 | |||
3192 | echo "$as_me:$LINENO: checking for cos in -lm" >&5 |
||
3193 | echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6 |
||
3194 | if test "${ac_cv_lib_m_cos+set}" = set; then |
||
3195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
3196 | else |
||
3197 | ac_check_lib_save_LIBS=$LIBS |
||
3198 | LIBS="-lm $LIBS" |
||
3199 | cat >conftest.$ac_ext <<_ACEOF |
||
3200 | /* confdefs.h. */ |
||
3201 | _ACEOF |
||
3202 | cat confdefs.h >>conftest.$ac_ext |
||
3203 | cat >>conftest.$ac_ext <<_ACEOF |
||
3204 | /* end confdefs.h. */ |
||
3205 | |||
3206 | /* Override any gcc2 internal prototype to avoid an error. */ |
||
3207 | #ifdef __cplusplus |
||
3208 | extern "C" |
||
3209 | #endif |
||
3210 | /* We use char because int might match the return type of a gcc2 |
||
3211 | builtin and then its argument prototype would still apply. */ |
||
3212 | char cos (); |
||
3213 | int |
||
3214 | main () |
||
3215 | { |
||
3216 | cos (); |
||
3217 | ; |
||
3218 | return 0; |
||
3219 | } |
||
3220 | _ACEOF |
||
3221 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
3222 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
3223 | (eval $ac_link) 2>conftest.er1 |
||
3224 | ac_status=$? |
||
3225 | grep -v '^ *+' conftest.er1 >conftest.err |
||
3226 | rm -f conftest.er1 |
||
3227 | cat conftest.err >&5 |
||
3228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3229 | (exit $ac_status); } && |
||
3230 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
3231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
3232 | (eval $ac_try) 2>&5 |
||
3233 | ac_status=$? |
||
3234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3235 | (exit $ac_status); }; } && |
||
3236 | { ac_try='test -s conftest$ac_exeext' |
||
3237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
3238 | (eval $ac_try) 2>&5 |
||
3239 | ac_status=$? |
||
3240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3241 | (exit $ac_status); }; }; then |
||
3242 | ac_cv_lib_m_cos=yes |
||
3243 | else |
||
3244 | echo "$as_me: failed program was:" >&5 |
||
3245 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
3246 | |||
3247 | ac_cv_lib_m_cos=no |
||
3248 | fi |
||
3249 | rm -f conftest.err conftest.$ac_objext \ |
||
3250 | conftest$ac_exeext conftest.$ac_ext |
||
3251 | LIBS=$ac_check_lib_save_LIBS |
||
3252 | fi |
||
3253 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5 |
||
3254 | echo "${ECHO_T}$ac_cv_lib_m_cos" >&6 |
||
3255 | if test $ac_cv_lib_m_cos = yes; then |
||
3256 | cat >>confdefs.h <<_ACEOF |
||
3257 | #define HAVE_LIBM 1 |
||
3258 | _ACEOF |
||
3259 | |||
3260 | LIBS="-lm $LIBS" |
||
3261 | |||
3262 | fi |
||
3263 | |||
3264 | |||
3265 | |||
3266 | |||
3267 | |||
3268 | for ac_func in floor pow rint sqrt |
||
3269 | do |
||
3270 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
3271 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
||
3272 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
||
3273 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
||
3274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
3275 | else |
||
3276 | cat >conftest.$ac_ext <<_ACEOF |
||
3277 | /* confdefs.h. */ |
||
3278 | _ACEOF |
||
3279 | cat confdefs.h >>conftest.$ac_ext |
||
3280 | cat >>conftest.$ac_ext <<_ACEOF |
||
3281 | /* end confdefs.h. */ |
||
3282 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
||
3283 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
||
3284 | #define $ac_func innocuous_$ac_func |
||
3285 | |||
3286 | /* System header to define __stub macros and hopefully few prototypes, |
||
3287 | which can conflict with char $ac_func (); below. |
||
3288 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
3289 | <limits.h> exists even on freestanding compilers. */ |
||
3290 | |||
3291 | #ifdef __STDC__ |
||
3292 | # include <limits.h> |
||
3293 | #else |
||
3294 | # include <assert.h> |
||
3295 | #endif |
||
3296 | |||
3297 | #undef $ac_func |
||
3298 | |||
3299 | /* Override any gcc2 internal prototype to avoid an error. */ |
||
3300 | #ifdef __cplusplus |
||
3301 | extern "C" |
||
3302 | { |
||
3303 | #endif |
||
3304 | /* We use char because int might match the return type of a gcc2 |
||
3305 | builtin and then its argument prototype would still apply. */ |
||
3306 | char $ac_func (); |
||
3307 | /* The GNU C library defines this for functions which it implements |
||
3308 | to always fail with ENOSYS. Some functions are actually named |
||
3309 | something starting with __ and the normal name is an alias. */ |
||
3310 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
||
3311 | choke me |
||
3312 | #else |
||
3313 | char (*f) () = $ac_func; |
||
3314 | #endif |
||
3315 | #ifdef __cplusplus |
||
3316 | } |
||
3317 | #endif |
||
3318 | |||
3319 | int |
||
3320 | main () |
||
3321 | { |
||
3322 | return f != $ac_func; |
||
3323 | ; |
||
3324 | return 0; |
||
3325 | } |
||
3326 | _ACEOF |
||
3327 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
3328 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
3329 | (eval $ac_link) 2>conftest.er1 |
||
3330 | ac_status=$? |
||
3331 | grep -v '^ *+' conftest.er1 >conftest.err |
||
3332 | rm -f conftest.er1 |
||
3333 | cat conftest.err >&5 |
||
3334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3335 | (exit $ac_status); } && |
||
3336 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
3337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
3338 | (eval $ac_try) 2>&5 |
||
3339 | ac_status=$? |
||
3340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3341 | (exit $ac_status); }; } && |
||
3342 | { ac_try='test -s conftest$ac_exeext' |
||
3343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
3344 | (eval $ac_try) 2>&5 |
||
3345 | ac_status=$? |
||
3346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3347 | (exit $ac_status); }; }; then |
||
3348 | eval "$as_ac_var=yes" |
||
3349 | else |
||
3350 | echo "$as_me: failed program was:" >&5 |
||
3351 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
3352 | |||
3353 | eval "$as_ac_var=no" |
||
3354 | fi |
||
3355 | rm -f conftest.err conftest.$ac_objext \ |
||
3356 | conftest$ac_exeext conftest.$ac_ext |
||
3357 | fi |
||
3358 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
||
3359 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
||
3360 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
||
3361 | cat >>confdefs.h <<_ACEOF |
||
3362 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
||
3363 | _ACEOF |
||
3364 | |||
3365 | fi |
||
3366 | done |
||
3367 | |||
3368 | |||
3369 | LIBS=$SAVE |
||
3370 | |||
3371 | echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 |
||
3372 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 |
||
3373 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then |
||
3374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
3375 | else |
||
3376 | ac_check_lib_save_LIBS=$LIBS |
||
3377 | LIBS="-lcrypt $LIBS" |
||
3378 | cat >conftest.$ac_ext <<_ACEOF |
||
3379 | /* confdefs.h. */ |
||
3380 | _ACEOF |
||
3381 | cat confdefs.h >>conftest.$ac_ext |
||
3382 | cat >>conftest.$ac_ext <<_ACEOF |
||
3383 | /* end confdefs.h. */ |
||
3384 | |||
3385 | /* Override any gcc2 internal prototype to avoid an error. */ |
||
3386 | #ifdef __cplusplus |
||
3387 | extern "C" |
||
3388 | #endif |
||
3389 | /* We use char because int might match the return type of a gcc2 |
||
3390 | builtin and then its argument prototype would still apply. */ |
||
3391 | char crypt (); |
||
3392 | int |
||
3393 | main () |
||
3394 | { |
||
3395 | crypt (); |
||
3396 | ; |
||
3397 | return 0; |
||
3398 | } |
||
3399 | _ACEOF |
||
3400 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
3401 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
3402 | (eval $ac_link) 2>conftest.er1 |
||
3403 | ac_status=$? |
||
3404 | grep -v '^ *+' conftest.er1 >conftest.err |
||
3405 | rm -f conftest.er1 |
||
3406 | cat conftest.err >&5 |
||
3407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3408 | (exit $ac_status); } && |
||
3409 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
3410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
3411 | (eval $ac_try) 2>&5 |
||
3412 | ac_status=$? |
||
3413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3414 | (exit $ac_status); }; } && |
||
3415 | { ac_try='test -s conftest$ac_exeext' |
||
3416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
3417 | (eval $ac_try) 2>&5 |
||
3418 | ac_status=$? |
||
3419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3420 | (exit $ac_status); }; }; then |
||
3421 | ac_cv_lib_crypt_crypt=yes |
||
3422 | else |
||
3423 | echo "$as_me: failed program was:" >&5 |
||
3424 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
3425 | |||
3426 | ac_cv_lib_crypt_crypt=no |
||
3427 | fi |
||
3428 | rm -f conftest.err conftest.$ac_objext \ |
||
3429 | conftest$ac_exeext conftest.$ac_ext |
||
3430 | LIBS=$ac_check_lib_save_LIBS |
||
3431 | fi |
||
3432 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 |
||
3433 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 |
||
3434 | if test $ac_cv_lib_crypt_crypt = yes; then |
||
3435 | cat >>confdefs.h <<_ACEOF |
||
3436 | #define HAVE_LIBCRYPT 1 |
||
3437 | _ACEOF |
||
3438 | |||
3439 | LIBS="-lcrypt $LIBS" |
||
3440 | |||
3441 | fi |
||
3442 | |||
3443 | |||
3444 | for ac_func in crypt |
||
3445 | do |
||
3446 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
3447 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
||
3448 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
||
3449 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
||
3450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
3451 | else |
||
3452 | cat >conftest.$ac_ext <<_ACEOF |
||
3453 | /* confdefs.h. */ |
||
3454 | _ACEOF |
||
3455 | cat confdefs.h >>conftest.$ac_ext |
||
3456 | cat >>conftest.$ac_ext <<_ACEOF |
||
3457 | /* end confdefs.h. */ |
||
3458 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
||
3459 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
||
3460 | #define $ac_func innocuous_$ac_func |
||
3461 | |||
3462 | /* System header to define __stub macros and hopefully few prototypes, |
||
3463 | which can conflict with char $ac_func (); below. |
||
3464 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
3465 | <limits.h> exists even on freestanding compilers. */ |
||
3466 | |||
3467 | #ifdef __STDC__ |
||
3468 | # include <limits.h> |
||
3469 | #else |
||
3470 | # include <assert.h> |
||
3471 | #endif |
||
3472 | |||
3473 | #undef $ac_func |
||
3474 | |||
3475 | /* Override any gcc2 internal prototype to avoid an error. */ |
||
3476 | #ifdef __cplusplus |
||
3477 | extern "C" |
||
3478 | { |
||
3479 | #endif |
||
3480 | /* We use char because int might match the return type of a gcc2 |
||
3481 | builtin and then its argument prototype would still apply. */ |
||
3482 | char $ac_func (); |
||
3483 | /* The GNU C library defines this for functions which it implements |
||
3484 | to always fail with ENOSYS. Some functions are actually named |
||
3485 | something starting with __ and the normal name is an alias. */ |
||
3486 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
||
3487 | choke me |
||
3488 | #else |
||
3489 | char (*f) () = $ac_func; |
||
3490 | #endif |
||
3491 | #ifdef __cplusplus |
||
3492 | } |
||
3493 | #endif |
||
3494 | |||
3495 | int |
||
3496 | main () |
||
3497 | { |
||
3498 | return f != $ac_func; |
||
3499 | ; |
||
3500 | return 0; |
||
3501 | } |
||
3502 | _ACEOF |
||
3503 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
3504 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
3505 | (eval $ac_link) 2>conftest.er1 |
||
3506 | ac_status=$? |
||
3507 | grep -v '^ *+' conftest.er1 >conftest.err |
||
3508 | rm -f conftest.er1 |
||
3509 | cat conftest.err >&5 |
||
3510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3511 | (exit $ac_status); } && |
||
3512 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
3513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
3514 | (eval $ac_try) 2>&5 |
||
3515 | ac_status=$? |
||
3516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3517 | (exit $ac_status); }; } && |
||
3518 | { ac_try='test -s conftest$ac_exeext' |
||
3519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
3520 | (eval $ac_try) 2>&5 |
||
3521 | ac_status=$? |
||
3522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3523 | (exit $ac_status); }; }; then |
||
3524 | eval "$as_ac_var=yes" |
||
3525 | else |
||
3526 | echo "$as_me: failed program was:" >&5 |
||
3527 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
3528 | |||
3529 | eval "$as_ac_var=no" |
||
3530 | fi |
||
3531 | rm -f conftest.err conftest.$ac_objext \ |
||
3532 | conftest$ac_exeext conftest.$ac_ext |
||
3533 | fi |
||
3534 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
||
3535 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
||
3536 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
||
3537 | cat >>confdefs.h <<_ACEOF |
||
3538 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
||
3539 | _ACEOF |
||
3540 | |||
3541 | fi |
||
3542 | done |
||
3543 | |||
3544 | CRYPTLIB=$LIBS |
||
3545 | |||
3546 | LIBS=$SAVE |
||
3547 | |||
3548 | echo "$as_me:$LINENO: checking for main in -lfl" >&5 |
||
3549 | echo $ECHO_N "checking for main in -lfl... $ECHO_C" >&6 |
||
3550 | if test "${ac_cv_lib_fl_main+set}" = set; then |
||
3551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
3552 | else |
||
3553 | ac_check_lib_save_LIBS=$LIBS |
||
3554 | LIBS="-lfl $LIBS" |
||
3555 | cat >conftest.$ac_ext <<_ACEOF |
||
3556 | /* confdefs.h. */ |
||
3557 | _ACEOF |
||
3558 | cat confdefs.h >>conftest.$ac_ext |
||
3559 | cat >>conftest.$ac_ext <<_ACEOF |
||
3560 | /* end confdefs.h. */ |
||
3561 | |||
3562 | |||
3563 | int |
||
3564 | main () |
||
3565 | { |
||
3566 | main (); |
||
3567 | ; |
||
3568 | return 0; |
||
3569 | } |
||
3570 | _ACEOF |
||
3571 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
3572 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
3573 | (eval $ac_link) 2>conftest.er1 |
||
3574 | ac_status=$? |
||
3575 | grep -v '^ *+' conftest.er1 >conftest.err |
||
3576 | rm -f conftest.er1 |
||
3577 | cat conftest.err >&5 |
||
3578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3579 | (exit $ac_status); } && |
||
3580 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
3581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
3582 | (eval $ac_try) 2>&5 |
||
3583 | ac_status=$? |
||
3584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3585 | (exit $ac_status); }; } && |
||
3586 | { ac_try='test -s conftest$ac_exeext' |
||
3587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
3588 | (eval $ac_try) 2>&5 |
||
3589 | ac_status=$? |
||
3590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3591 | (exit $ac_status); }; }; then |
||
3592 | ac_cv_lib_fl_main=yes |
||
3593 | else |
||
3594 | echo "$as_me: failed program was:" >&5 |
||
3595 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
3596 | |||
3597 | ac_cv_lib_fl_main=no |
||
3598 | fi |
||
3599 | rm -f conftest.err conftest.$ac_objext \ |
||
3600 | conftest$ac_exeext conftest.$ac_ext |
||
3601 | LIBS=$ac_check_lib_save_LIBS |
||
3602 | fi |
||
3603 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_main" >&5 |
||
3604 | echo "${ECHO_T}$ac_cv_lib_fl_main" >&6 |
||
3605 | if test $ac_cv_lib_fl_main = yes; then |
||
3606 | cat >>confdefs.h <<_ACEOF |
||
3607 | #define HAVE_LIBFL 1 |
||
3608 | _ACEOF |
||
3609 | |||
3610 | LIBS="-lfl $LIBS" |
||
3611 | |||
3612 | fi |
||
3613 | |||
3614 | FLEXLIB=$LIBS |
||
3615 | |||
3616 | LIBS=$SAVE |
||
3617 | fun=gethostbyname |
||
3618 | |||
3619 | for ac_func in $fun |
||
3620 | do |
||
3621 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
3622 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
||
3623 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
||
3624 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
||
3625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
3626 | else |
||
3627 | cat >conftest.$ac_ext <<_ACEOF |
||
3628 | /* confdefs.h. */ |
||
3629 | _ACEOF |
||
3630 | cat confdefs.h >>conftest.$ac_ext |
||
3631 | cat >>conftest.$ac_ext <<_ACEOF |
||
3632 | /* end confdefs.h. */ |
||
3633 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
||
3634 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
||
3635 | #define $ac_func innocuous_$ac_func |
||
3636 | |||
3637 | /* System header to define __stub macros and hopefully few prototypes, |
||
3638 | which can conflict with char $ac_func (); below. |
||
3639 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
3640 | <limits.h> exists even on freestanding compilers. */ |
||
3641 | |||
3642 | #ifdef __STDC__ |
||
3643 | # include <limits.h> |
||
3644 | #else |
||
3645 | # include <assert.h> |
||
3646 | #endif |
||
3647 | |||
3648 | #undef $ac_func |
||
3649 | |||
3650 | /* Override any gcc2 internal prototype to avoid an error. */ |
||
3651 | #ifdef __cplusplus |
||
3652 | extern "C" |
||
3653 | { |
||
3654 | #endif |
||
3655 | /* We use char because int might match the return type of a gcc2 |
||
3656 | builtin and then its argument prototype would still apply. */ |
||
3657 | char $ac_func (); |
||
3658 | /* The GNU C library defines this for functions which it implements |
||
3659 | to always fail with ENOSYS. Some functions are actually named |
||
3660 | something starting with __ and the normal name is an alias. */ |
||
3661 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
||
3662 | choke me |
||
3663 | #else |
||
3664 | char (*f) () = $ac_func; |
||
3665 | #endif |
||
3666 | #ifdef __cplusplus |
||
3667 | } |
||
3668 | #endif |
||
3669 | |||
3670 | int |
||
3671 | main () |
||
3672 | { |
||
3673 | return f != $ac_func; |
||
3674 | ; |
||
3675 | return 0; |
||
3676 | } |
||
3677 | _ACEOF |
||
3678 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
3679 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
3680 | (eval $ac_link) 2>conftest.er1 |
||
3681 | ac_status=$? |
||
3682 | grep -v '^ *+' conftest.er1 >conftest.err |
||
3683 | rm -f conftest.er1 |
||
3684 | cat conftest.err >&5 |
||
3685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3686 | (exit $ac_status); } && |
||
3687 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
3688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
3689 | (eval $ac_try) 2>&5 |
||
3690 | ac_status=$? |
||
3691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3692 | (exit $ac_status); }; } && |
||
3693 | { ac_try='test -s conftest$ac_exeext' |
||
3694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
3695 | (eval $ac_try) 2>&5 |
||
3696 | ac_status=$? |
||
3697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3698 | (exit $ac_status); }; }; then |
||
3699 | eval "$as_ac_var=yes" |
||
3700 | else |
||
3701 | echo "$as_me: failed program was:" >&5 |
||
3702 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
3703 | |||
3704 | eval "$as_ac_var=no" |
||
3705 | fi |
||
3706 | rm -f conftest.err conftest.$ac_objext \ |
||
3707 | conftest$ac_exeext conftest.$ac_ext |
||
3708 | fi |
||
3709 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
||
3710 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
||
3711 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
||
3712 | cat >>confdefs.h <<_ACEOF |
||
3713 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
||
3714 | _ACEOF |
||
3715 | |||
3716 | fi |
||
3717 | done |
||
3718 | |||
3719 | if test "$ac_cv_func_gethostbyname" = no; then |
||
3720 | |||
3721 | as_ac_Lib=`echo "ac_cv_lib_nsl_$fun" | $as_tr_sh` |
||
3722 | echo "$as_me:$LINENO: checking for $fun in -lnsl" >&5 |
||
3723 | echo $ECHO_N "checking for $fun in -lnsl... $ECHO_C" >&6 |
||
3724 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then |
||
3725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
3726 | else |
||
3727 | ac_check_lib_save_LIBS=$LIBS |
||
3728 | LIBS="-lnsl $LIBS" |
||
3729 | cat >conftest.$ac_ext <<_ACEOF |
||
3730 | /* confdefs.h. */ |
||
3731 | _ACEOF |
||
3732 | cat confdefs.h >>conftest.$ac_ext |
||
3733 | cat >>conftest.$ac_ext <<_ACEOF |
||
3734 | /* end confdefs.h. */ |
||
3735 | |||
3736 | /* Override any gcc2 internal prototype to avoid an error. */ |
||
3737 | #ifdef __cplusplus |
||
3738 | extern "C" |
||
3739 | #endif |
||
3740 | /* We use char because int might match the return type of a gcc2 |
||
3741 | builtin and then its argument prototype would still apply. */ |
||
3742 | char $fun (); |
||
3743 | int |
||
3744 | main () |
||
3745 | { |
||
3746 | $fun (); |
||
3747 | ; |
||
3748 | return 0; |
||
3749 | } |
||
3750 | _ACEOF |
||
3751 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
3752 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
3753 | (eval $ac_link) 2>conftest.er1 |
||
3754 | ac_status=$? |
||
3755 | grep -v '^ *+' conftest.er1 >conftest.err |
||
3756 | rm -f conftest.er1 |
||
3757 | cat conftest.err >&5 |
||
3758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3759 | (exit $ac_status); } && |
||
3760 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
3761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
3762 | (eval $ac_try) 2>&5 |
||
3763 | ac_status=$? |
||
3764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3765 | (exit $ac_status); }; } && |
||
3766 | { ac_try='test -s conftest$ac_exeext' |
||
3767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
3768 | (eval $ac_try) 2>&5 |
||
3769 | ac_status=$? |
||
3770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3771 | (exit $ac_status); }; }; then |
||
3772 | eval "$as_ac_Lib=yes" |
||
3773 | else |
||
3774 | echo "$as_me: failed program was:" >&5 |
||
3775 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
3776 | |||
3777 | eval "$as_ac_Lib=no" |
||
3778 | fi |
||
3779 | rm -f conftest.err conftest.$ac_objext \ |
||
3780 | conftest$ac_exeext conftest.$ac_ext |
||
3781 | LIBS=$ac_check_lib_save_LIBS |
||
3782 | fi |
||
3783 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 |
||
3784 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 |
||
3785 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then |
||
3786 | cat >>confdefs.h <<_ACEOF |
||
3787 | #define HAVE_LIBNSL 1 |
||
3788 | _ACEOF |
||
3789 | |||
3790 | LIBS="-lnsl $LIBS" |
||
3791 | |||
3792 | fi |
||
3793 | |||
3794 | |||
3795 | if test "$ac_cv_lib_gethostbyname" = no; then |
||
3796 | echo |
||
3797 | echo ERROR! Your system does not have $fun |
||
3798 | echo WIMS cannot be installed. Please report. |
||
3799 | echo |
||
3800 | exit 1 |
||
3801 | fi |
||
3802 | |||
3803 | fi |
||
3804 | |||
3805 | fun=gethostname |
||
3806 | |||
3807 | for ac_func in $fun |
||
3808 | do |
||
3809 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
3810 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
||
3811 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
||
3812 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
||
3813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
3814 | else |
||
3815 | cat >conftest.$ac_ext <<_ACEOF |
||
3816 | /* confdefs.h. */ |
||
3817 | _ACEOF |
||
3818 | cat confdefs.h >>conftest.$ac_ext |
||
3819 | cat >>conftest.$ac_ext <<_ACEOF |
||
3820 | /* end confdefs.h. */ |
||
3821 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
||
3822 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
||
3823 | #define $ac_func innocuous_$ac_func |
||
3824 | |||
3825 | /* System header to define __stub macros and hopefully few prototypes, |
||
3826 | which can conflict with char $ac_func (); below. |
||
3827 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
3828 | <limits.h> exists even on freestanding compilers. */ |
||
3829 | |||
3830 | #ifdef __STDC__ |
||
3831 | # include <limits.h> |
||
3832 | #else |
||
3833 | # include <assert.h> |
||
3834 | #endif |
||
3835 | |||
3836 | #undef $ac_func |
||
3837 | |||
3838 | /* Override any gcc2 internal prototype to avoid an error. */ |
||
3839 | #ifdef __cplusplus |
||
3840 | extern "C" |
||
3841 | { |
||
3842 | #endif |
||
3843 | /* We use char because int might match the return type of a gcc2 |
||
3844 | builtin and then its argument prototype would still apply. */ |
||
3845 | char $ac_func (); |
||
3846 | /* The GNU C library defines this for functions which it implements |
||
3847 | to always fail with ENOSYS. Some functions are actually named |
||
3848 | something starting with __ and the normal name is an alias. */ |
||
3849 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
||
3850 | choke me |
||
3851 | #else |
||
3852 | char (*f) () = $ac_func; |
||
3853 | #endif |
||
3854 | #ifdef __cplusplus |
||
3855 | } |
||
3856 | #endif |
||
3857 | |||
3858 | int |
||
3859 | main () |
||
3860 | { |
||
3861 | return f != $ac_func; |
||
3862 | ; |
||
3863 | return 0; |
||
3864 | } |
||
3865 | _ACEOF |
||
3866 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
3867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
3868 | (eval $ac_link) 2>conftest.er1 |
||
3869 | ac_status=$? |
||
3870 | grep -v '^ *+' conftest.er1 >conftest.err |
||
3871 | rm -f conftest.er1 |
||
3872 | cat conftest.err >&5 |
||
3873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3874 | (exit $ac_status); } && |
||
3875 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
3876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
3877 | (eval $ac_try) 2>&5 |
||
3878 | ac_status=$? |
||
3879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3880 | (exit $ac_status); }; } && |
||
3881 | { ac_try='test -s conftest$ac_exeext' |
||
3882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
3883 | (eval $ac_try) 2>&5 |
||
3884 | ac_status=$? |
||
3885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3886 | (exit $ac_status); }; }; then |
||
3887 | eval "$as_ac_var=yes" |
||
3888 | else |
||
3889 | echo "$as_me: failed program was:" >&5 |
||
3890 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
3891 | |||
3892 | eval "$as_ac_var=no" |
||
3893 | fi |
||
3894 | rm -f conftest.err conftest.$ac_objext \ |
||
3895 | conftest$ac_exeext conftest.$ac_ext |
||
3896 | fi |
||
3897 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
||
3898 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
||
3899 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
||
3900 | cat >>confdefs.h <<_ACEOF |
||
3901 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
||
3902 | _ACEOF |
||
3903 | |||
3904 | fi |
||
3905 | done |
||
3906 | |||
3907 | |||
3908 | if test "$ac_cv_func_gethostname" = no; then |
||
3909 | echo |
||
3910 | echo ERROR! Your system does not have $fun |
||
3911 | echo WIMS cannot be installed. Please report. |
||
3912 | echo |
||
3913 | exit 1 |
||
3914 | fi |
||
3915 | |||
3916 | |||
3917 | fun=socket |
||
3918 | |||
3919 | for ac_func in $fun |
||
3920 | do |
||
3921 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
3922 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
||
3923 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
||
3924 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
||
3925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
3926 | else |
||
3927 | cat >conftest.$ac_ext <<_ACEOF |
||
3928 | /* confdefs.h. */ |
||
3929 | _ACEOF |
||
3930 | cat confdefs.h >>conftest.$ac_ext |
||
3931 | cat >>conftest.$ac_ext <<_ACEOF |
||
3932 | /* end confdefs.h. */ |
||
3933 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
||
3934 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
||
3935 | #define $ac_func innocuous_$ac_func |
||
3936 | |||
3937 | /* System header to define __stub macros and hopefully few prototypes, |
||
3938 | which can conflict with char $ac_func (); below. |
||
3939 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
3940 | <limits.h> exists even on freestanding compilers. */ |
||
3941 | |||
3942 | #ifdef __STDC__ |
||
3943 | # include <limits.h> |
||
3944 | #else |
||
3945 | # include <assert.h> |
||
3946 | #endif |
||
3947 | |||
3948 | #undef $ac_func |
||
3949 | |||
3950 | /* Override any gcc2 internal prototype to avoid an error. */ |
||
3951 | #ifdef __cplusplus |
||
3952 | extern "C" |
||
3953 | { |
||
3954 | #endif |
||
3955 | /* We use char because int might match the return type of a gcc2 |
||
3956 | builtin and then its argument prototype would still apply. */ |
||
3957 | char $ac_func (); |
||
3958 | /* The GNU C library defines this for functions which it implements |
||
3959 | to always fail with ENOSYS. Some functions are actually named |
||
3960 | something starting with __ and the normal name is an alias. */ |
||
3961 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
||
3962 | choke me |
||
3963 | #else |
||
3964 | char (*f) () = $ac_func; |
||
3965 | #endif |
||
3966 | #ifdef __cplusplus |
||
3967 | } |
||
3968 | #endif |
||
3969 | |||
3970 | int |
||
3971 | main () |
||
3972 | { |
||
3973 | return f != $ac_func; |
||
3974 | ; |
||
3975 | return 0; |
||
3976 | } |
||
3977 | _ACEOF |
||
3978 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
3979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
3980 | (eval $ac_link) 2>conftest.er1 |
||
3981 | ac_status=$? |
||
3982 | grep -v '^ *+' conftest.er1 >conftest.err |
||
3983 | rm -f conftest.er1 |
||
3984 | cat conftest.err >&5 |
||
3985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3986 | (exit $ac_status); } && |
||
3987 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
3988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
3989 | (eval $ac_try) 2>&5 |
||
3990 | ac_status=$? |
||
3991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3992 | (exit $ac_status); }; } && |
||
3993 | { ac_try='test -s conftest$ac_exeext' |
||
3994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
3995 | (eval $ac_try) 2>&5 |
||
3996 | ac_status=$? |
||
3997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
3998 | (exit $ac_status); }; }; then |
||
3999 | eval "$as_ac_var=yes" |
||
4000 | else |
||
4001 | echo "$as_me: failed program was:" >&5 |
||
4002 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
4003 | |||
4004 | eval "$as_ac_var=no" |
||
4005 | fi |
||
4006 | rm -f conftest.err conftest.$ac_objext \ |
||
4007 | conftest$ac_exeext conftest.$ac_ext |
||
4008 | fi |
||
4009 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
||
4010 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
||
4011 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
||
4012 | cat >>confdefs.h <<_ACEOF |
||
4013 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
||
4014 | _ACEOF |
||
4015 | |||
4016 | fi |
||
4017 | done |
||
4018 | |||
4019 | if test "$ac_cv_func_socket" = no; then |
||
4020 | |||
4021 | as_ac_Lib=`echo "ac_cv_lib_socket_$fun" | $as_tr_sh` |
||
4022 | echo "$as_me:$LINENO: checking for $fun in -lsocket" >&5 |
||
4023 | echo $ECHO_N "checking for $fun in -lsocket... $ECHO_C" >&6 |
||
4024 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then |
||
4025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
4026 | else |
||
4027 | ac_check_lib_save_LIBS=$LIBS |
||
4028 | LIBS="-lsocket $LIBS" |
||
4029 | cat >conftest.$ac_ext <<_ACEOF |
||
4030 | /* confdefs.h. */ |
||
4031 | _ACEOF |
||
4032 | cat confdefs.h >>conftest.$ac_ext |
||
4033 | cat >>conftest.$ac_ext <<_ACEOF |
||
4034 | /* end confdefs.h. */ |
||
4035 | |||
4036 | /* Override any gcc2 internal prototype to avoid an error. */ |
||
4037 | #ifdef __cplusplus |
||
4038 | extern "C" |
||
4039 | #endif |
||
4040 | /* We use char because int might match the return type of a gcc2 |
||
4041 | builtin and then its argument prototype would still apply. */ |
||
4042 | char $fun (); |
||
4043 | int |
||
4044 | main () |
||
4045 | { |
||
4046 | $fun (); |
||
4047 | ; |
||
4048 | return 0; |
||
4049 | } |
||
4050 | _ACEOF |
||
4051 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
4052 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
4053 | (eval $ac_link) 2>conftest.er1 |
||
4054 | ac_status=$? |
||
4055 | grep -v '^ *+' conftest.er1 >conftest.err |
||
4056 | rm -f conftest.er1 |
||
4057 | cat conftest.err >&5 |
||
4058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4059 | (exit $ac_status); } && |
||
4060 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
4061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
4062 | (eval $ac_try) 2>&5 |
||
4063 | ac_status=$? |
||
4064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4065 | (exit $ac_status); }; } && |
||
4066 | { ac_try='test -s conftest$ac_exeext' |
||
4067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
4068 | (eval $ac_try) 2>&5 |
||
4069 | ac_status=$? |
||
4070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4071 | (exit $ac_status); }; }; then |
||
4072 | eval "$as_ac_Lib=yes" |
||
4073 | else |
||
4074 | echo "$as_me: failed program was:" >&5 |
||
4075 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
4076 | |||
4077 | eval "$as_ac_Lib=no" |
||
4078 | fi |
||
4079 | rm -f conftest.err conftest.$ac_objext \ |
||
4080 | conftest$ac_exeext conftest.$ac_ext |
||
4081 | LIBS=$ac_check_lib_save_LIBS |
||
4082 | fi |
||
4083 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 |
||
4084 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 |
||
4085 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then |
||
4086 | cat >>confdefs.h <<_ACEOF |
||
4087 | #define HAVE_LIBSOCKET 1 |
||
4088 | _ACEOF |
||
4089 | |||
4090 | LIBS="-lsocket $LIBS" |
||
4091 | |||
4092 | fi |
||
4093 | |||
4094 | if test "$ac_cv_lib_socket" = no; then |
||
4095 | |||
4096 | as_ac_Lib=`echo "ac_cv_lib_socket_$fun" | $as_tr_sh` |
||
4097 | echo "$as_me:$LINENO: checking for $fun in -lsocket" >&5 |
||
4098 | echo $ECHO_N "checking for $fun in -lsocket... $ECHO_C" >&6 |
||
4099 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then |
||
4100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
4101 | else |
||
4102 | ac_check_lib_save_LIBS=$LIBS |
||
4103 | LIBS="-lsocket -lnsl $LIBS" |
||
4104 | cat >conftest.$ac_ext <<_ACEOF |
||
4105 | /* confdefs.h. */ |
||
4106 | _ACEOF |
||
4107 | cat confdefs.h >>conftest.$ac_ext |
||
4108 | cat >>conftest.$ac_ext <<_ACEOF |
||
4109 | /* end confdefs.h. */ |
||
4110 | |||
4111 | /* Override any gcc2 internal prototype to avoid an error. */ |
||
4112 | #ifdef __cplusplus |
||
4113 | extern "C" |
||
4114 | #endif |
||
4115 | /* We use char because int might match the return type of a gcc2 |
||
4116 | builtin and then its argument prototype would still apply. */ |
||
4117 | char $fun (); |
||
4118 | int |
||
4119 | main () |
||
4120 | { |
||
4121 | $fun (); |
||
4122 | ; |
||
4123 | return 0; |
||
4124 | } |
||
4125 | _ACEOF |
||
4126 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
4127 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
4128 | (eval $ac_link) 2>conftest.er1 |
||
4129 | ac_status=$? |
||
4130 | grep -v '^ *+' conftest.er1 >conftest.err |
||
4131 | rm -f conftest.er1 |
||
4132 | cat conftest.err >&5 |
||
4133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4134 | (exit $ac_status); } && |
||
4135 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
4136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
4137 | (eval $ac_try) 2>&5 |
||
4138 | ac_status=$? |
||
4139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4140 | (exit $ac_status); }; } && |
||
4141 | { ac_try='test -s conftest$ac_exeext' |
||
4142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
4143 | (eval $ac_try) 2>&5 |
||
4144 | ac_status=$? |
||
4145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4146 | (exit $ac_status); }; }; then |
||
4147 | eval "$as_ac_Lib=yes" |
||
4148 | else |
||
4149 | echo "$as_me: failed program was:" >&5 |
||
4150 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
4151 | |||
4152 | eval "$as_ac_Lib=no" |
||
4153 | fi |
||
4154 | rm -f conftest.err conftest.$ac_objext \ |
||
4155 | conftest$ac_exeext conftest.$ac_ext |
||
4156 | LIBS=$ac_check_lib_save_LIBS |
||
4157 | fi |
||
4158 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 |
||
4159 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 |
||
4160 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then |
||
4161 | cat >>confdefs.h <<_ACEOF |
||
4162 | #define HAVE_LIBSOCKET 1 |
||
4163 | _ACEOF |
||
4164 | |||
4165 | LIBS="-lsocket $LIBS" |
||
4166 | |||
4167 | fi |
||
4168 | |||
4169 | |||
4170 | if test "$ac_cv_lib_socket" = no; then |
||
4171 | echo |
||
4172 | echo ERROR! Your system does not have $fun |
||
4173 | echo WIMS cannot be installed. Please report. |
||
4174 | echo |
||
4175 | exit 1 |
||
4176 | fi |
||
4177 | |||
4178 | fi |
||
4179 | fi |
||
4180 | |||
4181 | fun=inet_ntoa |
||
4182 | |||
4183 | for ac_func in $fun |
||
4184 | do |
||
4185 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
4186 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
||
4187 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
||
4188 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
||
4189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
4190 | else |
||
4191 | cat >conftest.$ac_ext <<_ACEOF |
||
4192 | /* confdefs.h. */ |
||
4193 | _ACEOF |
||
4194 | cat confdefs.h >>conftest.$ac_ext |
||
4195 | cat >>conftest.$ac_ext <<_ACEOF |
||
4196 | /* end confdefs.h. */ |
||
4197 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
||
4198 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
||
4199 | #define $ac_func innocuous_$ac_func |
||
4200 | |||
4201 | /* System header to define __stub macros and hopefully few prototypes, |
||
4202 | which can conflict with char $ac_func (); below. |
||
4203 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
4204 | <limits.h> exists even on freestanding compilers. */ |
||
4205 | |||
4206 | #ifdef __STDC__ |
||
4207 | # include <limits.h> |
||
4208 | #else |
||
4209 | # include <assert.h> |
||
4210 | #endif |
||
4211 | |||
4212 | #undef $ac_func |
||
4213 | |||
4214 | /* Override any gcc2 internal prototype to avoid an error. */ |
||
4215 | #ifdef __cplusplus |
||
4216 | extern "C" |
||
4217 | { |
||
4218 | #endif |
||
4219 | /* We use char because int might match the return type of a gcc2 |
||
4220 | builtin and then its argument prototype would still apply. */ |
||
4221 | char $ac_func (); |
||
4222 | /* The GNU C library defines this for functions which it implements |
||
4223 | to always fail with ENOSYS. Some functions are actually named |
||
4224 | something starting with __ and the normal name is an alias. */ |
||
4225 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
||
4226 | choke me |
||
4227 | #else |
||
4228 | char (*f) () = $ac_func; |
||
4229 | #endif |
||
4230 | #ifdef __cplusplus |
||
4231 | } |
||
4232 | #endif |
||
4233 | |||
4234 | int |
||
4235 | main () |
||
4236 | { |
||
4237 | return f != $ac_func; |
||
4238 | ; |
||
4239 | return 0; |
||
4240 | } |
||
4241 | _ACEOF |
||
4242 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
4243 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
4244 | (eval $ac_link) 2>conftest.er1 |
||
4245 | ac_status=$? |
||
4246 | grep -v '^ *+' conftest.er1 >conftest.err |
||
4247 | rm -f conftest.er1 |
||
4248 | cat conftest.err >&5 |
||
4249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4250 | (exit $ac_status); } && |
||
4251 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
4252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
4253 | (eval $ac_try) 2>&5 |
||
4254 | ac_status=$? |
||
4255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4256 | (exit $ac_status); }; } && |
||
4257 | { ac_try='test -s conftest$ac_exeext' |
||
4258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
4259 | (eval $ac_try) 2>&5 |
||
4260 | ac_status=$? |
||
4261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4262 | (exit $ac_status); }; }; then |
||
4263 | eval "$as_ac_var=yes" |
||
4264 | else |
||
4265 | echo "$as_me: failed program was:" >&5 |
||
4266 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
4267 | |||
4268 | eval "$as_ac_var=no" |
||
4269 | fi |
||
4270 | rm -f conftest.err conftest.$ac_objext \ |
||
4271 | conftest$ac_exeext conftest.$ac_ext |
||
4272 | fi |
||
4273 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
||
4274 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
||
4275 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
||
4276 | cat >>confdefs.h <<_ACEOF |
||
4277 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
||
4278 | _ACEOF |
||
4279 | |||
4280 | fi |
||
4281 | done |
||
4282 | |||
4283 | if test "$ac_cv_func_inet_ntoa" = no; then |
||
4284 | |||
4285 | as_ac_Lib=`echo "ac_cv_lib_socket_$fun" | $as_tr_sh` |
||
4286 | echo "$as_me:$LINENO: checking for $fun in -lsocket" >&5 |
||
4287 | echo $ECHO_N "checking for $fun in -lsocket... $ECHO_C" >&6 |
||
4288 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then |
||
4289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
4290 | else |
||
4291 | ac_check_lib_save_LIBS=$LIBS |
||
4292 | LIBS="-lsocket -lnsl $LIBS" |
||
4293 | cat >conftest.$ac_ext <<_ACEOF |
||
4294 | /* confdefs.h. */ |
||
4295 | _ACEOF |
||
4296 | cat confdefs.h >>conftest.$ac_ext |
||
4297 | cat >>conftest.$ac_ext <<_ACEOF |
||
4298 | /* end confdefs.h. */ |
||
4299 | |||
4300 | /* Override any gcc2 internal prototype to avoid an error. */ |
||
4301 | #ifdef __cplusplus |
||
4302 | extern "C" |
||
4303 | #endif |
||
4304 | /* We use char because int might match the return type of a gcc2 |
||
4305 | builtin and then its argument prototype would still apply. */ |
||
4306 | char $fun (); |
||
4307 | int |
||
4308 | main () |
||
4309 | { |
||
4310 | $fun (); |
||
4311 | ; |
||
4312 | return 0; |
||
4313 | } |
||
4314 | _ACEOF |
||
4315 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
4316 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
4317 | (eval $ac_link) 2>conftest.er1 |
||
4318 | ac_status=$? |
||
4319 | grep -v '^ *+' conftest.er1 >conftest.err |
||
4320 | rm -f conftest.er1 |
||
4321 | cat conftest.err >&5 |
||
4322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4323 | (exit $ac_status); } && |
||
4324 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
4325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
4326 | (eval $ac_try) 2>&5 |
||
4327 | ac_status=$? |
||
4328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4329 | (exit $ac_status); }; } && |
||
4330 | { ac_try='test -s conftest$ac_exeext' |
||
4331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
4332 | (eval $ac_try) 2>&5 |
||
4333 | ac_status=$? |
||
4334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4335 | (exit $ac_status); }; }; then |
||
4336 | eval "$as_ac_Lib=yes" |
||
4337 | else |
||
4338 | echo "$as_me: failed program was:" >&5 |
||
4339 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
4340 | |||
4341 | eval "$as_ac_Lib=no" |
||
4342 | fi |
||
4343 | rm -f conftest.err conftest.$ac_objext \ |
||
4344 | conftest$ac_exeext conftest.$ac_ext |
||
4345 | LIBS=$ac_check_lib_save_LIBS |
||
4346 | fi |
||
4347 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 |
||
4348 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 |
||
4349 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then |
||
4350 | cat >>confdefs.h <<_ACEOF |
||
4351 | #define HAVE_LIBSOCKET 1 |
||
4352 | _ACEOF |
||
4353 | |||
4354 | LIBS="-lsocket $LIBS" |
||
4355 | |||
4356 | fi |
||
4357 | |||
4358 | fi |
||
4359 | fun=inet_aton |
||
4360 | |||
4361 | for ac_func in $fun |
||
4362 | do |
||
4363 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
4364 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
||
4365 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
||
4366 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
||
4367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
4368 | else |
||
4369 | cat >conftest.$ac_ext <<_ACEOF |
||
4370 | /* confdefs.h. */ |
||
4371 | _ACEOF |
||
4372 | cat confdefs.h >>conftest.$ac_ext |
||
4373 | cat >>conftest.$ac_ext <<_ACEOF |
||
4374 | /* end confdefs.h. */ |
||
4375 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
||
4376 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
||
4377 | #define $ac_func innocuous_$ac_func |
||
4378 | |||
4379 | /* System header to define __stub macros and hopefully few prototypes, |
||
4380 | which can conflict with char $ac_func (); below. |
||
4381 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
4382 | <limits.h> exists even on freestanding compilers. */ |
||
4383 | |||
4384 | #ifdef __STDC__ |
||
4385 | # include <limits.h> |
||
4386 | #else |
||
4387 | # include <assert.h> |
||
4388 | #endif |
||
4389 | |||
4390 | #undef $ac_func |
||
4391 | |||
4392 | /* Override any gcc2 internal prototype to avoid an error. */ |
||
4393 | #ifdef __cplusplus |
||
4394 | extern "C" |
||
4395 | { |
||
4396 | #endif |
||
4397 | /* We use char because int might match the return type of a gcc2 |
||
4398 | builtin and then its argument prototype would still apply. */ |
||
4399 | char $ac_func (); |
||
4400 | /* The GNU C library defines this for functions which it implements |
||
4401 | to always fail with ENOSYS. Some functions are actually named |
||
4402 | something starting with __ and the normal name is an alias. */ |
||
4403 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
||
4404 | choke me |
||
4405 | #else |
||
4406 | char (*f) () = $ac_func; |
||
4407 | #endif |
||
4408 | #ifdef __cplusplus |
||
4409 | } |
||
4410 | #endif |
||
4411 | |||
4412 | int |
||
4413 | main () |
||
4414 | { |
||
4415 | return f != $ac_func; |
||
4416 | ; |
||
4417 | return 0; |
||
4418 | } |
||
4419 | _ACEOF |
||
4420 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
4421 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
4422 | (eval $ac_link) 2>conftest.er1 |
||
4423 | ac_status=$? |
||
4424 | grep -v '^ *+' conftest.er1 >conftest.err |
||
4425 | rm -f conftest.er1 |
||
4426 | cat conftest.err >&5 |
||
4427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4428 | (exit $ac_status); } && |
||
4429 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
4430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
4431 | (eval $ac_try) 2>&5 |
||
4432 | ac_status=$? |
||
4433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4434 | (exit $ac_status); }; } && |
||
4435 | { ac_try='test -s conftest$ac_exeext' |
||
4436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
4437 | (eval $ac_try) 2>&5 |
||
4438 | ac_status=$? |
||
4439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4440 | (exit $ac_status); }; }; then |
||
4441 | eval "$as_ac_var=yes" |
||
4442 | else |
||
4443 | echo "$as_me: failed program was:" >&5 |
||
4444 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
4445 | |||
4446 | eval "$as_ac_var=no" |
||
4447 | fi |
||
4448 | rm -f conftest.err conftest.$ac_objext \ |
||
4449 | conftest$ac_exeext conftest.$ac_ext |
||
4450 | fi |
||
4451 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
||
4452 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
||
4453 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
||
4454 | cat >>confdefs.h <<_ACEOF |
||
4455 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
||
4456 | _ACEOF |
||
4457 | |||
4458 | fi |
||
4459 | done |
||
4460 | |||
4461 | if test "$ac_cv_func_inet_aton" = no; then |
||
4462 | |||
4463 | as_ac_Lib=`echo "ac_cv_lib_resolv_$fun" | $as_tr_sh` |
||
4464 | echo "$as_me:$LINENO: checking for $fun in -lresolv" >&5 |
||
4465 | echo $ECHO_N "checking for $fun in -lresolv... $ECHO_C" >&6 |
||
4466 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then |
||
4467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
4468 | else |
||
4469 | ac_check_lib_save_LIBS=$LIBS |
||
4470 | LIBS="-lresolv $LIBS" |
||
4471 | cat >conftest.$ac_ext <<_ACEOF |
||
4472 | /* confdefs.h. */ |
||
4473 | _ACEOF |
||
4474 | cat confdefs.h >>conftest.$ac_ext |
||
4475 | cat >>conftest.$ac_ext <<_ACEOF |
||
4476 | /* end confdefs.h. */ |
||
4477 | |||
4478 | /* Override any gcc2 internal prototype to avoid an error. */ |
||
4479 | #ifdef __cplusplus |
||
4480 | extern "C" |
||
4481 | #endif |
||
4482 | /* We use char because int might match the return type of a gcc2 |
||
4483 | builtin and then its argument prototype would still apply. */ |
||
4484 | char $fun (); |
||
4485 | int |
||
4486 | main () |
||
4487 | { |
||
4488 | $fun (); |
||
4489 | ; |
||
4490 | return 0; |
||
4491 | } |
||
4492 | _ACEOF |
||
4493 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
4494 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
4495 | (eval $ac_link) 2>conftest.er1 |
||
4496 | ac_status=$? |
||
4497 | grep -v '^ *+' conftest.er1 >conftest.err |
||
4498 | rm -f conftest.er1 |
||
4499 | cat conftest.err >&5 |
||
4500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4501 | (exit $ac_status); } && |
||
4502 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
4503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
4504 | (eval $ac_try) 2>&5 |
||
4505 | ac_status=$? |
||
4506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4507 | (exit $ac_status); }; } && |
||
4508 | { ac_try='test -s conftest$ac_exeext' |
||
4509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
4510 | (eval $ac_try) 2>&5 |
||
4511 | ac_status=$? |
||
4512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4513 | (exit $ac_status); }; }; then |
||
4514 | eval "$as_ac_Lib=yes" |
||
4515 | else |
||
4516 | echo "$as_me: failed program was:" >&5 |
||
4517 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
4518 | |||
4519 | eval "$as_ac_Lib=no" |
||
4520 | fi |
||
4521 | rm -f conftest.err conftest.$ac_objext \ |
||
4522 | conftest$ac_exeext conftest.$ac_ext |
||
4523 | LIBS=$ac_check_lib_save_LIBS |
||
4524 | fi |
||
4525 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 |
||
4526 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 |
||
4527 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then |
||
4528 | cat >>confdefs.h <<_ACEOF |
||
4529 | #define HAVE_LIBRESOLV 1 |
||
4530 | _ACEOF |
||
4531 | |||
4532 | LIBS="-lresolv $LIBS" |
||
4533 | |||
4534 | fi |
||
4535 | |||
4536 | fi |
||
4537 | NETLIBS=$LIBS |
||
4538 | |||
4539 | LIBS=$SAVE |
||
4540 | |||
4541 | # Checks for header files. |
||
4542 | |||
4543 | echo "$as_me:$LINENO: checking for egrep" >&5 |
||
4544 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
||
4545 | if test "${ac_cv_prog_egrep+set}" = set; then |
||
4546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
4547 | else |
||
4548 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
||
4549 | then ac_cv_prog_egrep='grep -E' |
||
4550 | else ac_cv_prog_egrep='egrep' |
||
4551 | fi |
||
4552 | fi |
||
4553 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
||
4554 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
||
4555 | EGREP=$ac_cv_prog_egrep |
||
4556 | |||
4557 | |||
4558 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
||
4559 | # for constant arguments. Useless! |
||
4560 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
||
4561 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
||
4562 | if test "${ac_cv_working_alloca_h+set}" = set; then |
||
4563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
4564 | else |
||
4565 | cat >conftest.$ac_ext <<_ACEOF |
||
4566 | /* confdefs.h. */ |
||
4567 | _ACEOF |
||
4568 | cat confdefs.h >>conftest.$ac_ext |
||
4569 | cat >>conftest.$ac_ext <<_ACEOF |
||
4570 | /* end confdefs.h. */ |
||
4571 | #include <alloca.h> |
||
4572 | int |
||
4573 | main () |
||
4574 | { |
||
4575 | char *p = (char *) alloca (2 * sizeof (int)); |
||
4576 | ; |
||
4577 | return 0; |
||
4578 | } |
||
4579 | _ACEOF |
||
4580 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
4581 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
4582 | (eval $ac_link) 2>conftest.er1 |
||
4583 | ac_status=$? |
||
4584 | grep -v '^ *+' conftest.er1 >conftest.err |
||
4585 | rm -f conftest.er1 |
||
4586 | cat conftest.err >&5 |
||
4587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4588 | (exit $ac_status); } && |
||
4589 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
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); }; } && |
||
4595 | { ac_try='test -s conftest$ac_exeext' |
||
4596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
4597 | (eval $ac_try) 2>&5 |
||
4598 | ac_status=$? |
||
4599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4600 | (exit $ac_status); }; }; then |
||
4601 | ac_cv_working_alloca_h=yes |
||
4602 | else |
||
4603 | echo "$as_me: failed program was:" >&5 |
||
4604 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
4605 | |||
4606 | ac_cv_working_alloca_h=no |
||
4607 | fi |
||
4608 | rm -f conftest.err conftest.$ac_objext \ |
||
4609 | conftest$ac_exeext conftest.$ac_ext |
||
4610 | fi |
||
4611 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
||
4612 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
||
4613 | if test $ac_cv_working_alloca_h = yes; then |
||
4614 | |||
4615 | cat >>confdefs.h <<\_ACEOF |
||
4616 | #define HAVE_ALLOCA_H 1 |
||
4617 | _ACEOF |
||
4618 | |||
4619 | fi |
||
4620 | |||
4621 | echo "$as_me:$LINENO: checking for alloca" >&5 |
||
4622 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
||
4623 | if test "${ac_cv_func_alloca_works+set}" = set; then |
||
4624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
4625 | else |
||
4626 | cat >conftest.$ac_ext <<_ACEOF |
||
4627 | /* confdefs.h. */ |
||
4628 | _ACEOF |
||
4629 | cat confdefs.h >>conftest.$ac_ext |
||
4630 | cat >>conftest.$ac_ext <<_ACEOF |
||
4631 | /* end confdefs.h. */ |
||
4632 | #ifdef __GNUC__ |
||
4633 | # define alloca __builtin_alloca |
||
4634 | #else |
||
4635 | # ifdef _MSC_VER |
||
4636 | # include <malloc.h> |
||
4637 | # define alloca _alloca |
||
4638 | # else |
||
4639 | # if HAVE_ALLOCA_H |
||
4640 | # include <alloca.h> |
||
4641 | # else |
||
4642 | # ifdef _AIX |
||
4643 | #pragma alloca |
||
4644 | # else |
||
4645 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
||
4646 | char *alloca (); |
||
4647 | # endif |
||
4648 | # endif |
||
4649 | # endif |
||
4650 | # endif |
||
4651 | #endif |
||
4652 | |||
4653 | int |
||
4654 | main () |
||
4655 | { |
||
4656 | char *p = (char *) alloca (1); |
||
4657 | ; |
||
4658 | return 0; |
||
4659 | } |
||
4660 | _ACEOF |
||
4661 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
4662 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
4663 | (eval $ac_link) 2>conftest.er1 |
||
4664 | ac_status=$? |
||
4665 | grep -v '^ *+' conftest.er1 >conftest.err |
||
4666 | rm -f conftest.er1 |
||
4667 | cat conftest.err >&5 |
||
4668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4669 | (exit $ac_status); } && |
||
4670 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
4671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
4672 | (eval $ac_try) 2>&5 |
||
4673 | ac_status=$? |
||
4674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4675 | (exit $ac_status); }; } && |
||
4676 | { ac_try='test -s conftest$ac_exeext' |
||
4677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
4678 | (eval $ac_try) 2>&5 |
||
4679 | ac_status=$? |
||
4680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4681 | (exit $ac_status); }; }; then |
||
4682 | ac_cv_func_alloca_works=yes |
||
4683 | else |
||
4684 | echo "$as_me: failed program was:" >&5 |
||
4685 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
4686 | |||
4687 | ac_cv_func_alloca_works=no |
||
4688 | fi |
||
4689 | rm -f conftest.err conftest.$ac_objext \ |
||
4690 | conftest$ac_exeext conftest.$ac_ext |
||
4691 | fi |
||
4692 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
||
4693 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
||
4694 | |||
4695 | if test $ac_cv_func_alloca_works = yes; then |
||
4696 | |||
4697 | cat >>confdefs.h <<\_ACEOF |
||
4698 | #define HAVE_ALLOCA 1 |
||
4699 | _ACEOF |
||
4700 | |||
4701 | else |
||
4702 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
||
4703 | # that cause trouble. Some versions do not even contain alloca or |
||
4704 | # contain a buggy version. If you still want to use their alloca, |
||
4705 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
||
4706 | |||
4707 | ALLOCA=alloca.$ac_objext |
||
4708 | |||
4709 | cat >>confdefs.h <<\_ACEOF |
||
4710 | #define C_ALLOCA 1 |
||
4711 | _ACEOF |
||
4712 | |||
4713 | |||
4714 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
||
4715 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
||
4716 | if test "${ac_cv_os_cray+set}" = set; then |
||
4717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
4718 | else |
||
4719 | cat >conftest.$ac_ext <<_ACEOF |
||
4720 | /* confdefs.h. */ |
||
4721 | _ACEOF |
||
4722 | cat confdefs.h >>conftest.$ac_ext |
||
4723 | cat >>conftest.$ac_ext <<_ACEOF |
||
4724 | /* end confdefs.h. */ |
||
4725 | #if defined(CRAY) && ! defined(CRAY2) |
||
4726 | webecray |
||
4727 | #else |
||
4728 | wenotbecray |
||
4729 | #endif |
||
4730 | |||
4731 | _ACEOF |
||
4732 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
||
4733 | $EGREP "webecray" >/dev/null 2>&1; then |
||
4734 | ac_cv_os_cray=yes |
||
4735 | else |
||
4736 | ac_cv_os_cray=no |
||
4737 | fi |
||
4738 | rm -f conftest* |
||
4739 | |||
4740 | fi |
||
4741 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
||
4742 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
||
4743 | if test $ac_cv_os_cray = yes; then |
||
4744 | for ac_func in _getb67 GETB67 getb67; do |
||
4745 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
4746 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
||
4747 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
||
4748 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
||
4749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
4750 | else |
||
4751 | cat >conftest.$ac_ext <<_ACEOF |
||
4752 | /* confdefs.h. */ |
||
4753 | _ACEOF |
||
4754 | cat confdefs.h >>conftest.$ac_ext |
||
4755 | cat >>conftest.$ac_ext <<_ACEOF |
||
4756 | /* end confdefs.h. */ |
||
4757 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
||
4758 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
||
4759 | #define $ac_func innocuous_$ac_func |
||
4760 | |||
4761 | /* System header to define __stub macros and hopefully few prototypes, |
||
4762 | which can conflict with char $ac_func (); below. |
||
4763 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
4764 | <limits.h> exists even on freestanding compilers. */ |
||
4765 | |||
4766 | #ifdef __STDC__ |
||
4767 | # include <limits.h> |
||
4768 | #else |
||
4769 | # include <assert.h> |
||
4770 | #endif |
||
4771 | |||
4772 | #undef $ac_func |
||
4773 | |||
4774 | /* Override any gcc2 internal prototype to avoid an error. */ |
||
4775 | #ifdef __cplusplus |
||
4776 | extern "C" |
||
4777 | { |
||
4778 | #endif |
||
4779 | /* We use char because int might match the return type of a gcc2 |
||
4780 | builtin and then its argument prototype would still apply. */ |
||
4781 | char $ac_func (); |
||
4782 | /* The GNU C library defines this for functions which it implements |
||
4783 | to always fail with ENOSYS. Some functions are actually named |
||
4784 | something starting with __ and the normal name is an alias. */ |
||
4785 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
||
4786 | choke me |
||
4787 | #else |
||
4788 | char (*f) () = $ac_func; |
||
4789 | #endif |
||
4790 | #ifdef __cplusplus |
||
4791 | } |
||
4792 | #endif |
||
4793 | |||
4794 | int |
||
4795 | main () |
||
4796 | { |
||
4797 | return f != $ac_func; |
||
4798 | ; |
||
4799 | return 0; |
||
4800 | } |
||
4801 | _ACEOF |
||
4802 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
4803 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
4804 | (eval $ac_link) 2>conftest.er1 |
||
4805 | ac_status=$? |
||
4806 | grep -v '^ *+' conftest.er1 >conftest.err |
||
4807 | rm -f conftest.er1 |
||
4808 | cat conftest.err >&5 |
||
4809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4810 | (exit $ac_status); } && |
||
4811 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
4812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
4813 | (eval $ac_try) 2>&5 |
||
4814 | ac_status=$? |
||
4815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4816 | (exit $ac_status); }; } && |
||
4817 | { ac_try='test -s conftest$ac_exeext' |
||
4818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
4819 | (eval $ac_try) 2>&5 |
||
4820 | ac_status=$? |
||
4821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4822 | (exit $ac_status); }; }; then |
||
4823 | eval "$as_ac_var=yes" |
||
4824 | else |
||
4825 | echo "$as_me: failed program was:" >&5 |
||
4826 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
4827 | |||
4828 | eval "$as_ac_var=no" |
||
4829 | fi |
||
4830 | rm -f conftest.err conftest.$ac_objext \ |
||
4831 | conftest$ac_exeext conftest.$ac_ext |
||
4832 | fi |
||
4833 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
||
4834 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
||
4835 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
||
4836 | |||
4837 | cat >>confdefs.h <<_ACEOF |
||
4838 | #define CRAY_STACKSEG_END $ac_func |
||
4839 | _ACEOF |
||
4840 | |||
4841 | break |
||
4842 | fi |
||
4843 | |||
4844 | done |
||
4845 | fi |
||
4846 | |||
4847 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
||
4848 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
||
4849 | if test "${ac_cv_c_stack_direction+set}" = set; then |
||
4850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
4851 | else |
||
4852 | if test "$cross_compiling" = yes; then |
||
4853 | ac_cv_c_stack_direction=0 |
||
4854 | else |
||
4855 | cat >conftest.$ac_ext <<_ACEOF |
||
4856 | /* confdefs.h. */ |
||
4857 | _ACEOF |
||
4858 | cat confdefs.h >>conftest.$ac_ext |
||
4859 | cat >>conftest.$ac_ext <<_ACEOF |
||
4860 | /* end confdefs.h. */ |
||
4861 | int |
||
4862 | find_stack_direction () |
||
4863 | { |
||
4864 | static char *addr = 0; |
||
4865 | auto char dummy; |
||
4866 | if (addr == 0) |
||
4867 | { |
||
4868 | addr = &dummy; |
||
4869 | return find_stack_direction (); |
||
4870 | } |
||
4871 | else |
||
4872 | return (&dummy > addr) ? 1 : -1; |
||
4873 | } |
||
4874 | |||
4875 | int |
||
4876 | main () |
||
4877 | { |
||
4878 | exit (find_stack_direction () < 0); |
||
4879 | } |
||
4880 | _ACEOF |
||
4881 | rm -f conftest$ac_exeext |
||
4882 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
4883 | (eval $ac_link) 2>&5 |
||
4884 | ac_status=$? |
||
4885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4886 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
||
4887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
4888 | (eval $ac_try) 2>&5 |
||
4889 | ac_status=$? |
||
4890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4891 | (exit $ac_status); }; }; then |
||
4892 | ac_cv_c_stack_direction=1 |
||
4893 | else |
||
4894 | echo "$as_me: program exited with status $ac_status" >&5 |
||
4895 | echo "$as_me: failed program was:" >&5 |
||
4896 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
4897 | |||
4898 | ( exit $ac_status ) |
||
4899 | ac_cv_c_stack_direction=-1 |
||
4900 | fi |
||
4901 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
||
4902 | fi |
||
4903 | fi |
||
4904 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
||
4905 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
||
4906 | |||
4907 | cat >>confdefs.h <<_ACEOF |
||
4908 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
||
4909 | _ACEOF |
||
4910 | |||
4911 | |||
4912 | fi |
||
4913 | |||
4914 | |||
4915 | |||
4916 | |||
4917 | |||
4918 | |||
4919 | ac_header_dirent=no |
||
4920 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
||
4921 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
||
4922 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
||
4923 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
||
4924 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
||
4925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
4926 | else |
||
4927 | cat >conftest.$ac_ext <<_ACEOF |
||
4928 | /* confdefs.h. */ |
||
4929 | _ACEOF |
||
4930 | cat confdefs.h >>conftest.$ac_ext |
||
4931 | cat >>conftest.$ac_ext <<_ACEOF |
||
4932 | /* end confdefs.h. */ |
||
4933 | #include <sys/types.h> |
||
4934 | #include <$ac_hdr> |
||
4935 | |||
4936 | int |
||
4937 | main () |
||
4938 | { |
||
4939 | if ((DIR *) 0) |
||
4940 | return 0; |
||
4941 | ; |
||
4942 | return 0; |
||
4943 | } |
||
4944 | _ACEOF |
||
4945 | rm -f conftest.$ac_objext |
||
4946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
4947 | (eval $ac_compile) 2>conftest.er1 |
||
4948 | ac_status=$? |
||
4949 | grep -v '^ *+' conftest.er1 >conftest.err |
||
4950 | rm -f conftest.er1 |
||
4951 | cat conftest.err >&5 |
||
4952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4953 | (exit $ac_status); } && |
||
4954 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
4955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
4956 | (eval $ac_try) 2>&5 |
||
4957 | ac_status=$? |
||
4958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4959 | (exit $ac_status); }; } && |
||
4960 | { ac_try='test -s conftest.$ac_objext' |
||
4961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
4962 | (eval $ac_try) 2>&5 |
||
4963 | ac_status=$? |
||
4964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
4965 | (exit $ac_status); }; }; then |
||
4966 | eval "$as_ac_Header=yes" |
||
4967 | else |
||
4968 | echo "$as_me: failed program was:" >&5 |
||
4969 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
4970 | |||
4971 | eval "$as_ac_Header=no" |
||
4972 | fi |
||
4973 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
||
4974 | fi |
||
4975 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
||
4976 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
||
4977 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
||
4978 | cat >>confdefs.h <<_ACEOF |
||
4979 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
||
4980 | _ACEOF |
||
4981 | |||
4982 | ac_header_dirent=$ac_hdr; break |
||
4983 | fi |
||
4984 | |||
4985 | done |
||
4986 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
||
4987 | if test $ac_header_dirent = dirent.h; then |
||
4988 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
||
4989 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
||
4990 | if test "${ac_cv_search_opendir+set}" = set; then |
||
4991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
4992 | else |
||
4993 | ac_func_search_save_LIBS=$LIBS |
||
4994 | ac_cv_search_opendir=no |
||
4995 | cat >conftest.$ac_ext <<_ACEOF |
||
4996 | /* confdefs.h. */ |
||
4997 | _ACEOF |
||
4998 | cat confdefs.h >>conftest.$ac_ext |
||
4999 | cat >>conftest.$ac_ext <<_ACEOF |
||
5000 | /* end confdefs.h. */ |
||
5001 | |||
5002 | /* Override any gcc2 internal prototype to avoid an error. */ |
||
5003 | #ifdef __cplusplus |
||
5004 | extern "C" |
||
5005 | #endif |
||
5006 | /* We use char because int might match the return type of a gcc2 |
||
5007 | builtin and then its argument prototype would still apply. */ |
||
5008 | char opendir (); |
||
5009 | int |
||
5010 | main () |
||
5011 | { |
||
5012 | opendir (); |
||
5013 | ; |
||
5014 | return 0; |
||
5015 | } |
||
5016 | _ACEOF |
||
5017 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
5018 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
5019 | (eval $ac_link) 2>conftest.er1 |
||
5020 | ac_status=$? |
||
5021 | grep -v '^ *+' conftest.er1 >conftest.err |
||
5022 | rm -f conftest.er1 |
||
5023 | cat conftest.err >&5 |
||
5024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5025 | (exit $ac_status); } && |
||
5026 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
5027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
5028 | (eval $ac_try) 2>&5 |
||
5029 | ac_status=$? |
||
5030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5031 | (exit $ac_status); }; } && |
||
5032 | { ac_try='test -s conftest$ac_exeext' |
||
5033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
5034 | (eval $ac_try) 2>&5 |
||
5035 | ac_status=$? |
||
5036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5037 | (exit $ac_status); }; }; then |
||
5038 | ac_cv_search_opendir="none required" |
||
5039 | else |
||
5040 | echo "$as_me: failed program was:" >&5 |
||
5041 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
5042 | |||
5043 | fi |
||
5044 | rm -f conftest.err conftest.$ac_objext \ |
||
5045 | conftest$ac_exeext conftest.$ac_ext |
||
5046 | if test "$ac_cv_search_opendir" = no; then |
||
5047 | for ac_lib in dir; do |
||
5048 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
||
5049 | cat >conftest.$ac_ext <<_ACEOF |
||
5050 | /* confdefs.h. */ |
||
5051 | _ACEOF |
||
5052 | cat confdefs.h >>conftest.$ac_ext |
||
5053 | cat >>conftest.$ac_ext <<_ACEOF |
||
5054 | /* end confdefs.h. */ |
||
5055 | |||
5056 | /* Override any gcc2 internal prototype to avoid an error. */ |
||
5057 | #ifdef __cplusplus |
||
5058 | extern "C" |
||
5059 | #endif |
||
5060 | /* We use char because int might match the return type of a gcc2 |
||
5061 | builtin and then its argument prototype would still apply. */ |
||
5062 | char opendir (); |
||
5063 | int |
||
5064 | main () |
||
5065 | { |
||
5066 | opendir (); |
||
5067 | ; |
||
5068 | return 0; |
||
5069 | } |
||
5070 | _ACEOF |
||
5071 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
5072 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
5073 | (eval $ac_link) 2>conftest.er1 |
||
5074 | ac_status=$? |
||
5075 | grep -v '^ *+' conftest.er1 >conftest.err |
||
5076 | rm -f conftest.er1 |
||
5077 | cat conftest.err >&5 |
||
5078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5079 | (exit $ac_status); } && |
||
5080 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
5081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
5082 | (eval $ac_try) 2>&5 |
||
5083 | ac_status=$? |
||
5084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5085 | (exit $ac_status); }; } && |
||
5086 | { ac_try='test -s conftest$ac_exeext' |
||
5087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
5088 | (eval $ac_try) 2>&5 |
||
5089 | ac_status=$? |
||
5090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5091 | (exit $ac_status); }; }; then |
||
5092 | ac_cv_search_opendir="-l$ac_lib" |
||
5093 | break |
||
5094 | else |
||
5095 | echo "$as_me: failed program was:" >&5 |
||
5096 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
5097 | |||
5098 | fi |
||
5099 | rm -f conftest.err conftest.$ac_objext \ |
||
5100 | conftest$ac_exeext conftest.$ac_ext |
||
5101 | done |
||
5102 | fi |
||
5103 | LIBS=$ac_func_search_save_LIBS |
||
5104 | fi |
||
5105 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
||
5106 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
||
5107 | if test "$ac_cv_search_opendir" != no; then |
||
5108 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
||
5109 | |||
5110 | fi |
||
5111 | |||
5112 | else |
||
5113 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
||
5114 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
||
5115 | if test "${ac_cv_search_opendir+set}" = set; then |
||
5116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
5117 | else |
||
5118 | ac_func_search_save_LIBS=$LIBS |
||
5119 | ac_cv_search_opendir=no |
||
5120 | cat >conftest.$ac_ext <<_ACEOF |
||
5121 | /* confdefs.h. */ |
||
5122 | _ACEOF |
||
5123 | cat confdefs.h >>conftest.$ac_ext |
||
5124 | cat >>conftest.$ac_ext <<_ACEOF |
||
5125 | /* end confdefs.h. */ |
||
5126 | |||
5127 | /* Override any gcc2 internal prototype to avoid an error. */ |
||
5128 | #ifdef __cplusplus |
||
5129 | extern "C" |
||
5130 | #endif |
||
5131 | /* We use char because int might match the return type of a gcc2 |
||
5132 | builtin and then its argument prototype would still apply. */ |
||
5133 | char opendir (); |
||
5134 | int |
||
5135 | main () |
||
5136 | { |
||
5137 | opendir (); |
||
5138 | ; |
||
5139 | return 0; |
||
5140 | } |
||
5141 | _ACEOF |
||
5142 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
5143 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
5144 | (eval $ac_link) 2>conftest.er1 |
||
5145 | ac_status=$? |
||
5146 | grep -v '^ *+' conftest.er1 >conftest.err |
||
5147 | rm -f conftest.er1 |
||
5148 | cat conftest.err >&5 |
||
5149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5150 | (exit $ac_status); } && |
||
5151 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
5152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
5153 | (eval $ac_try) 2>&5 |
||
5154 | ac_status=$? |
||
5155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5156 | (exit $ac_status); }; } && |
||
5157 | { ac_try='test -s conftest$ac_exeext' |
||
5158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
5159 | (eval $ac_try) 2>&5 |
||
5160 | ac_status=$? |
||
5161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5162 | (exit $ac_status); }; }; then |
||
5163 | ac_cv_search_opendir="none required" |
||
5164 | else |
||
5165 | echo "$as_me: failed program was:" >&5 |
||
5166 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
5167 | |||
5168 | fi |
||
5169 | rm -f conftest.err conftest.$ac_objext \ |
||
5170 | conftest$ac_exeext conftest.$ac_ext |
||
5171 | if test "$ac_cv_search_opendir" = no; then |
||
5172 | for ac_lib in x; do |
||
5173 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
||
5174 | cat >conftest.$ac_ext <<_ACEOF |
||
5175 | /* confdefs.h. */ |
||
5176 | _ACEOF |
||
5177 | cat confdefs.h >>conftest.$ac_ext |
||
5178 | cat >>conftest.$ac_ext <<_ACEOF |
||
5179 | /* end confdefs.h. */ |
||
5180 | |||
5181 | /* Override any gcc2 internal prototype to avoid an error. */ |
||
5182 | #ifdef __cplusplus |
||
5183 | extern "C" |
||
5184 | #endif |
||
5185 | /* We use char because int might match the return type of a gcc2 |
||
5186 | builtin and then its argument prototype would still apply. */ |
||
5187 | char opendir (); |
||
5188 | int |
||
5189 | main () |
||
5190 | { |
||
5191 | opendir (); |
||
5192 | ; |
||
5193 | return 0; |
||
5194 | } |
||
5195 | _ACEOF |
||
5196 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
5197 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
5198 | (eval $ac_link) 2>conftest.er1 |
||
5199 | ac_status=$? |
||
5200 | grep -v '^ *+' conftest.er1 >conftest.err |
||
5201 | rm -f conftest.er1 |
||
5202 | cat conftest.err >&5 |
||
5203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5204 | (exit $ac_status); } && |
||
5205 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
5206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
5207 | (eval $ac_try) 2>&5 |
||
5208 | ac_status=$? |
||
5209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5210 | (exit $ac_status); }; } && |
||
5211 | { ac_try='test -s conftest$ac_exeext' |
||
5212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
5213 | (eval $ac_try) 2>&5 |
||
5214 | ac_status=$? |
||
5215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5216 | (exit $ac_status); }; }; then |
||
5217 | ac_cv_search_opendir="-l$ac_lib" |
||
5218 | break |
||
5219 | else |
||
5220 | echo "$as_me: failed program was:" >&5 |
||
5221 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
5222 | |||
5223 | fi |
||
5224 | rm -f conftest.err conftest.$ac_objext \ |
||
5225 | conftest$ac_exeext conftest.$ac_ext |
||
5226 | done |
||
5227 | fi |
||
5228 | LIBS=$ac_func_search_save_LIBS |
||
5229 | fi |
||
5230 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
||
5231 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
||
5232 | if test "$ac_cv_search_opendir" != no; then |
||
5233 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
||
5234 | |||
5235 | fi |
||
5236 | |||
5237 | fi |
||
5238 | |||
5239 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
||
5240 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
||
5241 | if test "${ac_cv_header_stdc+set}" = set; then |
||
5242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
5243 | else |
||
5244 | cat >conftest.$ac_ext <<_ACEOF |
||
5245 | /* confdefs.h. */ |
||
5246 | _ACEOF |
||
5247 | cat confdefs.h >>conftest.$ac_ext |
||
5248 | cat >>conftest.$ac_ext <<_ACEOF |
||
5249 | /* end confdefs.h. */ |
||
5250 | #include <stdlib.h> |
||
5251 | #include <stdarg.h> |
||
5252 | #include <string.h> |
||
5253 | #include <float.h> |
||
5254 | |||
5255 | int |
||
5256 | main () |
||
5257 | { |
||
5258 | |||
5259 | ; |
||
5260 | return 0; |
||
5261 | } |
||
5262 | _ACEOF |
||
5263 | rm -f conftest.$ac_objext |
||
5264 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
5265 | (eval $ac_compile) 2>conftest.er1 |
||
5266 | ac_status=$? |
||
5267 | grep -v '^ *+' conftest.er1 >conftest.err |
||
5268 | rm -f conftest.er1 |
||
5269 | cat conftest.err >&5 |
||
5270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5271 | (exit $ac_status); } && |
||
5272 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
5273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
5274 | (eval $ac_try) 2>&5 |
||
5275 | ac_status=$? |
||
5276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5277 | (exit $ac_status); }; } && |
||
5278 | { ac_try='test -s conftest.$ac_objext' |
||
5279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
5280 | (eval $ac_try) 2>&5 |
||
5281 | ac_status=$? |
||
5282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5283 | (exit $ac_status); }; }; then |
||
5284 | ac_cv_header_stdc=yes |
||
5285 | else |
||
5286 | echo "$as_me: failed program was:" >&5 |
||
5287 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
5288 | |||
5289 | ac_cv_header_stdc=no |
||
5290 | fi |
||
5291 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
||
5292 | |||
5293 | if test $ac_cv_header_stdc = yes; then |
||
5294 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
||
5295 | cat >conftest.$ac_ext <<_ACEOF |
||
5296 | /* confdefs.h. */ |
||
5297 | _ACEOF |
||
5298 | cat confdefs.h >>conftest.$ac_ext |
||
5299 | cat >>conftest.$ac_ext <<_ACEOF |
||
5300 | /* end confdefs.h. */ |
||
5301 | #include <string.h> |
||
5302 | |||
5303 | _ACEOF |
||
5304 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
||
5305 | $EGREP "memchr" >/dev/null 2>&1; then |
||
5306 | : |
||
5307 | else |
||
5308 | ac_cv_header_stdc=no |
||
5309 | fi |
||
5310 | rm -f conftest* |
||
5311 | |||
5312 | fi |
||
5313 | |||
5314 | if test $ac_cv_header_stdc = yes; then |
||
5315 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
||
5316 | cat >conftest.$ac_ext <<_ACEOF |
||
5317 | /* confdefs.h. */ |
||
5318 | _ACEOF |
||
5319 | cat confdefs.h >>conftest.$ac_ext |
||
5320 | cat >>conftest.$ac_ext <<_ACEOF |
||
5321 | /* end confdefs.h. */ |
||
5322 | #include <stdlib.h> |
||
5323 | |||
5324 | _ACEOF |
||
5325 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
||
5326 | $EGREP "free" >/dev/null 2>&1; then |
||
5327 | : |
||
5328 | else |
||
5329 | ac_cv_header_stdc=no |
||
5330 | fi |
||
5331 | rm -f conftest* |
||
5332 | |||
5333 | fi |
||
5334 | |||
5335 | if test $ac_cv_header_stdc = yes; then |
||
5336 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
||
5337 | if test "$cross_compiling" = yes; then |
||
5338 | : |
||
5339 | else |
||
5340 | cat >conftest.$ac_ext <<_ACEOF |
||
5341 | /* confdefs.h. */ |
||
5342 | _ACEOF |
||
5343 | cat confdefs.h >>conftest.$ac_ext |
||
5344 | cat >>conftest.$ac_ext <<_ACEOF |
||
5345 | /* end confdefs.h. */ |
||
5346 | #include <ctype.h> |
||
5347 | #if ((' ' & 0x0FF) == 0x020) |
||
5348 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
||
5349 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
||
5350 | #else |
||
5351 | # define ISLOWER(c) \ |
||
5352 | (('a' <= (c) && (c) <= 'i') \ |
||
5353 | || ('j' <= (c) && (c) <= 'r') \ |
||
5354 | || ('s' <= (c) && (c) <= 'z')) |
||
5355 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
||
5356 | #endif |
||
5357 | |||
5358 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
||
5359 | int |
||
5360 | main () |
||
5361 | { |
||
5362 | int i; |
||
5363 | for (i = 0; i < 256; i++) |
||
5364 | if (XOR (islower (i), ISLOWER (i)) |
||
5365 | || toupper (i) != TOUPPER (i)) |
||
5366 | exit(2); |
||
5367 | exit (0); |
||
5368 | } |
||
5369 | _ACEOF |
||
5370 | rm -f conftest$ac_exeext |
||
5371 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
5372 | (eval $ac_link) 2>&5 |
||
5373 | ac_status=$? |
||
5374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5375 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
||
5376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
5377 | (eval $ac_try) 2>&5 |
||
5378 | ac_status=$? |
||
5379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5380 | (exit $ac_status); }; }; then |
||
5381 | : |
||
5382 | else |
||
5383 | echo "$as_me: program exited with status $ac_status" >&5 |
||
5384 | echo "$as_me: failed program was:" >&5 |
||
5385 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
5386 | |||
5387 | ( exit $ac_status ) |
||
5388 | ac_cv_header_stdc=no |
||
5389 | fi |
||
5390 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
||
5391 | fi |
||
5392 | fi |
||
5393 | fi |
||
5394 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
||
5395 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
||
5396 | if test $ac_cv_header_stdc = yes; then |
||
5397 | |||
5398 | cat >>confdefs.h <<\_ACEOF |
||
5399 | #define STDC_HEADERS 1 |
||
5400 | _ACEOF |
||
5401 | |||
5402 | fi |
||
5403 | |||
5404 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
||
5405 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
||
5406 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
||
5407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
5408 | else |
||
5409 | cat >conftest.$ac_ext <<_ACEOF |
||
5410 | /* confdefs.h. */ |
||
5411 | _ACEOF |
||
5412 | cat confdefs.h >>conftest.$ac_ext |
||
5413 | cat >>conftest.$ac_ext <<_ACEOF |
||
5414 | /* end confdefs.h. */ |
||
5415 | #include <sys/types.h> |
||
5416 | #include <sys/wait.h> |
||
5417 | #ifndef WEXITSTATUS |
||
5418 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
||
5419 | #endif |
||
5420 | #ifndef WIFEXITED |
||
5421 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
||
5422 | #endif |
||
5423 | |||
5424 | int |
||
5425 | main () |
||
5426 | { |
||
5427 | int s; |
||
5428 | wait (&s); |
||
5429 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
||
5430 | ; |
||
5431 | return 0; |
||
5432 | } |
||
5433 | _ACEOF |
||
5434 | rm -f conftest.$ac_objext |
||
5435 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
5436 | (eval $ac_compile) 2>conftest.er1 |
||
5437 | ac_status=$? |
||
5438 | grep -v '^ *+' conftest.er1 >conftest.err |
||
5439 | rm -f conftest.er1 |
||
5440 | cat conftest.err >&5 |
||
5441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5442 | (exit $ac_status); } && |
||
5443 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
5444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
5445 | (eval $ac_try) 2>&5 |
||
5446 | ac_status=$? |
||
5447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5448 | (exit $ac_status); }; } && |
||
5449 | { ac_try='test -s conftest.$ac_objext' |
||
5450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
5451 | (eval $ac_try) 2>&5 |
||
5452 | ac_status=$? |
||
5453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5454 | (exit $ac_status); }; }; then |
||
5455 | ac_cv_header_sys_wait_h=yes |
||
5456 | else |
||
5457 | echo "$as_me: failed program was:" >&5 |
||
5458 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
5459 | |||
5460 | ac_cv_header_sys_wait_h=no |
||
5461 | fi |
||
5462 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
||
5463 | fi |
||
5464 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
||
5465 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
||
5466 | if test $ac_cv_header_sys_wait_h = yes; then |
||
5467 | |||
5468 | cat >>confdefs.h <<\_ACEOF |
||
5469 | #define HAVE_SYS_WAIT_H 1 |
||
5470 | _ACEOF |
||
5471 | |||
5472 | fi |
||
5473 | |||
5474 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
||
5475 | |||
5476 | |||
5477 | |||
5478 | |||
5479 | |||
5480 | |||
5481 | |||
5482 | |||
5483 | |||
5484 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
||
5485 | inttypes.h stdint.h unistd.h |
||
5486 | do |
||
5487 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
||
5488 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
||
5489 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
||
5490 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
||
5491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
5492 | else |
||
5493 | cat >conftest.$ac_ext <<_ACEOF |
||
5494 | /* confdefs.h. */ |
||
5495 | _ACEOF |
||
5496 | cat confdefs.h >>conftest.$ac_ext |
||
5497 | cat >>conftest.$ac_ext <<_ACEOF |
||
5498 | /* end confdefs.h. */ |
||
5499 | $ac_includes_default |
||
5500 | |||
5501 | #include <$ac_header> |
||
5502 | _ACEOF |
||
5503 | rm -f conftest.$ac_objext |
||
5504 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
5505 | (eval $ac_compile) 2>conftest.er1 |
||
5506 | ac_status=$? |
||
5507 | grep -v '^ *+' conftest.er1 >conftest.err |
||
5508 | rm -f conftest.er1 |
||
5509 | cat conftest.err >&5 |
||
5510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5511 | (exit $ac_status); } && |
||
5512 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
5513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
5514 | (eval $ac_try) 2>&5 |
||
5515 | ac_status=$? |
||
5516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5517 | (exit $ac_status); }; } && |
||
5518 | { ac_try='test -s conftest.$ac_objext' |
||
5519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
5520 | (eval $ac_try) 2>&5 |
||
5521 | ac_status=$? |
||
5522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5523 | (exit $ac_status); }; }; then |
||
5524 | eval "$as_ac_Header=yes" |
||
5525 | else |
||
5526 | echo "$as_me: failed program was:" >&5 |
||
5527 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
5528 | |||
5529 | eval "$as_ac_Header=no" |
||
5530 | fi |
||
5531 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
||
5532 | fi |
||
5533 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
||
5534 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
||
5535 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
||
5536 | cat >>confdefs.h <<_ACEOF |
||
5537 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
||
5538 | _ACEOF |
||
5539 | |||
5540 | fi |
||
5541 | |||
5542 | done |
||
5543 | |||
5544 | |||
5545 | if test "${ac_cv_header_memory_h+set}" = set; then |
||
5546 | echo "$as_me:$LINENO: checking for memory.h" >&5 |
||
5547 | echo $ECHO_N "checking for memory.h... $ECHO_C" >&6 |
||
5548 | if test "${ac_cv_header_memory_h+set}" = set; then |
||
5549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
5550 | fi |
||
5551 | echo "$as_me:$LINENO: result: $ac_cv_header_memory_h" >&5 |
||
5552 | echo "${ECHO_T}$ac_cv_header_memory_h" >&6 |
||
5553 | else |
||
5554 | # Is the header compilable? |
||
5555 | echo "$as_me:$LINENO: checking memory.h usability" >&5 |
||
5556 | echo $ECHO_N "checking memory.h usability... $ECHO_C" >&6 |
||
5557 | cat >conftest.$ac_ext <<_ACEOF |
||
5558 | /* confdefs.h. */ |
||
5559 | _ACEOF |
||
5560 | cat confdefs.h >>conftest.$ac_ext |
||
5561 | cat >>conftest.$ac_ext <<_ACEOF |
||
5562 | /* end confdefs.h. */ |
||
5563 | $ac_includes_default |
||
5564 | #include <memory.h> |
||
5565 | _ACEOF |
||
5566 | rm -f conftest.$ac_objext |
||
5567 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
5568 | (eval $ac_compile) 2>conftest.er1 |
||
5569 | ac_status=$? |
||
5570 | grep -v '^ *+' conftest.er1 >conftest.err |
||
5571 | rm -f conftest.er1 |
||
5572 | cat conftest.err >&5 |
||
5573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5574 | (exit $ac_status); } && |
||
5575 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
5576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
5577 | (eval $ac_try) 2>&5 |
||
5578 | ac_status=$? |
||
5579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5580 | (exit $ac_status); }; } && |
||
5581 | { ac_try='test -s conftest.$ac_objext' |
||
5582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
5583 | (eval $ac_try) 2>&5 |
||
5584 | ac_status=$? |
||
5585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5586 | (exit $ac_status); }; }; then |
||
5587 | ac_header_compiler=yes |
||
5588 | else |
||
5589 | echo "$as_me: failed program was:" >&5 |
||
5590 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
5591 | |||
5592 | ac_header_compiler=no |
||
5593 | fi |
||
5594 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
||
5595 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
||
5596 | echo "${ECHO_T}$ac_header_compiler" >&6 |
||
5597 | |||
5598 | # Is the header present? |
||
5599 | echo "$as_me:$LINENO: checking memory.h presence" >&5 |
||
5600 | echo $ECHO_N "checking memory.h presence... $ECHO_C" >&6 |
||
5601 | cat >conftest.$ac_ext <<_ACEOF |
||
5602 | /* confdefs.h. */ |
||
5603 | _ACEOF |
||
5604 | cat confdefs.h >>conftest.$ac_ext |
||
5605 | cat >>conftest.$ac_ext <<_ACEOF |
||
5606 | /* end confdefs.h. */ |
||
5607 | #include <memory.h> |
||
5608 | _ACEOF |
||
5609 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
||
5610 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
||
5611 | ac_status=$? |
||
5612 | grep -v '^ *+' conftest.er1 >conftest.err |
||
5613 | rm -f conftest.er1 |
||
5614 | cat conftest.err >&5 |
||
5615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5616 | (exit $ac_status); } >/dev/null; then |
||
5617 | if test -s conftest.err; then |
||
5618 | ac_cpp_err=$ac_c_preproc_warn_flag |
||
5619 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
||
5620 | else |
||
5621 | ac_cpp_err= |
||
5622 | fi |
||
5623 | else |
||
5624 | ac_cpp_err=yes |
||
5625 | fi |
||
5626 | if test -z "$ac_cpp_err"; then |
||
5627 | ac_header_preproc=yes |
||
5628 | else |
||
5629 | echo "$as_me: failed program was:" >&5 |
||
5630 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
5631 | |||
5632 | ac_header_preproc=no |
||
5633 | fi |
||
5634 | rm -f conftest.err conftest.$ac_ext |
||
5635 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
||
5636 | echo "${ECHO_T}$ac_header_preproc" >&6 |
||
5637 | |||
5638 | # So? What about this header? |
||
5639 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
||
5640 | yes:no: ) |
||
5641 | { echo "$as_me:$LINENO: WARNING: memory.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
||
5642 | echo "$as_me: WARNING: memory.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
||
5643 | { echo "$as_me:$LINENO: WARNING: memory.h: proceeding with the compiler's result" >&5 |
||
5644 | echo "$as_me: WARNING: memory.h: proceeding with the compiler's result" >&2;} |
||
5645 | ac_header_preproc=yes |
||
5646 | ;; |
||
5647 | no:yes:* ) |
||
5648 | { echo "$as_me:$LINENO: WARNING: memory.h: present but cannot be compiled" >&5 |
||
5649 | echo "$as_me: WARNING: memory.h: present but cannot be compiled" >&2;} |
||
5650 | { echo "$as_me:$LINENO: WARNING: memory.h: check for missing prerequisite headers?" >&5 |
||
5651 | echo "$as_me: WARNING: memory.h: check for missing prerequisite headers?" >&2;} |
||
5652 | { echo "$as_me:$LINENO: WARNING: memory.h: see the Autoconf documentation" >&5 |
||
5653 | echo "$as_me: WARNING: memory.h: see the Autoconf documentation" >&2;} |
||
5654 | { echo "$as_me:$LINENO: WARNING: memory.h: section \"Present But Cannot Be Compiled\"" >&5 |
||
5655 | echo "$as_me: WARNING: memory.h: section \"Present But Cannot Be Compiled\"" >&2;} |
||
5656 | { echo "$as_me:$LINENO: WARNING: memory.h: proceeding with the preprocessor's result" >&5 |
||
5657 | echo "$as_me: WARNING: memory.h: proceeding with the preprocessor's result" >&2;} |
||
5658 | { echo "$as_me:$LINENO: WARNING: memory.h: in the future, the compiler will take precedence" >&5 |
||
5659 | echo "$as_me: WARNING: memory.h: in the future, the compiler will take precedence" >&2;} |
||
5660 | ( |
||
5661 | cat <<\_ASBOX |
||
5662 | ## ---------------------------- ## |
||
5663 | ## Report this to xiao@unice.fr ## |
||
5664 | ## ---------------------------- ## |
||
5665 | _ASBOX |
||
5666 | ) | |
||
5667 | sed "s/^/$as_me: WARNING: /" >&2 |
||
5668 | ;; |
||
5669 | esac |
||
5670 | echo "$as_me:$LINENO: checking for memory.h" >&5 |
||
5671 | echo $ECHO_N "checking for memory.h... $ECHO_C" >&6 |
||
5672 | if test "${ac_cv_header_memory_h+set}" = set; then |
||
5673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
5674 | else |
||
5675 | ac_cv_header_memory_h=$ac_header_preproc |
||
5676 | fi |
||
5677 | echo "$as_me:$LINENO: result: $ac_cv_header_memory_h" >&5 |
||
5678 | echo "${ECHO_T}$ac_cv_header_memory_h" >&6 |
||
5679 | |||
5680 | fi |
||
5681 | if test $ac_cv_header_memory_h = yes; then |
||
5682 | |||
5683 | cat >>confdefs.h <<\_ACEOF |
||
5684 | #define NEED_MEMORY_H 1 |
||
5685 | _ACEOF |
||
5686 | |||
5687 | fi |
||
5688 | |||
5689 | |||
5690 | |||
5691 | |||
5692 | for ac_header in string.h memory.h |
||
5693 | do |
||
5694 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
||
5695 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
||
5696 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
||
5697 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
||
5698 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
||
5699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
5700 | fi |
||
5701 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
||
5702 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
||
5703 | else |
||
5704 | # Is the header compilable? |
||
5705 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
||
5706 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
||
5707 | cat >conftest.$ac_ext <<_ACEOF |
||
5708 | /* confdefs.h. */ |
||
5709 | _ACEOF |
||
5710 | cat confdefs.h >>conftest.$ac_ext |
||
5711 | cat >>conftest.$ac_ext <<_ACEOF |
||
5712 | /* end confdefs.h. */ |
||
5713 | $ac_includes_default |
||
5714 | #include <$ac_header> |
||
5715 | _ACEOF |
||
5716 | rm -f conftest.$ac_objext |
||
5717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
5718 | (eval $ac_compile) 2>conftest.er1 |
||
5719 | ac_status=$? |
||
5720 | grep -v '^ *+' conftest.er1 >conftest.err |
||
5721 | rm -f conftest.er1 |
||
5722 | cat conftest.err >&5 |
||
5723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5724 | (exit $ac_status); } && |
||
5725 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
5726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
5727 | (eval $ac_try) 2>&5 |
||
5728 | ac_status=$? |
||
5729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5730 | (exit $ac_status); }; } && |
||
5731 | { ac_try='test -s conftest.$ac_objext' |
||
5732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
5733 | (eval $ac_try) 2>&5 |
||
5734 | ac_status=$? |
||
5735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5736 | (exit $ac_status); }; }; then |
||
5737 | ac_header_compiler=yes |
||
5738 | else |
||
5739 | echo "$as_me: failed program was:" >&5 |
||
5740 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
5741 | |||
5742 | ac_header_compiler=no |
||
5743 | fi |
||
5744 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
||
5745 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
||
5746 | echo "${ECHO_T}$ac_header_compiler" >&6 |
||
5747 | |||
5748 | # Is the header present? |
||
5749 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
||
5750 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
||
5751 | cat >conftest.$ac_ext <<_ACEOF |
||
5752 | /* confdefs.h. */ |
||
5753 | _ACEOF |
||
5754 | cat confdefs.h >>conftest.$ac_ext |
||
5755 | cat >>conftest.$ac_ext <<_ACEOF |
||
5756 | /* end confdefs.h. */ |
||
5757 | #include <$ac_header> |
||
5758 | _ACEOF |
||
5759 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
||
5760 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
||
5761 | ac_status=$? |
||
5762 | grep -v '^ *+' conftest.er1 >conftest.err |
||
5763 | rm -f conftest.er1 |
||
5764 | cat conftest.err >&5 |
||
5765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5766 | (exit $ac_status); } >/dev/null; then |
||
5767 | if test -s conftest.err; then |
||
5768 | ac_cpp_err=$ac_c_preproc_warn_flag |
||
5769 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
||
5770 | else |
||
5771 | ac_cpp_err= |
||
5772 | fi |
||
5773 | else |
||
5774 | ac_cpp_err=yes |
||
5775 | fi |
||
5776 | if test -z "$ac_cpp_err"; then |
||
5777 | ac_header_preproc=yes |
||
5778 | else |
||
5779 | echo "$as_me: failed program was:" >&5 |
||
5780 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
5781 | |||
5782 | ac_header_preproc=no |
||
5783 | fi |
||
5784 | rm -f conftest.err conftest.$ac_ext |
||
5785 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
||
5786 | echo "${ECHO_T}$ac_header_preproc" >&6 |
||
5787 | |||
5788 | # So? What about this header? |
||
5789 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
||
5790 | yes:no: ) |
||
5791 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
||
5792 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
||
5793 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
||
5794 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
||
5795 | ac_header_preproc=yes |
||
5796 | ;; |
||
5797 | no:yes:* ) |
||
5798 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
||
5799 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
||
5800 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
||
5801 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
||
5802 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
||
5803 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
||
5804 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
||
5805 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
||
5806 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
||
5807 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
||
5808 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
||
5809 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
||
5810 | ( |
||
5811 | cat <<\_ASBOX |
||
5812 | ## ---------------------------- ## |
||
5813 | ## Report this to xiao@unice.fr ## |
||
5814 | ## ---------------------------- ## |
||
5815 | _ASBOX |
||
5816 | ) | |
||
5817 | sed "s/^/$as_me: WARNING: /" >&2 |
||
5818 | ;; |
||
5819 | esac |
||
5820 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
||
5821 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
||
5822 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
||
5823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
5824 | else |
||
5825 | eval "$as_ac_Header=\$ac_header_preproc" |
||
5826 | fi |
||
5827 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
||
5828 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
||
5829 | |||
5830 | fi |
||
5831 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
||
5832 | cat >>confdefs.h <<_ACEOF |
||
5833 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
||
5834 | _ACEOF |
||
5835 | |||
5836 | fi |
||
5837 | |||
5838 | done |
||
5839 | |||
5840 | |||
5841 | |||
5842 | |||
5843 | |||
5844 | |||
5845 | |||
5846 | |||
5847 | |||
5848 | |||
5849 | |||
5850 | |||
5851 | |||
5852 | |||
5853 | for ac_header in crypt.h arpa/inet.h fcntl.h malloc.h netdb.h netinet/in.h \ |
||
5854 | stdlib.h string.h sys/socket.h sys/time.h unistd.h utime.h |
||
5855 | do |
||
5856 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
||
5857 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
||
5858 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
||
5859 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
||
5860 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
||
5861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
5862 | fi |
||
5863 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
||
5864 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
||
5865 | else |
||
5866 | # Is the header compilable? |
||
5867 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
||
5868 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
||
5869 | cat >conftest.$ac_ext <<_ACEOF |
||
5870 | /* confdefs.h. */ |
||
5871 | _ACEOF |
||
5872 | cat confdefs.h >>conftest.$ac_ext |
||
5873 | cat >>conftest.$ac_ext <<_ACEOF |
||
5874 | /* end confdefs.h. */ |
||
5875 | $ac_includes_default |
||
5876 | #include <$ac_header> |
||
5877 | _ACEOF |
||
5878 | rm -f conftest.$ac_objext |
||
5879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
5880 | (eval $ac_compile) 2>conftest.er1 |
||
5881 | ac_status=$? |
||
5882 | grep -v '^ *+' conftest.er1 >conftest.err |
||
5883 | rm -f conftest.er1 |
||
5884 | cat conftest.err >&5 |
||
5885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5886 | (exit $ac_status); } && |
||
5887 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
5888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
5889 | (eval $ac_try) 2>&5 |
||
5890 | ac_status=$? |
||
5891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5892 | (exit $ac_status); }; } && |
||
5893 | { ac_try='test -s conftest.$ac_objext' |
||
5894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
5895 | (eval $ac_try) 2>&5 |
||
5896 | ac_status=$? |
||
5897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5898 | (exit $ac_status); }; }; then |
||
5899 | ac_header_compiler=yes |
||
5900 | else |
||
5901 | echo "$as_me: failed program was:" >&5 |
||
5902 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
5903 | |||
5904 | ac_header_compiler=no |
||
5905 | fi |
||
5906 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
||
5907 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
||
5908 | echo "${ECHO_T}$ac_header_compiler" >&6 |
||
5909 | |||
5910 | # Is the header present? |
||
5911 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
||
5912 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
||
5913 | cat >conftest.$ac_ext <<_ACEOF |
||
5914 | /* confdefs.h. */ |
||
5915 | _ACEOF |
||
5916 | cat confdefs.h >>conftest.$ac_ext |
||
5917 | cat >>conftest.$ac_ext <<_ACEOF |
||
5918 | /* end confdefs.h. */ |
||
5919 | #include <$ac_header> |
||
5920 | _ACEOF |
||
5921 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
||
5922 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
||
5923 | ac_status=$? |
||
5924 | grep -v '^ *+' conftest.er1 >conftest.err |
||
5925 | rm -f conftest.er1 |
||
5926 | cat conftest.err >&5 |
||
5927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
5928 | (exit $ac_status); } >/dev/null; then |
||
5929 | if test -s conftest.err; then |
||
5930 | ac_cpp_err=$ac_c_preproc_warn_flag |
||
5931 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
||
5932 | else |
||
5933 | ac_cpp_err= |
||
5934 | fi |
||
5935 | else |
||
5936 | ac_cpp_err=yes |
||
5937 | fi |
||
5938 | if test -z "$ac_cpp_err"; then |
||
5939 | ac_header_preproc=yes |
||
5940 | else |
||
5941 | echo "$as_me: failed program was:" >&5 |
||
5942 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
5943 | |||
5944 | ac_header_preproc=no |
||
5945 | fi |
||
5946 | rm -f conftest.err conftest.$ac_ext |
||
5947 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
||
5948 | echo "${ECHO_T}$ac_header_preproc" >&6 |
||
5949 | |||
5950 | # So? What about this header? |
||
5951 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
||
5952 | yes:no: ) |
||
5953 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
||
5954 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
||
5955 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
||
5956 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
||
5957 | ac_header_preproc=yes |
||
5958 | ;; |
||
5959 | no:yes:* ) |
||
5960 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
||
5961 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
||
5962 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
||
5963 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
||
5964 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
||
5965 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
||
5966 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
||
5967 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
||
5968 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
||
5969 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
||
5970 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
||
5971 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
||
5972 | ( |
||
5973 | cat <<\_ASBOX |
||
5974 | ## ---------------------------- ## |
||
5975 | ## Report this to xiao@unice.fr ## |
||
5976 | ## ---------------------------- ## |
||
5977 | _ASBOX |
||
5978 | ) | |
||
5979 | sed "s/^/$as_me: WARNING: /" >&2 |
||
5980 | ;; |
||
5981 | esac |
||
5982 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
||
5983 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
||
5984 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
||
5985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
5986 | else |
||
5987 | eval "$as_ac_Header=\$ac_header_preproc" |
||
5988 | fi |
||
5989 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
||
5990 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
||
5991 | |||
5992 | fi |
||
5993 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
||
5994 | cat >>confdefs.h <<_ACEOF |
||
5995 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
||
5996 | _ACEOF |
||
5997 | |||
5998 | fi |
||
5999 | |||
6000 | done |
||
6001 | |||
6002 | |||
6003 | # Checks for typedefs, structures, and compiler characteristics. |
||
6004 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
||
6005 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
||
6006 | if test "${ac_cv_c_const+set}" = set; then |
||
6007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
6008 | else |
||
6009 | cat >conftest.$ac_ext <<_ACEOF |
||
6010 | /* confdefs.h. */ |
||
6011 | _ACEOF |
||
6012 | cat confdefs.h >>conftest.$ac_ext |
||
6013 | cat >>conftest.$ac_ext <<_ACEOF |
||
6014 | /* end confdefs.h. */ |
||
6015 | |||
6016 | int |
||
6017 | main () |
||
6018 | { |
||
6019 | /* FIXME: Include the comments suggested by Paul. */ |
||
6020 | #ifndef __cplusplus |
||
6021 | /* Ultrix mips cc rejects this. */ |
||
6022 | typedef int charset[2]; |
||
6023 | const charset x; |
||
6024 | /* SunOS 4.1.1 cc rejects this. */ |
||
6025 | char const *const *ccp; |
||
6026 | char **p; |
||
6027 | /* NEC SVR4.0.2 mips cc rejects this. */ |
||
6028 | struct point {int x, y;}; |
||
6029 | static struct point const zero = {0,0}; |
||
6030 | /* AIX XL C 1.02.0.0 rejects this. |
||
6031 | It does not let you subtract one const X* pointer from another in |
||
6032 | an arm of an if-expression whose if-part is not a constant |
||
6033 | expression */ |
||
6034 | const char *g = "string"; |
||
6035 | ccp = &g + (g ? g-g : 0); |
||
6036 | /* HPUX 7.0 cc rejects these. */ |
||
6037 | ++ccp; |
||
6038 | p = (char**) ccp; |
||
6039 | ccp = (char const *const *) p; |
||
6040 | { /* SCO 3.2v4 cc rejects this. */ |
||
6041 | char *t; |
||
6042 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
||
6043 | |||
6044 | *t++ = 0; |
||
6045 | } |
||
6046 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
||
6047 | int x[] = {25, 17}; |
||
6048 | const int *foo = &x[0]; |
||
6049 | ++foo; |
||
6050 | } |
||
6051 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
||
6052 | typedef const int *iptr; |
||
6053 | iptr p = 0; |
||
6054 | ++p; |
||
6055 | } |
||
6056 | { /* AIX XL C 1.02.0.0 rejects this saying |
||
6057 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
||
6058 | struct s { int j; const int *ap[3]; }; |
||
6059 | struct s *b; b->j = 5; |
||
6060 | } |
||
6061 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
||
6062 | const int foo = 10; |
||
6063 | } |
||
6064 | #endif |
||
6065 | |||
6066 | ; |
||
6067 | return 0; |
||
6068 | } |
||
6069 | _ACEOF |
||
6070 | rm -f conftest.$ac_objext |
||
6071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
6072 | (eval $ac_compile) 2>conftest.er1 |
||
6073 | ac_status=$? |
||
6074 | grep -v '^ *+' conftest.er1 >conftest.err |
||
6075 | rm -f conftest.er1 |
||
6076 | cat conftest.err >&5 |
||
6077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6078 | (exit $ac_status); } && |
||
6079 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
6080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
6081 | (eval $ac_try) 2>&5 |
||
6082 | ac_status=$? |
||
6083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6084 | (exit $ac_status); }; } && |
||
6085 | { ac_try='test -s conftest.$ac_objext' |
||
6086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
6087 | (eval $ac_try) 2>&5 |
||
6088 | ac_status=$? |
||
6089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6090 | (exit $ac_status); }; }; then |
||
6091 | ac_cv_c_const=yes |
||
6092 | else |
||
6093 | echo "$as_me: failed program was:" >&5 |
||
6094 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
6095 | |||
6096 | ac_cv_c_const=no |
||
6097 | fi |
||
6098 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
||
6099 | fi |
||
6100 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
||
6101 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
||
6102 | if test $ac_cv_c_const = no; then |
||
6103 | |||
6104 | cat >>confdefs.h <<\_ACEOF |
||
6105 | #define const |
||
6106 | _ACEOF |
||
6107 | |||
6108 | fi |
||
6109 | |||
6110 | echo "$as_me:$LINENO: checking for inline" >&5 |
||
6111 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
||
6112 | if test "${ac_cv_c_inline+set}" = set; then |
||
6113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
6114 | else |
||
6115 | ac_cv_c_inline=no |
||
6116 | for ac_kw in inline __inline__ __inline; do |
||
6117 | cat >conftest.$ac_ext <<_ACEOF |
||
6118 | /* confdefs.h. */ |
||
6119 | _ACEOF |
||
6120 | cat confdefs.h >>conftest.$ac_ext |
||
6121 | cat >>conftest.$ac_ext <<_ACEOF |
||
6122 | /* end confdefs.h. */ |
||
6123 | #ifndef __cplusplus |
||
6124 | typedef int foo_t; |
||
6125 | static $ac_kw foo_t static_foo () {return 0; } |
||
6126 | $ac_kw foo_t foo () {return 0; } |
||
6127 | #endif |
||
6128 | |||
6129 | _ACEOF |
||
6130 | rm -f conftest.$ac_objext |
||
6131 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
6132 | (eval $ac_compile) 2>conftest.er1 |
||
6133 | ac_status=$? |
||
6134 | grep -v '^ *+' conftest.er1 >conftest.err |
||
6135 | rm -f conftest.er1 |
||
6136 | cat conftest.err >&5 |
||
6137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6138 | (exit $ac_status); } && |
||
6139 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
6140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
6141 | (eval $ac_try) 2>&5 |
||
6142 | ac_status=$? |
||
6143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6144 | (exit $ac_status); }; } && |
||
6145 | { ac_try='test -s conftest.$ac_objext' |
||
6146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
6147 | (eval $ac_try) 2>&5 |
||
6148 | ac_status=$? |
||
6149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6150 | (exit $ac_status); }; }; then |
||
6151 | ac_cv_c_inline=$ac_kw; break |
||
6152 | else |
||
6153 | echo "$as_me: failed program was:" >&5 |
||
6154 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
6155 | |||
6156 | fi |
||
6157 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
||
6158 | done |
||
6159 | |||
6160 | fi |
||
6161 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
||
6162 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
||
6163 | |||
6164 | |||
6165 | case $ac_cv_c_inline in |
||
6166 | inline | yes) ;; |
||
6167 | *) |
||
6168 | case $ac_cv_c_inline in |
||
6169 | no) ac_val=;; |
||
6170 | *) ac_val=$ac_cv_c_inline;; |
||
6171 | esac |
||
6172 | cat >>confdefs.h <<_ACEOF |
||
6173 | #ifndef __cplusplus |
||
6174 | #define inline $ac_val |
||
6175 | #endif |
||
6176 | _ACEOF |
||
6177 | ;; |
||
6178 | esac |
||
6179 | |||
6180 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
||
6181 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
||
6182 | if test "${ac_cv_type_pid_t+set}" = set; then |
||
6183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
6184 | else |
||
6185 | cat >conftest.$ac_ext <<_ACEOF |
||
6186 | /* confdefs.h. */ |
||
6187 | _ACEOF |
||
6188 | cat confdefs.h >>conftest.$ac_ext |
||
6189 | cat >>conftest.$ac_ext <<_ACEOF |
||
6190 | /* end confdefs.h. */ |
||
6191 | $ac_includes_default |
||
6192 | int |
||
6193 | main () |
||
6194 | { |
||
6195 | if ((pid_t *) 0) |
||
6196 | return 0; |
||
6197 | if (sizeof (pid_t)) |
||
6198 | return 0; |
||
6199 | ; |
||
6200 | return 0; |
||
6201 | } |
||
6202 | _ACEOF |
||
6203 | rm -f conftest.$ac_objext |
||
6204 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
6205 | (eval $ac_compile) 2>conftest.er1 |
||
6206 | ac_status=$? |
||
6207 | grep -v '^ *+' conftest.er1 >conftest.err |
||
6208 | rm -f conftest.er1 |
||
6209 | cat conftest.err >&5 |
||
6210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6211 | (exit $ac_status); } && |
||
6212 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
6213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
6214 | (eval $ac_try) 2>&5 |
||
6215 | ac_status=$? |
||
6216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6217 | (exit $ac_status); }; } && |
||
6218 | { ac_try='test -s conftest.$ac_objext' |
||
6219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
6220 | (eval $ac_try) 2>&5 |
||
6221 | ac_status=$? |
||
6222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6223 | (exit $ac_status); }; }; then |
||
6224 | ac_cv_type_pid_t=yes |
||
6225 | else |
||
6226 | echo "$as_me: failed program was:" >&5 |
||
6227 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
6228 | |||
6229 | ac_cv_type_pid_t=no |
||
6230 | fi |
||
6231 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
||
6232 | fi |
||
6233 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
||
6234 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
||
6235 | if test $ac_cv_type_pid_t = yes; then |
||
6236 | : |
||
6237 | else |
||
6238 | |||
6239 | cat >>confdefs.h <<_ACEOF |
||
6240 | #define pid_t int |
||
6241 | _ACEOF |
||
6242 | |||
6243 | fi |
||
6244 | |||
6245 | echo "$as_me:$LINENO: checking for size_t" >&5 |
||
6246 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
||
6247 | if test "${ac_cv_type_size_t+set}" = set; then |
||
6248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
6249 | else |
||
6250 | cat >conftest.$ac_ext <<_ACEOF |
||
6251 | /* confdefs.h. */ |
||
6252 | _ACEOF |
||
6253 | cat confdefs.h >>conftest.$ac_ext |
||
6254 | cat >>conftest.$ac_ext <<_ACEOF |
||
6255 | /* end confdefs.h. */ |
||
6256 | $ac_includes_default |
||
6257 | int |
||
6258 | main () |
||
6259 | { |
||
6260 | if ((size_t *) 0) |
||
6261 | return 0; |
||
6262 | if (sizeof (size_t)) |
||
6263 | return 0; |
||
6264 | ; |
||
6265 | return 0; |
||
6266 | } |
||
6267 | _ACEOF |
||
6268 | rm -f conftest.$ac_objext |
||
6269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
6270 | (eval $ac_compile) 2>conftest.er1 |
||
6271 | ac_status=$? |
||
6272 | grep -v '^ *+' conftest.er1 >conftest.err |
||
6273 | rm -f conftest.er1 |
||
6274 | cat conftest.err >&5 |
||
6275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6276 | (exit $ac_status); } && |
||
6277 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
6278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
6279 | (eval $ac_try) 2>&5 |
||
6280 | ac_status=$? |
||
6281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6282 | (exit $ac_status); }; } && |
||
6283 | { ac_try='test -s conftest.$ac_objext' |
||
6284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
6285 | (eval $ac_try) 2>&5 |
||
6286 | ac_status=$? |
||
6287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6288 | (exit $ac_status); }; }; then |
||
6289 | ac_cv_type_size_t=yes |
||
6290 | else |
||
6291 | echo "$as_me: failed program was:" >&5 |
||
6292 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
6293 | |||
6294 | ac_cv_type_size_t=no |
||
6295 | fi |
||
6296 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
||
6297 | fi |
||
6298 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
||
6299 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
||
6300 | if test $ac_cv_type_size_t = yes; then |
||
6301 | : |
||
6302 | else |
||
6303 | |||
6304 | cat >>confdefs.h <<_ACEOF |
||
6305 | #define size_t unsigned |
||
6306 | _ACEOF |
||
6307 | |||
6308 | fi |
||
6309 | |||
6310 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
||
6311 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
||
6312 | if test "${ac_cv_header_time+set}" = set; then |
||
6313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
6314 | else |
||
6315 | cat >conftest.$ac_ext <<_ACEOF |
||
6316 | /* confdefs.h. */ |
||
6317 | _ACEOF |
||
6318 | cat confdefs.h >>conftest.$ac_ext |
||
6319 | cat >>conftest.$ac_ext <<_ACEOF |
||
6320 | /* end confdefs.h. */ |
||
6321 | #include <sys/types.h> |
||
6322 | #include <sys/time.h> |
||
6323 | #include <time.h> |
||
6324 | |||
6325 | int |
||
6326 | main () |
||
6327 | { |
||
6328 | if ((struct tm *) 0) |
||
6329 | return 0; |
||
6330 | ; |
||
6331 | return 0; |
||
6332 | } |
||
6333 | _ACEOF |
||
6334 | rm -f conftest.$ac_objext |
||
6335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
6336 | (eval $ac_compile) 2>conftest.er1 |
||
6337 | ac_status=$? |
||
6338 | grep -v '^ *+' conftest.er1 >conftest.err |
||
6339 | rm -f conftest.er1 |
||
6340 | cat conftest.err >&5 |
||
6341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6342 | (exit $ac_status); } && |
||
6343 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
6344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
6345 | (eval $ac_try) 2>&5 |
||
6346 | ac_status=$? |
||
6347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6348 | (exit $ac_status); }; } && |
||
6349 | { ac_try='test -s conftest.$ac_objext' |
||
6350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
6351 | (eval $ac_try) 2>&5 |
||
6352 | ac_status=$? |
||
6353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6354 | (exit $ac_status); }; }; then |
||
6355 | ac_cv_header_time=yes |
||
6356 | else |
||
6357 | echo "$as_me: failed program was:" >&5 |
||
6358 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
6359 | |||
6360 | ac_cv_header_time=no |
||
6361 | fi |
||
6362 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
||
6363 | fi |
||
6364 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
||
6365 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
||
6366 | if test $ac_cv_header_time = yes; then |
||
6367 | |||
6368 | cat >>confdefs.h <<\_ACEOF |
||
6369 | #define TIME_WITH_SYS_TIME 1 |
||
6370 | _ACEOF |
||
6371 | |||
6372 | fi |
||
6373 | |||
6374 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
||
6375 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
||
6376 | if test "${ac_cv_struct_tm+set}" = set; then |
||
6377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
6378 | else |
||
6379 | cat >conftest.$ac_ext <<_ACEOF |
||
6380 | /* confdefs.h. */ |
||
6381 | _ACEOF |
||
6382 | cat confdefs.h >>conftest.$ac_ext |
||
6383 | cat >>conftest.$ac_ext <<_ACEOF |
||
6384 | /* end confdefs.h. */ |
||
6385 | #include <sys/types.h> |
||
6386 | #include <time.h> |
||
6387 | |||
6388 | int |
||
6389 | main () |
||
6390 | { |
||
6391 | struct tm *tp; tp->tm_sec; |
||
6392 | ; |
||
6393 | return 0; |
||
6394 | } |
||
6395 | _ACEOF |
||
6396 | rm -f conftest.$ac_objext |
||
6397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
6398 | (eval $ac_compile) 2>conftest.er1 |
||
6399 | ac_status=$? |
||
6400 | grep -v '^ *+' conftest.er1 >conftest.err |
||
6401 | rm -f conftest.er1 |
||
6402 | cat conftest.err >&5 |
||
6403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6404 | (exit $ac_status); } && |
||
6405 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
6406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
6407 | (eval $ac_try) 2>&5 |
||
6408 | ac_status=$? |
||
6409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6410 | (exit $ac_status); }; } && |
||
6411 | { ac_try='test -s conftest.$ac_objext' |
||
6412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
6413 | (eval $ac_try) 2>&5 |
||
6414 | ac_status=$? |
||
6415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6416 | (exit $ac_status); }; }; then |
||
6417 | ac_cv_struct_tm=time.h |
||
6418 | else |
||
6419 | echo "$as_me: failed program was:" >&5 |
||
6420 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
6421 | |||
6422 | ac_cv_struct_tm=sys/time.h |
||
6423 | fi |
||
6424 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
||
6425 | fi |
||
6426 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
||
6427 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
||
6428 | if test $ac_cv_struct_tm = sys/time.h; then |
||
6429 | |||
6430 | cat >>confdefs.h <<\_ACEOF |
||
6431 | #define TM_IN_SYS_TIME 1 |
||
6432 | _ACEOF |
||
6433 | |||
6434 | fi |
||
6435 | |||
6436 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
||
6437 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
||
6438 | if test "${ac_cv_type_socklen_t+set}" = set; then |
||
6439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
6440 | else |
||
6441 | cat >conftest.$ac_ext <<_ACEOF |
||
6442 | /* confdefs.h. */ |
||
6443 | _ACEOF |
||
6444 | cat confdefs.h >>conftest.$ac_ext |
||
6445 | cat >>conftest.$ac_ext <<_ACEOF |
||
6446 | /* end confdefs.h. */ |
||
6447 | |||
6448 | #include <sys/types.h> |
||
6449 | #include <sys/socket.h> |
||
6450 | |||
6451 | int |
||
6452 | main () |
||
6453 | { |
||
6454 | if ((socklen_t *) 0) |
||
6455 | return 0; |
||
6456 | if (sizeof (socklen_t)) |
||
6457 | return 0; |
||
6458 | ; |
||
6459 | return 0; |
||
6460 | } |
||
6461 | _ACEOF |
||
6462 | rm -f conftest.$ac_objext |
||
6463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
6464 | (eval $ac_compile) 2>conftest.er1 |
||
6465 | ac_status=$? |
||
6466 | grep -v '^ *+' conftest.er1 >conftest.err |
||
6467 | rm -f conftest.er1 |
||
6468 | cat conftest.err >&5 |
||
6469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6470 | (exit $ac_status); } && |
||
6471 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
6472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
6473 | (eval $ac_try) 2>&5 |
||
6474 | ac_status=$? |
||
6475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6476 | (exit $ac_status); }; } && |
||
6477 | { ac_try='test -s conftest.$ac_objext' |
||
6478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
6479 | (eval $ac_try) 2>&5 |
||
6480 | ac_status=$? |
||
6481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6482 | (exit $ac_status); }; }; then |
||
6483 | ac_cv_type_socklen_t=yes |
||
6484 | else |
||
6485 | echo "$as_me: failed program was:" >&5 |
||
6486 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
6487 | |||
6488 | ac_cv_type_socklen_t=no |
||
6489 | fi |
||
6490 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
||
6491 | fi |
||
6492 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
||
6493 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
||
6494 | if test $ac_cv_type_socklen_t = yes; then |
||
6495 | |||
6496 | cat >>confdefs.h <<_ACEOF |
||
6497 | #define HAVE_SOCKLEN_T 1 |
||
6498 | _ACEOF |
||
6499 | |||
6500 | |||
6501 | fi |
||
6502 | |||
6503 | |||
6504 | # Runpath |
||
6505 | RPATH= |
||
6506 | case "$CC+$with_dynamic" in |
||
6507 | gcc+yes) RPATH="-Xlinker -rpath -Xlinker ../lib:../../lib:../../../lib";; |
||
6508 | esac |
||
6509 | |||
6510 | # Checks for library functions. |
||
6511 | echo "$as_me:$LINENO: checking for error_at_line" >&5 |
||
6512 | echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6 |
||
6513 | if test "${ac_cv_lib_error_at_line+set}" = set; then |
||
6514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
6515 | else |
||
6516 | cat >conftest.$ac_ext <<_ACEOF |
||
6517 | /* confdefs.h. */ |
||
6518 | _ACEOF |
||
6519 | cat confdefs.h >>conftest.$ac_ext |
||
6520 | cat >>conftest.$ac_ext <<_ACEOF |
||
6521 | /* end confdefs.h. */ |
||
6522 | $ac_includes_default |
||
6523 | int |
||
6524 | main () |
||
6525 | { |
||
6526 | error_at_line (0, 0, "", 0, ""); |
||
6527 | ; |
||
6528 | return 0; |
||
6529 | } |
||
6530 | _ACEOF |
||
6531 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
6532 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
6533 | (eval $ac_link) 2>conftest.er1 |
||
6534 | ac_status=$? |
||
6535 | grep -v '^ *+' conftest.er1 >conftest.err |
||
6536 | rm -f conftest.er1 |
||
6537 | cat conftest.err >&5 |
||
6538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6539 | (exit $ac_status); } && |
||
6540 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
6541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
6542 | (eval $ac_try) 2>&5 |
||
6543 | ac_status=$? |
||
6544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6545 | (exit $ac_status); }; } && |
||
6546 | { ac_try='test -s conftest$ac_exeext' |
||
6547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
6548 | (eval $ac_try) 2>&5 |
||
6549 | ac_status=$? |
||
6550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6551 | (exit $ac_status); }; }; then |
||
6552 | ac_cv_lib_error_at_line=yes |
||
6553 | else |
||
6554 | echo "$as_me: failed program was:" >&5 |
||
6555 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
6556 | |||
6557 | ac_cv_lib_error_at_line=no |
||
6558 | fi |
||
6559 | rm -f conftest.err conftest.$ac_objext \ |
||
6560 | conftest$ac_exeext conftest.$ac_ext |
||
6561 | fi |
||
6562 | echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5 |
||
6563 | echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6 |
||
6564 | if test $ac_cv_lib_error_at_line = no; then |
||
6565 | case $LIBOBJS in |
||
6566 | "error.$ac_objext" | \ |
||
6567 | *" error.$ac_objext" | \ |
||
6568 | "error.$ac_objext "* | \ |
||
6569 | *" error.$ac_objext "* ) ;; |
||
6570 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;; |
||
6571 | esac |
||
6572 | |||
6573 | fi |
||
6574 | |||
6575 | |||
6576 | |||
6577 | for ac_header in unistd.h vfork.h |
||
6578 | do |
||
6579 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
||
6580 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
||
6581 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
||
6582 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
||
6583 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
||
6584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
6585 | fi |
||
6586 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
||
6587 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
||
6588 | else |
||
6589 | # Is the header compilable? |
||
6590 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
||
6591 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
||
6592 | cat >conftest.$ac_ext <<_ACEOF |
||
6593 | /* confdefs.h. */ |
||
6594 | _ACEOF |
||
6595 | cat confdefs.h >>conftest.$ac_ext |
||
6596 | cat >>conftest.$ac_ext <<_ACEOF |
||
6597 | /* end confdefs.h. */ |
||
6598 | $ac_includes_default |
||
6599 | #include <$ac_header> |
||
6600 | _ACEOF |
||
6601 | rm -f conftest.$ac_objext |
||
6602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
6603 | (eval $ac_compile) 2>conftest.er1 |
||
6604 | ac_status=$? |
||
6605 | grep -v '^ *+' conftest.er1 >conftest.err |
||
6606 | rm -f conftest.er1 |
||
6607 | cat conftest.err >&5 |
||
6608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6609 | (exit $ac_status); } && |
||
6610 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
6611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
6612 | (eval $ac_try) 2>&5 |
||
6613 | ac_status=$? |
||
6614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6615 | (exit $ac_status); }; } && |
||
6616 | { ac_try='test -s conftest.$ac_objext' |
||
6617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
6618 | (eval $ac_try) 2>&5 |
||
6619 | ac_status=$? |
||
6620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6621 | (exit $ac_status); }; }; then |
||
6622 | ac_header_compiler=yes |
||
6623 | else |
||
6624 | echo "$as_me: failed program was:" >&5 |
||
6625 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
6626 | |||
6627 | ac_header_compiler=no |
||
6628 | fi |
||
6629 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
||
6630 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
||
6631 | echo "${ECHO_T}$ac_header_compiler" >&6 |
||
6632 | |||
6633 | # Is the header present? |
||
6634 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
||
6635 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
||
6636 | cat >conftest.$ac_ext <<_ACEOF |
||
6637 | /* confdefs.h. */ |
||
6638 | _ACEOF |
||
6639 | cat confdefs.h >>conftest.$ac_ext |
||
6640 | cat >>conftest.$ac_ext <<_ACEOF |
||
6641 | /* end confdefs.h. */ |
||
6642 | #include <$ac_header> |
||
6643 | _ACEOF |
||
6644 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
||
6645 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
||
6646 | ac_status=$? |
||
6647 | grep -v '^ *+' conftest.er1 >conftest.err |
||
6648 | rm -f conftest.er1 |
||
6649 | cat conftest.err >&5 |
||
6650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6651 | (exit $ac_status); } >/dev/null; then |
||
6652 | if test -s conftest.err; then |
||
6653 | ac_cpp_err=$ac_c_preproc_warn_flag |
||
6654 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
||
6655 | else |
||
6656 | ac_cpp_err= |
||
6657 | fi |
||
6658 | else |
||
6659 | ac_cpp_err=yes |
||
6660 | fi |
||
6661 | if test -z "$ac_cpp_err"; then |
||
6662 | ac_header_preproc=yes |
||
6663 | else |
||
6664 | echo "$as_me: failed program was:" >&5 |
||
6665 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
6666 | |||
6667 | ac_header_preproc=no |
||
6668 | fi |
||
6669 | rm -f conftest.err conftest.$ac_ext |
||
6670 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
||
6671 | echo "${ECHO_T}$ac_header_preproc" >&6 |
||
6672 | |||
6673 | # So? What about this header? |
||
6674 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
||
6675 | yes:no: ) |
||
6676 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
||
6677 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
||
6678 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
||
6679 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
||
6680 | ac_header_preproc=yes |
||
6681 | ;; |
||
6682 | no:yes:* ) |
||
6683 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
||
6684 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
||
6685 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
||
6686 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
||
6687 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
||
6688 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
||
6689 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
||
6690 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
||
6691 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
||
6692 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
||
6693 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
||
6694 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
||
6695 | ( |
||
6696 | cat <<\_ASBOX |
||
6697 | ## ---------------------------- ## |
||
6698 | ## Report this to xiao@unice.fr ## |
||
6699 | ## ---------------------------- ## |
||
6700 | _ASBOX |
||
6701 | ) | |
||
6702 | sed "s/^/$as_me: WARNING: /" >&2 |
||
6703 | ;; |
||
6704 | esac |
||
6705 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
||
6706 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
||
6707 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
||
6708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
6709 | else |
||
6710 | eval "$as_ac_Header=\$ac_header_preproc" |
||
6711 | fi |
||
6712 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
||
6713 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
||
6714 | |||
6715 | fi |
||
6716 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
||
6717 | cat >>confdefs.h <<_ACEOF |
||
6718 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
||
6719 | _ACEOF |
||
6720 | |||
6721 | fi |
||
6722 | |||
6723 | done |
||
6724 | |||
6725 | |||
6726 | |||
6727 | for ac_func in fork vfork |
||
6728 | do |
||
6729 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
6730 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
||
6731 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
||
6732 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
||
6733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
6734 | else |
||
6735 | cat >conftest.$ac_ext <<_ACEOF |
||
6736 | /* confdefs.h. */ |
||
6737 | _ACEOF |
||
6738 | cat confdefs.h >>conftest.$ac_ext |
||
6739 | cat >>conftest.$ac_ext <<_ACEOF |
||
6740 | /* end confdefs.h. */ |
||
6741 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
||
6742 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
||
6743 | #define $ac_func innocuous_$ac_func |
||
6744 | |||
6745 | /* System header to define __stub macros and hopefully few prototypes, |
||
6746 | which can conflict with char $ac_func (); below. |
||
6747 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
6748 | <limits.h> exists even on freestanding compilers. */ |
||
6749 | |||
6750 | #ifdef __STDC__ |
||
6751 | # include <limits.h> |
||
6752 | #else |
||
6753 | # include <assert.h> |
||
6754 | #endif |
||
6755 | |||
6756 | #undef $ac_func |
||
6757 | |||
6758 | /* Override any gcc2 internal prototype to avoid an error. */ |
||
6759 | #ifdef __cplusplus |
||
6760 | extern "C" |
||
6761 | { |
||
6762 | #endif |
||
6763 | /* We use char because int might match the return type of a gcc2 |
||
6764 | builtin and then its argument prototype would still apply. */ |
||
6765 | char $ac_func (); |
||
6766 | /* The GNU C library defines this for functions which it implements |
||
6767 | to always fail with ENOSYS. Some functions are actually named |
||
6768 | something starting with __ and the normal name is an alias. */ |
||
6769 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
||
6770 | choke me |
||
6771 | #else |
||
6772 | char (*f) () = $ac_func; |
||
6773 | #endif |
||
6774 | #ifdef __cplusplus |
||
6775 | } |
||
6776 | #endif |
||
6777 | |||
6778 | int |
||
6779 | main () |
||
6780 | { |
||
6781 | return f != $ac_func; |
||
6782 | ; |
||
6783 | return 0; |
||
6784 | } |
||
6785 | _ACEOF |
||
6786 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
6787 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
6788 | (eval $ac_link) 2>conftest.er1 |
||
6789 | ac_status=$? |
||
6790 | grep -v '^ *+' conftest.er1 >conftest.err |
||
6791 | rm -f conftest.er1 |
||
6792 | cat conftest.err >&5 |
||
6793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6794 | (exit $ac_status); } && |
||
6795 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
6796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
6797 | (eval $ac_try) 2>&5 |
||
6798 | ac_status=$? |
||
6799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6800 | (exit $ac_status); }; } && |
||
6801 | { ac_try='test -s conftest$ac_exeext' |
||
6802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
6803 | (eval $ac_try) 2>&5 |
||
6804 | ac_status=$? |
||
6805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6806 | (exit $ac_status); }; }; then |
||
6807 | eval "$as_ac_var=yes" |
||
6808 | else |
||
6809 | echo "$as_me: failed program was:" >&5 |
||
6810 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
6811 | |||
6812 | eval "$as_ac_var=no" |
||
6813 | fi |
||
6814 | rm -f conftest.err conftest.$ac_objext \ |
||
6815 | conftest$ac_exeext conftest.$ac_ext |
||
6816 | fi |
||
6817 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
||
6818 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
||
6819 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
||
6820 | cat >>confdefs.h <<_ACEOF |
||
6821 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
||
6822 | _ACEOF |
||
6823 | |||
6824 | fi |
||
6825 | done |
||
6826 | |||
6827 | if test "x$ac_cv_func_fork" = xyes; then |
||
6828 | echo "$as_me:$LINENO: checking for working fork" >&5 |
||
6829 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 |
||
6830 | if test "${ac_cv_func_fork_works+set}" = set; then |
||
6831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
6832 | else |
||
6833 | if test "$cross_compiling" = yes; then |
||
6834 | ac_cv_func_fork_works=cross |
||
6835 | else |
||
6836 | cat >conftest.$ac_ext <<_ACEOF |
||
6837 | /* By Ruediger Kuhlmann. */ |
||
6838 | #include <sys/types.h> |
||
6839 | #if HAVE_UNISTD_H |
||
6840 | # include <unistd.h> |
||
6841 | #endif |
||
6842 | /* Some systems only have a dummy stub for fork() */ |
||
6843 | int main () |
||
6844 | { |
||
6845 | if (fork() < 0) |
||
6846 | exit (1); |
||
6847 | exit (0); |
||
6848 | } |
||
6849 | _ACEOF |
||
6850 | rm -f conftest$ac_exeext |
||
6851 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
6852 | (eval $ac_link) 2>&5 |
||
6853 | ac_status=$? |
||
6854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6855 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
||
6856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
6857 | (eval $ac_try) 2>&5 |
||
6858 | ac_status=$? |
||
6859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
6860 | (exit $ac_status); }; }; then |
||
6861 | ac_cv_func_fork_works=yes |
||
6862 | else |
||
6863 | echo "$as_me: program exited with status $ac_status" >&5 |
||
6864 | echo "$as_me: failed program was:" >&5 |
||
6865 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
6866 | |||
6867 | ( exit $ac_status ) |
||
6868 | ac_cv_func_fork_works=no |
||
6869 | fi |
||
6870 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
||
6871 | fi |
||
6872 | fi |
||
6873 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
||
6874 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 |
||
6875 | |||
6876 | else |
||
6877 | ac_cv_func_fork_works=$ac_cv_func_fork |
||
6878 | fi |
||
6879 | if test "x$ac_cv_func_fork_works" = xcross; then |
||
6880 | case $host in |
||
6881 | *-*-amigaos* | *-*-msdosdjgpp*) |
||
6882 | # Override, as these systems have only a dummy fork() stub |
||
6883 | ac_cv_func_fork_works=no |
||
6884 | ;; |
||
6885 | *) |
||
6886 | ac_cv_func_fork_works=yes |
||
6887 | ;; |
||
6888 | esac |
||
6889 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
||
6890 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
||
6891 | fi |
||
6892 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
||
6893 | if test "x$ac_cv_func_vfork" = xyes; then |
||
6894 | echo "$as_me:$LINENO: checking for working vfork" >&5 |
||
6895 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 |
||
6896 | if test "${ac_cv_func_vfork_works+set}" = set; then |
||
6897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
6898 | else |
||
6899 | if test "$cross_compiling" = yes; then |
||
6900 | ac_cv_func_vfork_works=cross |
||
6901 | else |
||
6902 | cat >conftest.$ac_ext <<_ACEOF |
||
6903 | /* confdefs.h. */ |
||
6904 | _ACEOF |
||
6905 | cat confdefs.h >>conftest.$ac_ext |
||
6906 | cat >>conftest.$ac_ext <<_ACEOF |
||
6907 | /* end confdefs.h. */ |
||
6908 | /* Thanks to Paul Eggert for this test. */ |
||
6909 | #include <stdio.h> |
||
6910 | #include <stdlib.h> |
||
6911 | #include <sys/types.h> |
||
6912 | #include <sys/stat.h> |
||
6913 | #include <sys/wait.h> |
||
6914 | #if HAVE_UNISTD_H |
||
6915 | # include <unistd.h> |
||
6916 | #endif |
||
6917 | #if HAVE_VFORK_H |
||
6918 | # include <vfork.h> |
||
6919 | #endif |
||
6920 | /* On some sparc systems, changes by the child to local and incoming |
||
6921 | argument registers are propagated back to the parent. The compiler |
||
6922 | is told about this with #include <vfork.h>, but some compilers |
||
6923 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a |
||
6924 | static variable whose address is put into a register that is |
||
6925 | clobbered by the vfork. */ |
||
6926 | static void |
||
6927 | #ifdef __cplusplus |
||
6928 | sparc_address_test (int arg) |
||
6929 | # else |
||
6930 | sparc_address_test (arg) int arg; |
||
6931 | #endif |
||
6932 | { |
||
6933 | static pid_t child; |
||
6934 | if (!child) { |
||
6935 | child = vfork (); |
||
6936 | if (child < 0) { |
||
6937 | perror ("vfork"); |
||
6938 | _exit(2); |
||
6939 | } |
||
6940 | if (!child) { |
||
6941 | arg = getpid(); |
||
6942 | write(-1, "", 0); |
||
6943 | _exit (arg); |
||
6944 | } |
||
6945 | } |
||
6946 | } |
||
6947 | |||
6948 | int |
||
6949 | main () |
||
6950 | { |
||
6951 | pid_t parent = getpid (); |
||
6952 | pid_t child; |
||
6953 | |||
6954 | sparc_address_test (0); |
||
6955 | |||
6956 | child = vfork (); |
||
6957 | |||
6958 | if (child == 0) { |
||
6959 | /* Here is another test for sparc vfork register problems. This |
||
6960 | test uses lots of local variables, at least as many local |
||
6961 | variables as main has allocated so far including compiler |
||
6962 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris |
||
6963 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should |
||
6964 | reuse the register of parent for one of the local variables, |
||
6965 | since it will think that parent can't possibly be used any more |
||
6966 | in this routine. Assigning to the local variable will thus |
||
6967 | munge parent in the parent process. */ |
||
6968 | pid_t |
||
6969 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
||
6970 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
||
6971 | /* Convince the compiler that p..p7 are live; otherwise, it might |
||
6972 | use the same hardware register for all 8 local variables. */ |
||
6973 | if (p != p1 || p != p2 || p != p3 || p != p4 |
||
6974 | || p != p5 || p != p6 || p != p7) |
||
6975 | _exit(1); |
||
6976 | |||
6977 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
||
6978 | from child file descriptors. If the child closes a descriptor |
||
6979 | before it execs or exits, this munges the parent's descriptor |
||
6980 | as well. Test for this by closing stdout in the child. */ |
||
6981 | _exit(close(fileno(stdout)) != 0); |
||
6982 | } else { |
||
6983 | int status; |
||
6984 | struct stat st; |
||
6985 | |||
6986 | while (wait(&status) != child) |
||
6987 | ; |
||
6988 | exit( |
||
6989 | /* Was there some problem with vforking? */ |
||
6990 | child < 0 |
||
6991 | |||
6992 | /* Did the child fail? (This shouldn't happen.) */ |
||
6993 | || status |
||
6994 | |||
6995 | /* Did the vfork/compiler bug occur? */ |
||
6996 | || parent != getpid() |
||
6997 | |||
6998 | /* Did the file descriptor bug occur? */ |
||
6999 | || fstat(fileno(stdout), &st) != 0 |
||
7000 | ); |
||
7001 | } |
||
7002 | } |
||
7003 | _ACEOF |
||
7004 | rm -f conftest$ac_exeext |
||
7005 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
7006 | (eval $ac_link) 2>&5 |
||
7007 | ac_status=$? |
||
7008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7009 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
||
7010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
7011 | (eval $ac_try) 2>&5 |
||
7012 | ac_status=$? |
||
7013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7014 | (exit $ac_status); }; }; then |
||
7015 | ac_cv_func_vfork_works=yes |
||
7016 | else |
||
7017 | echo "$as_me: program exited with status $ac_status" >&5 |
||
7018 | echo "$as_me: failed program was:" >&5 |
||
7019 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
7020 | |||
7021 | ( exit $ac_status ) |
||
7022 | ac_cv_func_vfork_works=no |
||
7023 | fi |
||
7024 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
||
7025 | fi |
||
7026 | fi |
||
7027 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
||
7028 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 |
||
7029 | |||
7030 | fi; |
||
7031 | if test "x$ac_cv_func_fork_works" = xcross; then |
||
7032 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
||
7033 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
||
7034 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
||
7035 | fi |
||
7036 | |||
7037 | if test "x$ac_cv_func_vfork_works" = xyes; then |
||
7038 | |||
7039 | cat >>confdefs.h <<\_ACEOF |
||
7040 | #define HAVE_WORKING_VFORK 1 |
||
7041 | _ACEOF |
||
7042 | |||
7043 | else |
||
7044 | |||
7045 | cat >>confdefs.h <<\_ACEOF |
||
7046 | #define vfork fork |
||
7047 | _ACEOF |
||
7048 | |||
7049 | fi |
||
7050 | if test "x$ac_cv_func_fork_works" = xyes; then |
||
7051 | |||
7052 | cat >>confdefs.h <<\_ACEOF |
||
7053 | #define HAVE_WORKING_FORK 1 |
||
7054 | _ACEOF |
||
7055 | |||
7056 | fi |
||
7057 | |||
7058 | echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
||
7059 | echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6 |
||
7060 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
||
7061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
7062 | else |
||
7063 | rm -f conftest.sym conftest.file |
||
7064 | echo >conftest.file |
||
7065 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then |
||
7066 | if test "$cross_compiling" = yes; then |
||
7067 | ac_cv_func_lstat_dereferences_slashed_symlink=no |
||
7068 | else |
||
7069 | cat >conftest.$ac_ext <<_ACEOF |
||
7070 | /* confdefs.h. */ |
||
7071 | _ACEOF |
||
7072 | cat confdefs.h >>conftest.$ac_ext |
||
7073 | cat >>conftest.$ac_ext <<_ACEOF |
||
7074 | /* end confdefs.h. */ |
||
7075 | $ac_includes_default |
||
7076 | int |
||
7077 | main () |
||
7078 | { |
||
7079 | struct stat sbuf; |
||
7080 | /* Linux will dereference the symlink and fail. |
||
7081 | That is better in the sense that it means we will not |
||
7082 | have to compile and use the lstat wrapper. */ |
||
7083 | exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1); |
||
7084 | ; |
||
7085 | return 0; |
||
7086 | } |
||
7087 | _ACEOF |
||
7088 | rm -f conftest$ac_exeext |
||
7089 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
7090 | (eval $ac_link) 2>&5 |
||
7091 | ac_status=$? |
||
7092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7093 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
||
7094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
7095 | (eval $ac_try) 2>&5 |
||
7096 | ac_status=$? |
||
7097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7098 | (exit $ac_status); }; }; then |
||
7099 | ac_cv_func_lstat_dereferences_slashed_symlink=yes |
||
7100 | else |
||
7101 | echo "$as_me: program exited with status $ac_status" >&5 |
||
7102 | echo "$as_me: failed program was:" >&5 |
||
7103 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
7104 | |||
7105 | ( exit $ac_status ) |
||
7106 | ac_cv_func_lstat_dereferences_slashed_symlink=no |
||
7107 | fi |
||
7108 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
||
7109 | fi |
||
7110 | else |
||
7111 | # If the `ln -s' command failed, then we probably don't even |
||
7112 | # have an lstat function. |
||
7113 | ac_cv_func_lstat_dereferences_slashed_symlink=no |
||
7114 | fi |
||
7115 | rm -f conftest.sym conftest.file |
||
7116 | |||
7117 | fi |
||
7118 | echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
||
7119 | echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6 |
||
7120 | |||
7121 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && |
||
7122 | |||
7123 | cat >>confdefs.h <<_ACEOF |
||
7124 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 |
||
7125 | _ACEOF |
||
7126 | |||
7127 | |||
7128 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then |
||
7129 | case $LIBOBJS in |
||
7130 | "lstat.$ac_objext" | \ |
||
7131 | *" lstat.$ac_objext" | \ |
||
7132 | "lstat.$ac_objext "* | \ |
||
7133 | *" lstat.$ac_objext "* ) ;; |
||
7134 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;; |
||
7135 | esac |
||
7136 | |||
7137 | fi |
||
7138 | |||
7139 | echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
||
7140 | echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6 |
||
7141 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
||
7142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
7143 | else |
||
7144 | if test "$cross_compiling" = yes; then |
||
7145 | ac_cv_func_lstat_empty_string_bug=yes |
||
7146 | else |
||
7147 | cat >conftest.$ac_ext <<_ACEOF |
||
7148 | /* confdefs.h. */ |
||
7149 | _ACEOF |
||
7150 | cat confdefs.h >>conftest.$ac_ext |
||
7151 | cat >>conftest.$ac_ext <<_ACEOF |
||
7152 | /* end confdefs.h. */ |
||
7153 | $ac_includes_default |
||
7154 | int |
||
7155 | main () |
||
7156 | { |
||
7157 | struct stat sbuf; |
||
7158 | exit (lstat ("", &sbuf) ? 1 : 0); |
||
7159 | ; |
||
7160 | return 0; |
||
7161 | } |
||
7162 | _ACEOF |
||
7163 | rm -f conftest$ac_exeext |
||
7164 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
7165 | (eval $ac_link) 2>&5 |
||
7166 | ac_status=$? |
||
7167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7168 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
||
7169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
7170 | (eval $ac_try) 2>&5 |
||
7171 | ac_status=$? |
||
7172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7173 | (exit $ac_status); }; }; then |
||
7174 | ac_cv_func_lstat_empty_string_bug=yes |
||
7175 | else |
||
7176 | echo "$as_me: program exited with status $ac_status" >&5 |
||
7177 | echo "$as_me: failed program was:" >&5 |
||
7178 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
7179 | |||
7180 | ( exit $ac_status ) |
||
7181 | ac_cv_func_lstat_empty_string_bug=no |
||
7182 | fi |
||
7183 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
||
7184 | fi |
||
7185 | fi |
||
7186 | echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
||
7187 | echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6 |
||
7188 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
||
7189 | case $LIBOBJS in |
||
7190 | "lstat.$ac_objext" | \ |
||
7191 | *" lstat.$ac_objext" | \ |
||
7192 | "lstat.$ac_objext "* | \ |
||
7193 | *" lstat.$ac_objext "* ) ;; |
||
7194 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;; |
||
7195 | esac |
||
7196 | |||
7197 | |||
7198 | cat >>confdefs.h <<_ACEOF |
||
7199 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 |
||
7200 | _ACEOF |
||
7201 | |||
7202 | fi |
||
7203 | |||
7204 | |||
7205 | for ac_header in stdlib.h |
||
7206 | do |
||
7207 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
||
7208 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
||
7209 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
||
7210 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
||
7211 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
||
7212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
7213 | fi |
||
7214 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
||
7215 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
||
7216 | else |
||
7217 | # Is the header compilable? |
||
7218 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
||
7219 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
||
7220 | cat >conftest.$ac_ext <<_ACEOF |
||
7221 | /* confdefs.h. */ |
||
7222 | _ACEOF |
||
7223 | cat confdefs.h >>conftest.$ac_ext |
||
7224 | cat >>conftest.$ac_ext <<_ACEOF |
||
7225 | /* end confdefs.h. */ |
||
7226 | $ac_includes_default |
||
7227 | #include <$ac_header> |
||
7228 | _ACEOF |
||
7229 | rm -f conftest.$ac_objext |
||
7230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
7231 | (eval $ac_compile) 2>conftest.er1 |
||
7232 | ac_status=$? |
||
7233 | grep -v '^ *+' conftest.er1 >conftest.err |
||
7234 | rm -f conftest.er1 |
||
7235 | cat conftest.err >&5 |
||
7236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7237 | (exit $ac_status); } && |
||
7238 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
7239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
7240 | (eval $ac_try) 2>&5 |
||
7241 | ac_status=$? |
||
7242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7243 | (exit $ac_status); }; } && |
||
7244 | { ac_try='test -s conftest.$ac_objext' |
||
7245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
7246 | (eval $ac_try) 2>&5 |
||
7247 | ac_status=$? |
||
7248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7249 | (exit $ac_status); }; }; then |
||
7250 | ac_header_compiler=yes |
||
7251 | else |
||
7252 | echo "$as_me: failed program was:" >&5 |
||
7253 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
7254 | |||
7255 | ac_header_compiler=no |
||
7256 | fi |
||
7257 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
||
7258 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
||
7259 | echo "${ECHO_T}$ac_header_compiler" >&6 |
||
7260 | |||
7261 | # Is the header present? |
||
7262 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
||
7263 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
||
7264 | cat >conftest.$ac_ext <<_ACEOF |
||
7265 | /* confdefs.h. */ |
||
7266 | _ACEOF |
||
7267 | cat confdefs.h >>conftest.$ac_ext |
||
7268 | cat >>conftest.$ac_ext <<_ACEOF |
||
7269 | /* end confdefs.h. */ |
||
7270 | #include <$ac_header> |
||
7271 | _ACEOF |
||
7272 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
||
7273 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
||
7274 | ac_status=$? |
||
7275 | grep -v '^ *+' conftest.er1 >conftest.err |
||
7276 | rm -f conftest.er1 |
||
7277 | cat conftest.err >&5 |
||
7278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7279 | (exit $ac_status); } >/dev/null; then |
||
7280 | if test -s conftest.err; then |
||
7281 | ac_cpp_err=$ac_c_preproc_warn_flag |
||
7282 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
||
7283 | else |
||
7284 | ac_cpp_err= |
||
7285 | fi |
||
7286 | else |
||
7287 | ac_cpp_err=yes |
||
7288 | fi |
||
7289 | if test -z "$ac_cpp_err"; then |
||
7290 | ac_header_preproc=yes |
||
7291 | else |
||
7292 | echo "$as_me: failed program was:" >&5 |
||
7293 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
7294 | |||
7295 | ac_header_preproc=no |
||
7296 | fi |
||
7297 | rm -f conftest.err conftest.$ac_ext |
||
7298 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
||
7299 | echo "${ECHO_T}$ac_header_preproc" >&6 |
||
7300 | |||
7301 | # So? What about this header? |
||
7302 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
||
7303 | yes:no: ) |
||
7304 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
||
7305 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
||
7306 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
||
7307 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
||
7308 | ac_header_preproc=yes |
||
7309 | ;; |
||
7310 | no:yes:* ) |
||
7311 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
||
7312 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
||
7313 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
||
7314 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
||
7315 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
||
7316 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
||
7317 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
||
7318 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
||
7319 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
||
7320 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
||
7321 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
||
7322 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
||
7323 | ( |
||
7324 | cat <<\_ASBOX |
||
7325 | ## ---------------------------- ## |
||
7326 | ## Report this to xiao@unice.fr ## |
||
7327 | ## ---------------------------- ## |
||
7328 | _ASBOX |
||
7329 | ) | |
||
7330 | sed "s/^/$as_me: WARNING: /" >&2 |
||
7331 | ;; |
||
7332 | esac |
||
7333 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
||
7334 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
||
7335 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
||
7336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
7337 | else |
||
7338 | eval "$as_ac_Header=\$ac_header_preproc" |
||
7339 | fi |
||
7340 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
||
7341 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
||
7342 | |||
7343 | fi |
||
7344 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
||
7345 | cat >>confdefs.h <<_ACEOF |
||
7346 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
||
7347 | _ACEOF |
||
7348 | |||
7349 | fi |
||
7350 | |||
7351 | done |
||
7352 | |||
7353 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
||
7354 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
||
7355 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
||
7356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
7357 | else |
||
7358 | if test "$cross_compiling" = yes; then |
||
7359 | ac_cv_func_malloc_0_nonnull=no |
||
7360 | else |
||
7361 | cat >conftest.$ac_ext <<_ACEOF |
||
7362 | /* confdefs.h. */ |
||
7363 | _ACEOF |
||
7364 | cat confdefs.h >>conftest.$ac_ext |
||
7365 | cat >>conftest.$ac_ext <<_ACEOF |
||
7366 | /* end confdefs.h. */ |
||
7367 | #if STDC_HEADERS || HAVE_STDLIB_H |
||
7368 | # include <stdlib.h> |
||
7369 | #else |
||
7370 | char *malloc (); |
||
7371 | #endif |
||
7372 | |||
7373 | int |
||
7374 | main () |
||
7375 | { |
||
7376 | exit (malloc (0) ? 0 : 1); |
||
7377 | ; |
||
7378 | return 0; |
||
7379 | } |
||
7380 | _ACEOF |
||
7381 | rm -f conftest$ac_exeext |
||
7382 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
7383 | (eval $ac_link) 2>&5 |
||
7384 | ac_status=$? |
||
7385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7386 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
||
7387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
7388 | (eval $ac_try) 2>&5 |
||
7389 | ac_status=$? |
||
7390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7391 | (exit $ac_status); }; }; then |
||
7392 | ac_cv_func_malloc_0_nonnull=yes |
||
7393 | else |
||
7394 | echo "$as_me: program exited with status $ac_status" >&5 |
||
7395 | echo "$as_me: failed program was:" >&5 |
||
7396 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
7397 | |||
7398 | ( exit $ac_status ) |
||
7399 | ac_cv_func_malloc_0_nonnull=no |
||
7400 | fi |
||
7401 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
||
7402 | fi |
||
7403 | fi |
||
7404 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
||
7405 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
||
7406 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
||
7407 | |||
7408 | cat >>confdefs.h <<\_ACEOF |
||
7409 | #define HAVE_MALLOC 1 |
||
7410 | _ACEOF |
||
7411 | |||
7412 | else |
||
7413 | cat >>confdefs.h <<\_ACEOF |
||
7414 | #define HAVE_MALLOC 0 |
||
7415 | _ACEOF |
||
7416 | |||
7417 | case $LIBOBJS in |
||
7418 | "malloc.$ac_objext" | \ |
||
7419 | *" malloc.$ac_objext" | \ |
||
7420 | "malloc.$ac_objext "* | \ |
||
7421 | *" malloc.$ac_objext "* ) ;; |
||
7422 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
||
7423 | esac |
||
7424 | |||
7425 | |||
7426 | cat >>confdefs.h <<\_ACEOF |
||
7427 | #define malloc rpl_malloc |
||
7428 | _ACEOF |
||
7429 | |||
7430 | fi |
||
7431 | |||
7432 | |||
7433 | |||
7434 | echo "$as_me:$LINENO: checking for working memcmp" >&5 |
||
7435 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 |
||
7436 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
||
7437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
7438 | else |
||
7439 | if test "$cross_compiling" = yes; then |
||
7440 | ac_cv_func_memcmp_working=no |
||
7441 | else |
||
7442 | cat >conftest.$ac_ext <<_ACEOF |
||
7443 | /* confdefs.h. */ |
||
7444 | _ACEOF |
||
7445 | cat confdefs.h >>conftest.$ac_ext |
||
7446 | cat >>conftest.$ac_ext <<_ACEOF |
||
7447 | /* end confdefs.h. */ |
||
7448 | $ac_includes_default |
||
7449 | int |
||
7450 | main () |
||
7451 | { |
||
7452 | |||
7453 | /* Some versions of memcmp are not 8-bit clean. */ |
||
7454 | char c0 = 0x40, c1 = 0x80, c2 = 0x81; |
||
7455 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
||
7456 | exit (1); |
||
7457 | |||
7458 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
||
7459 | or more and with at least one buffer not starting on a 4-byte boundary. |
||
7460 | William Lewis provided this test program. */ |
||
7461 | { |
||
7462 | char foo[21]; |
||
7463 | char bar[21]; |
||
7464 | int i; |
||
7465 | for (i = 0; i < 4; i++) |
||
7466 | { |
||
7467 | char *a = foo + i; |
||
7468 | char *b = bar + i; |
||
7469 | strcpy (a, "--------01111111"); |
||
7470 | strcpy (b, "--------10000000"); |
||
7471 | if (memcmp (a, b, 16) >= 0) |
||
7472 | exit (1); |
||
7473 | } |
||
7474 | exit (0); |
||
7475 | } |
||
7476 | |||
7477 | ; |
||
7478 | return 0; |
||
7479 | } |
||
7480 | _ACEOF |
||
7481 | rm -f conftest$ac_exeext |
||
7482 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
7483 | (eval $ac_link) 2>&5 |
||
7484 | ac_status=$? |
||
7485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7486 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
||
7487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
7488 | (eval $ac_try) 2>&5 |
||
7489 | ac_status=$? |
||
7490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7491 | (exit $ac_status); }; }; then |
||
7492 | ac_cv_func_memcmp_working=yes |
||
7493 | else |
||
7494 | echo "$as_me: program exited with status $ac_status" >&5 |
||
7495 | echo "$as_me: failed program was:" >&5 |
||
7496 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
7497 | |||
7498 | ( exit $ac_status ) |
||
7499 | ac_cv_func_memcmp_working=no |
||
7500 | fi |
||
7501 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
||
7502 | fi |
||
7503 | fi |
||
7504 | echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
||
7505 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 |
||
7506 | test $ac_cv_func_memcmp_working = no && case $LIBOBJS in |
||
7507 | "memcmp.$ac_objext" | \ |
||
7508 | *" memcmp.$ac_objext" | \ |
||
7509 | "memcmp.$ac_objext "* | \ |
||
7510 | *" memcmp.$ac_objext "* ) ;; |
||
7511 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;; |
||
7512 | esac |
||
7513 | |||
7514 | |||
7515 | |||
7516 | for ac_header in stdlib.h |
||
7517 | do |
||
7518 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
||
7519 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
||
7520 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
||
7521 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
||
7522 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
||
7523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
7524 | fi |
||
7525 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
||
7526 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
||
7527 | else |
||
7528 | # Is the header compilable? |
||
7529 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
||
7530 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
||
7531 | cat >conftest.$ac_ext <<_ACEOF |
||
7532 | /* confdefs.h. */ |
||
7533 | _ACEOF |
||
7534 | cat confdefs.h >>conftest.$ac_ext |
||
7535 | cat >>conftest.$ac_ext <<_ACEOF |
||
7536 | /* end confdefs.h. */ |
||
7537 | $ac_includes_default |
||
7538 | #include <$ac_header> |
||
7539 | _ACEOF |
||
7540 | rm -f conftest.$ac_objext |
||
7541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
7542 | (eval $ac_compile) 2>conftest.er1 |
||
7543 | ac_status=$? |
||
7544 | grep -v '^ *+' conftest.er1 >conftest.err |
||
7545 | rm -f conftest.er1 |
||
7546 | cat conftest.err >&5 |
||
7547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7548 | (exit $ac_status); } && |
||
7549 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
7550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
7551 | (eval $ac_try) 2>&5 |
||
7552 | ac_status=$? |
||
7553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7554 | (exit $ac_status); }; } && |
||
7555 | { ac_try='test -s conftest.$ac_objext' |
||
7556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
7557 | (eval $ac_try) 2>&5 |
||
7558 | ac_status=$? |
||
7559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7560 | (exit $ac_status); }; }; then |
||
7561 | ac_header_compiler=yes |
||
7562 | else |
||
7563 | echo "$as_me: failed program was:" >&5 |
||
7564 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
7565 | |||
7566 | ac_header_compiler=no |
||
7567 | fi |
||
7568 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
||
7569 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
||
7570 | echo "${ECHO_T}$ac_header_compiler" >&6 |
||
7571 | |||
7572 | # Is the header present? |
||
7573 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
||
7574 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
||
7575 | cat >conftest.$ac_ext <<_ACEOF |
||
7576 | /* confdefs.h. */ |
||
7577 | _ACEOF |
||
7578 | cat confdefs.h >>conftest.$ac_ext |
||
7579 | cat >>conftest.$ac_ext <<_ACEOF |
||
7580 | /* end confdefs.h. */ |
||
7581 | #include <$ac_header> |
||
7582 | _ACEOF |
||
7583 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
||
7584 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
||
7585 | ac_status=$? |
||
7586 | grep -v '^ *+' conftest.er1 >conftest.err |
||
7587 | rm -f conftest.er1 |
||
7588 | cat conftest.err >&5 |
||
7589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7590 | (exit $ac_status); } >/dev/null; then |
||
7591 | if test -s conftest.err; then |
||
7592 | ac_cpp_err=$ac_c_preproc_warn_flag |
||
7593 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
||
7594 | else |
||
7595 | ac_cpp_err= |
||
7596 | fi |
||
7597 | else |
||
7598 | ac_cpp_err=yes |
||
7599 | fi |
||
7600 | if test -z "$ac_cpp_err"; then |
||
7601 | ac_header_preproc=yes |
||
7602 | else |
||
7603 | echo "$as_me: failed program was:" >&5 |
||
7604 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
7605 | |||
7606 | ac_header_preproc=no |
||
7607 | fi |
||
7608 | rm -f conftest.err conftest.$ac_ext |
||
7609 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
||
7610 | echo "${ECHO_T}$ac_header_preproc" >&6 |
||
7611 | |||
7612 | # So? What about this header? |
||
7613 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
||
7614 | yes:no: ) |
||
7615 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
||
7616 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
||
7617 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
||
7618 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
||
7619 | ac_header_preproc=yes |
||
7620 | ;; |
||
7621 | no:yes:* ) |
||
7622 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
||
7623 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
||
7624 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
||
7625 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
||
7626 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
||
7627 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
||
7628 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
||
7629 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
||
7630 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
||
7631 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
||
7632 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
||
7633 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
||
7634 | ( |
||
7635 | cat <<\_ASBOX |
||
7636 | ## ---------------------------- ## |
||
7637 | ## Report this to xiao@unice.fr ## |
||
7638 | ## ---------------------------- ## |
||
7639 | _ASBOX |
||
7640 | ) | |
||
7641 | sed "s/^/$as_me: WARNING: /" >&2 |
||
7642 | ;; |
||
7643 | esac |
||
7644 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
||
7645 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
||
7646 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
||
7647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
7648 | else |
||
7649 | eval "$as_ac_Header=\$ac_header_preproc" |
||
7650 | fi |
||
7651 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
||
7652 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
||
7653 | |||
7654 | fi |
||
7655 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
||
7656 | cat >>confdefs.h <<_ACEOF |
||
7657 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
||
7658 | _ACEOF |
||
7659 | |||
7660 | fi |
||
7661 | |||
7662 | done |
||
7663 | |||
7664 | echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 |
||
7665 | echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6 |
||
7666 | if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then |
||
7667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
7668 | else |
||
7669 | if test "$cross_compiling" = yes; then |
||
7670 | ac_cv_func_realloc_0_nonnull=no |
||
7671 | else |
||
7672 | cat >conftest.$ac_ext <<_ACEOF |
||
7673 | /* confdefs.h. */ |
||
7674 | _ACEOF |
||
7675 | cat confdefs.h >>conftest.$ac_ext |
||
7676 | cat >>conftest.$ac_ext <<_ACEOF |
||
7677 | /* end confdefs.h. */ |
||
7678 | #if STDC_HEADERS || HAVE_STDLIB_H |
||
7679 | # include <stdlib.h> |
||
7680 | #else |
||
7681 | char *realloc (); |
||
7682 | #endif |
||
7683 | |||
7684 | int |
||
7685 | main () |
||
7686 | { |
||
7687 | exit (realloc (0, 0) ? 0 : 1); |
||
7688 | ; |
||
7689 | return 0; |
||
7690 | } |
||
7691 | _ACEOF |
||
7692 | rm -f conftest$ac_exeext |
||
7693 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
7694 | (eval $ac_link) 2>&5 |
||
7695 | ac_status=$? |
||
7696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7697 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
||
7698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
7699 | (eval $ac_try) 2>&5 |
||
7700 | ac_status=$? |
||
7701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7702 | (exit $ac_status); }; }; then |
||
7703 | ac_cv_func_realloc_0_nonnull=yes |
||
7704 | else |
||
7705 | echo "$as_me: program exited with status $ac_status" >&5 |
||
7706 | echo "$as_me: failed program was:" >&5 |
||
7707 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
7708 | |||
7709 | ( exit $ac_status ) |
||
7710 | ac_cv_func_realloc_0_nonnull=no |
||
7711 | fi |
||
7712 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
||
7713 | fi |
||
7714 | fi |
||
7715 | echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 |
||
7716 | echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6 |
||
7717 | if test $ac_cv_func_realloc_0_nonnull = yes; then |
||
7718 | |||
7719 | cat >>confdefs.h <<\_ACEOF |
||
7720 | #define HAVE_REALLOC 1 |
||
7721 | _ACEOF |
||
7722 | |||
7723 | else |
||
7724 | cat >>confdefs.h <<\_ACEOF |
||
7725 | #define HAVE_REALLOC 0 |
||
7726 | _ACEOF |
||
7727 | |||
7728 | case $LIBOBJS in |
||
7729 | "realloc.$ac_objext" | \ |
||
7730 | *" realloc.$ac_objext" | \ |
||
7731 | "realloc.$ac_objext "* | \ |
||
7732 | *" realloc.$ac_objext "* ) ;; |
||
7733 | *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;; |
||
7734 | esac |
||
7735 | |||
7736 | |||
7737 | cat >>confdefs.h <<\_ACEOF |
||
7738 | #define realloc rpl_realloc |
||
7739 | _ACEOF |
||
7740 | |||
7741 | fi |
||
7742 | |||
7743 | |||
7744 | |||
7745 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
||
7746 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
||
7747 | if test "${ac_cv_type_signal+set}" = set; then |
||
7748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
7749 | else |
||
7750 | cat >conftest.$ac_ext <<_ACEOF |
||
7751 | /* confdefs.h. */ |
||
7752 | _ACEOF |
||
7753 | cat confdefs.h >>conftest.$ac_ext |
||
7754 | cat >>conftest.$ac_ext <<_ACEOF |
||
7755 | /* end confdefs.h. */ |
||
7756 | #include <sys/types.h> |
||
7757 | #include <signal.h> |
||
7758 | #ifdef signal |
||
7759 | # undef signal |
||
7760 | #endif |
||
7761 | #ifdef __cplusplus |
||
7762 | extern "C" void (*signal (int, void (*)(int)))(int); |
||
7763 | #else |
||
7764 | void (*signal ()) (); |
||
7765 | #endif |
||
7766 | |||
7767 | int |
||
7768 | main () |
||
7769 | { |
||
7770 | int i; |
||
7771 | ; |
||
7772 | return 0; |
||
7773 | } |
||
7774 | _ACEOF |
||
7775 | rm -f conftest.$ac_objext |
||
7776 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
||
7777 | (eval $ac_compile) 2>conftest.er1 |
||
7778 | ac_status=$? |
||
7779 | grep -v '^ *+' conftest.er1 >conftest.err |
||
7780 | rm -f conftest.er1 |
||
7781 | cat conftest.err >&5 |
||
7782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7783 | (exit $ac_status); } && |
||
7784 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
7785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
7786 | (eval $ac_try) 2>&5 |
||
7787 | ac_status=$? |
||
7788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7789 | (exit $ac_status); }; } && |
||
7790 | { ac_try='test -s conftest.$ac_objext' |
||
7791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
7792 | (eval $ac_try) 2>&5 |
||
7793 | ac_status=$? |
||
7794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7795 | (exit $ac_status); }; }; then |
||
7796 | ac_cv_type_signal=void |
||
7797 | else |
||
7798 | echo "$as_me: failed program was:" >&5 |
||
7799 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
7800 | |||
7801 | ac_cv_type_signal=int |
||
7802 | fi |
||
7803 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
||
7804 | fi |
||
7805 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
||
7806 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
||
7807 | |||
7808 | cat >>confdefs.h <<_ACEOF |
||
7809 | #define RETSIGTYPE $ac_cv_type_signal |
||
7810 | _ACEOF |
||
7811 | |||
7812 | |||
7813 | echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
||
7814 | echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6 |
||
7815 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
||
7816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
7817 | else |
||
7818 | if test "$cross_compiling" = yes; then |
||
7819 | ac_cv_func_stat_empty_string_bug=yes |
||
7820 | else |
||
7821 | cat >conftest.$ac_ext <<_ACEOF |
||
7822 | /* confdefs.h. */ |
||
7823 | _ACEOF |
||
7824 | cat confdefs.h >>conftest.$ac_ext |
||
7825 | cat >>conftest.$ac_ext <<_ACEOF |
||
7826 | /* end confdefs.h. */ |
||
7827 | $ac_includes_default |
||
7828 | int |
||
7829 | main () |
||
7830 | { |
||
7831 | struct stat sbuf; |
||
7832 | exit (stat ("", &sbuf) ? 1 : 0); |
||
7833 | ; |
||
7834 | return 0; |
||
7835 | } |
||
7836 | _ACEOF |
||
7837 | rm -f conftest$ac_exeext |
||
7838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
7839 | (eval $ac_link) 2>&5 |
||
7840 | ac_status=$? |
||
7841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7842 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
||
7843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
7844 | (eval $ac_try) 2>&5 |
||
7845 | ac_status=$? |
||
7846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7847 | (exit $ac_status); }; }; then |
||
7848 | ac_cv_func_stat_empty_string_bug=yes |
||
7849 | else |
||
7850 | echo "$as_me: program exited with status $ac_status" >&5 |
||
7851 | echo "$as_me: failed program was:" >&5 |
||
7852 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
7853 | |||
7854 | ( exit $ac_status ) |
||
7855 | ac_cv_func_stat_empty_string_bug=no |
||
7856 | fi |
||
7857 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
||
7858 | fi |
||
7859 | fi |
||
7860 | echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
||
7861 | echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6 |
||
7862 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
||
7863 | case $LIBOBJS in |
||
7864 | "stat.$ac_objext" | \ |
||
7865 | *" stat.$ac_objext" | \ |
||
7866 | "stat.$ac_objext "* | \ |
||
7867 | *" stat.$ac_objext "* ) ;; |
||
7868 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;; |
||
7869 | esac |
||
7870 | |||
7871 | |||
7872 | cat >>confdefs.h <<_ACEOF |
||
7873 | #define HAVE_STAT_EMPTY_STRING_BUG 1 |
||
7874 | _ACEOF |
||
7875 | |||
7876 | fi |
||
7877 | |||
7878 | echo "$as_me:$LINENO: checking for working strtod" >&5 |
||
7879 | echo $ECHO_N "checking for working strtod... $ECHO_C" >&6 |
||
7880 | if test "${ac_cv_func_strtod+set}" = set; then |
||
7881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
7882 | else |
||
7883 | if test "$cross_compiling" = yes; then |
||
7884 | ac_cv_func_strtod=no |
||
7885 | else |
||
7886 | cat >conftest.$ac_ext <<_ACEOF |
||
7887 | /* confdefs.h. */ |
||
7888 | _ACEOF |
||
7889 | cat confdefs.h >>conftest.$ac_ext |
||
7890 | cat >>conftest.$ac_ext <<_ACEOF |
||
7891 | /* end confdefs.h. */ |
||
7892 | |||
7893 | double strtod (); |
||
7894 | int |
||
7895 | main() |
||
7896 | { |
||
7897 | { |
||
7898 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ |
||
7899 | char *string = " +69"; |
||
7900 | char *term; |
||
7901 | double value; |
||
7902 | value = strtod (string, &term); |
||
7903 | if (value != 69 || term != (string + 4)) |
||
7904 | exit (1); |
||
7905 | } |
||
7906 | |||
7907 | { |
||
7908 | /* Under Solaris 2.4, strtod returns the wrong value for the |
||
7909 | terminating character under some conditions. */ |
||
7910 | char *string = "NaN"; |
||
7911 | char *term; |
||
7912 | strtod (string, &term); |
||
7913 | if (term != string && *(term - 1) == 0) |
||
7914 | exit (1); |
||
7915 | } |
||
7916 | exit (0); |
||
7917 | } |
||
7918 | |||
7919 | _ACEOF |
||
7920 | rm -f conftest$ac_exeext |
||
7921 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
7922 | (eval $ac_link) 2>&5 |
||
7923 | ac_status=$? |
||
7924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7925 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
||
7926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
7927 | (eval $ac_try) 2>&5 |
||
7928 | ac_status=$? |
||
7929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
7930 | (exit $ac_status); }; }; then |
||
7931 | ac_cv_func_strtod=yes |
||
7932 | else |
||
7933 | echo "$as_me: program exited with status $ac_status" >&5 |
||
7934 | echo "$as_me: failed program was:" >&5 |
||
7935 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
7936 | |||
7937 | ( exit $ac_status ) |
||
7938 | ac_cv_func_strtod=no |
||
7939 | fi |
||
7940 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
||
7941 | fi |
||
7942 | fi |
||
7943 | echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 |
||
7944 | echo "${ECHO_T}$ac_cv_func_strtod" >&6 |
||
7945 | if test $ac_cv_func_strtod = no; then |
||
7946 | case $LIBOBJS in |
||
7947 | "strtod.$ac_objext" | \ |
||
7948 | *" strtod.$ac_objext" | \ |
||
7949 | "strtod.$ac_objext "* | \ |
||
7950 | *" strtod.$ac_objext "* ) ;; |
||
7951 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;; |
||
7952 | esac |
||
7953 | |||
7954 | echo "$as_me:$LINENO: checking for pow" >&5 |
||
7955 | echo $ECHO_N "checking for pow... $ECHO_C" >&6 |
||
7956 | if test "${ac_cv_func_pow+set}" = set; then |
||
7957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
7958 | else |
||
7959 | cat >conftest.$ac_ext <<_ACEOF |
||
7960 | /* confdefs.h. */ |
||
7961 | _ACEOF |
||
7962 | cat confdefs.h >>conftest.$ac_ext |
||
7963 | cat >>conftest.$ac_ext <<_ACEOF |
||
7964 | /* end confdefs.h. */ |
||
7965 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
||
7966 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
||
7967 | #define pow innocuous_pow |
||
7968 | |||
7969 | /* System header to define __stub macros and hopefully few prototypes, |
||
7970 | which can conflict with char pow (); below. |
||
7971 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
7972 | <limits.h> exists even on freestanding compilers. */ |
||
7973 | |||
7974 | #ifdef __STDC__ |
||
7975 | # include <limits.h> |
||
7976 | #else |
||
7977 | # include <assert.h> |
||
7978 | #endif |
||
7979 | |||
7980 | #undef pow |
||
7981 | |||
7982 | /* Override any gcc2 internal prototype to avoid an error. */ |
||
7983 | #ifdef __cplusplus |
||
7984 | extern "C" |
||
7985 | { |
||
7986 | #endif |
||
7987 | /* We use char because int might match the return type of a gcc2 |
||
7988 | builtin and then its argument prototype would still apply. */ |
||
7989 | char pow (); |
||
7990 | /* The GNU C library defines this for functions which it implements |
||
7991 | to always fail with ENOSYS. Some functions are actually named |
||
7992 | something starting with __ and the normal name is an alias. */ |
||
7993 | #if defined (__stub_pow) || defined (__stub___pow) |
||
7994 | choke me |
||
7995 | #else |
||
7996 | char (*f) () = pow; |
||
7997 | #endif |
||
7998 | #ifdef __cplusplus |
||
7999 | } |
||
8000 | #endif |
||
8001 | |||
8002 | int |
||
8003 | main () |
||
8004 | { |
||
8005 | return f != pow; |
||
8006 | ; |
||
8007 | return 0; |
||
8008 | } |
||
8009 | _ACEOF |
||
8010 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
8011 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
8012 | (eval $ac_link) 2>conftest.er1 |
||
8013 | ac_status=$? |
||
8014 | grep -v '^ *+' conftest.er1 >conftest.err |
||
8015 | rm -f conftest.er1 |
||
8016 | cat conftest.err >&5 |
||
8017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
8018 | (exit $ac_status); } && |
||
8019 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
8020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
8021 | (eval $ac_try) 2>&5 |
||
8022 | ac_status=$? |
||
8023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
8024 | (exit $ac_status); }; } && |
||
8025 | { ac_try='test -s conftest$ac_exeext' |
||
8026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
8027 | (eval $ac_try) 2>&5 |
||
8028 | ac_status=$? |
||
8029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
8030 | (exit $ac_status); }; }; then |
||
8031 | ac_cv_func_pow=yes |
||
8032 | else |
||
8033 | echo "$as_me: failed program was:" >&5 |
||
8034 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
8035 | |||
8036 | ac_cv_func_pow=no |
||
8037 | fi |
||
8038 | rm -f conftest.err conftest.$ac_objext \ |
||
8039 | conftest$ac_exeext conftest.$ac_ext |
||
8040 | fi |
||
8041 | echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
||
8042 | echo "${ECHO_T}$ac_cv_func_pow" >&6 |
||
8043 | |||
8044 | if test $ac_cv_func_pow = no; then |
||
8045 | echo "$as_me:$LINENO: checking for pow in -lm" >&5 |
||
8046 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6 |
||
8047 | if test "${ac_cv_lib_m_pow+set}" = set; then |
||
8048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
8049 | else |
||
8050 | ac_check_lib_save_LIBS=$LIBS |
||
8051 | LIBS="-lm $LIBS" |
||
8052 | cat >conftest.$ac_ext <<_ACEOF |
||
8053 | /* confdefs.h. */ |
||
8054 | _ACEOF |
||
8055 | cat confdefs.h >>conftest.$ac_ext |
||
8056 | cat >>conftest.$ac_ext <<_ACEOF |
||
8057 | /* end confdefs.h. */ |
||
8058 | |||
8059 | /* Override any gcc2 internal prototype to avoid an error. */ |
||
8060 | #ifdef __cplusplus |
||
8061 | extern "C" |
||
8062 | #endif |
||
8063 | /* We use char because int might match the return type of a gcc2 |
||
8064 | builtin and then its argument prototype would still apply. */ |
||
8065 | char pow (); |
||
8066 | int |
||
8067 | main () |
||
8068 | { |
||
8069 | pow (); |
||
8070 | ; |
||
8071 | return 0; |
||
8072 | } |
||
8073 | _ACEOF |
||
8074 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
8075 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
8076 | (eval $ac_link) 2>conftest.er1 |
||
8077 | ac_status=$? |
||
8078 | grep -v '^ *+' conftest.er1 >conftest.err |
||
8079 | rm -f conftest.er1 |
||
8080 | cat conftest.err >&5 |
||
8081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
8082 | (exit $ac_status); } && |
||
8083 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
8084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
8085 | (eval $ac_try) 2>&5 |
||
8086 | ac_status=$? |
||
8087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
8088 | (exit $ac_status); }; } && |
||
8089 | { ac_try='test -s conftest$ac_exeext' |
||
8090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
8091 | (eval $ac_try) 2>&5 |
||
8092 | ac_status=$? |
||
8093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
8094 | (exit $ac_status); }; }; then |
||
8095 | ac_cv_lib_m_pow=yes |
||
8096 | else |
||
8097 | echo "$as_me: failed program was:" >&5 |
||
8098 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
8099 | |||
8100 | ac_cv_lib_m_pow=no |
||
8101 | fi |
||
8102 | rm -f conftest.err conftest.$ac_objext \ |
||
8103 | conftest$ac_exeext conftest.$ac_ext |
||
8104 | LIBS=$ac_check_lib_save_LIBS |
||
8105 | fi |
||
8106 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 |
||
8107 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6 |
||
8108 | if test $ac_cv_lib_m_pow = yes; then |
||
8109 | POW_LIB=-lm |
||
8110 | else |
||
8111 | { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 |
||
8112 | echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} |
||
8113 | fi |
||
8114 | |||
8115 | fi |
||
8116 | |||
8117 | fi |
||
8118 | |||
8119 | echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5 |
||
8120 | echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6 |
||
8121 | if test "${ac_cv_func_utime_null+set}" = set; then |
||
8122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
8123 | else |
||
8124 | rm -f conftest.data; >conftest.data |
||
8125 | # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong. |
||
8126 | if test "$cross_compiling" = yes; then |
||
8127 | ac_cv_func_utime_null=no |
||
8128 | else |
||
8129 | cat >conftest.$ac_ext <<_ACEOF |
||
8130 | /* confdefs.h. */ |
||
8131 | _ACEOF |
||
8132 | cat confdefs.h >>conftest.$ac_ext |
||
8133 | cat >>conftest.$ac_ext <<_ACEOF |
||
8134 | /* end confdefs.h. */ |
||
8135 | $ac_includes_default |
||
8136 | int |
||
8137 | main () |
||
8138 | { |
||
8139 | struct stat s, t; |
||
8140 | exit (!(stat ("conftest.data", &s) == 0 |
||
8141 | && utime ("conftest.data", (long *)0) == 0 |
||
8142 | && stat ("conftest.data", &t) == 0 |
||
8143 | && t.st_mtime >= s.st_mtime |
||
8144 | && t.st_mtime - s.st_mtime < 120)); |
||
8145 | ; |
||
8146 | return 0; |
||
8147 | } |
||
8148 | _ACEOF |
||
8149 | rm -f conftest$ac_exeext |
||
8150 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
8151 | (eval $ac_link) 2>&5 |
||
8152 | ac_status=$? |
||
8153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
8154 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
||
8155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
8156 | (eval $ac_try) 2>&5 |
||
8157 | ac_status=$? |
||
8158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
8159 | (exit $ac_status); }; }; then |
||
8160 | ac_cv_func_utime_null=yes |
||
8161 | else |
||
8162 | echo "$as_me: program exited with status $ac_status" >&5 |
||
8163 | echo "$as_me: failed program was:" >&5 |
||
8164 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
8165 | |||
8166 | ( exit $ac_status ) |
||
8167 | ac_cv_func_utime_null=no |
||
8168 | fi |
||
8169 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
||
8170 | fi |
||
8171 | rm -f core *.core |
||
8172 | fi |
||
8173 | echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5 |
||
8174 | echo "${ECHO_T}$ac_cv_func_utime_null" >&6 |
||
8175 | if test $ac_cv_func_utime_null = yes; then |
||
8176 | |||
8177 | cat >>confdefs.h <<\_ACEOF |
||
8178 | #define HAVE_UTIME_NULL 1 |
||
8179 | _ACEOF |
||
8180 | |||
8181 | fi |
||
8182 | rm -f conftest.data |
||
8183 | |||
8184 | |||
8185 | |||
8186 | |||
8187 | |||
8188 | |||
8189 | |||
8190 | |||
8191 | |||
8192 | |||
8193 | |||
8194 | |||
8195 | |||
8196 | |||
8197 | |||
8198 | |||
8199 | |||
8200 | |||
8201 | |||
8202 | |||
8203 | |||
8204 | |||
8205 | |||
8206 | |||
8207 | |||
8208 | for ac_func in dup2 alarm getcwd gethostbyname gethostname gettimeofday \ |
||
8209 | inet_ntoa memmove memset mkdir regcomp rmdir putenv select socket \ |
||
8210 | strcasecmp strchr strdup strerror strncasecmp strpbrk strrchr strstr utime |
||
8211 | do |
||
8212 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
8213 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
||
8214 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
||
8215 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
||
8216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
8217 | else |
||
8218 | cat >conftest.$ac_ext <<_ACEOF |
||
8219 | /* confdefs.h. */ |
||
8220 | _ACEOF |
||
8221 | cat confdefs.h >>conftest.$ac_ext |
||
8222 | cat >>conftest.$ac_ext <<_ACEOF |
||
8223 | /* end confdefs.h. */ |
||
8224 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
||
8225 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
||
8226 | #define $ac_func innocuous_$ac_func |
||
8227 | |||
8228 | /* System header to define __stub macros and hopefully few prototypes, |
||
8229 | which can conflict with char $ac_func (); below. |
||
8230 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
8231 | <limits.h> exists even on freestanding compilers. */ |
||
8232 | |||
8233 | #ifdef __STDC__ |
||
8234 | # include <limits.h> |
||
8235 | #else |
||
8236 | # include <assert.h> |
||
8237 | #endif |
||
8238 | |||
8239 | #undef $ac_func |
||
8240 | |||
8241 | /* Override any gcc2 internal prototype to avoid an error. */ |
||
8242 | #ifdef __cplusplus |
||
8243 | extern "C" |
||
8244 | { |
||
8245 | #endif |
||
8246 | /* We use char because int might match the return type of a gcc2 |
||
8247 | builtin and then its argument prototype would still apply. */ |
||
8248 | char $ac_func (); |
||
8249 | /* The GNU C library defines this for functions which it implements |
||
8250 | to always fail with ENOSYS. Some functions are actually named |
||
8251 | something starting with __ and the normal name is an alias. */ |
||
8252 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
||
8253 | choke me |
||
8254 | #else |
||
8255 | char (*f) () = $ac_func; |
||
8256 | #endif |
||
8257 | #ifdef __cplusplus |
||
8258 | } |
||
8259 | #endif |
||
8260 | |||
8261 | int |
||
8262 | main () |
||
8263 | { |
||
8264 | return f != $ac_func; |
||
8265 | ; |
||
8266 | return 0; |
||
8267 | } |
||
8268 | _ACEOF |
||
8269 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
8270 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
8271 | (eval $ac_link) 2>conftest.er1 |
||
8272 | ac_status=$? |
||
8273 | grep -v '^ *+' conftest.er1 >conftest.err |
||
8274 | rm -f conftest.er1 |
||
8275 | cat conftest.err >&5 |
||
8276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
8277 | (exit $ac_status); } && |
||
8278 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
8279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
8280 | (eval $ac_try) 2>&5 |
||
8281 | ac_status=$? |
||
8282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
8283 | (exit $ac_status); }; } && |
||
8284 | { ac_try='test -s conftest$ac_exeext' |
||
8285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
8286 | (eval $ac_try) 2>&5 |
||
8287 | ac_status=$? |
||
8288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
8289 | (exit $ac_status); }; }; then |
||
8290 | eval "$as_ac_var=yes" |
||
8291 | else |
||
8292 | echo "$as_me: failed program was:" >&5 |
||
8293 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
8294 | |||
8295 | eval "$as_ac_var=no" |
||
8296 | fi |
||
8297 | rm -f conftest.err conftest.$ac_objext \ |
||
8298 | conftest$ac_exeext conftest.$ac_ext |
||
8299 | fi |
||
8300 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
||
8301 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
||
8302 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
||
8303 | cat >>confdefs.h <<_ACEOF |
||
8304 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
||
8305 | _ACEOF |
||
8306 | |||
8307 | fi |
||
8308 | done |
||
8309 | |||
8310 | |||
8311 | # setenv ? |
||
8312 | |||
8313 | for ac_func in setenv |
||
8314 | do |
||
8315 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
||
8316 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
||
8317 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
||
8318 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
||
8319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
8320 | else |
||
8321 | cat >conftest.$ac_ext <<_ACEOF |
||
8322 | /* confdefs.h. */ |
||
8323 | _ACEOF |
||
8324 | cat confdefs.h >>conftest.$ac_ext |
||
8325 | cat >>conftest.$ac_ext <<_ACEOF |
||
8326 | /* end confdefs.h. */ |
||
8327 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
||
8328 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
||
8329 | #define $ac_func innocuous_$ac_func |
||
8330 | |||
8331 | /* System header to define __stub macros and hopefully few prototypes, |
||
8332 | which can conflict with char $ac_func (); below. |
||
8333 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
||
8334 | <limits.h> exists even on freestanding compilers. */ |
||
8335 | |||
8336 | #ifdef __STDC__ |
||
8337 | # include <limits.h> |
||
8338 | #else |
||
8339 | # include <assert.h> |
||
8340 | #endif |
||
8341 | |||
8342 | #undef $ac_func |
||
8343 | |||
8344 | /* Override any gcc2 internal prototype to avoid an error. */ |
||
8345 | #ifdef __cplusplus |
||
8346 | extern "C" |
||
8347 | { |
||
8348 | #endif |
||
8349 | /* We use char because int might match the return type of a gcc2 |
||
8350 | builtin and then its argument prototype would still apply. */ |
||
8351 | char $ac_func (); |
||
8352 | /* The GNU C library defines this for functions which it implements |
||
8353 | to always fail with ENOSYS. Some functions are actually named |
||
8354 | something starting with __ and the normal name is an alias. */ |
||
8355 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
||
8356 | choke me |
||
8357 | #else |
||
8358 | char (*f) () = $ac_func; |
||
8359 | #endif |
||
8360 | #ifdef __cplusplus |
||
8361 | } |
||
8362 | #endif |
||
8363 | |||
8364 | int |
||
8365 | main () |
||
8366 | { |
||
8367 | return f != $ac_func; |
||
8368 | ; |
||
8369 | return 0; |
||
8370 | } |
||
8371 | _ACEOF |
||
8372 | rm -f conftest.$ac_objext conftest$ac_exeext |
||
8373 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
||
8374 | (eval $ac_link) 2>conftest.er1 |
||
8375 | ac_status=$? |
||
8376 | grep -v '^ *+' conftest.er1 >conftest.err |
||
8377 | rm -f conftest.er1 |
||
8378 | cat conftest.err >&5 |
||
8379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
8380 | (exit $ac_status); } && |
||
8381 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
||
8382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
8383 | (eval $ac_try) 2>&5 |
||
8384 | ac_status=$? |
||
8385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
8386 | (exit $ac_status); }; } && |
||
8387 | { ac_try='test -s conftest$ac_exeext' |
||
8388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
||
8389 | (eval $ac_try) 2>&5 |
||
8390 | ac_status=$? |
||
8391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
||
8392 | (exit $ac_status); }; }; then |
||
8393 | eval "$as_ac_var=yes" |
||
8394 | else |
||
8395 | echo "$as_me: failed program was:" >&5 |
||
8396 | sed 's/^/| /' conftest.$ac_ext >&5 |
||
8397 | |||
8398 | eval "$as_ac_var=no" |
||
8399 | fi |
||
8400 | rm -f conftest.err conftest.$ac_objext \ |
||
8401 | conftest$ac_exeext conftest.$ac_ext |
||
8402 | fi |
||
8403 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
||
8404 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
||
8405 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
||
8406 | cat >>confdefs.h <<_ACEOF |
||
8407 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
||
8408 | _ACEOF |
||
8409 | |||
8410 | fi |
||
8411 | done |
||
8412 | |||
8413 | if test "$ac_cv_func_setenv" = no; then |
||
8414 | common=../Common |
||
8415 | SETENV_OBJS=$common/setenv.o |
||
8416 | # FIXME: there should not be various xmallocs with different semantics. Only |
||
8417 | # SETENV_OBJS should be necessary. |
||
8418 | ALLSETENV_OBJS="$SETENV_OBJS $common/xmalloc.o" |
||
8419 | else |
||
8420 | SETENV_OBJS= |
||
8421 | ALLSETENV_OBJS= |
||
8422 | fi |
||
8423 | |||
8424 | # Case insensitive file system? |
||
8425 | echo "$as_me:$LINENO: checking for WIMS.C" >&5 |
||
8426 | echo $ECHO_N "checking for WIMS.C... $ECHO_C" >&6 |
||
8427 | if test "${ac_cv_file_WIMS_C+set}" = set; then |
||
8428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
8429 | else |
||
8430 | test "$cross_compiling" = yes && |
||
8431 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
||
8432 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
||
8433 | { (exit 1); exit 1; }; } |
||
8434 | if test -r "WIMS.C"; then |
||
8435 | ac_cv_file_WIMS_C=yes |
||
8436 | else |
||
8437 | ac_cv_file_WIMS_C=no |
||
8438 | fi |
||
8439 | fi |
||
8440 | echo "$as_me:$LINENO: result: $ac_cv_file_WIMS_C" >&5 |
||
8441 | echo "${ECHO_T}$ac_cv_file_WIMS_C" >&6 |
||
8442 | if test $ac_cv_file_WIMS_C = yes; then |
||
8443 | D_CASE_INSENSITIVE_FS="-DCASE_INSENSITIVE_FS=1" |
||
8444 | else |
||
8445 | D_CASE_INSENSITIVE_FS= |
||
8446 | fi |
||
8447 | |||
8448 | # Static libm? |
||
8449 | echo "$as_me:$LINENO: checking for /usr/lib/libm.a" >&5 |
||
8450 | echo $ECHO_N "checking for /usr/lib/libm.a... $ECHO_C" >&6 |
||
8451 | if test "${ac_cv_file__usr_lib_libm_a+set}" = set; then |
||
8452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
||
8453 | else |
||
8454 | test "$cross_compiling" = yes && |
||
8455 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
||
8456 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
||
8457 | { (exit 1); exit 1; }; } |
||
8458 | if test -r "/usr/lib/libm.a"; then |
||
8459 | ac_cv_file__usr_lib_libm_a=yes |
||
8460 | else |
||
8461 | ac_cv_file__usr_lib_libm_a=no |
||
8462 | fi |
||
8463 | fi |
||
8464 | echo "$as_me:$LINENO: result: $ac_cv_file__usr_lib_libm_a" >&5 |
||
8465 | echo "${ECHO_T}$ac_cv_file__usr_lib_libm_a" >&6 |
||
8466 | if test $ac_cv_file__usr_lib_libm_a = yes; then |
||
8467 | STATIC_LIB=-static |
||
8468 | else |
||
8469 | STATIC_LIB= |
||
8470 | fi |
||
8471 | |||
8472 | |||
8473 | # Configure options |
||
8474 | |||
8475 | # Check whether --with-units or --without-units was given. |
||
8476 | if test "${with_units+set}" = set; then |
||
8477 | withval="$with_units" |
||
8478 | echo Compile units-filter: $with_units |
||
8479 | else |
||
8480 | with_units=yes; echo Compile units-filter: yes |
||
8481 | fi; |
||
8482 | BUILD_UNITS= |
||
8483 | if test "$with_units" = "yes"; then |
||
8484 | case "$LEXLIB" in |
||
8485 | -lfl) BUILD_UNITS=units-filter;; |
||
8486 | *) with_units=no; echo "Wait ... flex is not available, Compile units : no";; |
||
8487 | esac |
||
8488 | fi |
||
8489 | |||
8490 | |||
8491 | # Check whether --with-chemeq or --without-chemeq was given. |
||
8492 | if test "${with_chemeq+set}" = set; then |
||
8493 | withval="$with_chemeq" |
||
8494 | echo Compile chemeq: $with_chemeq |
||
8495 | else |
||
8496 | with_chemeq=yes; echo Compile chemeq: yes |
||
8497 | fi; |
||
8498 | BUILD_CHEMEQ= |
||
8499 | if test "$with_chemeq" = "yes"; then |
||
8500 | case "$LEXLIB" in |
||
8501 | -lfl) if test "$CXX" = "g++"; then |
||
8502 | case `"$CXX" --version` in |
||
8503 | 1*|2.[1-8]*|2.9[1-4]*|2.95.[1-2]) |
||
8504 | with_chemeq=no |
||
8505 | echo "Wait ... I need at least g++-2.95.3, Compile chemeq: no" ;; |
||
8506 | *) BUILD_CHEMEQ=chemeq;; |
||
8507 | esac |
||
8508 | else |
||
8509 | with_chemeq=no |
||
8510 | echo "Wait ... g++ is not available, Compile chemeq: no" |
||
8511 | fi;; |
||
8512 | *) with_chemeq=no |
||
8513 | echo "Wait ... flex is not available, Compile chemeq: no";; |
||
8514 | esac |
||
8515 | fi |
||
8516 | |||
8517 | |||
8518 | # Check whether --with-wimsd or --without-wimsd was given. |
||
8519 | if test "${with_wimsd+set}" = set; then |
||
8520 | withval="$with_wimsd" |
||
8521 | echo Compile wimsd: $with_wimsd |
||
8522 | else |
||
8523 | with_wimsd=yes; echo Compile wimsd: yes |
||
8524 | fi; |
||
8525 | if test "$with_wimsd" = "yes"; then |
||
8526 | BUILD_WIMSD=wimsd |
||
8527 | fi |
||
8528 | |||
8529 | date=`date +%Y-%m-%d` |
||
8530 | DEFINES="-DGNU_SOURCE -DVERSION_DATE=\\\"$date\\\"" |
||
8531 | |||
8532 | |||
8533 | |||
8534 | |||
8535 | |||
8536 | |||
8537 | |||
8538 | |||
8539 | |||
8540 | |||
8541 | |||
8542 | |||
8543 | |||
8544 | |||
8545 | ac_config_files="$ac_config_files Flydraw/gd/Makefile Flydraw/Makefile Interfaces/Makefile Lib/Makefile Makefile Misc/Makefile Misc/symtext/Makefile Misc/mathexp/Makefile Misc/chemeq/Makefile Misc/chemeq/src/Makefile Misc/units-filter/src/Makefile Misc/voronoiW/Makefile Misc/whirlgif/Makefile Module/Makefile Module/drawode/Makefile Msg2wims/Makefile Oef2wims/Makefile Wimsd/Makefile Wimslogd/Makefile Texgif/Makefile" |
||
8546 | |||
8547 | cat >confcache <<\_ACEOF |
||
8548 | # This file is a shell script that caches the results of configure |
||
8549 | # tests run on this system so they can be shared between configure |
||
8550 | # scripts and configure runs, see configure's option --config-cache. |
||
8551 | # It is not useful on other systems. If it contains results you don't |
||
8552 | # want to keep, you may remove or edit it. |
||
8553 | # |
||
8554 | # config.status only pays attention to the cache file if you give it |
||
8555 | # the --recheck option to rerun configure. |
||
8556 | # |
||
8557 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
||
8558 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
||
8559 | # following values. |
||
8560 | |||
8561 | _ACEOF |
||
8562 | |||
8563 | # The following way of writing the cache mishandles newlines in values, |
||
8564 | # but we know of no workaround that is simple, portable, and efficient. |
||
8565 | # So, don't put newlines in cache variables' values. |
||
8566 | # Ultrix sh set writes to stderr and can't be redirected directly, |
||
8567 | # and sets the high bit in the cache file unless we assign to the vars. |
||
8568 | { |
||
8569 | (set) 2>&1 | |
||
8570 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
||
8571 | *ac_space=\ *) |
||
8572 | # `set' does not quote correctly, so add quotes (double-quote |
||
8573 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
||
8574 | sed -n \ |
||
8575 | "s/'/'\\\\''/g; |
||
8576 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
||
8577 | ;; |
||
8578 | *) |
||
8579 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
||
8580 | sed -n \ |
||
8581 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
||
8582 | ;; |
||
8583 | esac; |
||
8584 | } | |
||
8585 | sed ' |
||
8586 | t clear |
||
8587 | : clear |
||
8588 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
||
8589 | t end |
||
8590 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
||
8591 | : end' >>confcache |
||
8592 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
||
8593 | if test -w $cache_file; then |
||
8594 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
||
8595 | cat confcache >$cache_file |
||
8596 | else |
||
8597 | echo "not updating unwritable cache $cache_file" |
||
8598 | fi |
||
8599 | fi |
||
8600 | rm -f confcache |
||
8601 | |||
8602 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
||
8603 | # Let make expand exec_prefix. |
||
8604 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
||
8605 | |||
8606 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
||
8607 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
||
8608 | # trailing colons and then remove the whole line if VPATH becomes empty |
||
8609 | # (actually we leave an empty line to preserve line numbers). |
||
8610 | if test "x$srcdir" = x.; then |
||
8611 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
||
8612 | s/:*\$(srcdir):*/:/; |
||
8613 | s/:*\${srcdir}:*/:/; |
||
8614 | s/:*@srcdir@:*/:/; |
||
8615 | s/^\([^=]*=[ ]*\):*/\1/; |
||
8616 | s/:*$//; |
||
8617 | s/^[^=]*=[ ]*$//; |
||
8618 | }' |
||
8619 | fi |
||
8620 | |||
8621 | DEFS=-DHAVE_CONFIG_H |
||
8622 | |||
8623 | ac_libobjs= |
||
8624 | ac_ltlibobjs= |
||
8625 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
||
8626 | # 1. Remove the extension, and $U if already installed. |
||
8627 | ac_i=`echo "$ac_i" | |
||
8628 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
||
8629 | # 2. Add them. |
||
8630 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
||
8631 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
||
8632 | done |
||
8633 | LIBOBJS=$ac_libobjs |
||
8634 | |||
8635 | LTLIBOBJS=$ac_ltlibobjs |
||
8636 | |||
8637 | |||
8638 | |||
8639 | : ${CONFIG_STATUS=./config.status} |
||
8640 | ac_clean_files_save=$ac_clean_files |
||
8641 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
||
8642 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
||
8643 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
||
8644 | cat >$CONFIG_STATUS <<_ACEOF |
||
8645 | #! $SHELL |
||
8646 | # Generated by $as_me. |
||
8647 | # Run this file to recreate the current configuration. |
||
8648 | # Compiler output produced by configure, useful for debugging |
||
8649 | # configure, is in config.log if it exists. |
||
8650 | |||
8651 | debug=false |
||
8652 | ac_cs_recheck=false |
||
8653 | ac_cs_silent=false |
||
8654 | SHELL=\${CONFIG_SHELL-$SHELL} |
||
8655 | _ACEOF |
||
8656 | |||
8657 | cat >>$CONFIG_STATUS <<\_ACEOF |
||
8658 | ## --------------------- ## |
||
8659 | ## M4sh Initialization. ## |
||
8660 | ## --------------------- ## |
||
8661 | |||
8662 | # Be Bourne compatible |
||
8663 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
||
8664 | emulate sh |
||
8665 | NULLCMD=: |
||
8666 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
||
8667 | # is contrary to our usage. Disable this feature. |
||
8668 | alias -g '${1+"$@"}'='"$@"' |
||
8669 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
||
8670 | set -o posix |
||
8671 | fi |
||
8672 | DUALCASE=1; export DUALCASE # for MKS sh |
||
8673 | |||
8674 | # Support unset when possible. |
||
8675 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
||
8676 | as_unset=unset |
||
8677 | else |
||
8678 | as_unset=false |
||
8679 | fi |
||
8680 | |||
8681 | |||
8682 | # Work around bugs in pre-3.0 UWIN ksh. |
||
8683 | $as_unset ENV MAIL MAILPATH |
||
8684 | PS1='$ ' |
||
8685 | PS2='> ' |
||
8686 | PS4='+ ' |
||
8687 | |||
8688 | # NLS nuisances. |
||
8689 | for as_var in \ |
||
8690 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
||
8691 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
||
8692 | LC_TELEPHONE LC_TIME |
||
8693 | do |
||
8694 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
||
8695 | eval $as_var=C; export $as_var |
||
8696 | else |
||
8697 | $as_unset $as_var |
||
8698 | fi |
||
8699 | done |
||
8700 | |||
8701 | # Required to use basename. |
||
8702 | if expr a : '\(a\)' >/dev/null 2>&1; then |
||
8703 | as_expr=expr |
||
8704 | else |
||
8705 | as_expr=false |
||
8706 | fi |
||
8707 | |||
8708 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
||
8709 | as_basename=basename |
||
8710 | else |
||
8711 | as_basename=false |
||
8712 | fi |
||
8713 | |||
8714 | |||
8715 | # Name of the executable. |
||
8716 | as_me=`$as_basename "$0" || |
||
8717 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
||
8718 | X"$0" : 'X\(//\)$' \| \ |
||
8719 | X"$0" : 'X\(/\)$' \| \ |
||
8720 | . : '\(.\)' 2>/dev/null || |
||
8721 | echo X/"$0" | |
||
8722 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
||
8723 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
||
8724 | /^X\/\(\/\).*/{ s//\1/; q; } |
||
8725 | s/.*/./; q'` |
||
8726 | |||
8727 | |||
8728 | # PATH needs CR, and LINENO needs CR and PATH. |
||
8729 | # Avoid depending upon Character Ranges. |
||
8730 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
||
8731 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
||
8732 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
||
8733 | as_cr_digits='0123456789' |
||
8734 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
||
8735 | |||
8736 | # The user is always right. |
||
8737 | if test "${PATH_SEPARATOR+set}" != set; then |
||
8738 | echo "#! /bin/sh" >conf$$.sh |
||
8739 | echo "exit 0" >>conf$$.sh |
||
8740 | chmod +x conf$$.sh |
||
8741 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
||
8742 | PATH_SEPARATOR=';' |
||
8743 | else |
||
8744 | PATH_SEPARATOR=: |
||
8745 | fi |
||
8746 | rm -f conf$$.sh |
||
8747 | fi |
||
8748 | |||
8749 | |||
8750 | as_lineno_1=$LINENO |
||
8751 | as_lineno_2=$LINENO |
||
8752 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
||
8753 | test "x$as_lineno_1" != "x$as_lineno_2" && |
||
8754 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
||
8755 | # Find who we are. Look in the path if we contain no path at all |
||
8756 | # relative or not. |
||
8757 | case $0 in |
||
8758 | *[\\/]* ) as_myself=$0 ;; |
||
8759 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
8760 | for as_dir in $PATH |
||
8761 | do |
||
8762 | IFS=$as_save_IFS |
||
8763 | test -z "$as_dir" && as_dir=. |
||
8764 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
||
8765 | done |
||
8766 | |||
8767 | ;; |
||
8768 | esac |
||
8769 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
||
8770 | # in which case we are not to be found in the path. |
||
8771 | if test "x$as_myself" = x; then |
||
8772 | as_myself=$0 |
||
8773 | fi |
||
8774 | if test ! -f "$as_myself"; then |
||
8775 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
||
8776 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
||
8777 | { (exit 1); exit 1; }; } |
||
8778 | fi |
||
8779 | case $CONFIG_SHELL in |
||
8780 | '') |
||
8781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
||
8782 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
||
8783 | do |
||
8784 | IFS=$as_save_IFS |
||
8785 | test -z "$as_dir" && as_dir=. |
||
8786 | for as_base in sh bash ksh sh5; do |
||
8787 | case $as_dir in |
||
8788 | /*) |
||
8789 | if ("$as_dir/$as_base" -c ' |
||
8790 | as_lineno_1=$LINENO |
||
8791 | as_lineno_2=$LINENO |
||
8792 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
||
8793 | test "x$as_lineno_1" != "x$as_lineno_2" && |
||
8794 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
||
8795 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
||
8796 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
||
8797 | CONFIG_SHELL=$as_dir/$as_base |
||
8798 | export CONFIG_SHELL |
||
8799 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
||
8800 | fi;; |
||
8801 | esac |
||
8802 | done |
||
8803 | done |
||
8804 | ;; |
||
8805 | esac |
||
8806 | |||
8807 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
||
8808 | # uniformly replaced by the line number. The first 'sed' inserts a |
||
8809 | # line-number line before each line; the second 'sed' does the real |
||
8810 | # work. The second script uses 'N' to pair each line-number line |
||
8811 | # with the numbered line, and appends trailing '-' during |
||
8812 | # substitution so that $LINENO is not a special case at line end. |
||
8813 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
||
8814 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
||
8815 | sed '=' <$as_myself | |
||
8816 | sed ' |
||
8817 | N |
||
8818 | s,$,-, |
||
8819 | : loop |
||
8820 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
||
8821 | t loop |
||
8822 | s,-$,, |
||
8823 | s,^['$as_cr_digits']*\n,, |
||
8824 | ' >$as_me.lineno && |
||
8825 | chmod +x $as_me.lineno || |
||
8826 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
||
8827 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
||
8828 | { (exit 1); exit 1; }; } |
||
8829 | |||
8830 | # Don't try to exec as it changes $[0], causing all sort of problems |
||
8831 | # (the dirname of $[0] is not the place where we might find the |
||
8832 | # original and so on. Autoconf is especially sensible to this). |
||
8833 | . ./$as_me.lineno |
||
8834 | # Exit status is that of the last command. |
||
8835 | exit |
||
8836 | } |
||
8837 | |||
8838 | |||
8839 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
||
8840 | *c*,-n*) ECHO_N= ECHO_C=' |
||
8841 | ' ECHO_T=' ' ;; |
||
8842 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
||
8843 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
||
8844 | esac |
||
8845 | |||
8846 | if expr a : '\(a\)' >/dev/null 2>&1; then |
||
8847 | as_expr=expr |
||
8848 | else |
||
8849 | as_expr=false |
||
8850 | fi |
||
8851 | |||
8852 | rm -f conf$$ conf$$.exe conf$$.file |
||
8853 | echo >conf$$.file |
||
8854 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
||
8855 | # We could just check for DJGPP; but this test a) works b) is more generic |
||
8856 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
||
8857 | if test -f conf$$.exe; then |
||
8858 | # Don't use ln at all; we don't have any links |
||
8859 | as_ln_s='cp -p' |
||
8860 | else |
||
8861 | as_ln_s='ln -s' |
||
8862 | fi |
||
8863 | elif ln conf$$.file conf$$ 2>/dev/null; then |
||
8864 | as_ln_s=ln |
||
8865 | else |
||
8866 | as_ln_s='cp -p' |
||
8867 | fi |
||
8868 | rm -f conf$$ conf$$.exe conf$$.file |
||
8869 | |||
8870 | if mkdir -p . 2>/dev/null; then |
||
8871 | as_mkdir_p=: |
||
8872 | else |
||
8873 | test -d ./-p && rmdir ./-p |
||
8874 | as_mkdir_p=false |
||
8875 | fi |
||
8876 | |||
8877 | as_executable_p="test -f" |
||
8878 | |||
8879 | # Sed expression to map a string onto a valid CPP name. |
||
8880 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
||
8881 | |||
8882 | # Sed expression to map a string onto a valid variable name. |
||
8883 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
||
8884 | |||
8885 | |||
8886 | # IFS |
||
8887 | # We need space, tab and new line, in precisely that order. |
||
8888 | as_nl=' |
||
8889 | ' |
||
8890 | IFS=" $as_nl" |
||
8891 | |||
8892 | # CDPATH. |
||
8893 | $as_unset CDPATH |
||
8894 | |||
8895 | exec 6>&1 |
||
8896 | |||
8897 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
||
8898 | # report actual input values of CONFIG_FILES etc. instead of their |
||
8899 | # values after options handling. Logging --version etc. is OK. |
||
8900 | exec 5>>config.log |
||
8901 | { |
||
8902 | echo |
||
8903 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
||
8904 | ## Running $as_me. ## |
||
8905 | _ASBOX |
||
8906 | } >&5 |
||
8907 | cat >&5 <<_CSEOF |
||
8908 | |||
8909 | This file was extended by WIMS $as_me 3.62, which was |
||
8910 | generated by GNU Autoconf 2.59. Invocation command line was |
||
8911 | |||
8912 | CONFIG_FILES = $CONFIG_FILES |
||
8913 | CONFIG_HEADERS = $CONFIG_HEADERS |
||
8914 | CONFIG_LINKS = $CONFIG_LINKS |
||
8915 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
||
8916 | $ $0 $@ |
||
8917 | |||
8918 | _CSEOF |
||
8919 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
||
8920 | echo >&5 |
||
8921 | _ACEOF |
||
8922 | |||
8923 | # Files that config.status was made for. |
||
8924 | if test -n "$ac_config_files"; then |
||
8925 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
||
8926 | fi |
||
8927 | |||
8928 | if test -n "$ac_config_headers"; then |
||
8929 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
||
8930 | fi |
||
8931 | |||
8932 | if test -n "$ac_config_links"; then |
||
8933 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
||
8934 | fi |
||
8935 | |||
8936 | if test -n "$ac_config_commands"; then |
||
8937 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
||
8938 | fi |
||
8939 | |||
8940 | cat >>$CONFIG_STATUS <<\_ACEOF |
||
8941 | |||
8942 | ac_cs_usage="\ |
||
8943 | \`$as_me' instantiates files from templates according to the |
||
8944 | current configuration. |
||
8945 | |||
8946 | Usage: $0 [OPTIONS] [FILE]... |
||
8947 | |||
8948 | -h, --help print this help, then exit |
||
8949 | -V, --version print version number, then exit |
||
8950 | -q, --quiet do not print progress messages |
||
8951 | -d, --debug don't remove temporary files |
||
8952 | --recheck update $as_me by reconfiguring in the same conditions |
||
8953 | --file=FILE[:TEMPLATE] |
||
8954 | instantiate the configuration file FILE |
||
8955 | --header=FILE[:TEMPLATE] |
||
8956 | instantiate the configuration header FILE |
||
8957 | |||
8958 | Configuration files: |
||
8959 | $config_files |
||
8960 | |||
8961 | Configuration headers: |
||
8962 | $config_headers |
||
8963 | |||
8964 | Report bugs to <bug-autoconf@gnu.org>." |
||
8965 | _ACEOF |
||
8966 | |||
8967 | cat >>$CONFIG_STATUS <<_ACEOF |
||
8968 | ac_cs_version="\\ |
||
8969 | WIMS config.status 3.62 |
||
8970 | configured by $0, generated by GNU Autoconf 2.59, |
||
8971 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
||
8972 | |||
8973 | Copyright (C) 2003 Free Software Foundation, Inc. |
||
8974 | This config.status script is free software; the Free Software Foundation |
||
8975 | gives unlimited permission to copy, distribute and modify it." |
||
8976 | srcdir=$srcdir |
||
8977 | _ACEOF |
||
8978 | |||
8979 | cat >>$CONFIG_STATUS <<\_ACEOF |
||
8980 | # If no file are specified by the user, then we need to provide default |
||
8981 | # value. By we need to know if files were specified by the user. |
||
8982 | ac_need_defaults=: |
||
8983 | while test $# != 0 |
||
8984 | do |
||
8985 | case $1 in |
||
8986 | --*=*) |
||
8987 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
||
8988 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
||
8989 | ac_shift=: |
||
8990 | ;; |
||
8991 | -*) |
||
8992 | ac_option=$1 |
||
8993 | ac_optarg=$2 |
||
8994 | ac_shift=shift |
||
8995 | ;; |
||
8996 | *) # This is not an option, so the user has probably given explicit |
||
8997 | # arguments. |
||
8998 | ac_option=$1 |
||
8999 | ac_need_defaults=false;; |
||
9000 | esac |
||
9001 | |||
9002 | case $ac_option in |
||
9003 | # Handling of the options. |
||
9004 | _ACEOF |
||
9005 | cat >>$CONFIG_STATUS <<\_ACEOF |
||
9006 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
||
9007 | ac_cs_recheck=: ;; |
||
9008 | --version | --vers* | -V ) |
||
9009 | echo "$ac_cs_version"; exit 0 ;; |
||
9010 | --he | --h) |
||
9011 | # Conflict between --help and --header |
||
9012 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
||
9013 | Try \`$0 --help' for more information." >&5 |
||
9014 | echo "$as_me: error: ambiguous option: $1 |
||
9015 | Try \`$0 --help' for more information." >&2;} |
||
9016 | { (exit 1); exit 1; }; };; |
||
9017 | --help | --hel | -h ) |
||
9018 | echo "$ac_cs_usage"; exit 0 ;; |
||
9019 | --debug | --d* | -d ) |
||
9020 | debug=: ;; |
||
9021 | --file | --fil | --fi | --f ) |
||
9022 | $ac_shift |
||
9023 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
||
9024 | ac_need_defaults=false;; |
||
9025 | --header | --heade | --head | --hea ) |
||
9026 | $ac_shift |
||
9027 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
||
9028 | ac_need_defaults=false;; |
||
9029 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
||
9030 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
||
9031 | ac_cs_silent=: ;; |
||
9032 | |||
9033 | # This is an error. |
||
9034 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
||
9035 | Try \`$0 --help' for more information." >&5 |
||
9036 | echo "$as_me: error: unrecognized option: $1 |
||
9037 | Try \`$0 --help' for more information." >&2;} |
||
9038 | { (exit 1); exit 1; }; } ;; |
||
9039 | |||
9040 | *) ac_config_targets="$ac_config_targets $1" ;; |
||
9041 | |||
9042 | esac |
||
9043 | shift |
||
9044 | done |
||
9045 | |||
9046 | ac_configure_extra_args= |
||
9047 | |||
9048 | if $ac_cs_silent; then |
||
9049 | exec 6>/dev/null |
||
9050 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
||
9051 | fi |
||
9052 | |||
9053 | _ACEOF |
||
9054 | cat >>$CONFIG_STATUS <<_ACEOF |
||
9055 | if \$ac_cs_recheck; then |
||
9056 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
||
9057 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
||
9058 | fi |
||
9059 | |||
9060 | _ACEOF |
||
9061 | |||
9062 | |||
9063 | |||
9064 | |||
9065 | |||
9066 | cat >>$CONFIG_STATUS <<\_ACEOF |
||
9067 | for ac_config_target in $ac_config_targets |
||
9068 | do |
||
9069 | case "$ac_config_target" in |
||
9070 | # Handling of arguments. |
||
9071 | "Flydraw/gd/Makefile" ) CONFIG_FILES="$CONFIG_FILES Flydraw/gd/Makefile" ;; |
||
9072 | "Flydraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES Flydraw/Makefile" ;; |
||
9073 | "Interfaces/Makefile" ) CONFIG_FILES="$CONFIG_FILES Interfaces/Makefile" ;; |
||
9074 | "Lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES Lib/Makefile" ;; |
||
9075 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
||
9076 | "Misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES Misc/Makefile" ;; |
||
9077 | "Misc/symtext/Makefile" ) CONFIG_FILES="$CONFIG_FILES Misc/symtext/Makefile" ;; |
||
9078 | "Misc/mathexp/Makefile" ) CONFIG_FILES="$CONFIG_FILES Misc/mathexp/Makefile" ;; |
||
9079 | "Misc/chemeq/Makefile" ) CONFIG_FILES="$CONFIG_FILES Misc/chemeq/Makefile" ;; |
||
9080 | "Misc/chemeq/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES Misc/chemeq/src/Makefile" ;; |
||
9081 | "Misc/units-filter/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES Misc/units-filter/src/Makefile" ;; |
||
9082 | "Misc/voronoiW/Makefile" ) CONFIG_FILES="$CONFIG_FILES Misc/voronoiW/Makefile" ;; |
||
9083 | "Misc/whirlgif/Makefile" ) CONFIG_FILES="$CONFIG_FILES Misc/whirlgif/Makefile" ;; |
||
9084 | "Module/Makefile" ) CONFIG_FILES="$CONFIG_FILES Module/Makefile" ;; |
||
9085 | "Module/drawode/Makefile" ) CONFIG_FILES="$CONFIG_FILES Module/drawode/Makefile" ;; |
||
9086 | "Msg2wims/Makefile" ) CONFIG_FILES="$CONFIG_FILES Msg2wims/Makefile" ;; |
||
9087 | "Oef2wims/Makefile" ) CONFIG_FILES="$CONFIG_FILES Oef2wims/Makefile" ;; |
||
9088 | "Wimsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES Wimsd/Makefile" ;; |
||
9089 | "Wimslogd/Makefile" ) CONFIG_FILES="$CONFIG_FILES Wimslogd/Makefile" ;; |
||
9090 | "Texgif/Makefile" ) CONFIG_FILES="$CONFIG_FILES Texgif/Makefile" ;; |
||
9091 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;; |
||
9092 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
||
9093 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
||
9094 | { (exit 1); exit 1; }; };; |
||
9095 | esac |
||
9096 | done |
||
9097 | |||
9098 | # If the user did not use the arguments to specify the items to instantiate, |
||
9099 | # then the envvar interface is used. Set only those that are not. |
||
9100 | # We use the long form for the default assignment because of an extremely |
||
9101 | # bizarre bug on SunOS 4.1.3. |
||
9102 | if $ac_need_defaults; then |
||
9103 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
||
9104 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
||
9105 | fi |
||
9106 | |||
9107 | # Have a temporary directory for convenience. Make it in the build tree |
||
9108 | # simply because there is no reason to put it here, and in addition, |
||
9109 | # creating and moving files from /tmp can sometimes cause problems. |
||
9110 | # Create a temporary directory, and hook for its removal unless debugging. |
||
9111 | $debug || |
||
9112 | { |
||
9113 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
||
9114 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
||
9115 | } |
||
9116 | |||
9117 | # Create a (secure) tmp directory for tmp files. |
||
9118 | |||
9119 | { |
||
9120 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
||
9121 | test -n "$tmp" && test -d "$tmp" |
||
9122 | } || |
||
9123 | { |
||
9124 | tmp=./confstat$$-$RANDOM |
||
9125 | (umask 077 && mkdir $tmp) |
||
9126 | } || |
||
9127 | { |
||
9128 | echo "$me: cannot create a temporary directory in ." >&2 |
||
9129 | { (exit 1); exit 1; } |
||
9130 | } |
||
9131 | |||
9132 | _ACEOF |
||
9133 | |||
9134 | cat >>$CONFIG_STATUS <<_ACEOF |
||
9135 | |||
9136 | # |
||
9137 | # CONFIG_FILES section. |
||
9138 | # |
||
9139 | |||
9140 | # No need to generate the scripts if there are no CONFIG_FILES. |
||
9141 | # This happens for instance when ./config.status config.h |
||
9142 | if test -n "\$CONFIG_FILES"; then |
||
9143 | # Protect against being on the right side of a sed subst in config.status. |
||
9144 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
||
9145 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
||
9146 | s,@SHELL@,$SHELL,;t t |
||
9147 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
||
9148 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
||
9149 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
||
9150 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
||
9151 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
||
9152 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
||
9153 | s,@exec_prefix@,$exec_prefix,;t t |
||
9154 | s,@prefix@,$prefix,;t t |
||
9155 | s,@program_transform_name@,$program_transform_name,;t t |
||
9156 | s,@bindir@,$bindir,;t t |
||
9157 | s,@sbindir@,$sbindir,;t t |
||
9158 | s,@libexecdir@,$libexecdir,;t t |
||
9159 | s,@datadir@,$datadir,;t t |
||
9160 | s,@sysconfdir@,$sysconfdir,;t t |
||
9161 | s,@sharedstatedir@,$sharedstatedir,;t t |
||
9162 | s,@localstatedir@,$localstatedir,;t t |
||
9163 | s,@libdir@,$libdir,;t t |
||
9164 | s,@includedir@,$includedir,;t t |
||
9165 | s,@oldincludedir@,$oldincludedir,;t t |
||
9166 | s,@infodir@,$infodir,;t t |
||
9167 | s,@mandir@,$mandir,;t t |
||
9168 | s,@build_alias@,$build_alias,;t t |
||
9169 | s,@host_alias@,$host_alias,;t t |
||
9170 | s,@target_alias@,$target_alias,;t t |
||
9171 | s,@DEFS@,$DEFS,;t t |
||
9172 | s,@ECHO_C@,$ECHO_C,;t t |
||
9173 | s,@ECHO_N@,$ECHO_N,;t t |
||
9174 | s,@ECHO_T@,$ECHO_T,;t t |
||
9175 | s,@LIBS@,$LIBS,;t t |
||
9176 | s,@LN_S@,$LN_S,;t t |
||
9177 | s,@AWK@,$AWK,;t t |
||
9178 | s,@YACC@,$YACC,;t t |
||
9179 | s,@CC@,$CC,;t t |
||
9180 | s,@CFLAGS@,$CFLAGS,;t t |
||
9181 | s,@LDFLAGS@,$LDFLAGS,;t t |
||
9182 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
||
9183 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
||
9184 | s,@EXEEXT@,$EXEEXT,;t t |
||
9185 | s,@OBJEXT@,$OBJEXT,;t t |
||
9186 | s,@CXX@,$CXX,;t t |
||
9187 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
||
9188 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
||
9189 | s,@CPP@,$CPP,;t t |
||
9190 | s,@LEX@,$LEX,;t t |
||
9191 | s,@LEXLIB@,$LEXLIB,;t t |
||
9192 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
||
9193 | s,@SET_MAKE@,$SET_MAKE,;t t |
||
9194 | s,@RANLIB@,$RANLIB,;t t |
||
9195 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
||
9196 | s,@STRIP@,$STRIP,;t t |
||
9197 | s,@TEX@,$TEX,;t t |
||
9198 | s,@ALLOCA@,$ALLOCA,;t t |
||
9199 | s,@EGREP@,$EGREP,;t t |
||
9200 | s,@LIBOBJS@,$LIBOBJS,;t t |
||
9201 | s,@POW_LIB@,$POW_LIB,;t t |
||
9202 | s,@D_CASE_INSENSITIVE_FS@,$D_CASE_INSENSITIVE_FS,;t t |
||
9203 | s,@STATIC_LIB@,$STATIC_LIB,;t t |
||
9204 | s,@DEFINES@,$DEFINES,;t t |
||
9205 | s,@RPATH@,$RPATH,;t t |
||
9206 | s,@BUILD_UNITS@,$BUILD_UNITS,;t t |
||
9207 | s,@BUILD_CHEMEQ@,$BUILD_CHEMEQ,;t t |
||
9208 | s,@BUILD_WIMSD@,$BUILD_WIMSD,;t t |
||
9209 | s,@SETENV_OBJS@,$SETENV_OBJS,;t t |
||
9210 | s,@ALLSETENV_OBJS@,$ALLSETENV_OBJS,;t t |
||
9211 | s,@NETLIBS@,$NETLIBS,;t t |
||
9212 | s,@FLEXLIB@,$FLEXLIB,;t t |
||
9213 | s,@CRYPTLIB@,$CRYPTLIB,;t t |
||
9214 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
||
9215 | CEOF |
||
9216 | |||
9217 | _ACEOF |
||
9218 | |||
9219 | cat >>$CONFIG_STATUS <<\_ACEOF |
||
9220 | # Split the substitutions into bite-sized pieces for seds with |
||
9221 | # small command number limits, like on Digital OSF/1 and HP-UX. |
||
9222 | ac_max_sed_lines=48 |
||
9223 | ac_sed_frag=1 # Number of current file. |
||
9224 | ac_beg=1 # First line for current file. |
||
9225 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
||
9226 | ac_more_lines=: |
||
9227 | ac_sed_cmds= |
||
9228 | while $ac_more_lines; do |
||
9229 | if test $ac_beg -gt 1; then |
||
9230 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
||
9231 | else |
||
9232 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
||
9233 | fi |
||
9234 | if test ! -s $tmp/subs.frag; then |
||
9235 | ac_more_lines=false |
||
9236 | else |
||
9237 | # The purpose of the label and of the branching condition is to |
||
9238 | # speed up the sed processing (if there are no `@' at all, there |
||
9239 | # is no need to browse any of the substitutions). |
||
9240 | # These are the two extra sed commands mentioned above. |
||
9241 | (echo ':t |
||
9242 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
||
9243 | if test -z "$ac_sed_cmds"; then |
||
9244 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
||
9245 | else |
||
9246 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
||
9247 | fi |
||
9248 | ac_sed_frag=`expr $ac_sed_frag + 1` |
||
9249 | ac_beg=$ac_end |
||
9250 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
||
9251 | fi |
||
9252 | done |
||
9253 | if test -z "$ac_sed_cmds"; then |
||
9254 | ac_sed_cmds=cat |
||
9255 | fi |
||
9256 | fi # test -n "$CONFIG_FILES" |
||
9257 | |||
9258 | _ACEOF |
||
9259 | cat >>$CONFIG_STATUS <<\_ACEOF |
||
9260 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
||
9261 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
||
9262 | case $ac_file in |
||
9263 | - | *:- | *:-:* ) # input from stdin |
||
9264 | cat >$tmp/stdin |
||
9265 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
||
9266 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
||
9267 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
||
9268 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
||
9269 | * ) ac_file_in=$ac_file.in ;; |
||
9270 | esac |
||
9271 | |||
9272 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
||
9273 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
||
9274 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
9275 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
||
9276 | X"$ac_file" : 'X\(//\)$' \| \ |
||
9277 | X"$ac_file" : 'X\(/\)' \| \ |
||
9278 | . : '\(.\)' 2>/dev/null || |
||
9279 | echo X"$ac_file" | |
||
9280 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
||
9281 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
||
9282 | /^X\(\/\/\)$/{ s//\1/; q; } |
||
9283 | /^X\(\/\).*/{ s//\1/; q; } |
||
9284 | s/.*/./; q'` |
||
9285 | { if $as_mkdir_p; then |
||
9286 | mkdir -p "$ac_dir" |
||
9287 | else |
||
9288 | as_dir="$ac_dir" |
||
9289 | as_dirs= |
||
9290 | while test ! -d "$as_dir"; do |
||
9291 | as_dirs="$as_dir $as_dirs" |
||
9292 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
||
9293 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
9294 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
||
9295 | X"$as_dir" : 'X\(//\)$' \| \ |
||
9296 | X"$as_dir" : 'X\(/\)' \| \ |
||
9297 | . : '\(.\)' 2>/dev/null || |
||
9298 | echo X"$as_dir" | |
||
9299 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
||
9300 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
||
9301 | /^X\(\/\/\)$/{ s//\1/; q; } |
||
9302 | /^X\(\/\).*/{ s//\1/; q; } |
||
9303 | s/.*/./; q'` |
||
9304 | done |
||
9305 | test ! -n "$as_dirs" || mkdir $as_dirs |
||
9306 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
||
9307 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
||
9308 | { (exit 1); exit 1; }; }; } |
||
9309 | |||
9310 | ac_builddir=. |
||
9311 | |||
9312 | if test "$ac_dir" != .; then |
||
9313 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
||
9314 | # A "../" for each directory in $ac_dir_suffix. |
||
9315 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
||
9316 | else |
||
9317 | ac_dir_suffix= ac_top_builddir= |
||
9318 | fi |
||
9319 | |||
9320 | case $srcdir in |
||
9321 | .) # No --srcdir option. We are building in place. |
||
9322 | ac_srcdir=. |
||
9323 | if test -z "$ac_top_builddir"; then |
||
9324 | ac_top_srcdir=. |
||
9325 | else |
||
9326 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
||
9327 | fi ;; |
||
9328 | [\\/]* | ?:[\\/]* ) # Absolute path. |
||
9329 | ac_srcdir=$srcdir$ac_dir_suffix; |
||
9330 | ac_top_srcdir=$srcdir ;; |
||
9331 | *) # Relative path. |
||
9332 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
||
9333 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
||
9334 | esac |
||
9335 | |||
9336 | # Do not use `cd foo && pwd` to compute absolute paths, because |
||
9337 | # the directories may not exist. |
||
9338 | case `pwd` in |
||
9339 | .) ac_abs_builddir="$ac_dir";; |
||
9340 | *) |
||
9341 | case "$ac_dir" in |
||
9342 | .) ac_abs_builddir=`pwd`;; |
||
9343 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
||
9344 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
||
9345 | esac;; |
||
9346 | esac |
||
9347 | case $ac_abs_builddir in |
||
9348 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
||
9349 | *) |
||
9350 | case ${ac_top_builddir}. in |
||
9351 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
||
9352 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
||
9353 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
||
9354 | esac;; |
||
9355 | esac |
||
9356 | case $ac_abs_builddir in |
||
9357 | .) ac_abs_srcdir=$ac_srcdir;; |
||
9358 | *) |
||
9359 | case $ac_srcdir in |
||
9360 | .) ac_abs_srcdir=$ac_abs_builddir;; |
||
9361 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
||
9362 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
||
9363 | esac;; |
||
9364 | esac |
||
9365 | case $ac_abs_builddir in |
||
9366 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
||
9367 | *) |
||
9368 | case $ac_top_srcdir in |
||
9369 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
||
9370 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
||
9371 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
||
9372 | esac;; |
||
9373 | esac |
||
9374 | |||
9375 | |||
9376 | |||
9377 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
||
9378 | # use $as_me), people would be surprised to read: |
||
9379 | # /* config.h. Generated by config.status. */ |
||
9380 | if test x"$ac_file" = x-; then |
||
9381 | configure_input= |
||
9382 | else |
||
9383 | configure_input="$ac_file. " |
||
9384 | fi |
||
9385 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
||
9386 | sed 's,.*/,,'` by configure." |
||
9387 | |||
9388 | # First look for the input files in the build tree, otherwise in the |
||
9389 | # src tree. |
||
9390 | ac_file_inputs=`IFS=: |
||
9391 | for f in $ac_file_in; do |
||
9392 | case $f in |
||
9393 | -) echo $tmp/stdin ;; |
||
9394 | [\\/$]*) |
||
9395 | # Absolute (can't be DOS-style, as IFS=:) |
||
9396 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
||
9397 | echo "$as_me: error: cannot find input file: $f" >&2;} |
||
9398 | { (exit 1); exit 1; }; } |
||
9399 | echo "$f";; |
||
9400 | *) # Relative |
||
9401 | if test -f "$f"; then |
||
9402 | # Build tree |
||
9403 | echo "$f" |
||
9404 | elif test -f "$srcdir/$f"; then |
||
9405 | # Source tree |
||
9406 | echo "$srcdir/$f" |
||
9407 | else |
||
9408 | # /dev/null tree |
||
9409 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
||
9410 | echo "$as_me: error: cannot find input file: $f" >&2;} |
||
9411 | { (exit 1); exit 1; }; } |
||
9412 | fi;; |
||
9413 | esac |
||
9414 | done` || { (exit 1); exit 1; } |
||
9415 | |||
9416 | if test x"$ac_file" != x-; then |
||
9417 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
||
9418 | echo "$as_me: creating $ac_file" >&6;} |
||
9419 | rm -f "$ac_file" |
||
9420 | fi |
||
9421 | _ACEOF |
||
9422 | cat >>$CONFIG_STATUS <<_ACEOF |
||
9423 | sed "$ac_vpsub |
||
9424 | $extrasub |
||
9425 | _ACEOF |
||
9426 | cat >>$CONFIG_STATUS <<\_ACEOF |
||
9427 | :t |
||
9428 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
||
9429 | s,@configure_input@,$configure_input,;t t |
||
9430 | s,@srcdir@,$ac_srcdir,;t t |
||
9431 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
||
9432 | s,@top_srcdir@,$ac_top_srcdir,;t t |
||
9433 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
||
9434 | s,@builddir@,$ac_builddir,;t t |
||
9435 | s,@abs_builddir@,$ac_abs_builddir,;t t |
||
9436 | s,@top_builddir@,$ac_top_builddir,;t t |
||
9437 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
||
9438 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
||
9439 | rm -f $tmp/stdin |
||
9440 | if test x"$ac_file" != x-; then |
||
9441 | mv $tmp/out $ac_file |
||
9442 | else |
||
9443 | cat $tmp/out |
||
9444 | rm -f $tmp/out |
||
9445 | fi |
||
9446 | |||
9447 | done |
||
9448 | _ACEOF |
||
9449 | cat >>$CONFIG_STATUS <<\_ACEOF |
||
9450 | |||
9451 | # |
||
9452 | # CONFIG_HEADER section. |
||
9453 | # |
||
9454 | |||
9455 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
||
9456 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
||
9457 | # |
||
9458 | # ac_d sets the value in "#define NAME VALUE" lines. |
||
9459 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
||
9460 | ac_dB='[ ].*$,\1#\2' |
||
9461 | ac_dC=' ' |
||
9462 | ac_dD=',;t' |
||
9463 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
||
9464 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
||
9465 | ac_uB='$,\1#\2define\3' |
||
9466 | ac_uC=' ' |
||
9467 | ac_uD=',;t' |
||
9468 | |||
9469 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
||
9470 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
||
9471 | case $ac_file in |
||
9472 | - | *:- | *:-:* ) # input from stdin |
||
9473 | cat >$tmp/stdin |
||
9474 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
||
9475 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
||
9476 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
||
9477 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
||
9478 | * ) ac_file_in=$ac_file.in ;; |
||
9479 | esac |
||
9480 | |||
9481 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
||
9482 | echo "$as_me: creating $ac_file" >&6;} |
||
9483 | |||
9484 | # First look for the input files in the build tree, otherwise in the |
||
9485 | # src tree. |
||
9486 | ac_file_inputs=`IFS=: |
||
9487 | for f in $ac_file_in; do |
||
9488 | case $f in |
||
9489 | -) echo $tmp/stdin ;; |
||
9490 | [\\/$]*) |
||
9491 | # Absolute (can't be DOS-style, as IFS=:) |
||
9492 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
||
9493 | echo "$as_me: error: cannot find input file: $f" >&2;} |
||
9494 | { (exit 1); exit 1; }; } |
||
9495 | # Do quote $f, to prevent DOS paths from being IFS'd. |
||
9496 | echo "$f";; |
||
9497 | *) # Relative |
||
9498 | if test -f "$f"; then |
||
9499 | # Build tree |
||
9500 | echo "$f" |
||
9501 | elif test -f "$srcdir/$f"; then |
||
9502 | # Source tree |
||
9503 | echo "$srcdir/$f" |
||
9504 | else |
||
9505 | # /dev/null tree |
||
9506 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
||
9507 | echo "$as_me: error: cannot find input file: $f" >&2;} |
||
9508 | { (exit 1); exit 1; }; } |
||
9509 | fi;; |
||
9510 | esac |
||
9511 | done` || { (exit 1); exit 1; } |
||
9512 | # Remove the trailing spaces. |
||
9513 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
||
9514 | |||
9515 | _ACEOF |
||
9516 | |||
9517 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
||
9518 | # `conftest.undefs', that substitutes the proper values into |
||
9519 | # config.h.in to produce config.h. The first handles `#define' |
||
9520 | # templates, and the second `#undef' templates. |
||
9521 | # And first: Protect against being on the right side of a sed subst in |
||
9522 | # config.status. Protect against being in an unquoted here document |
||
9523 | # in config.status. |
||
9524 | rm -f conftest.defines conftest.undefs |
||
9525 | # Using a here document instead of a string reduces the quoting nightmare. |
||
9526 | # Putting comments in sed scripts is not portable. |
||
9527 | # |
||
9528 | # `end' is used to avoid that the second main sed command (meant for |
||
9529 | # 0-ary CPP macros) applies to n-ary macro definitions. |
||
9530 | # See the Autoconf documentation for `clear'. |
||
9531 | cat >confdef2sed.sed <<\_ACEOF |
||
9532 | s/[\\&,]/\\&/g |
||
9533 | s,[\\$`],\\&,g |
||
9534 | t clear |
||
9535 | : clear |
||
9536 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
||
9537 | t end |
||
9538 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
||
9539 | : end |
||
9540 | _ACEOF |
||
9541 | # If some macros were called several times there might be several times |
||
9542 | # the same #defines, which is useless. Nevertheless, we may not want to |
||
9543 | # sort them, since we want the *last* AC-DEFINE to be honored. |
||
9544 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
||
9545 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
||
9546 | rm -f confdef2sed.sed |
||
9547 | |||
9548 | # This sed command replaces #undef with comments. This is necessary, for |
||
9549 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
||
9550 | # on some systems where configure will not decide to define it. |
||
9551 | cat >>conftest.undefs <<\_ACEOF |
||
9552 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
||
9553 | _ACEOF |
||
9554 | |||
9555 | # Break up conftest.defines because some shells have a limit on the size |
||
9556 | # of here documents, and old seds have small limits too (100 cmds). |
||
9557 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
||
9558 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
||
9559 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
||
9560 | echo ' :' >>$CONFIG_STATUS |
||
9561 | rm -f conftest.tail |
||
9562 | while grep . conftest.defines >/dev/null |
||
9563 | do |
||
9564 | # Write a limited-size here document to $tmp/defines.sed. |
||
9565 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
||
9566 | # Speed up: don't consider the non `#define' lines. |
||
9567 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
||
9568 | # Work around the forget-to-reset-the-flag bug. |
||
9569 | echo 't clr' >>$CONFIG_STATUS |
||
9570 | echo ': clr' >>$CONFIG_STATUS |
||
9571 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
||
9572 | echo 'CEOF |
||
9573 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
||
9574 | rm -f $tmp/in |
||
9575 | mv $tmp/out $tmp/in |
||
9576 | ' >>$CONFIG_STATUS |
||
9577 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
||
9578 | rm -f conftest.defines |
||
9579 | mv conftest.tail conftest.defines |
||
9580 | done |
||
9581 | rm -f conftest.defines |
||
9582 | echo ' fi # grep' >>$CONFIG_STATUS |
||
9583 | echo >>$CONFIG_STATUS |
||
9584 | |||
9585 | # Break up conftest.undefs because some shells have a limit on the size |
||
9586 | # of here documents, and old seds have small limits too (100 cmds). |
||
9587 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
||
9588 | rm -f conftest.tail |
||
9589 | while grep . conftest.undefs >/dev/null |
||
9590 | do |
||
9591 | # Write a limited-size here document to $tmp/undefs.sed. |
||
9592 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
||
9593 | # Speed up: don't consider the non `#undef' |
||
9594 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
||
9595 | # Work around the forget-to-reset-the-flag bug. |
||
9596 | echo 't clr' >>$CONFIG_STATUS |
||
9597 | echo ': clr' >>$CONFIG_STATUS |
||
9598 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
||
9599 | echo 'CEOF |
||
9600 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
||
9601 | rm -f $tmp/in |
||
9602 | mv $tmp/out $tmp/in |
||
9603 | ' >>$CONFIG_STATUS |
||
9604 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
||
9605 | rm -f conftest.undefs |
||
9606 | mv conftest.tail conftest.undefs |
||
9607 | done |
||
9608 | rm -f conftest.undefs |
||
9609 | |||
9610 | cat >>$CONFIG_STATUS <<\_ACEOF |
||
9611 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
||
9612 | # use $as_me), people would be surprised to read: |
||
9613 | # /* config.h. Generated by config.status. */ |
||
9614 | if test x"$ac_file" = x-; then |
||
9615 | echo "/* Generated by configure. */" >$tmp/config.h |
||
9616 | else |
||
9617 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
||
9618 | fi |
||
9619 | cat $tmp/in >>$tmp/config.h |
||
9620 | rm -f $tmp/in |
||
9621 | if test x"$ac_file" != x-; then |
||
9622 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
||
9623 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
||
9624 | echo "$as_me: $ac_file is unchanged" >&6;} |
||
9625 | else |
||
9626 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
||
9627 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
9628 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
||
9629 | X"$ac_file" : 'X\(//\)$' \| \ |
||
9630 | X"$ac_file" : 'X\(/\)' \| \ |
||
9631 | . : '\(.\)' 2>/dev/null || |
||
9632 | echo X"$ac_file" | |
||
9633 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
||
9634 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
||
9635 | /^X\(\/\/\)$/{ s//\1/; q; } |
||
9636 | /^X\(\/\).*/{ s//\1/; q; } |
||
9637 | s/.*/./; q'` |
||
9638 | { if $as_mkdir_p; then |
||
9639 | mkdir -p "$ac_dir" |
||
9640 | else |
||
9641 | as_dir="$ac_dir" |
||
9642 | as_dirs= |
||
9643 | while test ! -d "$as_dir"; do |
||
9644 | as_dirs="$as_dir $as_dirs" |
||
9645 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
||
9646 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
||
9647 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
||
9648 | X"$as_dir" : 'X\(//\)$' \| \ |
||
9649 | X"$as_dir" : 'X\(/\)' \| \ |
||
9650 | . : '\(.\)' 2>/dev/null || |
||
9651 | echo X"$as_dir" | |
||
9652 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
||
9653 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
||
9654 | /^X\(\/\/\)$/{ s//\1/; q; } |
||
9655 | /^X\(\/\).*/{ s//\1/; q; } |
||
9656 | s/.*/./; q'` |
||
9657 | done |
||
9658 | test ! -n "$as_dirs" || mkdir $as_dirs |
||
9659 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
||
9660 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
||
9661 | { (exit 1); exit 1; }; }; } |
||
9662 | |||
9663 | rm -f $ac_file |
||
9664 | mv $tmp/config.h $ac_file |
||
9665 | fi |
||
9666 | else |
||
9667 | cat $tmp/config.h |
||
9668 | rm -f $tmp/config.h |
||
9669 | fi |
||
9670 | done |
||
9671 | _ACEOF |
||
9672 | |||
9673 | cat >>$CONFIG_STATUS <<\_ACEOF |
||
9674 | |||
9675 | { (exit 0); exit 0; } |
||
9676 | _ACEOF |
||
9677 | chmod +x $CONFIG_STATUS |
||
9678 | ac_clean_files=$ac_clean_files_save |
||
9679 | |||
9680 | |||
9681 | # configure is writing to config.log, and then calls config.status. |
||
9682 | # config.status does its own redirection, appending to config.log. |
||
9683 | # Unfortunately, on DOS this fails, as config.log is still kept open |
||
9684 | # by configure, so config.status won't be able to write to it; its |
||
9685 | # output is simply discarded. So we exec the FD to /dev/null, |
||
9686 | # effectively closing config.log, so it can be properly (re)opened and |
||
9687 | # appended to by config.status. When coming back to configure, we |
||
9688 | # need to make the FD available again. |
||
9689 | if test "$no_create" != yes; then |
||
9690 | ac_cs_success=: |
||
9691 | ac_config_status_args= |
||
9692 | test "$silent" = yes && |
||
9693 | ac_config_status_args="$ac_config_status_args --quiet" |
||
9694 | exec 5>/dev/null |
||
9695 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
||
9696 | exec 5>>config.log |
||
9697 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
||
9698 | # would make configure fail if this is the last instruction. |
||
9699 | $ac_cs_success || { (exit 1); exit 1; } |
||
9700 | fi |
||
9701 |