Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
42ecbf5e | 3 | # Generated by GNU Autoconf 2.59. |
252b5132 | 4 | # |
42ecbf5e | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
252b5132 RH |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
42ecbf5e DJ |
8 | ## --------------------- ## |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
11 | ||
12 | # Be Bourne compatible | |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14 | emulate sh | |
15 | NULLCMD=: | |
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
17 | # is contrary to our usage. Disable this feature. | |
18 | alias -g '${1+"$@"}'='"$@"' | |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20 | set -o posix | |
21 | fi | |
22 | DUALCASE=1; export DUALCASE # for MKS sh | |
23 | ||
24 | # Support unset when possible. | |
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26 | as_unset=unset | |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
31 | ||
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
33 | $as_unset ENV MAIL MAILPATH | |
34 | PS1='$ ' | |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
39 | for as_var in \ | |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 | LC_TELEPHONE LC_TIME | |
43 | do | |
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
45 | eval $as_var=C; export $as_var | |
46 | else | |
47 | $as_unset $as_var | |
48 | fi | |
49 | done | |
50 | ||
51 | # Required to use basename. | |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
66 | as_me=`$as_basename "$0" || | |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
68 | X"$0" : 'X\(//\)$' \| \ | |
69 | X"$0" : 'X\(/\)$' \| \ | |
70 | . : '\(.\)' 2>/dev/null || | |
71 | echo X/"$0" | | |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
76 | ||
77 | ||
78 | # PATH needs CR, and LINENO needs CR and PATH. | |
79 | # Avoid depending upon Character Ranges. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
85 | ||
86 | # The user is always right. | |
87 | if test "${PATH_SEPARATOR+set}" != set; then | |
88 | echo "#! /bin/sh" >conf$$.sh | |
89 | echo "exit 0" >>conf$$.sh | |
90 | chmod +x conf$$.sh | |
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
92 | PATH_SEPARATOR=';' | |
93 | else | |
94 | PATH_SEPARATOR=: | |
95 | fi | |
96 | rm -f conf$$.sh | |
97 | fi | |
98 | ||
99 | ||
100 | as_lineno_1=$LINENO | |
101 | as_lineno_2=$LINENO | |
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
105 | # Find who we are. Look in the path if we contain no path at all | |
106 | # relative or not. | |
107 | case $0 in | |
108 | *[\\/]* ) as_myself=$0 ;; | |
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
116 | ||
117 | ;; | |
118 | esac | |
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
120 | # in which case we are not to be found in the path. | |
121 | if test "x$as_myself" = x; then | |
122 | as_myself=$0 | |
123 | fi | |
124 | if test ! -f "$as_myself"; then | |
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
126 | { (exit 1); exit 1; }; } | |
127 | fi | |
128 | case $CONFIG_SHELL in | |
129 | '') | |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
135 | for as_base in sh bash ksh sh5; do | |
136 | case $as_dir in | |
137 | /*) | |
138 | if ("$as_dir/$as_base" -c ' | |
139 | as_lineno_1=$LINENO | |
140 | as_lineno_2=$LINENO | |
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
146 | CONFIG_SHELL=$as_dir/$as_base | |
147 | export CONFIG_SHELL | |
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
149 | fi;; | |
150 | esac | |
151 | done | |
152 | done | |
153 | ;; | |
154 | esac | |
155 | ||
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
157 | # uniformly replaced by the line number. The first 'sed' inserts a | |
158 | # line-number line before each line; the second 'sed' does the real | |
159 | # work. The second script uses 'N' to pair each line-number line | |
160 | # with the numbered line, and appends trailing '-' during | |
161 | # substitution so that $LINENO is not a special case at line end. | |
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
164 | sed '=' <$as_myself | | |
165 | sed ' | |
166 | N | |
167 | s,$,-, | |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
170 | t loop | |
171 | s,-$,, | |
172 | s,^['$as_cr_digits']*\n,, | |
173 | ' >$as_me.lineno && | |
174 | chmod +x $as_me.lineno || | |
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
176 | { (exit 1); exit 1; }; } | |
177 | ||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | |
179 | # (the dirname of $[0] is not the place where we might find the | |
180 | # original and so on. Autoconf is especially sensible to this). | |
181 | . ./$as_me.lineno | |
182 | # Exit status is that of the last command. | |
183 | exit | |
184 | } | |
185 | ||
186 | ||
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
188 | *c*,-n*) ECHO_N= ECHO_C=' | |
189 | ' ECHO_T=' ' ;; | |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
192 | esac | |
193 | ||
194 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
195 | as_expr=expr | |
196 | else | |
197 | as_expr=false | |
198 | fi | |
199 | ||
200 | rm -f conf$$ conf$$.exe conf$$.file | |
201 | echo >conf$$.file | |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
203 | # We could just check for DJGPP; but this test a) works b) is more generic | |
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
205 | if test -f conf$$.exe; then | |
206 | # Don't use ln at all; we don't have any links | |
207 | as_ln_s='cp -p' | |
208 | else | |
209 | as_ln_s='ln -s' | |
210 | fi | |
211 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
212 | as_ln_s=ln | |
213 | else | |
214 | as_ln_s='cp -p' | |
215 | fi | |
216 | rm -f conf$$ conf$$.exe conf$$.file | |
217 | ||
218 | if mkdir -p . 2>/dev/null; then | |
219 | as_mkdir_p=: | |
220 | else | |
221 | test -d ./-p && rmdir ./-p | |
222 | as_mkdir_p=false | |
223 | fi | |
224 | ||
225 | as_executable_p="test -f" | |
226 | ||
227 | # Sed expression to map a string onto a valid CPP name. | |
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
229 | ||
230 | # Sed expression to map a string onto a valid variable name. | |
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
232 | ||
233 | ||
234 | # IFS | |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
239 | ||
240 | # CDPATH. | |
241 | $as_unset CDPATH | |
242 | ||
243 | ||
244 | # Name of the host. | |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
246 | # so uname gets run too. | |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
252b5132 | 248 | |
42ecbf5e DJ |
249 | exec 6>&1 |
250 | ||
251 | # | |
252 | # Initializations. | |
253 | # | |
252b5132 | 254 | ac_default_prefix=/usr/local |
42ecbf5e DJ |
255 | ac_config_libobj_dir=. |
256 | cross_compiling=no | |
257 | subdirs= | |
258 | MFLAGS= | |
259 | MAKEFLAGS= | |
260 | SHELL=${CONFIG_SHELL-/bin/sh} | |
261 | ||
262 | # Maximum number of lines to put in a shell here document. | |
263 | # This variable seems obsolete. It should probably be removed, and | |
264 | # only ac_max_sed_lines should be used. | |
265 | : ${ac_max_here_lines=38} | |
266 | ||
267 | # Identity of this package. | |
268 | PACKAGE_NAME= | |
269 | PACKAGE_TARNAME= | |
270 | PACKAGE_VERSION= | |
271 | PACKAGE_STRING= | |
272 | PACKAGE_BUGREPORT= | |
273 | ||
274 | ac_unique_file="ar.c" | |
275 | # Factoring default headers for most tests. | |
276 | ac_includes_default="\ | |
277 | #include <stdio.h> | |
278 | #if HAVE_SYS_TYPES_H | |
279 | # include <sys/types.h> | |
280 | #endif | |
281 | #if HAVE_SYS_STAT_H | |
282 | # include <sys/stat.h> | |
283 | #endif | |
284 | #if STDC_HEADERS | |
285 | # include <stdlib.h> | |
286 | # include <stddef.h> | |
287 | #else | |
288 | # if HAVE_STDLIB_H | |
289 | # include <stdlib.h> | |
290 | # endif | |
291 | #endif | |
292 | #if HAVE_STRING_H | |
293 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
294 | # include <memory.h> | |
295 | # endif | |
296 | # include <string.h> | |
297 | #endif | |
298 | #if HAVE_STRINGS_H | |
299 | # include <strings.h> | |
300 | #endif | |
301 | #if HAVE_INTTYPES_H | |
302 | # include <inttypes.h> | |
303 | #else | |
304 | # if HAVE_STDINT_H | |
305 | # include <stdint.h> | |
306 | # endif | |
307 | #endif | |
308 | #if HAVE_UNISTD_H | |
309 | # include <unistd.h> | |
310 | #endif" | |
311 | ||
312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT HDEFINES AR CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_DLLWRAP BUILD_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR LIBOBJS LTLIBOBJS' | |
313 | ac_subst_files='' | |
252b5132 RH |
314 | |
315 | # Initialize some variables set by options. | |
42ecbf5e DJ |
316 | ac_init_help= |
317 | ac_init_version=false | |
252b5132 RH |
318 | # The variables have the same names as the options, with |
319 | # dashes changed to underlines. | |
42ecbf5e | 320 | cache_file=/dev/null |
252b5132 | 321 | exec_prefix=NONE |
252b5132 | 322 | no_create= |
252b5132 RH |
323 | no_recursion= |
324 | prefix=NONE | |
325 | program_prefix=NONE | |
326 | program_suffix=NONE | |
327 | program_transform_name=s,x,x, | |
328 | silent= | |
329 | site= | |
330 | srcdir= | |
252b5132 RH |
331 | verbose= |
332 | x_includes=NONE | |
333 | x_libraries=NONE | |
42ecbf5e DJ |
334 | |
335 | # Installation directory options. | |
336 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
337 | # and all the variables that are supposed to be based on exec_prefix | |
338 | # by default will actually change. | |
339 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
252b5132 RH |
340 | bindir='${exec_prefix}/bin' |
341 | sbindir='${exec_prefix}/sbin' | |
342 | libexecdir='${exec_prefix}/libexec' | |
343 | datadir='${prefix}/share' | |
344 | sysconfdir='${prefix}/etc' | |
345 | sharedstatedir='${prefix}/com' | |
346 | localstatedir='${prefix}/var' | |
347 | libdir='${exec_prefix}/lib' | |
348 | includedir='${prefix}/include' | |
349 | oldincludedir='/usr/include' | |
350 | infodir='${prefix}/info' | |
351 | mandir='${prefix}/man' | |
352 | ||
252b5132 RH |
353 | ac_prev= |
354 | for ac_option | |
355 | do | |
252b5132 RH |
356 | # If the previous option needs an argument, assign it. |
357 | if test -n "$ac_prev"; then | |
358 | eval "$ac_prev=\$ac_option" | |
359 | ac_prev= | |
360 | continue | |
361 | fi | |
362 | ||
42ecbf5e | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
252b5132 RH |
364 | |
365 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
366 | ||
42ecbf5e | 367 | case $ac_option in |
252b5132 RH |
368 | |
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
370 | ac_prev=bindir ;; | |
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
42ecbf5e | 372 | bindir=$ac_optarg ;; |
252b5132 RH |
373 | |
374 | -build | --build | --buil | --bui | --bu) | |
42ecbf5e | 375 | ac_prev=build_alias ;; |
252b5132 | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
42ecbf5e | 377 | build_alias=$ac_optarg ;; |
252b5132 RH |
378 | |
379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
381 | ac_prev=cache_file ;; | |
382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
42ecbf5e DJ |
384 | cache_file=$ac_optarg ;; |
385 | ||
386 | --config-cache | -C) | |
387 | cache_file=config.cache ;; | |
252b5132 RH |
388 | |
389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
390 | ac_prev=datadir ;; | |
391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
392 | | --da=*) | |
42ecbf5e | 393 | datadir=$ac_optarg ;; |
252b5132 RH |
394 | |
395 | -disable-* | --disable-*) | |
42ecbf5e | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 397 | # Reject names that are not valid shell variable names. |
42ecbf5e DJ |
398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
400 | { (exit 1); exit 1; }; } | |
401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
402 | eval "enable_$ac_feature=no" ;; | |
252b5132 RH |
403 | |
404 | -enable-* | --enable-*) | |
42ecbf5e | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 406 | # Reject names that are not valid shell variable names. |
42ecbf5e DJ |
407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
409 | { (exit 1); exit 1; }; } | |
410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
411 | case $ac_option in | |
412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
413 | *) ac_optarg=yes ;; |
414 | esac | |
42ecbf5e | 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
252b5132 RH |
416 | |
417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
419 | | --exec | --exe | --ex) | |
420 | ac_prev=exec_prefix ;; | |
421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
423 | | --exec=* | --exe=* | --ex=*) | |
42ecbf5e | 424 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
425 | |
426 | -gas | --gas | --ga | --g) | |
427 | # Obsolete; use --with-gas. | |
428 | with_gas=yes ;; | |
429 | ||
42ecbf5e DJ |
430 | -help | --help | --hel | --he | -h) |
431 | ac_init_help=long ;; | |
432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
433 | ac_init_help=recursive ;; | |
434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
435 | ac_init_help=short ;; | |
252b5132 RH |
436 | |
437 | -host | --host | --hos | --ho) | |
42ecbf5e | 438 | ac_prev=host_alias ;; |
252b5132 | 439 | -host=* | --host=* | --hos=* | --ho=*) |
42ecbf5e | 440 | host_alias=$ac_optarg ;; |
252b5132 RH |
441 | |
442 | -includedir | --includedir | --includedi | --included | --include \ | |
443 | | --includ | --inclu | --incl | --inc) | |
444 | ac_prev=includedir ;; | |
445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
446 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
42ecbf5e | 447 | includedir=$ac_optarg ;; |
252b5132 RH |
448 | |
449 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
450 | ac_prev=infodir ;; | |
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
42ecbf5e | 452 | infodir=$ac_optarg ;; |
252b5132 RH |
453 | |
454 | -libdir | --libdir | --libdi | --libd) | |
455 | ac_prev=libdir ;; | |
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
42ecbf5e | 457 | libdir=$ac_optarg ;; |
252b5132 RH |
458 | |
459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
460 | | --libexe | --libex | --libe) | |
461 | ac_prev=libexecdir ;; | |
462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
463 | | --libexe=* | --libex=* | --libe=*) | |
42ecbf5e | 464 | libexecdir=$ac_optarg ;; |
252b5132 RH |
465 | |
466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
467 | | --localstate | --localstat | --localsta | --localst \ | |
468 | | --locals | --local | --loca | --loc | --lo) | |
469 | ac_prev=localstatedir ;; | |
470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
42ecbf5e | 473 | localstatedir=$ac_optarg ;; |
252b5132 RH |
474 | |
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
476 | ac_prev=mandir ;; | |
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
42ecbf5e | 478 | mandir=$ac_optarg ;; |
252b5132 RH |
479 | |
480 | -nfp | --nfp | --nf) | |
481 | # Obsolete; use --without-fp. | |
482 | with_fp=no ;; | |
483 | ||
484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
42ecbf5e | 485 | | --no-cr | --no-c | -n) |
252b5132 RH |
486 | no_create=yes ;; |
487 | ||
488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
490 | no_recursion=yes ;; | |
491 | ||
492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
494 | | --oldin | --oldi | --old | --ol | --o) | |
495 | ac_prev=oldincludedir ;; | |
496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
42ecbf5e | 499 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
500 | |
501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
502 | ac_prev=prefix ;; | |
503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
42ecbf5e | 504 | prefix=$ac_optarg ;; |
252b5132 RH |
505 | |
506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
507 | | --program-pre | --program-pr | --program-p) | |
508 | ac_prev=program_prefix ;; | |
509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
42ecbf5e | 511 | program_prefix=$ac_optarg ;; |
252b5132 RH |
512 | |
513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
514 | | --program-suf | --program-su | --program-s) | |
515 | ac_prev=program_suffix ;; | |
516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
42ecbf5e | 518 | program_suffix=$ac_optarg ;; |
252b5132 RH |
519 | |
520 | -program-transform-name | --program-transform-name \ | |
521 | | --program-transform-nam | --program-transform-na \ | |
522 | | --program-transform-n | --program-transform- \ | |
523 | | --program-transform | --program-transfor \ | |
524 | | --program-transfo | --program-transf \ | |
525 | | --program-trans | --program-tran \ | |
526 | | --progr-tra | --program-tr | --program-t) | |
527 | ac_prev=program_transform_name ;; | |
528 | -program-transform-name=* | --program-transform-name=* \ | |
529 | | --program-transform-nam=* | --program-transform-na=* \ | |
530 | | --program-transform-n=* | --program-transform-=* \ | |
531 | | --program-transform=* | --program-transfor=* \ | |
532 | | --program-transfo=* | --program-transf=* \ | |
533 | | --program-trans=* | --program-tran=* \ | |
534 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
42ecbf5e | 535 | program_transform_name=$ac_optarg ;; |
252b5132 RH |
536 | |
537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
538 | | -silent | --silent | --silen | --sile | --sil) | |
539 | silent=yes ;; | |
540 | ||
541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
542 | ac_prev=sbindir ;; | |
543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
544 | | --sbi=* | --sb=*) | |
42ecbf5e | 545 | sbindir=$ac_optarg ;; |
252b5132 RH |
546 | |
547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
549 | | --sharedst | --shareds | --shared | --share | --shar \ | |
550 | | --sha | --sh) | |
551 | ac_prev=sharedstatedir ;; | |
552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
555 | | --sha=* | --sh=*) | |
42ecbf5e | 556 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
557 | |
558 | -site | --site | --sit) | |
559 | ac_prev=site ;; | |
560 | -site=* | --site=* | --sit=*) | |
42ecbf5e | 561 | site=$ac_optarg ;; |
252b5132 RH |
562 | |
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
564 | ac_prev=srcdir ;; | |
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
42ecbf5e | 566 | srcdir=$ac_optarg ;; |
252b5132 RH |
567 | |
568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
569 | | --syscon | --sysco | --sysc | --sys | --sy) | |
570 | ac_prev=sysconfdir ;; | |
571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
42ecbf5e | 573 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
574 | |
575 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
42ecbf5e | 576 | ac_prev=target_alias ;; |
252b5132 | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
42ecbf5e | 578 | target_alias=$ac_optarg ;; |
252b5132 RH |
579 | |
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
581 | verbose=yes ;; | |
582 | ||
42ecbf5e DJ |
583 | -version | --version | --versio | --versi | --vers | -V) |
584 | ac_init_version=: ;; | |
252b5132 RH |
585 | |
586 | -with-* | --with-*) | |
42ecbf5e | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 588 | # Reject names that are not valid shell variable names. |
42ecbf5e DJ |
589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
591 | { (exit 1); exit 1; }; } | |
252b5132 | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
42ecbf5e DJ |
593 | case $ac_option in |
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
595 | *) ac_optarg=yes ;; |
596 | esac | |
42ecbf5e | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
252b5132 RH |
598 | |
599 | -without-* | --without-*) | |
42ecbf5e | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 601 | # Reject names that are not valid shell variable names. |
42ecbf5e DJ |
602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
604 | { (exit 1); exit 1; }; } | |
605 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
606 | eval "with_$ac_package=no" ;; | |
252b5132 RH |
607 | |
608 | --x) | |
609 | # Obsolete; use --with-x. | |
610 | with_x=yes ;; | |
611 | ||
612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
613 | | --x-incl | --x-inc | --x-in | --x-i) | |
614 | ac_prev=x_includes ;; | |
615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
42ecbf5e | 617 | x_includes=$ac_optarg ;; |
252b5132 RH |
618 | |
619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
621 | ac_prev=x_libraries ;; | |
622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
42ecbf5e | 624 | x_libraries=$ac_optarg ;; |
252b5132 | 625 | |
42ecbf5e DJ |
626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
627 | Try \`$0 --help' for more information." >&2 | |
628 | { (exit 1); exit 1; }; } | |
252b5132 RH |
629 | ;; |
630 | ||
42ecbf5e DJ |
631 | *=*) |
632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
633 | # Reject names that are not valid shell variable names. | |
634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
636 | { (exit 1); exit 1; }; } | |
637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
638 | eval "$ac_envvar='$ac_optarg'" | |
639 | export $ac_envvar ;; | |
640 | ||
252b5132 | 641 | *) |
42ecbf5e DJ |
642 | # FIXME: should be removed in autoconf 3.0. |
643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
252b5132 RH |
647 | ;; |
648 | ||
649 | esac | |
650 | done | |
651 | ||
652 | if test -n "$ac_prev"; then | |
42ecbf5e DJ |
653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
654 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
655 | { (exit 1); exit 1; }; } | |
252b5132 RH |
656 | fi |
657 | ||
42ecbf5e DJ |
658 | # Be sure to have absolute paths. |
659 | for ac_var in exec_prefix prefix | |
660 | do | |
661 | eval ac_val=$`echo $ac_var` | |
662 | case $ac_val in | |
663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
665 | { (exit 1); exit 1; }; };; | |
666 | esac | |
667 | done | |
252b5132 | 668 | |
42ecbf5e DJ |
669 | # Be sure to have absolute paths. |
670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
671 | localstatedir libdir includedir oldincludedir infodir mandir | |
252b5132 | 672 | do |
42ecbf5e DJ |
673 | eval ac_val=$`echo $ac_var` |
674 | case $ac_val in | |
675 | [\\/$]* | ?:[\\/]* ) ;; | |
676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
677 | { (exit 1); exit 1; }; };; | |
252b5132 RH |
678 | esac |
679 | done | |
680 | ||
42ecbf5e DJ |
681 | # There might be people who depend on the old broken behavior: `$host' |
682 | # used to hold the argument of --host etc. | |
683 | # FIXME: To remove some day. | |
684 | build=$build_alias | |
685 | host=$host_alias | |
686 | target=$target_alias | |
687 | ||
688 | # FIXME: To remove some day. | |
689 | if test "x$host_alias" != x; then | |
690 | if test "x$build_alias" = x; then | |
691 | cross_compiling=maybe | |
692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
693 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
694 | elif test "x$build_alias" != "x$host_alias"; then | |
695 | cross_compiling=yes | |
696 | fi | |
697 | fi | |
e5a52504 | 698 | |
42ecbf5e DJ |
699 | ac_tool_prefix= |
700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
701 | ||
702 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 703 | |
252b5132 RH |
704 | |
705 | # Find the source files, if location was not specified. | |
706 | if test -z "$srcdir"; then | |
707 | ac_srcdir_defaulted=yes | |
708 | # Try the directory containing this script, then its parent. | |
42ecbf5e DJ |
709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
711 | X"$0" : 'X\(//\)[^/]' \| \ | |
712 | X"$0" : 'X\(//\)$' \| \ | |
713 | X"$0" : 'X\(/\)' \| \ | |
714 | . : '\(.\)' 2>/dev/null || | |
715 | echo X"$0" | | |
716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
718 | /^X\(\/\/\)$/{ s//\1/; q; } | |
719 | /^X\(\/\).*/{ s//\1/; q; } | |
720 | s/.*/./; q'` | |
252b5132 RH |
721 | srcdir=$ac_confdir |
722 | if test ! -r $srcdir/$ac_unique_file; then | |
723 | srcdir=.. | |
724 | fi | |
725 | else | |
726 | ac_srcdir_defaulted=no | |
727 | fi | |
728 | if test ! -r $srcdir/$ac_unique_file; then | |
729 | if test "$ac_srcdir_defaulted" = yes; then | |
42ecbf5e DJ |
730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
731 | { (exit 1); exit 1; }; } | |
252b5132 | 732 | else |
42ecbf5e DJ |
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
734 | { (exit 1); exit 1; }; } | |
252b5132 RH |
735 | fi |
736 | fi | |
42ecbf5e DJ |
737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
739 | { (exit 1); exit 1; }; } | |
740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
741 | ac_env_build_alias_set=${build_alias+set} | |
742 | ac_env_build_alias_value=$build_alias | |
743 | ac_cv_env_build_alias_set=${build_alias+set} | |
744 | ac_cv_env_build_alias_value=$build_alias | |
745 | ac_env_host_alias_set=${host_alias+set} | |
746 | ac_env_host_alias_value=$host_alias | |
747 | ac_cv_env_host_alias_set=${host_alias+set} | |
748 | ac_cv_env_host_alias_value=$host_alias | |
749 | ac_env_target_alias_set=${target_alias+set} | |
750 | ac_env_target_alias_value=$target_alias | |
751 | ac_cv_env_target_alias_set=${target_alias+set} | |
752 | ac_cv_env_target_alias_value=$target_alias | |
753 | ac_env_CC_set=${CC+set} | |
754 | ac_env_CC_value=$CC | |
755 | ac_cv_env_CC_set=${CC+set} | |
756 | ac_cv_env_CC_value=$CC | |
757 | ac_env_CFLAGS_set=${CFLAGS+set} | |
758 | ac_env_CFLAGS_value=$CFLAGS | |
759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
760 | ac_cv_env_CFLAGS_value=$CFLAGS | |
761 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
762 | ac_env_LDFLAGS_value=$LDFLAGS | |
763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
764 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
766 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
769 | ac_env_CPP_set=${CPP+set} | |
770 | ac_env_CPP_value=$CPP | |
771 | ac_cv_env_CPP_set=${CPP+set} | |
772 | ac_cv_env_CPP_value=$CPP | |
252b5132 | 773 | |
42ecbf5e DJ |
774 | # |
775 | # Report the --help message. | |
776 | # | |
777 | if test "$ac_init_help" = "long"; then | |
778 | # Omit some internal or obsolete options to make the list less imposing. | |
779 | # This message is too long to be a string in the A/UX 3.1 sh. | |
780 | cat <<_ACEOF | |
781 | \`configure' configures this package to adapt to many kinds of systems. | |
252b5132 | 782 | |
42ecbf5e | 783 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 784 | |
42ecbf5e DJ |
785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
786 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
252b5132 | 787 | |
42ecbf5e | 788 | Defaults for the options are specified in brackets. |
ac48eca1 | 789 | |
42ecbf5e DJ |
790 | Configuration: |
791 | -h, --help display this help and exit | |
792 | --help=short display options specific to this package | |
793 | --help=recursive display the short help of all the included packages | |
794 | -V, --version display version information and exit | |
795 | -q, --quiet, --silent do not print \`checking...' messages | |
796 | --cache-file=FILE cache test results in FILE [disabled] | |
797 | -C, --config-cache alias for \`--cache-file=config.cache' | |
798 | -n, --no-create do not create output files | |
799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
800 | ||
801 | _ACEOF | |
802 | ||
803 | cat <<_ACEOF | |
804 | Installation directories: | |
805 | --prefix=PREFIX install architecture-independent files in PREFIX | |
806 | [$ac_default_prefix] | |
807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
808 | [PREFIX] | |
ac48eca1 | 809 | |
42ecbf5e DJ |
810 | By default, \`make install' will install all the files in |
811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
813 | for instance \`--prefix=\$HOME'. | |
ac48eca1 | 814 | |
42ecbf5e | 815 | For better control, use the options below. |
ac48eca1 | 816 | |
42ecbf5e DJ |
817 | Fine tuning of the installation directories: |
818 | --bindir=DIR user executables [EPREFIX/bin] | |
819 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
820 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
821 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
825 | --libdir=DIR object code libraries [EPREFIX/lib] | |
826 | --includedir=DIR C header files [PREFIX/include] | |
827 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
828 | --infodir=DIR info documentation [PREFIX/info] | |
829 | --mandir=DIR man documentation [PREFIX/man] | |
830 | _ACEOF | |
ac48eca1 | 831 | |
42ecbf5e | 832 | cat <<\_ACEOF |
252b5132 | 833 | |
42ecbf5e DJ |
834 | Program names: |
835 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
836 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
837 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
252b5132 | 838 | |
42ecbf5e DJ |
839 | System types: |
840 | --build=BUILD configure for building on BUILD [guessed] | |
841 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
842 | --target=TARGET configure for building compilers for TARGET [HOST] | |
843 | _ACEOF | |
252b5132 | 844 | fi |
252b5132 | 845 | |
42ecbf5e | 846 | if test -n "$ac_init_help"; then |
252b5132 | 847 | |
42ecbf5e | 848 | cat <<\_ACEOF |
252b5132 | 849 | |
42ecbf5e DJ |
850 | Optional Features: |
851 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
852 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
853 | --disable-dependency-tracking speeds up one-time build | |
854 | --enable-dependency-tracking do not reject slow dependency extractors | |
855 | --enable-shared=PKGS build shared libraries default=yes | |
856 | --enable-static=PKGS build static libraries default=yes | |
857 | --enable-fast-install=PKGS optimize for fast installation default=yes | |
858 | --disable-libtool-lock avoid locking (might break parallel builds) | |
859 | --enable-targets alternative target configurations | |
860 | --enable-commonbfdlib build shared BFD/opcodes/libiberty library | |
861 | --enable-werror treat compile warnings as errors | |
862 | --enable-build-warnings Enable build-time compiler warnings | |
863 | --disable-nls do not use Native Language Support | |
864 | --enable-maintainer-mode enable make rules and dependencies not useful | |
865 | (and sometimes confusing) to the casual installer | |
866 | ||
867 | Optional Packages: | |
868 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
869 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
870 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
871 | --with-pic try to use only PIC/non-PIC objects default=use both | |
872 | --with-included-gettext use the GNU gettext library included here | |
252b5132 | 873 | |
42ecbf5e DJ |
874 | Some influential environment variables: |
875 | CC C compiler command | |
876 | CFLAGS C compiler flags | |
877 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
878 | nonstandard directory <lib dir> | |
879 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
880 | headers in a nonstandard directory <include dir> | |
881 | CPP C preprocessor | |
e5a52504 | 882 | |
42ecbf5e DJ |
883 | Use these variables to override the choices made by `configure' or to help |
884 | it to find libraries and programs with nonstandard names/locations. | |
885 | ||
886 | _ACEOF | |
252b5132 RH |
887 | fi |
888 | ||
42ecbf5e DJ |
889 | if test "$ac_init_help" = "recursive"; then |
890 | # If there are subdirs, report their specific --help. | |
891 | ac_popdir=`pwd` | |
892 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
893 | test -d $ac_dir || continue | |
894 | ac_builddir=. | |
895 | ||
896 | if test "$ac_dir" != .; then | |
897 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
898 | # A "../" for each directory in $ac_dir_suffix. | |
899 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
900 | else | |
901 | ac_dir_suffix= ac_top_builddir= | |
902 | fi | |
252b5132 | 903 | |
42ecbf5e DJ |
904 | case $srcdir in |
905 | .) # No --srcdir option. We are building in place. | |
906 | ac_srcdir=. | |
907 | if test -z "$ac_top_builddir"; then | |
908 | ac_top_srcdir=. | |
909 | else | |
910 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
252b5132 | 911 | fi ;; |
42ecbf5e DJ |
912 | [\\/]* | ?:[\\/]* ) # Absolute path. |
913 | ac_srcdir=$srcdir$ac_dir_suffix; | |
914 | ac_top_srcdir=$srcdir ;; | |
915 | *) # Relative path. | |
916 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
917 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
252b5132 RH |
918 | esac |
919 | ||
42ecbf5e DJ |
920 | # Do not use `cd foo && pwd` to compute absolute paths, because |
921 | # the directories may not exist. | |
922 | case `pwd` in | |
923 | .) ac_abs_builddir="$ac_dir";; | |
924 | *) | |
925 | case "$ac_dir" in | |
926 | .) ac_abs_builddir=`pwd`;; | |
927 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
928 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
929 | esac;; | |
252b5132 | 930 | esac |
42ecbf5e DJ |
931 | case $ac_abs_builddir in |
932 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
933 | *) | |
934 | case ${ac_top_builddir}. in | |
935 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
936 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
937 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
938 | esac;; | |
939 | esac | |
940 | case $ac_abs_builddir in | |
941 | .) ac_abs_srcdir=$ac_srcdir;; | |
942 | *) | |
943 | case $ac_srcdir in | |
944 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
945 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
946 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
947 | esac;; | |
948 | esac | |
949 | case $ac_abs_builddir in | |
950 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
951 | *) | |
952 | case $ac_top_srcdir in | |
953 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
954 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
955 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
956 | esac;; | |
d15b04bd | 957 | esac |
5d64ca4e | 958 | |
42ecbf5e DJ |
959 | cd $ac_dir |
960 | # Check for guested configure; otherwise get Cygnus style configure. | |
961 | if test -f $ac_srcdir/configure.gnu; then | |
962 | echo | |
963 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
964 | elif test -f $ac_srcdir/configure; then | |
965 | echo | |
966 | $SHELL $ac_srcdir/configure --help=recursive | |
967 | elif test -f $ac_srcdir/configure.ac || | |
968 | test -f $ac_srcdir/configure.in; then | |
969 | echo | |
970 | $ac_configure --help | |
971 | else | |
972 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
973 | fi | |
b7d4af3a | 974 | cd $ac_popdir |
42ecbf5e DJ |
975 | done |
976 | fi | |
5d64ca4e | 977 | |
42ecbf5e DJ |
978 | test -n "$ac_init_help" && exit 0 |
979 | if $ac_init_version; then | |
980 | cat <<\_ACEOF | |
5d64ca4e | 981 | |
42ecbf5e DJ |
982 | Copyright (C) 2003 Free Software Foundation, Inc. |
983 | This configure script is free software; the Free Software Foundation | |
984 | gives unlimited permission to copy, distribute and modify it. | |
985 | _ACEOF | |
986 | exit 0 | |
987 | fi | |
988 | exec 5>config.log | |
989 | cat >&5 <<_ACEOF | |
990 | This file contains any messages produced by compilers while | |
991 | running configure, to aid debugging if configure makes a mistake. | |
429cc0ae | 992 | |
42ecbf5e DJ |
993 | It was created by $as_me, which was |
994 | generated by GNU Autoconf 2.59. Invocation command line was | |
252b5132 | 995 | |
42ecbf5e | 996 | $ $0 $@ |
e5a52504 | 997 | |
42ecbf5e DJ |
998 | _ACEOF |
999 | { | |
1000 | cat <<_ASUNAME | |
1001 | ## --------- ## | |
1002 | ## Platform. ## | |
1003 | ## --------- ## | |
1004 | ||
1005 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1006 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1007 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1008 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1009 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1010 | ||
1011 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1012 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1013 | ||
1014 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1015 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1016 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1017 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1018 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1019 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1020 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1021 | ||
1022 | _ASUNAME | |
1023 | ||
1024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1025 | for as_dir in $PATH | |
1026 | do | |
1027 | IFS=$as_save_IFS | |
1028 | test -z "$as_dir" && as_dir=. | |
1029 | echo "PATH: $as_dir" | |
1030 | done | |
e5a52504 | 1031 | |
42ecbf5e | 1032 | } >&5 |
ceae3e33 | 1033 | |
42ecbf5e | 1034 | cat >&5 <<_ACEOF |
e5a52504 | 1035 | |
42ecbf5e DJ |
1036 | |
1037 | ## ----------- ## | |
1038 | ## Core tests. ## | |
1039 | ## ----------- ## | |
1040 | ||
1041 | _ACEOF | |
1042 | ||
1043 | ||
1044 | # Keep a trace of the command line. | |
1045 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1046 | # Strip out --silent because we don't want to record it for future runs. | |
1047 | # Also quote any args containing shell meta-characters. | |
1048 | # Make two passes to allow for proper duplicate-argument suppression. | |
1049 | ac_configure_args= | |
1050 | ac_configure_args0= | |
1051 | ac_configure_args1= | |
1052 | ac_sep= | |
1053 | ac_must_keep_next=false | |
1054 | for ac_pass in 1 2 | |
1055 | do | |
1056 | for ac_arg | |
1057 | do | |
1058 | case $ac_arg in | |
1059 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1060 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1061 | | -silent | --silent | --silen | --sile | --sil) | |
1062 | continue ;; | |
1063 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1064 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1065 | esac | |
1066 | case $ac_pass in | |
1067 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1068 | 2) | |
1069 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1070 | if test $ac_must_keep_next = true; then | |
1071 | ac_must_keep_next=false # Got value, back to normal. | |
1072 | else | |
1073 | case $ac_arg in | |
1074 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1075 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1076 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1077 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1078 | case "$ac_configure_args0 " in | |
1079 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1080 | esac | |
1081 | ;; | |
1082 | -* ) ac_must_keep_next=true ;; | |
1083 | esac | |
1084 | fi | |
1085 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1086 | # Get rid of the leading space. | |
1087 | ac_sep=" " | |
1088 | ;; | |
1089 | esac | |
1090 | done | |
1091 | done | |
1092 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1093 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1094 | ||
1095 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1096 | # config.log. We remove comments because anyway the quotes in there | |
1097 | # would cause problems or look ugly. | |
1098 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1099 | # such as our DU 5.0 friend, will then `close' the trap. | |
1100 | trap 'exit_status=$? | |
1101 | # Save into config.log some information that might help in debugging. | |
1102 | { | |
1103 | echo | |
1104 | ||
1105 | cat <<\_ASBOX | |
1106 | ## ---------------- ## | |
1107 | ## Cache variables. ## | |
1108 | ## ---------------- ## | |
1109 | _ASBOX | |
1110 | echo | |
1111 | # The following way of writing the cache mishandles newlines in values, | |
1112 | { | |
1113 | (set) 2>&1 | | |
1114 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1115 | *ac_space=\ *) | |
1116 | sed -n \ | |
1117 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1118 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1119 | ;; | |
1120 | *) | |
1121 | sed -n \ | |
1122 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1123 | ;; | |
1124 | esac; | |
1125 | } | |
1126 | echo | |
1127 | ||
1128 | cat <<\_ASBOX | |
1129 | ## ----------------- ## | |
1130 | ## Output variables. ## | |
1131 | ## ----------------- ## | |
1132 | _ASBOX | |
1133 | echo | |
1134 | for ac_var in $ac_subst_vars | |
1135 | do | |
1136 | eval ac_val=$`echo $ac_var` | |
1137 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1138 | done | sort | |
1139 | echo | |
1140 | ||
1141 | if test -n "$ac_subst_files"; then | |
1142 | cat <<\_ASBOX | |
1143 | ## ------------- ## | |
1144 | ## Output files. ## | |
1145 | ## ------------- ## | |
1146 | _ASBOX | |
1147 | echo | |
1148 | for ac_var in $ac_subst_files | |
1149 | do | |
1150 | eval ac_val=$`echo $ac_var` | |
1151 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1152 | done | sort | |
1153 | echo | |
1154 | fi | |
1155 | ||
1156 | if test -s confdefs.h; then | |
1157 | cat <<\_ASBOX | |
1158 | ## ----------- ## | |
1159 | ## confdefs.h. ## | |
1160 | ## ----------- ## | |
1161 | _ASBOX | |
1162 | echo | |
1163 | sed "/^$/d" confdefs.h | sort | |
1164 | echo | |
1165 | fi | |
1166 | test "$ac_signal" != 0 && | |
1167 | echo "$as_me: caught signal $ac_signal" | |
1168 | echo "$as_me: exit $exit_status" | |
1169 | } >&5 | |
1170 | rm -f core *.core && | |
1171 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1172 | exit $exit_status | |
1173 | ' 0 | |
1174 | for ac_signal in 1 2 13 15; do | |
1175 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1176 | done | |
1177 | ac_signal=0 | |
1178 | ||
1179 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1180 | rm -rf conftest* confdefs.h | |
1181 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1182 | echo >confdefs.h | |
1183 | ||
1184 | # Predefined preprocessor variables. | |
1185 | ||
1186 | cat >>confdefs.h <<_ACEOF | |
1187 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1188 | _ACEOF | |
1189 | ||
1190 | ||
1191 | cat >>confdefs.h <<_ACEOF | |
1192 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1193 | _ACEOF | |
1194 | ||
1195 | ||
1196 | cat >>confdefs.h <<_ACEOF | |
1197 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1198 | _ACEOF | |
1199 | ||
1200 | ||
1201 | cat >>confdefs.h <<_ACEOF | |
1202 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1203 | _ACEOF | |
1204 | ||
1205 | ||
1206 | cat >>confdefs.h <<_ACEOF | |
1207 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1208 | _ACEOF | |
1209 | ||
1210 | ||
1211 | # Let the site file select an alternate cache file if it wants to. | |
1212 | # Prefer explicitly selected file to automatically selected ones. | |
1213 | if test -z "$CONFIG_SITE"; then | |
1214 | if test "x$prefix" != xNONE; then | |
1215 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1216 | else | |
1217 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1218 | fi | |
1219 | fi | |
1220 | for ac_site_file in $CONFIG_SITE; do | |
1221 | if test -r "$ac_site_file"; then | |
1222 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1223 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1224 | sed 's/^/| /' "$ac_site_file" >&5 | |
1225 | . "$ac_site_file" | |
1226 | fi | |
1227 | done | |
1228 | ||
1229 | if test -r "$cache_file"; then | |
1230 | # Some versions of bash will fail to source /dev/null (special | |
1231 | # files actually), so we avoid doing that. | |
1232 | if test -f "$cache_file"; then | |
1233 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1234 | echo "$as_me: loading cache $cache_file" >&6;} | |
1235 | case $cache_file in | |
1236 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1237 | *) . ./$cache_file;; | |
1238 | esac | |
1239 | fi | |
1240 | else | |
1241 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1242 | echo "$as_me: creating cache $cache_file" >&6;} | |
1243 | >$cache_file | |
1244 | fi | |
1245 | ||
1246 | # Check that the precious variables saved in the cache have kept the same | |
1247 | # value. | |
1248 | ac_cache_corrupted=false | |
1249 | for ac_var in `(set) 2>&1 | | |
1250 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1251 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1252 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1253 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1254 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1255 | case $ac_old_set,$ac_new_set in | |
1256 | set,) | |
1257 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1258 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1259 | ac_cache_corrupted=: ;; | |
1260 | ,set) | |
1261 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1262 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1263 | ac_cache_corrupted=: ;; | |
1264 | ,);; | |
1265 | *) | |
1266 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1267 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1268 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1269 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1270 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1271 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1272 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1273 | ac_cache_corrupted=: | |
1274 | fi;; | |
1275 | esac | |
1276 | # Pass precious variables to config.status. | |
1277 | if test "$ac_new_set" = set; then | |
1278 | case $ac_new_val in | |
1279 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1280 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1281 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1282 | esac | |
1283 | case " $ac_configure_args " in | |
1284 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1285 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1286 | esac | |
1287 | fi | |
1288 | done | |
1289 | if $ac_cache_corrupted; then | |
1290 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1291 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1292 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1293 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1294 | { (exit 1); exit 1; }; } | |
1295 | fi | |
1296 | ||
1297 | ac_ext=c | |
1298 | ac_cpp='$CPP $CPPFLAGS' | |
1299 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1300 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1301 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1302 | ||
1303 | ||
1304 | ||
1305 | ||
1306 | ||
1307 | ||
1308 | ||
1309 | ||
1310 | ||
1311 | ||
1312 | ||
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ac_aux_dir= | |
1323 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1324 | if test -f $ac_dir/install-sh; then | |
1325 | ac_aux_dir=$ac_dir | |
1326 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1327 | break | |
1328 | elif test -f $ac_dir/install.sh; then | |
1329 | ac_aux_dir=$ac_dir | |
1330 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1331 | break | |
1332 | elif test -f $ac_dir/shtool; then | |
1333 | ac_aux_dir=$ac_dir | |
1334 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1335 | break | |
1336 | fi | |
1337 | done | |
1338 | if test -z "$ac_aux_dir"; then | |
1339 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1340 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1341 | { (exit 1); exit 1; }; } | |
1342 | fi | |
1343 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1344 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1345 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1346 | ||
1347 | # Make sure we can run config.sub. | |
1348 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1349 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1350 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1351 | { (exit 1); exit 1; }; } | |
1352 | ||
1353 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1354 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1355 | if test "${ac_cv_build+set}" = set; then | |
1356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1357 | else | |
1358 | ac_cv_build_alias=$build_alias | |
1359 | test -z "$ac_cv_build_alias" && | |
1360 | ac_cv_build_alias=`$ac_config_guess` | |
1361 | test -z "$ac_cv_build_alias" && | |
1362 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1363 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1364 | { (exit 1); exit 1; }; } | |
1365 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1366 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1367 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1368 | { (exit 1); exit 1; }; } | |
1369 | ||
1370 | fi | |
1371 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1372 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1373 | build=$ac_cv_build | |
1374 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1375 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1376 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1377 | ||
1378 | ||
1379 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1380 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1381 | if test "${ac_cv_host+set}" = set; then | |
1382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1383 | else | |
1384 | ac_cv_host_alias=$host_alias | |
1385 | test -z "$ac_cv_host_alias" && | |
1386 | ac_cv_host_alias=$ac_cv_build_alias | |
1387 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1388 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1389 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1390 | { (exit 1); exit 1; }; } | |
1391 | ||
1392 | fi | |
1393 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1394 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1395 | host=$ac_cv_host | |
1396 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1397 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1398 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1399 | ||
1400 | ||
1401 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1402 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1403 | if test "${ac_cv_target+set}" = set; then | |
1404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1405 | else | |
1406 | ac_cv_target_alias=$target_alias | |
1407 | test "x$ac_cv_target_alias" = "x" && | |
1408 | ac_cv_target_alias=$ac_cv_host_alias | |
1409 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1410 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1411 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1412 | { (exit 1); exit 1; }; } | |
1413 | ||
1414 | fi | |
1415 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1416 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1417 | target=$ac_cv_target | |
1418 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1419 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1420 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1421 | ||
1422 | ||
1423 | # The aliases save the names the user supplied, while $host etc. | |
1424 | # will get canonicalized. | |
1425 | test -n "$target_alias" && | |
1426 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1427 | NONENONEs,x,x, && | |
1428 | program_prefix=${target_alias}- | |
1429 | ac_ext=c | |
1430 | ac_cpp='$CPP $CPPFLAGS' | |
1431 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1432 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1433 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1434 | if test -n "$ac_tool_prefix"; then | |
1435 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1436 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1437 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1438 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1439 | if test "${ac_cv_prog_CC+set}" = set; then | |
1440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1441 | else | |
1442 | if test -n "$CC"; then | |
1443 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1444 | else | |
1445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1446 | for as_dir in $PATH | |
1447 | do | |
1448 | IFS=$as_save_IFS | |
1449 | test -z "$as_dir" && as_dir=. | |
1450 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1451 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1452 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1453 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1454 | break 2 | |
1455 | fi | |
1456 | done | |
1457 | done | |
1458 | ||
1459 | fi | |
1460 | fi | |
1461 | CC=$ac_cv_prog_CC | |
1462 | if test -n "$CC"; then | |
1463 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1464 | echo "${ECHO_T}$CC" >&6 | |
1465 | else | |
1466 | echo "$as_me:$LINENO: result: no" >&5 | |
1467 | echo "${ECHO_T}no" >&6 | |
1468 | fi | |
1469 | ||
1470 | fi | |
1471 | if test -z "$ac_cv_prog_CC"; then | |
1472 | ac_ct_CC=$CC | |
1473 | # Extract the first word of "gcc", so it can be a program name with args. | |
1474 | set dummy gcc; ac_word=$2 | |
1475 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1476 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1477 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1479 | else | |
1480 | if test -n "$ac_ct_CC"; then | |
1481 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1482 | else | |
1483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1484 | for as_dir in $PATH | |
1485 | do | |
1486 | IFS=$as_save_IFS | |
1487 | test -z "$as_dir" && as_dir=. | |
1488 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1489 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1490 | ac_cv_prog_ac_ct_CC="gcc" | |
1491 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1492 | break 2 | |
1493 | fi | |
1494 | done | |
1495 | done | |
1496 | ||
1497 | fi | |
1498 | fi | |
1499 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1500 | if test -n "$ac_ct_CC"; then | |
1501 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1502 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1503 | else | |
1504 | echo "$as_me:$LINENO: result: no" >&5 | |
1505 | echo "${ECHO_T}no" >&6 | |
1506 | fi | |
1507 | ||
1508 | CC=$ac_ct_CC | |
1509 | else | |
1510 | CC="$ac_cv_prog_CC" | |
1511 | fi | |
1512 | ||
1513 | if test -z "$CC"; then | |
1514 | if test -n "$ac_tool_prefix"; then | |
1515 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1516 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1517 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1518 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1519 | if test "${ac_cv_prog_CC+set}" = set; then | |
1520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1521 | else | |
1522 | if test -n "$CC"; then | |
1523 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1524 | else | |
1525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1526 | for as_dir in $PATH | |
1527 | do | |
1528 | IFS=$as_save_IFS | |
1529 | test -z "$as_dir" && as_dir=. | |
1530 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1531 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1532 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1533 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1534 | break 2 | |
1535 | fi | |
1536 | done | |
1537 | done | |
1538 | ||
1539 | fi | |
1540 | fi | |
1541 | CC=$ac_cv_prog_CC | |
1542 | if test -n "$CC"; then | |
1543 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1544 | echo "${ECHO_T}$CC" >&6 | |
1545 | else | |
1546 | echo "$as_me:$LINENO: result: no" >&5 | |
1547 | echo "${ECHO_T}no" >&6 | |
1548 | fi | |
1549 | ||
1550 | fi | |
1551 | if test -z "$ac_cv_prog_CC"; then | |
1552 | ac_ct_CC=$CC | |
1553 | # Extract the first word of "cc", so it can be a program name with args. | |
1554 | set dummy cc; ac_word=$2 | |
1555 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1556 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1557 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1559 | else | |
1560 | if test -n "$ac_ct_CC"; then | |
1561 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1562 | else | |
1563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1564 | for as_dir in $PATH | |
1565 | do | |
1566 | IFS=$as_save_IFS | |
1567 | test -z "$as_dir" && as_dir=. | |
1568 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1569 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1570 | ac_cv_prog_ac_ct_CC="cc" | |
1571 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1572 | break 2 | |
1573 | fi | |
1574 | done | |
1575 | done | |
1576 | ||
1577 | fi | |
1578 | fi | |
1579 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1580 | if test -n "$ac_ct_CC"; then | |
1581 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1582 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1583 | else | |
1584 | echo "$as_me:$LINENO: result: no" >&5 | |
1585 | echo "${ECHO_T}no" >&6 | |
1586 | fi | |
1587 | ||
1588 | CC=$ac_ct_CC | |
1589 | else | |
1590 | CC="$ac_cv_prog_CC" | |
1591 | fi | |
1592 | ||
1593 | fi | |
1594 | if test -z "$CC"; then | |
1595 | # Extract the first word of "cc", so it can be a program name with args. | |
1596 | set dummy cc; ac_word=$2 | |
1597 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1598 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1599 | if test "${ac_cv_prog_CC+set}" = set; then | |
1600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1601 | else | |
1602 | if test -n "$CC"; then | |
1603 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1604 | else | |
1605 | ac_prog_rejected=no | |
1606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1607 | for as_dir in $PATH | |
1608 | do | |
1609 | IFS=$as_save_IFS | |
1610 | test -z "$as_dir" && as_dir=. | |
1611 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1612 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1613 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1614 | ac_prog_rejected=yes | |
1615 | continue | |
1616 | fi | |
1617 | ac_cv_prog_CC="cc" | |
1618 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1619 | break 2 | |
1620 | fi | |
1621 | done | |
1622 | done | |
1623 | ||
1624 | if test $ac_prog_rejected = yes; then | |
1625 | # We found a bogon in the path, so make sure we never use it. | |
1626 | set dummy $ac_cv_prog_CC | |
1627 | shift | |
1628 | if test $# != 0; then | |
1629 | # We chose a different compiler from the bogus one. | |
1630 | # However, it has the same basename, so the bogon will be chosen | |
1631 | # first if we set CC to just the basename; use the full file name. | |
1632 | shift | |
1633 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1634 | fi | |
1635 | fi | |
1636 | fi | |
1637 | fi | |
1638 | CC=$ac_cv_prog_CC | |
1639 | if test -n "$CC"; then | |
1640 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1641 | echo "${ECHO_T}$CC" >&6 | |
1642 | else | |
1643 | echo "$as_me:$LINENO: result: no" >&5 | |
1644 | echo "${ECHO_T}no" >&6 | |
1645 | fi | |
1646 | ||
1647 | fi | |
1648 | if test -z "$CC"; then | |
1649 | if test -n "$ac_tool_prefix"; then | |
1650 | for ac_prog in cl | |
1651 | do | |
1652 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1653 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1654 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1655 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1656 | if test "${ac_cv_prog_CC+set}" = set; then | |
1657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1658 | else | |
1659 | if test -n "$CC"; then | |
1660 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1661 | else | |
1662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1663 | for as_dir in $PATH | |
1664 | do | |
1665 | IFS=$as_save_IFS | |
1666 | test -z "$as_dir" && as_dir=. | |
1667 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1668 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1669 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1670 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1671 | break 2 | |
1672 | fi | |
1673 | done | |
1674 | done | |
1675 | ||
1676 | fi | |
1677 | fi | |
1678 | CC=$ac_cv_prog_CC | |
1679 | if test -n "$CC"; then | |
1680 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1681 | echo "${ECHO_T}$CC" >&6 | |
1682 | else | |
1683 | echo "$as_me:$LINENO: result: no" >&5 | |
1684 | echo "${ECHO_T}no" >&6 | |
1685 | fi | |
1686 | ||
1687 | test -n "$CC" && break | |
1688 | done | |
1689 | fi | |
1690 | if test -z "$CC"; then | |
1691 | ac_ct_CC=$CC | |
1692 | for ac_prog in cl | |
1693 | do | |
1694 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1695 | set dummy $ac_prog; ac_word=$2 | |
1696 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1697 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1698 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1700 | else | |
1701 | if test -n "$ac_ct_CC"; then | |
1702 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1703 | else | |
1704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1705 | for as_dir in $PATH | |
1706 | do | |
1707 | IFS=$as_save_IFS | |
1708 | test -z "$as_dir" && as_dir=. | |
1709 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1710 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1711 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1712 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1713 | break 2 | |
1714 | fi | |
1715 | done | |
1716 | done | |
1717 | ||
1718 | fi | |
1719 | fi | |
1720 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1721 | if test -n "$ac_ct_CC"; then | |
1722 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1723 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1724 | else | |
1725 | echo "$as_me:$LINENO: result: no" >&5 | |
1726 | echo "${ECHO_T}no" >&6 | |
1727 | fi | |
1728 | ||
1729 | test -n "$ac_ct_CC" && break | |
1730 | done | |
1731 | ||
1732 | CC=$ac_ct_CC | |
1733 | fi | |
1734 | ||
1735 | fi | |
1736 | ||
1737 | ||
1738 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1739 | See \`config.log' for more details." >&5 | |
1740 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1741 | See \`config.log' for more details." >&2;} | |
1742 | { (exit 1); exit 1; }; } | |
1743 | ||
1744 | # Provide some information about the compiler. | |
1745 | echo "$as_me:$LINENO:" \ | |
1746 | "checking for C compiler version" >&5 | |
1747 | ac_compiler=`set X $ac_compile; echo $2` | |
1748 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1749 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1750 | ac_status=$? | |
1751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1752 | (exit $ac_status); } | |
1753 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1754 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1755 | ac_status=$? | |
1756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1757 | (exit $ac_status); } | |
1758 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1759 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1760 | ac_status=$? | |
1761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1762 | (exit $ac_status); } | |
1763 | ||
1764 | cat >conftest.$ac_ext <<_ACEOF | |
1765 | /* confdefs.h. */ | |
1766 | _ACEOF | |
1767 | cat confdefs.h >>conftest.$ac_ext | |
1768 | cat >>conftest.$ac_ext <<_ACEOF | |
1769 | /* end confdefs.h. */ | |
1770 | ||
1771 | int | |
1772 | main () | |
1773 | { | |
1774 | ||
1775 | ; | |
1776 | return 0; | |
1777 | } | |
1778 | _ACEOF | |
1779 | ac_clean_files_save=$ac_clean_files | |
1780 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1781 | # Try to create an executable without -o first, disregard a.out. | |
1782 | # It will help us diagnose broken compilers, and finding out an intuition | |
1783 | # of exeext. | |
1784 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1785 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1786 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1787 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1788 | (eval $ac_link_default) 2>&5 | |
1789 | ac_status=$? | |
1790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1791 | (exit $ac_status); }; then | |
1792 | # Find the output, starting from the most likely. This scheme is | |
1793 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1794 | # resort. | |
1795 | ||
1796 | # Be careful to initialize this variable, since it used to be cached. | |
1797 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1798 | ac_cv_exeext= | |
1799 | # b.out is created by i960 compilers. | |
1800 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1801 | do | |
1802 | test -f "$ac_file" || continue | |
1803 | case $ac_file in | |
1804 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1805 | ;; | |
1806 | conftest.$ac_ext ) | |
1807 | # This is the source file. | |
1808 | ;; | |
1809 | [ab].out ) | |
1810 | # We found the default executable, but exeext='' is most | |
1811 | # certainly right. | |
1812 | break;; | |
1813 | *.* ) | |
1814 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1815 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1816 | # but it would be cool to find out if it's true. Does anybody | |
1817 | # maintain Libtool? --akim. | |
1818 | export ac_cv_exeext | |
1819 | break;; | |
1820 | * ) | |
1821 | break;; | |
1822 | esac | |
1823 | done | |
1824 | else | |
1825 | echo "$as_me: failed program was:" >&5 | |
1826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1827 | ||
1828 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1829 | See \`config.log' for more details." >&5 | |
1830 | echo "$as_me: error: C compiler cannot create executables | |
1831 | See \`config.log' for more details." >&2;} | |
1832 | { (exit 77); exit 77; }; } | |
1833 | fi | |
1834 | ||
1835 | ac_exeext=$ac_cv_exeext | |
1836 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1837 | echo "${ECHO_T}$ac_file" >&6 | |
1838 | ||
1839 | # Check the compiler produces executables we can run. If not, either | |
1840 | # the compiler is broken, or we cross compile. | |
1841 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1842 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1843 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1844 | # If not cross compiling, check that we can run a simple program. | |
1845 | if test "$cross_compiling" != yes; then | |
1846 | if { ac_try='./$ac_file' | |
1847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1848 | (eval $ac_try) 2>&5 | |
1849 | ac_status=$? | |
1850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1851 | (exit $ac_status); }; }; then | |
1852 | cross_compiling=no | |
1853 | else | |
1854 | if test "$cross_compiling" = maybe; then | |
1855 | cross_compiling=yes | |
1856 | else | |
1857 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1858 | If you meant to cross compile, use \`--host'. | |
1859 | See \`config.log' for more details." >&5 | |
1860 | echo "$as_me: error: cannot run C compiled programs. | |
1861 | If you meant to cross compile, use \`--host'. | |
1862 | See \`config.log' for more details." >&2;} | |
1863 | { (exit 1); exit 1; }; } | |
1864 | fi | |
1865 | fi | |
1866 | fi | |
1867 | echo "$as_me:$LINENO: result: yes" >&5 | |
1868 | echo "${ECHO_T}yes" >&6 | |
1869 | ||
1870 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1871 | ac_clean_files=$ac_clean_files_save | |
1872 | # Check the compiler produces executables we can run. If not, either | |
1873 | # the compiler is broken, or we cross compile. | |
1874 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1875 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1876 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1877 | echo "${ECHO_T}$cross_compiling" >&6 | |
1878 | ||
1879 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1880 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1882 | (eval $ac_link) 2>&5 | |
1883 | ac_status=$? | |
1884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1885 | (exit $ac_status); }; then | |
1886 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1887 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1888 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1889 | # `rm'. | |
1890 | for ac_file in conftest.exe conftest conftest.*; do | |
1891 | test -f "$ac_file" || continue | |
1892 | case $ac_file in | |
1893 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1894 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1895 | export ac_cv_exeext | |
1896 | break;; | |
1897 | * ) break;; | |
1898 | esac | |
1899 | done | |
1900 | else | |
1901 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
1902 | See \`config.log' for more details." >&5 | |
1903 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1904 | See \`config.log' for more details." >&2;} | |
1905 | { (exit 1); exit 1; }; } | |
1906 | fi | |
1907 | ||
1908 | rm -f conftest$ac_cv_exeext | |
1909 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1910 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1911 | ||
1912 | rm -f conftest.$ac_ext | |
1913 | EXEEXT=$ac_cv_exeext | |
1914 | ac_exeext=$EXEEXT | |
1915 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
1916 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1917 | if test "${ac_cv_objext+set}" = set; then | |
1918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1919 | else | |
1920 | cat >conftest.$ac_ext <<_ACEOF | |
1921 | /* confdefs.h. */ | |
1922 | _ACEOF | |
1923 | cat confdefs.h >>conftest.$ac_ext | |
1924 | cat >>conftest.$ac_ext <<_ACEOF | |
1925 | /* end confdefs.h. */ | |
1926 | ||
1927 | int | |
1928 | main () | |
1929 | { | |
1930 | ||
1931 | ; | |
1932 | return 0; | |
1933 | } | |
1934 | _ACEOF | |
1935 | rm -f conftest.o conftest.obj | |
1936 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1937 | (eval $ac_compile) 2>&5 | |
1938 | ac_status=$? | |
1939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1940 | (exit $ac_status); }; then | |
1941 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1942 | case $ac_file in | |
1943 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
1944 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1945 | break;; | |
1946 | esac | |
1947 | done | |
1948 | else | |
1949 | echo "$as_me: failed program was:" >&5 | |
1950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1951 | ||
1952 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1953 | See \`config.log' for more details." >&5 | |
1954 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1955 | See \`config.log' for more details." >&2;} | |
1956 | { (exit 1); exit 1; }; } | |
1957 | fi | |
1958 | ||
1959 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
1960 | fi | |
1961 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
1962 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1963 | OBJEXT=$ac_cv_objext | |
1964 | ac_objext=$OBJEXT | |
1965 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
1966 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1967 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1969 | else | |
1970 | cat >conftest.$ac_ext <<_ACEOF | |
1971 | /* confdefs.h. */ | |
1972 | _ACEOF | |
1973 | cat confdefs.h >>conftest.$ac_ext | |
1974 | cat >>conftest.$ac_ext <<_ACEOF | |
1975 | /* end confdefs.h. */ | |
1976 | ||
1977 | int | |
1978 | main () | |
1979 | { | |
1980 | #ifndef __GNUC__ | |
1981 | choke me | |
1982 | #endif | |
1983 | ||
1984 | ; | |
1985 | return 0; | |
1986 | } | |
1987 | _ACEOF | |
1988 | rm -f conftest.$ac_objext | |
1989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1990 | (eval $ac_compile) 2>conftest.er1 | |
1991 | ac_status=$? | |
1992 | grep -v '^ *+' conftest.er1 >conftest.err | |
1993 | rm -f conftest.er1 | |
1994 | cat conftest.err >&5 | |
1995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1996 | (exit $ac_status); } && | |
b7d4af3a JW |
1997 | { ac_try='test -z "$ac_c_werror_flag" |
1998 | || test ! -s conftest.err' | |
42ecbf5e DJ |
1999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2000 | (eval $ac_try) 2>&5 | |
2001 | ac_status=$? | |
2002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2003 | (exit $ac_status); }; } && | |
2004 | { ac_try='test -s conftest.$ac_objext' | |
2005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2006 | (eval $ac_try) 2>&5 | |
2007 | ac_status=$? | |
2008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2009 | (exit $ac_status); }; }; then | |
2010 | ac_compiler_gnu=yes | |
2011 | else | |
2012 | echo "$as_me: failed program was:" >&5 | |
2013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2014 | ||
2015 | ac_compiler_gnu=no | |
2016 | fi | |
2017 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2018 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2019 | ||
2020 | fi | |
2021 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2022 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2023 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2024 | ac_test_CFLAGS=${CFLAGS+set} | |
2025 | ac_save_CFLAGS=$CFLAGS | |
2026 | CFLAGS="-g" | |
2027 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2028 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2029 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2031 | else | |
2032 | cat >conftest.$ac_ext <<_ACEOF | |
2033 | /* confdefs.h. */ | |
2034 | _ACEOF | |
2035 | cat confdefs.h >>conftest.$ac_ext | |
2036 | cat >>conftest.$ac_ext <<_ACEOF | |
2037 | /* end confdefs.h. */ | |
2038 | ||
2039 | int | |
2040 | main () | |
2041 | { | |
2042 | ||
2043 | ; | |
2044 | return 0; | |
2045 | } | |
2046 | _ACEOF | |
2047 | rm -f conftest.$ac_objext | |
2048 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2049 | (eval $ac_compile) 2>conftest.er1 | |
2050 | ac_status=$? | |
2051 | grep -v '^ *+' conftest.er1 >conftest.err | |
2052 | rm -f conftest.er1 | |
2053 | cat conftest.err >&5 | |
2054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2055 | (exit $ac_status); } && | |
b7d4af3a JW |
2056 | { ac_try='test -z "$ac_c_werror_flag" |
2057 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2059 | (eval $ac_try) 2>&5 | |
2060 | ac_status=$? | |
2061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2062 | (exit $ac_status); }; } && | |
2063 | { ac_try='test -s conftest.$ac_objext' | |
2064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2065 | (eval $ac_try) 2>&5 | |
2066 | ac_status=$? | |
2067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2068 | (exit $ac_status); }; }; then | |
2069 | ac_cv_prog_cc_g=yes | |
2070 | else | |
2071 | echo "$as_me: failed program was:" >&5 | |
2072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2073 | ||
2074 | ac_cv_prog_cc_g=no | |
2075 | fi | |
2076 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2077 | fi | |
2078 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2079 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2080 | if test "$ac_test_CFLAGS" = set; then | |
2081 | CFLAGS=$ac_save_CFLAGS | |
2082 | elif test $ac_cv_prog_cc_g = yes; then | |
2083 | if test "$GCC" = yes; then | |
2084 | CFLAGS="-g -O2" | |
2085 | else | |
2086 | CFLAGS="-g" | |
2087 | fi | |
2088 | else | |
2089 | if test "$GCC" = yes; then | |
2090 | CFLAGS="-O2" | |
2091 | else | |
2092 | CFLAGS= | |
2093 | fi | |
2094 | fi | |
2095 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2096 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2097 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2099 | else | |
2100 | ac_cv_prog_cc_stdc=no | |
2101 | ac_save_CC=$CC | |
2102 | cat >conftest.$ac_ext <<_ACEOF | |
2103 | /* confdefs.h. */ | |
2104 | _ACEOF | |
2105 | cat confdefs.h >>conftest.$ac_ext | |
2106 | cat >>conftest.$ac_ext <<_ACEOF | |
2107 | /* end confdefs.h. */ | |
2108 | #include <stdarg.h> | |
2109 | #include <stdio.h> | |
2110 | #include <sys/types.h> | |
2111 | #include <sys/stat.h> | |
2112 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2113 | struct buf { int x; }; | |
2114 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2115 | static char *e (p, i) | |
2116 | char **p; | |
2117 | int i; | |
2118 | { | |
2119 | return p[i]; | |
2120 | } | |
2121 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2122 | { | |
2123 | char *s; | |
2124 | va_list v; | |
2125 | va_start (v,p); | |
2126 | s = g (p, va_arg (v,int)); | |
2127 | va_end (v); | |
2128 | return s; | |
2129 | } | |
2130 | ||
2131 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2132 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2133 | These don't provoke an error unfortunately, instead are silently treated | |
2134 | as 'x'. The following induces an error, until -std1 is added to get | |
2135 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2136 | array size at least. It's necessary to write '\x00'==0 to get something | |
2137 | that's true only with -std1. */ | |
2138 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2139 | ||
2140 | int test (int i, double x); | |
2141 | struct s1 {int (*f) (int a);}; | |
2142 | struct s2 {int (*f) (double a);}; | |
2143 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2144 | int argc; | |
2145 | char **argv; | |
2146 | int | |
2147 | main () | |
2148 | { | |
2149 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2150 | ; | |
2151 | return 0; | |
2152 | } | |
2153 | _ACEOF | |
2154 | # Don't try gcc -ansi; that turns off useful extensions and | |
2155 | # breaks some systems' header files. | |
2156 | # AIX -qlanglvl=ansi | |
2157 | # Ultrix and OSF/1 -std1 | |
2158 | # HP-UX 10.20 and later -Ae | |
2159 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2160 | # SVR4 -Xc -D__EXTENSIONS__ | |
2161 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2162 | do | |
2163 | CC="$ac_save_CC $ac_arg" | |
2164 | rm -f conftest.$ac_objext | |
2165 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2166 | (eval $ac_compile) 2>conftest.er1 | |
2167 | ac_status=$? | |
2168 | grep -v '^ *+' conftest.er1 >conftest.err | |
2169 | rm -f conftest.er1 | |
2170 | cat conftest.err >&5 | |
2171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2172 | (exit $ac_status); } && | |
b7d4af3a JW |
2173 | { ac_try='test -z "$ac_c_werror_flag" |
2174 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2176 | (eval $ac_try) 2>&5 | |
2177 | ac_status=$? | |
2178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2179 | (exit $ac_status); }; } && | |
2180 | { ac_try='test -s conftest.$ac_objext' | |
2181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2182 | (eval $ac_try) 2>&5 | |
2183 | ac_status=$? | |
2184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2185 | (exit $ac_status); }; }; then | |
2186 | ac_cv_prog_cc_stdc=$ac_arg | |
2187 | break | |
2188 | else | |
2189 | echo "$as_me: failed program was:" >&5 | |
2190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2191 | ||
2192 | fi | |
2193 | rm -f conftest.err conftest.$ac_objext | |
2194 | done | |
2195 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2196 | CC=$ac_save_CC | |
2197 | ||
2198 | fi | |
2199 | ||
2200 | case "x$ac_cv_prog_cc_stdc" in | |
2201 | x|xno) | |
2202 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2203 | echo "${ECHO_T}none needed" >&6 ;; | |
2204 | *) | |
2205 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2206 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2207 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2208 | esac | |
2209 | ||
2210 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2211 | # in C++ we need to declare it. In case someone uses the same compiler | |
2212 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2213 | # the declaration of exit, since it's the most demanding environment. | |
2214 | cat >conftest.$ac_ext <<_ACEOF | |
2215 | #ifndef __cplusplus | |
2216 | choke me | |
2217 | #endif | |
2218 | _ACEOF | |
2219 | rm -f conftest.$ac_objext | |
2220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2221 | (eval $ac_compile) 2>conftest.er1 | |
2222 | ac_status=$? | |
2223 | grep -v '^ *+' conftest.er1 >conftest.err | |
2224 | rm -f conftest.er1 | |
2225 | cat conftest.err >&5 | |
2226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2227 | (exit $ac_status); } && | |
b7d4af3a JW |
2228 | { ac_try='test -z "$ac_c_werror_flag" |
2229 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2231 | (eval $ac_try) 2>&5 | |
2232 | ac_status=$? | |
2233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2234 | (exit $ac_status); }; } && | |
2235 | { ac_try='test -s conftest.$ac_objext' | |
2236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2237 | (eval $ac_try) 2>&5 | |
2238 | ac_status=$? | |
2239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2240 | (exit $ac_status); }; }; then | |
2241 | for ac_declaration in \ | |
2242 | '' \ | |
2243 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2244 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2245 | 'extern "C" void exit (int) throw ();' \ | |
2246 | 'extern "C" void exit (int);' \ | |
2247 | 'void exit (int);' | |
2248 | do | |
2249 | cat >conftest.$ac_ext <<_ACEOF | |
2250 | /* confdefs.h. */ | |
2251 | _ACEOF | |
2252 | cat confdefs.h >>conftest.$ac_ext | |
2253 | cat >>conftest.$ac_ext <<_ACEOF | |
2254 | /* end confdefs.h. */ | |
2255 | $ac_declaration | |
2256 | #include <stdlib.h> | |
2257 | int | |
2258 | main () | |
2259 | { | |
2260 | exit (42); | |
2261 | ; | |
2262 | return 0; | |
2263 | } | |
2264 | _ACEOF | |
2265 | rm -f conftest.$ac_objext | |
2266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2267 | (eval $ac_compile) 2>conftest.er1 | |
2268 | ac_status=$? | |
2269 | grep -v '^ *+' conftest.er1 >conftest.err | |
2270 | rm -f conftest.er1 | |
2271 | cat conftest.err >&5 | |
2272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2273 | (exit $ac_status); } && | |
b7d4af3a JW |
2274 | { ac_try='test -z "$ac_c_werror_flag" |
2275 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2277 | (eval $ac_try) 2>&5 | |
2278 | ac_status=$? | |
2279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2280 | (exit $ac_status); }; } && | |
2281 | { ac_try='test -s conftest.$ac_objext' | |
2282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2283 | (eval $ac_try) 2>&5 | |
2284 | ac_status=$? | |
2285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2286 | (exit $ac_status); }; }; then | |
2287 | : | |
2288 | else | |
2289 | echo "$as_me: failed program was:" >&5 | |
2290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2291 | ||
2292 | continue | |
2293 | fi | |
2294 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2295 | cat >conftest.$ac_ext <<_ACEOF | |
2296 | /* confdefs.h. */ | |
2297 | _ACEOF | |
2298 | cat confdefs.h >>conftest.$ac_ext | |
2299 | cat >>conftest.$ac_ext <<_ACEOF | |
2300 | /* end confdefs.h. */ | |
2301 | $ac_declaration | |
2302 | int | |
2303 | main () | |
2304 | { | |
2305 | exit (42); | |
2306 | ; | |
2307 | return 0; | |
2308 | } | |
2309 | _ACEOF | |
2310 | rm -f conftest.$ac_objext | |
2311 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2312 | (eval $ac_compile) 2>conftest.er1 | |
2313 | ac_status=$? | |
2314 | grep -v '^ *+' conftest.er1 >conftest.err | |
2315 | rm -f conftest.er1 | |
2316 | cat conftest.err >&5 | |
2317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2318 | (exit $ac_status); } && | |
b7d4af3a JW |
2319 | { ac_try='test -z "$ac_c_werror_flag" |
2320 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2322 | (eval $ac_try) 2>&5 | |
2323 | ac_status=$? | |
2324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2325 | (exit $ac_status); }; } && | |
2326 | { ac_try='test -s conftest.$ac_objext' | |
2327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2328 | (eval $ac_try) 2>&5 | |
2329 | ac_status=$? | |
2330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2331 | (exit $ac_status); }; }; then | |
2332 | break | |
2333 | else | |
2334 | echo "$as_me: failed program was:" >&5 | |
2335 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2336 | ||
2337 | fi | |
2338 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2339 | done | |
2340 | rm -f conftest* | |
2341 | if test -n "$ac_declaration"; then | |
2342 | echo '#ifdef __cplusplus' >>confdefs.h | |
2343 | echo $ac_declaration >>confdefs.h | |
2344 | echo '#endif' >>confdefs.h | |
2345 | fi | |
2346 | ||
2347 | else | |
2348 | echo "$as_me: failed program was:" >&5 | |
2349 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2350 | ||
2351 | fi | |
2352 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2353 | ac_ext=c | |
2354 | ac_cpp='$CPP $CPPFLAGS' | |
2355 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2356 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2357 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2358 | ||
2359 | ||
2360 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 | |
2361 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
2362 | if test "${ac_cv_search_strerror+set}" = set; then | |
2363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2364 | else | |
2365 | ac_func_search_save_LIBS=$LIBS | |
2366 | ac_cv_search_strerror=no | |
2367 | cat >conftest.$ac_ext <<_ACEOF | |
2368 | /* confdefs.h. */ | |
2369 | _ACEOF | |
2370 | cat confdefs.h >>conftest.$ac_ext | |
2371 | cat >>conftest.$ac_ext <<_ACEOF | |
2372 | /* end confdefs.h. */ | |
2373 | ||
2374 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2375 | #ifdef __cplusplus | |
2376 | extern "C" | |
2377 | #endif | |
2378 | /* We use char because int might match the return type of a gcc2 | |
2379 | builtin and then its argument prototype would still apply. */ | |
2380 | char strerror (); | |
2381 | int | |
2382 | main () | |
2383 | { | |
2384 | strerror (); | |
2385 | ; | |
2386 | return 0; | |
2387 | } | |
2388 | _ACEOF | |
2389 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2390 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2391 | (eval $ac_link) 2>conftest.er1 | |
2392 | ac_status=$? | |
2393 | grep -v '^ *+' conftest.er1 >conftest.err | |
2394 | rm -f conftest.er1 | |
2395 | cat conftest.err >&5 | |
2396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2397 | (exit $ac_status); } && | |
b7d4af3a JW |
2398 | { ac_try='test -z "$ac_c_werror_flag" |
2399 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2401 | (eval $ac_try) 2>&5 | |
2402 | ac_status=$? | |
2403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2404 | (exit $ac_status); }; } && | |
2405 | { ac_try='test -s conftest$ac_exeext' | |
2406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2407 | (eval $ac_try) 2>&5 | |
2408 | ac_status=$? | |
2409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2410 | (exit $ac_status); }; }; then | |
2411 | ac_cv_search_strerror="none required" | |
2412 | else | |
2413 | echo "$as_me: failed program was:" >&5 | |
2414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2415 | ||
2416 | fi | |
2417 | rm -f conftest.err conftest.$ac_objext \ | |
2418 | conftest$ac_exeext conftest.$ac_ext | |
2419 | if test "$ac_cv_search_strerror" = no; then | |
2420 | for ac_lib in cposix; do | |
2421 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2422 | cat >conftest.$ac_ext <<_ACEOF | |
2423 | /* confdefs.h. */ | |
2424 | _ACEOF | |
2425 | cat confdefs.h >>conftest.$ac_ext | |
2426 | cat >>conftest.$ac_ext <<_ACEOF | |
2427 | /* end confdefs.h. */ | |
2428 | ||
2429 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2430 | #ifdef __cplusplus | |
2431 | extern "C" | |
2432 | #endif | |
2433 | /* We use char because int might match the return type of a gcc2 | |
2434 | builtin and then its argument prototype would still apply. */ | |
2435 | char strerror (); | |
2436 | int | |
2437 | main () | |
2438 | { | |
2439 | strerror (); | |
2440 | ; | |
2441 | return 0; | |
2442 | } | |
2443 | _ACEOF | |
2444 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2445 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2446 | (eval $ac_link) 2>conftest.er1 | |
2447 | ac_status=$? | |
2448 | grep -v '^ *+' conftest.er1 >conftest.err | |
2449 | rm -f conftest.er1 | |
2450 | cat conftest.err >&5 | |
2451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2452 | (exit $ac_status); } && | |
b7d4af3a JW |
2453 | { ac_try='test -z "$ac_c_werror_flag" |
2454 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2456 | (eval $ac_try) 2>&5 | |
2457 | ac_status=$? | |
2458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2459 | (exit $ac_status); }; } && | |
2460 | { ac_try='test -s conftest$ac_exeext' | |
2461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2462 | (eval $ac_try) 2>&5 | |
2463 | ac_status=$? | |
2464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2465 | (exit $ac_status); }; }; then | |
2466 | ac_cv_search_strerror="-l$ac_lib" | |
2467 | break | |
2468 | else | |
2469 | echo "$as_me: failed program was:" >&5 | |
2470 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2471 | ||
2472 | fi | |
2473 | rm -f conftest.err conftest.$ac_objext \ | |
2474 | conftest$ac_exeext conftest.$ac_ext | |
2475 | done | |
2476 | fi | |
2477 | LIBS=$ac_func_search_save_LIBS | |
2478 | fi | |
2479 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
2480 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2481 | if test "$ac_cv_search_strerror" != no; then | |
2482 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
2483 | ||
2484 | fi | |
2485 | ||
2486 | ||
2487 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` | |
2488 | am__api_version="1.9" | |
2489 | # Find a good install program. We prefer a C program (faster), | |
2490 | # so one script is as good as another. But avoid the broken or | |
2491 | # incompatible versions: | |
2492 | # SysV /etc/install, /usr/sbin/install | |
2493 | # SunOS /usr/etc/install | |
2494 | # IRIX /sbin/install | |
2495 | # AIX /bin/install | |
2496 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2497 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2498 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2499 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2500 | # OS/2's system install, which has a completely different semantic | |
2501 | # ./install, which can be erroneously created by make from ./install.sh. | |
2502 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2503 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
2504 | if test -z "$INSTALL"; then | |
2505 | if test "${ac_cv_path_install+set}" = set; then | |
2506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2507 | else | |
2508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2509 | for as_dir in $PATH | |
2510 | do | |
2511 | IFS=$as_save_IFS | |
2512 | test -z "$as_dir" && as_dir=. | |
2513 | # Account for people who put trailing slashes in PATH elements. | |
2514 | case $as_dir/ in | |
2515 | ./ | .// | /cC/* | \ | |
2516 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2517 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2518 | /usr/ucb/* ) ;; | |
2519 | *) | |
2520 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2521 | # Don't use installbsd from OSF since it installs stuff as root | |
2522 | # by default. | |
2523 | for ac_prog in ginstall scoinst install; do | |
2524 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2525 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2526 | if test $ac_prog = install && | |
2527 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
252b5132 RH |
2528 | # AIX install. It has an incompatible calling convention. |
2529 | : | |
42ecbf5e DJ |
2530 | elif test $ac_prog = install && |
2531 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2532 | # program-specific install script used by HP pwplus--don't use. | |
2533 | : | |
252b5132 | 2534 | else |
42ecbf5e DJ |
2535 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2536 | break 3 | |
252b5132 RH |
2537 | fi |
2538 | fi | |
d15b04bd | 2539 | done |
42ecbf5e DJ |
2540 | done |
2541 | ;; | |
2542 | esac | |
2543 | done | |
2544 | ||
252b5132 RH |
2545 | |
2546 | fi | |
2547 | if test "${ac_cv_path_install+set}" = set; then | |
42ecbf5e | 2548 | INSTALL=$ac_cv_path_install |
252b5132 RH |
2549 | else |
2550 | # As a last resort, use the slow shell script. We don't cache a | |
2551 | # path for INSTALL within a source directory, because that will | |
2552 | # break other packages using the cache if that directory is | |
2553 | # removed, or if the path is relative. | |
42ecbf5e | 2554 | INSTALL=$ac_install_sh |
252b5132 RH |
2555 | fi |
2556 | fi | |
42ecbf5e DJ |
2557 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2558 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
2559 | |
2560 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2561 | # It thinks the first close brace ends the variable substitution. | |
2562 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2563 | ||
42ecbf5e | 2564 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
2565 | |
2566 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2567 | ||
42ecbf5e DJ |
2568 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2569 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
252b5132 RH |
2570 | # Just in case |
2571 | sleep 1 | |
42ecbf5e | 2572 | echo timestamp > conftest.file |
252b5132 RH |
2573 | # Do `set' in a subshell so we don't clobber the current shell's |
2574 | # arguments. Must try -L first in case configure is actually a | |
2575 | # symlink; some systems play weird games with the mod time of symlinks | |
2576 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2577 | # directory). | |
2578 | if ( | |
42ecbf5e | 2579 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
252b5132 RH |
2580 | if test "$*" = "X"; then |
2581 | # -L didn't work. | |
42ecbf5e | 2582 | set X `ls -t $srcdir/configure conftest.file` |
252b5132 | 2583 | fi |
42ecbf5e DJ |
2584 | rm -f conftest.file |
2585 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2586 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
2587 | |
2588 | # If neither matched, then we have a broken ls. This can happen | |
2589 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2590 | # broken ls alias from the environment. This has actually | |
2591 | # happened. Such a system could not be considered "sane". | |
42ecbf5e DJ |
2592 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2593 | alias in your environment" >&5 | |
2594 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2595 | alias in your environment" >&2;} | |
2596 | { (exit 1); exit 1; }; } | |
252b5132 RH |
2597 | fi |
2598 | ||
42ecbf5e | 2599 | test "$2" = conftest.file |
252b5132 RH |
2600 | ) |
2601 | then | |
2602 | # Ok. | |
2603 | : | |
2604 | else | |
42ecbf5e DJ |
2605 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2606 | Check your system clock" >&5 | |
2607 | echo "$as_me: error: newly created file is older than distributed files! | |
2608 | Check your system clock" >&2;} | |
2609 | { (exit 1); exit 1; }; } | |
2610 | fi | |
2611 | echo "$as_me:$LINENO: result: yes" >&5 | |
2612 | echo "${ECHO_T}yes" >&6 | |
2613 | test "$program_prefix" != NONE && | |
2614 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
2615 | # Use a double $ so make ignores it. | |
2616 | test "$program_suffix" != NONE && | |
2617 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
2618 | # Double any \ or $. echo might interpret backslashes. | |
2619 | # By default was `s,x,x', remove it if useless. | |
2620 | cat <<\_ACEOF >conftest.sed | |
2621 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2622 | _ACEOF | |
2623 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
2624 | rm conftest.sed | |
2625 | ||
2626 | # expand $ac_aux_dir to an absolute path | |
2627 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2628 | ||
2629 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2630 | # Use eval to expand $SHELL | |
2631 | if eval "$MISSING --run true"; then | |
2632 | am_missing_run="$MISSING --run " | |
2633 | else | |
2634 | am_missing_run= | |
2635 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2636 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2637 | fi | |
2638 | ||
2639 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
2640 | # We used to keeping the `.' as first argument, in order to | |
2641 | # allow $(mkdir_p) to be used without argument. As in | |
2642 | # $(mkdir_p) $(somedir) | |
2643 | # where $(somedir) is conditionally defined. However this is wrong | |
2644 | # for two reasons: | |
2645 | # 1. if the package is installed by a user who cannot write `.' | |
2646 | # make install will fail, | |
2647 | # 2. the above comment should most certainly read | |
2648 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
2649 | # so it does not work when $(somedir) is undefined and | |
2650 | # $(DESTDIR) is not. | |
2651 | # To support the latter case, we have to write | |
2652 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
2653 | # so the `.' trick is pointless. | |
2654 | mkdir_p='mkdir -p --' | |
2655 | else | |
2656 | # On NextStep and OpenStep, the `mkdir' command does not | |
2657 | # recognize any option. It will interpret all options as | |
2658 | # directories to create, and then abort because `.' already | |
2659 | # exists. | |
2660 | for d in ./-p ./--version; | |
2661 | do | |
2662 | test -d $d && rmdir $d | |
2663 | done | |
2664 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
2665 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
2666 | mkdir_p='$(mkinstalldirs)' | |
2667 | else | |
2668 | mkdir_p='$(install_sh) -d' | |
2669 | fi | |
2670 | fi | |
2671 | ||
2672 | for ac_prog in gawk mawk nawk awk | |
2673 | do | |
2674 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2675 | set dummy $ac_prog; ac_word=$2 | |
2676 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2677 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2678 | if test "${ac_cv_prog_AWK+set}" = set; then | |
2679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2680 | else | |
2681 | if test -n "$AWK"; then | |
2682 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2683 | else | |
2684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2685 | for as_dir in $PATH | |
2686 | do | |
2687 | IFS=$as_save_IFS | |
2688 | test -z "$as_dir" && as_dir=. | |
2689 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2690 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2691 | ac_cv_prog_AWK="$ac_prog" | |
2692 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2693 | break 2 | |
2694 | fi | |
2695 | done | |
2696 | done | |
2697 | ||
2698 | fi | |
2699 | fi | |
2700 | AWK=$ac_cv_prog_AWK | |
2701 | if test -n "$AWK"; then | |
2702 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
2703 | echo "${ECHO_T}$AWK" >&6 | |
2704 | else | |
2705 | echo "$as_me:$LINENO: result: no" >&5 | |
2706 | echo "${ECHO_T}no" >&6 | |
2707 | fi | |
2708 | ||
2709 | test -n "$AWK" && break | |
2710 | done | |
2711 | ||
2712 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2713 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
2714 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
2715 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
2716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2717 | else | |
2718 | cat >conftest.make <<\_ACEOF | |
2719 | all: | |
2720 | @echo 'ac_maketemp="$(MAKE)"' | |
2721 | _ACEOF | |
2722 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2723 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
2724 | if test -n "$ac_maketemp"; then | |
2725 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2726 | else | |
2727 | eval ac_cv_prog_make_${ac_make}_set=no | |
2728 | fi | |
2729 | rm -f conftest.make | |
2730 | fi | |
2731 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
2732 | echo "$as_me:$LINENO: result: yes" >&5 | |
2733 | echo "${ECHO_T}yes" >&6 | |
2734 | SET_MAKE= | |
2735 | else | |
2736 | echo "$as_me:$LINENO: result: no" >&5 | |
2737 | echo "${ECHO_T}no" >&6 | |
2738 | SET_MAKE="MAKE=${MAKE-make}" | |
2739 | fi | |
2740 | ||
2741 | rm -rf .tst 2>/dev/null | |
2742 | mkdir .tst 2>/dev/null | |
2743 | if test -d .tst; then | |
2744 | am__leading_dot=. | |
2745 | else | |
2746 | am__leading_dot=_ | |
2747 | fi | |
2748 | rmdir .tst 2>/dev/null | |
2749 | ||
2750 | DEPDIR="${am__leading_dot}deps" | |
2751 | ||
2752 | ac_config_commands="$ac_config_commands depfiles" | |
2753 | ||
2754 | ||
2755 | am_make=${MAKE-make} | |
2756 | cat > confinc << 'END' | |
2757 | am__doit: | |
2758 | @echo done | |
2759 | .PHONY: am__doit | |
2760 | END | |
2761 | # If we don't find an include directive, just comment out the code. | |
2762 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2763 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2764 | am__include="#" | |
2765 | am__quote= | |
2766 | _am_result=none | |
2767 | # First try GNU make style include. | |
2768 | echo "include confinc" > confmf | |
2769 | # We grep out `Entering directory' and `Leaving directory' | |
2770 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2771 | # In particular we don't look at `^make:' because GNU make might | |
2772 | # be invoked under some other name (usually "gmake"), in which | |
2773 | # case it prints its new name instead of `make'. | |
2774 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2775 | am__include=include | |
2776 | am__quote= | |
2777 | _am_result=GNU | |
2778 | fi | |
2779 | # Now try BSD make style include. | |
2780 | if test "$am__include" = "#"; then | |
2781 | echo '.include "confinc"' > confmf | |
2782 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2783 | am__include=.include | |
2784 | am__quote="\"" | |
2785 | _am_result=BSD | |
2786 | fi | |
2787 | fi | |
2788 | ||
2789 | ||
2790 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2791 | echo "${ECHO_T}$_am_result" >&6 | |
2792 | rm -f confinc confmf | |
2793 | ||
2794 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
2795 | if test "${enable_dependency_tracking+set}" = set; then | |
2796 | enableval="$enable_dependency_tracking" | |
2797 | ||
2798 | fi; | |
2799 | if test "x$enable_dependency_tracking" != xno; then | |
2800 | am_depcomp="$ac_aux_dir/depcomp" | |
2801 | AMDEPBACKSLASH='\' | |
2802 | fi | |
2803 | ||
2804 | ||
2805 | if test "x$enable_dependency_tracking" != xno; then | |
2806 | AMDEP_TRUE= | |
2807 | AMDEP_FALSE='#' | |
2808 | else | |
2809 | AMDEP_TRUE='#' | |
2810 | AMDEP_FALSE= | |
2811 | fi | |
2812 | ||
2813 | ||
2814 | ||
2815 | # test to see if srcdir already configured | |
2816 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
2817 | test -f $srcdir/config.status; then | |
2818 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
2819 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2820 | { (exit 1); exit 1; }; } | |
2821 | fi | |
2822 | ||
2823 | # test whether we have cygpath | |
2824 | if test -z "$CYGPATH_W"; then | |
2825 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2826 | CYGPATH_W='cygpath -w' | |
2827 | else | |
2828 | CYGPATH_W=echo | |
2829 | fi | |
2830 | fi | |
2831 | ||
2832 | ||
2833 | # Define the identity of the package. | |
2834 | PACKAGE=binutils | |
2835 | VERSION=${BFD_VERSION} | |
2836 | ||
2837 | ||
2838 | cat >>confdefs.h <<_ACEOF | |
2839 | #define PACKAGE "$PACKAGE" | |
2840 | _ACEOF | |
2841 | ||
2842 | ||
2843 | cat >>confdefs.h <<_ACEOF | |
2844 | #define VERSION "$VERSION" | |
2845 | _ACEOF | |
2846 | ||
2847 | # Some tools Automake needs. | |
2848 | ||
2849 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2850 | ||
2851 | ||
2852 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2853 | ||
2854 | ||
2855 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2856 | ||
2857 | ||
2858 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2859 | ||
2860 | ||
2861 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2862 | ||
2863 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
2864 | ||
2865 | # Installed binaries are usually stripped using `strip' when the user | |
2866 | # run `make install-strip'. However `strip' might not be the right | |
2867 | # tool to use in cross-compilation environments, therefore Automake | |
2868 | # will honor the `STRIP' environment variable to overrule this program. | |
2869 | if test "$cross_compiling" != no; then | |
2870 | if test -n "$ac_tool_prefix"; then | |
2871 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2872 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2873 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2874 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2875 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2877 | else | |
2878 | if test -n "$STRIP"; then | |
2879 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2880 | else | |
2881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2882 | for as_dir in $PATH | |
2883 | do | |
2884 | IFS=$as_save_IFS | |
2885 | test -z "$as_dir" && as_dir=. | |
2886 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2887 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2888 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2889 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2890 | break 2 | |
2891 | fi | |
2892 | done | |
2893 | done | |
2894 | ||
252b5132 | 2895 | fi |
42ecbf5e DJ |
2896 | fi |
2897 | STRIP=$ac_cv_prog_STRIP | |
2898 | if test -n "$STRIP"; then | |
2899 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2900 | echo "${ECHO_T}$STRIP" >&6 | |
d15b04bd | 2901 | else |
42ecbf5e DJ |
2902 | echo "$as_me:$LINENO: result: no" >&5 |
2903 | echo "${ECHO_T}no" >&6 | |
d15b04bd | 2904 | fi |
d15b04bd | 2905 | |
42ecbf5e DJ |
2906 | fi |
2907 | if test -z "$ac_cv_prog_STRIP"; then | |
2908 | ac_ct_STRIP=$STRIP | |
2909 | # Extract the first word of "strip", so it can be a program name with args. | |
2910 | set dummy strip; ac_word=$2 | |
2911 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2912 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2913 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d15b04bd | 2915 | else |
42ecbf5e DJ |
2916 | if test -n "$ac_ct_STRIP"; then |
2917 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
252b5132 | 2918 | else |
42ecbf5e DJ |
2919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2920 | for as_dir in $PATH | |
2921 | do | |
2922 | IFS=$as_save_IFS | |
2923 | test -z "$as_dir" && as_dir=. | |
2924 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2925 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2926 | ac_cv_prog_ac_ct_STRIP="strip" | |
2927 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2928 | break 2 | |
2929 | fi | |
2930 | done | |
2931 | done | |
2932 | ||
2933 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
252b5132 | 2934 | fi |
252b5132 | 2935 | fi |
42ecbf5e DJ |
2936 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2937 | if test -n "$ac_ct_STRIP"; then | |
2938 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2939 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
252b5132 | 2940 | else |
42ecbf5e DJ |
2941 | echo "$as_me:$LINENO: result: no" >&5 |
2942 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
2943 | fi |
2944 | ||
42ecbf5e DJ |
2945 | STRIP=$ac_ct_STRIP |
2946 | else | |
2947 | STRIP="$ac_cv_prog_STRIP" | |
2948 | fi | |
252b5132 | 2949 | |
42ecbf5e DJ |
2950 | fi |
2951 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
252b5132 | 2952 | |
42ecbf5e DJ |
2953 | # We need awk for the "check" target. The system "awk" is bad on |
2954 | # some platforms. | |
2955 | # Always define AMTAR for backward compatibility. | |
252b5132 | 2956 | |
42ecbf5e | 2957 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
252b5132 | 2958 | |
42ecbf5e | 2959 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
252b5132 RH |
2960 | |
2961 | ||
2962 | ||
252b5132 | 2963 | |
42ecbf5e DJ |
2964 | depcc="$CC" am_compiler_list= |
2965 | ||
2966 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
2967 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
2968 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
2969 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 2970 | else |
42ecbf5e DJ |
2971 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
2972 | # We make a subdir and do the tests there. Otherwise we can end up | |
2973 | # making bogus files that we don't know about and never remove. For | |
2974 | # instance it was reported that on HP-UX the gcc test will end up | |
2975 | # making a dummy file named `D' -- because `-MD' means `put the output | |
2976 | # in D'. | |
2977 | mkdir conftest.dir | |
2978 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
2979 | # using a relative directory. | |
2980 | cp "$am_depcomp" conftest.dir | |
2981 | cd conftest.dir | |
2982 | # We will build objects and dependencies in a subdirectory because | |
2983 | # it helps to detect inapplicable dependency modes. For instance | |
2984 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
2985 | # side effect of compilation, but ICC will put the dependencies in | |
2986 | # the current directory while Tru64 will put them in the object | |
2987 | # directory. | |
2988 | mkdir sub | |
252b5132 | 2989 | |
42ecbf5e DJ |
2990 | am_cv_CC_dependencies_compiler_type=none |
2991 | if test "$am_compiler_list" = ""; then | |
2992 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
2993 | fi | |
2994 | for depmode in $am_compiler_list; do | |
2995 | # Setup a source with many dependencies, because some compilers | |
2996 | # like to wrap large dependency lists on column 80 (with \), and | |
2997 | # we should not choose a depcomp mode which is confused by this. | |
2998 | # | |
2999 | # We need to recreate these files for each test, as the compiler may | |
3000 | # overwrite some of them when testing with obscure command lines. | |
3001 | # This happens at least with the AIX C compiler. | |
3002 | : > sub/conftest.c | |
3003 | for i in 1 2 3 4 5 6; do | |
3004 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3005 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3006 | # Solaris 8's {/usr,}/bin/sh. | |
3007 | touch sub/conftst$i.h | |
3008 | done | |
3009 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3010 | ||
3011 | case $depmode in | |
3012 | nosideeffect) | |
3013 | # after this tag, mechanisms are not by side-effect, so they'll | |
3014 | # only be used when explicitly requested | |
3015 | if test "x$enable_dependency_tracking" = xyes; then | |
3016 | continue | |
3017 | else | |
3018 | break | |
3019 | fi | |
3020 | ;; | |
3021 | none) break ;; | |
3022 | esac | |
3023 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3024 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3025 | # handle `-M -o', and we need to detect this. | |
3026 | if depmode=$depmode \ | |
3027 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3028 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3029 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3030 | >/dev/null 2>conftest.err && | |
3031 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3032 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3033 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3034 | # icc doesn't choke on unknown options, it will just issue warnings | |
3035 | # or remarks (even with -Werror). So we grep stderr for any message | |
3036 | # that says an option was ignored or not supported. | |
3037 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3038 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3039 | # The diagnosis changed in icc 8.0: | |
3040 | # icc: Command line remark: option '-MP' not supported | |
3041 | if (grep 'ignoring option' conftest.err || | |
3042 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3043 | am_cv_CC_dependencies_compiler_type=$depmode | |
3044 | break | |
3045 | fi | |
3046 | fi | |
3047 | done | |
3048 | ||
3049 | cd .. | |
3050 | rm -rf conftest.dir | |
252b5132 | 3051 | else |
42ecbf5e | 3052 | am_cv_CC_dependencies_compiler_type=none |
252b5132 RH |
3053 | fi |
3054 | ||
252b5132 | 3055 | fi |
42ecbf5e DJ |
3056 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3057 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3058 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3059 | ||
3060 | ||
252b5132 | 3061 | |
42ecbf5e DJ |
3062 | if |
3063 | test "x$enable_dependency_tracking" != xno \ | |
3064 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3065 | am__fastdepCC_TRUE= | |
3066 | am__fastdepCC_FALSE='#' | |
252b5132 | 3067 | else |
42ecbf5e DJ |
3068 | am__fastdepCC_TRUE='#' |
3069 | am__fastdepCC_FALSE= | |
252b5132 RH |
3070 | fi |
3071 | ||
3072 | ||
3073 | ||
42ecbf5e | 3074 | |
252b5132 RH |
3075 | # Check whether --enable-shared or --disable-shared was given. |
3076 | if test "${enable_shared+set}" = set; then | |
3077 | enableval="$enable_shared" | |
3078 | p=${PACKAGE-default} | |
6be7c12c | 3079 | case $enableval in |
252b5132 RH |
3080 | yes) enable_shared=yes ;; |
3081 | no) enable_shared=no ;; | |
3082 | *) | |
3083 | enable_shared=no | |
3084 | # Look at the argument we got. We use all the common list separators. | |
3085 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3086 | for pkg in $enableval; do | |
3087 | if test "X$pkg" = "X$p"; then | |
3088 | enable_shared=yes | |
3089 | fi | |
3090 | done | |
3091 | IFS="$ac_save_ifs" | |
3092 | ;; | |
3093 | esac | |
3094 | else | |
3095 | enable_shared=yes | |
42ecbf5e | 3096 | fi; |
252b5132 RH |
3097 | # Check whether --enable-static or --disable-static was given. |
3098 | if test "${enable_static+set}" = set; then | |
3099 | enableval="$enable_static" | |
3100 | p=${PACKAGE-default} | |
6be7c12c | 3101 | case $enableval in |
252b5132 RH |
3102 | yes) enable_static=yes ;; |
3103 | no) enable_static=no ;; | |
3104 | *) | |
3105 | enable_static=no | |
3106 | # Look at the argument we got. We use all the common list separators. | |
3107 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3108 | for pkg in $enableval; do | |
3109 | if test "X$pkg" = "X$p"; then | |
3110 | enable_static=yes | |
3111 | fi | |
3112 | done | |
3113 | IFS="$ac_save_ifs" | |
3114 | ;; | |
3115 | esac | |
3116 | else | |
3117 | enable_static=yes | |
42ecbf5e | 3118 | fi; |
252b5132 RH |
3119 | # Check whether --enable-fast-install or --disable-fast-install was given. |
3120 | if test "${enable_fast_install+set}" = set; then | |
3121 | enableval="$enable_fast_install" | |
3122 | p=${PACKAGE-default} | |
6be7c12c | 3123 | case $enableval in |
252b5132 RH |
3124 | yes) enable_fast_install=yes ;; |
3125 | no) enable_fast_install=no ;; | |
3126 | *) | |
3127 | enable_fast_install=no | |
3128 | # Look at the argument we got. We use all the common list separators. | |
e5a52504 MM |
3129 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
3130 | for pkg in $enableval; do | |
3131 | if test "X$pkg" = "X$p"; then | |
3132 | enable_fast_install=yes | |
1a09a22c NC |
3133 | fi |
3134 | done | |
3135 | IFS="$ac_save_ifs" | |
e5a52504 MM |
3136 | ;; |
3137 | esac | |
1a09a22c | 3138 | else |
e5a52504 | 3139 | enable_fast_install=yes |
42ecbf5e | 3140 | fi; |
ceae3e33 | 3141 | |
252b5132 RH |
3142 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3143 | if test "${with_gnu_ld+set}" = set; then | |
3144 | withval="$with_gnu_ld" | |
3145 | test "$withval" = no || with_gnu_ld=yes | |
3146 | else | |
3147 | with_gnu_ld=no | |
42ecbf5e | 3148 | fi; |
252b5132 | 3149 | ac_prog=ld |
6be7c12c | 3150 | if test "$GCC" = yes; then |
252b5132 | 3151 | # Check if gcc -print-prog-name=ld gives a path. |
42ecbf5e DJ |
3152 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
3153 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
ac48eca1 AO |
3154 | case $host in |
3155 | *-*-mingw*) | |
3156 | # gcc leaves a trailing carriage return which upsets mingw | |
3157 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3158 | *) | |
3159 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3160 | esac | |
6be7c12c | 3161 | case $ac_prog in |
252b5132 | 3162 | # Accept absolute paths. |
a74801ba | 3163 | [\\/]* | [A-Za-z]:[\\/]*) |
252b5132 RH |
3164 | re_direlt='/[^/][^/]*/\.\./' |
3165 | # Canonicalize the path of ld | |
3166 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
3167 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3168 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
3169 | done | |
3170 | test -z "$LD" && LD="$ac_prog" | |
3171 | ;; | |
3172 | "") | |
3173 | # If it fails, then pretend we aren't using GCC. | |
3174 | ac_prog=ld | |
3175 | ;; | |
3176 | *) | |
3177 | # If it is relative, then search for the first ld in PATH. | |
3178 | with_gnu_ld=unknown | |
3179 | ;; | |
3180 | esac | |
3181 | elif test "$with_gnu_ld" = yes; then | |
42ecbf5e DJ |
3182 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
3183 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
252b5132 | 3184 | else |
42ecbf5e DJ |
3185 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
3186 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
252b5132 | 3187 | fi |
42ecbf5e DJ |
3188 | if test "${lt_cv_path_LD+set}" = set; then |
3189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3190 | else |
3191 | if test -z "$LD"; then | |
a74801ba | 3192 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
252b5132 RH |
3193 | for ac_dir in $PATH; do |
3194 | test -z "$ac_dir" && ac_dir=. | |
a74801ba | 3195 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
6be7c12c | 3196 | lt_cv_path_LD="$ac_dir/$ac_prog" |
252b5132 RH |
3197 | # Check to see if the program is GNU ld. I'd rather use --version, |
3198 | # but apparently some GNU ld's only accept -v. | |
3199 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
6be7c12c | 3200 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
252b5132 RH |
3201 | test "$with_gnu_ld" != no && break |
3202 | else | |
3203 | test "$with_gnu_ld" != yes && break | |
3204 | fi | |
3205 | fi | |
3206 | done | |
3207 | IFS="$ac_save_ifs" | |
3208 | else | |
6be7c12c | 3209 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
252b5132 RH |
3210 | fi |
3211 | fi | |
3212 | ||
6be7c12c | 3213 | LD="$lt_cv_path_LD" |
252b5132 | 3214 | if test -n "$LD"; then |
42ecbf5e DJ |
3215 | echo "$as_me:$LINENO: result: $LD" >&5 |
3216 | echo "${ECHO_T}$LD" >&6 | |
252b5132 | 3217 | else |
42ecbf5e DJ |
3218 | echo "$as_me:$LINENO: result: no" >&5 |
3219 | echo "${ECHO_T}no" >&6 | |
252b5132 | 3220 | fi |
42ecbf5e DJ |
3221 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
3222 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3223 | { (exit 1); exit 1; }; } | |
3224 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3225 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3226 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3228 | else |
3229 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3230 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
6be7c12c | 3231 | lt_cv_prog_gnu_ld=yes |
252b5132 | 3232 | else |
6be7c12c | 3233 | lt_cv_prog_gnu_ld=no |
252b5132 RH |
3234 | fi |
3235 | fi | |
42ecbf5e DJ |
3236 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
3237 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
6be7c12c | 3238 | with_gnu_ld=$lt_cv_prog_gnu_ld |
252b5132 RH |
3239 | |
3240 | ||
42ecbf5e DJ |
3241 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
3242 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
3243 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
3244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3245 | else |
3246 | lt_cv_ld_reload_flag='-r' | |
3247 | fi | |
42ecbf5e DJ |
3248 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
3249 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
ac48eca1 AO |
3250 | reload_flag=$lt_cv_ld_reload_flag |
3251 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
3252 | ||
42ecbf5e DJ |
3253 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
3254 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
3255 | if test "${lt_cv_path_NM+set}" = set; then | |
3256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3257 | else |
3258 | if test -n "$NM"; then | |
3259 | # Let the user override the test. | |
6be7c12c | 3260 | lt_cv_path_NM="$NM" |
252b5132 | 3261 | else |
a74801ba | 3262 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
252b5132 RH |
3263 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
3264 | test -z "$ac_dir" && ac_dir=. | |
ac48eca1 AO |
3265 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
3266 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
252b5132 RH |
3267 | # Check to see if the nm accepts a BSD-compat flag. |
3268 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3269 | # nm: unknown option "B" ignored | |
58cccadb AO |
3270 | # Tru64's nm complains that /dev/null is an invalid object file |
3271 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
6be7c12c | 3272 | lt_cv_path_NM="$tmp_nm -B" |
252b5132 | 3273 | break |
ac48eca1 | 3274 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
6be7c12c | 3275 | lt_cv_path_NM="$tmp_nm -p" |
252b5132 RH |
3276 | break |
3277 | else | |
6be7c12c | 3278 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
252b5132 RH |
3279 | continue # so that we can try to find one that supports BSD flags |
3280 | fi | |
3281 | fi | |
3282 | done | |
3283 | IFS="$ac_save_ifs" | |
6be7c12c | 3284 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
252b5132 RH |
3285 | fi |
3286 | fi | |
3287 | ||
6be7c12c | 3288 | NM="$lt_cv_path_NM" |
42ecbf5e DJ |
3289 | echo "$as_me:$LINENO: result: $NM" >&5 |
3290 | echo "${ECHO_T}$NM" >&6 | |
252b5132 | 3291 | |
42ecbf5e DJ |
3292 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3293 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3294 | LN_S=$as_ln_s | |
3295 | if test "$LN_S" = "ln -s"; then | |
3296 | echo "$as_me:$LINENO: result: yes" >&5 | |
3297 | echo "${ECHO_T}yes" >&6 | |
252b5132 | 3298 | else |
42ecbf5e DJ |
3299 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3300 | echo "${ECHO_T}no, using $LN_S" >&6 | |
252b5132 RH |
3301 | fi |
3302 | ||
42ecbf5e DJ |
3303 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 |
3304 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 | |
3305 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3307 | else |
d64552c5 | 3308 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
ac48eca1 AO |
3309 | lt_cv_file_magic_test_file= |
3310 | lt_cv_deplibs_check_method='unknown' | |
3311 | # Need to set the preceding variable on all platforms that support | |
3312 | # interlibrary dependencies. | |
3313 | # 'none' -- dependencies not supported. | |
3314 | # `unknown' -- same as none, but documents that we really don't know. | |
3315 | # 'pass_all' -- all dependencies passed with no checks. | |
3316 | # 'test_compile' -- check by making test program. | |
3317 | # 'file_magic [regex]' -- check by looking for files in library path | |
3318 | # which responds to the $file_magic_cmd with a given egrep regex. | |
3319 | # If you have `file' or equivalent on your system and you're not sure | |
3320 | # whether `pass_all' will *always* work, you probably want this one. | |
3321 | ||
6be7c12c AO |
3322 | case $host_os in |
3323 | aix*) | |
ac48eca1 AO |
3324 | lt_cv_deplibs_check_method=pass_all |
3325 | ;; | |
3326 | ||
3327 | beos*) | |
3328 | lt_cv_deplibs_check_method=pass_all | |
3329 | ;; | |
3330 | ||
3331 | bsdi4*) | |
6be7c12c AO |
3332 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
3333 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
ac48eca1 AO |
3334 | lt_cv_file_magic_test_file=/shlib/libc.so |
3335 | ;; | |
3336 | ||
d64552c5 | 3337 | cygwin* | mingw* |pw32*) |
ac48eca1 | 3338 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
d64552c5 | 3339 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
ac48eca1 AO |
3340 | ;; |
3341 | ||
6be7c12c AO |
3342 | darwin* | rhapsody*) |
3343 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
3344 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3345 | case "$host_os" in | |
3346 | rhapsody* | darwin1.012) | |
3347 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
3348 | ;; | |
3349 | *) # Darwin 1.3 on | |
3350 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
3351 | ;; | |
3352 | esac | |
3353 | ;; | |
3354 | ||
d15b04bd | 3355 | freebsd* | kfreebsd*-gnu) |
ac48eca1 | 3356 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
6be7c12c | 3357 | case $host_cpu in |
ac48eca1 | 3358 | i*86 ) |
58cccadb AO |
3359 | # Not sure whether the presence of OpenBSD here was a mistake. |
3360 | # Let's accept both of them until this is cleared up. | |
6be7c12c AO |
3361 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
3362 | lt_cv_file_magic_cmd=/usr/bin/file | |
ac48eca1 AO |
3363 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3364 | ;; | |
3365 | esac | |
3366 | else | |
3367 | lt_cv_deplibs_check_method=pass_all | |
3368 | fi | |
3369 | ;; | |
3370 | ||
3371 | gnu*) | |
3372 | lt_cv_deplibs_check_method=pass_all | |
3373 | ;; | |
3374 | ||
6be7c12c | 3375 | hpux10.20*|hpux11*) |
4867be41 DJ |
3376 | case $host_cpu in |
3377 | hppa*) | |
3378 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3379 | lt_cv_file_magic_cmd=/usr/bin/file | |
3380 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3381 | ;; | |
3382 | ia64*) | |
3383 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3384 | lt_cv_file_magic_cmd=/usr/bin/file | |
3385 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3386 | ;; | |
3387 | esac | |
ac48eca1 AO |
3388 | ;; |
3389 | ||
3390 | irix5* | irix6*) | |
6be7c12c | 3391 | case $host_os in |
ac48eca1 AO |
3392 | irix5*) |
3393 | # this will be overridden with pass_all, but let us keep it just in case | |
3394 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
3395 | ;; | |
3396 | *) | |
6be7c12c | 3397 | case $LD in |
ac48eca1 AO |
3398 | *-32|*"-32 ") libmagic=32-bit;; |
3399 | *-n32|*"-n32 ") libmagic=N32;; | |
3400 | *-64|*"-64 ") libmagic=64-bit;; | |
3401 | *) libmagic=never-match;; | |
3402 | esac | |
3403 | # this will be overridden with pass_all, but let us keep it just in case | |
6be7c12c AO |
3404 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
3405 | ;; | |
ac48eca1 AO |
3406 | esac |
3407 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
3408 | lt_cv_deplibs_check_method=pass_all | |
3409 | ;; | |
3410 | ||
3411 | # This must be Linux ELF. | |
58cccadb | 3412 | linux-gnu*) |
6be7c12c | 3413 | case $host_cpu in |
3c92310f | 3414 | alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* ) |
ac48eca1 AO |
3415 | lt_cv_deplibs_check_method=pass_all ;; |
3416 | *) | |
3417 | # glibc up to 2.1.1 does not perform some relocations on ARM | |
6be7c12c AO |
3418 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
3419 | esac | |
ac48eca1 AO |
3420 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
3421 | ;; | |
3422 | ||
d15b04bd | 3423 | netbsd* | knetbsd*-gnu) |
6be7c12c AO |
3424 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3425 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | |
ac48eca1 | 3426 | else |
6be7c12c | 3427 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
ac48eca1 AO |
3428 | fi |
3429 | ;; | |
3430 | ||
6be7c12c AO |
3431 | newsos6) |
3432 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3433 | lt_cv_file_magic_cmd=/usr/bin/file | |
3434 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3435 | ;; | |
3436 | ||
ac48eca1 AO |
3437 | osf3* | osf4* | osf5*) |
3438 | # this will be overridden with pass_all, but let us keep it just in case | |
3439 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
3440 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3441 | lt_cv_deplibs_check_method=pass_all | |
3442 | ;; | |
3443 | ||
3444 | sco3.2v5*) | |
3445 | lt_cv_deplibs_check_method=pass_all | |
3446 | ;; | |
3447 | ||
3448 | solaris*) | |
3449 | lt_cv_deplibs_check_method=pass_all | |
3450 | lt_cv_file_magic_test_file=/lib/libc.so | |
3451 | ;; | |
3452 | ||
6be7c12c AO |
3453 | sysv5uw[78]* | sysv4*uw2*) |
3454 | lt_cv_deplibs_check_method=pass_all | |
3455 | ;; | |
3456 | ||
ac48eca1 | 3457 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
6be7c12c | 3458 | case $host_vendor in |
ac48eca1 AO |
3459 | ncr) |
3460 | lt_cv_deplibs_check_method=pass_all | |
3461 | ;; | |
3462 | motorola) | |
6be7c12c AO |
3463 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' |
3464 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
ac48eca1 AO |
3465 | ;; |
3466 | esac | |
3467 | ;; | |
3468 | esac | |
3469 | ||
3470 | fi | |
42ecbf5e DJ |
3471 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
3472 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
ac48eca1 AO |
3473 | file_magic_cmd=$lt_cv_file_magic_cmd |
3474 | deplibs_check_method=$lt_cv_deplibs_check_method | |
3475 | ||
ac48eca1 | 3476 | |
ac48eca1 | 3477 | |
ac48eca1 AO |
3478 | |
3479 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
3480 | ||
3481 | # Only perform the check for file, if the check method requires it | |
6be7c12c | 3482 | case $deplibs_check_method in |
ac48eca1 | 3483 | file_magic*) |
d64552c5 | 3484 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
42ecbf5e DJ |
3485 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
3486 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
3487 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3489 | else |
6be7c12c | 3490 | case $MAGIC_CMD in |
ac48eca1 | 3491 | /*) |
d64552c5 | 3492 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
ac48eca1 AO |
3493 | ;; |
3494 | ?:/*) | |
d64552c5 | 3495 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
ac48eca1 AO |
3496 | ;; |
3497 | *) | |
d64552c5 | 3498 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
3499 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3500 | ac_dummy="/usr/bin:$PATH" | |
3501 | for ac_dir in $ac_dummy; do | |
3502 | test -z "$ac_dir" && ac_dir=. | |
3503 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
d64552c5 | 3504 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
ac48eca1 | 3505 | if test -n "$file_magic_test_file"; then |
6be7c12c | 3506 | case $deplibs_check_method in |
ac48eca1 AO |
3507 | "file_magic "*) |
3508 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 3509 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
3510 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
3511 | egrep "$file_magic_regex" > /dev/null; then | |
3512 | : | |
3513 | else | |
3514 | cat <<EOF 1>&2 | |
3515 | ||
3516 | *** Warning: the command libtool uses to detect shared libraries, | |
3517 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3518 | *** The result is that libtool may fail to recognize shared libraries | |
3519 | *** as such. This will affect the creation of libtool libraries that | |
3520 | *** depend on shared libraries, but programs linked with such libtool | |
3521 | *** libraries will work regardless of this problem. Nevertheless, you | |
3522 | *** may want to report the problem to your system manager and/or to | |
3523 | *** bug-libtool@gnu.org | |
3524 | ||
3525 | EOF | |
3526 | fi ;; | |
3527 | esac | |
3528 | fi | |
3529 | break | |
3530 | fi | |
3531 | done | |
3532 | IFS="$ac_save_ifs" | |
d64552c5 | 3533 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
3534 | ;; |
3535 | esac | |
3536 | fi | |
3537 | ||
d64552c5 AO |
3538 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3539 | if test -n "$MAGIC_CMD"; then | |
42ecbf5e DJ |
3540 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
3541 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
ac48eca1 | 3542 | else |
42ecbf5e DJ |
3543 | echo "$as_me:$LINENO: result: no" >&5 |
3544 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3545 | fi |
3546 | ||
d64552c5 | 3547 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
ac48eca1 | 3548 | if test -n "$ac_tool_prefix"; then |
42ecbf5e DJ |
3549 | echo "$as_me:$LINENO: checking for file" >&5 |
3550 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
3551 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3553 | else |
6be7c12c | 3554 | case $MAGIC_CMD in |
ac48eca1 | 3555 | /*) |
d64552c5 | 3556 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
ac48eca1 AO |
3557 | ;; |
3558 | ?:/*) | |
d64552c5 | 3559 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
ac48eca1 AO |
3560 | ;; |
3561 | *) | |
d64552c5 | 3562 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
3563 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3564 | ac_dummy="/usr/bin:$PATH" | |
3565 | for ac_dir in $ac_dummy; do | |
3566 | test -z "$ac_dir" && ac_dir=. | |
3567 | if test -f $ac_dir/file; then | |
d64552c5 | 3568 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
ac48eca1 | 3569 | if test -n "$file_magic_test_file"; then |
6be7c12c | 3570 | case $deplibs_check_method in |
ac48eca1 AO |
3571 | "file_magic "*) |
3572 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 3573 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
3574 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
3575 | egrep "$file_magic_regex" > /dev/null; then | |
3576 | : | |
3577 | else | |
3578 | cat <<EOF 1>&2 | |
3579 | ||
3580 | *** Warning: the command libtool uses to detect shared libraries, | |
3581 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3582 | *** The result is that libtool may fail to recognize shared libraries | |
3583 | *** as such. This will affect the creation of libtool libraries that | |
3584 | *** depend on shared libraries, but programs linked with such libtool | |
3585 | *** libraries will work regardless of this problem. Nevertheless, you | |
3586 | *** may want to report the problem to your system manager and/or to | |
3587 | *** bug-libtool@gnu.org | |
3588 | ||
3589 | EOF | |
3590 | fi ;; | |
3591 | esac | |
3592 | fi | |
3593 | break | |
3594 | fi | |
3595 | done | |
3596 | IFS="$ac_save_ifs" | |
d64552c5 | 3597 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
3598 | ;; |
3599 | esac | |
3600 | fi | |
3601 | ||
d64552c5 AO |
3602 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3603 | if test -n "$MAGIC_CMD"; then | |
42ecbf5e DJ |
3604 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
3605 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
ac48eca1 | 3606 | else |
42ecbf5e DJ |
3607 | echo "$as_me:$LINENO: result: no" >&5 |
3608 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3609 | fi |
3610 | ||
3611 | else | |
d64552c5 | 3612 | MAGIC_CMD=: |
ac48eca1 AO |
3613 | fi |
3614 | fi | |
252b5132 | 3615 | |
ac48eca1 AO |
3616 | fi |
3617 | ;; | |
a74801ba | 3618 | esac |
252b5132 | 3619 | |
42ecbf5e DJ |
3620 | if test -n "$ac_tool_prefix"; then |
3621 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
ac48eca1 | 3622 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
42ecbf5e DJ |
3623 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3624 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3625 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3627 | else |
3628 | if test -n "$RANLIB"; then | |
3629 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3630 | else | |
42ecbf5e DJ |
3631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3632 | for as_dir in $PATH | |
3633 | do | |
3634 | IFS=$as_save_IFS | |
3635 | test -z "$as_dir" && as_dir=. | |
3636 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3637 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3638 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3639 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3640 | break 2 | |
3641 | fi | |
3642 | done | |
3643 | done | |
3644 | ||
ac48eca1 AO |
3645 | fi |
3646 | fi | |
42ecbf5e | 3647 | RANLIB=$ac_cv_prog_RANLIB |
ac48eca1 | 3648 | if test -n "$RANLIB"; then |
42ecbf5e DJ |
3649 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3650 | echo "${ECHO_T}$RANLIB" >&6 | |
ac48eca1 | 3651 | else |
42ecbf5e DJ |
3652 | echo "$as_me:$LINENO: result: no" >&5 |
3653 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3654 | fi |
3655 | ||
42ecbf5e | 3656 | fi |
ac48eca1 | 3657 | if test -z "$ac_cv_prog_RANLIB"; then |
42ecbf5e | 3658 | ac_ct_RANLIB=$RANLIB |
ac48eca1 AO |
3659 | # Extract the first word of "ranlib", so it can be a program name with args. |
3660 | set dummy ranlib; ac_word=$2 | |
42ecbf5e DJ |
3661 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3662 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3663 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3665 | else |
42ecbf5e DJ |
3666 | if test -n "$ac_ct_RANLIB"; then |
3667 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3668 | else | |
3669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3670 | for as_dir in $PATH | |
3671 | do | |
3672 | IFS=$as_save_IFS | |
3673 | test -z "$as_dir" && as_dir=. | |
3674 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3675 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3676 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3677 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3678 | break 2 | |
3679 | fi | |
3680 | done | |
3681 | done | |
3682 | ||
3683 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
ac48eca1 AO |
3684 | fi |
3685 | fi | |
42ecbf5e DJ |
3686 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3687 | if test -n "$ac_ct_RANLIB"; then | |
3688 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3689 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
ac48eca1 | 3690 | else |
42ecbf5e DJ |
3691 | echo "$as_me:$LINENO: result: no" >&5 |
3692 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3693 | fi |
3694 | ||
42ecbf5e | 3695 | RANLIB=$ac_ct_RANLIB |
ac48eca1 | 3696 | else |
42ecbf5e | 3697 | RANLIB="$ac_cv_prog_RANLIB" |
ac48eca1 AO |
3698 | fi |
3699 | ||
42ecbf5e DJ |
3700 | if test -n "$ac_tool_prefix"; then |
3701 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
ac48eca1 | 3702 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
42ecbf5e DJ |
3703 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3704 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3705 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
3706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3707 | else |
3708 | if test -n "$STRIP"; then | |
3709 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3710 | else | |
42ecbf5e DJ |
3711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3712 | for as_dir in $PATH | |
3713 | do | |
3714 | IFS=$as_save_IFS | |
3715 | test -z "$as_dir" && as_dir=. | |
3716 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3717 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3718 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3719 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3720 | break 2 | |
3721 | fi | |
3722 | done | |
3723 | done | |
3724 | ||
ac48eca1 AO |
3725 | fi |
3726 | fi | |
42ecbf5e | 3727 | STRIP=$ac_cv_prog_STRIP |
ac48eca1 | 3728 | if test -n "$STRIP"; then |
42ecbf5e DJ |
3729 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
3730 | echo "${ECHO_T}$STRIP" >&6 | |
ac48eca1 | 3731 | else |
42ecbf5e DJ |
3732 | echo "$as_me:$LINENO: result: no" >&5 |
3733 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3734 | fi |
3735 | ||
42ecbf5e | 3736 | fi |
ac48eca1 | 3737 | if test -z "$ac_cv_prog_STRIP"; then |
42ecbf5e | 3738 | ac_ct_STRIP=$STRIP |
ac48eca1 AO |
3739 | # Extract the first word of "strip", so it can be a program name with args. |
3740 | set dummy strip; ac_word=$2 | |
42ecbf5e DJ |
3741 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3742 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3743 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
3744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3745 | else |
42ecbf5e DJ |
3746 | if test -n "$ac_ct_STRIP"; then |
3747 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
ac48eca1 | 3748 | else |
42ecbf5e DJ |
3749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3750 | for as_dir in $PATH | |
3751 | do | |
3752 | IFS=$as_save_IFS | |
3753 | test -z "$as_dir" && as_dir=. | |
3754 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3755 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3756 | ac_cv_prog_ac_ct_STRIP="strip" | |
3757 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3758 | break 2 | |
3759 | fi | |
3760 | done | |
3761 | done | |
3762 | ||
3763 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
ac48eca1 AO |
3764 | fi |
3765 | fi | |
42ecbf5e DJ |
3766 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3767 | if test -n "$ac_ct_STRIP"; then | |
3768 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
3769 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
ac48eca1 | 3770 | else |
42ecbf5e DJ |
3771 | echo "$as_me:$LINENO: result: no" >&5 |
3772 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3773 | fi |
3774 | ||
42ecbf5e | 3775 | STRIP=$ac_ct_STRIP |
ac48eca1 | 3776 | else |
42ecbf5e | 3777 | STRIP="$ac_cv_prog_STRIP" |
ac48eca1 AO |
3778 | fi |
3779 | ||
3780 | ||
252b5132 RH |
3781 | # Check for any special flags to pass to ltconfig. |
3782 | libtool_flags="--cache-file=$cache_file" | |
3783 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
3784 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
3785 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
6be7c12c AO |
3786 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" |
3787 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
252b5132 | 3788 | |
a74801ba ILT |
3789 | |
3790 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
3791 | if test "${enable_libtool_lock+set}" = set; then | |
3792 | enableval="$enable_libtool_lock" | |
a74801ba | 3793 | |
42ecbf5e | 3794 | fi; |
a74801ba ILT |
3795 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
3796 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
3797 | ||
42ecbf5e | 3798 | |
ac48eca1 AO |
3799 | # Check whether --with-pic or --without-pic was given. |
3800 | if test "${with_pic+set}" = set; then | |
3801 | withval="$with_pic" | |
3802 | pic_mode="$withval" | |
3803 | else | |
3804 | pic_mode=default | |
42ecbf5e | 3805 | fi; |
ac48eca1 AO |
3806 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" |
3807 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
3808 | ||
252b5132 RH |
3809 | # Some flags need to be propagated to the compiler or linker for good |
3810 | # libtool support. | |
6be7c12c | 3811 | case $host in |
252b5132 RH |
3812 | *-*-irix6*) |
3813 | # Find out which ABI we are using. | |
b7d4af3a | 3814 | echo '#line 3814 "configure"' > conftest.$ac_ext |
42ecbf5e DJ |
3815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3816 | (eval $ac_compile) 2>&5 | |
3817 | ac_status=$? | |
3818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3819 | (exit $ac_status); }; then | |
27a710e5 NC |
3820 | if test "$lt_cv_prog_gnu_ld" = yes; then |
3821 | case `/usr/bin/file conftest.$ac_objext` in | |
3822 | *32-bit*) | |
3823 | LD="${LD-ld} -melf32bsmip" | |
3824 | ;; | |
3825 | *N32*) | |
3826 | LD="${LD-ld} -melf32bmipn32" | |
3827 | ;; | |
3828 | *64-bit*) | |
3829 | LD="${LD-ld} -melf64bmip" | |
3830 | ;; | |
3831 | esac | |
3832 | else | |
6be7c12c | 3833 | case `/usr/bin/file conftest.$ac_objext` in |
252b5132 RH |
3834 | *32-bit*) |
3835 | LD="${LD-ld} -32" | |
3836 | ;; | |
3837 | *N32*) | |
3838 | LD="${LD-ld} -n32" | |
3839 | ;; | |
3840 | *64-bit*) | |
3841 | LD="${LD-ld} -64" | |
3842 | ;; | |
3843 | esac | |
27a710e5 | 3844 | fi |
252b5132 RH |
3845 | fi |
3846 | rm -rf conftest* | |
3847 | ;; | |
3848 | ||
4867be41 DJ |
3849 | ia64-*-hpux*) |
3850 | # Find out which ABI we are using. | |
3851 | echo 'int i;' > conftest.$ac_ext | |
42ecbf5e DJ |
3852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3853 | (eval $ac_compile) 2>&5 | |
3854 | ac_status=$? | |
3855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3856 | (exit $ac_status); }; then | |
4867be41 DJ |
3857 | case "`/usr/bin/file conftest.o`" in |
3858 | *ELF-32*) | |
3859 | HPUX_IA64_MODE="32" | |
3860 | ;; | |
3861 | *ELF-64*) | |
3862 | HPUX_IA64_MODE="64" | |
3863 | ;; | |
3864 | esac | |
3865 | fi | |
3866 | rm -rf conftest* | |
3867 | ;; | |
3868 | ||
252b5132 RH |
3869 | *-*-sco3.2v5*) |
3870 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
3871 | SAVE_CFLAGS="$CFLAGS" | |
3872 | CFLAGS="$CFLAGS -belf" | |
42ecbf5e DJ |
3873 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
3874 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
3875 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
3876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 3877 | else |
42ecbf5e DJ |
3878 | |
3879 | ||
ac48eca1 | 3880 | ac_ext=c |
ac48eca1 | 3881 | ac_cpp='$CPP $CPPFLAGS' |
42ecbf5e DJ |
3882 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3883 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3884 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 3885 | |
42ecbf5e DJ |
3886 | cat >conftest.$ac_ext <<_ACEOF |
3887 | /* confdefs.h. */ | |
3888 | _ACEOF | |
3889 | cat confdefs.h >>conftest.$ac_ext | |
3890 | cat >>conftest.$ac_ext <<_ACEOF | |
3891 | /* end confdefs.h. */ | |
252b5132 | 3892 | |
42ecbf5e DJ |
3893 | int |
3894 | main () | |
3895 | { | |
252b5132 | 3896 | |
42ecbf5e DJ |
3897 | ; |
3898 | return 0; | |
3899 | } | |
3900 | _ACEOF | |
3901 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3902 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3903 | (eval $ac_link) 2>conftest.er1 | |
3904 | ac_status=$? | |
3905 | grep -v '^ *+' conftest.er1 >conftest.err | |
3906 | rm -f conftest.er1 | |
3907 | cat conftest.err >&5 | |
3908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3909 | (exit $ac_status); } && | |
b7d4af3a JW |
3910 | { ac_try='test -z "$ac_c_werror_flag" |
3911 | || test ! -s conftest.err' | |
42ecbf5e DJ |
3912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3913 | (eval $ac_try) 2>&5 | |
3914 | ac_status=$? | |
3915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3916 | (exit $ac_status); }; } && | |
3917 | { ac_try='test -s conftest$ac_exeext' | |
3918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3919 | (eval $ac_try) 2>&5 | |
3920 | ac_status=$? | |
3921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3922 | (exit $ac_status); }; }; then | |
252b5132 RH |
3923 | lt_cv_cc_needs_belf=yes |
3924 | else | |
42ecbf5e DJ |
3925 | echo "$as_me: failed program was:" >&5 |
3926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3927 | ||
3928 | lt_cv_cc_needs_belf=no | |
252b5132 | 3929 | fi |
42ecbf5e DJ |
3930 | rm -f conftest.err conftest.$ac_objext \ |
3931 | conftest$ac_exeext conftest.$ac_ext | |
ac48eca1 | 3932 | ac_ext=c |
ac48eca1 | 3933 | ac_cpp='$CPP $CPPFLAGS' |
42ecbf5e DJ |
3934 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3935 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3936 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 3937 | |
252b5132 | 3938 | fi |
42ecbf5e DJ |
3939 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
3940 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
252b5132 RH |
3941 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
3942 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
3943 | CFLAGS="$SAVE_CFLAGS" | |
3944 | fi | |
3945 | ;; | |
3946 | ||
252b5132 RH |
3947 | |
3948 | esac | |
3949 | ||
252b5132 RH |
3950 | |
3951 | # Save cache, so that ltconfig can load it | |
42ecbf5e | 3952 | cat >confcache <<\_ACEOF |
252b5132 RH |
3953 | # This file is a shell script that caches the results of configure |
3954 | # tests run on this system so they can be shared between configure | |
42ecbf5e DJ |
3955 | # scripts and configure runs, see configure's option --config-cache. |
3956 | # It is not useful on other systems. If it contains results you don't | |
3957 | # want to keep, you may remove or edit it. | |
252b5132 | 3958 | # |
42ecbf5e DJ |
3959 | # config.status only pays attention to the cache file if you give it |
3960 | # the --recheck option to rerun configure. | |
252b5132 | 3961 | # |
42ecbf5e DJ |
3962 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
3963 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
3964 | # following values. | |
3965 | ||
3966 | _ACEOF | |
3967 | ||
252b5132 RH |
3968 | # The following way of writing the cache mishandles newlines in values, |
3969 | # but we know of no workaround that is simple, portable, and efficient. | |
3970 | # So, don't put newlines in cache variables' values. | |
3971 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
3972 | # and sets the high bit in the cache file unless we assign to the vars. | |
42ecbf5e DJ |
3973 | { |
3974 | (set) 2>&1 | | |
3975 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
3976 | *ac_space=\ *) | |
3977 | # `set' does not quote correctly, so add quotes (double-quote | |
3978 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
3979 | sed -n \ | |
3980 | "s/'/'\\\\''/g; | |
3981 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
3982 | ;; | |
3983 | *) | |
3984 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
3985 | sed -n \ | |
3986 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
3987 | ;; | |
3988 | esac; | |
3989 | } | | |
3990 | sed ' | |
3991 | t clear | |
3992 | : clear | |
3993 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
3994 | t end | |
3995 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
3996 | : end' >>confcache | |
3997 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
252b5132 | 3998 | if test -w $cache_file; then |
42ecbf5e DJ |
3999 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
4000 | cat confcache >$cache_file | |
252b5132 RH |
4001 | else |
4002 | echo "not updating unwritable cache $cache_file" | |
4003 | fi | |
4004 | fi | |
4005 | rm -f confcache | |
4006 | ||
252b5132 | 4007 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
ac48eca1 | 4008 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
d64552c5 | 4009 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
ac48eca1 AO |
4010 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
4011 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
4012 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
4013 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
252b5132 | 4014 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
ac48eca1 | 4015 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ |
42ecbf5e DJ |
4016 | || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 |
4017 | echo "$as_me: error: libtool configure failed" >&2;} | |
4018 | { (exit 1); exit 1; }; } | |
252b5132 RH |
4019 | |
4020 | # Reload cache, that may have been modified by ltconfig | |
4021 | if test -r "$cache_file"; then | |
42ecbf5e DJ |
4022 | # Some versions of bash will fail to source /dev/null (special |
4023 | # files actually), so we avoid doing that. | |
4024 | if test -f "$cache_file"; then | |
4025 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
4026 | echo "$as_me: loading cache $cache_file" >&6;} | |
4027 | case $cache_file in | |
4028 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
4029 | *) . ./$cache_file;; | |
4030 | esac | |
4031 | fi | |
252b5132 | 4032 | else |
42ecbf5e DJ |
4033 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
4034 | echo "$as_me: creating cache $cache_file" >&6;} | |
4035 | >$cache_file | |
252b5132 RH |
4036 | fi |
4037 | ||
4038 | ||
4039 | # This can be used to rebuild libtool when needed | |
ac48eca1 | 4040 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" |
252b5132 RH |
4041 | |
4042 | # Always use our own libtool. | |
4043 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
4044 | ||
4045 | # Redirect the config.log output again, so that the ltconfig log is not | |
4046 | # clobbered by the next message. | |
4047 | exec 5>>./config.log | |
4048 | ||
ac48eca1 | 4049 | |
42ecbf5e DJ |
4050 | |
4051 | ||
4052 | ||
4053 | ||
ac48eca1 | 4054 | |
252b5132 RH |
4055 | # Check whether --enable-targets or --disable-targets was given. |
4056 | if test "${enable_targets+set}" = set; then | |
4057 | enableval="$enable_targets" | |
4058 | case "${enableval}" in | |
42ecbf5e DJ |
4059 | yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5 |
4060 | echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;} | |
4061 | { (exit 1); exit 1; }; } | |
252b5132 RH |
4062 | ;; |
4063 | no) enable_targets= ;; | |
4064 | *) enable_targets=$enableval ;; | |
4065 | esac | |
42ecbf5e | 4066 | fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. |
252b5132 RH |
4067 | if test "${enable_commonbfdlib+set}" = set; then |
4068 | enableval="$enable_commonbfdlib" | |
4069 | case "${enableval}" in | |
4070 | yes) commonbfdlib=true ;; | |
4071 | no) commonbfdlib=false ;; | |
42ecbf5e DJ |
4072 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5 |
4073 | echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;} | |
4074 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 4075 | esac |
42ecbf5e | 4076 | fi; |
398ee8f1 | 4077 | |
9e9b66a9 | 4078 | WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
1ad12f97 | 4079 | |
569acd2c NC |
4080 | # Check whether --enable-werror or --disable-werror was given. |
4081 | if test "${enable_werror+set}" = set; then | |
4082 | enableval="$enable_werror" | |
1ad12f97 NC |
4083 | case "${enableval}" in |
4084 | yes | y) ERROR_ON_WARNING="yes" ;; | |
4085 | no | n) ERROR_ON_WARNING="no" ;; | |
42ecbf5e DJ |
4086 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 |
4087 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} | |
4088 | { (exit 1); exit 1; }; } ;; | |
1ad12f97 | 4089 | esac |
42ecbf5e | 4090 | fi; |
1ad12f97 | 4091 | |
9e9b66a9 AM |
4092 | # Enable -Werror by default when using gcc |
4093 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
4094 | ERROR_ON_WARNING=yes | |
1ad12f97 | 4095 | fi |
569acd2c | 4096 | |
9e9b66a9 AM |
4097 | NO_WERROR= |
4098 | if test "${ERROR_ON_WARNING}" = yes ; then | |
4099 | WARN_CFLAGS="$WARN_CFLAGS -Werror" | |
4100 | NO_WERROR="-Wno-error" | |
4101 | fi | |
42ecbf5e | 4102 | |
a2d91340 AC |
4103 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
4104 | if test "${enable_build_warnings+set}" = set; then | |
4105 | enableval="$enable_build_warnings" | |
4106 | case "${enableval}" in | |
4107 | yes) ;; | |
9e9b66a9 | 4108 | no) WARN_CFLAGS="-w";; |
a2d91340 | 4109 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
9e9b66a9 | 4110 | WARN_CFLAGS="${WARN_CFLAGS} ${t}";; |
a2d91340 | 4111 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
9e9b66a9 AM |
4112 | WARN_CFLAGS="${t} ${WARN_CFLAGS}";; |
4113 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
d15b04bd | 4114 | esac |
42ecbf5e | 4115 | fi; |
9e9b66a9 AM |
4116 | |
4117 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then | |
4118 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
d15b04bd | 4119 | fi |
9e9b66a9 AM |
4120 | |
4121 | ||
e5a52504 | 4122 | |
e5a52504 | 4123 | |
398ee8f1 | 4124 | |
42ecbf5e | 4125 | ac_config_headers="$ac_config_headers config.h:config.in" |
d15b04bd L |
4126 | |
4127 | ||
4128 | if test -z "$target" ; then | |
42ecbf5e DJ |
4129 | { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5 |
4130 | echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;} | |
4131 | { (exit 1); exit 1; }; } | |
d15b04bd L |
4132 | fi |
4133 | if test -z "$host" ; then | |
42ecbf5e DJ |
4134 | { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5 |
4135 | echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;} | |
4136 | { (exit 1); exit 1; }; } | |
4137 | fi | |
4138 | ||
4139 | ac_ext=c | |
4140 | ac_cpp='$CPP $CPPFLAGS' | |
4141 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4142 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4143 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4144 | if test -n "$ac_tool_prefix"; then | |
4145 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4146 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4147 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4148 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4149 | if test "${ac_cv_prog_CC+set}" = set; then | |
4150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4151 | else | |
4152 | if test -n "$CC"; then | |
4153 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4154 | else | |
4155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4156 | for as_dir in $PATH | |
4157 | do | |
4158 | IFS=$as_save_IFS | |
4159 | test -z "$as_dir" && as_dir=. | |
4160 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4161 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4162 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
4163 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4164 | break 2 | |
4165 | fi | |
4166 | done | |
4167 | done | |
4168 | ||
4169 | fi | |
4170 | fi | |
4171 | CC=$ac_cv_prog_CC | |
4172 | if test -n "$CC"; then | |
4173 | echo "$as_me:$LINENO: result: $CC" >&5 | |
4174 | echo "${ECHO_T}$CC" >&6 | |
4175 | else | |
4176 | echo "$as_me:$LINENO: result: no" >&5 | |
4177 | echo "${ECHO_T}no" >&6 | |
d15b04bd L |
4178 | fi |
4179 | ||
42ecbf5e DJ |
4180 | fi |
4181 | if test -z "$ac_cv_prog_CC"; then | |
4182 | ac_ct_CC=$CC | |
4183 | # Extract the first word of "gcc", so it can be a program name with args. | |
d15b04bd | 4184 | set dummy gcc; ac_word=$2 |
42ecbf5e DJ |
4185 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4186 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4187 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4189 | else | |
4190 | if test -n "$ac_ct_CC"; then | |
4191 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4192 | else | |
4193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4194 | for as_dir in $PATH | |
4195 | do | |
4196 | IFS=$as_save_IFS | |
4197 | test -z "$as_dir" && as_dir=. | |
4198 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4199 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4200 | ac_cv_prog_ac_ct_CC="gcc" | |
4201 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4202 | break 2 | |
4203 | fi | |
4204 | done | |
4205 | done | |
4206 | ||
4207 | fi | |
4208 | fi | |
4209 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4210 | if test -n "$ac_ct_CC"; then | |
4211 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4212 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4213 | else | |
4214 | echo "$as_me:$LINENO: result: no" >&5 | |
4215 | echo "${ECHO_T}no" >&6 | |
4216 | fi | |
4217 | ||
4218 | CC=$ac_ct_CC | |
4219 | else | |
4220 | CC="$ac_cv_prog_CC" | |
4221 | fi | |
4222 | ||
4223 | if test -z "$CC"; then | |
4224 | if test -n "$ac_tool_prefix"; then | |
4225 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4226 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4227 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4228 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4229 | if test "${ac_cv_prog_CC+set}" = set; then | |
4230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e5a52504 | 4231 | else |
d15b04bd L |
4232 | if test -n "$CC"; then |
4233 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
e5a52504 | 4234 | else |
42ecbf5e DJ |
4235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4236 | for as_dir in $PATH | |
4237 | do | |
4238 | IFS=$as_save_IFS | |
4239 | test -z "$as_dir" && as_dir=. | |
4240 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4241 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4242 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
4243 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4244 | break 2 | |
4245 | fi | |
4246 | done | |
4247 | done | |
4248 | ||
252b5132 | 4249 | fi |
e5a52504 | 4250 | fi |
42ecbf5e | 4251 | CC=$ac_cv_prog_CC |
d15b04bd | 4252 | if test -n "$CC"; then |
42ecbf5e DJ |
4253 | echo "$as_me:$LINENO: result: $CC" >&5 |
4254 | echo "${ECHO_T}$CC" >&6 | |
4255 | else | |
4256 | echo "$as_me:$LINENO: result: no" >&5 | |
4257 | echo "${ECHO_T}no" >&6 | |
4258 | fi | |
4259 | ||
4260 | fi | |
4261 | if test -z "$ac_cv_prog_CC"; then | |
4262 | ac_ct_CC=$CC | |
4263 | # Extract the first word of "cc", so it can be a program name with args. | |
4264 | set dummy cc; ac_word=$2 | |
4265 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4266 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4267 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4269 | else | |
4270 | if test -n "$ac_ct_CC"; then | |
4271 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4272 | else | |
4273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4274 | for as_dir in $PATH | |
4275 | do | |
4276 | IFS=$as_save_IFS | |
4277 | test -z "$as_dir" && as_dir=. | |
4278 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4279 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4280 | ac_cv_prog_ac_ct_CC="cc" | |
4281 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4282 | break 2 | |
4283 | fi | |
4284 | done | |
4285 | done | |
4286 | ||
4287 | fi | |
4288 | fi | |
4289 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4290 | if test -n "$ac_ct_CC"; then | |
4291 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4292 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4293 | else | |
4294 | echo "$as_me:$LINENO: result: no" >&5 | |
4295 | echo "${ECHO_T}no" >&6 | |
4296 | fi | |
4297 | ||
4298 | CC=$ac_ct_CC | |
252b5132 | 4299 | else |
42ecbf5e | 4300 | CC="$ac_cv_prog_CC" |
252b5132 | 4301 | fi |
e5a52504 | 4302 | |
42ecbf5e | 4303 | fi |
d15b04bd L |
4304 | if test -z "$CC"; then |
4305 | # Extract the first word of "cc", so it can be a program name with args. | |
4306 | set dummy cc; ac_word=$2 | |
42ecbf5e DJ |
4307 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4308 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4309 | if test "${ac_cv_prog_CC+set}" = set; then | |
4310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 4311 | else |
d15b04bd L |
4312 | if test -n "$CC"; then |
4313 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
252b5132 | 4314 | else |
d15b04bd | 4315 | ac_prog_rejected=no |
42ecbf5e DJ |
4316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4317 | for as_dir in $PATH | |
4318 | do | |
4319 | IFS=$as_save_IFS | |
4320 | test -z "$as_dir" && as_dir=. | |
4321 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4322 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4323 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
4324 | ac_prog_rejected=yes | |
4325 | continue | |
4326 | fi | |
4327 | ac_cv_prog_CC="cc" | |
4328 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4329 | break 2 | |
4330 | fi | |
4331 | done | |
4332 | done | |
4333 | ||
d15b04bd L |
4334 | if test $ac_prog_rejected = yes; then |
4335 | # We found a bogon in the path, so make sure we never use it. | |
4336 | set dummy $ac_cv_prog_CC | |
4337 | shift | |
42ecbf5e | 4338 | if test $# != 0; then |
d15b04bd L |
4339 | # We chose a different compiler from the bogus one. |
4340 | # However, it has the same basename, so the bogon will be chosen | |
4341 | # first if we set CC to just the basename; use the full file name. | |
4342 | shift | |
42ecbf5e | 4343 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
e5a52504 | 4344 | fi |
252b5132 RH |
4345 | fi |
4346 | fi | |
d15b04bd | 4347 | fi |
42ecbf5e | 4348 | CC=$ac_cv_prog_CC |
d15b04bd | 4349 | if test -n "$CC"; then |
42ecbf5e DJ |
4350 | echo "$as_me:$LINENO: result: $CC" >&5 |
4351 | echo "${ECHO_T}$CC" >&6 | |
252b5132 | 4352 | else |
42ecbf5e DJ |
4353 | echo "$as_me:$LINENO: result: no" >&5 |
4354 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
4355 | fi |
4356 | ||
42ecbf5e DJ |
4357 | fi |
4358 | if test -z "$CC"; then | |
4359 | if test -n "$ac_tool_prefix"; then | |
4360 | for ac_prog in cl | |
4361 | do | |
4362 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4363 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4364 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4365 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4366 | if test "${ac_cv_prog_CC+set}" = set; then | |
4367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 4368 | else |
d15b04bd L |
4369 | if test -n "$CC"; then |
4370 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
252b5132 | 4371 | else |
42ecbf5e DJ |
4372 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4373 | for as_dir in $PATH | |
4374 | do | |
4375 | IFS=$as_save_IFS | |
4376 | test -z "$as_dir" && as_dir=. | |
4377 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4378 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4379 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
4380 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4381 | break 2 | |
4382 | fi | |
4383 | done | |
4384 | done | |
4385 | ||
252b5132 RH |
4386 | fi |
4387 | fi | |
42ecbf5e | 4388 | CC=$ac_cv_prog_CC |
d15b04bd | 4389 | if test -n "$CC"; then |
42ecbf5e DJ |
4390 | echo "$as_me:$LINENO: result: $CC" >&5 |
4391 | echo "${ECHO_T}$CC" >&6 | |
252b5132 | 4392 | else |
42ecbf5e DJ |
4393 | echo "$as_me:$LINENO: result: no" >&5 |
4394 | echo "${ECHO_T}no" >&6 | |
d15b04bd | 4395 | fi |
42ecbf5e DJ |
4396 | |
4397 | test -n "$CC" && break | |
4398 | done | |
4399 | fi | |
4400 | if test -z "$CC"; then | |
4401 | ac_ct_CC=$CC | |
4402 | for ac_prog in cl | |
4403 | do | |
4404 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4405 | set dummy $ac_prog; ac_word=$2 | |
4406 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4407 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4408 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4410 | else | |
4411 | if test -n "$ac_ct_CC"; then | |
4412 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4413 | else | |
4414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4415 | for as_dir in $PATH | |
4416 | do | |
4417 | IFS=$as_save_IFS | |
4418 | test -z "$as_dir" && as_dir=. | |
4419 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4420 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4421 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
4422 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4423 | break 2 | |
d15b04bd | 4424 | fi |
42ecbf5e DJ |
4425 | done |
4426 | done | |
4427 | ||
4428 | fi | |
4429 | fi | |
4430 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4431 | if test -n "$ac_ct_CC"; then | |
4432 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4433 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4434 | else | |
4435 | echo "$as_me:$LINENO: result: no" >&5 | |
4436 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
4437 | fi |
4438 | ||
42ecbf5e DJ |
4439 | test -n "$ac_ct_CC" && break |
4440 | done | |
e5a52504 | 4441 | |
42ecbf5e DJ |
4442 | CC=$ac_ct_CC |
4443 | fi | |
4444 | ||
4445 | fi | |
4446 | ||
4447 | ||
4448 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
4449 | See \`config.log' for more details." >&5 | |
4450 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
4451 | See \`config.log' for more details." >&2;} | |
4452 | { (exit 1); exit 1; }; } | |
4453 | ||
4454 | # Provide some information about the compiler. | |
4455 | echo "$as_me:$LINENO:" \ | |
4456 | "checking for C compiler version" >&5 | |
4457 | ac_compiler=`set X $ac_compile; echo $2` | |
4458 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
4459 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
4460 | ac_status=$? | |
4461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4462 | (exit $ac_status); } | |
4463 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
4464 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
4465 | ac_status=$? | |
4466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4467 | (exit $ac_status); } | |
4468 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
4469 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
4470 | ac_status=$? | |
4471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4472 | (exit $ac_status); } | |
4473 | ||
4474 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
4475 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
4476 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
4477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4478 | else | |
4479 | cat >conftest.$ac_ext <<_ACEOF | |
4480 | /* confdefs.h. */ | |
4481 | _ACEOF | |
4482 | cat confdefs.h >>conftest.$ac_ext | |
4483 | cat >>conftest.$ac_ext <<_ACEOF | |
4484 | /* end confdefs.h. */ | |
4485 | ||
4486 | int | |
4487 | main () | |
4488 | { | |
4489 | #ifndef __GNUC__ | |
4490 | choke me | |
4491 | #endif | |
e5a52504 | 4492 | |
42ecbf5e DJ |
4493 | ; |
4494 | return 0; | |
4495 | } | |
4496 | _ACEOF | |
4497 | rm -f conftest.$ac_objext | |
4498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4499 | (eval $ac_compile) 2>conftest.er1 | |
4500 | ac_status=$? | |
4501 | grep -v '^ *+' conftest.er1 >conftest.err | |
4502 | rm -f conftest.er1 | |
4503 | cat conftest.err >&5 | |
4504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4505 | (exit $ac_status); } && | |
b7d4af3a JW |
4506 | { ac_try='test -z "$ac_c_werror_flag" |
4507 | || test ! -s conftest.err' | |
42ecbf5e DJ |
4508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4509 | (eval $ac_try) 2>&5 | |
4510 | ac_status=$? | |
4511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4512 | (exit $ac_status); }; } && | |
4513 | { ac_try='test -s conftest.$ac_objext' | |
4514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4515 | (eval $ac_try) 2>&5 | |
4516 | ac_status=$? | |
4517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4518 | (exit $ac_status); }; }; then | |
4519 | ac_compiler_gnu=yes | |
4520 | else | |
4521 | echo "$as_me: failed program was:" >&5 | |
4522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4523 | ||
4524 | ac_compiler_gnu=no | |
4525 | fi | |
4526 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4527 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4528 | ||
4529 | fi | |
4530 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
4531 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
4532 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
4533 | ac_test_CFLAGS=${CFLAGS+set} | |
4534 | ac_save_CFLAGS=$CFLAGS | |
4535 | CFLAGS="-g" | |
4536 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
4537 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
4538 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
4539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4540 | else | |
4541 | cat >conftest.$ac_ext <<_ACEOF | |
4542 | /* confdefs.h. */ | |
4543 | _ACEOF | |
4544 | cat confdefs.h >>conftest.$ac_ext | |
4545 | cat >>conftest.$ac_ext <<_ACEOF | |
4546 | /* end confdefs.h. */ | |
252b5132 | 4547 | |
42ecbf5e DJ |
4548 | int |
4549 | main () | |
4550 | { | |
d15b04bd | 4551 | |
42ecbf5e DJ |
4552 | ; |
4553 | return 0; | |
4554 | } | |
4555 | _ACEOF | |
4556 | rm -f conftest.$ac_objext | |
4557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4558 | (eval $ac_compile) 2>conftest.er1 | |
4559 | ac_status=$? | |
4560 | grep -v '^ *+' conftest.er1 >conftest.err | |
4561 | rm -f conftest.er1 | |
4562 | cat conftest.err >&5 | |
4563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4564 | (exit $ac_status); } && | |
b7d4af3a JW |
4565 | { ac_try='test -z "$ac_c_werror_flag" |
4566 | || test ! -s conftest.err' | |
42ecbf5e DJ |
4567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4568 | (eval $ac_try) 2>&5 | |
4569 | ac_status=$? | |
4570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4571 | (exit $ac_status); }; } && | |
4572 | { ac_try='test -s conftest.$ac_objext' | |
4573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4574 | (eval $ac_try) 2>&5 | |
4575 | ac_status=$? | |
4576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4577 | (exit $ac_status); }; }; then | |
4578 | ac_cv_prog_cc_g=yes | |
4579 | else | |
4580 | echo "$as_me: failed program was:" >&5 | |
4581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4582 | ||
4583 | ac_cv_prog_cc_g=no | |
4584 | fi | |
4585 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4586 | fi | |
4587 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
4588 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
4589 | if test "$ac_test_CFLAGS" = set; then | |
4590 | CFLAGS=$ac_save_CFLAGS | |
4591 | elif test $ac_cv_prog_cc_g = yes; then | |
4592 | if test "$GCC" = yes; then | |
4593 | CFLAGS="-g -O2" | |
d15b04bd | 4594 | else |
42ecbf5e | 4595 | CFLAGS="-g" |
d15b04bd | 4596 | fi |
252b5132 | 4597 | else |
42ecbf5e DJ |
4598 | if test "$GCC" = yes; then |
4599 | CFLAGS="-O2" | |
4600 | else | |
4601 | CFLAGS= | |
4602 | fi | |
252b5132 | 4603 | fi |
42ecbf5e DJ |
4604 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
4605 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
4606 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
4607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4608 | else | |
4609 | ac_cv_prog_cc_stdc=no | |
4610 | ac_save_CC=$CC | |
4611 | cat >conftest.$ac_ext <<_ACEOF | |
4612 | /* confdefs.h. */ | |
4613 | _ACEOF | |
4614 | cat confdefs.h >>conftest.$ac_ext | |
4615 | cat >>conftest.$ac_ext <<_ACEOF | |
4616 | /* end confdefs.h. */ | |
4617 | #include <stdarg.h> | |
4618 | #include <stdio.h> | |
4619 | #include <sys/types.h> | |
4620 | #include <sys/stat.h> | |
4621 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4622 | struct buf { int x; }; | |
4623 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4624 | static char *e (p, i) | |
4625 | char **p; | |
4626 | int i; | |
4627 | { | |
4628 | return p[i]; | |
4629 | } | |
4630 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4631 | { | |
4632 | char *s; | |
4633 | va_list v; | |
4634 | va_start (v,p); | |
4635 | s = g (p, va_arg (v,int)); | |
4636 | va_end (v); | |
4637 | return s; | |
4638 | } | |
252b5132 | 4639 | |
42ecbf5e DJ |
4640 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4641 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4642 | These don't provoke an error unfortunately, instead are silently treated | |
4643 | as 'x'. The following induces an error, until -std1 is added to get | |
4644 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4645 | array size at least. It's necessary to write '\x00'==0 to get something | |
4646 | that's true only with -std1. */ | |
4647 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4648 | ||
4649 | int test (int i, double x); | |
4650 | struct s1 {int (*f) (int a);}; | |
4651 | struct s2 {int (*f) (double a);}; | |
4652 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4653 | int argc; | |
4654 | char **argv; | |
4655 | int | |
4656 | main () | |
4657 | { | |
4658 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4659 | ; | |
4660 | return 0; | |
4661 | } | |
4662 | _ACEOF | |
4663 | # Don't try gcc -ansi; that turns off useful extensions and | |
4664 | # breaks some systems' header files. | |
4665 | # AIX -qlanglvl=ansi | |
4666 | # Ultrix and OSF/1 -std1 | |
4667 | # HP-UX 10.20 and later -Ae | |
4668 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
4669 | # SVR4 -Xc -D__EXTENSIONS__ | |
4670 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4671 | do | |
4672 | CC="$ac_save_CC $ac_arg" | |
4673 | rm -f conftest.$ac_objext | |
4674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4675 | (eval $ac_compile) 2>conftest.er1 | |
4676 | ac_status=$? | |
4677 | grep -v '^ *+' conftest.er1 >conftest.err | |
4678 | rm -f conftest.er1 | |
4679 | cat conftest.err >&5 | |
4680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4681 | (exit $ac_status); } && | |
b7d4af3a JW |
4682 | { ac_try='test -z "$ac_c_werror_flag" |
4683 | || test ! -s conftest.err' | |
42ecbf5e DJ |
4684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4685 | (eval $ac_try) 2>&5 | |
4686 | ac_status=$? | |
4687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4688 | (exit $ac_status); }; } && | |
4689 | { ac_try='test -s conftest.$ac_objext' | |
4690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4691 | (eval $ac_try) 2>&5 | |
4692 | ac_status=$? | |
4693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4694 | (exit $ac_status); }; }; then | |
4695 | ac_cv_prog_cc_stdc=$ac_arg | |
4696 | break | |
252b5132 | 4697 | else |
42ecbf5e DJ |
4698 | echo "$as_me: failed program was:" >&5 |
4699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4700 | ||
252b5132 | 4701 | fi |
42ecbf5e DJ |
4702 | rm -f conftest.err conftest.$ac_objext |
4703 | done | |
4704 | rm -f conftest.$ac_ext conftest.$ac_objext | |
4705 | CC=$ac_save_CC | |
4706 | ||
252b5132 | 4707 | fi |
e5a52504 | 4708 | |
42ecbf5e DJ |
4709 | case "x$ac_cv_prog_cc_stdc" in |
4710 | x|xno) | |
4711 | echo "$as_me:$LINENO: result: none needed" >&5 | |
4712 | echo "${ECHO_T}none needed" >&6 ;; | |
4713 | *) | |
4714 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
4715 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
4716 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
4717 | esac | |
e5a52504 | 4718 | |
42ecbf5e DJ |
4719 | # Some people use a C++ compiler to compile C. Since we use `exit', |
4720 | # in C++ we need to declare it. In case someone uses the same compiler | |
4721 | # for both compiling C and C++ we need to have the C++ compiler decide | |
4722 | # the declaration of exit, since it's the most demanding environment. | |
4723 | cat >conftest.$ac_ext <<_ACEOF | |
4724 | #ifndef __cplusplus | |
4725 | choke me | |
4726 | #endif | |
4727 | _ACEOF | |
4728 | rm -f conftest.$ac_objext | |
4729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4730 | (eval $ac_compile) 2>conftest.er1 | |
4731 | ac_status=$? | |
4732 | grep -v '^ *+' conftest.er1 >conftest.err | |
4733 | rm -f conftest.er1 | |
4734 | cat conftest.err >&5 | |
4735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4736 | (exit $ac_status); } && | |
b7d4af3a JW |
4737 | { ac_try='test -z "$ac_c_werror_flag" |
4738 | || test ! -s conftest.err' | |
42ecbf5e DJ |
4739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4740 | (eval $ac_try) 2>&5 | |
4741 | ac_status=$? | |
4742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4743 | (exit $ac_status); }; } && | |
4744 | { ac_try='test -s conftest.$ac_objext' | |
4745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4746 | (eval $ac_try) 2>&5 | |
4747 | ac_status=$? | |
4748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4749 | (exit $ac_status); }; }; then | |
4750 | for ac_declaration in \ | |
4751 | '' \ | |
4752 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
4753 | 'extern "C" void std::exit (int); using std::exit;' \ | |
4754 | 'extern "C" void exit (int) throw ();' \ | |
4755 | 'extern "C" void exit (int);' \ | |
4756 | 'void exit (int);' | |
4757 | do | |
4758 | cat >conftest.$ac_ext <<_ACEOF | |
4759 | /* confdefs.h. */ | |
4760 | _ACEOF | |
4761 | cat confdefs.h >>conftest.$ac_ext | |
4762 | cat >>conftest.$ac_ext <<_ACEOF | |
4763 | /* end confdefs.h. */ | |
4764 | $ac_declaration | |
4765 | #include <stdlib.h> | |
4766 | int | |
4767 | main () | |
4768 | { | |
4769 | exit (42); | |
4770 | ; | |
4771 | return 0; | |
4772 | } | |
4773 | _ACEOF | |
4774 | rm -f conftest.$ac_objext | |
4775 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4776 | (eval $ac_compile) 2>conftest.er1 | |
4777 | ac_status=$? | |
4778 | grep -v '^ *+' conftest.er1 >conftest.err | |
4779 | rm -f conftest.er1 | |
4780 | cat conftest.err >&5 | |
4781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4782 | (exit $ac_status); } && | |
b7d4af3a JW |
4783 | { ac_try='test -z "$ac_c_werror_flag" |
4784 | || test ! -s conftest.err' | |
42ecbf5e DJ |
4785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4786 | (eval $ac_try) 2>&5 | |
4787 | ac_status=$? | |
4788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4789 | (exit $ac_status); }; } && | |
4790 | { ac_try='test -s conftest.$ac_objext' | |
4791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4792 | (eval $ac_try) 2>&5 | |
4793 | ac_status=$? | |
4794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4795 | (exit $ac_status); }; }; then | |
4796 | : | |
d15b04bd | 4797 | else |
42ecbf5e DJ |
4798 | echo "$as_me: failed program was:" >&5 |
4799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
252b5132 | 4800 | |
42ecbf5e DJ |
4801 | continue |
4802 | fi | |
4803 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4804 | cat >conftest.$ac_ext <<_ACEOF | |
4805 | /* confdefs.h. */ | |
4806 | _ACEOF | |
4807 | cat confdefs.h >>conftest.$ac_ext | |
4808 | cat >>conftest.$ac_ext <<_ACEOF | |
4809 | /* end confdefs.h. */ | |
4810 | $ac_declaration | |
4811 | int | |
4812 | main () | |
4813 | { | |
4814 | exit (42); | |
4815 | ; | |
4816 | return 0; | |
4817 | } | |
4818 | _ACEOF | |
4819 | rm -f conftest.$ac_objext | |
4820 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4821 | (eval $ac_compile) 2>conftest.er1 | |
4822 | ac_status=$? | |
4823 | grep -v '^ *+' conftest.er1 >conftest.err | |
4824 | rm -f conftest.er1 | |
4825 | cat conftest.err >&5 | |
4826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4827 | (exit $ac_status); } && | |
b7d4af3a JW |
4828 | { ac_try='test -z "$ac_c_werror_flag" |
4829 | || test ! -s conftest.err' | |
42ecbf5e DJ |
4830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4831 | (eval $ac_try) 2>&5 | |
4832 | ac_status=$? | |
4833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4834 | (exit $ac_status); }; } && | |
4835 | { ac_try='test -s conftest.$ac_objext' | |
4836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4837 | (eval $ac_try) 2>&5 | |
4838 | ac_status=$? | |
4839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4840 | (exit $ac_status); }; }; then | |
4841 | break | |
d15b04bd | 4842 | else |
42ecbf5e DJ |
4843 | echo "$as_me: failed program was:" >&5 |
4844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4845 | ||
252b5132 | 4846 | fi |
42ecbf5e DJ |
4847 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4848 | done | |
d15b04bd | 4849 | rm -f conftest* |
42ecbf5e DJ |
4850 | if test -n "$ac_declaration"; then |
4851 | echo '#ifdef __cplusplus' >>confdefs.h | |
4852 | echo $ac_declaration >>confdefs.h | |
4853 | echo '#endif' >>confdefs.h | |
d15b04bd | 4854 | fi |
252b5132 | 4855 | |
ac48eca1 | 4856 | else |
42ecbf5e DJ |
4857 | echo "$as_me: failed program was:" >&5 |
4858 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4859 | ||
d15b04bd | 4860 | fi |
42ecbf5e DJ |
4861 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4862 | ac_ext=c | |
4863 | ac_cpp='$CPP $CPPFLAGS' | |
4864 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4865 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4866 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
e5a52504 | 4867 | |
d15b04bd L |
4868 | |
4869 | for ac_prog in 'bison -y' byacc | |
4870 | do | |
42ecbf5e | 4871 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
d15b04bd | 4872 | set dummy $ac_prog; ac_word=$2 |
42ecbf5e DJ |
4873 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4874 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4875 | if test "${ac_cv_prog_YACC+set}" = set; then | |
4876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d15b04bd L |
4877 | else |
4878 | if test -n "$YACC"; then | |
4879 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
4880 | else | |
42ecbf5e DJ |
4881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4882 | for as_dir in $PATH | |
4883 | do | |
4884 | IFS=$as_save_IFS | |
4885 | test -z "$as_dir" && as_dir=. | |
4886 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4887 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4888 | ac_cv_prog_YACC="$ac_prog" | |
4889 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4890 | break 2 | |
4891 | fi | |
4892 | done | |
4893 | done | |
4894 | ||
ac48eca1 AO |
4895 | fi |
4896 | fi | |
42ecbf5e | 4897 | YACC=$ac_cv_prog_YACC |
d15b04bd | 4898 | if test -n "$YACC"; then |
42ecbf5e DJ |
4899 | echo "$as_me:$LINENO: result: $YACC" >&5 |
4900 | echo "${ECHO_T}$YACC" >&6 | |
e5a52504 | 4901 | else |
42ecbf5e DJ |
4902 | echo "$as_me:$LINENO: result: no" >&5 |
4903 | echo "${ECHO_T}no" >&6 | |
e5a52504 MM |
4904 | fi |
4905 | ||
42ecbf5e | 4906 | test -n "$YACC" && break |
d15b04bd L |
4907 | done |
4908 | test -n "$YACC" || YACC="yacc" | |
4909 | ||
d15b04bd L |
4910 | for ac_prog in flex lex |
4911 | do | |
42ecbf5e | 4912 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
d15b04bd | 4913 | set dummy $ac_prog; ac_word=$2 |
42ecbf5e DJ |
4914 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4915 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4916 | if test "${ac_cv_prog_LEX+set}" = set; then | |
4917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d15b04bd L |
4918 | else |
4919 | if test -n "$LEX"; then | |
4920 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
4921 | else | |
42ecbf5e DJ |
4922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4923 | for as_dir in $PATH | |
4924 | do | |
4925 | IFS=$as_save_IFS | |
4926 | test -z "$as_dir" && as_dir=. | |
4927 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4928 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4929 | ac_cv_prog_LEX="$ac_prog" | |
4930 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4931 | break 2 | |
4932 | fi | |
4933 | done | |
d15b04bd | 4934 | done |
d15b04bd | 4935 | |
d15b04bd | 4936 | fi |
e5a52504 | 4937 | fi |
42ecbf5e | 4938 | LEX=$ac_cv_prog_LEX |
d15b04bd | 4939 | if test -n "$LEX"; then |
42ecbf5e DJ |
4940 | echo "$as_me:$LINENO: result: $LEX" >&5 |
4941 | echo "${ECHO_T}$LEX" >&6 | |
e5a52504 | 4942 | else |
42ecbf5e DJ |
4943 | echo "$as_me:$LINENO: result: no" >&5 |
4944 | echo "${ECHO_T}no" >&6 | |
e5a52504 | 4945 | fi |
e5a52504 | 4946 | |
42ecbf5e DJ |
4947 | test -n "$LEX" && break |
4948 | done | |
4949 | test -n "$LEX" || LEX=":" | |
4950 | ||
d15b04bd L |
4951 | if test -z "$LEXLIB" |
4952 | then | |
42ecbf5e DJ |
4953 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
4954 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 | |
4955 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | |
4956 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4957 | else | |
4958 | ac_check_lib_save_LIBS=$LIBS | |
4959 | LIBS="-lfl $LIBS" | |
4960 | cat >conftest.$ac_ext <<_ACEOF | |
4961 | /* confdefs.h. */ | |
4962 | _ACEOF | |
4963 | cat confdefs.h >>conftest.$ac_ext | |
4964 | cat >>conftest.$ac_ext <<_ACEOF | |
4965 | /* end confdefs.h. */ | |
4966 | ||
d15b04bd | 4967 | /* Override any gcc2 internal prototype to avoid an error. */ |
42ecbf5e DJ |
4968 | #ifdef __cplusplus |
4969 | extern "C" | |
4970 | #endif | |
d15b04bd | 4971 | /* We use char because int might match the return type of a gcc2 |
42ecbf5e DJ |
4972 | builtin and then its argument prototype would still apply. */ |
4973 | char yywrap (); | |
4974 | int | |
4975 | main () | |
4976 | { | |
4977 | yywrap (); | |
4978 | ; | |
4979 | return 0; | |
4980 | } | |
4981 | _ACEOF | |
4982 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4983 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4984 | (eval $ac_link) 2>conftest.er1 | |
4985 | ac_status=$? | |
4986 | grep -v '^ *+' conftest.er1 >conftest.err | |
4987 | rm -f conftest.er1 | |
4988 | cat conftest.err >&5 | |
4989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4990 | (exit $ac_status); } && | |
b7d4af3a JW |
4991 | { ac_try='test -z "$ac_c_werror_flag" |
4992 | || test ! -s conftest.err' | |
42ecbf5e DJ |
4993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4994 | (eval $ac_try) 2>&5 | |
4995 | ac_status=$? | |
4996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4997 | (exit $ac_status); }; } && | |
4998 | { ac_try='test -s conftest$ac_exeext' | |
4999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5000 | (eval $ac_try) 2>&5 | |
5001 | ac_status=$? | |
5002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5003 | (exit $ac_status); }; }; then | |
5004 | ac_cv_lib_fl_yywrap=yes | |
5005 | else | |
5006 | echo "$as_me: failed program was:" >&5 | |
5007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5008 | ||
5009 | ac_cv_lib_fl_yywrap=no | |
5010 | fi | |
5011 | rm -f conftest.err conftest.$ac_objext \ | |
5012 | conftest$ac_exeext conftest.$ac_ext | |
5013 | LIBS=$ac_check_lib_save_LIBS | |
5014 | fi | |
5015 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 | |
5016 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 | |
5017 | if test $ac_cv_lib_fl_yywrap = yes; then | |
5018 | LEXLIB="-lfl" | |
5019 | else | |
5020 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 | |
5021 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 | |
5022 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | |
5023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5024 | else | |
5025 | ac_check_lib_save_LIBS=$LIBS | |
5026 | LIBS="-ll $LIBS" | |
5027 | cat >conftest.$ac_ext <<_ACEOF | |
5028 | /* confdefs.h. */ | |
5029 | _ACEOF | |
5030 | cat confdefs.h >>conftest.$ac_ext | |
5031 | cat >>conftest.$ac_ext <<_ACEOF | |
5032 | /* end confdefs.h. */ | |
d15b04bd | 5033 | |
42ecbf5e DJ |
5034 | /* Override any gcc2 internal prototype to avoid an error. */ |
5035 | #ifdef __cplusplus | |
5036 | extern "C" | |
5037 | #endif | |
5038 | /* We use char because int might match the return type of a gcc2 | |
5039 | builtin and then its argument prototype would still apply. */ | |
5040 | char yywrap (); | |
5041 | int | |
5042 | main () | |
5043 | { | |
5044 | yywrap (); | |
5045 | ; | |
5046 | return 0; | |
5047 | } | |
5048 | _ACEOF | |
5049 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5050 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5051 | (eval $ac_link) 2>conftest.er1 | |
5052 | ac_status=$? | |
5053 | grep -v '^ *+' conftest.er1 >conftest.err | |
5054 | rm -f conftest.er1 | |
5055 | cat conftest.err >&5 | |
5056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5057 | (exit $ac_status); } && | |
b7d4af3a JW |
5058 | { ac_try='test -z "$ac_c_werror_flag" |
5059 | || test ! -s conftest.err' | |
42ecbf5e DJ |
5060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5061 | (eval $ac_try) 2>&5 | |
5062 | ac_status=$? | |
5063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5064 | (exit $ac_status); }; } && | |
5065 | { ac_try='test -s conftest$ac_exeext' | |
5066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5067 | (eval $ac_try) 2>&5 | |
5068 | ac_status=$? | |
5069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5070 | (exit $ac_status); }; }; then | |
5071 | ac_cv_lib_l_yywrap=yes | |
5072 | else | |
5073 | echo "$as_me: failed program was:" >&5 | |
5074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5075 | ||
5076 | ac_cv_lib_l_yywrap=no | |
5077 | fi | |
5078 | rm -f conftest.err conftest.$ac_objext \ | |
5079 | conftest$ac_exeext conftest.$ac_ext | |
5080 | LIBS=$ac_check_lib_save_LIBS | |
5081 | fi | |
5082 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 | |
5083 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 | |
5084 | if test $ac_cv_lib_l_yywrap = yes; then | |
5085 | LEXLIB="-ll" | |
5086 | fi | |
5087 | ||
5088 | fi | |
5089 | ||
5090 | fi | |
5091 | ||
5092 | if test "x$LEX" != "x:"; then | |
5093 | echo "$as_me:$LINENO: checking lex output file root" >&5 | |
5094 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 | |
5095 | if test "${ac_cv_prog_lex_root+set}" = set; then | |
5096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e5a52504 | 5097 | else |
d15b04bd L |
5098 | # The minimal lex program is just a single line: %%. But some broken lexes |
5099 | # (Solaris, I think it was) want two %% lines, so accommodate them. | |
42ecbf5e DJ |
5100 | cat >conftest.l <<_ACEOF |
5101 | %% | |
5102 | %% | |
5103 | _ACEOF | |
5104 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 | |
5105 | (eval $LEX conftest.l) 2>&5 | |
5106 | ac_status=$? | |
5107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5108 | (exit $ac_status); } | |
d15b04bd L |
5109 | if test -f lex.yy.c; then |
5110 | ac_cv_prog_lex_root=lex.yy | |
5111 | elif test -f lexyy.c; then | |
5112 | ac_cv_prog_lex_root=lexyy | |
e5a52504 | 5113 | else |
42ecbf5e DJ |
5114 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
5115 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | |
5116 | { (exit 1); exit 1; }; } | |
e5a52504 | 5117 | fi |
d15b04bd | 5118 | fi |
42ecbf5e DJ |
5119 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
5120 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 | |
5121 | rm -f conftest.l | |
d15b04bd L |
5122 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
5123 | ||
42ecbf5e DJ |
5124 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
5125 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 | |
5126 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | |
5127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e5a52504 | 5128 | else |
d15b04bd L |
5129 | # POSIX says lex can declare yytext either as a pointer or an array; the |
5130 | # default is implementation-dependent. Figure out which it is, since | |
5131 | # not all implementations provide the %pointer and %array declarations. | |
5132 | ac_cv_prog_lex_yytext_pointer=no | |
5133 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | |
42ecbf5e | 5134 | ac_save_LIBS=$LIBS |
d15b04bd | 5135 | LIBS="$LIBS $LEXLIB" |
42ecbf5e | 5136 | cat >conftest.$ac_ext <<_ACEOF |
d15b04bd | 5137 | `cat $LEX_OUTPUT_ROOT.c` |
42ecbf5e DJ |
5138 | _ACEOF |
5139 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5140 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5141 | (eval $ac_link) 2>conftest.er1 | |
5142 | ac_status=$? | |
5143 | grep -v '^ *+' conftest.er1 >conftest.err | |
5144 | rm -f conftest.er1 | |
5145 | cat conftest.err >&5 | |
5146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5147 | (exit $ac_status); } && | |
b7d4af3a JW |
5148 | { ac_try='test -z "$ac_c_werror_flag" |
5149 | || test ! -s conftest.err' | |
42ecbf5e DJ |
5150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5151 | (eval $ac_try) 2>&5 | |
5152 | ac_status=$? | |
5153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5154 | (exit $ac_status); }; } && | |
5155 | { ac_try='test -s conftest$ac_exeext' | |
5156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5157 | (eval $ac_try) 2>&5 | |
5158 | ac_status=$? | |
5159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5160 | (exit $ac_status); }; }; then | |
d15b04bd L |
5161 | ac_cv_prog_lex_yytext_pointer=yes |
5162 | else | |
42ecbf5e DJ |
5163 | echo "$as_me: failed program was:" >&5 |
5164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5165 | ||
e5a52504 | 5166 | fi |
42ecbf5e DJ |
5167 | rm -f conftest.err conftest.$ac_objext \ |
5168 | conftest$ac_exeext conftest.$ac_ext | |
5169 | LIBS=$ac_save_LIBS | |
d15b04bd | 5170 | rm -f "${LEX_OUTPUT_ROOT}.c" |
e5a52504 | 5171 | |
e5a52504 | 5172 | fi |
42ecbf5e DJ |
5173 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
5174 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 | |
d15b04bd | 5175 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
42ecbf5e DJ |
5176 | |
5177 | cat >>confdefs.h <<\_ACEOF | |
d15b04bd | 5178 | #define YYTEXT_POINTER 1 |
42ecbf5e | 5179 | _ACEOF |
d15b04bd L |
5180 | |
5181 | fi | |
e5a52504 | 5182 | |
42ecbf5e DJ |
5183 | fi |
5184 | if test "$LEX" = :; then | |
5185 | LEX=${am_missing_run}flex | |
5186 | fi | |
e5a52504 | 5187 | |
82d457f6 | 5188 | ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW" |
42ecbf5e DJ |
5189 | if test -n "$ac_tool_prefix"; then |
5190 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5191 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5192 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5193 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5194 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e5a52504 | 5196 | else |
d15b04bd L |
5197 | if test -n "$RANLIB"; then |
5198 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5199 | else | |
42ecbf5e DJ |
5200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5201 | for as_dir in $PATH | |
5202 | do | |
5203 | IFS=$as_save_IFS | |
5204 | test -z "$as_dir" && as_dir=. | |
5205 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5206 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5207 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5208 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5209 | break 2 | |
5210 | fi | |
5211 | done | |
5212 | done | |
5213 | ||
d15b04bd L |
5214 | fi |
5215 | fi | |
42ecbf5e | 5216 | RANLIB=$ac_cv_prog_RANLIB |
d15b04bd | 5217 | if test -n "$RANLIB"; then |
42ecbf5e DJ |
5218 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
5219 | echo "${ECHO_T}$RANLIB" >&6 | |
5220 | else | |
5221 | echo "$as_me:$LINENO: result: no" >&5 | |
5222 | echo "${ECHO_T}no" >&6 | |
5223 | fi | |
5224 | ||
5225 | fi | |
5226 | if test -z "$ac_cv_prog_RANLIB"; then | |
5227 | ac_ct_RANLIB=$RANLIB | |
5228 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5229 | set dummy ranlib; ac_word=$2 | |
5230 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5231 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5232 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5234 | else | |
5235 | if test -n "$ac_ct_RANLIB"; then | |
5236 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5237 | else | |
5238 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5239 | for as_dir in $PATH | |
5240 | do | |
5241 | IFS=$as_save_IFS | |
5242 | test -z "$as_dir" && as_dir=. | |
5243 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5244 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5245 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5246 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5247 | break 2 | |
5248 | fi | |
5249 | done | |
5250 | done | |
5251 | ||
5252 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
5253 | fi | |
5254 | fi | |
5255 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5256 | if test -n "$ac_ct_RANLIB"; then | |
5257 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5258 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
5259 | else | |
5260 | echo "$as_me:$LINENO: result: no" >&5 | |
5261 | echo "${ECHO_T}no" >&6 | |
5262 | fi | |
5263 | ||
5264 | RANLIB=$ac_ct_RANLIB | |
5265 | else | |
5266 | RANLIB="$ac_cv_prog_RANLIB" | |
5267 | fi | |
5268 | ||
5269 | ac_ext=c | |
5270 | ac_cpp='$CPP $CPPFLAGS' | |
5271 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5272 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5273 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5274 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
5275 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
5276 | # On Suns, sometimes $CPP names a directory. | |
5277 | if test -n "$CPP" && test -d "$CPP"; then | |
5278 | CPP= | |
5279 | fi | |
5280 | if test -z "$CPP"; then | |
5281 | if test "${ac_cv_prog_CPP+set}" = set; then | |
5282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5283 | else | |
5284 | # Double quotes because CPP needs to be expanded | |
5285 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5286 | do | |
5287 | ac_preproc_ok=false | |
5288 | for ac_c_preproc_warn_flag in '' yes | |
5289 | do | |
5290 | # Use a header file that comes with gcc, so configuring glibc | |
5291 | # with a fresh cross-compiler works. | |
5292 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5293 | # <limits.h> exists even on freestanding compilers. | |
5294 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5295 | # not just through cpp. "Syntax error" is here to catch this case. | |
5296 | cat >conftest.$ac_ext <<_ACEOF | |
5297 | /* confdefs.h. */ | |
5298 | _ACEOF | |
5299 | cat confdefs.h >>conftest.$ac_ext | |
5300 | cat >>conftest.$ac_ext <<_ACEOF | |
5301 | /* end confdefs.h. */ | |
5302 | #ifdef __STDC__ | |
5303 | # include <limits.h> | |
5304 | #else | |
5305 | # include <assert.h> | |
5306 | #endif | |
5307 | Syntax error | |
5308 | _ACEOF | |
5309 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5310 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5311 | ac_status=$? | |
5312 | grep -v '^ *+' conftest.er1 >conftest.err | |
5313 | rm -f conftest.er1 | |
5314 | cat conftest.err >&5 | |
5315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5316 | (exit $ac_status); } >/dev/null; then | |
5317 | if test -s conftest.err; then | |
5318 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5319 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5320 | else | |
5321 | ac_cpp_err= | |
5322 | fi | |
5323 | else | |
5324 | ac_cpp_err=yes | |
5325 | fi | |
5326 | if test -z "$ac_cpp_err"; then | |
5327 | : | |
5328 | else | |
5329 | echo "$as_me: failed program was:" >&5 | |
5330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5331 | ||
5332 | # Broken: fails on valid input. | |
5333 | continue | |
5334 | fi | |
5335 | rm -f conftest.err conftest.$ac_ext | |
5336 | ||
5337 | # OK, works on sane cases. Now check whether non-existent headers | |
5338 | # can be detected and how. | |
5339 | cat >conftest.$ac_ext <<_ACEOF | |
5340 | /* confdefs.h. */ | |
5341 | _ACEOF | |
5342 | cat confdefs.h >>conftest.$ac_ext | |
5343 | cat >>conftest.$ac_ext <<_ACEOF | |
5344 | /* end confdefs.h. */ | |
5345 | #include <ac_nonexistent.h> | |
5346 | _ACEOF | |
5347 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5348 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5349 | ac_status=$? | |
5350 | grep -v '^ *+' conftest.er1 >conftest.err | |
5351 | rm -f conftest.er1 | |
5352 | cat conftest.err >&5 | |
5353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5354 | (exit $ac_status); } >/dev/null; then | |
5355 | if test -s conftest.err; then | |
5356 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5357 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5358 | else | |
5359 | ac_cpp_err= | |
5360 | fi | |
5361 | else | |
5362 | ac_cpp_err=yes | |
5363 | fi | |
5364 | if test -z "$ac_cpp_err"; then | |
5365 | # Broken: success on invalid input. | |
5366 | continue | |
5367 | else | |
5368 | echo "$as_me: failed program was:" >&5 | |
5369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5370 | ||
5371 | # Passes both tests. | |
5372 | ac_preproc_ok=: | |
5373 | break | |
5374 | fi | |
5375 | rm -f conftest.err conftest.$ac_ext | |
5376 | ||
5377 | done | |
5378 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5379 | rm -f conftest.err conftest.$ac_ext | |
5380 | if $ac_preproc_ok; then | |
5381 | break | |
5382 | fi | |
5383 | ||
5384 | done | |
5385 | ac_cv_prog_CPP=$CPP | |
5386 | ||
5387 | fi | |
5388 | CPP=$ac_cv_prog_CPP | |
5389 | else | |
5390 | ac_cv_prog_CPP=$CPP | |
5391 | fi | |
5392 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
5393 | echo "${ECHO_T}$CPP" >&6 | |
5394 | ac_preproc_ok=false | |
5395 | for ac_c_preproc_warn_flag in '' yes | |
5396 | do | |
5397 | # Use a header file that comes with gcc, so configuring glibc | |
5398 | # with a fresh cross-compiler works. | |
5399 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5400 | # <limits.h> exists even on freestanding compilers. | |
5401 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5402 | # not just through cpp. "Syntax error" is here to catch this case. | |
5403 | cat >conftest.$ac_ext <<_ACEOF | |
5404 | /* confdefs.h. */ | |
5405 | _ACEOF | |
5406 | cat confdefs.h >>conftest.$ac_ext | |
5407 | cat >>conftest.$ac_ext <<_ACEOF | |
5408 | /* end confdefs.h. */ | |
5409 | #ifdef __STDC__ | |
5410 | # include <limits.h> | |
5411 | #else | |
5412 | # include <assert.h> | |
5413 | #endif | |
5414 | Syntax error | |
5415 | _ACEOF | |
5416 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5417 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5418 | ac_status=$? | |
5419 | grep -v '^ *+' conftest.er1 >conftest.err | |
5420 | rm -f conftest.er1 | |
5421 | cat conftest.err >&5 | |
5422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5423 | (exit $ac_status); } >/dev/null; then | |
5424 | if test -s conftest.err; then | |
5425 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5426 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5427 | else | |
5428 | ac_cpp_err= | |
5429 | fi | |
5430 | else | |
5431 | ac_cpp_err=yes | |
5432 | fi | |
5433 | if test -z "$ac_cpp_err"; then | |
5434 | : | |
5435 | else | |
5436 | echo "$as_me: failed program was:" >&5 | |
5437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5438 | ||
5439 | # Broken: fails on valid input. | |
5440 | continue | |
5441 | fi | |
5442 | rm -f conftest.err conftest.$ac_ext | |
5443 | ||
5444 | # OK, works on sane cases. Now check whether non-existent headers | |
5445 | # can be detected and how. | |
5446 | cat >conftest.$ac_ext <<_ACEOF | |
5447 | /* confdefs.h. */ | |
5448 | _ACEOF | |
5449 | cat confdefs.h >>conftest.$ac_ext | |
5450 | cat >>conftest.$ac_ext <<_ACEOF | |
5451 | /* end confdefs.h. */ | |
5452 | #include <ac_nonexistent.h> | |
5453 | _ACEOF | |
5454 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5455 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5456 | ac_status=$? | |
5457 | grep -v '^ *+' conftest.er1 >conftest.err | |
5458 | rm -f conftest.er1 | |
5459 | cat conftest.err >&5 | |
5460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5461 | (exit $ac_status); } >/dev/null; then | |
5462 | if test -s conftest.err; then | |
5463 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5464 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5465 | else | |
5466 | ac_cpp_err= | |
5467 | fi | |
5468 | else | |
5469 | ac_cpp_err=yes | |
5470 | fi | |
5471 | if test -z "$ac_cpp_err"; then | |
5472 | # Broken: success on invalid input. | |
5473 | continue | |
5474 | else | |
5475 | echo "$as_me: failed program was:" >&5 | |
5476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5477 | ||
5478 | # Passes both tests. | |
5479 | ac_preproc_ok=: | |
5480 | break | |
5481 | fi | |
5482 | rm -f conftest.err conftest.$ac_ext | |
5483 | ||
5484 | done | |
5485 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5486 | rm -f conftest.err conftest.$ac_ext | |
5487 | if $ac_preproc_ok; then | |
5488 | : | |
5489 | else | |
5490 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
5491 | See \`config.log' for more details." >&5 | |
5492 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
5493 | See \`config.log' for more details." >&2;} | |
5494 | { (exit 1); exit 1; }; } | |
5495 | fi | |
5496 | ||
5497 | ac_ext=c | |
5498 | ac_cpp='$CPP $CPPFLAGS' | |
5499 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5500 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5501 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5502 | ||
5503 | ||
5504 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
5505 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
5506 | if test "${ac_cv_prog_egrep+set}" = set; then | |
5507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d15b04bd | 5508 | else |
42ecbf5e DJ |
5509 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
5510 | then ac_cv_prog_egrep='grep -E' | |
5511 | else ac_cv_prog_egrep='egrep' | |
5512 | fi | |
e5a52504 | 5513 | fi |
42ecbf5e DJ |
5514 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
5515 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
5516 | EGREP=$ac_cv_prog_egrep | |
5517 | ||
ac48eca1 | 5518 | |
42ecbf5e DJ |
5519 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5520 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
5521 | if test "${ac_cv_header_stdc+set}" = set; then | |
5522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5523 | else |
42ecbf5e DJ |
5524 | cat >conftest.$ac_ext <<_ACEOF |
5525 | /* confdefs.h. */ | |
5526 | _ACEOF | |
5527 | cat confdefs.h >>conftest.$ac_ext | |
5528 | cat >>conftest.$ac_ext <<_ACEOF | |
5529 | /* end confdefs.h. */ | |
252b5132 RH |
5530 | #include <stdlib.h> |
5531 | #include <stdarg.h> | |
5532 | #include <string.h> | |
5533 | #include <float.h> | |
42ecbf5e DJ |
5534 | |
5535 | int | |
5536 | main () | |
5537 | { | |
5538 | ||
5539 | ; | |
5540 | return 0; | |
5541 | } | |
5542 | _ACEOF | |
5543 | rm -f conftest.$ac_objext | |
5544 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5545 | (eval $ac_compile) 2>conftest.er1 | |
5546 | ac_status=$? | |
5547 | grep -v '^ *+' conftest.er1 >conftest.err | |
5548 | rm -f conftest.er1 | |
5549 | cat conftest.err >&5 | |
5550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5551 | (exit $ac_status); } && | |
b7d4af3a JW |
5552 | { ac_try='test -z "$ac_c_werror_flag" |
5553 | || test ! -s conftest.err' | |
42ecbf5e DJ |
5554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5555 | (eval $ac_try) 2>&5 | |
5556 | ac_status=$? | |
5557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5558 | (exit $ac_status); }; } && | |
5559 | { ac_try='test -s conftest.$ac_objext' | |
5560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5561 | (eval $ac_try) 2>&5 | |
5562 | ac_status=$? | |
5563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5564 | (exit $ac_status); }; }; then | |
252b5132 RH |
5565 | ac_cv_header_stdc=yes |
5566 | else | |
42ecbf5e DJ |
5567 | echo "$as_me: failed program was:" >&5 |
5568 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5569 | ||
5570 | ac_cv_header_stdc=no | |
252b5132 | 5571 | fi |
42ecbf5e | 5572 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
5573 | |
5574 | if test $ac_cv_header_stdc = yes; then | |
5575 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
42ecbf5e DJ |
5576 | cat >conftest.$ac_ext <<_ACEOF |
5577 | /* confdefs.h. */ | |
5578 | _ACEOF | |
5579 | cat confdefs.h >>conftest.$ac_ext | |
5580 | cat >>conftest.$ac_ext <<_ACEOF | |
5581 | /* end confdefs.h. */ | |
252b5132 | 5582 | #include <string.h> |
42ecbf5e DJ |
5583 | |
5584 | _ACEOF | |
252b5132 | 5585 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
42ecbf5e | 5586 | $EGREP "memchr" >/dev/null 2>&1; then |
252b5132 RH |
5587 | : |
5588 | else | |
252b5132 RH |
5589 | ac_cv_header_stdc=no |
5590 | fi | |
5591 | rm -f conftest* | |
5592 | ||
5593 | fi | |
5594 | ||
5595 | if test $ac_cv_header_stdc = yes; then | |
5596 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
42ecbf5e DJ |
5597 | cat >conftest.$ac_ext <<_ACEOF |
5598 | /* confdefs.h. */ | |
5599 | _ACEOF | |
5600 | cat confdefs.h >>conftest.$ac_ext | |
5601 | cat >>conftest.$ac_ext <<_ACEOF | |
5602 | /* end confdefs.h. */ | |
252b5132 | 5603 | #include <stdlib.h> |
42ecbf5e DJ |
5604 | |
5605 | _ACEOF | |
252b5132 | 5606 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
42ecbf5e | 5607 | $EGREP "free" >/dev/null 2>&1; then |
252b5132 RH |
5608 | : |
5609 | else | |
252b5132 RH |
5610 | ac_cv_header_stdc=no |
5611 | fi | |
5612 | rm -f conftest* | |
5613 | ||
5614 | fi | |
5615 | ||
5616 | if test $ac_cv_header_stdc = yes; then | |
5617 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
42ecbf5e | 5618 | if test "$cross_compiling" = yes; then |
252b5132 RH |
5619 | : |
5620 | else | |
42ecbf5e DJ |
5621 | cat >conftest.$ac_ext <<_ACEOF |
5622 | /* confdefs.h. */ | |
5623 | _ACEOF | |
5624 | cat confdefs.h >>conftest.$ac_ext | |
5625 | cat >>conftest.$ac_ext <<_ACEOF | |
5626 | /* end confdefs.h. */ | |
252b5132 | 5627 | #include <ctype.h> |
42ecbf5e DJ |
5628 | #if ((' ' & 0x0FF) == 0x020) |
5629 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5630 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5631 | #else | |
5632 | # define ISLOWER(c) \ | |
5633 | (('a' <= (c) && (c) <= 'i') \ | |
5634 | || ('j' <= (c) && (c) <= 'r') \ | |
5635 | || ('s' <= (c) && (c) <= 'z')) | |
5636 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5637 | #endif | |
d15b04bd | 5638 | |
42ecbf5e DJ |
5639 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
5640 | int | |
5641 | main () | |
5642 | { | |
5643 | int i; | |
5644 | for (i = 0; i < 256; i++) | |
5645 | if (XOR (islower (i), ISLOWER (i)) | |
5646 | || toupper (i) != TOUPPER (i)) | |
5647 | exit(2); | |
5648 | exit (0); | |
5649 | } | |
5650 | _ACEOF | |
5651 | rm -f conftest$ac_exeext | |
5652 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5653 | (eval $ac_link) 2>&5 | |
5654 | ac_status=$? | |
5655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5656 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5658 | (eval $ac_try) 2>&5 | |
5659 | ac_status=$? | |
5660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5661 | (exit $ac_status); }; }; then | |
252b5132 RH |
5662 | : |
5663 | else | |
42ecbf5e DJ |
5664 | echo "$as_me: program exited with status $ac_status" >&5 |
5665 | echo "$as_me: failed program was:" >&5 | |
5666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5667 | ||
5668 | ( exit $ac_status ) | |
5669 | ac_cv_header_stdc=no | |
252b5132 | 5670 | fi |
42ecbf5e | 5671 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 5672 | fi |
252b5132 RH |
5673 | fi |
5674 | fi | |
42ecbf5e DJ |
5675 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
5676 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
d15b04bd | 5677 | if test $ac_cv_header_stdc = yes; then |
42ecbf5e DJ |
5678 | |
5679 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 5680 | #define STDC_HEADERS 1 |
42ecbf5e | 5681 | _ACEOF |
252b5132 RH |
5682 | |
5683 | fi | |
5684 | ||
42ecbf5e DJ |
5685 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5686 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
5687 | if test "${ac_cv_c_const+set}" = set; then | |
5688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5689 | else | |
5690 | cat >conftest.$ac_ext <<_ACEOF | |
5691 | /* confdefs.h. */ | |
5692 | _ACEOF | |
5693 | cat confdefs.h >>conftest.$ac_ext | |
5694 | cat >>conftest.$ac_ext <<_ACEOF | |
5695 | /* end confdefs.h. */ | |
d15b04bd | 5696 | |
42ecbf5e DJ |
5697 | int |
5698 | main () | |
5699 | { | |
5700 | /* FIXME: Include the comments suggested by Paul. */ | |
5701 | #ifndef __cplusplus | |
5702 | /* Ultrix mips cc rejects this. */ | |
5703 | typedef int charset[2]; | |
5704 | const charset x; | |
5705 | /* SunOS 4.1.1 cc rejects this. */ | |
5706 | char const *const *ccp; | |
5707 | char **p; | |
5708 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5709 | struct point {int x, y;}; | |
5710 | static struct point const zero = {0,0}; | |
5711 | /* AIX XL C 1.02.0.0 rejects this. | |
5712 | It does not let you subtract one const X* pointer from another in | |
5713 | an arm of an if-expression whose if-part is not a constant | |
5714 | expression */ | |
5715 | const char *g = "string"; | |
5716 | ccp = &g + (g ? g-g : 0); | |
5717 | /* HPUX 7.0 cc rejects these. */ | |
5718 | ++ccp; | |
5719 | p = (char**) ccp; | |
5720 | ccp = (char const *const *) p; | |
5721 | { /* SCO 3.2v4 cc rejects this. */ | |
5722 | char *t; | |
5723 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5724 | ||
5725 | *t++ = 0; | |
5726 | } | |
5727 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5728 | int x[] = {25, 17}; | |
5729 | const int *foo = &x[0]; | |
5730 | ++foo; | |
5731 | } | |
5732 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5733 | typedef const int *iptr; | |
5734 | iptr p = 0; | |
5735 | ++p; | |
5736 | } | |
5737 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5738 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5739 | struct s { int j; const int *ap[3]; }; | |
5740 | struct s *b; b->j = 5; | |
5741 | } | |
5742 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5743 | const int foo = 10; | |
5744 | } | |
5745 | #endif | |
5746 | ||
5747 | ; | |
5748 | return 0; | |
5749 | } | |
5750 | _ACEOF | |
5751 | rm -f conftest.$ac_objext | |
5752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5753 | (eval $ac_compile) 2>conftest.er1 | |
5754 | ac_status=$? | |
5755 | grep -v '^ *+' conftest.er1 >conftest.err | |
5756 | rm -f conftest.er1 | |
5757 | cat conftest.err >&5 | |
5758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5759 | (exit $ac_status); } && | |
b7d4af3a JW |
5760 | { ac_try='test -z "$ac_c_werror_flag" |
5761 | || test ! -s conftest.err' | |
42ecbf5e DJ |
5762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5763 | (eval $ac_try) 2>&5 | |
5764 | ac_status=$? | |
5765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5766 | (exit $ac_status); }; } && | |
5767 | { ac_try='test -s conftest.$ac_objext' | |
5768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5769 | (eval $ac_try) 2>&5 | |
5770 | ac_status=$? | |
5771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5772 | (exit $ac_status); }; }; then | |
252b5132 RH |
5773 | ac_cv_c_const=yes |
5774 | else | |
42ecbf5e DJ |
5775 | echo "$as_me: failed program was:" >&5 |
5776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5777 | ||
5778 | ac_cv_c_const=no | |
252b5132 | 5779 | fi |
42ecbf5e | 5780 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 5781 | fi |
42ecbf5e DJ |
5782 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5783 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
d15b04bd | 5784 | if test $ac_cv_c_const = no; then |
42ecbf5e DJ |
5785 | |
5786 | cat >>confdefs.h <<\_ACEOF | |
5787 | #define const | |
5788 | _ACEOF | |
252b5132 RH |
5789 | |
5790 | fi | |
5791 | ||
42ecbf5e DJ |
5792 | echo "$as_me:$LINENO: checking for inline" >&5 |
5793 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
5794 | if test "${ac_cv_c_inline+set}" = set; then | |
5795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
5796 | else |
5797 | ac_cv_c_inline=no | |
5798 | for ac_kw in inline __inline__ __inline; do | |
42ecbf5e DJ |
5799 | cat >conftest.$ac_ext <<_ACEOF |
5800 | /* confdefs.h. */ | |
5801 | _ACEOF | |
5802 | cat confdefs.h >>conftest.$ac_ext | |
5803 | cat >>conftest.$ac_ext <<_ACEOF | |
5804 | /* end confdefs.h. */ | |
5805 | #ifndef __cplusplus | |
5806 | typedef int foo_t; | |
5807 | static $ac_kw foo_t static_foo () {return 0; } | |
5808 | $ac_kw foo_t foo () {return 0; } | |
5809 | #endif | |
252b5132 | 5810 | |
42ecbf5e DJ |
5811 | _ACEOF |
5812 | rm -f conftest.$ac_objext | |
5813 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5814 | (eval $ac_compile) 2>conftest.er1 | |
5815 | ac_status=$? | |
5816 | grep -v '^ *+' conftest.er1 >conftest.err | |
5817 | rm -f conftest.er1 | |
5818 | cat conftest.err >&5 | |
5819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5820 | (exit $ac_status); } && | |
b7d4af3a JW |
5821 | { ac_try='test -z "$ac_c_werror_flag" |
5822 | || test ! -s conftest.err' | |
42ecbf5e DJ |
5823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5824 | (eval $ac_try) 2>&5 | |
5825 | ac_status=$? | |
5826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5827 | (exit $ac_status); }; } && | |
5828 | { ac_try='test -s conftest.$ac_objext' | |
5829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5830 | (eval $ac_try) 2>&5 | |
5831 | ac_status=$? | |
5832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5833 | (exit $ac_status); }; }; then | |
252b5132 RH |
5834 | ac_cv_c_inline=$ac_kw; break |
5835 | else | |
42ecbf5e DJ |
5836 | echo "$as_me: failed program was:" >&5 |
5837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5838 | ||
252b5132 | 5839 | fi |
42ecbf5e | 5840 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
5841 | done |
5842 | ||
5843 | fi | |
42ecbf5e DJ |
5844 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5845 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
252b5132 | 5846 | |
42ecbf5e DJ |
5847 | |
5848 | case $ac_cv_c_inline in | |
252b5132 | 5849 | inline | yes) ;; |
42ecbf5e DJ |
5850 | *) |
5851 | case $ac_cv_c_inline in | |
5852 | no) ac_val=;; | |
5853 | *) ac_val=$ac_cv_c_inline;; | |
5854 | esac | |
5855 | cat >>confdefs.h <<_ACEOF | |
5856 | #ifndef __cplusplus | |
5857 | #define inline $ac_val | |
5858 | #endif | |
5859 | _ACEOF | |
5860 | ;; | |
252b5132 RH |
5861 | esac |
5862 | ||
42ecbf5e DJ |
5863 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
5864 | ||
5865 | ||
5866 | ||
5867 | ||
5868 | ||
5869 | ||
5870 | ||
5871 | ||
5872 | ||
5873 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5874 | inttypes.h stdint.h unistd.h | |
5875 | do | |
5876 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5877 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5878 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5879 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5881 | else | |
5882 | cat >conftest.$ac_ext <<_ACEOF | |
5883 | /* confdefs.h. */ | |
5884 | _ACEOF | |
5885 | cat confdefs.h >>conftest.$ac_ext | |
5886 | cat >>conftest.$ac_ext <<_ACEOF | |
5887 | /* end confdefs.h. */ | |
5888 | $ac_includes_default | |
5889 | ||
5890 | #include <$ac_header> | |
5891 | _ACEOF | |
5892 | rm -f conftest.$ac_objext | |
5893 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5894 | (eval $ac_compile) 2>conftest.er1 | |
5895 | ac_status=$? | |
5896 | grep -v '^ *+' conftest.er1 >conftest.err | |
5897 | rm -f conftest.er1 | |
5898 | cat conftest.err >&5 | |
5899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5900 | (exit $ac_status); } && | |
b7d4af3a JW |
5901 | { ac_try='test -z "$ac_c_werror_flag" |
5902 | || test ! -s conftest.err' | |
42ecbf5e DJ |
5903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5904 | (eval $ac_try) 2>&5 | |
5905 | ac_status=$? | |
5906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5907 | (exit $ac_status); }; } && | |
5908 | { ac_try='test -s conftest.$ac_objext' | |
5909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5910 | (eval $ac_try) 2>&5 | |
5911 | ac_status=$? | |
5912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5913 | (exit $ac_status); }; }; then | |
5914 | eval "$as_ac_Header=yes" | |
5915 | else | |
5916 | echo "$as_me: failed program was:" >&5 | |
5917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5918 | ||
5919 | eval "$as_ac_Header=no" | |
5920 | fi | |
5921 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5922 | fi | |
5923 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5924 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5925 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5926 | cat >>confdefs.h <<_ACEOF | |
5927 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5928 | _ACEOF | |
5929 | ||
5930 | fi | |
5931 | ||
5932 | done | |
5933 | ||
5934 | ||
5935 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
5936 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
5937 | if test "${ac_cv_type_off_t+set}" = set; then | |
5938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5939 | else |
42ecbf5e DJ |
5940 | cat >conftest.$ac_ext <<_ACEOF |
5941 | /* confdefs.h. */ | |
5942 | _ACEOF | |
5943 | cat confdefs.h >>conftest.$ac_ext | |
5944 | cat >>conftest.$ac_ext <<_ACEOF | |
5945 | /* end confdefs.h. */ | |
5946 | $ac_includes_default | |
5947 | int | |
5948 | main () | |
5949 | { | |
5950 | if ((off_t *) 0) | |
5951 | return 0; | |
5952 | if (sizeof (off_t)) | |
5953 | return 0; | |
5954 | ; | |
5955 | return 0; | |
5956 | } | |
5957 | _ACEOF | |
5958 | rm -f conftest.$ac_objext | |
5959 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5960 | (eval $ac_compile) 2>conftest.er1 | |
5961 | ac_status=$? | |
5962 | grep -v '^ *+' conftest.er1 >conftest.err | |
5963 | rm -f conftest.er1 | |
5964 | cat conftest.err >&5 | |
5965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5966 | (exit $ac_status); } && | |
b7d4af3a JW |
5967 | { ac_try='test -z "$ac_c_werror_flag" |
5968 | || test ! -s conftest.err' | |
42ecbf5e DJ |
5969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5970 | (eval $ac_try) 2>&5 | |
5971 | ac_status=$? | |
5972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5973 | (exit $ac_status); }; } && | |
5974 | { ac_try='test -s conftest.$ac_objext' | |
5975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5976 | (eval $ac_try) 2>&5 | |
5977 | ac_status=$? | |
5978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5979 | (exit $ac_status); }; }; then | |
252b5132 RH |
5980 | ac_cv_type_off_t=yes |
5981 | else | |
42ecbf5e DJ |
5982 | echo "$as_me: failed program was:" >&5 |
5983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
e5a52504 | 5984 | |
42ecbf5e DJ |
5985 | ac_cv_type_off_t=no |
5986 | fi | |
5987 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
d15b04bd | 5988 | fi |
42ecbf5e DJ |
5989 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
5990 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
5991 | if test $ac_cv_type_off_t = yes; then | |
5992 | : | |
5993 | else | |
5994 | ||
5995 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 5996 | #define off_t long |
42ecbf5e | 5997 | _ACEOF |
252b5132 RH |
5998 | |
5999 | fi | |
6000 | ||
42ecbf5e DJ |
6001 | echo "$as_me:$LINENO: checking for size_t" >&5 |
6002 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
6003 | if test "${ac_cv_type_size_t+set}" = set; then | |
6004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6005 | else |
42ecbf5e DJ |
6006 | cat >conftest.$ac_ext <<_ACEOF |
6007 | /* confdefs.h. */ | |
6008 | _ACEOF | |
6009 | cat confdefs.h >>conftest.$ac_ext | |
6010 | cat >>conftest.$ac_ext <<_ACEOF | |
6011 | /* end confdefs.h. */ | |
6012 | $ac_includes_default | |
6013 | int | |
6014 | main () | |
6015 | { | |
6016 | if ((size_t *) 0) | |
6017 | return 0; | |
6018 | if (sizeof (size_t)) | |
6019 | return 0; | |
6020 | ; | |
6021 | return 0; | |
6022 | } | |
6023 | _ACEOF | |
6024 | rm -f conftest.$ac_objext | |
6025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6026 | (eval $ac_compile) 2>conftest.er1 | |
6027 | ac_status=$? | |
6028 | grep -v '^ *+' conftest.er1 >conftest.err | |
6029 | rm -f conftest.er1 | |
6030 | cat conftest.err >&5 | |
6031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6032 | (exit $ac_status); } && | |
b7d4af3a JW |
6033 | { ac_try='test -z "$ac_c_werror_flag" |
6034 | || test ! -s conftest.err' | |
42ecbf5e DJ |
6035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6036 | (eval $ac_try) 2>&5 | |
6037 | ac_status=$? | |
6038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6039 | (exit $ac_status); }; } && | |
6040 | { ac_try='test -s conftest.$ac_objext' | |
6041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6042 | (eval $ac_try) 2>&5 | |
6043 | ac_status=$? | |
6044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6045 | (exit $ac_status); }; }; then | |
252b5132 RH |
6046 | ac_cv_type_size_t=yes |
6047 | else | |
42ecbf5e DJ |
6048 | echo "$as_me: failed program was:" >&5 |
6049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
e5a52504 | 6050 | |
42ecbf5e | 6051 | ac_cv_type_size_t=no |
d15b04bd | 6052 | fi |
42ecbf5e DJ |
6053 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6054 | fi | |
6055 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
6056 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
6057 | if test $ac_cv_type_size_t = yes; then | |
6058 | : | |
6059 | else | |
6060 | ||
6061 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 6062 | #define size_t unsigned |
42ecbf5e | 6063 | _ACEOF |
252b5132 RH |
6064 | |
6065 | fi | |
6066 | ||
6067 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
6068 | # for constant arguments. Useless! | |
42ecbf5e DJ |
6069 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
6070 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
6071 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
6072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6073 | else | |
6074 | cat >conftest.$ac_ext <<_ACEOF | |
6075 | /* confdefs.h. */ | |
6076 | _ACEOF | |
6077 | cat confdefs.h >>conftest.$ac_ext | |
6078 | cat >>conftest.$ac_ext <<_ACEOF | |
6079 | /* end confdefs.h. */ | |
252b5132 | 6080 | #include <alloca.h> |
42ecbf5e DJ |
6081 | int |
6082 | main () | |
6083 | { | |
6084 | char *p = (char *) alloca (2 * sizeof (int)); | |
6085 | ; | |
6086 | return 0; | |
6087 | } | |
6088 | _ACEOF | |
6089 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6090 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6091 | (eval $ac_link) 2>conftest.er1 | |
6092 | ac_status=$? | |
6093 | grep -v '^ *+' conftest.er1 >conftest.err | |
6094 | rm -f conftest.er1 | |
6095 | cat conftest.err >&5 | |
6096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6097 | (exit $ac_status); } && | |
b7d4af3a JW |
6098 | { ac_try='test -z "$ac_c_werror_flag" |
6099 | || test ! -s conftest.err' | |
42ecbf5e DJ |
6100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6101 | (eval $ac_try) 2>&5 | |
6102 | ac_status=$? | |
6103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6104 | (exit $ac_status); }; } && | |
6105 | { ac_try='test -s conftest$ac_exeext' | |
6106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6107 | (eval $ac_try) 2>&5 | |
6108 | ac_status=$? | |
6109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6110 | (exit $ac_status); }; }; then | |
6111 | ac_cv_working_alloca_h=yes | |
6112 | else | |
6113 | echo "$as_me: failed program was:" >&5 | |
6114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6115 | ||
6116 | ac_cv_working_alloca_h=no | |
6117 | fi | |
6118 | rm -f conftest.err conftest.$ac_objext \ | |
6119 | conftest$ac_exeext conftest.$ac_ext | |
6120 | fi | |
6121 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
6122 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
6123 | if test $ac_cv_working_alloca_h = yes; then | |
6124 | ||
6125 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 6126 | #define HAVE_ALLOCA_H 1 |
42ecbf5e | 6127 | _ACEOF |
252b5132 RH |
6128 | |
6129 | fi | |
6130 | ||
42ecbf5e DJ |
6131 | echo "$as_me:$LINENO: checking for alloca" >&5 |
6132 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
6133 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
6134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6135 | else |
42ecbf5e DJ |
6136 | cat >conftest.$ac_ext <<_ACEOF |
6137 | /* confdefs.h. */ | |
6138 | _ACEOF | |
6139 | cat confdefs.h >>conftest.$ac_ext | |
6140 | cat >>conftest.$ac_ext <<_ACEOF | |
6141 | /* end confdefs.h. */ | |
252b5132 RH |
6142 | #ifdef __GNUC__ |
6143 | # define alloca __builtin_alloca | |
6144 | #else | |
6145 | # ifdef _MSC_VER | |
6146 | # include <malloc.h> | |
6147 | # define alloca _alloca | |
6148 | # else | |
6149 | # if HAVE_ALLOCA_H | |
6150 | # include <alloca.h> | |
6151 | # else | |
6152 | # ifdef _AIX | |
6153 | #pragma alloca | |
6154 | # else | |
6155 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6156 | char *alloca (); | |
6157 | # endif | |
6158 | # endif | |
6159 | # endif | |
6160 | # endif | |
6161 | #endif | |
6162 | ||
42ecbf5e DJ |
6163 | int |
6164 | main () | |
6165 | { | |
6166 | char *p = (char *) alloca (1); | |
6167 | ; | |
6168 | return 0; | |
6169 | } | |
6170 | _ACEOF | |
6171 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6172 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6173 | (eval $ac_link) 2>conftest.er1 | |
6174 | ac_status=$? | |
6175 | grep -v '^ *+' conftest.er1 >conftest.err | |
6176 | rm -f conftest.er1 | |
6177 | cat conftest.err >&5 | |
6178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6179 | (exit $ac_status); } && | |
b7d4af3a JW |
6180 | { ac_try='test -z "$ac_c_werror_flag" |
6181 | || test ! -s conftest.err' | |
42ecbf5e DJ |
6182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6183 | (eval $ac_try) 2>&5 | |
6184 | ac_status=$? | |
6185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6186 | (exit $ac_status); }; } && | |
6187 | { ac_try='test -s conftest$ac_exeext' | |
6188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6189 | (eval $ac_try) 2>&5 | |
6190 | ac_status=$? | |
6191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6192 | (exit $ac_status); }; }; then | |
252b5132 RH |
6193 | ac_cv_func_alloca_works=yes |
6194 | else | |
42ecbf5e DJ |
6195 | echo "$as_me: failed program was:" >&5 |
6196 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6197 | ||
6198 | ac_cv_func_alloca_works=no | |
252b5132 | 6199 | fi |
42ecbf5e DJ |
6200 | rm -f conftest.err conftest.$ac_objext \ |
6201 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 6202 | fi |
42ecbf5e DJ |
6203 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6204 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
252b5132 | 6205 | |
252b5132 | 6206 | if test $ac_cv_func_alloca_works = yes; then |
e5a52504 | 6207 | |
42ecbf5e DJ |
6208 | cat >>confdefs.h <<\_ACEOF |
6209 | #define HAVE_ALLOCA 1 | |
6210 | _ACEOF | |
e5a52504 | 6211 | |
42ecbf5e | 6212 | else |
d15b04bd | 6213 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
42ecbf5e DJ |
6214 | # that cause trouble. Some versions do not even contain alloca or |
6215 | # contain a buggy version. If you still want to use their alloca, | |
6216 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6217 | ||
6218 | ALLOCA=alloca.$ac_objext | |
6219 | ||
6220 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 6221 | #define C_ALLOCA 1 |
42ecbf5e | 6222 | _ACEOF |
252b5132 RH |
6223 | |
6224 | ||
42ecbf5e DJ |
6225 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6226 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
6227 | if test "${ac_cv_os_cray+set}" = set; then | |
6228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6229 | else |
42ecbf5e DJ |
6230 | cat >conftest.$ac_ext <<_ACEOF |
6231 | /* confdefs.h. */ | |
6232 | _ACEOF | |
6233 | cat confdefs.h >>conftest.$ac_ext | |
6234 | cat >>conftest.$ac_ext <<_ACEOF | |
6235 | /* end confdefs.h. */ | |
252b5132 RH |
6236 | #if defined(CRAY) && ! defined(CRAY2) |
6237 | webecray | |
6238 | #else | |
6239 | wenotbecray | |
6240 | #endif | |
6241 | ||
42ecbf5e | 6242 | _ACEOF |
252b5132 | 6243 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
42ecbf5e | 6244 | $EGREP "webecray" >/dev/null 2>&1; then |
252b5132 RH |
6245 | ac_cv_os_cray=yes |
6246 | else | |
252b5132 RH |
6247 | ac_cv_os_cray=no |
6248 | fi | |
6249 | rm -f conftest* | |
6250 | ||
6251 | fi | |
42ecbf5e DJ |
6252 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6253 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
d15b04bd | 6254 | if test $ac_cv_os_cray = yes; then |
42ecbf5e DJ |
6255 | for ac_func in _getb67 GETB67 getb67; do |
6256 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6257 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6258 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6259 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6261 | else | |
6262 | cat >conftest.$ac_ext <<_ACEOF | |
6263 | /* confdefs.h. */ | |
6264 | _ACEOF | |
6265 | cat confdefs.h >>conftest.$ac_ext | |
6266 | cat >>conftest.$ac_ext <<_ACEOF | |
6267 | /* end confdefs.h. */ | |
6268 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6269 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6270 | #define $ac_func innocuous_$ac_func | |
6271 | ||
252b5132 | 6272 | /* System header to define __stub macros and hopefully few prototypes, |
42ecbf5e DJ |
6273 | which can conflict with char $ac_func (); below. |
6274 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6275 | <limits.h> exists even on freestanding compilers. */ | |
6276 | ||
6277 | #ifdef __STDC__ | |
6278 | # include <limits.h> | |
6279 | #else | |
6280 | # include <assert.h> | |
6281 | #endif | |
d15b04bd | 6282 | |
42ecbf5e | 6283 | #undef $ac_func |
d15b04bd | 6284 | |
42ecbf5e DJ |
6285 | /* Override any gcc2 internal prototype to avoid an error. */ |
6286 | #ifdef __cplusplus | |
6287 | extern "C" | |
6288 | { | |
6289 | #endif | |
6290 | /* We use char because int might match the return type of a gcc2 | |
6291 | builtin and then its argument prototype would still apply. */ | |
6292 | char $ac_func (); | |
252b5132 RH |
6293 | /* The GNU C library defines this for functions which it implements |
6294 | to always fail with ENOSYS. Some functions are actually named | |
6295 | something starting with __ and the normal name is an alias. */ | |
6296 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6297 | choke me | |
6298 | #else | |
42ecbf5e DJ |
6299 | char (*f) () = $ac_func; |
6300 | #endif | |
6301 | #ifdef __cplusplus | |
6302 | } | |
252b5132 RH |
6303 | #endif |
6304 | ||
42ecbf5e DJ |
6305 | int |
6306 | main () | |
6307 | { | |
6308 | return f != $ac_func; | |
6309 | ; | |
6310 | return 0; | |
6311 | } | |
6312 | _ACEOF | |
6313 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6314 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6315 | (eval $ac_link) 2>conftest.er1 | |
6316 | ac_status=$? | |
6317 | grep -v '^ *+' conftest.er1 >conftest.err | |
6318 | rm -f conftest.er1 | |
6319 | cat conftest.err >&5 | |
6320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6321 | (exit $ac_status); } && | |
b7d4af3a JW |
6322 | { ac_try='test -z "$ac_c_werror_flag" |
6323 | || test ! -s conftest.err' | |
42ecbf5e DJ |
6324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6325 | (eval $ac_try) 2>&5 | |
6326 | ac_status=$? | |
6327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6328 | (exit $ac_status); }; } && | |
6329 | { ac_try='test -s conftest$ac_exeext' | |
6330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6331 | (eval $ac_try) 2>&5 | |
6332 | ac_status=$? | |
6333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6334 | (exit $ac_status); }; }; then | |
6335 | eval "$as_ac_var=yes" | |
6336 | else | |
6337 | echo "$as_me: failed program was:" >&5 | |
6338 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6339 | ||
6340 | eval "$as_ac_var=no" | |
6341 | fi | |
6342 | rm -f conftest.err conftest.$ac_objext \ | |
6343 | conftest$ac_exeext conftest.$ac_ext | |
6344 | fi | |
6345 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6346 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6347 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6348 | ||
6349 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 6350 | #define CRAY_STACKSEG_END $ac_func |
42ecbf5e | 6351 | _ACEOF |
252b5132 | 6352 | |
42ecbf5e | 6353 | break |
252b5132 RH |
6354 | fi |
6355 | ||
42ecbf5e | 6356 | done |
252b5132 RH |
6357 | fi |
6358 | ||
42ecbf5e DJ |
6359 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6360 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
6361 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
6362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
6363 | else |
6364 | if test "$cross_compiling" = yes; then | |
6365 | ac_cv_c_stack_direction=0 | |
6366 | else | |
42ecbf5e DJ |
6367 | cat >conftest.$ac_ext <<_ACEOF |
6368 | /* confdefs.h. */ | |
6369 | _ACEOF | |
6370 | cat confdefs.h >>conftest.$ac_ext | |
6371 | cat >>conftest.$ac_ext <<_ACEOF | |
6372 | /* end confdefs.h. */ | |
6373 | int | |
252b5132 RH |
6374 | find_stack_direction () |
6375 | { | |
6376 | static char *addr = 0; | |
6377 | auto char dummy; | |
6378 | if (addr == 0) | |
6379 | { | |
6380 | addr = &dummy; | |
6381 | return find_stack_direction (); | |
6382 | } | |
6383 | else | |
6384 | return (&dummy > addr) ? 1 : -1; | |
6385 | } | |
42ecbf5e DJ |
6386 | |
6387 | int | |
252b5132 RH |
6388 | main () |
6389 | { | |
42ecbf5e | 6390 | exit (find_stack_direction () < 0); |
252b5132 | 6391 | } |
42ecbf5e DJ |
6392 | _ACEOF |
6393 | rm -f conftest$ac_exeext | |
6394 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6395 | (eval $ac_link) 2>&5 | |
6396 | ac_status=$? | |
6397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6398 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6400 | (eval $ac_try) 2>&5 | |
6401 | ac_status=$? | |
6402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6403 | (exit $ac_status); }; }; then | |
252b5132 RH |
6404 | ac_cv_c_stack_direction=1 |
6405 | else | |
42ecbf5e DJ |
6406 | echo "$as_me: program exited with status $ac_status" >&5 |
6407 | echo "$as_me: failed program was:" >&5 | |
6408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6409 | ||
6410 | ( exit $ac_status ) | |
6411 | ac_cv_c_stack_direction=-1 | |
252b5132 | 6412 | fi |
42ecbf5e | 6413 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 6414 | fi |
252b5132 | 6415 | fi |
42ecbf5e DJ |
6416 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
6417 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
252b5132 | 6418 | |
42ecbf5e | 6419 | cat >>confdefs.h <<_ACEOF |
252b5132 | 6420 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
42ecbf5e DJ |
6421 | _ACEOF |
6422 | ||
252b5132 RH |
6423 | |
6424 | fi | |
6425 | ||
42ecbf5e DJ |
6426 | |
6427 | ||
6428 | for ac_header in stdlib.h unistd.h | |
252b5132 | 6429 | do |
42ecbf5e DJ |
6430 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6431 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6432 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6433 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6434 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6436 | fi | |
6437 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6438 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6439 | else | |
6440 | # Is the header compilable? | |
6441 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6442 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6443 | cat >conftest.$ac_ext <<_ACEOF | |
6444 | /* confdefs.h. */ | |
6445 | _ACEOF | |
6446 | cat confdefs.h >>conftest.$ac_ext | |
6447 | cat >>conftest.$ac_ext <<_ACEOF | |
6448 | /* end confdefs.h. */ | |
6449 | $ac_includes_default | |
6450 | #include <$ac_header> | |
6451 | _ACEOF | |
6452 | rm -f conftest.$ac_objext | |
6453 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6454 | (eval $ac_compile) 2>conftest.er1 | |
6455 | ac_status=$? | |
6456 | grep -v '^ *+' conftest.er1 >conftest.err | |
6457 | rm -f conftest.er1 | |
6458 | cat conftest.err >&5 | |
6459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6460 | (exit $ac_status); } && | |
b7d4af3a JW |
6461 | { ac_try='test -z "$ac_c_werror_flag" |
6462 | || test ! -s conftest.err' | |
42ecbf5e DJ |
6463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6464 | (eval $ac_try) 2>&5 | |
6465 | ac_status=$? | |
6466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6467 | (exit $ac_status); }; } && | |
6468 | { ac_try='test -s conftest.$ac_objext' | |
6469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6470 | (eval $ac_try) 2>&5 | |
6471 | ac_status=$? | |
6472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6473 | (exit $ac_status); }; }; then | |
6474 | ac_header_compiler=yes | |
6475 | else | |
6476 | echo "$as_me: failed program was:" >&5 | |
6477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6478 | ||
6479 | ac_header_compiler=no | |
6480 | fi | |
6481 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6482 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6483 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6484 | ||
6485 | # Is the header present? | |
6486 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6487 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6488 | cat >conftest.$ac_ext <<_ACEOF | |
6489 | /* confdefs.h. */ | |
6490 | _ACEOF | |
6491 | cat confdefs.h >>conftest.$ac_ext | |
6492 | cat >>conftest.$ac_ext <<_ACEOF | |
6493 | /* end confdefs.h. */ | |
6494 | #include <$ac_header> | |
6495 | _ACEOF | |
6496 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6497 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6498 | ac_status=$? | |
6499 | grep -v '^ *+' conftest.er1 >conftest.err | |
6500 | rm -f conftest.er1 | |
6501 | cat conftest.err >&5 | |
6502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6503 | (exit $ac_status); } >/dev/null; then | |
6504 | if test -s conftest.err; then | |
6505 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6506 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6507 | else | |
6508 | ac_cpp_err= | |
6509 | fi | |
252b5132 | 6510 | else |
42ecbf5e | 6511 | ac_cpp_err=yes |
252b5132 | 6512 | fi |
42ecbf5e DJ |
6513 | if test -z "$ac_cpp_err"; then |
6514 | ac_header_preproc=yes | |
6515 | else | |
6516 | echo "$as_me: failed program was:" >&5 | |
6517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6518 | ||
6519 | ac_header_preproc=no | |
252b5132 | 6520 | fi |
42ecbf5e DJ |
6521 | rm -f conftest.err conftest.$ac_ext |
6522 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6523 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6524 | ||
6525 | # So? What about this header? | |
6526 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6527 | yes:no: ) | |
6528 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6529 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6530 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6531 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6532 | ac_header_preproc=yes | |
6533 | ;; | |
6534 | no:yes:* ) | |
6535 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6536 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6537 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6538 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6539 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6540 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6541 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6542 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6543 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6544 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6545 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6546 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6547 | ( | |
6548 | cat <<\_ASBOX | |
6549 | ## ------------------------------------------ ## | |
6550 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6551 | ## ------------------------------------------ ## | |
6552 | _ASBOX | |
6553 | ) | | |
6554 | sed "s/^/$as_me: WARNING: /" >&2 | |
6555 | ;; | |
6556 | esac | |
6557 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6558 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6559 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6561 | else |
42ecbf5e | 6562 | eval "$as_ac_Header=\$ac_header_preproc" |
e5a52504 | 6563 | fi |
42ecbf5e DJ |
6564 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6565 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6566 | ||
6567 | fi | |
6568 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6569 | cat >>confdefs.h <<_ACEOF | |
6570 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6571 | _ACEOF | |
6572 | ||
6573 | fi | |
6574 | ||
252b5132 RH |
6575 | done |
6576 | ||
42ecbf5e | 6577 | |
252b5132 RH |
6578 | for ac_func in getpagesize |
6579 | do | |
42ecbf5e DJ |
6580 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6581 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6582 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6583 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6585 | else | |
6586 | cat >conftest.$ac_ext <<_ACEOF | |
6587 | /* confdefs.h. */ | |
6588 | _ACEOF | |
6589 | cat confdefs.h >>conftest.$ac_ext | |
6590 | cat >>conftest.$ac_ext <<_ACEOF | |
6591 | /* end confdefs.h. */ | |
6592 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6593 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6594 | #define $ac_func innocuous_$ac_func | |
6595 | ||
252b5132 | 6596 | /* System header to define __stub macros and hopefully few prototypes, |
42ecbf5e DJ |
6597 | which can conflict with char $ac_func (); below. |
6598 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6599 | <limits.h> exists even on freestanding compilers. */ | |
6600 | ||
6601 | #ifdef __STDC__ | |
6602 | # include <limits.h> | |
6603 | #else | |
6604 | # include <assert.h> | |
6605 | #endif | |
d15b04bd | 6606 | |
42ecbf5e | 6607 | #undef $ac_func |
d15b04bd | 6608 | |
42ecbf5e DJ |
6609 | /* Override any gcc2 internal prototype to avoid an error. */ |
6610 | #ifdef __cplusplus | |
6611 | extern "C" | |
6612 | { | |
6613 | #endif | |
6614 | /* We use char because int might match the return type of a gcc2 | |
6615 | builtin and then its argument prototype would still apply. */ | |
6616 | char $ac_func (); | |
252b5132 RH |
6617 | /* The GNU C library defines this for functions which it implements |
6618 | to always fail with ENOSYS. Some functions are actually named | |
6619 | something starting with __ and the normal name is an alias. */ | |
6620 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6621 | choke me | |
6622 | #else | |
42ecbf5e DJ |
6623 | char (*f) () = $ac_func; |
6624 | #endif | |
6625 | #ifdef __cplusplus | |
6626 | } | |
252b5132 RH |
6627 | #endif |
6628 | ||
42ecbf5e DJ |
6629 | int |
6630 | main () | |
6631 | { | |
6632 | return f != $ac_func; | |
6633 | ; | |
6634 | return 0; | |
6635 | } | |
6636 | _ACEOF | |
6637 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6638 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6639 | (eval $ac_link) 2>conftest.er1 | |
6640 | ac_status=$? | |
6641 | grep -v '^ *+' conftest.er1 >conftest.err | |
6642 | rm -f conftest.er1 | |
6643 | cat conftest.err >&5 | |
6644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6645 | (exit $ac_status); } && | |
b7d4af3a JW |
6646 | { ac_try='test -z "$ac_c_werror_flag" |
6647 | || test ! -s conftest.err' | |
42ecbf5e DJ |
6648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6649 | (eval $ac_try) 2>&5 | |
6650 | ac_status=$? | |
6651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6652 | (exit $ac_status); }; } && | |
6653 | { ac_try='test -s conftest$ac_exeext' | |
6654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6655 | (eval $ac_try) 2>&5 | |
6656 | ac_status=$? | |
6657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6658 | (exit $ac_status); }; }; then | |
6659 | eval "$as_ac_var=yes" | |
6660 | else | |
6661 | echo "$as_me: failed program was:" >&5 | |
6662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6663 | ||
6664 | eval "$as_ac_var=no" | |
6665 | fi | |
6666 | rm -f conftest.err conftest.$ac_objext \ | |
6667 | conftest$ac_exeext conftest.$ac_ext | |
6668 | fi | |
6669 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6670 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6671 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6672 | cat >>confdefs.h <<_ACEOF | |
6673 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6674 | _ACEOF | |
252b5132 | 6675 | |
252b5132 RH |
6676 | fi |
6677 | done | |
6678 | ||
42ecbf5e DJ |
6679 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
6680 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
6681 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
6682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
6683 | else |
6684 | if test "$cross_compiling" = yes; then | |
6685 | ac_cv_func_mmap_fixed_mapped=no | |
6686 | else | |
42ecbf5e DJ |
6687 | cat >conftest.$ac_ext <<_ACEOF |
6688 | /* confdefs.h. */ | |
6689 | _ACEOF | |
6690 | cat confdefs.h >>conftest.$ac_ext | |
6691 | cat >>conftest.$ac_ext <<_ACEOF | |
6692 | /* end confdefs.h. */ | |
6693 | $ac_includes_default | |
6694 | /* malloc might have been renamed as rpl_malloc. */ | |
6695 | #undef malloc | |
252b5132 RH |
6696 | |
6697 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
6698 | Here is a matrix of mmap possibilities: | |
6699 | mmap private not fixed | |
6700 | mmap private fixed at somewhere currently unmapped | |
6701 | mmap private fixed at somewhere already mapped | |
6702 | mmap shared not fixed | |
6703 | mmap shared fixed at somewhere currently unmapped | |
6704 | mmap shared fixed at somewhere already mapped | |
6705 | For private mappings, we should verify that changes cannot be read() | |
6706 | back from the file, nor mmap's back from the file at a different | |
6707 | address. (There have been systems where private was not correctly | |
6708 | implemented like the infamous i386 svr4.0, and systems where the | |
42ecbf5e | 6709 | VM page cache was not coherent with the file system buffer cache |
252b5132 RH |
6710 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
6711 | For shared mappings, we should conversely verify that changes get | |
42ecbf5e | 6712 | propagated back to all the places they're supposed to be. |
252b5132 RH |
6713 | |
6714 | Grep wants private fixed already mapped. | |
6715 | The main things grep needs to know about mmap are: | |
6716 | * does it exist and is it safe to write into the mmap'd area | |
6717 | * how to use it (BSD variants) */ | |
42ecbf5e | 6718 | |
252b5132 RH |
6719 | #include <fcntl.h> |
6720 | #include <sys/mman.h> | |
6721 | ||
42ecbf5e DJ |
6722 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
6723 | char *malloc (); | |
6724 | #endif | |
d15b04bd | 6725 | |
42ecbf5e DJ |
6726 | /* This mess was copied from the GNU getpagesize.h. */ |
6727 | #if !HAVE_GETPAGESIZE | |
252b5132 | 6728 | /* Assume that all systems that can run configure have sys/param.h. */ |
42ecbf5e | 6729 | # if !HAVE_SYS_PARAM_H |
252b5132 RH |
6730 | # define HAVE_SYS_PARAM_H 1 |
6731 | # endif | |
6732 | ||
6733 | # ifdef _SC_PAGESIZE | |
6734 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6735 | # else /* no _SC_PAGESIZE */ | |
42ecbf5e | 6736 | # if HAVE_SYS_PARAM_H |
252b5132 RH |
6737 | # include <sys/param.h> |
6738 | # ifdef EXEC_PAGESIZE | |
6739 | # define getpagesize() EXEC_PAGESIZE | |
6740 | # else /* no EXEC_PAGESIZE */ | |
6741 | # ifdef NBPG | |
6742 | # define getpagesize() NBPG * CLSIZE | |
6743 | # ifndef CLSIZE | |
6744 | # define CLSIZE 1 | |
6745 | # endif /* no CLSIZE */ | |
6746 | # else /* no NBPG */ | |
6747 | # ifdef NBPC | |
6748 | # define getpagesize() NBPC | |
6749 | # else /* no NBPC */ | |
6750 | # ifdef PAGESIZE | |
6751 | # define getpagesize() PAGESIZE | |
6752 | # endif /* PAGESIZE */ | |
6753 | # endif /* no NBPC */ | |
6754 | # endif /* no NBPG */ | |
6755 | # endif /* no EXEC_PAGESIZE */ | |
6756 | # else /* no HAVE_SYS_PARAM_H */ | |
6757 | # define getpagesize() 8192 /* punt totally */ | |
6758 | # endif /* no HAVE_SYS_PARAM_H */ | |
6759 | # endif /* no _SC_PAGESIZE */ | |
6760 | ||
6761 | #endif /* no HAVE_GETPAGESIZE */ | |
6762 | ||
252b5132 | 6763 | int |
42ecbf5e | 6764 | main () |
252b5132 | 6765 | { |
42ecbf5e DJ |
6766 | char *data, *data2, *data3; |
6767 | int i, pagesize; | |
6768 | int fd; | |
6769 | ||
6770 | pagesize = getpagesize (); | |
6771 | ||
6772 | /* First, make a file with some known garbage in it. */ | |
6773 | data = (char *) malloc (pagesize); | |
6774 | if (!data) | |
6775 | exit (1); | |
6776 | for (i = 0; i < pagesize; ++i) | |
6777 | *(data + i) = rand (); | |
6778 | umask (0); | |
6779 | fd = creat ("conftest.mmap", 0600); | |
6780 | if (fd < 0) | |
6781 | exit (1); | |
6782 | if (write (fd, data, pagesize) != pagesize) | |
6783 | exit (1); | |
6784 | close (fd); | |
6785 | ||
6786 | /* Next, try to mmap the file at a fixed address which already has | |
6787 | something else allocated at it. If we can, also make sure that | |
6788 | we see the same garbage. */ | |
6789 | fd = open ("conftest.mmap", O_RDWR); | |
6790 | if (fd < 0) | |
6791 | exit (1); | |
6792 | data2 = (char *) malloc (2 * pagesize); | |
6793 | if (!data2) | |
6794 | exit (1); | |
6795 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
6796 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
6797 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
6798 | exit (1); | |
6799 | for (i = 0; i < pagesize; ++i) | |
6800 | if (*(data + i) != *(data2 + i)) | |
6801 | exit (1); | |
6802 | ||
6803 | /* Finally, make sure that changes to the mapped area do not | |
6804 | percolate back to the file as seen by read(). (This is a bug on | |
6805 | some variants of i386 svr4.0.) */ | |
6806 | for (i = 0; i < pagesize; ++i) | |
6807 | *(data2 + i) = *(data2 + i) + 1; | |
6808 | data3 = (char *) malloc (pagesize); | |
6809 | if (!data3) | |
6810 | exit (1); | |
6811 | if (read (fd, data3, pagesize) != pagesize) | |
6812 | exit (1); | |
6813 | for (i = 0; i < pagesize; ++i) | |
6814 | if (*(data + i) != *(data3 + i)) | |
6815 | exit (1); | |
6816 | close (fd); | |
6817 | exit (0); | |
6818 | } | |
6819 | _ACEOF | |
6820 | rm -f conftest$ac_exeext | |
6821 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6822 | (eval $ac_link) 2>&5 | |
6823 | ac_status=$? | |
6824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6825 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6827 | (eval $ac_try) 2>&5 | |
6828 | ac_status=$? | |
6829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6830 | (exit $ac_status); }; }; then | |
252b5132 RH |
6831 | ac_cv_func_mmap_fixed_mapped=yes |
6832 | else | |
42ecbf5e DJ |
6833 | echo "$as_me: program exited with status $ac_status" >&5 |
6834 | echo "$as_me: failed program was:" >&5 | |
6835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6836 | ||
6837 | ( exit $ac_status ) | |
6838 | ac_cv_func_mmap_fixed_mapped=no | |
252b5132 | 6839 | fi |
42ecbf5e | 6840 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 6841 | fi |
252b5132 | 6842 | fi |
42ecbf5e DJ |
6843 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
6844 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
d15b04bd | 6845 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
42ecbf5e DJ |
6846 | |
6847 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 6848 | #define HAVE_MMAP 1 |
42ecbf5e | 6849 | _ACEOF |
252b5132 RH |
6850 | |
6851 | fi | |
42ecbf5e DJ |
6852 | rm -f conftest.mmap |
6853 | ||
6854 | ||
6855 | ||
6856 | ||
6857 | ||
6858 | ||
6859 | ||
6860 | ||
6861 | ||
e5a52504 | 6862 | |
42ecbf5e DJ |
6863 | |
6864 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
252b5132 RH |
6865 | unistd.h values.h sys/param.h |
6866 | do | |
42ecbf5e DJ |
6867 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6868 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6869 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6870 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6871 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6873 | fi | |
6874 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6875 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6876 | else | |
6877 | # Is the header compilable? | |
6878 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6879 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6880 | cat >conftest.$ac_ext <<_ACEOF | |
6881 | /* confdefs.h. */ | |
6882 | _ACEOF | |
6883 | cat confdefs.h >>conftest.$ac_ext | |
6884 | cat >>conftest.$ac_ext <<_ACEOF | |
6885 | /* end confdefs.h. */ | |
6886 | $ac_includes_default | |
6887 | #include <$ac_header> | |
6888 | _ACEOF | |
6889 | rm -f conftest.$ac_objext | |
6890 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6891 | (eval $ac_compile) 2>conftest.er1 | |
6892 | ac_status=$? | |
6893 | grep -v '^ *+' conftest.er1 >conftest.err | |
6894 | rm -f conftest.er1 | |
6895 | cat conftest.err >&5 | |
6896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6897 | (exit $ac_status); } && | |
b7d4af3a JW |
6898 | { ac_try='test -z "$ac_c_werror_flag" |
6899 | || test ! -s conftest.err' | |
42ecbf5e DJ |
6900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6901 | (eval $ac_try) 2>&5 | |
6902 | ac_status=$? | |
6903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6904 | (exit $ac_status); }; } && | |
6905 | { ac_try='test -s conftest.$ac_objext' | |
6906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6907 | (eval $ac_try) 2>&5 | |
6908 | ac_status=$? | |
6909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6910 | (exit $ac_status); }; }; then | |
6911 | ac_header_compiler=yes | |
6912 | else | |
6913 | echo "$as_me: failed program was:" >&5 | |
6914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6915 | ||
6916 | ac_header_compiler=no | |
6917 | fi | |
6918 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6919 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6920 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6921 | ||
6922 | # Is the header present? | |
6923 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6924 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6925 | cat >conftest.$ac_ext <<_ACEOF | |
6926 | /* confdefs.h. */ | |
6927 | _ACEOF | |
6928 | cat confdefs.h >>conftest.$ac_ext | |
6929 | cat >>conftest.$ac_ext <<_ACEOF | |
6930 | /* end confdefs.h. */ | |
6931 | #include <$ac_header> | |
6932 | _ACEOF | |
6933 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6934 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6935 | ac_status=$? | |
6936 | grep -v '^ *+' conftest.er1 >conftest.err | |
6937 | rm -f conftest.er1 | |
6938 | cat conftest.err >&5 | |
6939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6940 | (exit $ac_status); } >/dev/null; then | |
6941 | if test -s conftest.err; then | |
6942 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6943 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6944 | else | |
6945 | ac_cpp_err= | |
6946 | fi | |
252b5132 | 6947 | else |
42ecbf5e | 6948 | ac_cpp_err=yes |
252b5132 | 6949 | fi |
42ecbf5e DJ |
6950 | if test -z "$ac_cpp_err"; then |
6951 | ac_header_preproc=yes | |
6952 | else | |
6953 | echo "$as_me: failed program was:" >&5 | |
6954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6955 | ||
6956 | ac_header_preproc=no | |
252b5132 | 6957 | fi |
42ecbf5e DJ |
6958 | rm -f conftest.err conftest.$ac_ext |
6959 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6960 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6961 | ||
6962 | # So? What about this header? | |
6963 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6964 | yes:no: ) | |
6965 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6966 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6967 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6968 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6969 | ac_header_preproc=yes | |
6970 | ;; | |
6971 | no:yes:* ) | |
6972 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6973 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6974 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6975 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6976 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6977 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6978 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6979 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6980 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6981 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6982 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6983 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6984 | ( | |
6985 | cat <<\_ASBOX | |
6986 | ## ------------------------------------------ ## | |
6987 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6988 | ## ------------------------------------------ ## | |
6989 | _ASBOX | |
6990 | ) | | |
6991 | sed "s/^/$as_me: WARNING: /" >&2 | |
6992 | ;; | |
6993 | esac | |
6994 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6995 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6996 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6998 | else |
42ecbf5e DJ |
6999 | eval "$as_ac_Header=\$ac_header_preproc" |
7000 | fi | |
7001 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7002 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7003 | ||
e5a52504 | 7004 | fi |
42ecbf5e DJ |
7005 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7006 | cat >>confdefs.h <<_ACEOF | |
7007 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7008 | _ACEOF | |
7009 | ||
7010 | fi | |
7011 | ||
252b5132 RH |
7012 | done |
7013 | ||
42ecbf5e DJ |
7014 | |
7015 | ||
7016 | ||
7017 | ||
7018 | ||
7019 | ||
7020 | ||
7021 | ||
7022 | ||
7023 | ||
7024 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
252b5132 RH |
7025 | __argz_count __argz_stringify __argz_next |
7026 | do | |
42ecbf5e DJ |
7027 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7028 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7029 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7030 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7032 | else | |
7033 | cat >conftest.$ac_ext <<_ACEOF | |
7034 | /* confdefs.h. */ | |
7035 | _ACEOF | |
7036 | cat confdefs.h >>conftest.$ac_ext | |
7037 | cat >>conftest.$ac_ext <<_ACEOF | |
7038 | /* end confdefs.h. */ | |
7039 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7040 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7041 | #define $ac_func innocuous_$ac_func | |
7042 | ||
252b5132 | 7043 | /* System header to define __stub macros and hopefully few prototypes, |
42ecbf5e DJ |
7044 | which can conflict with char $ac_func (); below. |
7045 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7046 | <limits.h> exists even on freestanding compilers. */ | |
d15b04bd | 7047 | |
42ecbf5e DJ |
7048 | #ifdef __STDC__ |
7049 | # include <limits.h> | |
7050 | #else | |
7051 | # include <assert.h> | |
7052 | #endif | |
d15b04bd | 7053 | |
42ecbf5e DJ |
7054 | #undef $ac_func |
7055 | ||
7056 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7057 | #ifdef __cplusplus | |
7058 | extern "C" | |
7059 | { | |
7060 | #endif | |
7061 | /* We use char because int might match the return type of a gcc2 | |
7062 | builtin and then its argument prototype would still apply. */ | |
7063 | char $ac_func (); | |
252b5132 RH |
7064 | /* The GNU C library defines this for functions which it implements |
7065 | to always fail with ENOSYS. Some functions are actually named | |
7066 | something starting with __ and the normal name is an alias. */ | |
7067 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7068 | choke me | |
7069 | #else | |
42ecbf5e DJ |
7070 | char (*f) () = $ac_func; |
7071 | #endif | |
7072 | #ifdef __cplusplus | |
7073 | } | |
252b5132 RH |
7074 | #endif |
7075 | ||
42ecbf5e DJ |
7076 | int |
7077 | main () | |
7078 | { | |
7079 | return f != $ac_func; | |
7080 | ; | |
7081 | return 0; | |
7082 | } | |
7083 | _ACEOF | |
7084 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7085 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7086 | (eval $ac_link) 2>conftest.er1 | |
7087 | ac_status=$? | |
7088 | grep -v '^ *+' conftest.er1 >conftest.err | |
7089 | rm -f conftest.er1 | |
7090 | cat conftest.err >&5 | |
7091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7092 | (exit $ac_status); } && | |
b7d4af3a JW |
7093 | { ac_try='test -z "$ac_c_werror_flag" |
7094 | || test ! -s conftest.err' | |
42ecbf5e DJ |
7095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7096 | (eval $ac_try) 2>&5 | |
7097 | ac_status=$? | |
7098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7099 | (exit $ac_status); }; } && | |
7100 | { ac_try='test -s conftest$ac_exeext' | |
7101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7102 | (eval $ac_try) 2>&5 | |
7103 | ac_status=$? | |
7104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7105 | (exit $ac_status); }; }; then | |
7106 | eval "$as_ac_var=yes" | |
7107 | else | |
7108 | echo "$as_me: failed program was:" >&5 | |
7109 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7110 | ||
7111 | eval "$as_ac_var=no" | |
7112 | fi | |
7113 | rm -f conftest.err conftest.$ac_objext \ | |
7114 | conftest$ac_exeext conftest.$ac_ext | |
7115 | fi | |
7116 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7117 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7118 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7119 | cat >>confdefs.h <<_ACEOF | |
7120 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7121 | _ACEOF | |
252b5132 | 7122 | |
252b5132 RH |
7123 | fi |
7124 | done | |
7125 | ||
7126 | ||
7127 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
42ecbf5e DJ |
7128 | |
7129 | for ac_func in stpcpy | |
252b5132 | 7130 | do |
42ecbf5e DJ |
7131 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7132 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7133 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7134 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7136 | else | |
7137 | cat >conftest.$ac_ext <<_ACEOF | |
7138 | /* confdefs.h. */ | |
7139 | _ACEOF | |
7140 | cat confdefs.h >>conftest.$ac_ext | |
7141 | cat >>conftest.$ac_ext <<_ACEOF | |
7142 | /* end confdefs.h. */ | |
7143 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7144 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7145 | #define $ac_func innocuous_$ac_func | |
7146 | ||
252b5132 | 7147 | /* System header to define __stub macros and hopefully few prototypes, |
42ecbf5e DJ |
7148 | which can conflict with char $ac_func (); below. |
7149 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7150 | <limits.h> exists even on freestanding compilers. */ | |
d15b04bd | 7151 | |
42ecbf5e DJ |
7152 | #ifdef __STDC__ |
7153 | # include <limits.h> | |
7154 | #else | |
7155 | # include <assert.h> | |
7156 | #endif | |
d15b04bd | 7157 | |
42ecbf5e DJ |
7158 | #undef $ac_func |
7159 | ||
7160 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7161 | #ifdef __cplusplus | |
7162 | extern "C" | |
7163 | { | |
7164 | #endif | |
7165 | /* We use char because int might match the return type of a gcc2 | |
7166 | builtin and then its argument prototype would still apply. */ | |
7167 | char $ac_func (); | |
252b5132 RH |
7168 | /* The GNU C library defines this for functions which it implements |
7169 | to always fail with ENOSYS. Some functions are actually named | |
7170 | something starting with __ and the normal name is an alias. */ | |
7171 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7172 | choke me | |
7173 | #else | |
42ecbf5e DJ |
7174 | char (*f) () = $ac_func; |
7175 | #endif | |
7176 | #ifdef __cplusplus | |
7177 | } | |
252b5132 RH |
7178 | #endif |
7179 | ||
42ecbf5e DJ |
7180 | int |
7181 | main () | |
7182 | { | |
7183 | return f != $ac_func; | |
7184 | ; | |
7185 | return 0; | |
7186 | } | |
7187 | _ACEOF | |
7188 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7189 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7190 | (eval $ac_link) 2>conftest.er1 | |
7191 | ac_status=$? | |
7192 | grep -v '^ *+' conftest.er1 >conftest.err | |
7193 | rm -f conftest.er1 | |
7194 | cat conftest.err >&5 | |
7195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7196 | (exit $ac_status); } && | |
b7d4af3a JW |
7197 | { ac_try='test -z "$ac_c_werror_flag" |
7198 | || test ! -s conftest.err' | |
42ecbf5e DJ |
7199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7200 | (eval $ac_try) 2>&5 | |
7201 | ac_status=$? | |
7202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7203 | (exit $ac_status); }; } && | |
7204 | { ac_try='test -s conftest$ac_exeext' | |
7205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7206 | (eval $ac_try) 2>&5 | |
7207 | ac_status=$? | |
7208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7209 | (exit $ac_status); }; }; then | |
7210 | eval "$as_ac_var=yes" | |
7211 | else | |
7212 | echo "$as_me: failed program was:" >&5 | |
7213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7214 | ||
7215 | eval "$as_ac_var=no" | |
7216 | fi | |
7217 | rm -f conftest.err conftest.$ac_objext \ | |
7218 | conftest$ac_exeext conftest.$ac_ext | |
7219 | fi | |
7220 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7221 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7222 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7223 | cat >>confdefs.h <<_ACEOF | |
7224 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7225 | _ACEOF | |
252b5132 | 7226 | |
252b5132 RH |
7227 | fi |
7228 | done | |
7229 | ||
7230 | fi | |
7231 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
42ecbf5e DJ |
7232 | |
7233 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 7234 | #define HAVE_STPCPY 1 |
42ecbf5e | 7235 | _ACEOF |
252b5132 RH |
7236 | |
7237 | fi | |
7238 | ||
7239 | if test $ac_cv_header_locale_h = yes; then | |
42ecbf5e DJ |
7240 | echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
7241 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 | |
7242 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | |
7243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7244 | else | |
7245 | cat >conftest.$ac_ext <<_ACEOF | |
7246 | /* confdefs.h. */ | |
7247 | _ACEOF | |
7248 | cat confdefs.h >>conftest.$ac_ext | |
7249 | cat >>conftest.$ac_ext <<_ACEOF | |
7250 | /* end confdefs.h. */ | |
252b5132 | 7251 | #include <locale.h> |
42ecbf5e DJ |
7252 | int |
7253 | main () | |
7254 | { | |
252b5132 | 7255 | return LC_MESSAGES |
42ecbf5e DJ |
7256 | ; |
7257 | return 0; | |
7258 | } | |
7259 | _ACEOF | |
7260 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7261 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7262 | (eval $ac_link) 2>conftest.er1 | |
7263 | ac_status=$? | |
7264 | grep -v '^ *+' conftest.er1 >conftest.err | |
7265 | rm -f conftest.er1 | |
7266 | cat conftest.err >&5 | |
7267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7268 | (exit $ac_status); } && | |
b7d4af3a JW |
7269 | { ac_try='test -z "$ac_c_werror_flag" |
7270 | || test ! -s conftest.err' | |
42ecbf5e DJ |
7271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7272 | (eval $ac_try) 2>&5 | |
7273 | ac_status=$? | |
7274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7275 | (exit $ac_status); }; } && | |
7276 | { ac_try='test -s conftest$ac_exeext' | |
7277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7278 | (eval $ac_try) 2>&5 | |
7279 | ac_status=$? | |
7280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7281 | (exit $ac_status); }; }; then | |
252b5132 RH |
7282 | am_cv_val_LC_MESSAGES=yes |
7283 | else | |
42ecbf5e DJ |
7284 | echo "$as_me: failed program was:" >&5 |
7285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7286 | ||
7287 | am_cv_val_LC_MESSAGES=no | |
252b5132 | 7288 | fi |
42ecbf5e DJ |
7289 | rm -f conftest.err conftest.$ac_objext \ |
7290 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 7291 | fi |
42ecbf5e DJ |
7292 | echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
7293 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 | |
d15b04bd | 7294 | if test $am_cv_val_LC_MESSAGES = yes; then |
42ecbf5e DJ |
7295 | |
7296 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 7297 | #define HAVE_LC_MESSAGES 1 |
42ecbf5e | 7298 | _ACEOF |
252b5132 RH |
7299 | |
7300 | fi | |
7301 | fi | |
42ecbf5e DJ |
7302 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
7303 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
252b5132 RH |
7304 | # Check whether --enable-nls or --disable-nls was given. |
7305 | if test "${enable_nls+set}" = set; then | |
7306 | enableval="$enable_nls" | |
7307 | USE_NLS=$enableval | |
7308 | else | |
7309 | USE_NLS=yes | |
42ecbf5e DJ |
7310 | fi; |
7311 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
7312 | echo "${ECHO_T}$USE_NLS" >&6 | |
252b5132 | 7313 | |
252b5132 RH |
7314 | |
7315 | USE_INCLUDED_LIBINTL=no | |
7316 | ||
7317 | if test "$USE_NLS" = "yes"; then | |
42ecbf5e DJ |
7318 | echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
7319 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 | |
7320 | ||
7321 | # Check whether --with-included-gettext or --without-included-gettext was given. | |
252b5132 RH |
7322 | if test "${with_included_gettext+set}" = set; then |
7323 | withval="$with_included_gettext" | |
7324 | nls_cv_force_use_gnu_gettext=$withval | |
7325 | else | |
7326 | nls_cv_force_use_gnu_gettext=no | |
42ecbf5e DJ |
7327 | fi; |
7328 | echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 | |
7329 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 | |
252b5132 RH |
7330 | |
7331 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
7332 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
7333 | nls_cv_header_intl= | |
d15b04bd | 7334 | nls_cv_header_libgt= |
c46f8c51 | 7335 | CATOBJEXT= |
e5a52504 | 7336 | |
42ecbf5e DJ |
7337 | if test "${ac_cv_header_libintl_h+set}" = set; then |
7338 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
7339 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
7340 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
7341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7342 | fi | |
7343 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
7344 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
7345 | else | |
7346 | # Is the header compilable? | |
7347 | echo "$as_me:$LINENO: checking libintl.h usability" >&5 | |
7348 | echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 | |
7349 | cat >conftest.$ac_ext <<_ACEOF | |
7350 | /* confdefs.h. */ | |
7351 | _ACEOF | |
7352 | cat confdefs.h >>conftest.$ac_ext | |
7353 | cat >>conftest.$ac_ext <<_ACEOF | |
7354 | /* end confdefs.h. */ | |
7355 | $ac_includes_default | |
d15b04bd | 7356 | #include <libintl.h> |
42ecbf5e DJ |
7357 | _ACEOF |
7358 | rm -f conftest.$ac_objext | |
7359 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7360 | (eval $ac_compile) 2>conftest.er1 | |
7361 | ac_status=$? | |
7362 | grep -v '^ *+' conftest.er1 >conftest.err | |
7363 | rm -f conftest.er1 | |
7364 | cat conftest.err >&5 | |
7365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7366 | (exit $ac_status); } && | |
b7d4af3a JW |
7367 | { ac_try='test -z "$ac_c_werror_flag" |
7368 | || test ! -s conftest.err' | |
42ecbf5e DJ |
7369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7370 | (eval $ac_try) 2>&5 | |
7371 | ac_status=$? | |
7372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7373 | (exit $ac_status); }; } && | |
7374 | { ac_try='test -s conftest.$ac_objext' | |
7375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7376 | (eval $ac_try) 2>&5 | |
7377 | ac_status=$? | |
7378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7379 | (exit $ac_status); }; }; then | |
7380 | ac_header_compiler=yes | |
7381 | else | |
7382 | echo "$as_me: failed program was:" >&5 | |
7383 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7384 | ||
7385 | ac_header_compiler=no | |
7386 | fi | |
7387 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7388 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7389 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
7390 | ||
7391 | # Is the header present? | |
7392 | echo "$as_me:$LINENO: checking libintl.h presence" >&5 | |
7393 | echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 | |
7394 | cat >conftest.$ac_ext <<_ACEOF | |
7395 | /* confdefs.h. */ | |
7396 | _ACEOF | |
7397 | cat confdefs.h >>conftest.$ac_ext | |
7398 | cat >>conftest.$ac_ext <<_ACEOF | |
7399 | /* end confdefs.h. */ | |
7400 | #include <libintl.h> | |
7401 | _ACEOF | |
7402 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7403 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7404 | ac_status=$? | |
7405 | grep -v '^ *+' conftest.er1 >conftest.err | |
7406 | rm -f conftest.er1 | |
7407 | cat conftest.err >&5 | |
7408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7409 | (exit $ac_status); } >/dev/null; then | |
7410 | if test -s conftest.err; then | |
7411 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7412 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7413 | else | |
7414 | ac_cpp_err= | |
7415 | fi | |
252b5132 | 7416 | else |
42ecbf5e | 7417 | ac_cpp_err=yes |
252b5132 | 7418 | fi |
42ecbf5e DJ |
7419 | if test -z "$ac_cpp_err"; then |
7420 | ac_header_preproc=yes | |
7421 | else | |
7422 | echo "$as_me: failed program was:" >&5 | |
7423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7424 | ||
7425 | ac_header_preproc=no | |
252b5132 | 7426 | fi |
42ecbf5e DJ |
7427 | rm -f conftest.err conftest.$ac_ext |
7428 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7429 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7430 | ||
7431 | # So? What about this header? | |
7432 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7433 | yes:no: ) | |
7434 | { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7435 | echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7436 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 | |
7437 | echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} | |
7438 | ac_header_preproc=yes | |
7439 | ;; | |
7440 | no:yes:* ) | |
7441 | { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 | |
7442 | echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} | |
7443 | { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 | |
7444 | echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} | |
7445 | { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 | |
7446 | echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} | |
7447 | { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
7448 | echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
7449 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 | |
7450 | echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} | |
7451 | { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 | |
7452 | echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} | |
7453 | ( | |
7454 | cat <<\_ASBOX | |
7455 | ## ------------------------------------------ ## | |
7456 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7457 | ## ------------------------------------------ ## | |
7458 | _ASBOX | |
7459 | ) | | |
7460 | sed "s/^/$as_me: WARNING: /" >&2 | |
7461 | ;; | |
7462 | esac | |
7463 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
7464 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
7465 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
7466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7467 | else | |
7468 | ac_cv_header_libintl_h=$ac_header_preproc | |
7469 | fi | |
7470 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
7471 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
7472 | ||
7473 | fi | |
7474 | if test $ac_cv_header_libintl_h = yes; then | |
7475 | echo "$as_me:$LINENO: checking for gettext in libc" >&5 | |
7476 | echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6 | |
7477 | if test "${gt_cv_func_gettext_libc+set}" = set; then | |
7478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7479 | else |
42ecbf5e DJ |
7480 | cat >conftest.$ac_ext <<_ACEOF |
7481 | /* confdefs.h. */ | |
7482 | _ACEOF | |
7483 | cat confdefs.h >>conftest.$ac_ext | |
7484 | cat >>conftest.$ac_ext <<_ACEOF | |
7485 | /* end confdefs.h. */ | |
252b5132 | 7486 | #include <libintl.h> |
42ecbf5e DJ |
7487 | int |
7488 | main () | |
7489 | { | |
252b5132 | 7490 | return (int) gettext ("") |
42ecbf5e DJ |
7491 | ; |
7492 | return 0; | |
7493 | } | |
7494 | _ACEOF | |
7495 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7496 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7497 | (eval $ac_link) 2>conftest.er1 | |
7498 | ac_status=$? | |
7499 | grep -v '^ *+' conftest.er1 >conftest.err | |
7500 | rm -f conftest.er1 | |
7501 | cat conftest.err >&5 | |
7502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7503 | (exit $ac_status); } && | |
b7d4af3a JW |
7504 | { ac_try='test -z "$ac_c_werror_flag" |
7505 | || test ! -s conftest.err' | |
42ecbf5e DJ |
7506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7507 | (eval $ac_try) 2>&5 | |
7508 | ac_status=$? | |
7509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7510 | (exit $ac_status); }; } && | |
7511 | { ac_try='test -s conftest$ac_exeext' | |
7512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7513 | (eval $ac_try) 2>&5 | |
7514 | ac_status=$? | |
7515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7516 | (exit $ac_status); }; }; then | |
252b5132 RH |
7517 | gt_cv_func_gettext_libc=yes |
7518 | else | |
42ecbf5e DJ |
7519 | echo "$as_me: failed program was:" >&5 |
7520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7521 | ||
7522 | gt_cv_func_gettext_libc=no | |
252b5132 | 7523 | fi |
42ecbf5e DJ |
7524 | rm -f conftest.err conftest.$ac_objext \ |
7525 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 7526 | fi |
42ecbf5e DJ |
7527 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5 |
7528 | echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6 | |
252b5132 RH |
7529 | |
7530 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
42ecbf5e DJ |
7531 | echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 |
7532 | echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 | |
7533 | if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then | |
7534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7535 | else |
42ecbf5e | 7536 | ac_check_lib_save_LIBS=$LIBS |
252b5132 | 7537 | LIBS="-lintl $LIBS" |
42ecbf5e DJ |
7538 | cat >conftest.$ac_ext <<_ACEOF |
7539 | /* confdefs.h. */ | |
7540 | _ACEOF | |
7541 | cat confdefs.h >>conftest.$ac_ext | |
7542 | cat >>conftest.$ac_ext <<_ACEOF | |
7543 | /* end confdefs.h. */ | |
7544 | ||
252b5132 | 7545 | /* Override any gcc2 internal prototype to avoid an error. */ |
42ecbf5e DJ |
7546 | #ifdef __cplusplus |
7547 | extern "C" | |
7548 | #endif | |
252b5132 | 7549 | /* We use char because int might match the return type of a gcc2 |
42ecbf5e DJ |
7550 | builtin and then its argument prototype would still apply. */ |
7551 | char bindtextdomain (); | |
7552 | int | |
7553 | main () | |
7554 | { | |
7555 | bindtextdomain (); | |
7556 | ; | |
7557 | return 0; | |
7558 | } | |
7559 | _ACEOF | |
7560 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7561 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7562 | (eval $ac_link) 2>conftest.er1 | |
7563 | ac_status=$? | |
7564 | grep -v '^ *+' conftest.er1 >conftest.err | |
7565 | rm -f conftest.er1 | |
7566 | cat conftest.err >&5 | |
7567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7568 | (exit $ac_status); } && | |
b7d4af3a JW |
7569 | { ac_try='test -z "$ac_c_werror_flag" |
7570 | || test ! -s conftest.err' | |
42ecbf5e DJ |
7571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7572 | (eval $ac_try) 2>&5 | |
7573 | ac_status=$? | |
7574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7575 | (exit $ac_status); }; } && | |
7576 | { ac_try='test -s conftest$ac_exeext' | |
7577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7578 | (eval $ac_try) 2>&5 | |
7579 | ac_status=$? | |
7580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7581 | (exit $ac_status); }; }; then | |
7582 | ac_cv_lib_intl_bindtextdomain=yes | |
7583 | else | |
7584 | echo "$as_me: failed program was:" >&5 | |
7585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7586 | ||
7587 | ac_cv_lib_intl_bindtextdomain=no | |
7588 | fi | |
7589 | rm -f conftest.err conftest.$ac_objext \ | |
7590 | conftest$ac_exeext conftest.$ac_ext | |
7591 | LIBS=$ac_check_lib_save_LIBS | |
7592 | fi | |
7593 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 | |
7594 | echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 | |
7595 | if test $ac_cv_lib_intl_bindtextdomain = yes; then | |
7596 | echo "$as_me:$LINENO: checking for gettext in libintl" >&5 | |
7597 | echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6 | |
7598 | if test "${gt_cv_func_gettext_libintl+set}" = set; then | |
7599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7600 | else | |
7601 | cat >conftest.$ac_ext <<_ACEOF | |
7602 | /* confdefs.h. */ | |
7603 | _ACEOF | |
7604 | cat confdefs.h >>conftest.$ac_ext | |
7605 | cat >>conftest.$ac_ext <<_ACEOF | |
7606 | /* end confdefs.h. */ | |
d15b04bd | 7607 | |
42ecbf5e DJ |
7608 | int |
7609 | main () | |
7610 | { | |
252b5132 | 7611 | return (int) gettext ("") |
42ecbf5e DJ |
7612 | ; |
7613 | return 0; | |
7614 | } | |
7615 | _ACEOF | |
7616 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7617 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7618 | (eval $ac_link) 2>conftest.er1 | |
7619 | ac_status=$? | |
7620 | grep -v '^ *+' conftest.er1 >conftest.err | |
7621 | rm -f conftest.er1 | |
7622 | cat conftest.err >&5 | |
7623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7624 | (exit $ac_status); } && | |
b7d4af3a JW |
7625 | { ac_try='test -z "$ac_c_werror_flag" |
7626 | || test ! -s conftest.err' | |
42ecbf5e DJ |
7627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7628 | (eval $ac_try) 2>&5 | |
7629 | ac_status=$? | |
7630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7631 | (exit $ac_status); }; } && | |
7632 | { ac_try='test -s conftest$ac_exeext' | |
7633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7634 | (eval $ac_try) 2>&5 | |
7635 | ac_status=$? | |
7636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7637 | (exit $ac_status); }; }; then | |
252b5132 RH |
7638 | gt_cv_func_gettext_libintl=yes |
7639 | else | |
42ecbf5e DJ |
7640 | echo "$as_me: failed program was:" >&5 |
7641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7642 | ||
7643 | gt_cv_func_gettext_libintl=no | |
252b5132 | 7644 | fi |
42ecbf5e DJ |
7645 | rm -f conftest.err conftest.$ac_objext \ |
7646 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 7647 | fi |
42ecbf5e DJ |
7648 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5 |
7649 | echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6 | |
252b5132 RH |
7650 | fi |
7651 | ||
7652 | fi | |
7653 | ||
7654 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
7655 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
42ecbf5e DJ |
7656 | |
7657 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 7658 | #define HAVE_GETTEXT 1 |
42ecbf5e | 7659 | _ACEOF |
252b5132 RH |
7660 | |
7661 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7662 | set dummy msgfmt; ac_word=$2 | |
42ecbf5e DJ |
7663 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7664 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7665 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
7666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7667 | else |
7668 | case "$MSGFMT" in | |
7669 | /*) | |
7670 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7671 | ;; | |
7672 | *) | |
7673 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7674 | for ac_dir in $PATH; do | |
7675 | test -z "$ac_dir" && ac_dir=. | |
7676 | if test -f $ac_dir/$ac_word; then | |
7677 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7678 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7679 | break | |
7680 | fi | |
7681 | fi | |
7682 | done | |
7683 | IFS="$ac_save_ifs" | |
7684 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
7685 | ;; | |
7686 | esac | |
7687 | fi | |
7688 | MSGFMT="$ac_cv_path_MSGFMT" | |
7689 | if test -n "$MSGFMT"; then | |
42ecbf5e DJ |
7690 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
7691 | echo "${ECHO_T}$MSGFMT" >&6 | |
252b5132 | 7692 | else |
42ecbf5e DJ |
7693 | echo "$as_me:$LINENO: result: no" >&5 |
7694 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7695 | fi |
7696 | if test "$MSGFMT" != "no"; then | |
42ecbf5e DJ |
7697 | |
7698 | for ac_func in dcgettext | |
252b5132 | 7699 | do |
42ecbf5e DJ |
7700 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7701 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7702 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7703 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7705 | else | |
7706 | cat >conftest.$ac_ext <<_ACEOF | |
7707 | /* confdefs.h. */ | |
7708 | _ACEOF | |
7709 | cat confdefs.h >>conftest.$ac_ext | |
7710 | cat >>conftest.$ac_ext <<_ACEOF | |
7711 | /* end confdefs.h. */ | |
7712 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7713 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7714 | #define $ac_func innocuous_$ac_func | |
7715 | ||
252b5132 | 7716 | /* System header to define __stub macros and hopefully few prototypes, |
42ecbf5e DJ |
7717 | which can conflict with char $ac_func (); below. |
7718 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7719 | <limits.h> exists even on freestanding compilers. */ | |
d15b04bd | 7720 | |
42ecbf5e DJ |
7721 | #ifdef __STDC__ |
7722 | # include <limits.h> | |
7723 | #else | |
7724 | # include <assert.h> | |
7725 | #endif | |
d15b04bd | 7726 | |
42ecbf5e DJ |
7727 | #undef $ac_func |
7728 | ||
7729 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7730 | #ifdef __cplusplus | |
7731 | extern "C" | |
7732 | { | |
7733 | #endif | |
7734 | /* We use char because int might match the return type of a gcc2 | |
7735 | builtin and then its argument prototype would still apply. */ | |
7736 | char $ac_func (); | |
252b5132 RH |
7737 | /* The GNU C library defines this for functions which it implements |
7738 | to always fail with ENOSYS. Some functions are actually named | |
7739 | something starting with __ and the normal name is an alias. */ | |
7740 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7741 | choke me | |
7742 | #else | |
42ecbf5e DJ |
7743 | char (*f) () = $ac_func; |
7744 | #endif | |
7745 | #ifdef __cplusplus | |
7746 | } | |
252b5132 RH |
7747 | #endif |
7748 | ||
42ecbf5e DJ |
7749 | int |
7750 | main () | |
7751 | { | |
7752 | return f != $ac_func; | |
7753 | ; | |
7754 | return 0; | |
7755 | } | |
7756 | _ACEOF | |
7757 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7758 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7759 | (eval $ac_link) 2>conftest.er1 | |
7760 | ac_status=$? | |
7761 | grep -v '^ *+' conftest.er1 >conftest.err | |
7762 | rm -f conftest.er1 | |
7763 | cat conftest.err >&5 | |
7764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7765 | (exit $ac_status); } && | |
b7d4af3a JW |
7766 | { ac_try='test -z "$ac_c_werror_flag" |
7767 | || test ! -s conftest.err' | |
42ecbf5e DJ |
7768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7769 | (eval $ac_try) 2>&5 | |
7770 | ac_status=$? | |
7771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7772 | (exit $ac_status); }; } && | |
7773 | { ac_try='test -s conftest$ac_exeext' | |
7774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7775 | (eval $ac_try) 2>&5 | |
7776 | ac_status=$? | |
7777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7778 | (exit $ac_status); }; }; then | |
7779 | eval "$as_ac_var=yes" | |
7780 | else | |
7781 | echo "$as_me: failed program was:" >&5 | |
7782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7783 | ||
7784 | eval "$as_ac_var=no" | |
7785 | fi | |
7786 | rm -f conftest.err conftest.$ac_objext \ | |
7787 | conftest$ac_exeext conftest.$ac_ext | |
7788 | fi | |
7789 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7790 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7791 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7792 | cat >>confdefs.h <<_ACEOF | |
7793 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7794 | _ACEOF | |
252b5132 | 7795 | |
252b5132 RH |
7796 | fi |
7797 | done | |
7798 | ||
7799 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7800 | set dummy gmsgfmt; ac_word=$2 | |
42ecbf5e DJ |
7801 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7802 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7803 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
7804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7805 | else |
42ecbf5e DJ |
7806 | case $GMSGFMT in |
7807 | [\\/]* | ?:[\\/]*) | |
252b5132 RH |
7808 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
7809 | ;; | |
252b5132 | 7810 | *) |
42ecbf5e DJ |
7811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7812 | for as_dir in $PATH | |
7813 | do | |
7814 | IFS=$as_save_IFS | |
7815 | test -z "$as_dir" && as_dir=. | |
7816 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7817 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7818 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
7819 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7820 | break 2 | |
7821 | fi | |
7822 | done | |
7823 | done | |
7824 | ||
252b5132 RH |
7825 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
7826 | ;; | |
7827 | esac | |
7828 | fi | |
42ecbf5e DJ |
7829 | GMSGFMT=$ac_cv_path_GMSGFMT |
7830 | ||
252b5132 | 7831 | if test -n "$GMSGFMT"; then |
42ecbf5e DJ |
7832 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
7833 | echo "${ECHO_T}$GMSGFMT" >&6 | |
252b5132 | 7834 | else |
42ecbf5e DJ |
7835 | echo "$as_me:$LINENO: result: no" >&5 |
7836 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7837 | fi |
7838 | ||
7839 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7840 | set dummy xgettext; ac_word=$2 | |
42ecbf5e DJ |
7841 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7842 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7843 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
7844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7845 | else |
7846 | case "$XGETTEXT" in | |
7847 | /*) | |
7848 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7849 | ;; | |
7850 | *) | |
7851 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7852 | for ac_dir in $PATH; do | |
7853 | test -z "$ac_dir" && ac_dir=. | |
7854 | if test -f $ac_dir/$ac_word; then | |
7855 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7856 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7857 | break | |
7858 | fi | |
7859 | fi | |
7860 | done | |
7861 | IFS="$ac_save_ifs" | |
7862 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7863 | ;; | |
7864 | esac | |
7865 | fi | |
7866 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7867 | if test -n "$XGETTEXT"; then | |
42ecbf5e DJ |
7868 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
7869 | echo "${ECHO_T}$XGETTEXT" >&6 | |
252b5132 | 7870 | else |
42ecbf5e DJ |
7871 | echo "$as_me:$LINENO: result: no" >&5 |
7872 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7873 | fi |
7874 | ||
42ecbf5e DJ |
7875 | cat >conftest.$ac_ext <<_ACEOF |
7876 | /* confdefs.h. */ | |
7877 | _ACEOF | |
7878 | cat confdefs.h >>conftest.$ac_ext | |
7879 | cat >>conftest.$ac_ext <<_ACEOF | |
7880 | /* end confdefs.h. */ | |
252b5132 | 7881 | |
42ecbf5e DJ |
7882 | int |
7883 | main () | |
7884 | { | |
252b5132 RH |
7885 | extern int _nl_msg_cat_cntr; |
7886 | return _nl_msg_cat_cntr | |
42ecbf5e DJ |
7887 | ; |
7888 | return 0; | |
7889 | } | |
7890 | _ACEOF | |
7891 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7892 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7893 | (eval $ac_link) 2>conftest.er1 | |
7894 | ac_status=$? | |
7895 | grep -v '^ *+' conftest.er1 >conftest.err | |
7896 | rm -f conftest.er1 | |
7897 | cat conftest.err >&5 | |
7898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7899 | (exit $ac_status); } && | |
b7d4af3a JW |
7900 | { ac_try='test -z "$ac_c_werror_flag" |
7901 | || test ! -s conftest.err' | |
42ecbf5e DJ |
7902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7903 | (eval $ac_try) 2>&5 | |
7904 | ac_status=$? | |
7905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7906 | (exit $ac_status); }; } && | |
7907 | { ac_try='test -s conftest$ac_exeext' | |
7908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7909 | (eval $ac_try) 2>&5 | |
7910 | ac_status=$? | |
7911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7912 | (exit $ac_status); }; }; then | |
252b5132 RH |
7913 | CATOBJEXT=.gmo |
7914 | DATADIRNAME=share | |
7915 | else | |
42ecbf5e DJ |
7916 | echo "$as_me: failed program was:" >&5 |
7917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7918 | ||
7919 | CATOBJEXT=.mo | |
252b5132 RH |
7920 | DATADIRNAME=lib |
7921 | fi | |
42ecbf5e DJ |
7922 | rm -f conftest.err conftest.$ac_objext \ |
7923 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 RH |
7924 | INSTOBJEXT=.mo |
7925 | fi | |
7926 | fi | |
42ecbf5e | 7927 | |
252b5132 RH |
7928 | fi |
7929 | ||
7930 | ||
42ecbf5e DJ |
7931 | |
7932 | ||
c46f8c51 AC |
7933 | if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then |
7934 | # Neither gettext nor catgets in included in the C library. | |
7935 | # Fall back on GNU gettext library (assuming it is present). | |
7936 | nls_cv_use_gnu_gettext=yes | |
252b5132 RH |
7937 | fi |
7938 | fi | |
7939 | ||
7940 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
7941 | INTLOBJS="\$(GETTOBJS)" | |
7942 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7943 | set dummy msgfmt; ac_word=$2 | |
42ecbf5e DJ |
7944 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7945 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7946 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
7947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7948 | else |
7949 | case "$MSGFMT" in | |
7950 | /*) | |
7951 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7952 | ;; | |
7953 | *) | |
7954 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7955 | for ac_dir in $PATH; do | |
7956 | test -z "$ac_dir" && ac_dir=. | |
7957 | if test -f $ac_dir/$ac_word; then | |
7958 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7959 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7960 | break | |
7961 | fi | |
7962 | fi | |
7963 | done | |
7964 | IFS="$ac_save_ifs" | |
7965 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
7966 | ;; | |
7967 | esac | |
7968 | fi | |
7969 | MSGFMT="$ac_cv_path_MSGFMT" | |
7970 | if test -n "$MSGFMT"; then | |
42ecbf5e DJ |
7971 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
7972 | echo "${ECHO_T}$MSGFMT" >&6 | |
252b5132 | 7973 | else |
42ecbf5e DJ |
7974 | echo "$as_me:$LINENO: result: no" >&5 |
7975 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7976 | fi |
7977 | ||
7978 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7979 | set dummy gmsgfmt; ac_word=$2 | |
42ecbf5e DJ |
7980 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7981 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7982 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
7983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7984 | else |
42ecbf5e DJ |
7985 | case $GMSGFMT in |
7986 | [\\/]* | ?:[\\/]*) | |
252b5132 RH |
7987 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
7988 | ;; | |
252b5132 | 7989 | *) |
42ecbf5e DJ |
7990 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7991 | for as_dir in $PATH | |
7992 | do | |
7993 | IFS=$as_save_IFS | |
7994 | test -z "$as_dir" && as_dir=. | |
7995 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7996 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7997 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
7998 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7999 | break 2 | |
8000 | fi | |
8001 | done | |
8002 | done | |
8003 | ||
252b5132 RH |
8004 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
8005 | ;; | |
8006 | esac | |
8007 | fi | |
42ecbf5e DJ |
8008 | GMSGFMT=$ac_cv_path_GMSGFMT |
8009 | ||
252b5132 | 8010 | if test -n "$GMSGFMT"; then |
42ecbf5e DJ |
8011 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
8012 | echo "${ECHO_T}$GMSGFMT" >&6 | |
252b5132 | 8013 | else |
42ecbf5e DJ |
8014 | echo "$as_me:$LINENO: result: no" >&5 |
8015 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
8016 | fi |
8017 | ||
8018 | # Extract the first word of "xgettext", so it can be a program name with args. | |
8019 | set dummy xgettext; ac_word=$2 | |
42ecbf5e DJ |
8020 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8021 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8022 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
8023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
8024 | else |
8025 | case "$XGETTEXT" in | |
8026 | /*) | |
8027 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
8028 | ;; | |
8029 | *) | |
8030 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
8031 | for ac_dir in $PATH; do | |
8032 | test -z "$ac_dir" && ac_dir=. | |
8033 | if test -f $ac_dir/$ac_word; then | |
8034 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
8035 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
8036 | break | |
8037 | fi | |
8038 | fi | |
8039 | done | |
8040 | IFS="$ac_save_ifs" | |
8041 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
8042 | ;; | |
8043 | esac | |
8044 | fi | |
8045 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
8046 | if test -n "$XGETTEXT"; then | |
42ecbf5e DJ |
8047 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
8048 | echo "${ECHO_T}$XGETTEXT" >&6 | |
252b5132 | 8049 | else |
42ecbf5e DJ |
8050 | echo "$as_me:$LINENO: result: no" >&5 |
8051 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
8052 | fi |
8053 | ||
42ecbf5e | 8054 | |
252b5132 RH |
8055 | USE_INCLUDED_LIBINTL=yes |
8056 | CATOBJEXT=.gmo | |
8057 | INSTOBJEXT=.mo | |
8058 | DATADIRNAME=share | |
8059 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
8060 | INTLLIBS=$INTLDEPS | |
8061 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
8062 | nls_cv_header_intl=libintl.h | |
8063 | nls_cv_header_libgt=libgettext.h | |
8064 | fi | |
8065 | ||
8066 | if test "$XGETTEXT" != ":"; then | |
8067 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
8068 | : ; | |
8069 | else | |
42ecbf5e DJ |
8070 | echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5 |
8071 | echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6 | |
252b5132 RH |
8072 | XGETTEXT=":" |
8073 | fi | |
8074 | fi | |
8075 | ||
8076 | # We need to process the po/ directory. | |
8077 | POSUB=po | |
8078 | else | |
8079 | DATADIRNAME=share | |
8080 | nls_cv_header_intl=libintl.h | |
8081 | nls_cv_header_libgt=libgettext.h | |
8082 | fi | |
8083 | ||
8084 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
8085 | # because some of the sources are only built for this goal. | |
8086 | if test "$PACKAGE" = gettext; then | |
8087 | USE_NLS=yes | |
8088 | USE_INCLUDED_LIBINTL=yes | |
8089 | fi | |
8090 | ||
42ecbf5e DJ |
8091 | for lang in $ALL_LINGUAS; do |
8092 | GMOFILES="$GMOFILES $lang.gmo" | |
8093 | POFILES="$POFILES $lang.po" | |
8094 | done | |
8095 | ||
8096 | ||
8097 | ||
8098 | ||
8099 | ||
8100 | ||
8101 | ||
8102 | ||
8103 | ||
8104 | ||
8105 | ||
252b5132 | 8106 | |
c46f8c51 | 8107 | if test "x$CATOBJEXT" != "x"; then |
42ecbf5e DJ |
8108 | |
8109 | cat >>confdefs.h <<\_ACEOF | |
c46f8c51 | 8110 | #define ENABLE_NLS 1 |
42ecbf5e | 8111 | _ACEOF |
c46f8c51 AC |
8112 | |
8113 | fi | |
42ecbf5e | 8114 | |
252b5132 RH |
8115 | |
8116 | if test "x$CATOBJEXT" != "x"; then | |
8117 | if test "x$ALL_LINGUAS" = "x"; then | |
8118 | LINGUAS= | |
8119 | else | |
42ecbf5e DJ |
8120 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
8121 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
252b5132 RH |
8122 | NEW_LINGUAS= |
8123 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
8124 | case "$ALL_LINGUAS" in | |
8125 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
8126 | esac | |
8127 | done | |
8128 | LINGUAS=$NEW_LINGUAS | |
42ecbf5e DJ |
8129 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 |
8130 | echo "${ECHO_T}$LINGUAS" >&6 | |
252b5132 RH |
8131 | fi |
8132 | ||
8133 | if test -n "$LINGUAS"; then | |
8134 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
8135 | fi | |
8136 | fi | |
8137 | ||
8138 | if test $ac_cv_header_locale_h = yes; then | |
8139 | INCLUDE_LOCALE_H="#include <locale.h>" | |
8140 | else | |
8141 | INCLUDE_LOCALE_H="\ | |
8142 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
8143 | fi | |
42ecbf5e | 8144 | |
252b5132 RH |
8145 | |
8146 | if test -f $srcdir/po2tbl.sed.in; then | |
8147 | if test "$CATOBJEXT" = ".cat"; then | |
42ecbf5e DJ |
8148 | if test "${ac_cv_header_linux_version_h+set}" = set; then |
8149 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
8150 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
8151 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
8152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8153 | fi | |
8154 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
8155 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
8156 | else | |
8157 | # Is the header compilable? | |
8158 | echo "$as_me:$LINENO: checking linux/version.h usability" >&5 | |
8159 | echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6 | |
8160 | cat >conftest.$ac_ext <<_ACEOF | |
8161 | /* confdefs.h. */ | |
8162 | _ACEOF | |
8163 | cat confdefs.h >>conftest.$ac_ext | |
8164 | cat >>conftest.$ac_ext <<_ACEOF | |
8165 | /* end confdefs.h. */ | |
8166 | $ac_includes_default | |
e5a52504 | 8167 | #include <linux/version.h> |
42ecbf5e DJ |
8168 | _ACEOF |
8169 | rm -f conftest.$ac_objext | |
8170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8171 | (eval $ac_compile) 2>conftest.er1 | |
8172 | ac_status=$? | |
8173 | grep -v '^ *+' conftest.er1 >conftest.err | |
8174 | rm -f conftest.er1 | |
8175 | cat conftest.err >&5 | |
8176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8177 | (exit $ac_status); } && | |
b7d4af3a JW |
8178 | { ac_try='test -z "$ac_c_werror_flag" |
8179 | || test ! -s conftest.err' | |
42ecbf5e DJ |
8180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8181 | (eval $ac_try) 2>&5 | |
8182 | ac_status=$? | |
8183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8184 | (exit $ac_status); }; } && | |
8185 | { ac_try='test -s conftest.$ac_objext' | |
8186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8187 | (eval $ac_try) 2>&5 | |
8188 | ac_status=$? | |
8189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8190 | (exit $ac_status); }; }; then | |
8191 | ac_header_compiler=yes | |
8192 | else | |
8193 | echo "$as_me: failed program was:" >&5 | |
8194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8195 | ||
8196 | ac_header_compiler=no | |
8197 | fi | |
8198 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8199 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8200 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8201 | ||
8202 | # Is the header present? | |
8203 | echo "$as_me:$LINENO: checking linux/version.h presence" >&5 | |
8204 | echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6 | |
8205 | cat >conftest.$ac_ext <<_ACEOF | |
8206 | /* confdefs.h. */ | |
8207 | _ACEOF | |
8208 | cat confdefs.h >>conftest.$ac_ext | |
8209 | cat >>conftest.$ac_ext <<_ACEOF | |
8210 | /* end confdefs.h. */ | |
8211 | #include <linux/version.h> | |
8212 | _ACEOF | |
8213 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8214 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8215 | ac_status=$? | |
8216 | grep -v '^ *+' conftest.er1 >conftest.err | |
8217 | rm -f conftest.er1 | |
8218 | cat conftest.err >&5 | |
8219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8220 | (exit $ac_status); } >/dev/null; then | |
8221 | if test -s conftest.err; then | |
8222 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8223 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8224 | else | |
8225 | ac_cpp_err= | |
8226 | fi | |
e5a52504 | 8227 | else |
42ecbf5e | 8228 | ac_cpp_err=yes |
e5a52504 | 8229 | fi |
42ecbf5e DJ |
8230 | if test -z "$ac_cpp_err"; then |
8231 | ac_header_preproc=yes | |
8232 | else | |
8233 | echo "$as_me: failed program was:" >&5 | |
8234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8235 | ||
8236 | ac_header_preproc=no | |
8237 | fi | |
8238 | rm -f conftest.err conftest.$ac_ext | |
8239 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8240 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8241 | ||
8242 | # So? What about this header? | |
8243 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8244 | yes:no: ) | |
8245 | { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8246 | echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8247 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5 | |
8248 | echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;} | |
8249 | ac_header_preproc=yes | |
8250 | ;; | |
8251 | no:yes:* ) | |
8252 | { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5 | |
8253 | echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;} | |
8254 | { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5 | |
8255 | echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;} | |
8256 | { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5 | |
8257 | echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;} | |
8258 | { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5 | |
8259 | echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
8260 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5 | |
8261 | echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;} | |
8262 | { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5 | |
8263 | echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;} | |
8264 | ( | |
8265 | cat <<\_ASBOX | |
8266 | ## ------------------------------------------ ## | |
8267 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8268 | ## ------------------------------------------ ## | |
8269 | _ASBOX | |
8270 | ) | | |
8271 | sed "s/^/$as_me: WARNING: /" >&2 | |
8272 | ;; | |
8273 | esac | |
8274 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
8275 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
8276 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
8277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8278 | else | |
8279 | ac_cv_header_linux_version_h=$ac_header_preproc | |
e5a52504 | 8280 | fi |
42ecbf5e DJ |
8281 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 |
8282 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
8283 | ||
8284 | fi | |
8285 | if test $ac_cv_header_linux_version_h = yes; then | |
252b5132 RH |
8286 | msgformat=linux |
8287 | else | |
42ecbf5e | 8288 | msgformat=xopen |
252b5132 RH |
8289 | fi |
8290 | ||
8291 | ||
42ecbf5e | 8292 | |
252b5132 RH |
8293 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed |
8294 | fi | |
8295 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
8296 | $srcdir/po2tbl.sed.in > po2tbl.sed | |
8297 | fi | |
8298 | ||
8299 | if test "$PACKAGE" = "gettext"; then | |
8300 | GT_NO="#NO#" | |
8301 | GT_YES= | |
8302 | else | |
8303 | GT_NO= | |
8304 | GT_YES="#YES#" | |
8305 | fi | |
42ecbf5e DJ |
8306 | |
8307 | ||
252b5132 RH |
8308 | |
8309 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | |
42ecbf5e | 8310 | |
252b5132 RH |
8311 | |
8312 | l= | |
42ecbf5e | 8313 | |
252b5132 | 8314 | |
fcd8210c | 8315 | if test -f $srcdir/po/POTFILES.in; then |
252b5132 RH |
8316 | test -d po || mkdir po |
8317 | if test "x$srcdir" != "x."; then | |
8318 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
8319 | posrcprefix="$srcdir/" | |
8320 | else | |
8321 | posrcprefix="../$srcdir/" | |
8322 | fi | |
8323 | else | |
8324 | posrcprefix="../" | |
8325 | fi | |
8326 | rm -f po/POTFILES | |
8327 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
8328 | < $srcdir/po/POTFILES.in > po/POTFILES | |
8329 | fi | |
252b5132 | 8330 | |
42ecbf5e DJ |
8331 | |
8332 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
8333 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
252b5132 RH |
8334 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
8335 | if test "${enable_maintainer_mode+set}" = set; then | |
8336 | enableval="$enable_maintainer_mode" | |
8337 | USE_MAINTAINER_MODE=$enableval | |
8338 | else | |
8339 | USE_MAINTAINER_MODE=no | |
42ecbf5e DJ |
8340 | fi; |
8341 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
8342 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
252b5132 | 8343 | |
252b5132 RH |
8344 | |
8345 | if test $USE_MAINTAINER_MODE = yes; then | |
8346 | MAINTAINER_MODE_TRUE= | |
8347 | MAINTAINER_MODE_FALSE='#' | |
8348 | else | |
8349 | MAINTAINER_MODE_TRUE='#' | |
8350 | MAINTAINER_MODE_FALSE= | |
8351 | fi | |
252b5132 | 8352 | |
42ecbf5e | 8353 | MAINT=$MAINTAINER_MODE_TRUE |
252b5132 | 8354 | |
d15b04bd | 8355 | |
e5a52504 | 8356 | |
d15b04bd | 8357 | if test -n "$EXEEXT"; then |
42ecbf5e DJ |
8358 | |
8359 | cat >>confdefs.h <<\_ACEOF | |
2481e6a2 | 8360 | #define HAVE_EXECUTABLE_SUFFIX 1 |
42ecbf5e | 8361 | _ACEOF |
2481e6a2 ILT |
8362 | |
8363 | fi | |
42ecbf5e DJ |
8364 | |
8365 | cat >>confdefs.h <<_ACEOF | |
bb0cb4db | 8366 | #define EXECUTABLE_SUFFIX "${EXEEXT}" |
42ecbf5e | 8367 | _ACEOF |
bb0cb4db | 8368 | |
252b5132 RH |
8369 | |
8370 | # host-specific stuff: | |
8371 | ||
8372 | HDEFINES= | |
8373 | ||
8374 | . ${srcdir}/../bfd/configure.host | |
8375 | ||
8376 | ||
8377 | AR=${AR-ar} | |
8378 | ||
42ecbf5e DJ |
8379 | if test -n "$ac_tool_prefix"; then |
8380 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
8381 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
8382 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8383 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8384 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
8385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
8386 | else |
8387 | if test -n "$RANLIB"; then | |
8388 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8389 | else | |
42ecbf5e DJ |
8390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8391 | for as_dir in $PATH | |
8392 | do | |
8393 | IFS=$as_save_IFS | |
8394 | test -z "$as_dir" && as_dir=. | |
8395 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8396 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8397 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
8398 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8399 | break 2 | |
8400 | fi | |
8401 | done | |
8402 | done | |
8403 | ||
252b5132 RH |
8404 | fi |
8405 | fi | |
42ecbf5e | 8406 | RANLIB=$ac_cv_prog_RANLIB |
252b5132 | 8407 | if test -n "$RANLIB"; then |
42ecbf5e DJ |
8408 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
8409 | echo "${ECHO_T}$RANLIB" >&6 | |
8410 | else | |
8411 | echo "$as_me:$LINENO: result: no" >&5 | |
8412 | echo "${ECHO_T}no" >&6 | |
8413 | fi | |
8414 | ||
8415 | fi | |
8416 | if test -z "$ac_cv_prog_RANLIB"; then | |
8417 | ac_ct_RANLIB=$RANLIB | |
8418 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8419 | set dummy ranlib; ac_word=$2 | |
8420 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8421 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8422 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
8423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8424 | else | |
8425 | if test -n "$ac_ct_RANLIB"; then | |
8426 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
8427 | else | |
8428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8429 | for as_dir in $PATH | |
8430 | do | |
8431 | IFS=$as_save_IFS | |
8432 | test -z "$as_dir" && as_dir=. | |
8433 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8434 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8435 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
8436 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8437 | break 2 | |
8438 | fi | |
8439 | done | |
8440 | done | |
8441 | ||
8442 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
8443 | fi | |
8444 | fi | |
8445 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
8446 | if test -n "$ac_ct_RANLIB"; then | |
8447 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
8448 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
8449 | else | |
8450 | echo "$as_me:$LINENO: result: no" >&5 | |
8451 | echo "${ECHO_T}no" >&6 | |
8452 | fi | |
8453 | ||
8454 | RANLIB=$ac_ct_RANLIB | |
252b5132 | 8455 | else |
42ecbf5e | 8456 | RANLIB="$ac_cv_prog_RANLIB" |
252b5132 RH |
8457 | fi |
8458 | ||
8459 | # Find a good install program. We prefer a C program (faster), | |
8460 | # so one script is as good as another. But avoid the broken or | |
8461 | # incompatible versions: | |
8462 | # SysV /etc/install, /usr/sbin/install | |
8463 | # SunOS /usr/etc/install | |
8464 | # IRIX /sbin/install | |
8465 | # AIX /bin/install | |
42ecbf5e | 8466 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
252b5132 RH |
8467 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
8468 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8469 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
42ecbf5e | 8470 | # OS/2's system install, which has a completely different semantic |
252b5132 | 8471 | # ./install, which can be erroneously created by make from ./install.sh. |
42ecbf5e DJ |
8472 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
8473 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
252b5132 | 8474 | if test -z "$INSTALL"; then |
42ecbf5e DJ |
8475 | if test "${ac_cv_path_install+set}" = set; then |
8476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 8477 | else |
42ecbf5e DJ |
8478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8479 | for as_dir in $PATH | |
8480 | do | |
8481 | IFS=$as_save_IFS | |
8482 | test -z "$as_dir" && as_dir=. | |
8483 | # Account for people who put trailing slashes in PATH elements. | |
8484 | case $as_dir/ in | |
8485 | ./ | .// | /cC/* | \ | |
8486 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
8487 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
8488 | /usr/ucb/* ) ;; | |
8489 | *) | |
8490 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8491 | # Don't use installbsd from OSF since it installs stuff as root | |
8492 | # by default. | |
8493 | for ac_prog in ginstall scoinst install; do | |
8494 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8495 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
252b5132 | 8496 | if test $ac_prog = install && |
42ecbf5e | 8497 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
252b5132 RH |
8498 | # AIX install. It has an incompatible calling convention. |
8499 | : | |
42ecbf5e DJ |
8500 | elif test $ac_prog = install && |
8501 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
8502 | # program-specific install script used by HP pwplus--don't use. | |
8503 | : | |
252b5132 | 8504 | else |
42ecbf5e DJ |
8505 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
8506 | break 3 | |
252b5132 RH |
8507 | fi |
8508 | fi | |
8509 | done | |
42ecbf5e DJ |
8510 | done |
8511 | ;; | |
8512 | esac | |
8513 | done | |
8514 | ||
252b5132 RH |
8515 | |
8516 | fi | |
8517 | if test "${ac_cv_path_install+set}" = set; then | |
42ecbf5e | 8518 | INSTALL=$ac_cv_path_install |
252b5132 RH |
8519 | else |
8520 | # As a last resort, use the slow shell script. We don't cache a | |
8521 | # path for INSTALL within a source directory, because that will | |
8522 | # break other packages using the cache if that directory is | |
8523 | # removed, or if the path is relative. | |
42ecbf5e | 8524 | INSTALL=$ac_install_sh |
252b5132 RH |
8525 | fi |
8526 | fi | |
42ecbf5e DJ |
8527 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
8528 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
8529 | |
8530 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8531 | # It thinks the first close brace ends the variable substitution. | |
8532 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8533 | ||
42ecbf5e | 8534 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
8535 | |
8536 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8537 | ||
8538 | ||
8539 | # Put a plausible default for CC_FOR_BUILD in Makefile. | |
8540 | if test -z "$CC_FOR_BUILD"; then | |
8541 | if test "x$cross_compiling" = "xno"; then | |
8542 | CC_FOR_BUILD='$(CC)' | |
8543 | else | |
8544 | CC_FOR_BUILD=gcc | |
8545 | fi | |
8546 | fi | |
8547 | ||
8548 | # Also set EXEEXT_FOR_BUILD. | |
8549 | if test "x$cross_compiling" = "xno"; then | |
8550 | EXEEXT_FOR_BUILD='$(EXEEXT)' | |
8551 | else | |
42ecbf5e DJ |
8552 | echo "$as_me:$LINENO: checking for build system executable suffix" >&5 |
8553 | echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6 | |
8554 | if test "${bfd_cv_build_exeext+set}" = set; then | |
8555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 8556 | else |
7a7b06ef ILT |
8557 | rm -f conftest* |
8558 | echo 'int main () { return 0; }' > conftest.c | |
8559 | bfd_cv_build_exeext= | |
8560 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 | |
8561 | for file in conftest.*; do | |
8562 | case $file in | |
8563 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; | |
8564 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; | |
8565 | esac | |
8566 | done | |
8567 | rm -f conftest* | |
8568 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no | |
252b5132 | 8569 | fi |
42ecbf5e DJ |
8570 | echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5 |
8571 | echo "${ECHO_T}$bfd_cv_build_exeext" >&6 | |
252b5132 RH |
8572 | EXEEXT_FOR_BUILD="" |
8573 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} | |
8574 | fi | |
8575 | ||
8576 | ||
8a965946 ILT |
8577 | DEMANGLER_NAME=c++filt |
8578 | case "${host}" in | |
8579 | *-*-go32* | *-*-msdos*) | |
8580 | DEMANGLER_NAME=cxxfilt | |
8581 | esac | |
8582 | ||
8583 | ||
42ecbf5e DJ |
8584 | |
8585 | ||
8586 | ||
8587 | ||
8588 | ||
8589 | ||
8590 | for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h | |
252b5132 | 8591 | do |
42ecbf5e DJ |
8592 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8593 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8594 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8595 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8596 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8598 | fi | |
8599 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8600 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8601 | else | |
8602 | # Is the header compilable? | |
8603 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8604 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8605 | cat >conftest.$ac_ext <<_ACEOF | |
8606 | /* confdefs.h. */ | |
8607 | _ACEOF | |
8608 | cat confdefs.h >>conftest.$ac_ext | |
8609 | cat >>conftest.$ac_ext <<_ACEOF | |
8610 | /* end confdefs.h. */ | |
8611 | $ac_includes_default | |
8612 | #include <$ac_header> | |
8613 | _ACEOF | |
8614 | rm -f conftest.$ac_objext | |
8615 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8616 | (eval $ac_compile) 2>conftest.er1 | |
8617 | ac_status=$? | |
8618 | grep -v '^ *+' conftest.er1 >conftest.err | |
8619 | rm -f conftest.er1 | |
8620 | cat conftest.err >&5 | |
8621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8622 | (exit $ac_status); } && | |
b7d4af3a JW |
8623 | { ac_try='test -z "$ac_c_werror_flag" |
8624 | || test ! -s conftest.err' | |
42ecbf5e DJ |
8625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8626 | (eval $ac_try) 2>&5 | |
8627 | ac_status=$? | |
8628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8629 | (exit $ac_status); }; } && | |
8630 | { ac_try='test -s conftest.$ac_objext' | |
8631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8632 | (eval $ac_try) 2>&5 | |
8633 | ac_status=$? | |
8634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8635 | (exit $ac_status); }; }; then | |
8636 | ac_header_compiler=yes | |
8637 | else | |
8638 | echo "$as_me: failed program was:" >&5 | |
8639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8640 | ||
8641 | ac_header_compiler=no | |
8642 | fi | |
8643 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8644 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8645 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8646 | ||
8647 | # Is the header present? | |
8648 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8649 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8650 | cat >conftest.$ac_ext <<_ACEOF | |
8651 | /* confdefs.h. */ | |
8652 | _ACEOF | |
8653 | cat confdefs.h >>conftest.$ac_ext | |
8654 | cat >>conftest.$ac_ext <<_ACEOF | |
8655 | /* end confdefs.h. */ | |
8656 | #include <$ac_header> | |
8657 | _ACEOF | |
8658 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8659 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8660 | ac_status=$? | |
8661 | grep -v '^ *+' conftest.er1 >conftest.err | |
8662 | rm -f conftest.er1 | |
8663 | cat conftest.err >&5 | |
8664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8665 | (exit $ac_status); } >/dev/null; then | |
8666 | if test -s conftest.err; then | |
8667 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8668 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8669 | else | |
8670 | ac_cpp_err= | |
8671 | fi | |
252b5132 | 8672 | else |
42ecbf5e | 8673 | ac_cpp_err=yes |
252b5132 | 8674 | fi |
42ecbf5e DJ |
8675 | if test -z "$ac_cpp_err"; then |
8676 | ac_header_preproc=yes | |
8677 | else | |
8678 | echo "$as_me: failed program was:" >&5 | |
8679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8680 | ||
8681 | ac_header_preproc=no | |
252b5132 | 8682 | fi |
42ecbf5e DJ |
8683 | rm -f conftest.err conftest.$ac_ext |
8684 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8685 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8686 | ||
8687 | # So? What about this header? | |
8688 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8689 | yes:no: ) | |
8690 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8691 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8692 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8693 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8694 | ac_header_preproc=yes | |
8695 | ;; | |
8696 | no:yes:* ) | |
8697 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8698 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8699 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8700 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8701 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8702 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8703 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8704 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8705 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8706 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8707 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8708 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
8709 | ( | |
8710 | cat <<\_ASBOX | |
8711 | ## ------------------------------------------ ## | |
8712 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8713 | ## ------------------------------------------ ## | |
8714 | _ASBOX | |
8715 | ) | | |
8716 | sed "s/^/$as_me: WARNING: /" >&2 | |
8717 | ;; | |
8718 | esac | |
8719 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8720 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8721 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 8723 | else |
42ecbf5e DJ |
8724 | eval "$as_ac_Header=\$ac_header_preproc" |
8725 | fi | |
8726 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8727 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8728 | ||
252b5132 | 8729 | fi |
42ecbf5e DJ |
8730 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8731 | cat >>confdefs.h <<_ACEOF | |
8732 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8733 | _ACEOF | |
8734 | ||
8735 | fi | |
8736 | ||
252b5132 RH |
8737 | done |
8738 | ||
42ecbf5e DJ |
8739 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
8740 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 | |
8741 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
8742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8743 | else | |
8744 | cat >conftest.$ac_ext <<_ACEOF | |
8745 | /* confdefs.h. */ | |
8746 | _ACEOF | |
8747 | cat confdefs.h >>conftest.$ac_ext | |
8748 | cat >>conftest.$ac_ext <<_ACEOF | |
8749 | /* end confdefs.h. */ | |
252b5132 RH |
8750 | #include <sys/types.h> |
8751 | #include <sys/wait.h> | |
8752 | #ifndef WEXITSTATUS | |
42ecbf5e | 8753 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
252b5132 RH |
8754 | #endif |
8755 | #ifndef WIFEXITED | |
42ecbf5e | 8756 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
252b5132 | 8757 | #endif |
42ecbf5e DJ |
8758 | |
8759 | int | |
8760 | main () | |
8761 | { | |
8762 | int s; | |
8763 | wait (&s); | |
8764 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
8765 | ; | |
8766 | return 0; | |
8767 | } | |
8768 | _ACEOF | |
8769 | rm -f conftest.$ac_objext | |
8770 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8771 | (eval $ac_compile) 2>conftest.er1 | |
8772 | ac_status=$? | |
8773 | grep -v '^ *+' conftest.er1 >conftest.err | |
8774 | rm -f conftest.er1 | |
8775 | cat conftest.err >&5 | |
8776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8777 | (exit $ac_status); } && | |
b7d4af3a JW |
8778 | { ac_try='test -z "$ac_c_werror_flag" |
8779 | || test ! -s conftest.err' | |
42ecbf5e DJ |
8780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8781 | (eval $ac_try) 2>&5 | |
8782 | ac_status=$? | |
8783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8784 | (exit $ac_status); }; } && | |
8785 | { ac_try='test -s conftest.$ac_objext' | |
8786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8787 | (eval $ac_try) 2>&5 | |
8788 | ac_status=$? | |
8789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8790 | (exit $ac_status); }; }; then | |
252b5132 RH |
8791 | ac_cv_header_sys_wait_h=yes |
8792 | else | |
42ecbf5e DJ |
8793 | echo "$as_me: failed program was:" >&5 |
8794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8795 | ||
8796 | ac_cv_header_sys_wait_h=no | |
252b5132 | 8797 | fi |
42ecbf5e | 8798 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 8799 | fi |
42ecbf5e DJ |
8800 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
8801 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 | |
d15b04bd | 8802 | if test $ac_cv_header_sys_wait_h = yes; then |
42ecbf5e DJ |
8803 | |
8804 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 8805 | #define HAVE_SYS_WAIT_H 1 |
42ecbf5e | 8806 | _ACEOF |
252b5132 RH |
8807 | |
8808 | fi | |
8809 | ||
8810 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
8811 | # for constant arguments. Useless! | |
42ecbf5e DJ |
8812 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
8813 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
8814 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
8815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8816 | else | |
8817 | cat >conftest.$ac_ext <<_ACEOF | |
8818 | /* confdefs.h. */ | |
8819 | _ACEOF | |
8820 | cat confdefs.h >>conftest.$ac_ext | |
8821 | cat >>conftest.$ac_ext <<_ACEOF | |
8822 | /* end confdefs.h. */ | |
252b5132 | 8823 | #include <alloca.h> |
42ecbf5e DJ |
8824 | int |
8825 | main () | |
8826 | { | |
8827 | char *p = (char *) alloca (2 * sizeof (int)); | |
8828 | ; | |
8829 | return 0; | |
8830 | } | |
8831 | _ACEOF | |
8832 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8833 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8834 | (eval $ac_link) 2>conftest.er1 | |
8835 | ac_status=$? | |
8836 | grep -v '^ *+' conftest.er1 >conftest.err | |
8837 | rm -f conftest.er1 | |
8838 | cat conftest.err >&5 | |
8839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8840 | (exit $ac_status); } && | |
b7d4af3a JW |
8841 | { ac_try='test -z "$ac_c_werror_flag" |
8842 | || test ! -s conftest.err' | |
42ecbf5e DJ |
8843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8844 | (eval $ac_try) 2>&5 | |
8845 | ac_status=$? | |
8846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8847 | (exit $ac_status); }; } && | |
8848 | { ac_try='test -s conftest$ac_exeext' | |
8849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8850 | (eval $ac_try) 2>&5 | |
8851 | ac_status=$? | |
8852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8853 | (exit $ac_status); }; }; then | |
8854 | ac_cv_working_alloca_h=yes | |
8855 | else | |
8856 | echo "$as_me: failed program was:" >&5 | |
8857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8858 | ||
8859 | ac_cv_working_alloca_h=no | |
8860 | fi | |
8861 | rm -f conftest.err conftest.$ac_objext \ | |
8862 | conftest$ac_exeext conftest.$ac_ext | |
8863 | fi | |
8864 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
8865 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
8866 | if test $ac_cv_working_alloca_h = yes; then | |
8867 | ||
8868 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 8869 | #define HAVE_ALLOCA_H 1 |
42ecbf5e | 8870 | _ACEOF |
252b5132 RH |
8871 | |
8872 | fi | |
8873 | ||
42ecbf5e DJ |
8874 | echo "$as_me:$LINENO: checking for alloca" >&5 |
8875 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
8876 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
8877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 8878 | else |
42ecbf5e DJ |
8879 | cat >conftest.$ac_ext <<_ACEOF |
8880 | /* confdefs.h. */ | |
8881 | _ACEOF | |
8882 | cat confdefs.h >>conftest.$ac_ext | |
8883 | cat >>conftest.$ac_ext <<_ACEOF | |
8884 | /* end confdefs.h. */ | |
252b5132 RH |
8885 | #ifdef __GNUC__ |
8886 | # define alloca __builtin_alloca | |
8887 | #else | |
8888 | # ifdef _MSC_VER | |
8889 | # include <malloc.h> | |
8890 | # define alloca _alloca | |
8891 | # else | |
8892 | # if HAVE_ALLOCA_H | |
8893 | # include <alloca.h> | |
8894 | # else | |
8895 | # ifdef _AIX | |
8896 | #pragma alloca | |
8897 | # else | |
8898 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
8899 | char *alloca (); | |
8900 | # endif | |
8901 | # endif | |
8902 | # endif | |
8903 | # endif | |
8904 | #endif | |
8905 | ||
42ecbf5e DJ |
8906 | int |
8907 | main () | |
8908 | { | |
8909 | char *p = (char *) alloca (1); | |
8910 | ; | |
8911 | return 0; | |
8912 | } | |
8913 | _ACEOF | |
8914 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8915 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8916 | (eval $ac_link) 2>conftest.er1 | |
8917 | ac_status=$? | |
8918 | grep -v '^ *+' conftest.er1 >conftest.err | |
8919 | rm -f conftest.er1 | |
8920 | cat conftest.err >&5 | |
8921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8922 | (exit $ac_status); } && | |
b7d4af3a JW |
8923 | { ac_try='test -z "$ac_c_werror_flag" |
8924 | || test ! -s conftest.err' | |
42ecbf5e DJ |
8925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8926 | (eval $ac_try) 2>&5 | |
8927 | ac_status=$? | |
8928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8929 | (exit $ac_status); }; } && | |
8930 | { ac_try='test -s conftest$ac_exeext' | |
8931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8932 | (eval $ac_try) 2>&5 | |
8933 | ac_status=$? | |
8934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8935 | (exit $ac_status); }; }; then | |
252b5132 RH |
8936 | ac_cv_func_alloca_works=yes |
8937 | else | |
42ecbf5e DJ |
8938 | echo "$as_me: failed program was:" >&5 |
8939 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8940 | ||
8941 | ac_cv_func_alloca_works=no | |
252b5132 | 8942 | fi |
42ecbf5e DJ |
8943 | rm -f conftest.err conftest.$ac_objext \ |
8944 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 8945 | fi |
42ecbf5e DJ |
8946 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
8947 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
252b5132 | 8948 | |
252b5132 | 8949 | if test $ac_cv_func_alloca_works = yes; then |
e5a52504 | 8950 | |
42ecbf5e DJ |
8951 | cat >>confdefs.h <<\_ACEOF |
8952 | #define HAVE_ALLOCA 1 | |
8953 | _ACEOF | |
e5a52504 | 8954 | |
42ecbf5e | 8955 | else |
d15b04bd | 8956 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
42ecbf5e DJ |
8957 | # that cause trouble. Some versions do not even contain alloca or |
8958 | # contain a buggy version. If you still want to use their alloca, | |
8959 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
8960 | ||
8961 | ALLOCA=alloca.$ac_objext | |
8962 | ||
8963 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 8964 | #define C_ALLOCA 1 |
42ecbf5e | 8965 | _ACEOF |
252b5132 RH |
8966 | |
8967 | ||
42ecbf5e DJ |
8968 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
8969 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
8970 | if test "${ac_cv_os_cray+set}" = set; then | |
8971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 8972 | else |
42ecbf5e DJ |
8973 | cat >conftest.$ac_ext <<_ACEOF |
8974 | /* confdefs.h. */ | |
8975 | _ACEOF | |
8976 | cat confdefs.h >>conftest.$ac_ext | |
8977 | cat >>conftest.$ac_ext <<_ACEOF | |
8978 | /* end confdefs.h. */ | |
252b5132 RH |
8979 | #if defined(CRAY) && ! defined(CRAY2) |
8980 | webecray | |
8981 | #else | |
8982 | wenotbecray | |
8983 | #endif | |
8984 | ||
42ecbf5e | 8985 | _ACEOF |
252b5132 | 8986 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
42ecbf5e | 8987 | $EGREP "webecray" >/dev/null 2>&1; then |
252b5132 RH |
8988 | ac_cv_os_cray=yes |
8989 | else | |
252b5132 RH |
8990 | ac_cv_os_cray=no |
8991 | fi | |
8992 | rm -f conftest* | |
8993 | ||
8994 | fi | |
42ecbf5e DJ |
8995 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
8996 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
d15b04bd | 8997 | if test $ac_cv_os_cray = yes; then |
42ecbf5e DJ |
8998 | for ac_func in _getb67 GETB67 getb67; do |
8999 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9000 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9001 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9002 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9003 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9004 | else | |
9005 | cat >conftest.$ac_ext <<_ACEOF | |
9006 | /* confdefs.h. */ | |
9007 | _ACEOF | |
9008 | cat confdefs.h >>conftest.$ac_ext | |
9009 | cat >>conftest.$ac_ext <<_ACEOF | |
9010 | /* end confdefs.h. */ | |
9011 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9012 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9013 | #define $ac_func innocuous_$ac_func | |
9014 | ||
252b5132 | 9015 | /* System header to define __stub macros and hopefully few prototypes, |
42ecbf5e DJ |
9016 | which can conflict with char $ac_func (); below. |
9017 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9018 | <limits.h> exists even on freestanding compilers. */ | |
9019 | ||
9020 | #ifdef __STDC__ | |
9021 | # include <limits.h> | |
9022 | #else | |
9023 | # include <assert.h> | |
9024 | #endif | |
d15b04bd | 9025 | |
42ecbf5e | 9026 | #undef $ac_func |
d15b04bd | 9027 | |
42ecbf5e DJ |
9028 | /* Override any gcc2 internal prototype to avoid an error. */ |
9029 | #ifdef __cplusplus | |
9030 | extern "C" | |
9031 | { | |
9032 | #endif | |
9033 | /* We use char because int might match the return type of a gcc2 | |
9034 | builtin and then its argument prototype would still apply. */ | |
9035 | char $ac_func (); | |
252b5132 RH |
9036 | /* The GNU C library defines this for functions which it implements |
9037 | to always fail with ENOSYS. Some functions are actually named | |
9038 | something starting with __ and the normal name is an alias. */ | |
9039 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9040 | choke me | |
9041 | #else | |
42ecbf5e DJ |
9042 | char (*f) () = $ac_func; |
9043 | #endif | |
9044 | #ifdef __cplusplus | |
9045 | } | |
252b5132 RH |
9046 | #endif |
9047 | ||
42ecbf5e DJ |
9048 | int |
9049 | main () | |
9050 | { | |
9051 | return f != $ac_func; | |
9052 | ; | |
9053 | return 0; | |
9054 | } | |
9055 | _ACEOF | |
9056 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9057 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9058 | (eval $ac_link) 2>conftest.er1 | |
9059 | ac_status=$? | |
9060 | grep -v '^ *+' conftest.er1 >conftest.err | |
9061 | rm -f conftest.er1 | |
9062 | cat conftest.err >&5 | |
9063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9064 | (exit $ac_status); } && | |
b7d4af3a JW |
9065 | { ac_try='test -z "$ac_c_werror_flag" |
9066 | || test ! -s conftest.err' | |
42ecbf5e DJ |
9067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9068 | (eval $ac_try) 2>&5 | |
9069 | ac_status=$? | |
9070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9071 | (exit $ac_status); }; } && | |
9072 | { ac_try='test -s conftest$ac_exeext' | |
9073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9074 | (eval $ac_try) 2>&5 | |
9075 | ac_status=$? | |
9076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9077 | (exit $ac_status); }; }; then | |
9078 | eval "$as_ac_var=yes" | |
9079 | else | |
9080 | echo "$as_me: failed program was:" >&5 | |
9081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9082 | ||
9083 | eval "$as_ac_var=no" | |
9084 | fi | |
9085 | rm -f conftest.err conftest.$ac_objext \ | |
9086 | conftest$ac_exeext conftest.$ac_ext | |
9087 | fi | |
9088 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
9089 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9090 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9091 | ||
9092 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 9093 | #define CRAY_STACKSEG_END $ac_func |
42ecbf5e | 9094 | _ACEOF |
252b5132 | 9095 | |
42ecbf5e | 9096 | break |
252b5132 RH |
9097 | fi |
9098 | ||
42ecbf5e | 9099 | done |
252b5132 RH |
9100 | fi |
9101 | ||
42ecbf5e DJ |
9102 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
9103 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
9104 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
9105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
9106 | else |
9107 | if test "$cross_compiling" = yes; then | |
9108 | ac_cv_c_stack_direction=0 | |
9109 | else | |
42ecbf5e DJ |
9110 | cat >conftest.$ac_ext <<_ACEOF |
9111 | /* confdefs.h. */ | |
9112 | _ACEOF | |
9113 | cat confdefs.h >>conftest.$ac_ext | |
9114 | cat >>conftest.$ac_ext <<_ACEOF | |
9115 | /* end confdefs.h. */ | |
9116 | int | |
252b5132 RH |
9117 | find_stack_direction () |
9118 | { | |
9119 | static char *addr = 0; | |
9120 | auto char dummy; | |
9121 | if (addr == 0) | |
9122 | { | |
9123 | addr = &dummy; | |
9124 | return find_stack_direction (); | |
9125 | } | |
9126 | else | |
9127 | return (&dummy > addr) ? 1 : -1; | |
9128 | } | |
42ecbf5e DJ |
9129 | |
9130 | int | |
252b5132 RH |
9131 | main () |
9132 | { | |
42ecbf5e | 9133 | exit (find_stack_direction () < 0); |
252b5132 | 9134 | } |
42ecbf5e DJ |
9135 | _ACEOF |
9136 | rm -f conftest$ac_exeext | |
9137 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9138 | (eval $ac_link) 2>&5 | |
9139 | ac_status=$? | |
9140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9141 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
9142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9143 | (eval $ac_try) 2>&5 | |
9144 | ac_status=$? | |
9145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9146 | (exit $ac_status); }; }; then | |
252b5132 RH |
9147 | ac_cv_c_stack_direction=1 |
9148 | else | |
42ecbf5e DJ |
9149 | echo "$as_me: program exited with status $ac_status" >&5 |
9150 | echo "$as_me: failed program was:" >&5 | |
9151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9152 | ||
9153 | ( exit $ac_status ) | |
9154 | ac_cv_c_stack_direction=-1 | |
252b5132 | 9155 | fi |
42ecbf5e | 9156 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 9157 | fi |
252b5132 | 9158 | fi |
42ecbf5e DJ |
9159 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
9160 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
252b5132 | 9161 | |
42ecbf5e | 9162 | cat >>confdefs.h <<_ACEOF |
252b5132 | 9163 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
42ecbf5e DJ |
9164 | _ACEOF |
9165 | ||
252b5132 RH |
9166 | |
9167 | fi | |
9168 | ||
42ecbf5e DJ |
9169 | |
9170 | ||
9171 | ||
9172 | ||
9173 | ||
9710509e | 9174 | for ac_func in sbrk utimes setmode getc_unlocked strcoll |
252b5132 | 9175 | do |
42ecbf5e DJ |
9176 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9177 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9178 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9179 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9181 | else | |
9182 | cat >conftest.$ac_ext <<_ACEOF | |
9183 | /* confdefs.h. */ | |
9184 | _ACEOF | |
9185 | cat confdefs.h >>conftest.$ac_ext | |
9186 | cat >>conftest.$ac_ext <<_ACEOF | |
9187 | /* end confdefs.h. */ | |
9188 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9189 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9190 | #define $ac_func innocuous_$ac_func | |
9191 | ||
252b5132 | 9192 | /* System header to define __stub macros and hopefully few prototypes, |
42ecbf5e DJ |
9193 | which can conflict with char $ac_func (); below. |
9194 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9195 | <limits.h> exists even on freestanding compilers. */ | |
9196 | ||
9197 | #ifdef __STDC__ | |
9198 | # include <limits.h> | |
9199 | #else | |
9200 | # include <assert.h> | |
9201 | #endif | |
d15b04bd | 9202 | |
42ecbf5e | 9203 | #undef $ac_func |
d15b04bd | 9204 | |
42ecbf5e DJ |
9205 | /* Override any gcc2 internal prototype to avoid an error. */ |
9206 | #ifdef __cplusplus | |
9207 | extern "C" | |
9208 | { | |
9209 | #endif | |
9210 | /* We use char because int might match the return type of a gcc2 | |
9211 | builtin and then its argument prototype would still apply. */ | |
9212 | char $ac_func (); | |
252b5132 RH |
9213 | /* The GNU C library defines this for functions which it implements |
9214 | to always fail with ENOSYS. Some functions are actually named | |
9215 | something starting with __ and the normal name is an alias. */ | |
9216 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9217 | choke me | |
9218 | #else | |
42ecbf5e DJ |
9219 | char (*f) () = $ac_func; |
9220 | #endif | |
9221 | #ifdef __cplusplus | |
9222 | } | |
252b5132 RH |
9223 | #endif |
9224 | ||
42ecbf5e DJ |
9225 | int |
9226 | main () | |
9227 | { | |
9228 | return f != $ac_func; | |
9229 | ; | |
9230 | return 0; | |
9231 | } | |
9232 | _ACEOF | |
9233 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9234 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9235 | (eval $ac_link) 2>conftest.er1 | |
9236 | ac_status=$? | |
9237 | grep -v '^ *+' conftest.er1 >conftest.err | |
9238 | rm -f conftest.er1 | |
9239 | cat conftest.err >&5 | |
9240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9241 | (exit $ac_status); } && | |
b7d4af3a JW |
9242 | { ac_try='test -z "$ac_c_werror_flag" |
9243 | || test ! -s conftest.err' | |
42ecbf5e DJ |
9244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9245 | (eval $ac_try) 2>&5 | |
9246 | ac_status=$? | |
9247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9248 | (exit $ac_status); }; } && | |
9249 | { ac_try='test -s conftest$ac_exeext' | |
9250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9251 | (eval $ac_try) 2>&5 | |
9252 | ac_status=$? | |
9253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9254 | (exit $ac_status); }; }; then | |
9255 | eval "$as_ac_var=yes" | |
9256 | else | |
9257 | echo "$as_me: failed program was:" >&5 | |
9258 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9259 | ||
9260 | eval "$as_ac_var=no" | |
9261 | fi | |
9262 | rm -f conftest.err conftest.$ac_objext \ | |
9263 | conftest$ac_exeext conftest.$ac_ext | |
9264 | fi | |
9265 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
9266 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9267 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9268 | cat >>confdefs.h <<_ACEOF | |
9269 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9270 | _ACEOF | |
252b5132 | 9271 | |
252b5132 RH |
9272 | fi |
9273 | done | |
9274 | ||
9275 | ||
cedd9a58 JJ |
9276 | # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE |
9277 | # needs to be defined for it | |
42ecbf5e DJ |
9278 | echo "$as_me:$LINENO: checking for fopen64" >&5 |
9279 | echo $ECHO_N "checking for fopen64... $ECHO_C" >&6 | |
9280 | if test "${bu_cv_have_fopen64+set}" = set; then | |
9281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9282 | else | |
9283 | cat >conftest.$ac_ext <<_ACEOF | |
9284 | /* confdefs.h. */ | |
9285 | _ACEOF | |
9286 | cat confdefs.h >>conftest.$ac_ext | |
9287 | cat >>conftest.$ac_ext <<_ACEOF | |
9288 | /* end confdefs.h. */ | |
cedd9a58 | 9289 | #include <stdio.h> |
42ecbf5e DJ |
9290 | int |
9291 | main () | |
9292 | { | |
cedd9a58 | 9293 | FILE *f = fopen64 ("/tmp/foo","r"); |
42ecbf5e DJ |
9294 | ; |
9295 | return 0; | |
9296 | } | |
9297 | _ACEOF | |
9298 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9299 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9300 | (eval $ac_link) 2>conftest.er1 | |
9301 | ac_status=$? | |
9302 | grep -v '^ *+' conftest.er1 >conftest.err | |
9303 | rm -f conftest.er1 | |
9304 | cat conftest.err >&5 | |
9305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9306 | (exit $ac_status); } && | |
b7d4af3a JW |
9307 | { ac_try='test -z "$ac_c_werror_flag" |
9308 | || test ! -s conftest.err' | |
42ecbf5e DJ |
9309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9310 | (eval $ac_try) 2>&5 | |
9311 | ac_status=$? | |
9312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9313 | (exit $ac_status); }; } && | |
9314 | { ac_try='test -s conftest$ac_exeext' | |
9315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9316 | (eval $ac_try) 2>&5 | |
9317 | ac_status=$? | |
9318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9319 | (exit $ac_status); }; }; then | |
cedd9a58 JJ |
9320 | bu_cv_have_fopen64=yes |
9321 | else | |
42ecbf5e DJ |
9322 | echo "$as_me: failed program was:" >&5 |
9323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9324 | ||
9325 | saved_CPPFLAGS=$CPPFLAGS | |
cedd9a58 | 9326 | CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE" |
42ecbf5e DJ |
9327 | cat >conftest.$ac_ext <<_ACEOF |
9328 | /* confdefs.h. */ | |
9329 | _ACEOF | |
9330 | cat confdefs.h >>conftest.$ac_ext | |
9331 | cat >>conftest.$ac_ext <<_ACEOF | |
9332 | /* end confdefs.h. */ | |
cedd9a58 | 9333 | #include <stdio.h> |
42ecbf5e DJ |
9334 | int |
9335 | main () | |
9336 | { | |
cedd9a58 | 9337 | FILE *f = fopen64 ("/tmp/foo","r"); |
42ecbf5e DJ |
9338 | ; |
9339 | return 0; | |
9340 | } | |
9341 | _ACEOF | |
9342 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9343 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9344 | (eval $ac_link) 2>conftest.er1 | |
9345 | ac_status=$? | |
9346 | grep -v '^ *+' conftest.er1 >conftest.err | |
9347 | rm -f conftest.er1 | |
9348 | cat conftest.err >&5 | |
9349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9350 | (exit $ac_status); } && | |
b7d4af3a JW |
9351 | { ac_try='test -z "$ac_c_werror_flag" |
9352 | || test ! -s conftest.err' | |
42ecbf5e DJ |
9353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9354 | (eval $ac_try) 2>&5 | |
9355 | ac_status=$? | |
9356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9357 | (exit $ac_status); }; } && | |
9358 | { ac_try='test -s conftest$ac_exeext' | |
9359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9360 | (eval $ac_try) 2>&5 | |
9361 | ac_status=$? | |
9362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9363 | (exit $ac_status); }; }; then | |
cedd9a58 JJ |
9364 | bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE" |
9365 | else | |
42ecbf5e DJ |
9366 | echo "$as_me: failed program was:" >&5 |
9367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9368 | ||
9369 | bu_cv_have_fopen64=no | |
cedd9a58 | 9370 | fi |
42ecbf5e DJ |
9371 | rm -f conftest.err conftest.$ac_objext \ |
9372 | conftest$ac_exeext conftest.$ac_ext | |
17a5a5c3 | 9373 | CPPFLAGS=$saved_CPPFLAGS |
cedd9a58 | 9374 | fi |
42ecbf5e DJ |
9375 | rm -f conftest.err conftest.$ac_objext \ |
9376 | conftest$ac_exeext conftest.$ac_ext | |
cedd9a58 | 9377 | fi |
cedd9a58 | 9378 | |
42ecbf5e DJ |
9379 | echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5 |
9380 | echo "${ECHO_T}$bu_cv_have_fopen64" >&6 | |
6db7a086 | 9381 | if test "$bu_cv_have_fopen64" != no; then |
42ecbf5e DJ |
9382 | |
9383 | cat >>confdefs.h <<\_ACEOF | |
cedd9a58 | 9384 | #define HAVE_FOPEN64 1 |
42ecbf5e | 9385 | _ACEOF |
cedd9a58 | 9386 | |
fb5b5478 | 9387 | fi |
42ecbf5e DJ |
9388 | echo "$as_me:$LINENO: checking for stat64" >&5 |
9389 | echo $ECHO_N "checking for stat64... $ECHO_C" >&6 | |
9390 | if test "${bu_cv_have_stat64+set}" = set; then | |
9391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fb5b5478 | 9392 | else |
42ecbf5e DJ |
9393 | cat >conftest.$ac_ext <<_ACEOF |
9394 | /* confdefs.h. */ | |
9395 | _ACEOF | |
9396 | cat confdefs.h >>conftest.$ac_ext | |
9397 | cat >>conftest.$ac_ext <<_ACEOF | |
9398 | /* end confdefs.h. */ | |
fb5b5478 | 9399 | #include <sys/stat.h> |
42ecbf5e DJ |
9400 | int |
9401 | main () | |
9402 | { | |
fb5b5478 | 9403 | struct stat64 st; stat64 ("/tmp/foo", &st); |
42ecbf5e DJ |
9404 | ; |
9405 | return 0; | |
9406 | } | |
9407 | _ACEOF | |
9408 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9410 | (eval $ac_link) 2>conftest.er1 | |
9411 | ac_status=$? | |
9412 | grep -v '^ *+' conftest.er1 >conftest.err | |
9413 | rm -f conftest.er1 | |
9414 | cat conftest.err >&5 | |
9415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9416 | (exit $ac_status); } && | |
b7d4af3a JW |
9417 | { ac_try='test -z "$ac_c_werror_flag" |
9418 | || test ! -s conftest.err' | |
42ecbf5e DJ |
9419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9420 | (eval $ac_try) 2>&5 | |
9421 | ac_status=$? | |
9422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9423 | (exit $ac_status); }; } && | |
9424 | { ac_try='test -s conftest$ac_exeext' | |
9425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9426 | (eval $ac_try) 2>&5 | |
9427 | ac_status=$? | |
9428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9429 | (exit $ac_status); }; }; then | |
fb5b5478 JJ |
9430 | bu_cv_have_stat64=yes |
9431 | else | |
42ecbf5e DJ |
9432 | echo "$as_me: failed program was:" >&5 |
9433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9434 | ||
9435 | saved_CPPFLAGS=$CPPFLAGS | |
fb5b5478 | 9436 | CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE" |
42ecbf5e DJ |
9437 | cat >conftest.$ac_ext <<_ACEOF |
9438 | /* confdefs.h. */ | |
9439 | _ACEOF | |
9440 | cat confdefs.h >>conftest.$ac_ext | |
9441 | cat >>conftest.$ac_ext <<_ACEOF | |
9442 | /* end confdefs.h. */ | |
fb5b5478 | 9443 | #include <sys/stat.h> |
42ecbf5e DJ |
9444 | int |
9445 | main () | |
9446 | { | |
fb5b5478 | 9447 | struct stat64 st; stat64 ("/tmp/foo", &st); |
42ecbf5e DJ |
9448 | ; |
9449 | return 0; | |
9450 | } | |
9451 | _ACEOF | |
9452 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9453 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9454 | (eval $ac_link) 2>conftest.er1 | |
9455 | ac_status=$? | |
9456 | grep -v '^ *+' conftest.er1 >conftest.err | |
9457 | rm -f conftest.er1 | |
9458 | cat conftest.err >&5 | |
9459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9460 | (exit $ac_status); } && | |
b7d4af3a JW |
9461 | { ac_try='test -z "$ac_c_werror_flag" |
9462 | || test ! -s conftest.err' | |
42ecbf5e DJ |
9463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9464 | (eval $ac_try) 2>&5 | |
9465 | ac_status=$? | |
9466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9467 | (exit $ac_status); }; } && | |
9468 | { ac_try='test -s conftest$ac_exeext' | |
9469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9470 | (eval $ac_try) 2>&5 | |
9471 | ac_status=$? | |
9472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9473 | (exit $ac_status); }; }; then | |
fb5b5478 JJ |
9474 | bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE" |
9475 | else | |
42ecbf5e DJ |
9476 | echo "$as_me: failed program was:" >&5 |
9477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9478 | ||
9479 | bu_cv_have_stat64=no | |
fb5b5478 | 9480 | fi |
42ecbf5e DJ |
9481 | rm -f conftest.err conftest.$ac_objext \ |
9482 | conftest$ac_exeext conftest.$ac_ext | |
fb5b5478 JJ |
9483 | CPPFLAGS=$saved_CPPFLAGS |
9484 | fi | |
42ecbf5e DJ |
9485 | rm -f conftest.err conftest.$ac_objext \ |
9486 | conftest$ac_exeext conftest.$ac_ext | |
fb5b5478 JJ |
9487 | fi |
9488 | ||
42ecbf5e DJ |
9489 | echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5 |
9490 | echo "${ECHO_T}$bu_cv_have_stat64" >&6 | |
fb5b5478 | 9491 | if test "$bu_cv_have_stat64" != no; then |
42ecbf5e DJ |
9492 | |
9493 | cat >>confdefs.h <<\_ACEOF | |
fb5b5478 | 9494 | #define HAVE_STAT64 1 |
42ecbf5e | 9495 | _ACEOF |
fb5b5478 JJ |
9496 | |
9497 | fi | |
9498 | if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \ | |
9499 | || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then | |
42ecbf5e DJ |
9500 | |
9501 | cat >>confdefs.h <<\_ACEOF | |
cedd9a58 | 9502 | #define _LARGEFILE64_SOURCE 1 |
42ecbf5e | 9503 | _ACEOF |
cedd9a58 | 9504 | |
fb5b5478 | 9505 | CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE" |
cedd9a58 JJ |
9506 | fi |
9507 | ||
f353eb8a | 9508 | # Some systems have frexp only in -lm, not in -lc. |
42ecbf5e DJ |
9509 | echo "$as_me:$LINENO: checking for library containing frexp" >&5 |
9510 | echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6 | |
9511 | if test "${ac_cv_search_frexp+set}" = set; then | |
9512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9513 | else | |
9514 | ac_func_search_save_LIBS=$LIBS | |
9515 | ac_cv_search_frexp=no | |
9516 | cat >conftest.$ac_ext <<_ACEOF | |
9517 | /* confdefs.h. */ | |
9518 | _ACEOF | |
9519 | cat confdefs.h >>conftest.$ac_ext | |
9520 | cat >>conftest.$ac_ext <<_ACEOF | |
9521 | /* end confdefs.h. */ | |
f353eb8a | 9522 | |
f353eb8a | 9523 | /* Override any gcc2 internal prototype to avoid an error. */ |
42ecbf5e DJ |
9524 | #ifdef __cplusplus |
9525 | extern "C" | |
9526 | #endif | |
f353eb8a | 9527 | /* We use char because int might match the return type of a gcc2 |
42ecbf5e DJ |
9528 | builtin and then its argument prototype would still apply. */ |
9529 | char frexp (); | |
9530 | int | |
9531 | main () | |
9532 | { | |
9533 | frexp (); | |
9534 | ; | |
9535 | return 0; | |
9536 | } | |
9537 | _ACEOF | |
9538 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9539 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9540 | (eval $ac_link) 2>conftest.er1 | |
9541 | ac_status=$? | |
9542 | grep -v '^ *+' conftest.er1 >conftest.err | |
9543 | rm -f conftest.er1 | |
9544 | cat conftest.err >&5 | |
9545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9546 | (exit $ac_status); } && | |
b7d4af3a JW |
9547 | { ac_try='test -z "$ac_c_werror_flag" |
9548 | || test ! -s conftest.err' | |
42ecbf5e DJ |
9549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9550 | (eval $ac_try) 2>&5 | |
9551 | ac_status=$? | |
9552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9553 | (exit $ac_status); }; } && | |
9554 | { ac_try='test -s conftest$ac_exeext' | |
9555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9556 | (eval $ac_try) 2>&5 | |
9557 | ac_status=$? | |
9558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9559 | (exit $ac_status); }; }; then | |
f353eb8a ILT |
9560 | ac_cv_search_frexp="none required" |
9561 | else | |
42ecbf5e DJ |
9562 | echo "$as_me: failed program was:" >&5 |
9563 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9564 | ||
f353eb8a | 9565 | fi |
42ecbf5e DJ |
9566 | rm -f conftest.err conftest.$ac_objext \ |
9567 | conftest$ac_exeext conftest.$ac_ext | |
9568 | if test "$ac_cv_search_frexp" = no; then | |
9569 | for ac_lib in m; do | |
9570 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9571 | cat >conftest.$ac_ext <<_ACEOF | |
9572 | /* confdefs.h. */ | |
9573 | _ACEOF | |
9574 | cat confdefs.h >>conftest.$ac_ext | |
9575 | cat >>conftest.$ac_ext <<_ACEOF | |
9576 | /* end confdefs.h. */ | |
9577 | ||
f353eb8a | 9578 | /* Override any gcc2 internal prototype to avoid an error. */ |
42ecbf5e DJ |
9579 | #ifdef __cplusplus |
9580 | extern "C" | |
9581 | #endif | |
f353eb8a | 9582 | /* We use char because int might match the return type of a gcc2 |
42ecbf5e DJ |
9583 | builtin and then its argument prototype would still apply. */ |
9584 | char frexp (); | |
9585 | int | |
9586 | main () | |
9587 | { | |
9588 | frexp (); | |
9589 | ; | |
9590 | return 0; | |
9591 | } | |
9592 | _ACEOF | |
9593 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9594 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9595 | (eval $ac_link) 2>conftest.er1 | |
9596 | ac_status=$? | |
9597 | grep -v '^ *+' conftest.er1 >conftest.err | |
9598 | rm -f conftest.er1 | |
9599 | cat conftest.err >&5 | |
9600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9601 | (exit $ac_status); } && | |
b7d4af3a JW |
9602 | { ac_try='test -z "$ac_c_werror_flag" |
9603 | || test ! -s conftest.err' | |
42ecbf5e DJ |
9604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9605 | (eval $ac_try) 2>&5 | |
9606 | ac_status=$? | |
9607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9608 | (exit $ac_status); }; } && | |
9609 | { ac_try='test -s conftest$ac_exeext' | |
9610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9611 | (eval $ac_try) 2>&5 | |
9612 | ac_status=$? | |
9613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9614 | (exit $ac_status); }; }; then | |
9615 | ac_cv_search_frexp="-l$ac_lib" | |
f353eb8a ILT |
9616 | break |
9617 | else | |
42ecbf5e DJ |
9618 | echo "$as_me: failed program was:" >&5 |
9619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9620 | ||
f353eb8a | 9621 | fi |
42ecbf5e DJ |
9622 | rm -f conftest.err conftest.$ac_objext \ |
9623 | conftest$ac_exeext conftest.$ac_ext | |
9624 | done | |
e5a52504 | 9625 | fi |
42ecbf5e DJ |
9626 | LIBS=$ac_func_search_save_LIBS |
9627 | fi | |
9628 | echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5 | |
9629 | echo "${ECHO_T}$ac_cv_search_frexp" >&6 | |
9630 | if test "$ac_cv_search_frexp" != no; then | |
d15b04bd | 9631 | test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS" |
42ecbf5e | 9632 | |
f353eb8a ILT |
9633 | fi |
9634 | ||
42ecbf5e DJ |
9635 | |
9636 | echo "$as_me:$LINENO: checking for time_t in time.h" >&5 | |
9637 | echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6 | |
9638 | if test "${bu_cv_decl_time_t_time_h+set}" = set; then | |
9639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 9640 | else |
42ecbf5e DJ |
9641 | cat >conftest.$ac_ext <<_ACEOF |
9642 | /* confdefs.h. */ | |
9643 | _ACEOF | |
9644 | cat confdefs.h >>conftest.$ac_ext | |
9645 | cat >>conftest.$ac_ext <<_ACEOF | |
9646 | /* end confdefs.h. */ | |
252b5132 | 9647 | #include <time.h> |
42ecbf5e DJ |
9648 | int |
9649 | main () | |
9650 | { | |
252b5132 | 9651 | time_t i; |
42ecbf5e DJ |
9652 | ; |
9653 | return 0; | |
9654 | } | |
9655 | _ACEOF | |
9656 | rm -f conftest.$ac_objext | |
9657 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9658 | (eval $ac_compile) 2>conftest.er1 | |
9659 | ac_status=$? | |
9660 | grep -v '^ *+' conftest.er1 >conftest.err | |
9661 | rm -f conftest.er1 | |
9662 | cat conftest.err >&5 | |
9663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9664 | (exit $ac_status); } && | |
b7d4af3a JW |
9665 | { ac_try='test -z "$ac_c_werror_flag" |
9666 | || test ! -s conftest.err' | |
42ecbf5e DJ |
9667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9668 | (eval $ac_try) 2>&5 | |
9669 | ac_status=$? | |
9670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9671 | (exit $ac_status); }; } && | |
9672 | { ac_try='test -s conftest.$ac_objext' | |
9673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9674 | (eval $ac_try) 2>&5 | |
9675 | ac_status=$? | |
9676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9677 | (exit $ac_status); }; }; then | |
252b5132 RH |
9678 | bu_cv_decl_time_t_time_h=yes |
9679 | else | |
42ecbf5e DJ |
9680 | echo "$as_me: failed program was:" >&5 |
9681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9682 | ||
9683 | bu_cv_decl_time_t_time_h=no | |
252b5132 | 9684 | fi |
42ecbf5e | 9685 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
9686 | fi |
9687 | ||
42ecbf5e DJ |
9688 | echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5 |
9689 | echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6 | |
252b5132 | 9690 | if test $bu_cv_decl_time_t_time_h = yes; then |
42ecbf5e DJ |
9691 | |
9692 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 9693 | #define HAVE_TIME_T_IN_TIME_H 1 |
42ecbf5e | 9694 | _ACEOF |
252b5132 RH |
9695 | |
9696 | fi | |
9697 | ||
42ecbf5e DJ |
9698 | echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5 |
9699 | echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6 | |
9700 | if test "${bu_cv_decl_time_t_types_h+set}" = set; then | |
9701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 9702 | else |
42ecbf5e DJ |
9703 | cat >conftest.$ac_ext <<_ACEOF |
9704 | /* confdefs.h. */ | |
9705 | _ACEOF | |
9706 | cat confdefs.h >>conftest.$ac_ext | |
9707 | cat >>conftest.$ac_ext <<_ACEOF | |
9708 | /* end confdefs.h. */ | |
252b5132 | 9709 | #include <sys/types.h> |
42ecbf5e DJ |
9710 | int |
9711 | main () | |
9712 | { | |
252b5132 | 9713 | time_t i; |
42ecbf5e DJ |
9714 | ; |
9715 | return 0; | |
9716 | } | |
9717 | _ACEOF | |
9718 | rm -f conftest.$ac_objext | |
9719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9720 | (eval $ac_compile) 2>conftest.er1 | |
9721 | ac_status=$? | |
9722 | grep -v '^ *+' conftest.er1 >conftest.err | |
9723 | rm -f conftest.er1 | |
9724 | cat conftest.err >&5 | |
9725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9726 | (exit $ac_status); } && | |
b7d4af3a JW |
9727 | { ac_try='test -z "$ac_c_werror_flag" |
9728 | || test ! -s conftest.err' | |
42ecbf5e DJ |
9729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9730 | (eval $ac_try) 2>&5 | |
9731 | ac_status=$? | |
9732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9733 | (exit $ac_status); }; } && | |
9734 | { ac_try='test -s conftest.$ac_objext' | |
9735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9736 | (eval $ac_try) 2>&5 | |
9737 | ac_status=$? | |
9738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9739 | (exit $ac_status); }; }; then | |
252b5132 RH |
9740 | bu_cv_decl_time_t_types_h=yes |
9741 | else | |
42ecbf5e DJ |
9742 | echo "$as_me: failed program was:" >&5 |
9743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9744 | ||
9745 | bu_cv_decl_time_t_types_h=no | |
252b5132 | 9746 | fi |
42ecbf5e | 9747 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
9748 | fi |
9749 | ||
42ecbf5e DJ |
9750 | echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5 |
9751 | echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6 | |
252b5132 | 9752 | if test $bu_cv_decl_time_t_types_h = yes; then |
42ecbf5e DJ |
9753 | |
9754 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 9755 | #define HAVE_TIME_T_IN_TYPES_H 1 |
42ecbf5e | 9756 | _ACEOF |
252b5132 RH |
9757 | |
9758 | fi | |
9759 | ||
42ecbf5e DJ |
9760 | echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5 |
9761 | echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6 | |
9762 | if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then | |
9763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e46eba98 | 9764 | else |
42ecbf5e DJ |
9765 | cat >conftest.$ac_ext <<_ACEOF |
9766 | /* confdefs.h. */ | |
9767 | _ACEOF | |
9768 | cat confdefs.h >>conftest.$ac_ext | |
9769 | cat >>conftest.$ac_ext <<_ACEOF | |
9770 | /* end confdefs.h. */ | |
e46eba98 | 9771 | #include <unistd.h> |
42ecbf5e DJ |
9772 | int |
9773 | main () | |
9774 | { | |
e46eba98 | 9775 | extern int getopt (int, char *const*, const char *); |
42ecbf5e DJ |
9776 | ; |
9777 | return 0; | |
9778 | } | |
9779 | _ACEOF | |
9780 | rm -f conftest.$ac_objext | |
9781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9782 | (eval $ac_compile) 2>conftest.er1 | |
9783 | ac_status=$? | |
9784 | grep -v '^ *+' conftest.er1 >conftest.err | |
9785 | rm -f conftest.er1 | |
9786 | cat conftest.err >&5 | |
9787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9788 | (exit $ac_status); } && | |
b7d4af3a JW |
9789 | { ac_try='test -z "$ac_c_werror_flag" |
9790 | || test ! -s conftest.err' | |
42ecbf5e DJ |
9791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9792 | (eval $ac_try) 2>&5 | |
9793 | ac_status=$? | |
9794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9795 | (exit $ac_status); }; } && | |
9796 | { ac_try='test -s conftest.$ac_objext' | |
9797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9798 | (eval $ac_try) 2>&5 | |
9799 | ac_status=$? | |
9800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9801 | (exit $ac_status); }; }; then | |
e46eba98 NC |
9802 | bu_cv_decl_getopt_unistd_h=yes |
9803 | else | |
42ecbf5e DJ |
9804 | echo "$as_me: failed program was:" >&5 |
9805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9806 | ||
9807 | bu_cv_decl_getopt_unistd_h=no | |
e46eba98 | 9808 | fi |
42ecbf5e | 9809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e46eba98 NC |
9810 | fi |
9811 | ||
42ecbf5e DJ |
9812 | echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5 |
9813 | echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6 | |
e46eba98 | 9814 | if test $bu_cv_decl_getopt_unistd_h = yes; then |
42ecbf5e DJ |
9815 | |
9816 | cat >>confdefs.h <<\_ACEOF | |
e46eba98 | 9817 | #define HAVE_DECL_GETOPT 1 |
42ecbf5e | 9818 | _ACEOF |
e46eba98 NC |
9819 | |
9820 | fi | |
9821 | ||
252b5132 RH |
9822 | # Under Next 3.2 <utime.h> apparently does not define struct utimbuf |
9823 | # by default. | |
42ecbf5e DJ |
9824 | echo "$as_me:$LINENO: checking for utime.h" >&5 |
9825 | echo $ECHO_N "checking for utime.h... $ECHO_C" >&6 | |
9826 | if test "${bu_cv_header_utime_h+set}" = set; then | |
9827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9828 | else | |
9829 | cat >conftest.$ac_ext <<_ACEOF | |
9830 | /* confdefs.h. */ | |
9831 | _ACEOF | |
9832 | cat confdefs.h >>conftest.$ac_ext | |
9833 | cat >>conftest.$ac_ext <<_ACEOF | |
9834 | /* end confdefs.h. */ | |
252b5132 RH |
9835 | #include <sys/types.h> |
9836 | #ifdef HAVE_TIME_H | |
9837 | #include <time.h> | |
9838 | #endif | |
9839 | #include <utime.h> | |
42ecbf5e DJ |
9840 | int |
9841 | main () | |
9842 | { | |
252b5132 | 9843 | struct utimbuf s; |
42ecbf5e DJ |
9844 | ; |
9845 | return 0; | |
9846 | } | |
9847 | _ACEOF | |
9848 | rm -f conftest.$ac_objext | |
9849 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9850 | (eval $ac_compile) 2>conftest.er1 | |
9851 | ac_status=$? | |
9852 | grep -v '^ *+' conftest.er1 >conftest.err | |
9853 | rm -f conftest.er1 | |
9854 | cat conftest.err >&5 | |
9855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9856 | (exit $ac_status); } && | |
b7d4af3a JW |
9857 | { ac_try='test -z "$ac_c_werror_flag" |
9858 | || test ! -s conftest.err' | |
42ecbf5e DJ |
9859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9860 | (eval $ac_try) 2>&5 | |
9861 | ac_status=$? | |
9862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9863 | (exit $ac_status); }; } && | |
9864 | { ac_try='test -s conftest.$ac_objext' | |
9865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9866 | (eval $ac_try) 2>&5 | |
9867 | ac_status=$? | |
9868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9869 | (exit $ac_status); }; }; then | |
252b5132 RH |
9870 | bu_cv_header_utime_h=yes |
9871 | else | |
42ecbf5e DJ |
9872 | echo "$as_me: failed program was:" >&5 |
9873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9874 | ||
9875 | bu_cv_header_utime_h=no | |
252b5132 | 9876 | fi |
42ecbf5e | 9877 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
9878 | fi |
9879 | ||
42ecbf5e DJ |
9880 | echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5 |
9881 | echo "${ECHO_T}$bu_cv_header_utime_h" >&6 | |
252b5132 | 9882 | if test $bu_cv_header_utime_h = yes; then |
42ecbf5e DJ |
9883 | |
9884 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 9885 | #define HAVE_GOOD_UTIME_H 1 |
42ecbf5e | 9886 | _ACEOF |
252b5132 RH |
9887 | |
9888 | fi | |
9889 | ||
398ee8f1 SE |
9890 | echo "$as_me:$LINENO: checking whether fprintf is declared" >&5 |
9891 | echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6 | |
9892 | if test "${ac_cv_have_decl_fprintf+set}" = set; then | |
42ecbf5e | 9893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 9894 | else |
42ecbf5e DJ |
9895 | cat >conftest.$ac_ext <<_ACEOF |
9896 | /* confdefs.h. */ | |
9897 | _ACEOF | |
9898 | cat confdefs.h >>conftest.$ac_ext | |
9899 | cat >>conftest.$ac_ext <<_ACEOF | |
9900 | /* end confdefs.h. */ | |
398ee8f1 | 9901 | $ac_includes_default |
42ecbf5e DJ |
9902 | int |
9903 | main () | |
9904 | { | |
398ee8f1 SE |
9905 | #ifndef fprintf |
9906 | char *p = (char *) fprintf; | |
9907 | #endif | |
9908 | ||
42ecbf5e DJ |
9909 | ; |
9910 | return 0; | |
9911 | } | |
9912 | _ACEOF | |
9913 | rm -f conftest.$ac_objext | |
9914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9915 | (eval $ac_compile) 2>conftest.er1 | |
9916 | ac_status=$? | |
9917 | grep -v '^ *+' conftest.er1 >conftest.err | |
9918 | rm -f conftest.er1 | |
9919 | cat conftest.err >&5 | |
9920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9921 | (exit $ac_status); } && | |
b7d4af3a JW |
9922 | { ac_try='test -z "$ac_c_werror_flag" |
9923 | || test ! -s conftest.err' | |
42ecbf5e DJ |
9924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9925 | (eval $ac_try) 2>&5 | |
9926 | ac_status=$? | |
9927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9928 | (exit $ac_status); }; } && | |
9929 | { ac_try='test -s conftest.$ac_objext' | |
9930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9931 | (eval $ac_try) 2>&5 | |
9932 | ac_status=$? | |
9933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9934 | (exit $ac_status); }; }; then | |
398ee8f1 | 9935 | ac_cv_have_decl_fprintf=yes |
252b5132 | 9936 | else |
42ecbf5e DJ |
9937 | echo "$as_me: failed program was:" >&5 |
9938 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9939 | ||
398ee8f1 | 9940 | ac_cv_have_decl_fprintf=no |
252b5132 | 9941 | fi |
42ecbf5e | 9942 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 9943 | fi |
398ee8f1 SE |
9944 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5 |
9945 | echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6 | |
9946 | if test $ac_cv_have_decl_fprintf = yes; then | |
252b5132 | 9947 | |
398ee8f1 SE |
9948 | cat >>confdefs.h <<_ACEOF |
9949 | #define HAVE_DECL_FPRINTF 1 | |
9950 | _ACEOF | |
42ecbf5e | 9951 | |
398ee8f1 SE |
9952 | |
9953 | else | |
9954 | cat >>confdefs.h <<_ACEOF | |
9955 | #define HAVE_DECL_FPRINTF 0 | |
42ecbf5e | 9956 | _ACEOF |
252b5132 | 9957 | |
252b5132 | 9958 | |
398ee8f1 SE |
9959 | fi |
9960 | echo "$as_me:$LINENO: checking whether strstr is declared" >&5 | |
9961 | echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6 | |
9962 | if test "${ac_cv_have_decl_strstr+set}" = set; then | |
42ecbf5e | 9963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 9964 | else |
42ecbf5e DJ |
9965 | cat >conftest.$ac_ext <<_ACEOF |
9966 | /* confdefs.h. */ | |
9967 | _ACEOF | |
9968 | cat confdefs.h >>conftest.$ac_ext | |
9969 | cat >>conftest.$ac_ext <<_ACEOF | |
9970 | /* end confdefs.h. */ | |
398ee8f1 | 9971 | $ac_includes_default |
42ecbf5e DJ |
9972 | int |
9973 | main () | |
9974 | { | |
398ee8f1 SE |
9975 | #ifndef strstr |
9976 | char *p = (char *) strstr; | |
9977 | #endif | |
9978 | ||
42ecbf5e DJ |
9979 | ; |
9980 | return 0; | |
9981 | } | |
9982 | _ACEOF | |
9983 | rm -f conftest.$ac_objext | |
9984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9985 | (eval $ac_compile) 2>conftest.er1 | |
9986 | ac_status=$? | |
9987 | grep -v '^ *+' conftest.er1 >conftest.err | |
9988 | rm -f conftest.er1 | |
9989 | cat conftest.err >&5 | |
9990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9991 | (exit $ac_status); } && | |
b7d4af3a JW |
9992 | { ac_try='test -z "$ac_c_werror_flag" |
9993 | || test ! -s conftest.err' | |
42ecbf5e DJ |
9994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9995 | (eval $ac_try) 2>&5 | |
9996 | ac_status=$? | |
9997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9998 | (exit $ac_status); }; } && | |
9999 | { ac_try='test -s conftest.$ac_objext' | |
10000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10001 | (eval $ac_try) 2>&5 | |
10002 | ac_status=$? | |
10003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10004 | (exit $ac_status); }; }; then | |
398ee8f1 | 10005 | ac_cv_have_decl_strstr=yes |
252b5132 | 10006 | else |
42ecbf5e DJ |
10007 | echo "$as_me: failed program was:" >&5 |
10008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10009 | ||
398ee8f1 | 10010 | ac_cv_have_decl_strstr=no |
252b5132 | 10011 | fi |
42ecbf5e | 10012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 10013 | fi |
398ee8f1 SE |
10014 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5 |
10015 | echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6 | |
10016 | if test $ac_cv_have_decl_strstr = yes; then | |
252b5132 | 10017 | |
398ee8f1 SE |
10018 | cat >>confdefs.h <<_ACEOF |
10019 | #define HAVE_DECL_STRSTR 1 | |
10020 | _ACEOF | |
42ecbf5e | 10021 | |
398ee8f1 SE |
10022 | |
10023 | else | |
10024 | cat >>confdefs.h <<_ACEOF | |
10025 | #define HAVE_DECL_STRSTR 0 | |
42ecbf5e | 10026 | _ACEOF |
252b5132 | 10027 | |
252b5132 | 10028 | |
398ee8f1 SE |
10029 | fi |
10030 | echo "$as_me:$LINENO: checking whether sbrk is declared" >&5 | |
10031 | echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6 | |
10032 | if test "${ac_cv_have_decl_sbrk+set}" = set; then | |
42ecbf5e | 10033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 10034 | else |
42ecbf5e DJ |
10035 | cat >conftest.$ac_ext <<_ACEOF |
10036 | /* confdefs.h. */ | |
10037 | _ACEOF | |
10038 | cat confdefs.h >>conftest.$ac_ext | |
10039 | cat >>conftest.$ac_ext <<_ACEOF | |
10040 | /* end confdefs.h. */ | |
398ee8f1 | 10041 | $ac_includes_default |
42ecbf5e DJ |
10042 | int |
10043 | main () | |
10044 | { | |
398ee8f1 SE |
10045 | #ifndef sbrk |
10046 | char *p = (char *) sbrk; | |
10047 | #endif | |
10048 | ||
42ecbf5e DJ |
10049 | ; |
10050 | return 0; | |
10051 | } | |
10052 | _ACEOF | |
10053 | rm -f conftest.$ac_objext | |
10054 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10055 | (eval $ac_compile) 2>conftest.er1 | |
10056 | ac_status=$? | |
10057 | grep -v '^ *+' conftest.er1 >conftest.err | |
10058 | rm -f conftest.er1 | |
10059 | cat conftest.err >&5 | |
10060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10061 | (exit $ac_status); } && | |
b7d4af3a JW |
10062 | { ac_try='test -z "$ac_c_werror_flag" |
10063 | || test ! -s conftest.err' | |
42ecbf5e DJ |
10064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10065 | (eval $ac_try) 2>&5 | |
10066 | ac_status=$? | |
10067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10068 | (exit $ac_status); }; } && | |
10069 | { ac_try='test -s conftest.$ac_objext' | |
10070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10071 | (eval $ac_try) 2>&5 | |
10072 | ac_status=$? | |
10073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10074 | (exit $ac_status); }; }; then | |
398ee8f1 | 10075 | ac_cv_have_decl_sbrk=yes |
252b5132 | 10076 | else |
42ecbf5e DJ |
10077 | echo "$as_me: failed program was:" >&5 |
10078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10079 | ||
398ee8f1 | 10080 | ac_cv_have_decl_sbrk=no |
252b5132 | 10081 | fi |
42ecbf5e | 10082 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 10083 | fi |
398ee8f1 SE |
10084 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5 |
10085 | echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6 | |
10086 | if test $ac_cv_have_decl_sbrk = yes; then | |
252b5132 | 10087 | |
398ee8f1 SE |
10088 | cat >>confdefs.h <<_ACEOF |
10089 | #define HAVE_DECL_SBRK 1 | |
10090 | _ACEOF | |
42ecbf5e | 10091 | |
398ee8f1 SE |
10092 | |
10093 | else | |
10094 | cat >>confdefs.h <<_ACEOF | |
10095 | #define HAVE_DECL_SBRK 0 | |
42ecbf5e | 10096 | _ACEOF |
252b5132 | 10097 | |
252b5132 | 10098 | |
398ee8f1 SE |
10099 | fi |
10100 | echo "$as_me:$LINENO: checking whether getenv is declared" >&5 | |
10101 | echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6 | |
10102 | if test "${ac_cv_have_decl_getenv+set}" = set; then | |
42ecbf5e | 10103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 10104 | else |
42ecbf5e DJ |
10105 | cat >conftest.$ac_ext <<_ACEOF |
10106 | /* confdefs.h. */ | |
10107 | _ACEOF | |
10108 | cat confdefs.h >>conftest.$ac_ext | |
10109 | cat >>conftest.$ac_ext <<_ACEOF | |
10110 | /* end confdefs.h. */ | |
398ee8f1 | 10111 | $ac_includes_default |
42ecbf5e DJ |
10112 | int |
10113 | main () | |
10114 | { | |
398ee8f1 SE |
10115 | #ifndef getenv |
10116 | char *p = (char *) getenv; | |
10117 | #endif | |
10118 | ||
42ecbf5e DJ |
10119 | ; |
10120 | return 0; | |
10121 | } | |
10122 | _ACEOF | |
10123 | rm -f conftest.$ac_objext | |
10124 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10125 | (eval $ac_compile) 2>conftest.er1 | |
10126 | ac_status=$? | |
10127 | grep -v '^ *+' conftest.er1 >conftest.err | |
10128 | rm -f conftest.er1 | |
10129 | cat conftest.err >&5 | |
10130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10131 | (exit $ac_status); } && | |
b7d4af3a JW |
10132 | { ac_try='test -z "$ac_c_werror_flag" |
10133 | || test ! -s conftest.err' | |
42ecbf5e DJ |
10134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10135 | (eval $ac_try) 2>&5 | |
10136 | ac_status=$? | |
10137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10138 | (exit $ac_status); }; } && | |
10139 | { ac_try='test -s conftest.$ac_objext' | |
10140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10141 | (eval $ac_try) 2>&5 | |
10142 | ac_status=$? | |
10143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10144 | (exit $ac_status); }; }; then | |
398ee8f1 | 10145 | ac_cv_have_decl_getenv=yes |
252b5132 | 10146 | else |
42ecbf5e DJ |
10147 | echo "$as_me: failed program was:" >&5 |
10148 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10149 | ||
398ee8f1 | 10150 | ac_cv_have_decl_getenv=no |
252b5132 | 10151 | fi |
42ecbf5e | 10152 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 10153 | fi |
398ee8f1 SE |
10154 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5 |
10155 | echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6 | |
10156 | if test $ac_cv_have_decl_getenv = yes; then | |
252b5132 | 10157 | |
398ee8f1 SE |
10158 | cat >>confdefs.h <<_ACEOF |
10159 | #define HAVE_DECL_GETENV 1 | |
10160 | _ACEOF | |
42ecbf5e | 10161 | |
398ee8f1 SE |
10162 | |
10163 | else | |
10164 | cat >>confdefs.h <<_ACEOF | |
10165 | #define HAVE_DECL_GETENV 0 | |
42ecbf5e | 10166 | _ACEOF |
252b5132 | 10167 | |
252b5132 | 10168 | |
398ee8f1 SE |
10169 | fi |
10170 | echo "$as_me:$LINENO: checking whether environ is declared" >&5 | |
10171 | echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6 | |
10172 | if test "${ac_cv_have_decl_environ+set}" = set; then | |
42ecbf5e | 10173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 10174 | else |
42ecbf5e DJ |
10175 | cat >conftest.$ac_ext <<_ACEOF |
10176 | /* confdefs.h. */ | |
10177 | _ACEOF | |
10178 | cat confdefs.h >>conftest.$ac_ext | |
10179 | cat >>conftest.$ac_ext <<_ACEOF | |
10180 | /* end confdefs.h. */ | |
398ee8f1 | 10181 | $ac_includes_default |
42ecbf5e DJ |
10182 | int |
10183 | main () | |
10184 | { | |
398ee8f1 SE |
10185 | #ifndef environ |
10186 | char *p = (char *) environ; | |
10187 | #endif | |
10188 | ||
42ecbf5e DJ |
10189 | ; |
10190 | return 0; | |
10191 | } | |
10192 | _ACEOF | |
10193 | rm -f conftest.$ac_objext | |
10194 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10195 | (eval $ac_compile) 2>conftest.er1 | |
10196 | ac_status=$? | |
10197 | grep -v '^ *+' conftest.er1 >conftest.err | |
10198 | rm -f conftest.er1 | |
10199 | cat conftest.err >&5 | |
10200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10201 | (exit $ac_status); } && | |
b7d4af3a JW |
10202 | { ac_try='test -z "$ac_c_werror_flag" |
10203 | || test ! -s conftest.err' | |
42ecbf5e DJ |
10204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10205 | (eval $ac_try) 2>&5 | |
10206 | ac_status=$? | |
10207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10208 | (exit $ac_status); }; } && | |
10209 | { ac_try='test -s conftest.$ac_objext' | |
10210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10211 | (eval $ac_try) 2>&5 | |
10212 | ac_status=$? | |
10213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10214 | (exit $ac_status); }; }; then | |
398ee8f1 | 10215 | ac_cv_have_decl_environ=yes |
252b5132 | 10216 | else |
42ecbf5e DJ |
10217 | echo "$as_me: failed program was:" >&5 |
10218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10219 | ||
398ee8f1 | 10220 | ac_cv_have_decl_environ=no |
252b5132 | 10221 | fi |
42ecbf5e | 10222 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 10223 | fi |
398ee8f1 SE |
10224 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5 |
10225 | echo "${ECHO_T}$ac_cv_have_decl_environ" >&6 | |
10226 | if test $ac_cv_have_decl_environ = yes; then | |
252b5132 | 10227 | |
398ee8f1 SE |
10228 | cat >>confdefs.h <<_ACEOF |
10229 | #define HAVE_DECL_ENVIRON 1 | |
10230 | _ACEOF | |
42ecbf5e | 10231 | |
398ee8f1 SE |
10232 | |
10233 | else | |
10234 | cat >>confdefs.h <<_ACEOF | |
10235 | #define HAVE_DECL_ENVIRON 0 | |
42ecbf5e | 10236 | _ACEOF |
252b5132 | 10237 | |
252b5132 | 10238 | |
398ee8f1 | 10239 | fi |
b7d4af3a JW |
10240 | echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 |
10241 | echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6 | |
10242 | if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then | |
10243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10244 | else | |
10245 | cat >conftest.$ac_ext <<_ACEOF | |
10246 | /* confdefs.h. */ | |
10247 | _ACEOF | |
10248 | cat confdefs.h >>conftest.$ac_ext | |
10249 | cat >>conftest.$ac_ext <<_ACEOF | |
10250 | /* end confdefs.h. */ | |
10251 | $ac_includes_default | |
10252 | int | |
10253 | main () | |
10254 | { | |
10255 | #ifndef getc_unlocked | |
10256 | char *p = (char *) getc_unlocked; | |
10257 | #endif | |
10258 | ||
10259 | ; | |
10260 | return 0; | |
10261 | } | |
10262 | _ACEOF | |
10263 | rm -f conftest.$ac_objext | |
10264 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10265 | (eval $ac_compile) 2>conftest.er1 | |
10266 | ac_status=$? | |
10267 | grep -v '^ *+' conftest.er1 >conftest.err | |
10268 | rm -f conftest.er1 | |
10269 | cat conftest.err >&5 | |
10270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10271 | (exit $ac_status); } && | |
10272 | { ac_try='test -z "$ac_c_werror_flag" | |
10273 | || test ! -s conftest.err' | |
10274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10275 | (eval $ac_try) 2>&5 | |
10276 | ac_status=$? | |
10277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10278 | (exit $ac_status); }; } && | |
10279 | { ac_try='test -s conftest.$ac_objext' | |
10280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10281 | (eval $ac_try) 2>&5 | |
10282 | ac_status=$? | |
10283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10284 | (exit $ac_status); }; }; then | |
10285 | ac_cv_have_decl_getc_unlocked=yes | |
10286 | else | |
10287 | echo "$as_me: failed program was:" >&5 | |
10288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10289 | ||
10290 | ac_cv_have_decl_getc_unlocked=no | |
10291 | fi | |
10292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10293 | fi | |
10294 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 | |
10295 | echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6 | |
10296 | if test $ac_cv_have_decl_getc_unlocked = yes; then | |
10297 | ||
10298 | cat >>confdefs.h <<_ACEOF | |
10299 | #define HAVE_DECL_GETC_UNLOCKED 1 | |
10300 | _ACEOF | |
10301 | ||
10302 | ||
10303 | else | |
10304 | cat >>confdefs.h <<_ACEOF | |
10305 | #define HAVE_DECL_GETC_UNLOCKED 0 | |
10306 | _ACEOF | |
10307 | ||
10308 | ||
10309 | fi | |
10310 | ||
10311 | ||
252b5132 RH |
10312 | |
10313 | ||
10314 | case "${host}" in | |
8a965946 | 10315 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) |
42ecbf5e DJ |
10316 | |
10317 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 10318 | #define USE_BINARY_FOPEN 1 |
42ecbf5e | 10319 | _ACEOF |
252b5132 RH |
10320 | ;; |
10321 | esac | |
10322 | ||
10323 | # target-specific stuff: | |
10324 | ||
10325 | # Canonicalize the secondary target names. | |
10326 | if test -n "$enable_targets"; then | |
10327 | for targ in `echo $enable_targets | sed 's/,/ /g'` | |
10328 | do | |
6d83c84b | 10329 | result=`$ac_config_sub $targ 2>/dev/null` |
252b5132 RH |
10330 | if test -n "$result"; then |
10331 | canon_targets="$canon_targets $result" | |
10332 | else | |
10333 | # Allow targets that config.sub doesn't recognize, like "all". | |
10334 | canon_targets="$canon_targets $targ" | |
10335 | fi | |
10336 | done | |
10337 | fi | |
10338 | ||
10339 | all_targets=false | |
10340 | BUILD_NLMCONV= | |
10341 | NLMCONV_DEFS= | |
10342 | BUILD_SRCONV= | |
10343 | BUILD_DLLTOOL= | |
10344 | DLLTOOL_DEFS= | |
10345 | BUILD_WINDRES= | |
10346 | BUILD_DLLWRAP= | |
10347 | BUILD_MISC= | |
8b1e6df3 | 10348 | OBJDUMP_DEFS= |
252b5132 RH |
10349 | |
10350 | for targ in $target $canon_targets | |
10351 | do | |
10352 | if test "x$targ" = "xall"; then | |
10353 | all_targets=true | |
10354 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' | |
10355 | BUILD_SRCONV='$(SRCONV_PROG)' | |
10356 | NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC" | |
10357 | else | |
10358 | case $targ in | |
42ecbf5e | 10359 | i[3-7]86*-*-netware*) |
252b5132 RH |
10360 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' |
10361 | NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386" | |
10362 | ;; | |
10363 | alpha*-*-netware*) | |
10364 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' | |
10365 | NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA" | |
10366 | ;; | |
10367 | powerpc*-*-netware*) | |
10368 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' | |
10369 | NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC" | |
10370 | ;; | |
10371 | sparc*-*-netware*) | |
10372 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' | |
10373 | NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC" | |
10374 | ;; | |
10375 | esac | |
10376 | case $targ in | |
10377 | *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;; | |
10378 | esac | |
10379 | case $targ in | |
a8c548cb NC |
10380 | arm-epoc-pe*) |
10381 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' | |
10382 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM" | |
10383 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
10384 | ;; | |
27a710e5 | 10385 | arm-*-pe* | arm-*-wince) |
252b5132 RH |
10386 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
10387 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM" | |
10388 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
7a7b06ef | 10389 | ;; |
27a710e5 | 10390 | thumb-*-pe*) |
252b5132 RH |
10391 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
10392 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM" | |
10393 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
7a7b06ef | 10394 | ;; |
c7217458 | 10395 | arm*-* | xscale-* | strongarm-* | d10v-*) |
8b1e6df3 NC |
10396 | OBJDUMP_DEFS="-DDISASSEMBLER_NEEDS_RELOCS" |
10397 | ;; | |
80c7c40a | 10398 | i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*) |
252b5132 RH |
10399 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
10400 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386" | |
10401 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
10402 | BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)' | |
7a7b06ef | 10403 | ;; |
80c7c40a | 10404 | i[3-7]86-*-interix) |
7a7b06ef ILT |
10405 | BUILD_DLLTOOL='$(DLLTOOL_PROG)' |
10406 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386" | |
10407 | ;; | |
f0660b73 NC |
10408 | powerpc*-aix5.[01]) |
10409 | ;; | |
10410 | powerpc*-aix5.*) | |
10411 | OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT" | |
10412 | ;; | |
e1d5b1e7 | 10413 | powerpc*-*-pe* | powerpc*-*-cygwin*) |
252b5132 RH |
10414 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
10415 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC" | |
10416 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
8a0e0f38 | 10417 | ;; |
e1d5b1e7 | 10418 | sh*-*-pe) |
8a0e0f38 NC |
10419 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
10420 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH" | |
10421 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
10422 | ;; | |
e1d5b1e7 | 10423 | mips*-*-pe) |
8a0e0f38 NC |
10424 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
10425 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS" | |
10426 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
7a7b06ef | 10427 | ;; |
27a710e5 | 10428 | mcore-*-pe) |
661016bb NC |
10429 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
10430 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE" | |
10431 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
7a7b06ef | 10432 | ;; |
27a710e5 | 10433 | mcore-*-elf) |
661016bb NC |
10434 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
10435 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF" | |
7a7b06ef | 10436 | ;; |
252b5132 RH |
10437 | esac |
10438 | fi | |
10439 | done | |
10440 | ||
42ecbf5e DJ |
10441 | if test "${with_windres+set}" = set; then |
10442 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
10443 | fi | |
10444 | ||
10445 | ||
10446 | ||
10447 | ||
10448 | ||
10449 | ||
10450 | ||
10451 | ||
10452 | ||
10453 | ||
10454 | ||
10455 | ||
10456 | cat >>confdefs.h <<_ACEOF | |
10457 | #define TARGET "${target}" | |
10458 | _ACEOF | |
10459 | ||
10460 | ||
10461 | targ=$target | |
10462 | . $srcdir/../bfd/config.bfd | |
10463 | if test "x$targ_underscore" = "xyes"; then | |
10464 | UNDERSCORE=1 | |
10465 | else | |
10466 | UNDERSCORE=0 | |
10467 | fi | |
10468 | ||
10469 | cat >>confdefs.h <<_ACEOF | |
10470 | #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE | |
10471 | _ACEOF | |
10472 | ||
10473 | ||
10474 | # Emulation | |
10475 | for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'` | |
10476 | do | |
10477 | # Canonicalize the secondary target names. | |
10478 | result=`$ac_config_sub $targ_alias 2>/dev/null` | |
10479 | if test -n "$result"; then | |
10480 | targ=$result | |
10481 | else | |
10482 | targ=$targ_alias | |
10483 | fi | |
10484 | ||
10485 | . ${srcdir}/configure.tgt | |
10486 | ||
10487 | EMULATION=$targ_emul | |
10488 | EMULATION_VECTOR=$targ_emul_vector | |
10489 | done | |
10490 | ||
10491 | ||
10492 | ||
10493 | ||
10494 | ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in" | |
10495 | ac_config_commands="$ac_config_commands default" | |
10496 | cat >confcache <<\_ACEOF | |
10497 | # This file is a shell script that caches the results of configure | |
10498 | # tests run on this system so they can be shared between configure | |
10499 | # scripts and configure runs, see configure's option --config-cache. | |
10500 | # It is not useful on other systems. If it contains results you don't | |
10501 | # want to keep, you may remove or edit it. | |
10502 | # | |
10503 | # config.status only pays attention to the cache file if you give it | |
10504 | # the --recheck option to rerun configure. | |
10505 | # | |
10506 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10507 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10508 | # following values. | |
10509 | ||
10510 | _ACEOF | |
10511 | ||
10512 | # The following way of writing the cache mishandles newlines in values, | |
10513 | # but we know of no workaround that is simple, portable, and efficient. | |
10514 | # So, don't put newlines in cache variables' values. | |
10515 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10516 | # and sets the high bit in the cache file unless we assign to the vars. | |
10517 | { | |
10518 | (set) 2>&1 | | |
10519 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10520 | *ac_space=\ *) | |
10521 | # `set' does not quote correctly, so add quotes (double-quote | |
10522 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10523 | sed -n \ | |
10524 | "s/'/'\\\\''/g; | |
10525 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
10526 | ;; | |
10527 | *) | |
10528 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10529 | sed -n \ | |
10530 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
10531 | ;; | |
10532 | esac; | |
10533 | } | | |
10534 | sed ' | |
10535 | t clear | |
10536 | : clear | |
10537 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10538 | t end | |
10539 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10540 | : end' >>confcache | |
10541 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10542 | if test -w $cache_file; then | |
10543 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10544 | cat confcache >$cache_file | |
10545 | else | |
10546 | echo "not updating unwritable cache $cache_file" | |
10547 | fi | |
10548 | fi | |
10549 | rm -f confcache | |
10550 | ||
10551 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
10552 | # Let make expand exec_prefix. | |
10553 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10554 | ||
10555 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
10556 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
10557 | # trailing colons and then remove the whole line if VPATH becomes empty | |
10558 | # (actually we leave an empty line to preserve line numbers). | |
10559 | if test "x$srcdir" = x.; then | |
10560 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
10561 | s/:*\$(srcdir):*/:/; | |
10562 | s/:*\${srcdir}:*/:/; | |
10563 | s/:*@srcdir@:*/:/; | |
10564 | s/^\([^=]*=[ ]*\):*/\1/; | |
10565 | s/:*$//; | |
10566 | s/^[^=]*=[ ]*$//; | |
10567 | }' | |
10568 | fi | |
10569 | ||
10570 | DEFS=-DHAVE_CONFIG_H | |
10571 | ||
10572 | ac_libobjs= | |
10573 | ac_ltlibobjs= | |
10574 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
10575 | # 1. Remove the extension, and $U if already installed. | |
10576 | ac_i=`echo "$ac_i" | | |
10577 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
10578 | # 2. Add them. | |
10579 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
10580 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
10581 | done | |
10582 | LIBOBJS=$ac_libobjs | |
10583 | ||
10584 | LTLIBOBJS=$ac_ltlibobjs | |
10585 | ||
10586 | ||
10587 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
10588 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
10589 | Usually this means the macro was only invoked conditionally." >&5 | |
10590 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
10591 | Usually this means the macro was only invoked conditionally." >&2;} | |
10592 | { (exit 1); exit 1; }; } | |
10593 | fi | |
10594 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
10595 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
10596 | Usually this means the macro was only invoked conditionally." >&5 | |
10597 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
10598 | Usually this means the macro was only invoked conditionally." >&2;} | |
10599 | { (exit 1); exit 1; }; } | |
10600 | fi | |
10601 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
10602 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
10603 | Usually this means the macro was only invoked conditionally." >&5 | |
10604 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
10605 | Usually this means the macro was only invoked conditionally." >&2;} | |
10606 | { (exit 1); exit 1; }; } | |
10607 | fi | |
10608 | ||
10609 | : ${CONFIG_STATUS=./config.status} | |
10610 | ac_clean_files_save=$ac_clean_files | |
10611 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
10612 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
10613 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
10614 | cat >$CONFIG_STATUS <<_ACEOF | |
10615 | #! $SHELL | |
10616 | # Generated by $as_me. | |
10617 | # Run this file to recreate the current configuration. | |
10618 | # Compiler output produced by configure, useful for debugging | |
10619 | # configure, is in config.log if it exists. | |
10620 | ||
10621 | debug=false | |
10622 | ac_cs_recheck=false | |
10623 | ac_cs_silent=false | |
10624 | SHELL=\${CONFIG_SHELL-$SHELL} | |
10625 | _ACEOF | |
252b5132 | 10626 | |
42ecbf5e DJ |
10627 | cat >>$CONFIG_STATUS <<\_ACEOF |
10628 | ## --------------------- ## | |
10629 | ## M4sh Initialization. ## | |
10630 | ## --------------------- ## | |
252b5132 | 10631 | |
42ecbf5e DJ |
10632 | # Be Bourne compatible |
10633 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
10634 | emulate sh | |
10635 | NULLCMD=: | |
10636 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
10637 | # is contrary to our usage. Disable this feature. | |
10638 | alias -g '${1+"$@"}'='"$@"' | |
10639 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
10640 | set -o posix | |
10641 | fi | |
10642 | DUALCASE=1; export DUALCASE # for MKS sh | |
252b5132 | 10643 | |
42ecbf5e DJ |
10644 | # Support unset when possible. |
10645 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
10646 | as_unset=unset | |
10647 | else | |
10648 | as_unset=false | |
10649 | fi | |
252b5132 RH |
10650 | |
10651 | ||
42ecbf5e DJ |
10652 | # Work around bugs in pre-3.0 UWIN ksh. |
10653 | $as_unset ENV MAIL MAILPATH | |
10654 | PS1='$ ' | |
10655 | PS2='> ' | |
10656 | PS4='+ ' | |
252b5132 | 10657 | |
42ecbf5e DJ |
10658 | # NLS nuisances. |
10659 | for as_var in \ | |
10660 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
10661 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
10662 | LC_TELEPHONE LC_TIME | |
10663 | do | |
10664 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
10665 | eval $as_var=C; export $as_var | |
10666 | else | |
10667 | $as_unset $as_var | |
10668 | fi | |
10669 | done | |
252b5132 | 10670 | |
42ecbf5e DJ |
10671 | # Required to use basename. |
10672 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
10673 | as_expr=expr | |
10674 | else | |
10675 | as_expr=false | |
10676 | fi | |
252b5132 | 10677 | |
42ecbf5e DJ |
10678 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
10679 | as_basename=basename | |
10680 | else | |
10681 | as_basename=false | |
10682 | fi | |
252b5132 | 10683 | |
8b1e6df3 | 10684 | |
42ecbf5e DJ |
10685 | # Name of the executable. |
10686 | as_me=`$as_basename "$0" || | |
10687 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
10688 | X"$0" : 'X\(//\)$' \| \ | |
10689 | X"$0" : 'X\(/\)$' \| \ | |
10690 | . : '\(.\)' 2>/dev/null || | |
10691 | echo X/"$0" | | |
10692 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
10693 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
10694 | /^X\/\(\/\).*/{ s//\1/; q; } | |
10695 | s/.*/./; q'` | |
0218d1e4 | 10696 | |
252b5132 | 10697 | |
42ecbf5e DJ |
10698 | # PATH needs CR, and LINENO needs CR and PATH. |
10699 | # Avoid depending upon Character Ranges. | |
10700 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
10701 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
10702 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
10703 | as_cr_digits='0123456789' | |
10704 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
252b5132 | 10705 | |
42ecbf5e DJ |
10706 | # The user is always right. |
10707 | if test "${PATH_SEPARATOR+set}" != set; then | |
10708 | echo "#! /bin/sh" >conf$$.sh | |
10709 | echo "exit 0" >>conf$$.sh | |
10710 | chmod +x conf$$.sh | |
10711 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
10712 | PATH_SEPARATOR=';' | |
10713 | else | |
10714 | PATH_SEPARATOR=: | |
10715 | fi | |
10716 | rm -f conf$$.sh | |
252b5132 RH |
10717 | fi |
10718 | ||
10719 | ||
42ecbf5e DJ |
10720 | as_lineno_1=$LINENO |
10721 | as_lineno_2=$LINENO | |
10722 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
10723 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
10724 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
10725 | # Find who we are. Look in the path if we contain no path at all | |
10726 | # relative or not. | |
10727 | case $0 in | |
10728 | *[\\/]* ) as_myself=$0 ;; | |
10729 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10730 | for as_dir in $PATH | |
eb1e0e80 | 10731 | do |
42ecbf5e DJ |
10732 | IFS=$as_save_IFS |
10733 | test -z "$as_dir" && as_dir=. | |
10734 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
10735 | done | |
eb1e0e80 | 10736 | |
42ecbf5e DJ |
10737 | ;; |
10738 | esac | |
10739 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
10740 | # in which case we are not to be found in the path. | |
10741 | if test "x$as_myself" = x; then | |
10742 | as_myself=$0 | |
10743 | fi | |
10744 | if test ! -f "$as_myself"; then | |
10745 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
10746 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
10747 | { (exit 1); exit 1; }; } | |
10748 | fi | |
10749 | case $CONFIG_SHELL in | |
10750 | '') | |
10751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10752 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
10753 | do | |
10754 | IFS=$as_save_IFS | |
10755 | test -z "$as_dir" && as_dir=. | |
10756 | for as_base in sh bash ksh sh5; do | |
10757 | case $as_dir in | |
10758 | /*) | |
10759 | if ("$as_dir/$as_base" -c ' | |
10760 | as_lineno_1=$LINENO | |
10761 | as_lineno_2=$LINENO | |
10762 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
10763 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
10764 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
10765 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
10766 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
10767 | CONFIG_SHELL=$as_dir/$as_base | |
10768 | export CONFIG_SHELL | |
10769 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
10770 | fi;; | |
10771 | esac | |
10772 | done | |
eb1e0e80 | 10773 | done |
42ecbf5e DJ |
10774 | ;; |
10775 | esac | |
eb1e0e80 | 10776 | |
42ecbf5e DJ |
10777 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
10778 | # uniformly replaced by the line number. The first 'sed' inserts a | |
10779 | # line-number line before each line; the second 'sed' does the real | |
10780 | # work. The second script uses 'N' to pair each line-number line | |
10781 | # with the numbered line, and appends trailing '-' during | |
10782 | # substitution so that $LINENO is not a special case at line end. | |
10783 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
10784 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
10785 | sed '=' <$as_myself | | |
10786 | sed ' | |
10787 | N | |
10788 | s,$,-, | |
10789 | : loop | |
10790 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
10791 | t loop | |
10792 | s,-$,, | |
10793 | s,^['$as_cr_digits']*\n,, | |
10794 | ' >$as_me.lineno && | |
10795 | chmod +x $as_me.lineno || | |
10796 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
10797 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
10798 | { (exit 1); exit 1; }; } | |
10799 | ||
10800 | # Don't try to exec as it changes $[0], causing all sort of problems | |
10801 | # (the dirname of $[0] is not the place where we might find the | |
10802 | # original and so on. Autoconf is especially sensible to this). | |
10803 | . ./$as_me.lineno | |
10804 | # Exit status is that of the last command. | |
10805 | exit | |
10806 | } | |
eb1e0e80 NC |
10807 | |
10808 | ||
42ecbf5e DJ |
10809 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
10810 | *c*,-n*) ECHO_N= ECHO_C=' | |
10811 | ' ECHO_T=' ' ;; | |
10812 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
10813 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
10814 | esac | |
eb1e0e80 | 10815 | |
42ecbf5e DJ |
10816 | if expr a : '\(a\)' >/dev/null 2>&1; then |
10817 | as_expr=expr | |
d15b04bd | 10818 | else |
42ecbf5e DJ |
10819 | as_expr=false |
10820 | fi | |
10821 | ||
10822 | rm -f conf$$ conf$$.exe conf$$.file | |
10823 | echo >conf$$.file | |
10824 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
10825 | # We could just check for DJGPP; but this test a) works b) is more generic | |
10826 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
10827 | if test -f conf$$.exe; then | |
10828 | # Don't use ln at all; we don't have any links | |
10829 | as_ln_s='cp -p' | |
252b5132 | 10830 | else |
42ecbf5e | 10831 | as_ln_s='ln -s' |
252b5132 | 10832 | fi |
42ecbf5e DJ |
10833 | elif ln conf$$.file conf$$ 2>/dev/null; then |
10834 | as_ln_s=ln | |
10835 | else | |
10836 | as_ln_s='cp -p' | |
252b5132 | 10837 | fi |
42ecbf5e | 10838 | rm -f conf$$ conf$$.exe conf$$.file |
252b5132 | 10839 | |
42ecbf5e DJ |
10840 | if mkdir -p . 2>/dev/null; then |
10841 | as_mkdir_p=: | |
10842 | else | |
10843 | test -d ./-p && rmdir ./-p | |
10844 | as_mkdir_p=false | |
10845 | fi | |
d15b04bd | 10846 | |
42ecbf5e | 10847 | as_executable_p="test -f" |
252b5132 | 10848 | |
42ecbf5e DJ |
10849 | # Sed expression to map a string onto a valid CPP name. |
10850 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
10851 | ||
10852 | # Sed expression to map a string onto a valid variable name. | |
10853 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
10854 | ||
10855 | ||
10856 | # IFS | |
10857 | # We need space, tab and new line, in precisely that order. | |
10858 | as_nl=' | |
10859 | ' | |
10860 | IFS=" $as_nl" | |
10861 | ||
10862 | # CDPATH. | |
10863 | $as_unset CDPATH | |
10864 | ||
10865 | exec 6>&1 | |
10866 | ||
10867 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
10868 | # report actual input values of CONFIG_FILES etc. instead of their | |
10869 | # values after options handling. Logging --version etc. is OK. | |
10870 | exec 5>>config.log | |
10871 | { | |
10872 | echo | |
10873 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
10874 | ## Running $as_me. ## | |
10875 | _ASBOX | |
10876 | } >&5 | |
10877 | cat >&5 <<_CSEOF | |
10878 | ||
10879 | This file was extended by $as_me, which was | |
10880 | generated by GNU Autoconf 2.59. Invocation command line was | |
10881 | ||
10882 | CONFIG_FILES = $CONFIG_FILES | |
10883 | CONFIG_HEADERS = $CONFIG_HEADERS | |
10884 | CONFIG_LINKS = $CONFIG_LINKS | |
10885 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
10886 | $ $0 $@ | |
10887 | ||
10888 | _CSEOF | |
10889 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
10890 | echo >&5 | |
10891 | _ACEOF | |
10892 | ||
10893 | # Files that config.status was made for. | |
10894 | if test -n "$ac_config_files"; then | |
10895 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
252b5132 RH |
10896 | fi |
10897 | ||
42ecbf5e DJ |
10898 | if test -n "$ac_config_headers"; then |
10899 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
10900 | fi | |
e5a52504 | 10901 | |
42ecbf5e DJ |
10902 | if test -n "$ac_config_links"; then |
10903 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
10904 | fi | |
e5a52504 | 10905 | |
42ecbf5e DJ |
10906 | if test -n "$ac_config_commands"; then |
10907 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
10908 | fi | |
d15b04bd | 10909 | |
42ecbf5e DJ |
10910 | cat >>$CONFIG_STATUS <<\_ACEOF |
10911 | ||
10912 | ac_cs_usage="\ | |
10913 | \`$as_me' instantiates files from templates according to the | |
10914 | current configuration. | |
10915 | ||
10916 | Usage: $0 [OPTIONS] [FILE]... | |
10917 | ||
10918 | -h, --help print this help, then exit | |
10919 | -V, --version print version number, then exit | |
10920 | -q, --quiet do not print progress messages | |
10921 | -d, --debug don't remove temporary files | |
10922 | --recheck update $as_me by reconfiguring in the same conditions | |
10923 | --file=FILE[:TEMPLATE] | |
10924 | instantiate the configuration file FILE | |
10925 | --header=FILE[:TEMPLATE] | |
10926 | instantiate the configuration header FILE | |
10927 | ||
10928 | Configuration files: | |
10929 | $config_files | |
10930 | ||
10931 | Configuration headers: | |
10932 | $config_headers | |
10933 | ||
10934 | Configuration commands: | |
10935 | $config_commands | |
10936 | ||
10937 | Report bugs to <bug-autoconf@gnu.org>." | |
10938 | _ACEOF | |
10939 | ||
10940 | cat >>$CONFIG_STATUS <<_ACEOF | |
10941 | ac_cs_version="\\ | |
10942 | config.status | |
10943 | configured by $0, generated by GNU Autoconf 2.59, | |
10944 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
10945 | ||
10946 | Copyright (C) 2003 Free Software Foundation, Inc. | |
10947 | This config.status script is free software; the Free Software Foundation | |
10948 | gives unlimited permission to copy, distribute and modify it." | |
10949 | srcdir=$srcdir | |
10950 | INSTALL="$INSTALL" | |
10951 | _ACEOF | |
10952 | ||
10953 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10954 | # If no file are specified by the user, then we need to provide default | |
10955 | # value. By we need to know if files were specified by the user. | |
10956 | ac_need_defaults=: | |
10957 | while test $# != 0 | |
10958 | do | |
10959 | case $1 in | |
10960 | --*=*) | |
10961 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
10962 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
10963 | ac_shift=: | |
10964 | ;; | |
10965 | -*) | |
10966 | ac_option=$1 | |
10967 | ac_optarg=$2 | |
10968 | ac_shift=shift | |
10969 | ;; | |
10970 | *) # This is not an option, so the user has probably given explicit | |
10971 | # arguments. | |
10972 | ac_option=$1 | |
10973 | ac_need_defaults=false;; | |
10974 | esac | |
10975 | ||
10976 | case $ac_option in | |
10977 | # Handling of the options. | |
10978 | _ACEOF | |
10979 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10980 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
10981 | ac_cs_recheck=: ;; | |
10982 | --version | --vers* | -V ) | |
10983 | echo "$ac_cs_version"; exit 0 ;; | |
10984 | --he | --h) | |
10985 | # Conflict between --help and --header | |
10986 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
10987 | Try \`$0 --help' for more information." >&5 | |
10988 | echo "$as_me: error: ambiguous option: $1 | |
10989 | Try \`$0 --help' for more information." >&2;} | |
10990 | { (exit 1); exit 1; }; };; | |
10991 | --help | --hel | -h ) | |
10992 | echo "$ac_cs_usage"; exit 0 ;; | |
10993 | --debug | --d* | -d ) | |
10994 | debug=: ;; | |
10995 | --file | --fil | --fi | --f ) | |
10996 | $ac_shift | |
10997 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
10998 | ac_need_defaults=false;; | |
10999 | --header | --heade | --head | --hea ) | |
11000 | $ac_shift | |
11001 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
11002 | ac_need_defaults=false;; | |
11003 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
11004 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
11005 | ac_cs_silent=: ;; | |
11006 | ||
11007 | # This is an error. | |
11008 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
11009 | Try \`$0 --help' for more information." >&5 | |
11010 | echo "$as_me: error: unrecognized option: $1 | |
11011 | Try \`$0 --help' for more information." >&2;} | |
11012 | { (exit 1); exit 1; }; } ;; | |
11013 | ||
11014 | *) ac_config_targets="$ac_config_targets $1" ;; | |
11015 | ||
11016 | esac | |
11017 | shift | |
11018 | done | |
11019 | ||
11020 | ac_configure_extra_args= | |
11021 | ||
11022 | if $ac_cs_silent; then | |
11023 | exec 6>/dev/null | |
11024 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
11025 | fi | |
11026 | ||
11027 | _ACEOF | |
11028 | cat >>$CONFIG_STATUS <<_ACEOF | |
11029 | if \$ac_cs_recheck; then | |
11030 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
11031 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
11032 | fi | |
11033 | ||
11034 | _ACEOF | |
11035 | ||
11036 | cat >>$CONFIG_STATUS <<_ACEOF | |
d15b04bd | 11037 | # |
42ecbf5e | 11038 | # INIT-COMMANDS section. |
d15b04bd | 11039 | # |
e5a52504 | 11040 | |
42ecbf5e DJ |
11041 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
11042 | ||
11043 | _ACEOF | |
11044 | ||
11045 | ||
11046 | ||
11047 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11048 | for ac_config_target in $ac_config_targets | |
252b5132 | 11049 | do |
42ecbf5e DJ |
11050 | case "$ac_config_target" in |
11051 | # Handling of arguments. | |
11052 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
11053 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
11054 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
11055 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
11056 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
11057 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
11058 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
11059 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
11060 | { (exit 1); exit 1; }; };; | |
d15b04bd | 11061 | esac |
252b5132 RH |
11062 | done |
11063 | ||
42ecbf5e DJ |
11064 | # If the user did not use the arguments to specify the items to instantiate, |
11065 | # then the envvar interface is used. Set only those that are not. | |
11066 | # We use the long form for the default assignment because of an extremely | |
11067 | # bizarre bug on SunOS 4.1.3. | |
11068 | if $ac_need_defaults; then | |
11069 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
11070 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
11071 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
11072 | fi | |
11073 | ||
11074 | # Have a temporary directory for convenience. Make it in the build tree | |
11075 | # simply because there is no reason to put it here, and in addition, | |
11076 | # creating and moving files from /tmp can sometimes cause problems. | |
11077 | # Create a temporary directory, and hook for its removal unless debugging. | |
11078 | $debug || | |
11079 | { | |
11080 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
11081 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
11082 | } | |
252b5132 | 11083 | |
42ecbf5e | 11084 | # Create a (secure) tmp directory for tmp files. |
e5a52504 | 11085 | |
42ecbf5e DJ |
11086 | { |
11087 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
11088 | test -n "$tmp" && test -d "$tmp" | |
11089 | } || | |
11090 | { | |
11091 | tmp=./confstat$$-$RANDOM | |
11092 | (umask 077 && mkdir $tmp) | |
11093 | } || | |
11094 | { | |
11095 | echo "$me: cannot create a temporary directory in ." >&2 | |
11096 | { (exit 1); exit 1; } | |
11097 | } | |
11098 | ||
11099 | _ACEOF | |
11100 | ||
11101 | cat >>$CONFIG_STATUS <<_ACEOF | |
11102 | ||
11103 | # | |
11104 | # CONFIG_FILES section. | |
11105 | # | |
e5a52504 | 11106 | |
42ecbf5e DJ |
11107 | # No need to generate the scripts if there are no CONFIG_FILES. |
11108 | # This happens for instance when ./config.status config.h | |
11109 | if test -n "\$CONFIG_FILES"; then | |
11110 | # Protect against being on the right side of a sed subst in config.status. | |
11111 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
11112 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
11113 | s,@SHELL@,$SHELL,;t t | |
11114 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
11115 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
11116 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
11117 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
11118 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
11119 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
11120 | s,@exec_prefix@,$exec_prefix,;t t | |
11121 | s,@prefix@,$prefix,;t t | |
11122 | s,@program_transform_name@,$program_transform_name,;t t | |
11123 | s,@bindir@,$bindir,;t t | |
11124 | s,@sbindir@,$sbindir,;t t | |
11125 | s,@libexecdir@,$libexecdir,;t t | |
11126 | s,@datadir@,$datadir,;t t | |
11127 | s,@sysconfdir@,$sysconfdir,;t t | |
11128 | s,@sharedstatedir@,$sharedstatedir,;t t | |
11129 | s,@localstatedir@,$localstatedir,;t t | |
11130 | s,@libdir@,$libdir,;t t | |
11131 | s,@includedir@,$includedir,;t t | |
11132 | s,@oldincludedir@,$oldincludedir,;t t | |
11133 | s,@infodir@,$infodir,;t t | |
11134 | s,@mandir@,$mandir,;t t | |
11135 | s,@build_alias@,$build_alias,;t t | |
11136 | s,@host_alias@,$host_alias,;t t | |
11137 | s,@target_alias@,$target_alias,;t t | |
11138 | s,@DEFS@,$DEFS,;t t | |
11139 | s,@ECHO_C@,$ECHO_C,;t t | |
11140 | s,@ECHO_N@,$ECHO_N,;t t | |
11141 | s,@ECHO_T@,$ECHO_T,;t t | |
11142 | s,@LIBS@,$LIBS,;t t | |
11143 | s,@build@,$build,;t t | |
11144 | s,@build_cpu@,$build_cpu,;t t | |
11145 | s,@build_vendor@,$build_vendor,;t t | |
11146 | s,@build_os@,$build_os,;t t | |
11147 | s,@host@,$host,;t t | |
11148 | s,@host_cpu@,$host_cpu,;t t | |
11149 | s,@host_vendor@,$host_vendor,;t t | |
11150 | s,@host_os@,$host_os,;t t | |
11151 | s,@target@,$target,;t t | |
11152 | s,@target_cpu@,$target_cpu,;t t | |
11153 | s,@target_vendor@,$target_vendor,;t t | |
11154 | s,@target_os@,$target_os,;t t | |
11155 | s,@CC@,$CC,;t t | |
11156 | s,@CFLAGS@,$CFLAGS,;t t | |
11157 | s,@LDFLAGS@,$LDFLAGS,;t t | |
11158 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
11159 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
11160 | s,@EXEEXT@,$EXEEXT,;t t | |
11161 | s,@OBJEXT@,$OBJEXT,;t t | |
11162 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
11163 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
11164 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
11165 | s,@CYGPATH_W@,$CYGPATH_W,;t t | |
11166 | s,@PACKAGE@,$PACKAGE,;t t | |
11167 | s,@VERSION@,$VERSION,;t t | |
11168 | s,@ACLOCAL@,$ACLOCAL,;t t | |
11169 | s,@AUTOCONF@,$AUTOCONF,;t t | |
11170 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
11171 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
11172 | s,@MAKEINFO@,$MAKEINFO,;t t | |
11173 | s,@install_sh@,$install_sh,;t t | |
11174 | s,@STRIP@,$STRIP,;t t | |
11175 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
11176 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
11177 | s,@mkdir_p@,$mkdir_p,;t t | |
11178 | s,@AWK@,$AWK,;t t | |
11179 | s,@SET_MAKE@,$SET_MAKE,;t t | |
11180 | s,@am__leading_dot@,$am__leading_dot,;t t | |
11181 | s,@AMTAR@,$AMTAR,;t t | |
11182 | s,@am__tar@,$am__tar,;t t | |
11183 | s,@am__untar@,$am__untar,;t t | |
11184 | s,@DEPDIR@,$DEPDIR,;t t | |
11185 | s,@am__include@,$am__include,;t t | |
11186 | s,@am__quote@,$am__quote,;t t | |
11187 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
11188 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
11189 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
11190 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
11191 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
11192 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
11193 | s,@LN_S@,$LN_S,;t t | |
11194 | s,@RANLIB@,$RANLIB,;t t | |
11195 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
11196 | s,@LIBTOOL@,$LIBTOOL,;t t | |
11197 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
11198 | s,@NO_WERROR@,$NO_WERROR,;t t | |
11199 | s,@YACC@,$YACC,;t t | |
11200 | s,@LEX@,$LEX,;t t | |
11201 | s,@LEXLIB@,$LEXLIB,;t t | |
11202 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | |
11203 | s,@CPP@,$CPP,;t t | |
11204 | s,@EGREP@,$EGREP,;t t | |
11205 | s,@ALLOCA@,$ALLOCA,;t t | |
11206 | s,@USE_NLS@,$USE_NLS,;t t | |
11207 | s,@MSGFMT@,$MSGFMT,;t t | |
11208 | s,@GMSGFMT@,$GMSGFMT,;t t | |
11209 | s,@XGETTEXT@,$XGETTEXT,;t t | |
11210 | s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t | |
11211 | s,@CATALOGS@,$CATALOGS,;t t | |
11212 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
11213 | s,@DATADIRNAME@,$DATADIRNAME,;t t | |
11214 | s,@GMOFILES@,$GMOFILES,;t t | |
11215 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
11216 | s,@INTLDEPS@,$INTLDEPS,;t t | |
11217 | s,@INTLLIBS@,$INTLLIBS,;t t | |
11218 | s,@INTLOBJS@,$INTLOBJS,;t t | |
11219 | s,@POFILES@,$POFILES,;t t | |
11220 | s,@POSUB@,$POSUB,;t t | |
11221 | s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t | |
11222 | s,@GT_NO@,$GT_NO,;t t | |
11223 | s,@GT_YES@,$GT_YES,;t t | |
11224 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t | |
11225 | s,@l@,$l,;t t | |
11226 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
11227 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
11228 | s,@MAINT@,$MAINT,;t t | |
11229 | s,@HDEFINES@,$HDEFINES,;t t | |
11230 | s,@AR@,$AR,;t t | |
11231 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t | |
11232 | s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t | |
11233 | s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t | |
11234 | s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t | |
11235 | s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t | |
11236 | s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t | |
11237 | s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t | |
11238 | s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t | |
11239 | s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t | |
11240 | s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t | |
11241 | s,@BUILD_MISC@,$BUILD_MISC,;t t | |
11242 | s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t | |
11243 | s,@EMULATION@,$EMULATION,;t t | |
11244 | s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t | |
11245 | s,@LIBOBJS@,$LIBOBJS,;t t | |
11246 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
d15b04bd | 11247 | CEOF |
252b5132 | 11248 | |
42ecbf5e DJ |
11249 | _ACEOF |
11250 | ||
11251 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11252 | # Split the substitutions into bite-sized pieces for seds with | |
11253 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
11254 | ac_max_sed_lines=48 | |
11255 | ac_sed_frag=1 # Number of current file. | |
11256 | ac_beg=1 # First line for current file. | |
11257 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
11258 | ac_more_lines=: | |
11259 | ac_sed_cmds= | |
11260 | while $ac_more_lines; do | |
11261 | if test $ac_beg -gt 1; then | |
11262 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
11263 | else | |
11264 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
11265 | fi | |
11266 | if test ! -s $tmp/subs.frag; then | |
11267 | ac_more_lines=false | |
d15b04bd | 11268 | else |
42ecbf5e DJ |
11269 | # The purpose of the label and of the branching condition is to |
11270 | # speed up the sed processing (if there are no `@' at all, there | |
11271 | # is no need to browse any of the substitutions). | |
11272 | # These are the two extra sed commands mentioned above. | |
11273 | (echo ':t | |
11274 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
11275 | if test -z "$ac_sed_cmds"; then | |
11276 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
11277 | else | |
11278 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
11279 | fi | |
11280 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
11281 | ac_beg=$ac_end | |
11282 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
d15b04bd | 11283 | fi |
42ecbf5e DJ |
11284 | done |
11285 | if test -z "$ac_sed_cmds"; then | |
11286 | ac_sed_cmds=cat | |
252b5132 | 11287 | fi |
42ecbf5e | 11288 | fi # test -n "$CONFIG_FILES" |
252b5132 | 11289 | |
42ecbf5e DJ |
11290 | _ACEOF |
11291 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11292 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
e5a52504 | 11293 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
42ecbf5e DJ |
11294 | case $ac_file in |
11295 | - | *:- | *:-:* ) # input from stdin | |
11296 | cat >$tmp/stdin | |
11297 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
11298 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
11299 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
11300 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
11301 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
11302 | esac |
11303 | ||
42ecbf5e DJ |
11304 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
11305 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
11306 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11307 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
11308 | X"$ac_file" : 'X\(//\)$' \| \ | |
11309 | X"$ac_file" : 'X\(/\)' \| \ | |
11310 | . : '\(.\)' 2>/dev/null || | |
11311 | echo X"$ac_file" | | |
11312 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
11313 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
11314 | /^X\(\/\/\)$/{ s//\1/; q; } | |
11315 | /^X\(\/\).*/{ s//\1/; q; } | |
11316 | s/.*/./; q'` | |
11317 | { if $as_mkdir_p; then | |
11318 | mkdir -p "$ac_dir" | |
d15b04bd | 11319 | else |
42ecbf5e DJ |
11320 | as_dir="$ac_dir" |
11321 | as_dirs= | |
11322 | while test ! -d "$as_dir"; do | |
11323 | as_dirs="$as_dir $as_dirs" | |
11324 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
11325 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11326 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
11327 | X"$as_dir" : 'X\(//\)$' \| \ | |
11328 | X"$as_dir" : 'X\(/\)' \| \ | |
11329 | . : '\(.\)' 2>/dev/null || | |
11330 | echo X"$as_dir" | | |
11331 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
11332 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
11333 | /^X\(\/\/\)$/{ s//\1/; q; } | |
11334 | /^X\(\/\).*/{ s//\1/; q; } | |
11335 | s/.*/./; q'` | |
11336 | done | |
11337 | test ! -n "$as_dirs" || mkdir $as_dirs | |
11338 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
11339 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
11340 | { (exit 1); exit 1; }; }; } | |
11341 | ||
11342 | ac_builddir=. | |
e5a52504 | 11343 | |
42ecbf5e DJ |
11344 | if test "$ac_dir" != .; then |
11345 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
11346 | # A "../" for each directory in $ac_dir_suffix. | |
11347 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
11348 | else | |
11349 | ac_dir_suffix= ac_top_builddir= | |
11350 | fi | |
11351 | ||
11352 | case $srcdir in | |
11353 | .) # No --srcdir option. We are building in place. | |
11354 | ac_srcdir=. | |
11355 | if test -z "$ac_top_builddir"; then | |
11356 | ac_top_srcdir=. | |
11357 | else | |
11358 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
11359 | fi ;; | |
11360 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
11361 | ac_srcdir=$srcdir$ac_dir_suffix; | |
11362 | ac_top_srcdir=$srcdir ;; | |
e5a52504 | 11363 | *) # Relative path. |
42ecbf5e DJ |
11364 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
11365 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
11366 | esac | |
252b5132 | 11367 | |
42ecbf5e DJ |
11368 | # Do not use `cd foo && pwd` to compute absolute paths, because |
11369 | # the directories may not exist. | |
11370 | case `pwd` in | |
11371 | .) ac_abs_builddir="$ac_dir";; | |
11372 | *) | |
11373 | case "$ac_dir" in | |
11374 | .) ac_abs_builddir=`pwd`;; | |
11375 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
11376 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
11377 | esac;; | |
11378 | esac | |
11379 | case $ac_abs_builddir in | |
11380 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
11381 | *) | |
11382 | case ${ac_top_builddir}. in | |
11383 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
11384 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
11385 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
11386 | esac;; | |
11387 | esac | |
11388 | case $ac_abs_builddir in | |
11389 | .) ac_abs_srcdir=$ac_srcdir;; | |
11390 | *) | |
11391 | case $ac_srcdir in | |
11392 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
11393 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
11394 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
11395 | esac;; | |
11396 | esac | |
11397 | case $ac_abs_builddir in | |
11398 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
11399 | *) | |
11400 | case $ac_top_srcdir in | |
11401 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
11402 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
11403 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
11404 | esac;; | |
11405 | esac | |
e5a52504 | 11406 | |
42ecbf5e DJ |
11407 | |
11408 | case $INSTALL in | |
11409 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
11410 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
d15b04bd | 11411 | esac |
e5a52504 | 11412 | |
b7d4af3a JW |
11413 | if test x"$ac_file" != x-; then |
11414 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
11415 | echo "$as_me: creating $ac_file" >&6;} | |
11416 | rm -f "$ac_file" | |
11417 | fi | |
42ecbf5e DJ |
11418 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
11419 | # use $as_me), people would be surprised to read: | |
11420 | # /* config.h. Generated by config.status. */ | |
11421 | if test x"$ac_file" = x-; then | |
11422 | configure_input= | |
11423 | else | |
11424 | configure_input="$ac_file. " | |
11425 | fi | |
11426 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
11427 | sed 's,.*/,,'` by configure." | |
11428 | ||
11429 | # First look for the input files in the build tree, otherwise in the | |
11430 | # src tree. | |
11431 | ac_file_inputs=`IFS=: | |
11432 | for f in $ac_file_in; do | |
11433 | case $f in | |
11434 | -) echo $tmp/stdin ;; | |
11435 | [\\/$]*) | |
11436 | # Absolute (can't be DOS-style, as IFS=:) | |
11437 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
11438 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
11439 | { (exit 1); exit 1; }; } | |
11440 | echo "$f";; | |
11441 | *) # Relative | |
11442 | if test -f "$f"; then | |
11443 | # Build tree | |
11444 | echo "$f" | |
11445 | elif test -f "$srcdir/$f"; then | |
11446 | # Source tree | |
11447 | echo "$srcdir/$f" | |
11448 | else | |
11449 | # /dev/null tree | |
11450 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
11451 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
11452 | { (exit 1); exit 1; }; } | |
11453 | fi;; | |
11454 | esac | |
11455 | done` || { (exit 1); exit 1; } | |
42ecbf5e DJ |
11456 | _ACEOF |
11457 | cat >>$CONFIG_STATUS <<_ACEOF | |
11458 | sed "$ac_vpsub | |
11459 | $extrasub | |
11460 | _ACEOF | |
11461 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11462 | :t | |
11463 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
11464 | s,@configure_input@,$configure_input,;t t | |
11465 | s,@srcdir@,$ac_srcdir,;t t | |
11466 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
11467 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
11468 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
11469 | s,@builddir@,$ac_builddir,;t t | |
11470 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
11471 | s,@top_builddir@,$ac_top_builddir,;t t | |
11472 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
11473 | s,@INSTALL@,$ac_INSTALL,;t t | |
11474 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
11475 | rm -f $tmp/stdin | |
11476 | if test x"$ac_file" != x-; then | |
11477 | mv $tmp/out $ac_file | |
11478 | else | |
11479 | cat $tmp/out | |
11480 | rm -f $tmp/out | |
11481 | fi | |
11482 | ||
11483 | done | |
11484 | _ACEOF | |
11485 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11486 | ||
11487 | # | |
11488 | # CONFIG_HEADER section. | |
11489 | # | |
252b5132 RH |
11490 | |
11491 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
11492 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
11493 | # | |
11494 | # ac_d sets the value in "#define NAME VALUE" lines. | |
42ecbf5e DJ |
11495 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
11496 | ac_dB='[ ].*$,\1#\2' | |
11497 | ac_dC=' ' | |
11498 | ac_dD=',;t' | |
11499 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
11500 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
11501 | ac_uB='$,\1#\2define\3' | |
252b5132 | 11502 | ac_uC=' ' |
42ecbf5e DJ |
11503 | ac_uD=',;t' |
11504 | ||
11505 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
252b5132 | 11506 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
42ecbf5e DJ |
11507 | case $ac_file in |
11508 | - | *:- | *:-:* ) # input from stdin | |
11509 | cat >$tmp/stdin | |
11510 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
11511 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
11512 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
11513 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
11514 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
11515 | esac |
11516 | ||
42ecbf5e DJ |
11517 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
11518 | echo "$as_me: creating $ac_file" >&6;} | |
11519 | ||
11520 | # First look for the input files in the build tree, otherwise in the | |
11521 | # src tree. | |
11522 | ac_file_inputs=`IFS=: | |
11523 | for f in $ac_file_in; do | |
11524 | case $f in | |
11525 | -) echo $tmp/stdin ;; | |
11526 | [\\/$]*) | |
11527 | # Absolute (can't be DOS-style, as IFS=:) | |
11528 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
11529 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
11530 | { (exit 1); exit 1; }; } | |
11531 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
11532 | echo "$f";; | |
11533 | *) # Relative | |
11534 | if test -f "$f"; then | |
11535 | # Build tree | |
11536 | echo "$f" | |
11537 | elif test -f "$srcdir/$f"; then | |
11538 | # Source tree | |
11539 | echo "$srcdir/$f" | |
11540 | else | |
11541 | # /dev/null tree | |
11542 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
11543 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
11544 | { (exit 1); exit 1; }; } | |
11545 | fi;; | |
11546 | esac | |
11547 | done` || { (exit 1); exit 1; } | |
11548 | # Remove the trailing spaces. | |
11549 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
11550 | ||
11551 | _ACEOF | |
11552 | ||
11553 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
11554 | # `conftest.undefs', that substitutes the proper values into | |
11555 | # config.h.in to produce config.h. The first handles `#define' | |
11556 | # templates, and the second `#undef' templates. | |
11557 | # And first: Protect against being on the right side of a sed subst in | |
11558 | # config.status. Protect against being in an unquoted here document | |
11559 | # in config.status. | |
11560 | rm -f conftest.defines conftest.undefs | |
11561 | # Using a here document instead of a string reduces the quoting nightmare. | |
11562 | # Putting comments in sed scripts is not portable. | |
11563 | # | |
11564 | # `end' is used to avoid that the second main sed command (meant for | |
11565 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
11566 | # See the Autoconf documentation for `clear'. | |
11567 | cat >confdef2sed.sed <<\_ACEOF | |
11568 | s/[\\&,]/\\&/g | |
11569 | s,[\\$`],\\&,g | |
11570 | t clear | |
11571 | : clear | |
11572 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
11573 | t end | |
11574 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
11575 | : end | |
11576 | _ACEOF | |
11577 | # If some macros were called several times there might be several times | |
11578 | # the same #defines, which is useless. Nevertheless, we may not want to | |
11579 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
11580 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
11581 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
11582 | rm -f confdef2sed.sed | |
252b5132 RH |
11583 | |
11584 | # This sed command replaces #undef with comments. This is necessary, for | |
11585 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
11586 | # on some systems where configure will not decide to define it. | |
42ecbf5e DJ |
11587 | cat >>conftest.undefs <<\_ACEOF |
11588 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
11589 | _ACEOF | |
11590 | ||
11591 | # Break up conftest.defines because some shells have a limit on the size | |
11592 | # of here documents, and old seds have small limits too (100 cmds). | |
11593 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
11594 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
11595 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
11596 | echo ' :' >>$CONFIG_STATUS | |
11597 | rm -f conftest.tail | |
11598 | while grep . conftest.defines >/dev/null | |
11599 | do | |
11600 | # Write a limited-size here document to $tmp/defines.sed. | |
11601 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
11602 | # Speed up: don't consider the non `#define' lines. | |
11603 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
11604 | # Work around the forget-to-reset-the-flag bug. | |
11605 | echo 't clr' >>$CONFIG_STATUS | |
11606 | echo ': clr' >>$CONFIG_STATUS | |
11607 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
11608 | echo 'CEOF | |
11609 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
11610 | rm -f $tmp/in | |
11611 | mv $tmp/out $tmp/in | |
11612 | ' >>$CONFIG_STATUS | |
11613 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
11614 | rm -f conftest.defines | |
11615 | mv conftest.tail conftest.defines | |
11616 | done | |
11617 | rm -f conftest.defines | |
11618 | echo ' fi # grep' >>$CONFIG_STATUS | |
11619 | echo >>$CONFIG_STATUS | |
252b5132 | 11620 | |
42ecbf5e DJ |
11621 | # Break up conftest.undefs because some shells have a limit on the size |
11622 | # of here documents, and old seds have small limits too (100 cmds). | |
11623 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
252b5132 | 11624 | rm -f conftest.tail |
42ecbf5e | 11625 | while grep . conftest.undefs >/dev/null |
252b5132 | 11626 | do |
42ecbf5e DJ |
11627 | # Write a limited-size here document to $tmp/undefs.sed. |
11628 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
11629 | # Speed up: don't consider the non `#undef' | |
11630 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
11631 | # Work around the forget-to-reset-the-flag bug. | |
11632 | echo 't clr' >>$CONFIG_STATUS | |
11633 | echo ': clr' >>$CONFIG_STATUS | |
11634 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
252b5132 | 11635 | echo 'CEOF |
42ecbf5e DJ |
11636 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
11637 | rm -f $tmp/in | |
11638 | mv $tmp/out $tmp/in | |
11639 | ' >>$CONFIG_STATUS | |
11640 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
11641 | rm -f conftest.undefs | |
11642 | mv conftest.tail conftest.undefs | |
252b5132 | 11643 | done |
42ecbf5e DJ |
11644 | rm -f conftest.undefs |
11645 | ||
11646 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11647 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
11648 | # use $as_me), people would be surprised to read: | |
11649 | # /* config.h. Generated by config.status. */ | |
11650 | if test x"$ac_file" = x-; then | |
11651 | echo "/* Generated by configure. */" >$tmp/config.h | |
11652 | else | |
11653 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
11654 | fi | |
11655 | cat $tmp/in >>$tmp/config.h | |
11656 | rm -f $tmp/in | |
11657 | if test x"$ac_file" != x-; then | |
11658 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
11659 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
11660 | echo "$as_me: $ac_file is unchanged" >&6;} | |
11661 | else | |
11662 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
11663 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11664 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
11665 | X"$ac_file" : 'X\(//\)$' \| \ | |
11666 | X"$ac_file" : 'X\(/\)' \| \ | |
11667 | . : '\(.\)' 2>/dev/null || | |
11668 | echo X"$ac_file" | | |
11669 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
11670 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
11671 | /^X\(\/\/\)$/{ s//\1/; q; } | |
11672 | /^X\(\/\).*/{ s//\1/; q; } | |
11673 | s/.*/./; q'` | |
11674 | { if $as_mkdir_p; then | |
11675 | mkdir -p "$ac_dir" | |
252b5132 | 11676 | else |
42ecbf5e DJ |
11677 | as_dir="$ac_dir" |
11678 | as_dirs= | |
11679 | while test ! -d "$as_dir"; do | |
11680 | as_dirs="$as_dir $as_dirs" | |
11681 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
11682 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11683 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
11684 | X"$as_dir" : 'X\(//\)$' \| \ | |
11685 | X"$as_dir" : 'X\(/\)' \| \ | |
11686 | . : '\(.\)' 2>/dev/null || | |
11687 | echo X"$as_dir" | | |
11688 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
11689 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
11690 | /^X\(\/\/\)$/{ s//\1/; q; } | |
11691 | /^X\(\/\).*/{ s//\1/; q; } | |
11692 | s/.*/./; q'` | |
11693 | done | |
11694 | test ! -n "$as_dirs" || mkdir $as_dirs | |
11695 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
11696 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
11697 | { (exit 1); exit 1; }; }; } | |
11698 | ||
11699 | rm -f $ac_file | |
11700 | mv $tmp/config.h $ac_file | |
252b5132 | 11701 | fi |
42ecbf5e DJ |
11702 | else |
11703 | cat $tmp/config.h | |
11704 | rm -f $tmp/config.h | |
252b5132 | 11705 | fi |
42ecbf5e DJ |
11706 | # Compute $ac_file's index in $config_headers. |
11707 | _am_stamp_count=1 | |
11708 | for _am_header in $config_headers :; do | |
11709 | case $_am_header in | |
11710 | $ac_file | $ac_file:* ) | |
11711 | break ;; | |
11712 | * ) | |
11713 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
11714 | esac | |
11715 | done | |
11716 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
11717 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11718 | X$ac_file : 'X\(//\)[^/]' \| \ | |
11719 | X$ac_file : 'X\(//\)$' \| \ | |
11720 | X$ac_file : 'X\(/\)' \| \ | |
11721 | . : '\(.\)' 2>/dev/null || | |
11722 | echo X$ac_file | | |
11723 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
11724 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
11725 | /^X\(\/\/\)$/{ s//\1/; q; } | |
11726 | /^X\(\/\).*/{ s//\1/; q; } | |
11727 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
11728 | done | |
11729 | _ACEOF | |
11730 | cat >>$CONFIG_STATUS <<\_ACEOF | |
252b5132 | 11731 | |
42ecbf5e DJ |
11732 | # |
11733 | # CONFIG_COMMANDS section. | |
11734 | # | |
11735 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
11736 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
11737 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
11738 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
11739 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11740 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
11741 | X"$ac_dest" : 'X\(//\)$' \| \ | |
11742 | X"$ac_dest" : 'X\(/\)' \| \ | |
11743 | . : '\(.\)' 2>/dev/null || | |
11744 | echo X"$ac_dest" | | |
11745 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
11746 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
11747 | /^X\(\/\/\)$/{ s//\1/; q; } | |
11748 | /^X\(\/\).*/{ s//\1/; q; } | |
11749 | s/.*/./; q'` | |
11750 | { if $as_mkdir_p; then | |
11751 | mkdir -p "$ac_dir" | |
11752 | else | |
11753 | as_dir="$ac_dir" | |
11754 | as_dirs= | |
11755 | while test ! -d "$as_dir"; do | |
11756 | as_dirs="$as_dir $as_dirs" | |
11757 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
11758 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11759 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
11760 | X"$as_dir" : 'X\(//\)$' \| \ | |
11761 | X"$as_dir" : 'X\(/\)' \| \ | |
11762 | . : '\(.\)' 2>/dev/null || | |
11763 | echo X"$as_dir" | | |
11764 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
11765 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
11766 | /^X\(\/\/\)$/{ s//\1/; q; } | |
11767 | /^X\(\/\).*/{ s//\1/; q; } | |
11768 | s/.*/./; q'` | |
11769 | done | |
11770 | test ! -n "$as_dirs" || mkdir $as_dirs | |
11771 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
11772 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
11773 | { (exit 1); exit 1; }; }; } | |
252b5132 | 11774 | |
42ecbf5e | 11775 | ac_builddir=. |
e5a52504 | 11776 | |
42ecbf5e DJ |
11777 | if test "$ac_dir" != .; then |
11778 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
11779 | # A "../" for each directory in $ac_dir_suffix. | |
11780 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
11781 | else | |
11782 | ac_dir_suffix= ac_top_builddir= | |
11783 | fi | |
11784 | ||
11785 | case $srcdir in | |
11786 | .) # No --srcdir option. We are building in place. | |
11787 | ac_srcdir=. | |
11788 | if test -z "$ac_top_builddir"; then | |
11789 | ac_top_srcdir=. | |
11790 | else | |
11791 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
11792 | fi ;; | |
11793 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
11794 | ac_srcdir=$srcdir$ac_dir_suffix; | |
11795 | ac_top_srcdir=$srcdir ;; | |
11796 | *) # Relative path. | |
11797 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
11798 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
11799 | esac | |
11800 | ||
11801 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
11802 | # the directories may not exist. | |
11803 | case `pwd` in | |
11804 | .) ac_abs_builddir="$ac_dir";; | |
11805 | *) | |
11806 | case "$ac_dir" in | |
11807 | .) ac_abs_builddir=`pwd`;; | |
11808 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
11809 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
11810 | esac;; | |
11811 | esac | |
11812 | case $ac_abs_builddir in | |
11813 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
11814 | *) | |
11815 | case ${ac_top_builddir}. in | |
11816 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
11817 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
11818 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
11819 | esac;; | |
11820 | esac | |
11821 | case $ac_abs_builddir in | |
11822 | .) ac_abs_srcdir=$ac_srcdir;; | |
11823 | *) | |
11824 | case $ac_srcdir in | |
11825 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
11826 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
11827 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
11828 | esac;; | |
11829 | esac | |
11830 | case $ac_abs_builddir in | |
11831 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
11832 | *) | |
11833 | case $ac_top_srcdir in | |
11834 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
11835 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
11836 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
11837 | esac;; | |
11838 | esac | |
e5a52504 | 11839 | |
42ecbf5e DJ |
11840 | |
11841 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
11842 | echo "$as_me: executing $ac_dest commands" >&6;} | |
11843 | case $ac_dest in | |
11844 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
11845 | # Strip MF so we end up with the name of the file. | |
11846 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
11847 | # Check whether this is an Automake generated Makefile or not. | |
11848 | # We used to match only the files named `Makefile.in', but | |
11849 | # some people rename them; so instead we look at the file content. | |
11850 | # Grep'ing the first line is not enough: some people post-process | |
11851 | # each Makefile.in and add a new line on top of each file to say so. | |
11852 | # So let's grep whole file. | |
11853 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
11854 | dirpart=`(dirname "$mf") 2>/dev/null || | |
11855 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11856 | X"$mf" : 'X\(//\)[^/]' \| \ | |
11857 | X"$mf" : 'X\(//\)$' \| \ | |
11858 | X"$mf" : 'X\(/\)' \| \ | |
11859 | . : '\(.\)' 2>/dev/null || | |
11860 | echo X"$mf" | | |
11861 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
11862 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
11863 | /^X\(\/\/\)$/{ s//\1/; q; } | |
11864 | /^X\(\/\).*/{ s//\1/; q; } | |
11865 | s/.*/./; q'` | |
11866 | else | |
11867 | continue | |
11868 | fi | |
11869 | # Extract the definition of DEPDIR, am__include, and am__quote | |
11870 | # from the Makefile without running `make'. | |
11871 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
11872 | test -z "$DEPDIR" && continue | |
11873 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
11874 | test -z "am__include" && continue | |
11875 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
11876 | # When using ansi2knr, U may be empty or an underscore; expand it | |
11877 | U=`sed -n 's/^U = //p' < "$mf"` | |
11878 | # Find all dependency output files, they are included files with | |
11879 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
11880 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
11881 | # expansion. | |
11882 | for file in `sed -n " | |
11883 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
11884 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
11885 | # Make sure the directory exists. | |
11886 | test -f "$dirpart/$file" && continue | |
11887 | fdir=`(dirname "$file") 2>/dev/null || | |
11888 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11889 | X"$file" : 'X\(//\)[^/]' \| \ | |
11890 | X"$file" : 'X\(//\)$' \| \ | |
11891 | X"$file" : 'X\(/\)' \| \ | |
11892 | . : '\(.\)' 2>/dev/null || | |
11893 | echo X"$file" | | |
11894 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
11895 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
11896 | /^X\(\/\/\)$/{ s//\1/; q; } | |
11897 | /^X\(\/\).*/{ s//\1/; q; } | |
11898 | s/.*/./; q'` | |
11899 | { if $as_mkdir_p; then | |
11900 | mkdir -p $dirpart/$fdir | |
11901 | else | |
11902 | as_dir=$dirpart/$fdir | |
11903 | as_dirs= | |
11904 | while test ! -d "$as_dir"; do | |
11905 | as_dirs="$as_dir $as_dirs" | |
11906 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
11907 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11908 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
11909 | X"$as_dir" : 'X\(//\)$' \| \ | |
11910 | X"$as_dir" : 'X\(/\)' \| \ | |
11911 | . : '\(.\)' 2>/dev/null || | |
11912 | echo X"$as_dir" | | |
11913 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
11914 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
11915 | /^X\(\/\/\)$/{ s//\1/; q; } | |
11916 | /^X\(\/\).*/{ s//\1/; q; } | |
11917 | s/.*/./; q'` | |
11918 | done | |
11919 | test ! -n "$as_dirs" || mkdir $as_dirs | |
11920 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
11921 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
11922 | { (exit 1); exit 1; }; }; } | |
11923 | ||
11924 | # echo "creating $dirpart/$file" | |
11925 | echo '# dummy' > "$dirpart/$file" | |
11926 | done | |
11927 | done | |
11928 | ;; | |
11929 | default ) | |
252b5132 RH |
11930 | case "x$CONFIG_FILES" in |
11931 | *) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;; | |
11932 | esac | |
42ecbf5e DJ |
11933 | ;; |
11934 | esac | |
11935 | done | |
11936 | _ACEOF | |
e5a52504 | 11937 | |
42ecbf5e DJ |
11938 | cat >>$CONFIG_STATUS <<\_ACEOF |
11939 | ||
11940 | { (exit 0); exit 0; } | |
11941 | _ACEOF | |
252b5132 | 11942 | chmod +x $CONFIG_STATUS |
42ecbf5e DJ |
11943 | ac_clean_files=$ac_clean_files_save |
11944 | ||
11945 | ||
11946 | # configure is writing to config.log, and then calls config.status. | |
11947 | # config.status does its own redirection, appending to config.log. | |
11948 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
11949 | # by configure, so config.status won't be able to write to it; its | |
11950 | # output is simply discarded. So we exec the FD to /dev/null, | |
11951 | # effectively closing config.log, so it can be properly (re)opened and | |
11952 | # appended to by config.status. When coming back to configure, we | |
11953 | # need to make the FD available again. | |
11954 | if test "$no_create" != yes; then | |
11955 | ac_cs_success=: | |
11956 | ac_config_status_args= | |
11957 | test "$silent" = yes && | |
11958 | ac_config_status_args="$ac_config_status_args --quiet" | |
11959 | exec 5>/dev/null | |
11960 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
11961 | exec 5>>config.log | |
11962 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
11963 | # would make configure fail if this is the last instruction. | |
11964 | $ac_cs_success || { (exit 1); exit 1; } | |
11965 | fi | |
252b5132 | 11966 |