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