]>
Commit | Line | Data |
---|---|---|
cd6ede75 | 1 | #! /bin/sh |
3a12e572 UD |
2 | # From configure.in CVSid. |
3 | # Guess values for system-dependent variables and create Makefiles. | |
f4b07664 RM |
4 | # Generated by GNU Autoconf 2.54 for GNU C Library (see version.h). |
5 | # | |
6 | # Report bugs to <glibc>. | |
3a12e572 UD |
7 | # |
8 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | |
9 | # Free Software Foundation, Inc. | |
10 | # This configure script is free software; the Free Software Foundation | |
11 | # gives unlimited permission to copy, distribute and modify it. | |
3a12e572 UD |
12 | ## --------------------- ## |
13 | ## M4sh Initialization. ## | |
14 | ## --------------------- ## | |
cd6ede75 | 15 | |
3a12e572 UD |
16 | # Be Bourne compatible |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
18 | emulate sh | |
19 | NULLCMD=: | |
f4b07664 RM |
20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
3a12e572 UD |
23 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
24 | set -o posix | |
25 | fi | |
cd6ede75 | 26 | |
3a12e572 UD |
27 | # Support unset when possible. |
28 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
29 | as_unset=unset | |
30 | else | |
31 | as_unset=false | |
32 | fi | |
33 | ||
f4b07664 RM |
34 | |
35 | # Work around bugs in pre-3.0 UWIN ksh. | |
36 | $as_unset ENV MAIL MAILPATH | |
37 | PS1='$ ' | |
38 | PS2='> ' | |
39 | PS4='+ ' | |
40 | ||
41 | # NLS nuisances. | |
42 | for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME | |
43 | do | |
44 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
45 | eval $as_var=C; export $as_var | |
46 | else | |
47 | $as_unset $as_var | |
48 | fi | |
49 | done | |
50 | ||
51 | # Required to use basename. | |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
3a12e572 UD |
63 | |
64 | ||
65 | # Name of the executable. | |
f4b07664 | 66 | as_me=`$as_basename "$0" || |
3a12e572 UD |
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 | ||
f4b07664 | 77 | |
3a12e572 UD |
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" >conftest.sh | |
89 | echo "exit 0" >>conftest.sh | |
90 | chmod +x conftest.sh | |
f4b07664 | 91 | if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then |
3a12e572 UD |
92 | PATH_SEPARATOR=';' |
93 | else | |
94 | PATH_SEPARATOR=: | |
95 | fi | |
96 | rm -f conftest.sh | |
97 | fi | |
cd6ede75 UD |
98 | |
99 | ||
3a12e572 UD |
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 | |
650425ce | 116 | |
3a12e572 UD |
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 | |
f4b07664 RM |
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; } | |
3a12e572 UD |
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 | |
650425ce | 155 | |
3a12e572 UD |
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 | } | |
650425ce UD |
185 | |
186 | ||
3a12e572 UD |
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 | |
63bda0c1 | 193 | |
3a12e572 UD |
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 | ||
f4b07664 RM |
218 | if mkdir -p . 2>/dev/null; then |
219 | as_mkdir_p=: | |
220 | else | |
221 | as_mkdir_p=false | |
222 | fi | |
223 | ||
3a12e572 UD |
224 | as_executable_p="test -f" |
225 | ||
226 | # Sed expression to map a string onto a valid CPP name. | |
227 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
228 | ||
229 | # Sed expression to map a string onto a valid variable name. | |
230 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
231 | ||
232 | ||
233 | # IFS | |
234 | # We need space, tab and new line, in precisely that order. | |
235 | as_nl=' | |
236 | ' | |
237 | IFS=" $as_nl" | |
238 | ||
239 | # CDPATH. | |
f4b07664 | 240 | $as_unset CDPATH |
63bda0c1 | 241 | |
cd6ede75 | 242 | |
3a12e572 UD |
243 | # Name of the host. |
244 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
245 | # so uname gets run too. | |
246 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
247 | ||
248 | exec 6>&1 | |
249 | ||
250 | # | |
251 | # Initializations. | |
252 | # | |
cd6ede75 | 253 | ac_default_prefix=/usr/local |
f4b07664 | 254 | ac_config_libobj_dir=. |
3a12e572 UD |
255 | cross_compiling=no |
256 | subdirs= | |
257 | MFLAGS= | |
258 | MAKEFLAGS= | |
259 | SHELL=${CONFIG_SHELL-/bin/sh} | |
260 | ||
261 | # Maximum number of lines to put in a shell here document. | |
262 | # This variable seems obsolete. It should probably be removed, and | |
263 | # only ac_max_sed_lines should be used. | |
264 | : ${ac_max_here_lines=38} | |
265 | ||
266 | # Identity of this package. | |
f4b07664 RM |
267 | PACKAGE_NAME='GNU C Library' |
268 | PACKAGE_TARNAME='c-library' | |
269 | PACKAGE_VERSION='(see version.h)' | |
270 | PACKAGE_STRING='GNU C Library (see version.h)' | |
271 | PACKAGE_BUGREPORT='glibc' | |
3a12e572 UD |
272 | |
273 | ac_unique_file="include/features.h" | |
a1ceed7a | 274 | ac_subdirs_all="$ac_subdirs_all " |
3a12e572 UD |
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 | ||
6e3d59bc | 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 with_fp with_cvs oldest_abi subdirs force_install all_warnings build build_cpu build_vendor build_os host host_cpu host_vendor host_os base_machine sysnames INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S PWD_P CC MAKE MSGFMT MAKEINFO SED AUTOCONF CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT BUILD_CC cross_compiling CPP AR OBJDUMP RANLIB ac_ct_RANLIB MIG AS LD CCVERSION SYSINCLUDES libc_cv_gcc_static_libgcc BASH libc_cv_have_bash2 KSH libc_cv_have_ksh AWK PERL INSTALL_INFO OLD_DEBIAN_INSTALL_INFO BISON VERSIONING libc_cv_asm_protected_directive libc_cv_initfinit_array libc_cv_z_nodelete libc_cv_z_nodlopen libc_cv_z_initfirst libc_cv_Bgroup libc_cv_z_combreloc libc_cv_have_initfini no_whole_archive exceptions LIBGD EGREP sizeof_long_double libc_cv_gcc_unwind_find_fde uname_sysname uname_release uname_version old_glibc_headers libc_cv_slibdir libc_cv_localedir libc_cv_sysconfdir libc_cv_rootsbindir use_ldconfig ldd_rewrite_script gnu_ld gnu_as elf xcoff static shared pic_default profile omitfp bounded static_nss nopic_initfini DEFINES linux_doors mach_interface_list VERSION RELEASE LIBOBJS LTLIBOBJS' |
f4b07664 | 313 | ac_subst_files='' |
cd6ede75 UD |
314 | |
315 | # Initialize some variables set by options. | |
3a12e572 UD |
316 | ac_init_help= |
317 | ac_init_version=false | |
cd6ede75 UD |
318 | # The variables have the same names as the options, with |
319 | # dashes changed to underlines. | |
3a12e572 | 320 | cache_file=/dev/null |
cd6ede75 | 321 | exec_prefix=NONE |
cd6ede75 | 322 | no_create= |
cd6ede75 UD |
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= | |
cd6ede75 UD |
331 | verbose= |
332 | x_includes=NONE | |
333 | x_libraries=NONE | |
3a12e572 UD |
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. | |
cd6ede75 UD |
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 | ||
cd6ede75 UD |
353 | ac_prev= |
354 | for ac_option | |
355 | do | |
cd6ede75 UD |
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 | ||
3a12e572 | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
cd6ede75 UD |
364 | |
365 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
366 | ||
3a12e572 | 367 | case $ac_option in |
cd6ede75 UD |
368 | |
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
370 | ac_prev=bindir ;; | |
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
3a12e572 | 372 | bindir=$ac_optarg ;; |
cd6ede75 UD |
373 | |
374 | -build | --build | --buil | --bui | --bu) | |
3a12e572 | 375 | ac_prev=build_alias ;; |
cd6ede75 | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
3a12e572 | 377 | build_alias=$ac_optarg ;; |
cd6ede75 UD |
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=*) | |
3a12e572 UD |
384 | cache_file=$ac_optarg ;; |
385 | ||
386 | --config-cache | -C) | |
387 | cache_file=config.cache ;; | |
cd6ede75 UD |
388 | |
389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
390 | ac_prev=datadir ;; | |
391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
392 | | --da=*) | |
3a12e572 | 393 | datadir=$ac_optarg ;; |
cd6ede75 UD |
394 | |
395 | -disable-* | --disable-*) | |
3a12e572 | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
cd6ede75 | 397 | # Reject names that are not valid shell variable names. |
3a12e572 UD |
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" ;; | |
cd6ede75 UD |
403 | |
404 | -enable-* | --enable-*) | |
3a12e572 | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
cd6ede75 | 406 | # Reject names that are not valid shell variable names. |
3a12e572 UD |
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"`;; | |
cd6ede75 UD |
413 | *) ac_optarg=yes ;; |
414 | esac | |
3a12e572 | 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
cd6ede75 UD |
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=*) | |
3a12e572 | 424 | exec_prefix=$ac_optarg ;; |
cd6ede75 UD |
425 | |
426 | -gas | --gas | --ga | --g) | |
427 | # Obsolete; use --with-gas. | |
428 | with_gas=yes ;; | |
429 | ||
3a12e572 UD |
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 ;; | |
cd6ede75 UD |
436 | |
437 | -host | --host | --hos | --ho) | |
3a12e572 | 438 | ac_prev=host_alias ;; |
cd6ede75 | 439 | -host=* | --host=* | --hos=* | --ho=*) |
3a12e572 | 440 | host_alias=$ac_optarg ;; |
cd6ede75 UD |
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=*) | |
3a12e572 | 447 | includedir=$ac_optarg ;; |
cd6ede75 UD |
448 | |
449 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
450 | ac_prev=infodir ;; | |
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
3a12e572 | 452 | infodir=$ac_optarg ;; |
cd6ede75 UD |
453 | |
454 | -libdir | --libdir | --libdi | --libd) | |
455 | ac_prev=libdir ;; | |
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
3a12e572 | 457 | libdir=$ac_optarg ;; |
cd6ede75 UD |
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=*) | |
3a12e572 | 464 | libexecdir=$ac_optarg ;; |
cd6ede75 UD |
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=*) | |
3a12e572 | 473 | localstatedir=$ac_optarg ;; |
cd6ede75 UD |
474 | |
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
476 | ac_prev=mandir ;; | |
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
3a12e572 | 478 | mandir=$ac_optarg ;; |
cd6ede75 UD |
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 \ | |
3a12e572 | 485 | | --no-cr | --no-c | -n) |
cd6ede75 UD |
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=*) | |
3a12e572 | 499 | oldincludedir=$ac_optarg ;; |
cd6ede75 UD |
500 | |
501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
502 | ac_prev=prefix ;; | |
503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
3a12e572 | 504 | prefix=$ac_optarg ;; |
cd6ede75 UD |
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=*) | |
3a12e572 | 511 | program_prefix=$ac_optarg ;; |
cd6ede75 UD |
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=*) | |
3a12e572 | 518 | program_suffix=$ac_optarg ;; |
cd6ede75 UD |
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=*) | |
3a12e572 | 535 | program_transform_name=$ac_optarg ;; |
cd6ede75 UD |
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=*) | |
3a12e572 | 545 | sbindir=$ac_optarg ;; |
cd6ede75 UD |
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=*) | |
3a12e572 | 556 | sharedstatedir=$ac_optarg ;; |
cd6ede75 UD |
557 | |
558 | -site | --site | --sit) | |
559 | ac_prev=site ;; | |
560 | -site=* | --site=* | --sit=*) | |
3a12e572 | 561 | site=$ac_optarg ;; |
cd6ede75 UD |
562 | |
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
564 | ac_prev=srcdir ;; | |
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
3a12e572 | 566 | srcdir=$ac_optarg ;; |
cd6ede75 UD |
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=*) | |
3a12e572 | 573 | sysconfdir=$ac_optarg ;; |
cd6ede75 UD |
574 | |
575 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
3a12e572 | 576 | ac_prev=target_alias ;; |
cd6ede75 | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
3a12e572 | 578 | target_alias=$ac_optarg ;; |
cd6ede75 UD |
579 | |
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
581 | verbose=yes ;; | |
582 | ||
3a12e572 UD |
583 | -version | --version | --versio | --versi | --vers | -V) |
584 | ac_init_version=: ;; | |
cd6ede75 UD |
585 | |
586 | -with-* | --with-*) | |
3a12e572 | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
cd6ede75 | 588 | # Reject names that are not valid shell variable names. |
3a12e572 UD |
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; }; } | |
cd6ede75 | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
3a12e572 UD |
593 | case $ac_option in |
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
cd6ede75 UD |
595 | *) ac_optarg=yes ;; |
596 | esac | |
3a12e572 | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
cd6ede75 UD |
598 | |
599 | -without-* | --without-*) | |
3a12e572 | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
cd6ede75 | 601 | # Reject names that are not valid shell variable names. |
3a12e572 UD |
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" ;; | |
cd6ede75 UD |
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=*) | |
3a12e572 | 617 | x_includes=$ac_optarg ;; |
cd6ede75 UD |
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=*) | |
3a12e572 | 624 | x_libraries=$ac_optarg ;; |
cd6ede75 | 625 | |
3a12e572 UD |
626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
627 | Try \`$0 --help' for more information." >&2 | |
628 | { (exit 1); exit 1; }; } | |
cd6ede75 UD |
629 | ;; |
630 | ||
3a12e572 UD |
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 | ||
cd6ede75 | 641 | *) |
3a12e572 UD |
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} | |
cd6ede75 UD |
647 | ;; |
648 | ||
649 | esac | |
650 | done | |
651 | ||
652 | if test -n "$ac_prev"; then | |
3a12e572 UD |
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; }; } | |
cd6ede75 | 656 | fi |
cd6ede75 | 657 | |
3a12e572 UD |
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 | |
cd6ede75 | 668 | |
3a12e572 UD |
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 | |
cd6ede75 | 672 | do |
3a12e572 UD |
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; }; };; | |
cd6ede75 UD |
678 | esac |
679 | done | |
680 | ||
3a12e572 UD |
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 | |
cd6ede75 | 698 | |
3a12e572 UD |
699 | ac_tool_prefix= |
700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
701 | ||
702 | test "$silent" = yes && exec 6>/dev/null | |
cd6ede75 | 703 | |
cd6ede75 UD |
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. | |
3a12e572 UD |
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'` | |
cd6ede75 UD |
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 | |
3a12e572 UD |
730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
731 | { (exit 1); exit 1; }; } | |
cd6ede75 | 732 | else |
3a12e572 UD |
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
734 | { (exit 1); exit 1; }; } | |
cd6ede75 UD |
735 | fi |
736 | fi | |
f4b07664 RM |
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; }; } | |
3a12e572 UD |
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 | |
773 | ||
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 | |
f4b07664 | 781 | \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems. |
3a12e572 UD |
782 | |
783 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
784 | ||
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. | |
787 | ||
788 | Defaults for the options are specified in brackets. | |
789 | ||
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] | |
809 | ||
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'. | |
814 | ||
815 | For better control, use the options below. | |
816 | ||
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 | |
831 | ||
832 | cat <<\_ACEOF | |
833 | ||
834 | System types: | |
835 | --build=BUILD configure for building on BUILD [guessed] | |
836 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
837 | _ACEOF | |
838 | fi | |
cd6ede75 | 839 | |
3a12e572 | 840 | if test -n "$ac_init_help"; then |
f4b07664 RM |
841 | case $ac_init_help in |
842 | short | recursive ) echo "Configuration of GNU C Library (see version.h):";; | |
843 | esac | |
3a12e572 UD |
844 | cat <<\_ACEOF |
845 | ||
846 | Optional Features: | |
847 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
848 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
6b7f6183 RM |
849 | --disable-sanity-checks really do not use threads (should not be used except |
850 | in special situations) [default=yes] | |
851 | --enable-shared build shared library [default=yes if GNU ld & | |
852 | ELF] | |
853 | --enable-profile build profiled library [default=yes] | |
854 | --enable-omitfp build undebuggable optimized library | |
855 | [default=no] | |
856 | --enable-bounded build with runtime bounds checking | |
857 | [default=no] | |
858 | --disable-versioning do not include versioning information in the library | |
859 | objects [default=yes if supported] | |
860 | --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2] | |
861 | [default=glibc default] | |
862 | --enable-add-ons[=DIRS...] | |
863 | configure and build add-ons in DIR1,DIR2,... search | |
864 | for add-ons if no parameter given | |
3a12e572 | 865 | --disable-hidden-plt do not hide internal function calls to avoid PLT |
6b7f6183 | 866 | --enable-static-nss build static NSS modules [default=no] |
3a12e572 | 867 | --disable-force-install don't force installation of files from this package, |
6b7f6183 RM |
868 | even if they are older than the installed files |
869 | --enable-kernel=VERSION compile for compatibility with kernel not older than | |
870 | VERSION | |
3a12e572 UD |
871 | --enable-all-warnings enable all useful warnings gcc can issue |
872 | ||
873 | Optional Packages: | |
874 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
875 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
6b7f6183 | 876 | --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed) |
3a12e572 UD |
877 | --with-gd=DIR find libgd include dir and library with prefix DIR |
878 | --with-gd-include=DIR find libgd include files in DIR | |
879 | --with-gd-lib=DIR find libgd library files in DIR | |
6b7f6183 RM |
880 | --with-fp if using floating-point hardware [default=yes] |
881 | --with-binutils=PATH specify location of binutils (as and ld) | |
882 | --with-elf if using the ELF object format | |
883 | --with-xcoff if using the XCOFF object format | |
3a12e572 | 884 | --without-cvs if CVS should not be used |
6b7f6183 RM |
885 | --with-headers=PATH location of system headers to use (for example |
886 | /usr/src/linux/include) [default=compiler | |
887 | default] | |
3a12e572 UD |
888 | --with-tls enable support for TLS |
889 | --without-__thread do not use TLS features even when supporting them | |
890 | ||
891 | Some influential environment variables: | |
892 | CC C compiler command | |
893 | CFLAGS C compiler flags | |
894 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
895 | nonstandard directory <lib dir> | |
896 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
897 | headers in a nonstandard directory <include dir> | |
898 | CPP C preprocessor | |
899 | ||
900 | Use these variables to override the choices made by `configure' or to help | |
901 | it to find libraries and programs with nonstandard names/locations. | |
902 | ||
f4b07664 | 903 | Report bugs to <glibc>. |
3a12e572 UD |
904 | _ACEOF |
905 | fi | |
906 | ||
907 | if test "$ac_init_help" = "recursive"; then | |
908 | # If there are subdirs, report their specific --help. | |
909 | ac_popdir=`pwd` | |
910 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
911 | test -d $ac_dir || continue | |
912 | ac_builddir=. | |
913 | ||
914 | if test "$ac_dir" != .; then | |
915 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
916 | # A "../" for each directory in $ac_dir_suffix. | |
917 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
918 | else | |
919 | ac_dir_suffix= ac_top_builddir= | |
920 | fi | |
921 | ||
922 | case $srcdir in | |
923 | .) # No --srcdir option. We are building in place. | |
924 | ac_srcdir=. | |
925 | if test -z "$ac_top_builddir"; then | |
926 | ac_top_srcdir=. | |
927 | else | |
928 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
929 | fi ;; | |
930 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
931 | ac_srcdir=$srcdir$ac_dir_suffix; | |
932 | ac_top_srcdir=$srcdir ;; | |
933 | *) # Relative path. | |
934 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
935 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
936 | esac | |
937 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
938 | # absolute. | |
939 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
f4b07664 | 940 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
3a12e572 UD |
941 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
942 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
943 | ||
944 | cd $ac_dir | |
945 | # Check for guested configure; otherwise get Cygnus style configure. | |
946 | if test -f $ac_srcdir/configure.gnu; then | |
947 | echo | |
948 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
949 | elif test -f $ac_srcdir/configure; then | |
950 | echo | |
951 | $SHELL $ac_srcdir/configure --help=recursive | |
952 | elif test -f $ac_srcdir/configure.ac || | |
953 | test -f $ac_srcdir/configure.in; then | |
954 | echo | |
955 | $ac_configure --help | |
956 | else | |
957 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
958 | fi | |
959 | cd $ac_popdir | |
960 | done | |
961 | fi | |
962 | ||
963 | test -n "$ac_init_help" && exit 0 | |
964 | if $ac_init_version; then | |
965 | cat <<\_ACEOF | |
f4b07664 RM |
966 | GNU C Library configure (see version.h) |
967 | generated by GNU Autoconf 2.54 | |
3a12e572 UD |
968 | |
969 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | |
970 | Free Software Foundation, Inc. | |
971 | This configure script is free software; the Free Software Foundation | |
972 | gives unlimited permission to copy, distribute and modify it. | |
973 | _ACEOF | |
974 | exit 0 | |
975 | fi | |
976 | exec 5>config.log | |
977 | cat >&5 <<_ACEOF | |
978 | This file contains any messages produced by compilers while | |
979 | running configure, to aid debugging if configure makes a mistake. | |
980 | ||
f4b07664 RM |
981 | It was created by GNU C Library $as_me (see version.h), which was |
982 | generated by GNU Autoconf 2.54. Invocation command line was | |
3a12e572 UD |
983 | |
984 | $ $0 $@ | |
985 | ||
986 | _ACEOF | |
987 | { | |
988 | cat <<_ASUNAME | |
989 | ## --------- ## | |
990 | ## Platform. ## | |
991 | ## --------- ## | |
992 | ||
993 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
994 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
995 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
996 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
997 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
998 | ||
999 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1000 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1001 | ||
1002 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1003 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1004 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1005 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1006 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1007 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1008 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1009 | ||
1010 | _ASUNAME | |
1011 | ||
1012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1013 | for as_dir in $PATH | |
1014 | do | |
1015 | IFS=$as_save_IFS | |
1016 | test -z "$as_dir" && as_dir=. | |
1017 | echo "PATH: $as_dir" | |
1018 | done | |
1019 | ||
1020 | } >&5 | |
1021 | ||
1022 | cat >&5 <<_ACEOF | |
1023 | ||
1024 | ||
1025 | ## ----------- ## | |
1026 | ## Core tests. ## | |
1027 | ## ----------- ## | |
1028 | ||
1029 | _ACEOF | |
1030 | ||
1031 | ||
1032 | # Keep a trace of the command line. | |
1033 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1034 | # Also quote any args containing shell meta-characters. | |
1035 | ac_configure_args= | |
1036 | ac_sep= | |
1037 | for ac_arg | |
1038 | do | |
1039 | case $ac_arg in | |
1040 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1041 | | --no-cr | --no-c | -n ) continue ;; | |
1042 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1043 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1044 | continue ;; | |
1045 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1046 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1047 | esac | |
f4b07664 | 1048 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
3a12e572 | 1049 | # Get rid of the leading space. |
f4b07664 | 1050 | ac_sep=" " |
3a12e572 UD |
1051 | done |
1052 | ||
1053 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1054 | # config.log. We remove comments because anyway the quotes in there | |
1055 | # would cause problems or look ugly. | |
1056 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1057 | # such as our DU 5.0 friend, will then `close' the trap. | |
1058 | trap 'exit_status=$? | |
1059 | # Save into config.log some information that might help in debugging. | |
1060 | { | |
1061 | echo | |
f4b07664 | 1062 | |
3a12e572 UD |
1063 | cat <<\_ASBOX |
1064 | ## ---------------- ## | |
1065 | ## Cache variables. ## | |
1066 | ## ---------------- ## | |
1067 | _ASBOX | |
1068 | echo | |
1069 | # The following way of writing the cache mishandles newlines in values, | |
1070 | { | |
1071 | (set) 2>&1 | | |
1072 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1073 | *ac_space=\ *) | |
1074 | sed -n \ | |
1075 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1076 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1077 | ;; | |
1078 | *) | |
1079 | sed -n \ | |
1080 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1081 | ;; | |
1082 | esac; | |
1083 | } | |
1084 | echo | |
f4b07664 RM |
1085 | |
1086 | cat <<\_ASBOX | |
1087 | ## ----------------- ## | |
1088 | ## Output variables. ## | |
1089 | ## ----------------- ## | |
1090 | _ASBOX | |
1091 | echo | |
1092 | for ac_var in $ac_subst_vars | |
1093 | do | |
1094 | eval ac_val=$`echo $ac_var` | |
1095 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1096 | done | sort | |
1097 | echo | |
1098 | ||
1099 | if test -n "$ac_subst_files"; then | |
1100 | cat <<\_ASBOX | |
1101 | ## ------------- ## | |
1102 | ## Output files. ## | |
1103 | ## ------------- ## | |
1104 | _ASBOX | |
1105 | echo | |
1106 | for ac_var in $ac_subst_files | |
1107 | do | |
1108 | eval ac_val=$`echo $ac_var` | |
1109 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1110 | done | sort | |
1111 | echo | |
1112 | fi | |
1113 | ||
3a12e572 UD |
1114 | if test -s confdefs.h; then |
1115 | cat <<\_ASBOX | |
1116 | ## ----------- ## | |
1117 | ## confdefs.h. ## | |
1118 | ## ----------- ## | |
1119 | _ASBOX | |
1120 | echo | |
f4b07664 | 1121 | sed "/^$/d" confdefs.h | sort |
3a12e572 UD |
1122 | echo |
1123 | fi | |
1124 | test "$ac_signal" != 0 && | |
1125 | echo "$as_me: caught signal $ac_signal" | |
1126 | echo "$as_me: exit $exit_status" | |
1127 | } >&5 | |
1128 | rm -f core core.* *.core && | |
1129 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1130 | exit $exit_status | |
1131 | ' 0 | |
1132 | for ac_signal in 1 2 13 15; do | |
1133 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1134 | done | |
1135 | ac_signal=0 | |
1136 | ||
1137 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1138 | rm -rf conftest* confdefs.h | |
1139 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1140 | echo >confdefs.h | |
1141 | ||
1142 | # Predefined preprocessor variables. | |
1143 | ||
1144 | cat >>confdefs.h <<_ACEOF | |
1145 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1146 | _ACEOF | |
1147 | ||
1148 | ||
1149 | cat >>confdefs.h <<_ACEOF | |
1150 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1151 | _ACEOF | |
1152 | ||
1153 | ||
1154 | cat >>confdefs.h <<_ACEOF | |
1155 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1156 | _ACEOF | |
1157 | ||
1158 | ||
1159 | cat >>confdefs.h <<_ACEOF | |
1160 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1161 | _ACEOF | |
1162 | ||
1163 | ||
1164 | cat >>confdefs.h <<_ACEOF | |
1165 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1166 | _ACEOF | |
1167 | ||
1168 | ||
1169 | # Let the site file select an alternate cache file if it wants to. | |
cd6ede75 UD |
1170 | # Prefer explicitly selected file to automatically selected ones. |
1171 | if test -z "$CONFIG_SITE"; then | |
1172 | if test "x$prefix" != xNONE; then | |
1173 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1174 | else | |
1175 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1176 | fi | |
1177 | fi | |
1178 | for ac_site_file in $CONFIG_SITE; do | |
1179 | if test -r "$ac_site_file"; then | |
3a12e572 UD |
1180 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1181 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1182 | sed 's/^/| /' "$ac_site_file" >&5 | |
cd6ede75 UD |
1183 | . "$ac_site_file" |
1184 | fi | |
1185 | done | |
1186 | ||
1187 | if test -r "$cache_file"; then | |
3a12e572 UD |
1188 | # Some versions of bash will fail to source /dev/null (special |
1189 | # files actually), so we avoid doing that. | |
1190 | if test -f "$cache_file"; then | |
1191 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1192 | echo "$as_me: loading cache $cache_file" >&6;} | |
1193 | case $cache_file in | |
1194 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1195 | *) . ./$cache_file;; | |
1196 | esac | |
1197 | fi | |
cd6ede75 | 1198 | else |
3a12e572 UD |
1199 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1200 | echo "$as_me: creating cache $cache_file" >&6;} | |
1201 | >$cache_file | |
1202 | fi | |
1203 | ||
1204 | # Check that the precious variables saved in the cache have kept the same | |
1205 | # value. | |
1206 | ac_cache_corrupted=false | |
1207 | for ac_var in `(set) 2>&1 | | |
1208 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1209 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1210 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1211 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1212 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1213 | case $ac_old_set,$ac_new_set in | |
1214 | set,) | |
1215 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1216 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1217 | ac_cache_corrupted=: ;; | |
1218 | ,set) | |
1219 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1220 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1221 | ac_cache_corrupted=: ;; | |
1222 | ,);; | |
1223 | *) | |
1224 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1225 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1226 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1227 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1228 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1229 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1230 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1231 | ac_cache_corrupted=: | |
1232 | fi;; | |
1233 | esac | |
1234 | # Pass precious variables to config.status. | |
1235 | if test "$ac_new_set" = set; then | |
1236 | case $ac_new_val in | |
1237 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1238 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1239 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1240 | esac | |
1241 | case " $ac_configure_args " in | |
1242 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1243 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1244 | esac | |
1245 | fi | |
1246 | done | |
1247 | if $ac_cache_corrupted; then | |
1248 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1249 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1250 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1251 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1252 | { (exit 1); exit 1; }; } | |
cd6ede75 UD |
1253 | fi |
1254 | ||
1255 | ac_ext=c | |
cd6ede75 | 1256 | ac_cpp='$CPP $CPPFLAGS' |
3a12e572 UD |
1257 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1258 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1259 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1260 | ||
1261 | ||
1262 | ||
cd6ede75 | 1263 | |
63bda0c1 | 1264 | |
cd6ede75 UD |
1265 | |
1266 | ||
3a12e572 UD |
1267 | |
1268 | ||
1269 | ||
1270 | ||
1271 | ||
1272 | ||
1273 | ||
1274 | ||
1275 | ||
1276 | ||
1277 | ||
f4b07664 RM |
1278 | |
1279 | ||
1280 | ||
1281 | ||
1282 | ||
1283 | ||
1284 | ||
1285 | ||
1286 | ||
1287 | ||
1288 | ac_config_headers="$ac_config_headers config.h" | |
3a12e572 | 1289 | |
444518fe UD |
1290 | ac_aux_dir= |
1291 | for ac_dir in scripts $srcdir/scripts; do | |
1292 | if test -f $ac_dir/install-sh; then | |
1293 | ac_aux_dir=$ac_dir | |
1294 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1295 | break | |
1296 | elif test -f $ac_dir/install.sh; then | |
1297 | ac_aux_dir=$ac_dir | |
1298 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1299 | break | |
3a12e572 UD |
1300 | elif test -f $ac_dir/shtool; then |
1301 | ac_aux_dir=$ac_dir | |
1302 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1303 | break | |
444518fe UD |
1304 | fi |
1305 | done | |
1306 | if test -z "$ac_aux_dir"; then | |
3a12e572 UD |
1307 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&5 |
1308 | echo "$as_me: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&2;} | |
1309 | { (exit 1); exit 1; }; } | |
444518fe | 1310 | fi |
3a12e572 UD |
1311 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1312 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1313 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
444518fe | 1314 | |
cd6ede75 UD |
1315 | |
1316 | # This will get text that should go into config.make. | |
1317 | config_vars= | |
1318 | ||
1319 | # Check for a --with-gmp argument and set gmp-srcdir in config.make. | |
3a12e572 | 1320 | |
cd6ede75 UD |
1321 | # Check whether --with-gmp or --without-gmp was given. |
1322 | if test "${with_gmp+set}" = set; then | |
1323 | withval="$with_gmp" | |
6b7f6183 RM |
1324 | |
1325 | case "$with_gmp" in | |
3a12e572 UD |
1326 | yes) { { echo "$as_me:$LINENO: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" >&5 |
1327 | echo "$as_me: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" >&2;} | |
1328 | { (exit 1); exit 1; }; } ;; | |
cd6ede75 UD |
1329 | ''|no) ;; |
1330 | *) config_vars="$config_vars | |
1331 | gmp-srcdir = $withval" ;; | |
1332 | esac | |
1333 | ||
3a12e572 | 1334 | fi; |
c8f3e6db | 1335 | # Check for a --with-gd argument and set libgd-LDFLAGS in config.make. |
3a12e572 | 1336 | |
c8f3e6db UD |
1337 | # Check whether --with-gd or --without-gd was given. |
1338 | if test "${with_gd+set}" = set; then | |
1339 | withval="$with_gd" | |
1340 | case "$with_gd" in | |
e41db95b UD |
1341 | yes|''|no) ;; |
1342 | *) libgd_include="-I$withval/include" | |
c8f3e6db UD |
1343 | libgd_ldflags="-L$withval/lib" ;; |
1344 | esac | |
1345 | ||
3a12e572 | 1346 | fi; |
c8f3e6db | 1347 | |
e41db95b UD |
1348 | # Check whether --with-gd-include or --without-gd-include was given. |
1349 | if test "${with_gd_include+set}" = set; then | |
1350 | withval="$with_gd_include" | |
1351 | case "$with_gd_include" in | |
1352 | ''|no) ;; | |
1353 | *) libgd_include="-I$withval" ;; | |
1354 | esac | |
1355 | ||
3a12e572 | 1356 | fi; |
e41db95b UD |
1357 | |
1358 | # Check whether --with-gd-lib or --without-gd-lib was given. | |
1359 | if test "${with_gd_lib+set}" = set; then | |
1360 | withval="$with_gd_lib" | |
1361 | case "$with_gd_lib" in | |
1362 | ''|no) ;; | |
1363 | *) libgd_ldflags="-L$withval" ;; | |
1364 | esac | |
1365 | ||
3a12e572 | 1366 | fi; |
e41db95b UD |
1367 | |
1368 | if test -n "$libgd_include"; then | |
1369 | config_vars="$config_vars | |
cf90163d | 1370 | CFLAGS-memusagestat.c = $libgd_include" |
e41db95b UD |
1371 | fi |
1372 | if test -n "$libgd_ldflags"; then | |
1373 | config_vars="$config_vars | |
1374 | libgd-LDFLAGS = $libgd_ldflags" | |
1375 | fi | |
cd6ede75 | 1376 | |
3a12e572 | 1377 | |
cd6ede75 UD |
1378 | # Check whether --with-fp or --without-fp was given. |
1379 | if test "${with_fp+set}" = set; then | |
1380 | withval="$with_fp" | |
1381 | with_fp=$withval | |
1382 | else | |
1383 | with_fp=yes | |
3a12e572 | 1384 | fi; |
cd6ede75 | 1385 | |
675322a5 | 1386 | |
650425ce UD |
1387 | # Check whether --with-binutils or --without-binutils was given. |
1388 | if test "${with_binutils+set}" = set; then | |
1389 | withval="$with_binutils" | |
a5a0310d UD |
1390 | path_binutils=$withval |
1391 | else | |
650425ce | 1392 | path_binutils='' |
3a12e572 | 1393 | fi; |
cd6ede75 | 1394 | |
cd6ede75 UD |
1395 | # Check whether --with-elf or --without-elf was given. |
1396 | if test "${with_elf+set}" = set; then | |
1397 | withval="$with_elf" | |
1398 | elf=$withval | |
1399 | else | |
1400 | elf=no | |
3a12e572 | 1401 | fi; |
cd6ede75 | 1402 | |
5af3245a UD |
1403 | # Check whether --with-xcoff or --without-xcoff was given. |
1404 | if test "${with_xcoff+set}" = set; then | |
1405 | withval="$with_xcoff" | |
1406 | xcoff=$withval | |
1407 | else | |
1408 | xcoff=no | |
3a12e572 | 1409 | fi; |
5af3245a | 1410 | |
d67281a7 UD |
1411 | # Check whether --with-cvs or --without-cvs was given. |
1412 | if test "${with_cvs+set}" = set; then | |
1413 | withval="$with_cvs" | |
1414 | with_cvs=$withval | |
1415 | else | |
1416 | with_cvs=yes | |
3a12e572 | 1417 | fi; |
6b3f2b3d UD |
1418 | if test "$with_cvs" = yes; then |
1419 | if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null | |
1420 | then | |
1421 | with_cvs=no | |
1422 | fi | |
4442d7e8 | 1423 | fi |
d67281a7 | 1424 | |
cd6ede75 | 1425 | |
3a12e572 | 1426 | |
3c720987 UD |
1427 | # Check whether --with-headers or --without-headers was given. |
1428 | if test "${with_headers+set}" = set; then | |
1429 | withval="$with_headers" | |
1430 | sysheaders=$withval | |
1431 | else | |
1432 | sysheaders='' | |
3a12e572 | 1433 | fi; |
3c720987 | 1434 | |
cd6ede75 UD |
1435 | # Check whether --enable-sanity-checks or --disable-sanity-checks was given. |
1436 | if test "${enable_sanity_checks+set}" = set; then | |
1437 | enableval="$enable_sanity_checks" | |
1438 | enable_sanity=$enableval | |
1439 | else | |
1440 | enable_sanity=yes | |
3a12e572 | 1441 | fi; |
cd6ede75 | 1442 | |
5c2a0669 | 1443 | static=yes |
cd6ede75 UD |
1444 | # Check whether --enable-shared or --disable-shared was given. |
1445 | if test "${enable_shared+set}" = set; then | |
1446 | enableval="$enable_shared" | |
1447 | shared=$enableval | |
1448 | else | |
1449 | shared=default | |
3a12e572 | 1450 | fi; |
cd6ede75 UD |
1451 | # Check whether --enable-profile or --disable-profile was given. |
1452 | if test "${enable_profile+set}" = set; then | |
1453 | enableval="$enable_profile" | |
1454 | profile=$enableval | |
1455 | else | |
1456 | profile=yes | |
3a12e572 | 1457 | fi; |
cd6ede75 UD |
1458 | # Check whether --enable-omitfp or --disable-omitfp was given. |
1459 | if test "${enable_omitfp+set}" = set; then | |
1460 | enableval="$enable_omitfp" | |
1461 | omitfp=$enableval | |
1462 | else | |
1463 | omitfp=no | |
3a12e572 | 1464 | fi; |
cd6ede75 UD |
1465 | # Check whether --enable-bounded or --disable-bounded was given. |
1466 | if test "${enable_bounded+set}" = set; then | |
1467 | enableval="$enable_bounded" | |
1468 | bounded=$enableval | |
1469 | else | |
1470 | bounded=no | |
3a12e572 | 1471 | fi; |
650425ce UD |
1472 | # Check whether --enable-versioning or --disable-versioning was given. |
1473 | if test "${enable_versioning+set}" = set; then | |
1474 | enableval="$enable_versioning" | |
1475 | enable_versioning=$enableval | |
1476 | else | |
1477 | enable_versioning=yes | |
3a12e572 | 1478 | fi; |
cd6ede75 | 1479 | |
62ab42d6 UD |
1480 | # Check whether --enable-oldest-abi or --disable-oldest-abi was given. |
1481 | if test "${enable_oldest_abi+set}" = set; then | |
1482 | enableval="$enable_oldest_abi" | |
1483 | oldest_abi=$enableval | |
1484 | else | |
1485 | oldest_abi=no | |
3a12e572 | 1486 | fi; |
62ab42d6 UD |
1487 | if test "$oldest_abi" = yes || test "$oldest_abi" = no; then |
1488 | oldest_abi=default | |
1489 | else | |
3a12e572 | 1490 | cat >>confdefs.h <<_ACEOF |
62ab42d6 | 1491 | #define GLIBC_OLDEST_ABI "$oldest_abi" |
3a12e572 | 1492 | _ACEOF |
62ab42d6 UD |
1493 | |
1494 | fi | |
1495 | ||
1496 | ||
cd6ede75 UD |
1497 | # Check whether --enable-add-ons or --disable-add-ons was given. |
1498 | if test "${enable_add_ons+set}" = set; then | |
1499 | enableval="$enable_add_ons" | |
61952351 | 1500 | case "$enableval" in |
9c4c0024 UD |
1501 | yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'` |
1502 | test "$add_ons" = "*" && add_ons= ;; | |
61952351 UD |
1503 | *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;; |
1504 | esac | |
cd6ede75 UD |
1505 | else |
1506 | add_ons= | |
3a12e572 | 1507 | fi; |
cd6ede75 | 1508 | |
61952351 | 1509 | |
8d4b5a8a UD |
1510 | # Check whether --with-tls or --without-tls was given. |
1511 | if test "${with_tls+set}" = set; then | |
1512 | withval="$with_tls" | |
1513 | usetls=$withval | |
1514 | else | |
9cce206e | 1515 | usetls=no |
3a12e572 | 1516 | fi; |
8d4b5a8a UD |
1517 | |
1518 | ||
5b8f26b4 RM |
1519 | # Check whether --with-__thread or --without-__thread was given. |
1520 | if test "${with___thread+set}" = set; then | |
1521 | withval="$with___thread" | |
1522 | use__thread=$withval | |
1523 | else | |
1524 | use__thread=yes | |
3a12e572 | 1525 | fi; |
5b8f26b4 | 1526 | |
749a9a4f RM |
1527 | # Check whether --enable-hidden-plt or --disable-hidden-plt was given. |
1528 | if test "${enable_hidden_plt+set}" = set; then | |
1529 | enableval="$enable_hidden_plt" | |
1530 | hidden=$enableval | |
1531 | else | |
1532 | hidden=yes | |
3a12e572 | 1533 | fi; |
749a9a4f | 1534 | if test "x$hidden" = xno; then |
3a12e572 | 1535 | cat >>confdefs.h <<\_ACEOF |
749a9a4f | 1536 | #define NO_HIDDEN 1 |
3a12e572 | 1537 | _ACEOF |
749a9a4f RM |
1538 | |
1539 | fi | |
1540 | ||
3a12e572 UD |
1541 | |
1542 | ||
a1ceed7a | 1543 | subdirs="$subdirs " |
cd6ede75 UD |
1544 | add_ons_pfx= |
1545 | if test x"$add_ons" != x; then | |
1546 | for f in $add_ons; do | |
aa44a9de AJ |
1547 | # Some sanity checks |
1548 | if test "$f" = "crypt"; then | |
3a12e572 | 1549 | { { echo "$as_me:$LINENO: error: |
aa44a9de AJ |
1550 | *** It seems that you're using an old \`crypt' add-on. crypt is now |
1551 | *** part of glibc and using the old add-on will not work with this | |
1552 | *** release. Start again with fresh sources and without the old | |
3a12e572 UD |
1553 | *** \`crypt' add-on." >&5 |
1554 | echo "$as_me: error: | |
1555 | *** It seems that you're using an old \`crypt' add-on. crypt is now | |
1556 | *** part of glibc and using the old add-on will not work with this | |
1557 | *** release. Start again with fresh sources and without the old | |
1558 | *** \`crypt' add-on." >&2;} | |
1559 | { (exit 1); exit 1; }; } | |
aa44a9de AJ |
1560 | fi |
1561 | if test "$f" = "localedata"; then | |
3a12e572 UD |
1562 | { { echo "$as_me:$LINENO: error: |
1563 | *** It seems that you're using an old \`localedata' add-on. localedata | |
1564 | *** is now part of glibc and using the old add-on will not work with | |
1565 | *** this release. Start again with fresh sources and without the old | |
1566 | *** \`localedata' add-on." >&5 | |
1567 | echo "$as_me: error: | |
aa44a9de AJ |
1568 | *** It seems that you're using an old \`localedata' add-on. localedata |
1569 | *** is now part of glibc and using the old add-on will not work with | |
1570 | *** this release. Start again with fresh sources and without the old | |
3a12e572 UD |
1571 | *** \`localedata' add-on." >&2;} |
1572 | { (exit 1); exit 1; }; } | |
aa44a9de | 1573 | fi |
af6f3906 UD |
1574 | # Test whether such a subdir really exists. |
1575 | if test -d $srcdir/$f; then | |
1576 | add_ons_pfx="$add_ons_pfx $f/" | |
a1ceed7a | 1577 | subdirs="$subdirs $f" |
af6f3906 | 1578 | else |
3a12e572 UD |
1579 | { { echo "$as_me:$LINENO: error: add-on directory \"$f\" does not exist" >&5 |
1580 | echo "$as_me: error: add-on directory \"$f\" does not exist" >&2;} | |
1581 | { (exit 1); exit 1; }; } | |
af6f3906 | 1582 | fi |
cd6ede75 UD |
1583 | done |
1584 | fi | |
1585 | ||
1586 | # Check whether --enable-static-nss or --disable-static-nss was given. | |
1587 | if test "${enable_static_nss+set}" = set; then | |
1588 | enableval="$enable_static_nss" | |
1589 | static_nss=$enableval | |
1590 | else | |
1591 | static_nss=no | |
3a12e572 | 1592 | fi; |
834cef7c | 1593 | if test x"$static_nss" = xyes || test x"$shared" = xno; then |
3172f58f | 1594 | static_nss=yes |
3a12e572 | 1595 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 1596 | #define DO_STATIC_NSS 1 |
3a12e572 | 1597 | _ACEOF |
cd6ede75 UD |
1598 | |
1599 | fi | |
1600 | ||
73237de3 UD |
1601 | # Check whether --enable-force-install or --disable-force-install was given. |
1602 | if test "${enable_force_install+set}" = set; then | |
1603 | enableval="$enable_force_install" | |
1604 | force_install=$enableval | |
1605 | else | |
1606 | force_install=yes | |
3a12e572 | 1607 | fi; |
73237de3 UD |
1608 | |
1609 | ||
958f238f UD |
1610 | # Check whether --enable-kernel or --disable-kernel was given. |
1611 | if test "${enable_kernel+set}" = set; then | |
1612 | enableval="$enable_kernel" | |
1613 | minimum_kernel=$enableval | |
3a12e572 | 1614 | fi; |
654de60c UD |
1615 | if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then |
1616 | # Better nothing than this. | |
1617 | minimum_kernel="" | |
78bba25c UD |
1618 | else |
1619 | if test "$minimum_kernel" = current; then | |
1620 | minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel= | |
1621 | fi | |
654de60c | 1622 | fi |
958f238f | 1623 | |
6cc7d725 UD |
1624 | # Check whether --enable-all-warnings or --disable-all-warnings was given. |
1625 | if test "${enable_all_warnings+set}" = set; then | |
1626 | enableval="$enable_all_warnings" | |
1627 | all_warnings=$enableval | |
3a12e572 | 1628 | fi; |
958f238f | 1629 | |
2a068d20 | 1630 | |
958f238f | 1631 | # Make sure we can run config.sub. |
3a12e572 UD |
1632 | $ac_config_sub sun4 >/dev/null 2>&1 || |
1633 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1634 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1635 | { (exit 1); exit 1; }; } | |
1636 | ||
1637 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1638 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1639 | if test "${ac_cv_build+set}" = set; then | |
1640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1641 | else | |
1642 | ac_cv_build_alias=$build_alias | |
1643 | test -z "$ac_cv_build_alias" && | |
1644 | ac_cv_build_alias=`$ac_config_guess` | |
1645 | test -z "$ac_cv_build_alias" && | |
1646 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1647 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1648 | { (exit 1); exit 1; }; } | |
1649 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1650 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1651 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1652 | { (exit 1); exit 1; }; } | |
1653 | ||
1654 | fi | |
1655 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1656 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1657 | build=$ac_cv_build | |
1658 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1659 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1660 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1661 | ||
1662 | ||
1663 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1664 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1665 | if test "${ac_cv_host+set}" = set; then | |
1666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1667 | else | |
1668 | ac_cv_host_alias=$host_alias | |
1669 | test -z "$ac_cv_host_alias" && | |
1670 | ac_cv_host_alias=$ac_cv_build_alias | |
1671 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1672 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1673 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1674 | { (exit 1); exit 1; }; } | |
1675 | ||
1676 | fi | |
1677 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1678 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1679 | host=$ac_cv_host | |
1680 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1681 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1682 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
cd6ede75 | 1683 | |
cd6ede75 UD |
1684 | |
1685 | ||
1686 | # The way shlib-versions is used to generate soversions.mk uses a | |
1687 | # fairly simplistic model for name recognition that can't distinguish | |
1688 | # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os | |
1689 | # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can | |
1690 | # tell. This doesn't get used much beyond that, so it's fairly safe. | |
1691 | case "$host_os" in | |
1692 | linux*) | |
1693 | ;; | |
1694 | gnu*) | |
1695 | host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'` | |
1696 | ;; | |
1697 | esac | |
1698 | ||
1699 | # We keep the original values in `$config_*' and never modify them, so we | |
1700 | # can write them unchanged into config.make. Everything else uses | |
1701 | # $machine, $vendor, and $os, and changes them whenever convenient. | |
1702 | config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os | |
1703 | ||
0816838f UD |
1704 | # Don't allow vendor == "unknown" |
1705 | test "$config_vendor" = unknown && config_vendor= | |
1706 | config_os="`echo $config_os | sed 's/^unknown-//'`" | |
1707 | ||
cd6ede75 UD |
1708 | # Some configurations imply other options. |
1709 | case "$host_os" in | |
1710 | gnu* | linux* | bsd4.4* | netbsd* | freebsd*) | |
1711 | # These systems always use GNU tools. | |
1712 | gnu_ld=yes gnu_as=yes ;; | |
1713 | esac | |
1714 | case "$host_os" in | |
1715 | # i586-linuxaout is mangled into i586-pc-linux-gnuaout | |
1716 | linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*) | |
1717 | ;; | |
ffa8d2a0 | 1718 | gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*) |
cd6ede75 UD |
1719 | # These systems (almost) always use the ELF format. |
1720 | elf=yes | |
1721 | ;; | |
5af3245a UD |
1722 | aix*) |
1723 | # These systems are always xcoff | |
1724 | xcoff=yes | |
a711b01d | 1725 | elf=no |
5af3245a | 1726 | ;; |
cd6ede75 UD |
1727 | esac |
1728 | ||
1729 | machine=$config_machine | |
1730 | vendor=$config_vendor | |
1731 | os=$config_os | |
1732 | ||
a808d541 UD |
1733 | # config.guess on some IBM machines says `rs6000' instead of `powerpc'. |
1734 | # Unify this here. | |
1735 | if test "$machine" = rs6000; then | |
1736 | machine="powerpc" | |
1737 | fi | |
1738 | ||
f4b07664 RM |
1739 | # Braindead PowerPC box with absolutely no FPU. |
1740 | case "$machine-$host_os" in | |
1741 | powerpc*-*soft) | |
1742 | with_fp=no | |
1743 | ;; | |
1744 | esac | |
1745 | ||
7efb9bd1 UD |
1746 | ### |
1747 | ### I put this here to prevent those annoying emails from people who cannot | |
1748 | ### read and try to compile glibc on unsupported platforms. --drepper | |
1749 | ### | |
1750 | ### By using the undocumented --enable-hacker-mode option for configure | |
1751 | ### one can skip this test to make the configuration not fail for unsupported | |
1752 | ### platforms. | |
1753 | ### | |
1754 | if test -z "$enable_hacker_mode"; then | |
1755 | case "$machine-$host_os" in | |
f0d8cfd7 | 1756 | *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*) |
7efb9bd1 UD |
1757 | ;; |
1758 | *) | |
1759 | echo "*** The GNU C library is currently not available for this platform." | |
1760 | echo "*** So far nobody cared to port it and if there is no volunteer it" | |
1761 | echo "*** might never happen. So, if you have interest to see glibc on" | |
1762 | echo "*** this platform visit" | |
1763 | echo "*** http://www.gnu.org/software/libc/porting.html" | |
1764 | echo "*** and join the group of porters" | |
1765 | exit 1 | |
1766 | ;; | |
1767 | esac | |
1768 | fi | |
1769 | ||
cd6ede75 UD |
1770 | # Expand the configuration machine name into a subdirectory by architecture |
1771 | # type and particular chip. | |
1772 | case "$machine" in | |
1773 | a29k | am29000) base_machine=a29k machine=a29k ;; | |
1774 | alpha*) base_machine=alpha machine=alpha/$machine ;; | |
0c8b61e6 | 1775 | arm*) base_machine=arm machine=arm/arm32/$machine ;; |
60c96635 UD |
1776 | c3[012]) base_machine=cx0 machine=cx0/c30 ;; |
1777 | c4[04]) base_machine=cx0 machine=cx0/c40 ;; | |
b15cb495 UD |
1778 | hppa*64*) base_machine=hppa machine=hppa/hppa64 ;; |
1779 | hppa*) base_machine=hppa machine=hppa/hppa1.1 ;; | |
cd6ede75 | 1780 | i[3456]86) base_machine=i386 machine=i386/$machine ;; |
9dfa9a5a | 1781 | ia64) base_machine=ia64 machine=ia64 ;; |
cd6ede75 UD |
1782 | m680?0) base_machine=m68k machine=m68k/$machine ;; |
1783 | m68k) base_machine=m68k machine=m68k/m68020 ;; | |
1784 | m88???) base_machine=m88k machine=m88k/$machine ;; | |
1785 | m88k) base_machine=m88k machine=m88k/m88100 ;; | |
1786 | mips64*) base_machine=mips64 machine=mips/mips64/$machine ;; | |
2b904739 | 1787 | mips*) base_machine=mips machine=mips/$machine ;; |
a8a20be0 UD |
1788 | powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;; |
1789 | powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;; | |
136d4332 UD |
1790 | s390) base_machine=s390 machine=s390/s390-32 ;; |
1791 | s390x) base_machine=s390 machine=s390/s390-64 ;; | |
0da2f50b UD |
1792 | sh3*) base_machine=sh machine=sh/sh3 ;; |
1793 | sh4*) base_machine=sh machine=sh/sh4 ;; | |
ca34d7a7 UD |
1794 | sparc | sparcv[67]) |
1795 | base_machine=sparc machine=sparc/sparc32 ;; | |
1796 | sparcv8 | supersparc | hypersparc) | |
1797 | base_machine=sparc machine=sparc/sparc32/sparcv8 ;; | |
ae6b8730 RH |
1798 | sparcv8plus | sparcv8plusa | sparcv9) |
1799 | base_machine=sparc machine=sparc/sparc32/sparcv9 ;; | |
bb769ab6 UD |
1800 | sparcv8plusb | sparcv9b) |
1801 | base_machine=sparc machine=sparc/sparc32/sparcv9b ;; | |
ca34d7a7 UD |
1802 | sparc64 | ultrasparc) |
1803 | base_machine=sparc machine=sparc/sparc64 ;; | |
bb769ab6 UD |
1804 | sparc64b | ultrasparc3) |
1805 | base_machine=sparc machine=sparc/sparc64/sparcv9b ;; | |
0c8b61e6 | 1806 | thumb*) base_machine=thumb machine=arm/thumb/$machine ;; |
3a2832a0 | 1807 | *) base_machine=$machine ;; |
cd6ede75 UD |
1808 | esac |
1809 | ||
1810 | ||
dfd2257a | 1811 | if test "$base_machine" = "i386"; then |
3a12e572 | 1812 | cat >>confdefs.h <<\_ACEOF |
dfd2257a | 1813 | #define USE_REGPARMS 1 |
3a12e572 | 1814 | _ACEOF |
dfd2257a UD |
1815 | |
1816 | fi | |
1817 | ||
cd6ede75 UD |
1818 | # Compute the list of sysdep directories for this configuration. |
1819 | # This can take a while to compute. | |
1820 | sysdep_dir=$srcdir/sysdeps | |
3a12e572 UD |
1821 | echo "$as_me:$LINENO: checking sysdep dirs" >&5 |
1822 | echo $ECHO_N "checking sysdep dirs... $ECHO_C" >&6 | |
cd6ede75 UD |
1823 | # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1. |
1824 | os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`" | |
1825 | ||
1826 | case "$os" in | |
1827 | gnu*) | |
1828 | base_os=mach/hurd ;; | |
1829 | netbsd* | 386bsd* | freebsd* | bsdi*) | |
1830 | base_os=unix/bsd/bsd4.4 ;; | |
1831 | osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*) | |
1832 | base_os=unix/bsd ;; | |
1833 | sysv* | isc* | esix* | sco* | minix* | irix4* | linux*) | |
1834 | base_os=unix/sysv ;; | |
9a97d1f7 UD |
1835 | irix6*) |
1836 | base_os=unix/sysv/irix6/$os ;; | |
cd6ede75 UD |
1837 | solaris[2-9]*) |
1838 | base_os=unix/sysv/sysv4 ;; | |
908c3d5b UD |
1839 | hpux*) |
1840 | base_os=unix/sysv/hpux/$os ;; | |
f0d8cfd7 UD |
1841 | aix4.3*) |
1842 | base_os=unix/sysv/aix/aix4.3 ;; | |
cd6ede75 UD |
1843 | none) |
1844 | base_os=standalone ;; | |
1845 | *) | |
1846 | base_os='' ;; | |
1847 | esac | |
1848 | ||
1849 | # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos. | |
1850 | tail=$os | |
1851 | ostry=$os | |
1852 | while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do | |
1853 | ostry="$ostry /$o" | |
1854 | tail=$o | |
1855 | done | |
1856 | o=`echo $tail | sed 's/[0-9]*$//'` | |
1857 | if test $o != $tail; then | |
1858 | ostry="$ostry /$o" | |
1859 | fi | |
1860 | # For linux-gnu, try linux-gnu, then linux. | |
1861 | o=`echo $tail | sed 's/-.*$//'` | |
1862 | if test $o != $tail; then | |
1863 | ostry="$ostry /$o" | |
1864 | fi | |
1865 | ||
1866 | # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix. | |
1867 | base= | |
1868 | tail=$base_os | |
1869 | while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do | |
1870 | set $b | |
1871 | base="$base /$1" | |
1872 | tail="$2" | |
1873 | done | |
1874 | ||
ae6b8730 | 1875 | # For sparc/sparc32, try sparc/sparc32 and then sparc. |
cd6ede75 UD |
1876 | mach= |
1877 | tail=$machine | |
1878 | while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do | |
1879 | set $m | |
1880 | # Prepend the machine's FPU directory unless --without-fp. | |
1881 | if test "$with_fp" = yes; then | |
1882 | mach="$mach /$1/fpu" | |
f4b07664 RM |
1883 | else |
1884 | mach="$mach /$1/nofpu" | |
cd6ede75 UD |
1885 | fi |
1886 | mach="$mach /$1" | |
1887 | tail="$2" | |
1888 | done | |
1889 | ||
1890 | ||
1891 | # Find what sysdep directories exist. | |
1892 | sysnames= | |
1893 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1894 | for d in $add_ons_pfx ''; do | |
1895 | for b in $base ''; do | |
1896 | for m0 in $mach ''; do | |
1897 | for v in /$vendor ''; do | |
ae828bc6 | 1898 | test "$v" = / && continue |
cd6ede75 | 1899 | for o in /$ostry ''; do |
ae828bc6 | 1900 | test "$o" = / && continue |
cd6ede75 UD |
1901 | for m in $mach ''; do |
1902 | if test "$m0$b$v$o$m"; then | |
1903 | try="${d}sysdeps$m0$b$v$o$m" | |
1904 | test -n "$enable_debug_configure" && | |
1905 | echo "$0 DEBUG: try $try" >&2 | |
9c4c0024 | 1906 | if test -d $srcdir/$try; then |
cd6ede75 UD |
1907 | sysnames="$sysnames $try" |
1908 | { test -n "$o" || test -n "$b"; } && os_used=t | |
1909 | { test -n "$m" || test -n "$m0"; } && machine_used=t | |
1910 | fi | |
1911 | fi | |
1912 | done | |
1913 | done | |
1914 | done | |
1915 | done | |
1916 | done | |
1917 | done | |
1918 | IFS="$ac_save_ifs" | |
1919 | ||
1920 | if test -z "$os_used" && test "$os" != none; then | |
3a12e572 UD |
1921 | { { echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5 |
1922 | echo "$as_me: error: Operating system $os is not supported." >&2;} | |
1923 | { (exit 1); exit 1; }; } | |
cd6ede75 UD |
1924 | fi |
1925 | if test -z "$machine_used" && test "$machine" != none; then | |
3a12e572 UD |
1926 | { { echo "$as_me:$LINENO: error: The $machine is not supported." >&5 |
1927 | echo "$as_me: error: The $machine is not supported." >&2;} | |
1928 | { (exit 1); exit 1; }; } | |
cd6ede75 UD |
1929 | fi |
1930 | ||
1931 | # We have now validated the configuration. | |
1932 | ||
1933 | ||
1934 | # If using ELF, look for an `elf' subdirectory of each machine directory. | |
1935 | # We prepend these rather than inserting them whereever the machine appears | |
1936 | # because things specified by the machine's ELF ABI should override | |
1937 | # OS-specific things, and should always be the same for any OS on the | |
1938 | # machine (otherwise what's the point of an ABI?). | |
1939 | if test "$elf" = yes; then | |
1940 | elf_dirs= | |
1941 | for d in $add_ons_pfx ''; do | |
cd6ede75 | 1942 | for m in $mach; do |
9c4c0024 | 1943 | if test -d $srcdir/${d}sysdeps$m/elf; then |
cd6ede75 UD |
1944 | elf_dirs="$elf_dirs ${d}sysdeps$m/elf" |
1945 | fi | |
1946 | done | |
1947 | done | |
1948 | sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames" | |
1949 | fi | |
1950 | ||
1951 | ||
1952 | # Expand the list of system names into a full list of directories | |
1953 | # from each element's parent name and Implies file (if present). | |
1954 | set $sysnames | |
1955 | names= | |
1956 | while test $# -gt 0; do | |
1957 | name=$1 | |
1958 | shift | |
1959 | ||
1960 | case " $names " in *" $name "*) | |
1961 | # Already in the list. | |
1962 | continue | |
1963 | esac | |
1964 | ||
1965 | # Report each name as we discover it, so there is no long pause in output. | |
3a12e572 | 1966 | echo $ECHO_N "$name $ECHO_C" >&6 |
cd6ede75 UD |
1967 | |
1968 | name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'` | |
1969 | ||
1970 | case $name in | |
1971 | /*) xsrcdir= ;; | |
1972 | *) xsrcdir=$srcdir/ ;; | |
1973 | esac | |
1974 | test -n "$enable_debug_configure" && | |
1975 | echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2 | |
1976 | ||
1977 | if test -f $xsrcdir$name/Implies; then | |
1978 | # Collect more names from the `Implies' file (removing comments). | |
1979 | implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`" | |
1980 | implied= | |
1981 | for x in $implied_candidate; do | |
636ccfc8 | 1982 | found=no |
cd6ede75 UD |
1983 | if test -d $xsrcdir$name_base/$x; then |
1984 | implied="$implied $name_base/$x"; | |
636ccfc8 UD |
1985 | found=yes |
1986 | fi | |
1987 | for d in $add_ons_pfx ''; do | |
1988 | try="${d}sysdeps/$x" | |
1989 | case $d in | |
1990 | /*) try_srcdir= ;; | |
1991 | *) try_srcdir=$srcdir/ ;; | |
1992 | esac | |
1993 | test -n "$enable_debug_configure" && | |
1994 | echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2 | |
1995 | if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try; | |
1996 | then | |
1997 | implied="$implied $try" | |
1998 | found=yes | |
1999 | fi | |
2000 | done | |
2001 | if test $found = no; then | |
3a12e572 UD |
2002 | { echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5 |
2003 | echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;} | |
cd6ede75 UD |
2004 | fi |
2005 | done | |
2006 | else | |
2007 | implied= | |
2008 | fi | |
2009 | ||
2010 | # Add NAME to the list of names. | |
2011 | names="$names $name" | |
2012 | ||
2013 | # Find the parent of NAME, using the empty string if it has none. | |
2014 | parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`" | |
2015 | ||
2016 | # Add the names implied by NAME, and NAME's parent (if it has one), to | |
2017 | # the list of names to be processed (the argument list). We prepend the | |
2018 | # implied names to the list and append the parent. We want implied | |
2019 | # directories to come before further directories inferred from the | |
2020 | # configuration components; this ensures that for sysv4, unix/common | |
2021 | # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*) | |
2022 | # after sysv4). | |
2023 | sysnames="`echo $implied $* $parent`" | |
2024 | test -n "$sysnames" && set $sysnames | |
2025 | done | |
2026 | ||
2027 | # Add the default directories. | |
a3a4a74e | 2028 | default_sysnames=sysdeps/generic |
2de7874e | 2029 | if test "$elf" = yes; then |
a3a4a74e | 2030 | default_sysnames="sysdeps/generic/elf $default_sysnames" |
2de7874e | 2031 | fi |
a3a4a74e | 2032 | sysnames="$names $default_sysnames" |
cd6ede75 UD |
2033 | |
2034 | # The other names were emitted during the scan. | |
3a12e572 UD |
2035 | echo "$as_me:$LINENO: result: $default_sysnames" >&5 |
2036 | echo "${ECHO_T}$default_sysnames" >&6 | |
cd6ede75 UD |
2037 | |
2038 | ||
2039 | ### Locate tools. | |
2040 | ||
2041 | # Find a good install program. We prefer a C program (faster), | |
2042 | # so one script is as good as another. But avoid the broken or | |
2043 | # incompatible versions: | |
2044 | # SysV /etc/install, /usr/sbin/install | |
2045 | # SunOS /usr/etc/install | |
2046 | # IRIX /sbin/install | |
2047 | # AIX /bin/install | |
3a12e572 | 2048 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
5c2a0669 | 2049 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
cd6ede75 UD |
2050 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2051 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2052 | # ./install, which can be erroneously created by make from ./install.sh. | |
3a12e572 UD |
2053 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2054 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
cd6ede75 | 2055 | if test -z "$INSTALL"; then |
3a12e572 UD |
2056 | if test "${ac_cv_path_install+set}" = set; then |
2057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2058 | else | |
2059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2060 | for as_dir in $PATH | |
2061 | do | |
2062 | IFS=$as_save_IFS | |
2063 | test -z "$as_dir" && as_dir=. | |
2064 | # Account for people who put trailing slashes in PATH elements. | |
2065 | case $as_dir/ in | |
2066 | ./ | .// | /cC/* | \ | |
2067 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2068 | /usr/ucb/* ) ;; | |
2069 | *) | |
2070 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2071 | # Don't use installbsd from OSF since it installs stuff as root | |
2072 | # by default. | |
2073 | for ac_prog in ginstall scoinst install; do | |
2074 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2075 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2076 | if test $ac_prog = install && | |
2077 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2078 | # AIX install. It has an incompatible calling convention. | |
2079 | : | |
2080 | elif test $ac_prog = install && | |
2081 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2082 | # program-specific install script used by HP pwplus--don't use. | |
2083 | : | |
2084 | else | |
2085 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2086 | break 3 | |
2087 | fi | |
2088 | fi | |
cd6ede75 | 2089 | done |
3a12e572 UD |
2090 | done |
2091 | ;; | |
2092 | esac | |
2093 | done | |
2094 | ||
cd6ede75 UD |
2095 | |
2096 | fi | |
2097 | if test "${ac_cv_path_install+set}" = set; then | |
3a12e572 | 2098 | INSTALL=$ac_cv_path_install |
cd6ede75 UD |
2099 | else |
2100 | # As a last resort, use the slow shell script. We don't cache a | |
2101 | # path for INSTALL within a source directory, because that will | |
2102 | # break other packages using the cache if that directory is | |
2103 | # removed, or if the path is relative. | |
3a12e572 | 2104 | INSTALL=$ac_install_sh |
cd6ede75 UD |
2105 | fi |
2106 | fi | |
3a12e572 UD |
2107 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2108 | echo "${ECHO_T}$INSTALL" >&6 | |
cd6ede75 UD |
2109 | |
2110 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2111 | # It thinks the first close brace ends the variable substitution. | |
2112 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2113 | ||
3a12e572 | 2114 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
5c2a0669 | 2115 | |
cd6ede75 UD |
2116 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2117 | ||
ed9c47d9 | 2118 | if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then |
cd6ede75 | 2119 | # The makefiles need to use a different form to find it in $srcdir. |
ed9c47d9 | 2120 | INSTALL='\$(..)./scripts/install-sh -c' |
cd6ede75 | 2121 | fi |
3a12e572 UD |
2122 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
2123 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
2124 | LN_S=$as_ln_s | |
2125 | if test "$LN_S" = "ln -s"; then | |
2126 | echo "$as_me:$LINENO: result: yes" >&5 | |
2127 | echo "${ECHO_T}yes" >&6 | |
cd6ede75 | 2128 | else |
3a12e572 UD |
2129 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
2130 | echo "${ECHO_T}no, using $LN_S" >&6 | |
cd6ede75 UD |
2131 | fi |
2132 | ||
63bda0c1 | 2133 | |
c218729d UD |
2134 | # We need the physical current working directory. We cannot use the |
2135 | # "pwd -P" shell builtin since that's not portable. Instead we try to | |
2136 | # find a pwd binary. Note that assigning to the PWD environment | |
2137 | # variable might have some interesting side effects, so we don't do | |
2138 | # that. | |
2139 | # Extract the first word of "pwd", so it can be a program name with args. | |
2140 | set dummy pwd; ac_word=$2 | |
3a12e572 UD |
2141 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2142 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2143 | if test "${ac_cv_path_PWD_P+set}" = set; then | |
2144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c218729d | 2145 | else |
3a12e572 UD |
2146 | case $PWD_P in |
2147 | [\\/]* | ?:[\\/]*) | |
c218729d UD |
2148 | ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path. |
2149 | ;; | |
c218729d | 2150 | *) |
3a12e572 UD |
2151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2152 | for as_dir in $PATH | |
2153 | do | |
2154 | IFS=$as_save_IFS | |
2155 | test -z "$as_dir" && as_dir=. | |
2156 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2157 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2158 | ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext" | |
2159 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2160 | break 2 | |
2161 | fi | |
2162 | done | |
2163 | done | |
2164 | ||
c218729d UD |
2165 | test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no" |
2166 | ;; | |
2167 | esac | |
2168 | fi | |
3a12e572 UD |
2169 | PWD_P=$ac_cv_path_PWD_P |
2170 | ||
c218729d | 2171 | if test -n "$PWD_P"; then |
3a12e572 UD |
2172 | echo "$as_me:$LINENO: result: $PWD_P" >&5 |
2173 | echo "${ECHO_T}$PWD_P" >&6 | |
c218729d | 2174 | else |
3a12e572 UD |
2175 | echo "$as_me:$LINENO: result: no" >&5 |
2176 | echo "${ECHO_T}no" >&6 | |
c218729d UD |
2177 | fi |
2178 | ||
2179 | if test "$PWD_P" = no; then | |
3a12e572 UD |
2180 | { { echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5 |
2181 | echo "$as_me: error: *** A pwd binary could not be found." >&2;} | |
2182 | { (exit 1); exit 1; }; } | |
c218729d UD |
2183 | fi |
2184 | ||
63bda0c1 | 2185 | # These programs are version sensitive. |
4bca4c17 UD |
2186 | |
2187 | for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc | |
2188 | do | |
3a12e572 | 2189 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
4bca4c17 | 2190 | set dummy $ac_prog; ac_word=$2 |
3a12e572 UD |
2191 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2192 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2193 | if test "${ac_cv_prog_CC+set}" = set; then | |
2194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 | 2195 | else |
63bda0c1 UD |
2196 | if test -n "$CC"; then |
2197 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
cd6ede75 | 2198 | else |
3a12e572 UD |
2199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2200 | for as_dir in $PATH | |
2201 | do | |
2202 | IFS=$as_save_IFS | |
2203 | test -z "$as_dir" && as_dir=. | |
2204 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2205 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2206 | ac_cv_prog_CC="$ac_prog" | |
2207 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2208 | break 2 | |
2209 | fi | |
2210 | done | |
2211 | done | |
2212 | ||
cd6ede75 UD |
2213 | fi |
2214 | fi | |
3a12e572 | 2215 | CC=$ac_cv_prog_CC |
4bca4c17 | 2216 | if test -n "$CC"; then |
3a12e572 UD |
2217 | echo "$as_me:$LINENO: result: $CC" >&5 |
2218 | echo "${ECHO_T}$CC" >&6 | |
4bca4c17 | 2219 | else |
3a12e572 UD |
2220 | echo "$as_me:$LINENO: result: no" >&5 |
2221 | echo "${ECHO_T}no" >&6 | |
4bca4c17 UD |
2222 | fi |
2223 | ||
3a12e572 | 2224 | test -n "$CC" && break |
4bca4c17 UD |
2225 | done |
2226 | ||
2227 | if test -z "$CC"; then | |
2228 | ac_verc_fail=yes | |
63bda0c1 | 2229 | else |
4bca4c17 | 2230 | # Found it, now check the version. |
3a12e572 UD |
2231 | echo "$as_me:$LINENO: checking version of $CC" >&5 |
2232 | echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 | |
9dfa9a5a | 2233 | ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'` |
4bca4c17 UD |
2234 | case $ac_prog_version in |
2235 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
90d1d40b | 2236 | 3.[2-9]*) |
4bca4c17 UD |
2237 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
2238 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
2239 | ||
63bda0c1 | 2240 | esac |
3a12e572 UD |
2241 | echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
2242 | echo "${ECHO_T}$ac_prog_version" >&6 | |
4bca4c17 UD |
2243 | fi |
2244 | if test $ac_verc_fail = yes; then | |
90d1d40b | 2245 | critic_missing="$critic_missing gcc" |
ae828bc6 UD |
2246 | fi |
2247 | ||
22e65f8f | 2248 | for ac_prog in gnumake gmake make |
4bca4c17 | 2249 | do |
3a12e572 | 2250 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
4bca4c17 | 2251 | set dummy $ac_prog; ac_word=$2 |
3a12e572 UD |
2252 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2253 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2254 | if test "${ac_cv_prog_MAKE+set}" = set; then | |
2255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
04be94a8 | 2256 | else |
63bda0c1 UD |
2257 | if test -n "$MAKE"; then |
2258 | ac_cv_prog_MAKE="$MAKE" # Let the user override the test. | |
04be94a8 | 2259 | else |
3a12e572 UD |
2260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2261 | for as_dir in $PATH | |
2262 | do | |
2263 | IFS=$as_save_IFS | |
2264 | test -z "$as_dir" && as_dir=. | |
2265 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2266 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2267 | ac_cv_prog_MAKE="$ac_prog" | |
2268 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2269 | break 2 | |
2270 | fi | |
2271 | done | |
2272 | done | |
2273 | ||
04be94a8 UD |
2274 | fi |
2275 | fi | |
3a12e572 | 2276 | MAKE=$ac_cv_prog_MAKE |
4bca4c17 | 2277 | if test -n "$MAKE"; then |
3a12e572 UD |
2278 | echo "$as_me:$LINENO: result: $MAKE" >&5 |
2279 | echo "${ECHO_T}$MAKE" >&6 | |
4bca4c17 | 2280 | else |
3a12e572 UD |
2281 | echo "$as_me:$LINENO: result: no" >&5 |
2282 | echo "${ECHO_T}no" >&6 | |
4bca4c17 UD |
2283 | fi |
2284 | ||
3a12e572 | 2285 | test -n "$MAKE" && break |
4bca4c17 UD |
2286 | done |
2287 | ||
2288 | if test -z "$MAKE"; then | |
2289 | ac_verc_fail=yes | |
63bda0c1 | 2290 | else |
4bca4c17 | 2291 | # Found it, now check the version. |
3a12e572 UD |
2292 | echo "$as_me:$LINENO: checking version of $MAKE" >&5 |
2293 | echo $ECHO_N "checking version of $MAKE... $ECHO_C" >&6 | |
8fc1e2ca | 2294 | ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'` |
4bca4c17 UD |
2295 | case $ac_prog_version in |
2296 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
2bbc70d5 | 2297 | 3.79* | 3.[89]*) |
4bca4c17 UD |
2298 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
2299 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
2300 | ||
63bda0c1 | 2301 | esac |
3a12e572 UD |
2302 | echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
2303 | echo "${ECHO_T}$ac_prog_version" >&6 | |
4bca4c17 UD |
2304 | fi |
2305 | if test $ac_verc_fail = yes; then | |
6b4e880f | 2306 | critic_missing="$critic_missing make" |
04be94a8 | 2307 | fi |
cd6ede75 | 2308 | |
63bda0c1 | 2309 | |
de83fb78 AJ |
2310 | |
2311 | if test -n "$critic_missing"; then | |
3a12e572 UD |
2312 | { { echo "$as_me:$LINENO: error: |
2313 | *** These critical programs are missing or too old:$critic_missing | |
2314 | *** Check the INSTALL file for required versions." >&5 | |
2315 | echo "$as_me: error: | |
aefdff34 | 2316 | *** These critical programs are missing or too old:$critic_missing |
3a12e572 UD |
2317 | *** Check the INSTALL file for required versions." >&2;} |
2318 | { (exit 1); exit 1; }; } | |
de83fb78 AJ |
2319 | fi |
2320 | ||
2321 | ||
22e65f8f | 2322 | for ac_prog in gnumsgfmt gmsgfmt msgfmt |
4bca4c17 | 2323 | do |
3a12e572 | 2324 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
4bca4c17 | 2325 | set dummy $ac_prog; ac_word=$2 |
3a12e572 UD |
2326 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2327 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2328 | if test "${ac_cv_prog_MSGFMT+set}" = set; then | |
2329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 | 2330 | else |
63bda0c1 UD |
2331 | if test -n "$MSGFMT"; then |
2332 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. | |
cd6ede75 | 2333 | else |
3a12e572 UD |
2334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2335 | for as_dir in $PATH | |
2336 | do | |
2337 | IFS=$as_save_IFS | |
2338 | test -z "$as_dir" && as_dir=. | |
2339 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2340 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2341 | ac_cv_prog_MSGFMT="$ac_prog" | |
2342 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2343 | break 2 | |
2344 | fi | |
2345 | done | |
2346 | done | |
2347 | ||
cd6ede75 UD |
2348 | fi |
2349 | fi | |
3a12e572 | 2350 | MSGFMT=$ac_cv_prog_MSGFMT |
4bca4c17 | 2351 | if test -n "$MSGFMT"; then |
3a12e572 UD |
2352 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
2353 | echo "${ECHO_T}$MSGFMT" >&6 | |
4bca4c17 | 2354 | else |
3a12e572 UD |
2355 | echo "$as_me:$LINENO: result: no" >&5 |
2356 | echo "${ECHO_T}no" >&6 | |
4bca4c17 UD |
2357 | fi |
2358 | ||
3a12e572 | 2359 | test -n "$MSGFMT" && break |
4bca4c17 UD |
2360 | done |
2361 | ||
2362 | if test -z "$MSGFMT"; then | |
2363 | ac_verc_fail=yes | |
63bda0c1 | 2364 | else |
4bca4c17 | 2365 | # Found it, now check the version. |
3a12e572 UD |
2366 | echo "$as_me:$LINENO: checking version of $MSGFMT" >&5 |
2367 | echo $ECHO_N "checking version of $MSGFMT... $ECHO_C" >&6 | |
bdd421cc | 2368 | ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
4bca4c17 UD |
2369 | case $ac_prog_version in |
2370 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
fbd5e005 | 2371 | 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*) |
4bca4c17 UD |
2372 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
2373 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
2374 | ||
63bda0c1 | 2375 | esac |
3a12e572 UD |
2376 | echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
2377 | echo "${ECHO_T}$ac_prog_version" >&6 | |
4bca4c17 UD |
2378 | fi |
2379 | if test $ac_verc_fail = yes; then | |
aefdff34 | 2380 | MSGFMT=: aux_missing="$aux_missing msgfmt" |
cd6ede75 UD |
2381 | fi |
2382 | ||
4bca4c17 UD |
2383 | for ac_prog in makeinfo |
2384 | do | |
3a12e572 | 2385 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
4bca4c17 | 2386 | set dummy $ac_prog; ac_word=$2 |
3a12e572 UD |
2387 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2388 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2389 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then | |
2390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 | 2391 | else |
63bda0c1 UD |
2392 | if test -n "$MAKEINFO"; then |
2393 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
cd6ede75 | 2394 | else |
3a12e572 UD |
2395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2396 | for as_dir in $PATH | |
2397 | do | |
2398 | IFS=$as_save_IFS | |
2399 | test -z "$as_dir" && as_dir=. | |
2400 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2401 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2402 | ac_cv_prog_MAKEINFO="$ac_prog" | |
2403 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2404 | break 2 | |
2405 | fi | |
2406 | done | |
2407 | done | |
2408 | ||
cd6ede75 UD |
2409 | fi |
2410 | fi | |
3a12e572 | 2411 | MAKEINFO=$ac_cv_prog_MAKEINFO |
4bca4c17 | 2412 | if test -n "$MAKEINFO"; then |
3a12e572 UD |
2413 | echo "$as_me:$LINENO: result: $MAKEINFO" >&5 |
2414 | echo "${ECHO_T}$MAKEINFO" >&6 | |
4bca4c17 | 2415 | else |
3a12e572 UD |
2416 | echo "$as_me:$LINENO: result: no" >&5 |
2417 | echo "${ECHO_T}no" >&6 | |
4bca4c17 UD |
2418 | fi |
2419 | ||
3a12e572 | 2420 | test -n "$MAKEINFO" && break |
4bca4c17 UD |
2421 | done |
2422 | ||
2423 | if test -z "$MAKEINFO"; then | |
2424 | ac_verc_fail=yes | |
63bda0c1 | 2425 | else |
4bca4c17 | 2426 | # Found it, now check the version. |
3a12e572 UD |
2427 | echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5 |
2428 | echo $ECHO_N "checking version of $MAKEINFO... $ECHO_C" >&6 | |
be1d9d95 | 2429 | ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` |
4bca4c17 UD |
2430 | case $ac_prog_version in |
2431 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
1468be21 | 2432 | 4.*) |
4bca4c17 UD |
2433 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
2434 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
2435 | ||
63bda0c1 | 2436 | esac |
3a12e572 UD |
2437 | echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
2438 | echo "${ECHO_T}$ac_prog_version" >&6 | |
4bca4c17 UD |
2439 | fi |
2440 | if test $ac_verc_fail = yes; then | |
aefdff34 | 2441 | MAKEINFO=: aux_missing="$aux_missing makeinfo" |
cd6ede75 UD |
2442 | fi |
2443 | ||
d6a97a28 | 2444 | for ac_prog in sed |
aec103d3 | 2445 | do |
3a12e572 | 2446 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
aec103d3 | 2447 | set dummy $ac_prog; ac_word=$2 |
3a12e572 UD |
2448 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2449 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2450 | if test "${ac_cv_prog_SED+set}" = set; then | |
2451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
aec103d3 UD |
2452 | else |
2453 | if test -n "$SED"; then | |
2454 | ac_cv_prog_SED="$SED" # Let the user override the test. | |
2455 | else | |
3a12e572 UD |
2456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2457 | for as_dir in $PATH | |
2458 | do | |
2459 | IFS=$as_save_IFS | |
2460 | test -z "$as_dir" && as_dir=. | |
2461 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2462 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2463 | ac_cv_prog_SED="$ac_prog" | |
2464 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2465 | break 2 | |
2466 | fi | |
2467 | done | |
2468 | done | |
2469 | ||
aec103d3 UD |
2470 | fi |
2471 | fi | |
3a12e572 | 2472 | SED=$ac_cv_prog_SED |
aec103d3 | 2473 | if test -n "$SED"; then |
3a12e572 UD |
2474 | echo "$as_me:$LINENO: result: $SED" >&5 |
2475 | echo "${ECHO_T}$SED" >&6 | |
aec103d3 | 2476 | else |
3a12e572 UD |
2477 | echo "$as_me:$LINENO: result: no" >&5 |
2478 | echo "${ECHO_T}no" >&6 | |
aec103d3 UD |
2479 | fi |
2480 | ||
3a12e572 | 2481 | test -n "$SED" && break |
aec103d3 UD |
2482 | done |
2483 | ||
2484 | if test -z "$SED"; then | |
2485 | ac_verc_fail=yes | |
2486 | else | |
2487 | # Found it, now check the version. | |
3a12e572 UD |
2488 | echo "$as_me:$LINENO: checking version of $SED" >&5 |
2489 | echo $ECHO_N "checking version of $SED... $ECHO_C" >&6 | |
aec103d3 UD |
2490 | ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'` |
2491 | case $ac_prog_version in | |
2492 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
ce19d417 | 2493 | 3.0[2-9]*|3.[1-9]*|[4-9]*) |
aec103d3 UD |
2494 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
2495 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
2496 | ||
2497 | esac | |
3a12e572 UD |
2498 | echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
2499 | echo "${ECHO_T}$ac_prog_version" >&6 | |
aec103d3 UD |
2500 | fi |
2501 | if test $ac_verc_fail = yes; then | |
aefdff34 | 2502 | SED=: aux_missing="$aux_missing sed" |
aec103d3 UD |
2503 | fi |
2504 | ||
cd6ede75 | 2505 | |
14519931 RM |
2506 | if test "x$with_cvs" != xyes; then |
2507 | for ac_prog in autoconf | |
1400de2e | 2508 | do |
3a12e572 | 2509 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1400de2e | 2510 | set dummy $ac_prog; ac_word=$2 |
3a12e572 UD |
2511 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2512 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2513 | if test "${ac_cv_prog_AUTOCONF+set}" = set; then | |
2514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1400de2e RM |
2515 | else |
2516 | if test -n "$AUTOCONF"; then | |
2517 | ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test. | |
2518 | else | |
3a12e572 UD |
2519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2520 | for as_dir in $PATH | |
2521 | do | |
2522 | IFS=$as_save_IFS | |
2523 | test -z "$as_dir" && as_dir=. | |
2524 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2525 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2526 | ac_cv_prog_AUTOCONF="$ac_prog" | |
2527 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2528 | break 2 | |
2529 | fi | |
2530 | done | |
2531 | done | |
2532 | ||
1400de2e RM |
2533 | fi |
2534 | fi | |
3a12e572 | 2535 | AUTOCONF=$ac_cv_prog_AUTOCONF |
1400de2e | 2536 | if test -n "$AUTOCONF"; then |
3a12e572 UD |
2537 | echo "$as_me:$LINENO: result: $AUTOCONF" >&5 |
2538 | echo "${ECHO_T}$AUTOCONF" >&6 | |
1400de2e | 2539 | else |
3a12e572 UD |
2540 | echo "$as_me:$LINENO: result: no" >&5 |
2541 | echo "${ECHO_T}no" >&6 | |
1400de2e RM |
2542 | fi |
2543 | ||
3a12e572 | 2544 | test -n "$AUTOCONF" && break |
1400de2e RM |
2545 | done |
2546 | test -n "$AUTOCONF" || AUTOCONF="no" | |
2547 | ||
14519931 RM |
2548 | case "x$AUTOCONF" in |
2549 | xno|x|x:) AUTOCONF=no ;; | |
2550 | *) | |
2551 | echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5 | |
3a12e572 UD |
2552 | echo $ECHO_N "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... $ECHO_C" >&6 |
2553 | if test "${libc_cv_autoconf_works+set}" = set; then | |
2554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1400de2e | 2555 | else |
14519931 RM |
2556 | if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then |
2557 | libc_cv_autoconf_works=yes | |
2558 | else | |
2559 | libc_cv_autoconf_works=no | |
2560 | fi | |
1400de2e | 2561 | fi |
3a12e572 UD |
2562 | echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5 |
2563 | echo "${ECHO_T}$libc_cv_autoconf_works" >&6 | |
14519931 RM |
2564 | test $libc_cv_autoconf_works = yes || AUTOCONF=no |
2565 | ;; | |
2566 | esac | |
2567 | test "x$AUTOCONF" != xno || aux_missing="$aux_missing autoconf" | |
2568 | fi | |
1400de2e | 2569 | |
cd6ede75 | 2570 | ac_ext=c |
cd6ede75 | 2571 | ac_cpp='$CPP $CPPFLAGS' |
3a12e572 UD |
2572 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2573 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2574 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2575 | if test -n "$ac_tool_prefix"; then | |
2576 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2577 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2578 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2579 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2580 | if test "${ac_cv_prog_CC+set}" = set; then | |
2581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2582 | else | |
2583 | if test -n "$CC"; then | |
2584 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2585 | else | |
2586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2587 | for as_dir in $PATH | |
2588 | do | |
2589 | IFS=$as_save_IFS | |
2590 | test -z "$as_dir" && as_dir=. | |
2591 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2592 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2593 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2594 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2595 | break 2 | |
cd6ede75 | 2596 | fi |
3a12e572 UD |
2597 | done |
2598 | done | |
2599 | ||
2600 | fi | |
2601 | fi | |
2602 | CC=$ac_cv_prog_CC | |
2603 | if test -n "$CC"; then | |
2604 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2605 | echo "${ECHO_T}$CC" >&6 | |
cd6ede75 | 2606 | else |
3a12e572 UD |
2607 | echo "$as_me:$LINENO: result: no" >&5 |
2608 | echo "${ECHO_T}no" >&6 | |
cd6ede75 | 2609 | fi |
cd6ede75 | 2610 | |
63bda0c1 | 2611 | fi |
3a12e572 UD |
2612 | if test -z "$ac_cv_prog_CC"; then |
2613 | ac_ct_CC=$CC | |
2614 | # Extract the first word of "gcc", so it can be a program name with args. | |
2615 | set dummy gcc; ac_word=$2 | |
2616 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2617 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2618 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2620 | else | |
2621 | if test -n "$ac_ct_CC"; then | |
2622 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2623 | else | |
2624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2625 | for as_dir in $PATH | |
2626 | do | |
2627 | IFS=$as_save_IFS | |
2628 | test -z "$as_dir" && as_dir=. | |
2629 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2630 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2631 | ac_cv_prog_ac_ct_CC="gcc" | |
2632 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2633 | break 2 | |
2634 | fi | |
2635 | done | |
2636 | done | |
63bda0c1 | 2637 | |
3a12e572 UD |
2638 | fi |
2639 | fi | |
2640 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2641 | if test -n "$ac_ct_CC"; then | |
2642 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2643 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
cd6ede75 | 2644 | else |
3a12e572 UD |
2645 | echo "$as_me:$LINENO: result: no" >&5 |
2646 | echo "${ECHO_T}no" >&6 | |
cd6ede75 | 2647 | fi |
3a12e572 UD |
2648 | |
2649 | CC=$ac_ct_CC | |
63bda0c1 | 2650 | else |
3a12e572 | 2651 | CC="$ac_cv_prog_CC" |
63bda0c1 UD |
2652 | fi |
2653 | ||
3a12e572 UD |
2654 | if test -z "$CC"; then |
2655 | if test -n "$ac_tool_prefix"; then | |
2656 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2657 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2658 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2659 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2660 | if test "${ac_cv_prog_CC+set}" = set; then | |
2661 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2662 | else | |
2663 | if test -n "$CC"; then | |
2664 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2665 | else | |
2666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2667 | for as_dir in $PATH | |
2668 | do | |
2669 | IFS=$as_save_IFS | |
2670 | test -z "$as_dir" && as_dir=. | |
2671 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2672 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2673 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2674 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2675 | break 2 | |
2676 | fi | |
2677 | done | |
2678 | done | |
cd6ede75 | 2679 | |
3a12e572 UD |
2680 | fi |
2681 | fi | |
2682 | CC=$ac_cv_prog_CC | |
2683 | if test -n "$CC"; then | |
2684 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2685 | echo "${ECHO_T}$CC" >&6 | |
2686 | else | |
2687 | echo "$as_me:$LINENO: result: no" >&5 | |
2688 | echo "${ECHO_T}no" >&6 | |
2689 | fi | |
cd6ede75 | 2690 | |
3a12e572 UD |
2691 | fi |
2692 | if test -z "$ac_cv_prog_CC"; then | |
2693 | ac_ct_CC=$CC | |
2694 | # Extract the first word of "cc", so it can be a program name with args. | |
2695 | set dummy cc; ac_word=$2 | |
2696 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2697 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2698 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 | 2700 | else |
3a12e572 UD |
2701 | if test -n "$ac_ct_CC"; then |
2702 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2703 | else | |
2704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2705 | for as_dir in $PATH | |
2706 | do | |
2707 | IFS=$as_save_IFS | |
2708 | test -z "$as_dir" && as_dir=. | |
2709 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2710 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2711 | ac_cv_prog_ac_ct_CC="cc" | |
2712 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2713 | break 2 | |
2714 | fi | |
2715 | done | |
2716 | done | |
2717 | ||
2718 | fi | |
2719 | fi | |
2720 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2721 | if test -n "$ac_ct_CC"; then | |
2722 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2723 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
cd6ede75 | 2724 | else |
3a12e572 UD |
2725 | echo "$as_me:$LINENO: result: no" >&5 |
2726 | echo "${ECHO_T}no" >&6 | |
cd6ede75 | 2727 | fi |
3a12e572 UD |
2728 | |
2729 | CC=$ac_ct_CC | |
2730 | else | |
2731 | CC="$ac_cv_prog_CC" | |
cd6ede75 UD |
2732 | fi |
2733 | ||
cd6ede75 | 2734 | fi |
3a12e572 UD |
2735 | if test -z "$CC"; then |
2736 | # Extract the first word of "cc", so it can be a program name with args. | |
2737 | set dummy cc; ac_word=$2 | |
2738 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2739 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2740 | if test "${ac_cv_prog_CC+set}" = set; then | |
2741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2742 | else | |
2743 | if test -n "$CC"; then | |
2744 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2745 | else | |
2746 | ac_prog_rejected=no | |
2747 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2748 | for as_dir in $PATH | |
2749 | do | |
2750 | IFS=$as_save_IFS | |
2751 | test -z "$as_dir" && as_dir=. | |
2752 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2753 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2754 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2755 | ac_prog_rejected=yes | |
2756 | continue | |
2757 | fi | |
2758 | ac_cv_prog_CC="cc" | |
2759 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2760 | break 2 | |
2761 | fi | |
2762 | done | |
2763 | done | |
cd6ede75 | 2764 | |
3a12e572 UD |
2765 | if test $ac_prog_rejected = yes; then |
2766 | # We found a bogon in the path, so make sure we never use it. | |
2767 | set dummy $ac_cv_prog_CC | |
2768 | shift | |
2769 | if test $# != 0; then | |
2770 | # We chose a different compiler from the bogus one. | |
2771 | # However, it has the same basename, so the bogon will be chosen | |
2772 | # first if we set CC to just the basename; use the full file name. | |
2773 | shift | |
f4b07664 | 2774 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
3a12e572 UD |
2775 | fi |
2776 | fi | |
2777 | fi | |
2778 | fi | |
2779 | CC=$ac_cv_prog_CC | |
2780 | if test -n "$CC"; then | |
2781 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2782 | echo "${ECHO_T}$CC" >&6 | |
2783 | else | |
2784 | echo "$as_me:$LINENO: result: no" >&5 | |
2785 | echo "${ECHO_T}no" >&6 | |
2786 | fi | |
a808d541 | 2787 | |
3a12e572 UD |
2788 | fi |
2789 | if test -z "$CC"; then | |
2790 | if test -n "$ac_tool_prefix"; then | |
2791 | for ac_prog in cl | |
2792 | do | |
2793 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2794 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2795 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2796 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2797 | if test "${ac_cv_prog_CC+set}" = set; then | |
2798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2799 | else | |
2800 | if test -n "$CC"; then | |
2801 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2802 | else | |
2803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2804 | for as_dir in $PATH | |
2805 | do | |
2806 | IFS=$as_save_IFS | |
2807 | test -z "$as_dir" && as_dir=. | |
2808 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2809 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2810 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2811 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2812 | break 2 | |
2813 | fi | |
2814 | done | |
2815 | done | |
cd6ede75 | 2816 | |
3a12e572 UD |
2817 | fi |
2818 | fi | |
2819 | CC=$ac_cv_prog_CC | |
2820 | if test -n "$CC"; then | |
2821 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2822 | echo "${ECHO_T}$CC" >&6 | |
2823 | else | |
2824 | echo "$as_me:$LINENO: result: no" >&5 | |
2825 | echo "${ECHO_T}no" >&6 | |
2826 | fi | |
cd6ede75 | 2827 | |
3a12e572 UD |
2828 | test -n "$CC" && break |
2829 | done | |
2830 | fi | |
2831 | if test -z "$CC"; then | |
2832 | ac_ct_CC=$CC | |
2833 | for ac_prog in cl | |
cd6ede75 | 2834 | do |
3a12e572 | 2835 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
cd6ede75 | 2836 | set dummy $ac_prog; ac_word=$2 |
3a12e572 UD |
2837 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2838 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2839 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 | 2841 | else |
3a12e572 UD |
2842 | if test -n "$ac_ct_CC"; then |
2843 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
cd6ede75 | 2844 | else |
3a12e572 UD |
2845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2846 | for as_dir in $PATH | |
2847 | do | |
2848 | IFS=$as_save_IFS | |
2849 | test -z "$as_dir" && as_dir=. | |
2850 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2851 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2852 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2853 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2854 | break 2 | |
2855 | fi | |
2856 | done | |
2857 | done | |
2858 | ||
cd6ede75 UD |
2859 | fi |
2860 | fi | |
3a12e572 UD |
2861 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2862 | if test -n "$ac_ct_CC"; then | |
2863 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2864 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
cd6ede75 | 2865 | else |
3a12e572 UD |
2866 | echo "$as_me:$LINENO: result: no" >&5 |
2867 | echo "${ECHO_T}no" >&6 | |
cd6ede75 UD |
2868 | fi |
2869 | ||
3a12e572 | 2870 | test -n "$ac_ct_CC" && break |
cd6ede75 UD |
2871 | done |
2872 | ||
3a12e572 | 2873 | CC=$ac_ct_CC |
cd6ede75 UD |
2874 | fi |
2875 | ||
cd6ede75 | 2876 | fi |
3a12e572 UD |
2877 | |
2878 | ||
2879 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 | |
2880 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} | |
2881 | { (exit 1); exit 1; }; } | |
2882 | ||
2883 | # Provide some information about the compiler. | |
2884 | echo "$as_me:$LINENO:" \ | |
2885 | "checking for C compiler version" >&5 | |
2886 | ac_compiler=`set X $ac_compile; echo $2` | |
2887 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2888 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2889 | ac_status=$? | |
2890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2891 | (exit $ac_status); } | |
2892 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2893 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2894 | ac_status=$? | |
2895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2896 | (exit $ac_status); } | |
2897 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2898 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2899 | ac_status=$? | |
2900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2901 | (exit $ac_status); } | |
2902 | ||
2903 | EXEEXT= | |
2904 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2905 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2906 | if test "${ac_cv_objext+set}" = set; then | |
2907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 | 2908 | else |
3a12e572 UD |
2909 | cat >conftest.$ac_ext <<_ACEOF |
2910 | #line $LINENO "configure" | |
cd6ede75 | 2911 | #include "confdefs.h" |
3a12e572 | 2912 | |
3a12e572 UD |
2913 | int |
2914 | main () | |
2915 | { | |
2916 | ||
2917 | ; | |
2918 | return 0; | |
2919 | } | |
2920 | _ACEOF | |
2921 | rm -f conftest.o conftest.obj | |
2922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2923 | (eval $ac_compile) 2>&5 | |
2924 | ac_status=$? | |
2925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2926 | (exit $ac_status); }; then | |
2927 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2928 | case $ac_file in | |
f4b07664 | 2929 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
3a12e572 UD |
2930 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2931 | break;; | |
2932 | esac | |
2933 | done | |
2934 | else | |
2935 | echo "$as_me: failed program was:" >&5 | |
2936 | cat conftest.$ac_ext >&5 | |
2937 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 | |
2938 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} | |
2939 | { (exit 1); exit 1; }; } | |
2940 | fi | |
2941 | ||
2942 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2943 | fi | |
2944 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2945 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2946 | OBJEXT=$ac_cv_objext | |
2947 | ac_objext=$OBJEXT | |
2948 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2949 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2950 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2952 | else | |
2953 | cat >conftest.$ac_ext <<_ACEOF | |
2954 | #line $LINENO "configure" | |
2955 | #include "confdefs.h" | |
2956 | ||
3a12e572 UD |
2957 | int |
2958 | main () | |
2959 | { | |
2960 | #ifndef __GNUC__ | |
2961 | choke me | |
2962 | #endif | |
2963 | ||
2964 | ; | |
2965 | return 0; | |
2966 | } | |
2967 | _ACEOF | |
2968 | rm -f conftest.$ac_objext | |
2969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2970 | (eval $ac_compile) 2>&5 | |
2971 | ac_status=$? | |
2972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2973 | (exit $ac_status); } && | |
2974 | { ac_try='test -s conftest.$ac_objext' | |
2975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2976 | (eval $ac_try) 2>&5 | |
2977 | ac_status=$? | |
2978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2979 | (exit $ac_status); }; }; then | |
2980 | ac_compiler_gnu=yes | |
2981 | else | |
2982 | echo "$as_me: failed program was:" >&5 | |
2983 | cat conftest.$ac_ext >&5 | |
2984 | ac_compiler_gnu=no | |
2985 | fi | |
2986 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2987 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2988 | ||
2989 | fi | |
2990 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2991 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2992 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2993 | ac_test_CFLAGS=${CFLAGS+set} | |
2994 | ac_save_CFLAGS=$CFLAGS | |
2995 | CFLAGS="-g" | |
2996 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2997 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2998 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3000 | else | |
3001 | cat >conftest.$ac_ext <<_ACEOF | |
3002 | #line $LINENO "configure" | |
3003 | #include "confdefs.h" | |
3004 | ||
3a12e572 UD |
3005 | int |
3006 | main () | |
3007 | { | |
3008 | ||
3009 | ; | |
3010 | return 0; | |
3011 | } | |
3012 | _ACEOF | |
3013 | rm -f conftest.$ac_objext | |
3014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3015 | (eval $ac_compile) 2>&5 | |
3016 | ac_status=$? | |
3017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3018 | (exit $ac_status); } && | |
3019 | { ac_try='test -s conftest.$ac_objext' | |
3020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3021 | (eval $ac_try) 2>&5 | |
3022 | ac_status=$? | |
3023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3024 | (exit $ac_status); }; }; then | |
3025 | ac_cv_prog_cc_g=yes | |
3026 | else | |
3027 | echo "$as_me: failed program was:" >&5 | |
3028 | cat conftest.$ac_ext >&5 | |
3029 | ac_cv_prog_cc_g=no | |
3030 | fi | |
3031 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3032 | fi | |
3033 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
3034 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
3035 | if test "$ac_test_CFLAGS" = set; then | |
3036 | CFLAGS=$ac_save_CFLAGS | |
3037 | elif test $ac_cv_prog_cc_g = yes; then | |
3038 | if test "$GCC" = yes; then | |
3039 | CFLAGS="-g -O2" | |
3040 | else | |
3041 | CFLAGS="-g" | |
3042 | fi | |
3043 | else | |
3044 | if test "$GCC" = yes; then | |
3045 | CFLAGS="-O2" | |
3046 | else | |
3047 | CFLAGS= | |
3048 | fi | |
3049 | fi | |
f4b07664 RM |
3050 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
3051 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
3052 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
3053 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3054 | else | |
3055 | ac_cv_prog_cc_stdc=no | |
3056 | ac_save_CC=$CC | |
3057 | cat >conftest.$ac_ext <<_ACEOF | |
3058 | #line $LINENO "configure" | |
3059 | #include "confdefs.h" | |
3060 | #include <stdarg.h> | |
3061 | #include <stdio.h> | |
3062 | #include <sys/types.h> | |
3063 | #include <sys/stat.h> | |
3064 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3065 | struct buf { int x; }; | |
3066 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3067 | static char *e (p, i) | |
3068 | char **p; | |
3069 | int i; | |
3070 | { | |
3071 | return p[i]; | |
3072 | } | |
3073 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3074 | { | |
3075 | char *s; | |
3076 | va_list v; | |
3077 | va_start (v,p); | |
3078 | s = g (p, va_arg (v,int)); | |
3079 | va_end (v); | |
3080 | return s; | |
3081 | } | |
3082 | int test (int i, double x); | |
3083 | struct s1 {int (*f) (int a);}; | |
3084 | struct s2 {int (*f) (double a);}; | |
3085 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3086 | int argc; | |
3087 | char **argv; | |
3088 | int | |
3089 | main () | |
3090 | { | |
3091 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3092 | ; | |
3093 | return 0; | |
3094 | } | |
3095 | _ACEOF | |
3096 | # Don't try gcc -ansi; that turns off useful extensions and | |
3097 | # breaks some systems' header files. | |
3098 | # AIX -qlanglvl=ansi | |
3099 | # Ultrix and OSF/1 -std1 | |
3100 | # HP-UX 10.20 and later -Ae | |
3101 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3102 | # SVR4 -Xc -D__EXTENSIONS__ | |
3103 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3104 | do | |
3105 | CC="$ac_save_CC $ac_arg" | |
3106 | rm -f conftest.$ac_objext | |
3107 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3108 | (eval $ac_compile) 2>&5 | |
3109 | ac_status=$? | |
3110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3111 | (exit $ac_status); } && | |
3112 | { ac_try='test -s conftest.$ac_objext' | |
3113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3114 | (eval $ac_try) 2>&5 | |
3115 | ac_status=$? | |
3116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3117 | (exit $ac_status); }; }; then | |
3118 | ac_cv_prog_cc_stdc=$ac_arg | |
3119 | break | |
3120 | else | |
3121 | echo "$as_me: failed program was:" >&5 | |
3122 | cat conftest.$ac_ext >&5 | |
3123 | fi | |
3124 | rm -f conftest.$ac_objext | |
3125 | done | |
3126 | rm -f conftest.$ac_ext conftest.$ac_objext | |
3127 | CC=$ac_save_CC | |
3128 | ||
3129 | fi | |
3130 | ||
3131 | case "x$ac_cv_prog_cc_stdc" in | |
3132 | x|xno) | |
3133 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3134 | echo "${ECHO_T}none needed" >&6 ;; | |
3135 | *) | |
3136 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
3137 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3138 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
3139 | esac | |
3140 | ||
3a12e572 UD |
3141 | # Some people use a C++ compiler to compile C. Since we use `exit', |
3142 | # in C++ we need to declare it. In case someone uses the same compiler | |
3143 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3144 | # the declaration of exit, since it's the most demanding environment. | |
3145 | cat >conftest.$ac_ext <<_ACEOF | |
3146 | #ifndef __cplusplus | |
3147 | choke me | |
3148 | #endif | |
3149 | _ACEOF | |
3150 | rm -f conftest.$ac_objext | |
3151 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3152 | (eval $ac_compile) 2>&5 | |
3153 | ac_status=$? | |
3154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3155 | (exit $ac_status); } && | |
3156 | { ac_try='test -s conftest.$ac_objext' | |
3157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3158 | (eval $ac_try) 2>&5 | |
3159 | ac_status=$? | |
3160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3161 | (exit $ac_status); }; }; then | |
3162 | for ac_declaration in \ | |
3163 | ''\ | |
3164 | '#include <stdlib.h>' \ | |
3165 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
3166 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3167 | 'extern "C" void exit (int) throw ();' \ | |
3168 | 'extern "C" void exit (int);' \ | |
3169 | 'void exit (int);' | |
3170 | do | |
3171 | cat >conftest.$ac_ext <<_ACEOF | |
3172 | #line $LINENO "configure" | |
3173 | #include "confdefs.h" | |
3174 | #include <stdlib.h> | |
3175 | $ac_declaration | |
3a12e572 UD |
3176 | int |
3177 | main () | |
3178 | { | |
3179 | exit (42); | |
3180 | ; | |
3181 | return 0; | |
3182 | } | |
3183 | _ACEOF | |
3184 | rm -f conftest.$ac_objext | |
3185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3186 | (eval $ac_compile) 2>&5 | |
3187 | ac_status=$? | |
3188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3189 | (exit $ac_status); } && | |
3190 | { ac_try='test -s conftest.$ac_objext' | |
3191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3192 | (eval $ac_try) 2>&5 | |
3193 | ac_status=$? | |
3194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3195 | (exit $ac_status); }; }; then | |
5c2a0669 UD |
3196 | : |
3197 | else | |
3a12e572 UD |
3198 | echo "$as_me: failed program was:" >&5 |
3199 | cat conftest.$ac_ext >&5 | |
3200 | continue | |
3201 | fi | |
3202 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3203 | cat >conftest.$ac_ext <<_ACEOF | |
3204 | #line $LINENO "configure" | |
3205 | #include "confdefs.h" | |
3206 | $ac_declaration | |
3a12e572 UD |
3207 | int |
3208 | main () | |
3209 | { | |
3210 | exit (42); | |
3211 | ; | |
3212 | return 0; | |
3213 | } | |
3214 | _ACEOF | |
3215 | rm -f conftest.$ac_objext | |
3216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3217 | (eval $ac_compile) 2>&5 | |
3218 | ac_status=$? | |
3219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3220 | (exit $ac_status); } && | |
3221 | { ac_try='test -s conftest.$ac_objext' | |
3222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3223 | (eval $ac_try) 2>&5 | |
3224 | ac_status=$? | |
3225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3226 | (exit $ac_status); }; }; then | |
3227 | break | |
3228 | else | |
3229 | echo "$as_me: failed program was:" >&5 | |
3230 | cat conftest.$ac_ext >&5 | |
3231 | fi | |
3232 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3233 | done | |
3234 | rm -f conftest* | |
3235 | if test -n "$ac_declaration"; then | |
3236 | echo '#ifdef __cplusplus' >>confdefs.h | |
3237 | echo $ac_declaration >>confdefs.h | |
3238 | echo '#endif' >>confdefs.h | |
3239 | fi | |
3240 | ||
3241 | else | |
3242 | echo "$as_me: failed program was:" >&5 | |
3243 | cat conftest.$ac_ext >&5 | |
3244 | fi | |
3245 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3246 | ac_ext=c | |
3247 | ac_cpp='$CPP $CPPFLAGS' | |
3248 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3249 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3250 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3251 | ||
3252 | if test $host != $build; then | |
3253 | for ac_prog in gcc cc | |
3254 | do | |
3255 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3256 | set dummy $ac_prog; ac_word=$2 | |
3257 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3258 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3259 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then | |
3260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3261 | else | |
3262 | if test -n "$BUILD_CC"; then | |
3263 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | |
3264 | else | |
3265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3266 | for as_dir in $PATH | |
3267 | do | |
3268 | IFS=$as_save_IFS | |
3269 | test -z "$as_dir" && as_dir=. | |
3270 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3271 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3272 | ac_cv_prog_BUILD_CC="$ac_prog" | |
3273 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3274 | break 2 | |
3275 | fi | |
3276 | done | |
3277 | done | |
3278 | ||
3279 | fi | |
3280 | fi | |
3281 | BUILD_CC=$ac_cv_prog_BUILD_CC | |
3282 | if test -n "$BUILD_CC"; then | |
3283 | echo "$as_me:$LINENO: result: $BUILD_CC" >&5 | |
3284 | echo "${ECHO_T}$BUILD_CC" >&6 | |
3285 | else | |
3286 | echo "$as_me:$LINENO: result: no" >&5 | |
3287 | echo "${ECHO_T}no" >&6 | |
3288 | fi | |
3289 | ||
3290 | test -n "$BUILD_CC" && break | |
3291 | done | |
3292 | ||
3293 | fi | |
3294 | ||
3295 | ac_ext=c | |
3296 | ac_cpp='$CPP $CPPFLAGS' | |
3297 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3298 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3299 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3300 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
3301 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
3302 | # On Suns, sometimes $CPP names a directory. | |
3303 | if test -n "$CPP" && test -d "$CPP"; then | |
3304 | CPP= | |
3305 | fi | |
3306 | if test -z "$CPP"; then | |
3307 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3309 | else | |
3310 | # Double quotes because CPP needs to be expanded | |
3311 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3312 | do | |
3313 | ac_preproc_ok=false | |
3314 | for ac_c_preproc_warn_flag in '' yes | |
3315 | do | |
3316 | # Use a header file that comes with gcc, so configuring glibc | |
3317 | # with a fresh cross-compiler works. | |
3318 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3319 | # not just through cpp. "Syntax error" is here to catch this case. | |
3320 | cat >conftest.$ac_ext <<_ACEOF | |
3321 | #line $LINENO "configure" | |
5c2a0669 UD |
3322 | #include "confdefs.h" |
3323 | #include <assert.h> | |
3a12e572 UD |
3324 | Syntax error |
3325 | _ACEOF | |
3326 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3327 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3328 | ac_status=$? | |
f4b07664 | 3329 | grep -v '^ *+' conftest.er1 >conftest.err |
3a12e572 UD |
3330 | rm -f conftest.er1 |
3331 | cat conftest.err >&5 | |
3332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3333 | (exit $ac_status); } >/dev/null; then | |
3334 | if test -s conftest.err; then | |
3335 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3336 | else | |
3337 | ac_cpp_err= | |
3338 | fi | |
3339 | else | |
3340 | ac_cpp_err=yes | |
3341 | fi | |
3342 | if test -z "$ac_cpp_err"; then | |
cd6ede75 UD |
3343 | : |
3344 | else | |
3a12e572 | 3345 | echo "$as_me: failed program was:" >&5 |
cd6ede75 | 3346 | cat conftest.$ac_ext >&5 |
3a12e572 UD |
3347 | # Broken: fails on valid input. |
3348 | continue | |
cd6ede75 | 3349 | fi |
3a12e572 UD |
3350 | rm -f conftest.err conftest.$ac_ext |
3351 | ||
3352 | # OK, works on sane cases. Now check whether non-existent headers | |
3353 | # can be detected and how. | |
3354 | cat >conftest.$ac_ext <<_ACEOF | |
3355 | #line $LINENO "configure" | |
3356 | #include "confdefs.h" | |
3357 | #include <ac_nonexistent.h> | |
3358 | _ACEOF | |
3359 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3360 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3361 | ac_status=$? | |
f4b07664 | 3362 | grep -v '^ *+' conftest.er1 >conftest.err |
3a12e572 UD |
3363 | rm -f conftest.er1 |
3364 | cat conftest.err >&5 | |
3365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3366 | (exit $ac_status); } >/dev/null; then | |
3367 | if test -s conftest.err; then | |
3368 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3369 | else | |
3370 | ac_cpp_err= | |
3371 | fi | |
3372 | else | |
3373 | ac_cpp_err=yes | |
cd6ede75 | 3374 | fi |
3a12e572 UD |
3375 | if test -z "$ac_cpp_err"; then |
3376 | # Broken: success on invalid input. | |
3377 | continue | |
3378 | else | |
3379 | echo "$as_me: failed program was:" >&5 | |
3380 | cat conftest.$ac_ext >&5 | |
3381 | # Passes both tests. | |
3382 | ac_preproc_ok=: | |
3383 | break | |
5c2a0669 | 3384 | fi |
3a12e572 UD |
3385 | rm -f conftest.err conftest.$ac_ext |
3386 | ||
3387 | done | |
3388 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3389 | rm -f conftest.err conftest.$ac_ext | |
3390 | if $ac_preproc_ok; then | |
3391 | break | |
3392 | fi | |
3393 | ||
3394 | done | |
3395 | ac_cv_prog_CPP=$CPP | |
3396 | ||
3397 | fi | |
3398 | CPP=$ac_cv_prog_CPP | |
3399 | else | |
3400 | ac_cv_prog_CPP=$CPP | |
3401 | fi | |
3402 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
3403 | echo "${ECHO_T}$CPP" >&6 | |
3404 | ac_preproc_ok=false | |
3405 | for ac_c_preproc_warn_flag in '' yes | |
3406 | do | |
3407 | # Use a header file that comes with gcc, so configuring glibc | |
3408 | # with a fresh cross-compiler works. | |
3409 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3410 | # not just through cpp. "Syntax error" is here to catch this case. | |
3411 | cat >conftest.$ac_ext <<_ACEOF | |
3412 | #line $LINENO "configure" | |
3413 | #include "confdefs.h" | |
3414 | #include <assert.h> | |
3415 | Syntax error | |
3416 | _ACEOF | |
3417 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3418 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3419 | ac_status=$? | |
f4b07664 | 3420 | grep -v '^ *+' conftest.er1 >conftest.err |
3a12e572 UD |
3421 | rm -f conftest.er1 |
3422 | cat conftest.err >&5 | |
3423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3424 | (exit $ac_status); } >/dev/null; then | |
3425 | if test -s conftest.err; then | |
3426 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3427 | else | |
3428 | ac_cpp_err= | |
3429 | fi | |
3430 | else | |
3431 | ac_cpp_err=yes | |
3432 | fi | |
3433 | if test -z "$ac_cpp_err"; then | |
3434 | : | |
3435 | else | |
3436 | echo "$as_me: failed program was:" >&5 | |
3437 | cat conftest.$ac_ext >&5 | |
3438 | # Broken: fails on valid input. | |
3439 | continue | |
3440 | fi | |
3441 | rm -f conftest.err conftest.$ac_ext | |
3442 | ||
3443 | # OK, works on sane cases. Now check whether non-existent headers | |
3444 | # can be detected and how. | |
3445 | cat >conftest.$ac_ext <<_ACEOF | |
3446 | #line $LINENO "configure" | |
3447 | #include "confdefs.h" | |
3448 | #include <ac_nonexistent.h> | |
3449 | _ACEOF | |
3450 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3451 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3452 | ac_status=$? | |
f4b07664 | 3453 | grep -v '^ *+' conftest.er1 >conftest.err |
3a12e572 UD |
3454 | rm -f conftest.er1 |
3455 | cat conftest.err >&5 | |
3456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3457 | (exit $ac_status); } >/dev/null; then | |
3458 | if test -s conftest.err; then | |
3459 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3460 | else | |
3461 | ac_cpp_err= | |
3462 | fi | |
3463 | else | |
3464 | ac_cpp_err=yes | |
3465 | fi | |
3466 | if test -z "$ac_cpp_err"; then | |
3467 | # Broken: success on invalid input. | |
3468 | continue | |
3469 | else | |
3470 | echo "$as_me: failed program was:" >&5 | |
3471 | cat conftest.$ac_ext >&5 | |
3472 | # Passes both tests. | |
3473 | ac_preproc_ok=: | |
3474 | break | |
cd6ede75 | 3475 | fi |
3a12e572 UD |
3476 | rm -f conftest.err conftest.$ac_ext |
3477 | ||
3478 | done | |
3479 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3480 | rm -f conftest.err conftest.$ac_ext | |
3481 | if $ac_preproc_ok; then | |
3482 | : | |
cd6ede75 | 3483 | else |
3a12e572 UD |
3484 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
3485 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} | |
3486 | { (exit 1); exit 1; }; } | |
cd6ede75 | 3487 | fi |
3a12e572 UD |
3488 | |
3489 | ac_ext=c | |
3490 | ac_cpp='$CPP $CPPFLAGS' | |
3491 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3492 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3493 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
cd6ede75 | 3494 | |
650425ce UD |
3495 | # Was a --with-binutils option given? |
3496 | if test -n "$path_binutils"; then | |
3497 | # Make absolute; ensure a single trailing slash. | |
3498 | path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'` | |
63bda0c1 | 3499 | CC="$CC -B$path_binutils" |
650425ce | 3500 | fi |
27a5bb33 UD |
3501 | AS=`$CC -print-prog-name=as` |
3502 | LD=`$CC -print-prog-name=ld` | |
5edb9387 | 3503 | AR=`$CC -print-prog-name=ar` |
cd6ede75 | 3504 | |
6e3d59bc RM |
3505 | OBJDUMP=`$CC -print-prog-name=objdump` |
3506 | ||
cd6ede75 | 3507 | |
5edb9387 | 3508 | # ranlib has to be treated a bit differently since it might not exist at all. |
5bbfc1ea RM |
3509 | ac_ranlib=`$CC -print-prog-name=ranlib` |
3510 | if test "x$ac_ranlib" = xranlib; then | |
5edb9387 UD |
3511 | # This extra check has to happen since gcc simply echos the parameter in |
3512 | # case it cannot find the value in its own directories. | |
3a12e572 UD |
3513 | if test -n "$ac_tool_prefix"; then |
3514 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
cd6ede75 | 3515 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
3a12e572 UD |
3516 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3517 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3518 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 UD |
3520 | else |
3521 | if test -n "$RANLIB"; then | |
3522 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3523 | else | |
3a12e572 UD |
3524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3525 | for as_dir in $PATH | |
3526 | do | |
3527 | IFS=$as_save_IFS | |
3528 | test -z "$as_dir" && as_dir=. | |
3529 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3530 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3531 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3532 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3533 | break 2 | |
3534 | fi | |
3535 | done | |
3536 | done | |
3537 | ||
cd6ede75 UD |
3538 | fi |
3539 | fi | |
3a12e572 | 3540 | RANLIB=$ac_cv_prog_RANLIB |
cd6ede75 | 3541 | if test -n "$RANLIB"; then |
3a12e572 UD |
3542 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3543 | echo "${ECHO_T}$RANLIB" >&6 | |
cd6ede75 | 3544 | else |
3a12e572 UD |
3545 | echo "$as_me:$LINENO: result: no" >&5 |
3546 | echo "${ECHO_T}no" >&6 | |
cd6ede75 UD |
3547 | fi |
3548 | ||
3a12e572 | 3549 | fi |
cd6ede75 | 3550 | if test -z "$ac_cv_prog_RANLIB"; then |
3a12e572 | 3551 | ac_ct_RANLIB=$RANLIB |
cd6ede75 UD |
3552 | # Extract the first word of "ranlib", so it can be a program name with args. |
3553 | set dummy ranlib; ac_word=$2 | |
3a12e572 UD |
3554 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3555 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3556 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 | 3558 | else |
3a12e572 UD |
3559 | if test -n "$ac_ct_RANLIB"; then |
3560 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
cd6ede75 | 3561 | else |
3a12e572 UD |
3562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3563 | for as_dir in $PATH | |
3564 | do | |
3565 | IFS=$as_save_IFS | |
3566 | test -z "$as_dir" && as_dir=. | |
3567 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3568 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3569 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3570 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3571 | break 2 | |
3572 | fi | |
3573 | done | |
3574 | done | |
3575 | ||
3576 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
cd6ede75 UD |
3577 | fi |
3578 | fi | |
3a12e572 UD |
3579 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3580 | if test -n "$ac_ct_RANLIB"; then | |
3581 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3582 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
cd6ede75 | 3583 | else |
3a12e572 UD |
3584 | echo "$as_me:$LINENO: result: no" >&5 |
3585 | echo "${ECHO_T}no" >&6 | |
cd6ede75 UD |
3586 | fi |
3587 | ||
3a12e572 | 3588 | RANLIB=$ac_ct_RANLIB |
cd6ede75 | 3589 | else |
3a12e572 | 3590 | RANLIB="$ac_cv_prog_RANLIB" |
cd6ede75 UD |
3591 | fi |
3592 | ||
5bbfc1ea RM |
3593 | else |
3594 | RANLIB=$ac_ranlib | |
5edb9387 UD |
3595 | fi |
3596 | ||
3597 | ||
3598 | # Determine whether we are using GNU binutils. | |
3a12e572 UD |
3599 | echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5 |
3600 | echo $ECHO_N "checking whether $AS is GNU as... $ECHO_C" >&6 | |
3601 | if test "${libc_cv_prog_as_gnu+set}" = set; then | |
3602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5edb9387 UD |
3603 | else |
3604 | # Most GNU programs take a -v and spit out some text including | |
3605 | # the word 'GNU'. Some try to read stdin, so give them /dev/null. | |
3606 | if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then | |
3607 | libc_cv_prog_as_gnu=yes | |
3608 | else | |
3609 | libc_cv_prog_as_gnu=no | |
3610 | fi | |
3611 | rm -fr contest* | |
3612 | fi | |
3a12e572 UD |
3613 | echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5 |
3614 | echo "${ECHO_T}$libc_cv_prog_as_gnu" >&6 | |
5edb9387 UD |
3615 | rm -f a.out |
3616 | gnu_as=$libc_cv_prog_as_gnu | |
3617 | ||
3a12e572 UD |
3618 | echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5 |
3619 | echo $ECHO_N "checking whether $LD is GNU ld... $ECHO_C" >&6 | |
3620 | if test "${libc_cv_prog_ld_gnu+set}" = set; then | |
3621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5edb9387 UD |
3622 | else |
3623 | # Most GNU programs take a -v and spit out some text including | |
3624 | # the word 'GNU'. Some try to read stdin, so give them /dev/null. | |
3625 | if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then | |
3626 | libc_cv_prog_ld_gnu=yes | |
3627 | else | |
3628 | libc_cv_prog_ld_gnu=no | |
3629 | fi | |
3630 | rm -fr contest* | |
3631 | fi | |
3a12e572 UD |
3632 | echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5 |
3633 | echo "${ECHO_T}$libc_cv_prog_ld_gnu" >&6 | |
5edb9387 UD |
3634 | gnu_ld=$libc_cv_prog_ld_gnu |
3635 | ||
cd6ede75 | 3636 | |
c4d23330 RM |
3637 | # Accept binutils 2.13 or newer. |
3638 | for ac_prog in $AS | |
3639 | do | |
3640 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3641 | set dummy $ac_prog; ac_word=$2 | |
3642 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3643 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3644 | if test "${ac_cv_prog_AS+set}" = set; then | |
3645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3646 | else | |
3647 | if test -n "$AS"; then | |
3648 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
3649 | else | |
3650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3651 | for as_dir in $PATH | |
3652 | do | |
3653 | IFS=$as_save_IFS | |
3654 | test -z "$as_dir" && as_dir=. | |
3655 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3656 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3657 | ac_cv_prog_AS="$ac_prog" | |
3658 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3659 | break 2 | |
3660 | fi | |
3661 | done | |
3662 | done | |
3663 | ||
3664 | fi | |
3665 | fi | |
3666 | AS=$ac_cv_prog_AS | |
3667 | if test -n "$AS"; then | |
3668 | echo "$as_me:$LINENO: result: $AS" >&5 | |
3669 | echo "${ECHO_T}$AS" >&6 | |
3670 | else | |
3671 | echo "$as_me:$LINENO: result: no" >&5 | |
3672 | echo "${ECHO_T}no" >&6 | |
3673 | fi | |
3674 | ||
3675 | test -n "$AS" && break | |
3676 | done | |
3677 | ||
3678 | if test -z "$AS"; then | |
3679 | ac_verc_fail=yes | |
3680 | else | |
3681 | # Found it, now check the version. | |
3682 | echo "$as_me:$LINENO: checking version of $AS" >&5 | |
3683 | echo $ECHO_N "checking version of $AS... $ECHO_C" >&6 | |
3684 | ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'` | |
3685 | case $ac_prog_version in | |
3686 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
3687 | 2.1[3-9]*) | |
3688 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
3689 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
3690 | ||
3691 | esac | |
3692 | echo "$as_me:$LINENO: result: $ac_prog_version" >&5 | |
3693 | echo "${ECHO_T}$ac_prog_version" >&6 | |
3694 | fi | |
3695 | if test $ac_verc_fail = yes; then | |
3696 | AS=: critic_missing=t | |
3697 | fi | |
3698 | ||
3699 | for ac_prog in $LD | |
3700 | do | |
3701 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3702 | set dummy $ac_prog; ac_word=$2 | |
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_LD+set}" = set; then | |
3706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3707 | else | |
3708 | if test -n "$LD"; then | |
3709 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
3710 | else | |
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_LD="$ac_prog" | |
3719 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3720 | break 2 | |
3721 | fi | |
3722 | done | |
3723 | done | |
3724 | ||
3725 | fi | |
3726 | fi | |
3727 | LD=$ac_cv_prog_LD | |
3728 | if test -n "$LD"; then | |
3729 | echo "$as_me:$LINENO: result: $LD" >&5 | |
3730 | echo "${ECHO_T}$LD" >&6 | |
3731 | else | |
3732 | echo "$as_me:$LINENO: result: no" >&5 | |
3733 | echo "${ECHO_T}no" >&6 | |
3734 | fi | |
3735 | ||
3736 | test -n "$LD" && break | |
3737 | done | |
3738 | ||
3739 | if test -z "$LD"; then | |
3740 | ac_verc_fail=yes | |
3741 | else | |
3742 | # Found it, now check the version. | |
3743 | echo "$as_me:$LINENO: checking version of $LD" >&5 | |
3744 | echo $ECHO_N "checking version of $LD... $ECHO_C" >&6 | |
3745 | ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'` | |
3746 | case $ac_prog_version in | |
3747 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
3748 | 2.1[3-9]*) | |
3749 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
3750 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
3751 | ||
3752 | esac | |
3753 | echo "$as_me:$LINENO: result: $ac_prog_version" >&5 | |
3754 | echo "${ECHO_T}$ac_prog_version" >&6 | |
3755 | fi | |
3756 | if test $ac_verc_fail = yes; then | |
3757 | LD=: critic_missing=t | |
3758 | fi | |
3759 | ||
ea9f119b | 3760 | |
3a12e572 | 3761 | test -n "$aux_missing" && { echo "$as_me:$LINENO: WARNING: |
9c6fffc0 | 3762 | *** These auxiliary programs are missing or incompatible versions:$aux_missing |
ea9f119b | 3763 | *** some features will be disabled. |
3a12e572 UD |
3764 | *** Check the INSTALL file for required versions." >&5 |
3765 | echo "$as_me: WARNING: | |
3766 | *** These auxiliary programs are missing or incompatible versions:$aux_missing | |
3767 | *** some features will be disabled. | |
3768 | *** Check the INSTALL file for required versions." >&2;} | |
ea9f119b AJ |
3769 | |
3770 | # glibcbug.in wants to know the compiler version. | |
3771 | CCVERSION=`$CC -v 2>&1 | sed -n 's/gcc version //p'` | |
3772 | ||
3773 | ||
3c720987 UD |
3774 | # if using special system headers, find out the compiler's sekrit |
3775 | # header directory and add that to the list. NOTE: Only does the right | |
3776 | # thing on a system that doesn't need fixincludes. (Not presently a problem.) | |
3777 | if test -n "$sysheaders"; then | |
3778 | ccheaders=`$CC -print-file-name=include` | |
3779 | SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders" | |
3780 | fi | |
3781 | ||
3782 | ||
f89ac85c | 3783 | # check if ranlib is necessary |
3a12e572 UD |
3784 | echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5 |
3785 | echo $ECHO_N "checking whether ranlib is necessary... $ECHO_C" >&6 | |
3786 | if test "${libc_cv_ranlib_necessary+set}" = set; then | |
3787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f38931a9 | 3788 | else |
f89ac85c UD |
3789 | cat > conftest.c <<EOF |
3790 | int a; | |
3791 | char b; | |
3792 | void c(void) {} | |
3793 | EOF | |
3794 | $CC $CFLAGS -c conftest.c | |
5bbfc1ea | 3795 | $AR cr conftest.a conftest.o |
f89ac85c UD |
3796 | cp conftest.a conftest2.a |
3797 | $RANLIB conftest.a | |
3798 | if cmp -s conftest.a conftest2.a; then | |
3799 | libc_cv_ranlib_necessary=no | |
f38931a9 | 3800 | else |
f89ac85c | 3801 | libc_cv_ranlib_necessary=yes |
f38931a9 | 3802 | fi |
f89ac85c | 3803 | rm -rf conftest* |
f38931a9 | 3804 | fi |
3a12e572 UD |
3805 | echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5 |
3806 | echo "${ECHO_T}$libc_cv_ranlib_necessary" >&6 | |
f89ac85c UD |
3807 | if test "$libc_cv_ranlib_necessary" = no; then |
3808 | RANLIB=: | |
3809 | fi | |
f38931a9 | 3810 | |
3911660e UD |
3811 | # Test if LD_LIBRARY_PATH contains the notation for the current directory |
3812 | # since this would lead to problems installing/building glibc. | |
3813 | # LD_LIBRARY_PATH contains the current directory if one of the following | |
3814 | # is true: | |
3815 | # - one of the terminals (":" and ";") is the first or last sign | |
3816 | # - two terminals occur directly after each other | |
3817 | # - the path contains an element with a dot in it | |
3a12e572 UD |
3818 | echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5 |
3819 | echo $ECHO_N "checking LD_LIBRARY_PATH variable... $ECHO_C" >&6 | |
3911660e UD |
3820 | case ${LD_LIBRARY_PATH} in |
3821 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
b3a86ae1 | 3822 | ld_library_path_setting="contains current directory" |
3911660e UD |
3823 | ;; |
3824 | *) | |
3825 | ld_library_path_setting="ok" | |
3826 | ;; | |
3827 | esac | |
3a12e572 UD |
3828 | echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5 |
3829 | echo "${ECHO_T}$ld_library_path_setting" >&6 | |
3911660e | 3830 | if test "$ld_library_path_setting" != "ok"; then |
3a12e572 UD |
3831 | { { echo "$as_me:$LINENO: error: |
3832 | *** LD_LIBRARY_PATH shouldn't contain the current directory when | |
3833 | *** building glibc. Please change the environment variable | |
3834 | *** and run configure again." >&5 | |
3835 | echo "$as_me: error: | |
63bda0c1 UD |
3836 | *** LD_LIBRARY_PATH shouldn't contain the current directory when |
3837 | *** building glibc. Please change the environment variable | |
3a12e572 UD |
3838 | *** and run configure again." >&2;} |
3839 | { (exit 1); exit 1; }; } | |
3911660e UD |
3840 | fi |
3841 | ||
3a12e572 UD |
3842 | echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5 |
3843 | echo $ECHO_N "checking whether GCC supports -static-libgcc... $ECHO_C" >&6 | |
3844 | if test "${libc_cv_gcc_static_libgcc+set}" = set; then | |
3845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
74bd2300 UD |
3846 | else |
3847 | if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then | |
3848 | libc_cv_gcc_static_libgcc= | |
3849 | else | |
3850 | libc_cv_gcc_static_libgcc=-static-libgcc | |
3851 | fi | |
3852 | fi | |
3a12e572 UD |
3853 | echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5 |
3854 | echo "${ECHO_T}$libc_cv_gcc_static_libgcc" >&6 | |
74bd2300 UD |
3855 | |
3856 | ||
cd6ede75 UD |
3857 | # Extract the first word of "bash", so it can be a program name with args. |
3858 | set dummy bash; ac_word=$2 | |
3a12e572 UD |
3859 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3860 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3861 | if test "${ac_cv_path_BASH+set}" = set; then | |
3862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 | 3863 | else |
3a12e572 UD |
3864 | case $BASH in |
3865 | [\\/]* | ?:[\\/]*) | |
cd6ede75 UD |
3866 | ac_cv_path_BASH="$BASH" # Let the user override the test with a path. |
3867 | ;; | |
3868 | *) | |
3a12e572 UD |
3869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3870 | for as_dir in $PATH | |
3871 | do | |
3872 | IFS=$as_save_IFS | |
3873 | test -z "$as_dir" && as_dir=. | |
3874 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3875 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3876 | ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" | |
3877 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3878 | break 2 | |
3879 | fi | |
3880 | done | |
3881 | done | |
3882 | ||
cd6ede75 UD |
3883 | test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no" |
3884 | ;; | |
3885 | esac | |
3886 | fi | |
3a12e572 UD |
3887 | BASH=$ac_cv_path_BASH |
3888 | ||
cd6ede75 | 3889 | if test -n "$BASH"; then |
3a12e572 UD |
3890 | echo "$as_me:$LINENO: result: $BASH" >&5 |
3891 | echo "${ECHO_T}$BASH" >&6 | |
cd6ede75 | 3892 | else |
3a12e572 UD |
3893 | echo "$as_me:$LINENO: result: no" >&5 |
3894 | echo "${ECHO_T}no" >&6 | |
cd6ede75 UD |
3895 | fi |
3896 | ||
3897 | if test "$BASH" != no && | |
f43ce637 | 3898 | $BASH -c 'test "$BASH_VERSINFO" \ |
6973fc01 | 3899 | && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then |
cd6ede75 UD |
3900 | libc_cv_have_bash2=yes |
3901 | else | |
3902 | libc_cv_have_bash2=no | |
3903 | fi | |
3904 | ||
3905 | ||
3906 | if test "$BASH" = no; then | |
3907 | # Extract the first word of "ksh", so it can be a program name with args. | |
3908 | set dummy ksh; ac_word=$2 | |
3a12e572 UD |
3909 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3910 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3911 | if test "${ac_cv_path_KSH+set}" = set; then | |
3912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 | 3913 | else |
3a12e572 UD |
3914 | case $KSH in |
3915 | [\\/]* | ?:[\\/]*) | |
cd6ede75 UD |
3916 | ac_cv_path_KSH="$KSH" # Let the user override the test with a path. |
3917 | ;; | |
3918 | *) | |
3a12e572 UD |
3919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3920 | for as_dir in $PATH | |
3921 | do | |
3922 | IFS=$as_save_IFS | |
3923 | test -z "$as_dir" && as_dir=. | |
3924 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3925 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3926 | ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext" | |
3927 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3928 | break 2 | |
3929 | fi | |
3930 | done | |
3931 | done | |
3932 | ||
cd6ede75 UD |
3933 | test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no" |
3934 | ;; | |
3935 | esac | |
3936 | fi | |
3a12e572 UD |
3937 | KSH=$ac_cv_path_KSH |
3938 | ||
cd6ede75 | 3939 | if test -n "$KSH"; then |
3a12e572 UD |
3940 | echo "$as_me:$LINENO: result: $KSH" >&5 |
3941 | echo "${ECHO_T}$KSH" >&6 | |
cd6ede75 | 3942 | else |
3a12e572 UD |
3943 | echo "$as_me:$LINENO: result: no" >&5 |
3944 | echo "${ECHO_T}no" >&6 | |
cd6ede75 UD |
3945 | fi |
3946 | ||
3947 | if test "$KSH" = no; then | |
3948 | libc_cv_have_ksh=no | |
3949 | else | |
3950 | libc_cv_have_ksh=yes | |
3951 | fi | |
3952 | else | |
3953 | KSH="$BASH" | |
3a12e572 | 3954 | |
cd6ede75 UD |
3955 | libc_cv_have_ksh=yes |
3956 | fi | |
3957 | ||
3958 | ||
a8c01776 | 3959 | for ac_prog in gawk mawk nawk awk |
a2b08ee5 | 3960 | do |
3a12e572 | 3961 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a2b08ee5 | 3962 | set dummy $ac_prog; ac_word=$2 |
3a12e572 UD |
3963 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3964 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3965 | if test "${ac_cv_prog_AWK+set}" = set; then | |
3966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5aa8ff62 UD |
3967 | else |
3968 | if test -n "$AWK"; then | |
3969 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3970 | else | |
3a12e572 UD |
3971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3972 | for as_dir in $PATH | |
3973 | do | |
3974 | IFS=$as_save_IFS | |
3975 | test -z "$as_dir" && as_dir=. | |
3976 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3977 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3978 | ac_cv_prog_AWK="$ac_prog" | |
3979 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3980 | break 2 | |
3981 | fi | |
3982 | done | |
3983 | done | |
3984 | ||
5aa8ff62 UD |
3985 | fi |
3986 | fi | |
3a12e572 | 3987 | AWK=$ac_cv_prog_AWK |
5aa8ff62 | 3988 | if test -n "$AWK"; then |
3a12e572 UD |
3989 | echo "$as_me:$LINENO: result: $AWK" >&5 |
3990 | echo "${ECHO_T}$AWK" >&6 | |
5aa8ff62 | 3991 | else |
3a12e572 UD |
3992 | echo "$as_me:$LINENO: result: no" >&5 |
3993 | echo "${ECHO_T}no" >&6 | |
5aa8ff62 UD |
3994 | fi |
3995 | ||
3a12e572 | 3996 | test -n "$AWK" && break |
5aa8ff62 UD |
3997 | done |
3998 | ||
c0016081 UD |
3999 | # Extract the first word of "perl", so it can be a program name with args. |
4000 | set dummy perl; ac_word=$2 | |
3a12e572 UD |
4001 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4002 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4003 | if test "${ac_cv_path_PERL+set}" = set; then | |
4004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a2b08ee5 | 4005 | else |
3a12e572 UD |
4006 | case $PERL in |
4007 | [\\/]* | ?:[\\/]*) | |
a2b08ee5 UD |
4008 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
4009 | ;; | |
4010 | *) | |
3a12e572 UD |
4011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4012 | for as_dir in $PATH | |
4013 | do | |
4014 | IFS=$as_save_IFS | |
4015 | test -z "$as_dir" && as_dir=. | |
4016 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4017 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4018 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | |
4019 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4020 | break 2 | |
4021 | fi | |
4022 | done | |
4023 | done | |
4024 | ||
c0016081 | 4025 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no" |
a2b08ee5 UD |
4026 | ;; |
4027 | esac | |
4028 | fi | |
3a12e572 UD |
4029 | PERL=$ac_cv_path_PERL |
4030 | ||
a2b08ee5 | 4031 | if test -n "$PERL"; then |
3a12e572 UD |
4032 | echo "$as_me:$LINENO: result: $PERL" >&5 |
4033 | echo "${ECHO_T}$PERL" >&6 | |
a2b08ee5 | 4034 | else |
3a12e572 UD |
4035 | echo "$as_me:$LINENO: result: no" >&5 |
4036 | echo "${ECHO_T}no" >&6 | |
a2b08ee5 UD |
4037 | fi |
4038 | ||
2fd5d029 RM |
4039 | if test "$PERL" != no && |
4040 | (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then | |
4041 | PERL=no | |
fc304e02 | 4042 | fi |
c0016081 UD |
4043 | # Extract the first word of "install-info", so it can be a program name with args. |
4044 | set dummy install-info; ac_word=$2 | |
3a12e572 UD |
4045 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4046 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4047 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then | |
4048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0016081 | 4049 | else |
3a12e572 UD |
4050 | case $INSTALL_INFO in |
4051 | [\\/]* | ?:[\\/]*) | |
c0016081 UD |
4052 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. |
4053 | ;; | |
4054 | *) | |
3a12e572 | 4055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
f4b07664 RM |
4056 | as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin" |
4057 | for as_dir in $as_dummy | |
3a12e572 UD |
4058 | do |
4059 | IFS=$as_save_IFS | |
4060 | test -z "$as_dir" && as_dir=. | |
4061 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4062 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4063 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" | |
4064 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4065 | break 2 | |
4066 | fi | |
4067 | done | |
4068 | done | |
4069 | ||
c0016081 UD |
4070 | test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no" |
4071 | ;; | |
4072 | esac | |
4073 | fi | |
3a12e572 UD |
4074 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO |
4075 | ||
c0016081 | 4076 | if test -n "$INSTALL_INFO"; then |
3a12e572 UD |
4077 | echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 |
4078 | echo "${ECHO_T}$INSTALL_INFO" >&6 | |
c0016081 | 4079 | else |
3a12e572 UD |
4080 | echo "$as_me:$LINENO: result: no" >&5 |
4081 | echo "${ECHO_T}no" >&6 | |
c0016081 UD |
4082 | fi |
4083 | ||
c0016081 | 4084 | if test "$INSTALL_INFO" != "no"; then |
3a12e572 UD |
4085 | echo "$as_me:$LINENO: checking for old Debian install-info" >&5 |
4086 | echo $ECHO_N "checking for old Debian install-info... $ECHO_C" >&6 | |
4087 | if test "${libc_cv_old_debian_install_info+set}" = set; then | |
4088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0016081 UD |
4089 | else |
4090 | mkdir conftest.d | |
4091 | # There is a hard ^_ on the next line. I am open to better ideas. | |
4092 | (echo '\1f' | |
4093 | echo 'File: dir Node: Top This is the top of the INFO tree' | |
4094 | echo '* Menu:') >conftest.d/dir | |
4095 | (echo 'INFO-DIR-SECTION i-d-s works' | |
4096 | echo 'START-INFO-DIR-ENTRY' | |
4097 | echo '* Prog: (prog). Program.' | |
4098 | echo 'END-INFO-DIR-ENTRY') >conftest.d/prog.info | |
4099 | if $INSTALL_INFO --info-dir=conftest.d conftest.d/prog.info >&5 2>&1 | |
d8cceb4f | 4100 | then |
c0016081 UD |
4101 | if grep -s 'i-d-s works' conftest.d/dir >/dev/null |
4102 | then libc_cv_old_debian_install_info=no | |
4103 | else libc_cv_old_debian_install_info=yes | |
4104 | fi | |
4105 | else libc_cv_old_debian_install_info=no testfailed=t | |
4106 | fi | |
4107 | rm -fr conftest.d | |
4108 | fi | |
3a12e572 UD |
4109 | echo "$as_me:$LINENO: result: $libc_cv_old_debian_install_info" >&5 |
4110 | echo "${ECHO_T}$libc_cv_old_debian_install_info" >&6 | |
c0016081 | 4111 | if test -n "$testfailed" |
3a12e572 UD |
4112 | then { echo "$as_me:$LINENO: WARNING: install-info errored out, check config.log" >&5 |
4113 | echo "$as_me: WARNING: install-info errored out, check config.log" >&2;} | |
c0016081 UD |
4114 | fi |
4115 | OLD_DEBIAN_INSTALL_INFO=$libc_cv_old_debian_install_info | |
4116 | fi | |
a2b08ee5 UD |
4117 | |
4118 | ||
ae113383 UD |
4119 | # Extract the first word of "bison", so it can be a program name with args. |
4120 | set dummy bison; ac_word=$2 | |
3a12e572 UD |
4121 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4122 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4123 | if test "${ac_cv_path_BISON+set}" = set; then | |
4124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ae113383 | 4125 | else |
3a12e572 UD |
4126 | case $BISON in |
4127 | [\\/]* | ?:[\\/]*) | |
ae113383 UD |
4128 | ac_cv_path_BISON="$BISON" # Let the user override the test with a path. |
4129 | ;; | |
ae113383 | 4130 | *) |
3a12e572 | 4131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
f4b07664 RM |
4132 | as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin" |
4133 | for as_dir in $as_dummy | |
3a12e572 UD |
4134 | do |
4135 | IFS=$as_save_IFS | |
4136 | test -z "$as_dir" && as_dir=. | |
4137 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4138 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4139 | ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext" | |
4140 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4141 | break 2 | |
4142 | fi | |
4143 | done | |
4144 | done | |
4145 | ||
ae113383 UD |
4146 | test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no" |
4147 | ;; | |
4148 | esac | |
4149 | fi | |
3a12e572 UD |
4150 | BISON=$ac_cv_path_BISON |
4151 | ||
ae113383 | 4152 | if test -n "$BISON"; then |
3a12e572 UD |
4153 | echo "$as_me:$LINENO: result: $BISON" >&5 |
4154 | echo "${ECHO_T}$BISON" >&6 | |
ae113383 | 4155 | else |
3a12e572 UD |
4156 | echo "$as_me:$LINENO: result: no" >&5 |
4157 | echo "${ECHO_T}no" >&6 | |
ae113383 UD |
4158 | fi |
4159 | ||
4160 | ||
3a12e572 UD |
4161 | echo "$as_me:$LINENO: checking for signed size_t type" >&5 |
4162 | echo $ECHO_N "checking for signed size_t type... $ECHO_C" >&6 | |
4163 | if test "${libc_cv_signed_size_t+set}" = set; then | |
4164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 UD |
4165 | else |
4166 | echo '#include <stddef.h> | |
4167 | FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c | |
4168 | if eval "$ac_cpp conftest.c 2>/dev/null" \ | |
4169 | | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then | |
4170 | libc_cv_signed_size_t=no | |
4171 | else | |
4172 | libc_cv_signed_size_t=yes | |
4173 | fi | |
4174 | rm -f conftest* | |
4175 | fi | |
3a12e572 UD |
4176 | echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5 |
4177 | echo "${ECHO_T}$libc_cv_signed_size_t" >&6 | |
cd6ede75 UD |
4178 | if test $libc_cv_signed_size_t = yes; then |
4179 | cat >> confdefs.h <<\EOF | |
4180 | #undef __SIZE_TYPE__ | |
4181 | #define __SIZE_TYPE__ unsigned | |
4182 | EOF | |
4183 | fi | |
4184 | ||
f4b07664 | 4185 | |
3a12e572 UD |
4186 | echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5 |
4187 | echo $ECHO_N "checking for libc-friendly stddef.h... $ECHO_C" >&6 | |
4188 | if test "${libc_cv_friendly_stddef+set}" = set; then | |
4189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 | 4190 | else |
f4b07664 | 4191 | cat >conftest.$ac_ext <<_ACEOF |
3a12e572 | 4192 | #line $LINENO "configure" |
cd6ede75 UD |
4193 | #include "confdefs.h" |
4194 | #define __need_size_t | |
4195 | #define __need_wchar_t | |
4196 | #include <stddef.h> | |
4197 | #define __need_NULL | |
4198 | #include <stddef.h> | |
3a12e572 UD |
4199 | int |
4200 | main () | |
4201 | { | |
cd6ede75 UD |
4202 | size_t size; wchar_t wchar; |
4203 | #ifdef offsetof | |
4204 | #error stddef.h ignored __need_* | |
4205 | #endif | |
4206 | if (&size == NULL || &wchar == NULL) abort (); | |
3a12e572 UD |
4207 | ; |
4208 | return 0; | |
4209 | } | |
4210 | _ACEOF | |
4211 | rm -f conftest.$ac_objext | |
4212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4213 | (eval $ac_compile) 2>&5 | |
4214 | ac_status=$? | |
4215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4216 | (exit $ac_status); } && | |
4217 | { ac_try='test -s conftest.$ac_objext' | |
4218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4219 | (eval $ac_try) 2>&5 | |
4220 | ac_status=$? | |
4221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4222 | (exit $ac_status); }; }; then | |
cd6ede75 UD |
4223 | libc_cv_friendly_stddef=yes |
4224 | else | |
3a12e572 UD |
4225 | echo "$as_me: failed program was:" >&5 |
4226 | cat conftest.$ac_ext >&5 | |
4227 | libc_cv_friendly_stddef=no | |
cd6ede75 | 4228 | fi |
3a12e572 | 4229 | rm -f conftest.$ac_objext conftest.$ac_ext |
cd6ede75 | 4230 | fi |
3a12e572 UD |
4231 | echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5 |
4232 | echo "${ECHO_T}$libc_cv_friendly_stddef" >&6 | |
cd6ede75 UD |
4233 | if test $libc_cv_friendly_stddef = yes; then |
4234 | config_vars="$config_vars | |
4235 | override stddef.h = # The installed <stddef.h> seems to be libc-friendly." | |
4236 | fi | |
4237 | ||
3a12e572 UD |
4238 | echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5 |
4239 | echo $ECHO_N "checking whether we need to use -P to assemble .S files... $ECHO_C" >&6 | |
4240 | if test "${libc_cv_need_minus_P+set}" = set; then | |
4241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 UD |
4242 | else |
4243 | cat > conftest.S <<EOF | |
4244 | #include "confdefs.h" | |
4245 | /* Nothing whatsoever. */ | |
4246 | EOF | |
4247 | if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then | |
4248 | libc_cv_need_minus_P=no | |
4249 | else | |
4250 | libc_cv_need_minus_P=yes | |
4251 | fi | |
4252 | rm -f conftest* | |
4253 | fi | |
3a12e572 UD |
4254 | echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5 |
4255 | echo "${ECHO_T}$libc_cv_need_minus_P" >&6 | |
cd6ede75 UD |
4256 | if test $libc_cv_need_minus_P = yes; then |
4257 | config_vars="$config_vars | |
4258 | asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives." | |
4259 | fi | |
4260 | ||
3a12e572 UD |
4261 | echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5 |
4262 | echo $ECHO_N "checking whether .text pseudo-op must be used... $ECHO_C" >&6 | |
4263 | if test "${libc_cv_dot_text+set}" = set; then | |
4264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2293395f UD |
4265 | else |
4266 | cat > conftest.s <<EOF | |
4267 | .text | |
4268 | EOF | |
4269 | libc_cv_dot_text= | |
4270 | if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then | |
4271 | libc_cv_dot_text=.text | |
4272 | fi | |
4273 | rm -f conftest* | |
4274 | fi | |
4275 | ||
4276 | if test -z "$libc_cv_dot_text"; then | |
3a12e572 UD |
4277 | echo "$as_me:$LINENO: result: no" >&5 |
4278 | echo "${ECHO_T}no" >&6 | |
2293395f | 4279 | else |
3a12e572 UD |
4280 | echo "$as_me:$LINENO: result: yes" >&5 |
4281 | echo "${ECHO_T}yes" >&6 | |
2293395f UD |
4282 | fi |
4283 | ||
3a12e572 UD |
4284 | echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5 |
4285 | echo $ECHO_N "checking for assembler global-symbol directive... $ECHO_C" >&6 | |
4286 | if test "${libc_cv_asm_global_directive+set}" = set; then | |
4287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 UD |
4288 | else |
4289 | libc_cv_asm_global_directive=UNKNOWN | |
908c3d5b | 4290 | for ac_globl in .globl .global .EXPORT; do |
cd6ede75 | 4291 | cat > conftest.s <<EOF |
2293395f | 4292 | ${libc_cv_dot_text} |
908c3d5b | 4293 | ${ac_globl} foo |
cd6ede75 UD |
4294 | foo: |
4295 | EOF | |
4296 | if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then | |
4297 | libc_cv_asm_global_directive=${ac_globl} | |
4298 | fi | |
4299 | rm -f conftest* | |
4300 | test $libc_cv_asm_global_directive != UNKNOWN && break | |
4301 | done | |
4302 | fi | |
3a12e572 UD |
4303 | echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5 |
4304 | echo "${ECHO_T}$libc_cv_asm_global_directive" >&6 | |
cd6ede75 | 4305 | if test $libc_cv_asm_global_directive = UNKNOWN; then |
3a12e572 UD |
4306 | { { echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5 |
4307 | echo "$as_me: error: cannot determine asm global directive" >&2;} | |
4308 | { (exit 1); exit 1; }; } | |
cd6ede75 | 4309 | else |
3a12e572 | 4310 | cat >>confdefs.h <<_ACEOF |
cd6ede75 | 4311 | #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive} |
3a12e572 | 4312 | _ACEOF |
cd6ede75 UD |
4313 | |
4314 | fi | |
4315 | ||
3a12e572 UD |
4316 | echo "$as_me:$LINENO: checking for .set assembler directive" >&5 |
4317 | echo $ECHO_N "checking for .set assembler directive... $ECHO_C" >&6 | |
4318 | if test "${libc_cv_asm_set_directive+set}" = set; then | |
4319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 UD |
4320 | else |
4321 | cat > conftest.s <<EOF | |
2293395f | 4322 | ${libc_cv_dot_text} |
cd6ede75 UD |
4323 | foo: |
4324 | .set glibc_conftest_frobozz,foo | |
4325 | $libc_cv_asm_global_directive glibc_conftest_frobozz | |
4326 | EOF | |
4327 | # The alpha-dec-osf1 assembler gives only a warning for `.set' | |
4328 | # (but it doesn't work), so we must do a linking check to be sure. | |
4329 | cat > conftest1.c <<\EOF | |
4330 | extern int glibc_conftest_frobozz; | |
4331 | main () { printf ("%d\n", glibc_conftest_frobozz); } | |
4332 | EOF | |
4333 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
4334 | -o conftest conftest.s conftest1.c 1>&5 2>&5; then | |
4335 | libc_cv_asm_set_directive=yes | |
4336 | else | |
4337 | libc_cv_asm_set_directive=no | |
4338 | fi | |
4339 | rm -f conftest* | |
4340 | fi | |
3a12e572 UD |
4341 | echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5 |
4342 | echo "${ECHO_T}$libc_cv_asm_set_directive" >&6 | |
cd6ede75 | 4343 | if test $libc_cv_asm_set_directive = yes; then |
3a12e572 | 4344 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 4345 | #define HAVE_ASM_SET_DIRECTIVE 1 |
3a12e572 | 4346 | _ACEOF |
cd6ede75 UD |
4347 | |
4348 | fi | |
4349 | ||
3a12e572 UD |
4350 | echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5 |
4351 | echo $ECHO_N "checking for assembler .type directive prefix... $ECHO_C" >&6 | |
4352 | if test "${libc_cv_asm_type_prefix+set}" = set; then | |
4353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b88ac073 RM |
4354 | else |
4355 | libc_cv_asm_type_prefix=no | |
4356 | for ac_try_prefix in '@' '%' '#'; do | |
4357 | cat > conftest.s <<EOF | |
4358 | ${libc_cv_dot_text} | |
4359 | ${libc_cv_asm_global_directive} foo | |
4360 | .type foo, ${ac_try_prefix}object | |
4361 | .size foo, 1 | |
4362 | foo: | |
4363 | .byte 1 | |
4364 | EOF | |
4365 | if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then | |
4366 | libc_cv_asm_type_prefix=${ac_try_prefix} | |
4367 | fi | |
4368 | rm -f conftest* | |
4369 | test "x$libc_cv_asm_type_prefix" != xno && break | |
4370 | done | |
4371 | fi | |
3a12e572 UD |
4372 | echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5 |
4373 | echo "${ECHO_T}$libc_cv_asm_type_prefix" >&6 | |
b88ac073 | 4374 | if test "x$libc_cv_asm_type_prefix" != xno; then |
3a12e572 | 4375 | cat >>confdefs.h <<_ACEOF |
b88ac073 | 4376 | #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix} |
3a12e572 | 4377 | _ACEOF |
b88ac073 RM |
4378 | |
4379 | fi | |
4380 | ||
2aa15430 | 4381 | # The Aix ld uses global .symbol_names instead of symbol_names. |
a8a20be0 UD |
4382 | # Unfortunately also used in the PPC64 ELF ABI. |
4383 | case "${os}${machine}" in | |
4384 | aix4.3* | linux*powerpc/powerpc64*) | |
3a12e572 | 4385 | cat >>confdefs.h <<\_ACEOF |
2aa15430 | 4386 | #define HAVE_ASM_GLOBAL_DOT_NAME 1 |
3a12e572 | 4387 | _ACEOF |
2aa15430 UD |
4388 | |
4389 | esac | |
4390 | ||
3a12e572 UD |
4391 | echo "$as_me:$LINENO: checking for .symver assembler directive" >&5 |
4392 | echo $ECHO_N "checking for .symver assembler directive... $ECHO_C" >&6 | |
4393 | if test "${libc_cv_asm_symver_directive+set}" = set; then | |
4394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 UD |
4395 | else |
4396 | cat > conftest.s <<EOF | |
2293395f | 4397 | ${libc_cv_dot_text} |
cd6ede75 UD |
4398 | _sym: |
4399 | .symver _sym,sym@VERS | |
4400 | EOF | |
4401 | if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then | |
4402 | libc_cv_asm_symver_directive=yes | |
4403 | else | |
4404 | libc_cv_asm_symver_directive=no | |
4405 | fi | |
4406 | rm -f conftest* | |
4407 | fi | |
3a12e572 UD |
4408 | echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5 |
4409 | echo "${ECHO_T}$libc_cv_asm_symver_directive" >&6 | |
4410 | echo "$as_me:$LINENO: checking for ld --version-script" >&5 | |
4411 | echo $ECHO_N "checking for ld --version-script... $ECHO_C" >&6 | |
4412 | if test "${libc_cv_ld_version_script_option+set}" = set; then | |
4413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 UD |
4414 | else |
4415 | if test $libc_cv_asm_symver_directive = yes; then | |
4416 | cat > conftest.s <<EOF | |
2293395f | 4417 | ${libc_cv_dot_text} |
cd6ede75 UD |
4418 | _sym: |
4419 | .symver _sym,sym@VERS | |
4420 | EOF | |
4421 | cat > conftest.map <<EOF | |
f43ce637 | 4422 | VERS_1 { |
cd6ede75 UD |
4423 | global: sym; |
4424 | }; | |
f43ce637 UD |
4425 | |
4426 | VERS_2 { | |
4427 | global: sym; | |
4428 | } VERS_1; | |
cd6ede75 UD |
4429 | EOF |
4430 | if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then | |
4431 | if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o | |
4432 | -nostartfiles -nostdlib | |
4433 | -Wl,--version-script,conftest.map | |
3a12e572 UD |
4434 | 1>&5' |
4435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4436 | (eval $ac_try) 2>&5 | |
4437 | ac_status=$? | |
4438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4439 | (exit $ac_status); }; }; | |
cd6ede75 UD |
4440 | then |
4441 | libc_cv_ld_version_script_option=yes | |
4442 | else | |
4443 | libc_cv_ld_version_script_option=no | |
4444 | fi | |
4445 | else | |
4446 | libc_cv_ld_version_script_option=no | |
4447 | fi | |
4448 | else | |
4449 | libc_cv_ld_version_script_option=no | |
4450 | fi | |
4451 | rm -f conftest* | |
4452 | fi | |
3a12e572 UD |
4453 | echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5 |
4454 | echo "${ECHO_T}$libc_cv_ld_version_script_option" >&6 | |
7499a22a RM |
4455 | if test $shared != no && |
4456 | test $libc_cv_asm_symver_directive = yes && | |
650425ce UD |
4457 | test $libc_cv_ld_version_script_option = yes && |
4458 | test $enable_versioning = yes; then | |
cd6ede75 | 4459 | VERSIONING=yes |
3a12e572 | 4460 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 4461 | #define DO_VERSIONING 1 |
3a12e572 | 4462 | _ACEOF |
cd6ede75 UD |
4463 | |
4464 | else | |
4465 | VERSIONING=no | |
4466 | fi | |
4467 | ||
4468 | ||
22af13de | 4469 | if test $elf = yes && test $shared != no && test $VERSIONING = no; then |
f43ce637 | 4470 | echo "\ |
f4017d20 | 4471 | *** WARNING: You should not compile GNU libc without versioning. Not using |
f43ce637 UD |
4472 | *** versioning will introduce incompatibilities so that old binaries |
4473 | *** will not run anymore. | |
08a0d60a | 4474 | *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)." |
f43ce637 | 4475 | fi |
cd6ede75 | 4476 | if test $elf = yes; then |
3a12e572 UD |
4477 | echo "$as_me:$LINENO: checking for .previous assembler directive" >&5 |
4478 | echo $ECHO_N "checking for .previous assembler directive... $ECHO_C" >&6 | |
4479 | if test "${libc_cv_asm_previous_directive+set}" = set; then | |
4480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 UD |
4481 | else |
4482 | cat > conftest.s <<EOF | |
4483 | .section foo_section | |
4484 | .previous | |
4485 | EOF | |
3a12e572 UD |
4486 | if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5' |
4487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4488 | (eval $ac_try) 2>&5 | |
4489 | ac_status=$? | |
4490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4491 | (exit $ac_status); }; }; then | |
cd6ede75 UD |
4492 | libc_cv_asm_previous_directive=yes |
4493 | else | |
4494 | libc_cv_asm_previous_directive=no | |
4495 | fi | |
4496 | rm -f conftest* | |
4497 | fi | |
3a12e572 UD |
4498 | echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5 |
4499 | echo "${ECHO_T}$libc_cv_asm_previous_directive" >&6 | |
cd6ede75 | 4500 | if test $libc_cv_asm_previous_directive = yes; then |
3a12e572 | 4501 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 4502 | #define HAVE_ASM_PREVIOUS_DIRECTIVE 1 |
3a12e572 | 4503 | _ACEOF |
cd6ede75 UD |
4504 | |
4505 | else | |
3a12e572 UD |
4506 | echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5 |
4507 | echo $ECHO_N "checking for .popsection assembler directive... $ECHO_C" >&6 | |
4508 | if test "${libc_cv_asm_popsection_directive+set}" = set; then | |
4509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 UD |
4510 | else |
4511 | cat > conftest.s <<EOF | |
4512 | .pushsection foo_section | |
4513 | .popsection | |
4514 | EOF | |
3a12e572 UD |
4515 | if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5' |
4516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4517 | (eval $ac_try) 2>&5 | |
4518 | ac_status=$? | |
4519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4520 | (exit $ac_status); }; }; then | |
cd6ede75 UD |
4521 | libc_cv_asm_popsection_directive=yes |
4522 | else | |
4523 | libc_cv_asm_popsection_directive=no | |
4524 | fi | |
4525 | rm -f conftest* | |
4526 | fi | |
3a12e572 UD |
4527 | echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5 |
4528 | echo "${ECHO_T}$libc_cv_asm_popsection_directive" >&6 | |
cd6ede75 | 4529 | if test $libc_cv_asm_popsection_directive = yes; then |
3a12e572 | 4530 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 4531 | #define HAVE_ASM_POPSECTION_DIRECTIVE 1 |
3a12e572 | 4532 | _ACEOF |
cd6ede75 UD |
4533 | |
4534 | fi | |
4535 | fi | |
3a12e572 UD |
4536 | echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5 |
4537 | echo $ECHO_N "checking for .protected and .hidden assembler directive... $ECHO_C" >&6 | |
4538 | if test "${libc_cv_asm_protected_directive+set}" = set; then | |
4539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2d499f55 UD |
4540 | else |
4541 | cat > conftest.s <<EOF | |
4542 | .protected foo | |
4543 | foo: | |
4544 | .hidden bar | |
4545 | bar: | |
4546 | EOF | |
3a12e572 UD |
4547 | if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5' |
4548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4549 | (eval $ac_try) 2>&5 | |
4550 | ac_status=$? | |
4551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4552 | (exit $ac_status); }; }; then | |
2d499f55 UD |
4553 | libc_cv_asm_protected_directive=yes |
4554 | else | |
4555 | libc_cv_asm_protected_directive=no | |
4556 | fi | |
4557 | rm -f conftest* | |
4558 | fi | |
3a12e572 UD |
4559 | echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5 |
4560 | echo "${ECHO_T}$libc_cv_asm_protected_directive" >&6 | |
2d499f55 | 4561 | |
3a12e572 | 4562 | cat >>confdefs.h <<\_ACEOF |
5688da55 | 4563 | #define HAVE_PROTECTED 1 |
3a12e572 | 4564 | _ACEOF |
5688da55 | 4565 | |
3a12e572 | 4566 | cat >>confdefs.h <<\_ACEOF |
9bd64602 | 4567 | #define HAVE_HIDDEN 1 |
3a12e572 | 4568 | _ACEOF |
9bd64602 | 4569 | |
2f54c82d | 4570 | |
0d01dace | 4571 | if test $libc_cv_asm_protected_directive = yes; then |
3a12e572 UD |
4572 | echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5 |
4573 | echo $ECHO_N "checking whether __attribute__((visibility())) is supported... $ECHO_C" >&6 | |
4574 | if test "${libc_cv_visibility_attribute+set}" = set; then | |
4575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0d01dace UD |
4576 | else |
4577 | cat > conftest.c <<EOF | |
4578 | int foo __attribute__ ((visibility ("hidden"))) = 1; | |
4579 | int bar __attribute__ ((visibility ("protected"))) = 1; | |
4580 | EOF | |
4581 | libc_cv_visibility_attribute=no | |
4582 | if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then | |
4583 | if grep '\.hidden.*foo' conftest.s >/dev/null; then | |
4584 | if grep '\.protected.*bar' conftest.s >/dev/null; then | |
4585 | libc_cv_visibility_attribute=yes | |
4586 | fi | |
4587 | fi | |
4588 | fi | |
4589 | rm -f conftest.cs | |
0d01dace | 4590 | |
3a12e572 UD |
4591 | fi |
4592 | echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5 | |
4593 | echo "${ECHO_T}$libc_cv_visibility_attribute" >&6 | |
0d01dace | 4594 | if test $libc_cv_visibility_attribute = yes; then |
3a12e572 | 4595 | cat >>confdefs.h <<\_ACEOF |
0d01dace | 4596 | #define HAVE_VISIBILITY_ATTRIBUTE 1 |
3a12e572 | 4597 | _ACEOF |
0d01dace UD |
4598 | |
4599 | fi | |
4600 | fi | |
4601 | ||
37ba7d66 | 4602 | if test $libc_cv_visibility_attribute = yes; then |
3a12e572 UD |
4603 | echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5 |
4604 | echo $ECHO_N "checking for broken __attribute__((visibility()))... $ECHO_C" >&6 | |
4605 | if test "${libc_cv_broken_visibility_attribute+set}" = set; then | |
4606 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37ba7d66 UD |
4607 | else |
4608 | cat > conftest.c <<EOF | |
4609 | int foo (int x); | |
4610 | int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden"))); | |
4611 | int bar (int x) { return x; } | |
4612 | EOF | |
4613 | libc_cv_broken_visibility_attribute=yes | |
4614 | if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then | |
4615 | if grep '\.hidden[ _]foo' conftest.s >/dev/null; then | |
4616 | libc_cv_broken_visibility_attribute=no | |
4617 | fi | |
4618 | fi | |
4619 | rm -f conftest.c conftest.s | |
37ba7d66 | 4620 | |
3a12e572 UD |
4621 | fi |
4622 | echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5 | |
4623 | echo "${ECHO_T}$libc_cv_broken_visibility_attribute" >&6 | |
37ba7d66 | 4624 | if test $libc_cv_broken_visibility_attribute = yes; then |
3a12e572 | 4625 | cat >>confdefs.h <<\_ACEOF |
37ba7d66 | 4626 | #define HAVE_BROKEN_VISIBILITY_ATTRIBUTE 1 |
3a12e572 | 4627 | _ACEOF |
37ba7d66 UD |
4628 | |
4629 | fi | |
4630 | fi | |
4631 | ||
3a12e572 UD |
4632 | echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5 |
4633 | echo $ECHO_N "checking for broken __attribute__((alias()))... $ECHO_C" >&6 | |
4634 | if test "${libc_cv_broken_alias_attribute+set}" = set; then | |
4635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37ba7d66 UD |
4636 | else |
4637 | cat > conftest.c <<EOF | |
4638 | extern int foo (int x) __asm ("xyzzy"); | |
4639 | int bar (int x) { return x; } | |
48b8e846 UD |
4640 | extern __typeof (bar) foo __attribute ((weak, alias ("bar"))); |
4641 | extern int dfoo; | |
4642 | extern __typeof (dfoo) dfoo __asm ("abccb"); | |
4643 | int dfoo = 1; | |
37ba7d66 UD |
4644 | EOF |
4645 | libc_cv_broken_alias_attribute=yes | |
4646 | if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then | |
48b8e846 UD |
4647 | if grep 'xyzzy' conftest.s >/dev/null && |
4648 | grep 'abccb' conftest.s >/dev/null; then | |
37ba7d66 UD |
4649 | libc_cv_broken_alias_attribute=no |
4650 | fi | |
4651 | fi | |
4652 | rm -f conftest.c conftest.s | |
37ba7d66 | 4653 | |
3a12e572 UD |
4654 | fi |
4655 | echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5 | |
4656 | echo "${ECHO_T}$libc_cv_broken_alias_attribute" >&6 | |
37ba7d66 | 4657 | if test $libc_cv_broken_alias_attribute = yes; then |
3a12e572 | 4658 | cat >>confdefs.h <<\_ACEOF |
37ba7d66 | 4659 | #define HAVE_BROKEN_ALIAS_ATTRIBUTE 1 |
3a12e572 | 4660 | _ACEOF |
37ba7d66 UD |
4661 | |
4662 | fi | |
4663 | ||
0d01dace | 4664 | if test $libc_cv_visibility_attribute = yes -a $gnu_ld = yes; then |
3a12e572 UD |
4665 | echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5 |
4666 | echo $ECHO_N "checking whether to put _rtld_local into .sdata section... $ECHO_C" >&6 | |
4667 | if test "${libc_cv_have_sdata_section+set}" = set; then | |
4668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0d01dace UD |
4669 | else |
4670 | echo "int i;" > conftest.c | |
4671 | libc_cv_have_sdata_section=no | |
4672 | if ${CC-cc} -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \ | |
4673 | | grep '\.sdata' >/dev/null; then | |
4674 | libc_cv_have_sdata_section=yes | |
4675 | fi | |
4676 | rm -f conftest.c conftest.so | |
0d01dace | 4677 | |
3a12e572 UD |
4678 | fi |
4679 | echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5 | |
4680 | echo "${ECHO_T}$libc_cv_have_sdata_section" >&6 | |
0d01dace | 4681 | if test $libc_cv_have_sdata_section = yes; then |
3a12e572 | 4682 | cat >>confdefs.h <<\_ACEOF |
0d01dace | 4683 | #define HAVE_SDATA_SECTION 1 |
3a12e572 | 4684 | _ACEOF |
0d01dace UD |
4685 | |
4686 | fi | |
4687 | fi | |
4688 | ||
3a12e572 UD |
4689 | echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5 |
4690 | echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6 | |
4691 | if test "${libc_cv_initfinit_array+set}" = set; then | |
4692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2c617417 UD |
4693 | else |
4694 | cat > conftest.c <<EOF | |
4695 | int _start (void) { return 0; } | |
4696 | int __start (void) { return 0; } | |
4697 | int foo (void) { return 1; } | |
4698 | int (*fp) (void) __attribute__ ((section (".init_array"))) = foo; | |
4699 | EOF | |
4700 | if { ac_try='${CC-cc} -o conftest conftest.c | |
3a12e572 UD |
4701 | -static -nostartfiles -nostdlib 1>&5' |
4702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4703 | (eval $ac_try) 2>&5 | |
4704 | ac_status=$? | |
4705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4706 | (exit $ac_status); }; } | |
2c617417 UD |
4707 | then |
4708 | if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then | |
4709 | libc_cv_initfinit_array=yes | |
4710 | else | |
4711 | libc_cv_initfinit_array=no | |
4712 | fi | |
4713 | else | |
4714 | libc_cv_initfinit_array=no | |
4715 | fi | |
4716 | rm -f conftest* | |
4717 | fi | |
3a12e572 UD |
4718 | echo "$as_me:$LINENO: result: $libc_cv_initfinit_array" >&5 |
4719 | echo "${ECHO_T}$libc_cv_initfinit_array" >&6 | |
2c617417 | 4720 | |
2c617417 | 4721 | if test $libc_cv_initfinit_array = yes; then |
3a12e572 | 4722 | cat >>confdefs.h <<\_ACEOF |
2c617417 | 4723 | #define HAVE_INITFINI_ARRAY 1 |
3a12e572 | 4724 | _ACEOF |
2c617417 UD |
4725 | |
4726 | fi | |
4727 | ||
3a12e572 UD |
4728 | echo "$as_me:$LINENO: checking for -z nodelete option" >&5 |
4729 | echo $ECHO_N "checking for -z nodelete option... $ECHO_C" >&6 | |
4730 | if test "${libc_cv_z_nodelete+set}" = set; then | |
4731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2f54c82d UD |
4732 | else |
4733 | cat > conftest.c <<EOF | |
4734 | int _start (void) { return 42; } | |
4735 | EOF | |
35cd3c97 AJ |
4736 | if { ac_try='${CC-cc} -shared -o conftest.so conftest.c |
4737 | -nostartfiles -nostdlib | |
3a12e572 UD |
4738 | -Wl,--enable-new-dtags,-z,nodelete 1>&5' |
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); }; } | |
2f54c82d UD |
4744 | then |
4745 | libc_cv_z_nodelete=yes | |
4746 | else | |
4747 | libc_cv_z_nodelete=no | |
4748 | fi | |
4749 | rm -f conftest* | |
4750 | fi | |
3a12e572 UD |
4751 | echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5 |
4752 | echo "${ECHO_T}$libc_cv_z_nodelete" >&6 | |
2f54c82d | 4753 | |
2f54c82d | 4754 | |
3a12e572 UD |
4755 | echo "$as_me:$LINENO: checking for -z nodlopen option" >&5 |
4756 | echo $ECHO_N "checking for -z nodlopen option... $ECHO_C" >&6 | |
4757 | if test "${libc_cv_z_nodlopen+set}" = set; then | |
4758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2f54c82d UD |
4759 | else |
4760 | cat > conftest.c <<EOF | |
4761 | int _start (void) { return 42; } | |
4762 | EOF | |
35cd3c97 AJ |
4763 | if { ac_try='${CC-cc} -shared -o conftest.so conftest.c |
4764 | -nostartfiles -nostdlib | |
3a12e572 UD |
4765 | -Wl,--enable-new-dtags,-z,nodlopen 1>&5' |
4766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4767 | (eval $ac_try) 2>&5 | |
4768 | ac_status=$? | |
4769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4770 | (exit $ac_status); }; } | |
2f54c82d UD |
4771 | then |
4772 | libc_cv_z_nodlopen=yes | |
4773 | else | |
4774 | libc_cv_z_nodlopen=no | |
4775 | fi | |
4776 | rm -f conftest* | |
4777 | fi | |
3a12e572 UD |
4778 | echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5 |
4779 | echo "${ECHO_T}$libc_cv_z_nodlopen" >&6 | |
2f54c82d | 4780 | |
5d916713 | 4781 | |
3a12e572 UD |
4782 | echo "$as_me:$LINENO: checking for -z initfirst option" >&5 |
4783 | echo $ECHO_N "checking for -z initfirst option... $ECHO_C" >&6 | |
4784 | if test "${libc_cv_z_initfirst+set}" = set; then | |
4785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d916713 UD |
4786 | else |
4787 | cat > conftest.c <<EOF | |
4788 | int _start (void) { return 42; } | |
4789 | EOF | |
35cd3c97 AJ |
4790 | if { ac_try='${CC-cc} -shared -o conftest.so conftest.c |
4791 | -nostartfiles -nostdlib | |
3a12e572 UD |
4792 | -Wl,--enable-new-dtags,-z,initfirst 1>&5' |
4793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4794 | (eval $ac_try) 2>&5 | |
4795 | ac_status=$? | |
4796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4797 | (exit $ac_status); }; } | |
5d916713 UD |
4798 | then |
4799 | libc_cv_z_initfirst=yes | |
4800 | else | |
4801 | libc_cv_z_initfirst=no | |
4802 | fi | |
4803 | rm -f conftest* | |
4804 | fi | |
3a12e572 UD |
4805 | echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5 |
4806 | echo "${ECHO_T}$libc_cv_z_initfirst" >&6 | |
5d916713 | 4807 | |
639c3248 | 4808 | |
3a12e572 UD |
4809 | echo "$as_me:$LINENO: checking for -Bgroup option" >&5 |
4810 | echo $ECHO_N "checking for -Bgroup option... $ECHO_C" >&6 | |
4811 | if test "${libc_cv_Bgroup+set}" = set; then | |
4812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
639c3248 UD |
4813 | else |
4814 | cat > conftest.c <<EOF | |
4815 | int _start (void) { return 42; } | |
4816 | EOF | |
3a12e572 UD |
4817 | if { ac_try='${CC-cc} -shared -o conftest.so conftest.c -Wl,-Bgroup -nostdlib 1>&5' |
4818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4819 | (eval $ac_try) 2>&5 | |
4820 | ac_status=$? | |
4821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4822 | (exit $ac_status); }; } | |
639c3248 UD |
4823 | then |
4824 | libc_cv_Bgroup=yes | |
4825 | else | |
4826 | libc_cv_Bgroup=no | |
4827 | fi | |
4828 | rm -f conftest* | |
4829 | fi | |
3a12e572 UD |
4830 | echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5 |
4831 | echo "${ECHO_T}$libc_cv_Bgroup" >&6 | |
639c3248 | 4832 | |
a711b01d | 4833 | |
3a12e572 UD |
4834 | echo "$as_me:$LINENO: checking for -z combreloc" >&5 |
4835 | echo $ECHO_N "checking for -z combreloc... $ECHO_C" >&6 | |
4836 | if test "${libc_cv_z_combreloc+set}" = set; then | |
4837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a711b01d UD |
4838 | else |
4839 | cat > conftest.c <<EOF | |
d555194c UD |
4840 | extern int bar (int); |
4841 | extern int mumble; | |
4842 | int foo (void) { return bar (mumble); } | |
a711b01d | 4843 | EOF |
35cd3c97 AJ |
4844 | if { ac_try='${CC-cc} -shared -o conftest.so conftest.c |
4845 | -nostdlib -nostartfiles | |
3a12e572 UD |
4846 | -Wl,-z,combreloc 1>&5' |
4847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4848 | (eval $ac_try) 2>&5 | |
4849 | ac_status=$? | |
4850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4851 | (exit $ac_status); }; } | |
a711b01d | 4852 | then |
fdde8349 UD |
4853 | if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then |
4854 | libc_cv_z_combreloc=yes | |
4855 | else | |
4856 | libc_cv_z_combreloc=no | |
a711b01d | 4857 | fi |
fdde8349 UD |
4858 | else |
4859 | libc_cv_z_combreloc=no | |
a711b01d UD |
4860 | fi |
4861 | rm -f conftest* | |
4862 | fi | |
3a12e572 UD |
4863 | echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5 |
4864 | echo "${ECHO_T}$libc_cv_z_combreloc" >&6 | |
fdde8349 | 4865 | if test "$libc_cv_z_combreloc" = yes; then |
3a12e572 | 4866 | cat >>confdefs.h <<\_ACEOF |
fdde8349 | 4867 | #define HAVE_Z_COMBRELOC 1 |
3a12e572 | 4868 | _ACEOF |
fdde8349 UD |
4869 | |
4870 | fi | |
cd6ede75 UD |
4871 | fi |
4872 | ||
f13df7c7 | 4873 | |
cd6ede75 | 4874 | if test $elf != yes; then |
3a12e572 UD |
4875 | echo "$as_me:$LINENO: checking for .init and .fini sections" >&5 |
4876 | echo $ECHO_N "checking for .init and .fini sections... $ECHO_C" >&6 | |
4877 | if test "${libc_cv_have_initfini+set}" = set; then | |
4878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 | 4879 | else |
3a12e572 UD |
4880 | cat >conftest.$ac_ext <<_ACEOF |
4881 | #line $LINENO "configure" | |
cd6ede75 UD |
4882 | #include "confdefs.h" |
4883 | ||
3a12e572 UD |
4884 | int |
4885 | main () | |
4886 | { | |
cd6ede75 UD |
4887 | asm (".section .init"); |
4888 | asm (".section .fini"); | |
2293395f | 4889 | asm ("${libc_cv_dot_text}"); |
3a12e572 UD |
4890 | ; |
4891 | return 0; | |
4892 | } | |
4893 | _ACEOF | |
4894 | rm -f conftest.$ac_objext | |
4895 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4896 | (eval $ac_compile) 2>&5 | |
4897 | ac_status=$? | |
4898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4899 | (exit $ac_status); } && | |
4900 | { ac_try='test -s conftest.$ac_objext' | |
4901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4902 | (eval $ac_try) 2>&5 | |
4903 | ac_status=$? | |
4904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4905 | (exit $ac_status); }; }; then | |
cd6ede75 UD |
4906 | libc_cv_have_initfini=yes |
4907 | else | |
3a12e572 UD |
4908 | echo "$as_me: failed program was:" >&5 |
4909 | cat conftest.$ac_ext >&5 | |
4910 | libc_cv_have_initfini=no | |
cd6ede75 | 4911 | fi |
3a12e572 | 4912 | rm -f conftest.$ac_objext conftest.$ac_ext |
cd6ede75 | 4913 | fi |
3a12e572 UD |
4914 | echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5 |
4915 | echo "${ECHO_T}$libc_cv_have_initfini" >&6 | |
cd6ede75 | 4916 | if test $libc_cv_have_initfini = yes; then |
3a12e572 | 4917 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 4918 | #define HAVE_INITFINI 1 |
3a12e572 | 4919 | _ACEOF |
cd6ede75 UD |
4920 | |
4921 | fi | |
4922 | fi | |
4923 | ||
e26dd47f | 4924 | if test $elf = yes -a $gnu_ld = yes; then |
3a12e572 UD |
4925 | echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5 |
4926 | echo $ECHO_N "checking whether cc puts quotes around section names... $ECHO_C" >&6 | |
4927 | if test "${libc_cv_have_section_quotes+set}" = set; then | |
4928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e26dd47f UD |
4929 | else |
4930 | cat > conftest.c <<EOF | |
4931 | static const int foo | |
4932 | __attribute__ ((section ("bar"))) = 1; | |
4933 | EOF | |
4934 | if ${CC-cc} -S conftest.c -o conftest.s; then | |
4935 | if grep '\.section.*"bar"' conftest.s >/dev/null; then | |
4936 | libc_cv_have_section_quotes=yes | |
4937 | else | |
4938 | libc_cv_have_section_quotes=no | |
4939 | fi | |
4940 | else | |
4941 | libc_cv_have_section_quotes=unknown | |
4942 | fi | |
4943 | rm -f conftest.cs | |
e26dd47f | 4944 | |
3a12e572 UD |
4945 | fi |
4946 | echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5 | |
4947 | echo "${ECHO_T}$libc_cv_have_section_quotes" >&6 | |
e26dd47f | 4948 | if test $libc_cv_have_section_quotes = yes; then |
3a12e572 | 4949 | cat >>confdefs.h <<\_ACEOF |
e26dd47f | 4950 | #define HAVE_SECTION_QUOTES 1 |
3a12e572 | 4951 | _ACEOF |
e26dd47f UD |
4952 | |
4953 | fi | |
4954 | fi | |
4955 | ||
9a0a462c UD |
4956 | |
4957 | ||
cd6ede75 UD |
4958 | if test $elf = yes; then |
4959 | libc_cv_asm_underscores=no | |
4960 | else | |
9a0a462c | 4961 | if test $ac_cv_prog_cc_works = yes; then |
3a12e572 UD |
4962 | echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5 |
4963 | echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6 | |
4964 | if test "${libc_cv_asm_underscores+set}" = set; then | |
4965 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 | 4966 | else |
3a12e572 UD |
4967 | cat >conftest.$ac_ext <<_ACEOF |
4968 | #line $LINENO "configure" | |
cd6ede75 UD |
4969 | #include "confdefs.h" |
4970 | asm ("_glibc_foobar:"); | |
3a12e572 UD |
4971 | int |
4972 | main () | |
4973 | { | |
cd6ede75 | 4974 | glibc_foobar (); |
3a12e572 UD |
4975 | ; |
4976 | return 0; | |
4977 | } | |
4978 | _ACEOF | |
4979 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4980 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4981 | (eval $ac_link) 2>&5 | |
4982 | ac_status=$? | |
4983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4984 | (exit $ac_status); } && | |
4985 | { ac_try='test -s conftest$ac_exeext' | |
4986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4987 | (eval $ac_try) 2>&5 | |
4988 | ac_status=$? | |
4989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4990 | (exit $ac_status); }; }; then | |
cd6ede75 UD |
4991 | libc_cv_asm_underscores=yes |
4992 | else | |
3a12e572 UD |
4993 | echo "$as_me: failed program was:" >&5 |
4994 | cat conftest.$ac_ext >&5 | |
4995 | libc_cv_asm_underscores=no | |
cd6ede75 | 4996 | fi |
3a12e572 | 4997 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
cd6ede75 | 4998 | fi |
3a12e572 UD |
4999 | echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5 |
5000 | echo "${ECHO_T}$libc_cv_asm_underscores" >&6 | |
9a0a462c | 5001 | else |
3a12e572 UD |
5002 | echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5 |
5003 | echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6 | |
5004 | if test "${libc_cv_asm_underscores+set}" = set; then | |
5005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9a0a462c UD |
5006 | else |
5007 | cat > conftest.$ac_ext <<EOF | |
14519931 | 5008 | #line 5008 "configure" |
9a0a462c UD |
5009 | #include "confdefs.h" |
5010 | void underscore_test(void) { | |
5011 | return; } | |
5012 | EOF | |
3a12e572 UD |
5013 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5014 | (eval $ac_compile) 2>&5 | |
5015 | ac_status=$? | |
5016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5017 | (exit $ac_status); }; then | |
9a0a462c UD |
5018 | if grep _underscore_test conftest* >/dev/null; then |
5019 | rm -f conftest* | |
5020 | libc_cv_asm_underscores=yes | |
5021 | else | |
5022 | rm -f conftest* | |
5023 | libc_cv_asm_underscores=no | |
5024 | fi | |
5025 | else | |
5026 | echo "configure: failed program was:" >&5 | |
5027 | cat conftest.$ac_ext >&5 | |
5028 | rm -f conftest* | |
5029 | libc_cv_asm_underscores=no | |
5030 | fi | |
5031 | rm -f conftest* | |
5032 | fi | |
3a12e572 UD |
5033 | echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5 |
5034 | echo "${ECHO_T}$libc_cv_asm_underscores" >&6 | |
9a0a462c | 5035 | fi |
cd6ede75 UD |
5036 | fi |
5037 | if test $libc_cv_asm_underscores = no; then | |
3a12e572 | 5038 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 5039 | #define NO_UNDERSCORES 1 |
3a12e572 | 5040 | _ACEOF |
cd6ede75 UD |
5041 | |
5042 | fi | |
5043 | ||
5044 | if test $elf = yes; then | |
5045 | libc_cv_weak_symbols=yes | |
9a97d1f7 UD |
5046 | fi |
5047 | ||
3a12e572 UD |
5048 | echo "$as_me:$LINENO: checking for assembler .weak directive" >&5 |
5049 | echo $ECHO_N "checking for assembler .weak directive... $ECHO_C" >&6 | |
5050 | if test "${libc_cv_asm_weak_directive+set}" = set; then | |
5051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 UD |
5052 | else |
5053 | cat > conftest.s <<EOF | |
2293395f | 5054 | ${libc_cv_dot_text} |
cd6ede75 UD |
5055 | ${libc_cv_asm_global_directive} foo |
5056 | foo: | |
5057 | .weak foo | |
5058 | .weak bar; bar = foo | |
5059 | EOF | |
9a97d1f7 UD |
5060 | if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then |
5061 | libc_cv_asm_weak_directive=yes | |
5062 | else | |
5063 | libc_cv_asm_weak_directive=no | |
5064 | fi | |
5065 | rm -f conftest* | |
cd6ede75 | 5066 | fi |
3a12e572 UD |
5067 | echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5 |
5068 | echo "${ECHO_T}$libc_cv_asm_weak_directive" >&6 | |
cd6ede75 UD |
5069 | |
5070 | if test $libc_cv_asm_weak_directive = no; then | |
3a12e572 UD |
5071 | echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5 |
5072 | echo $ECHO_N "checking for assembler .weakext directive... $ECHO_C" >&6 | |
5073 | if test "${libc_cv_asm_weakext_directive+set}" = set; then | |
5074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 UD |
5075 | else |
5076 | cat > conftest.s <<EOF | |
2293395f | 5077 | ${libc_cv_dot_text} |
cd6ede75 UD |
5078 | ${libc_cv_asm_global_directive} foo |
5079 | foo: | |
9a97d1f7 UD |
5080 | .weakext bar foo |
5081 | .weakext baz | |
5082 | ${libc_cv_asm_global_directive} baz | |
5083 | baz: | |
cd6ede75 UD |
5084 | EOF |
5085 | if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then | |
5086 | libc_cv_asm_weakext_directive=yes | |
5087 | else | |
5088 | libc_cv_asm_weakext_directive=no | |
5089 | fi | |
5090 | rm -f conftest* | |
5091 | fi | |
3a12e572 UD |
5092 | echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5 |
5093 | echo "${ECHO_T}$libc_cv_asm_weakext_directive" >&6 | |
cd6ede75 | 5094 | |
9a97d1f7 | 5095 | fi # no .weak |
cd6ede75 UD |
5096 | |
5097 | if test $libc_cv_asm_weak_directive = yes; then | |
3a12e572 | 5098 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 5099 | #define HAVE_ASM_WEAK_DIRECTIVE 1 |
3a12e572 | 5100 | _ACEOF |
cd6ede75 UD |
5101 | |
5102 | elif test $libc_cv_asm_weakext_directive = yes; then | |
3a12e572 | 5103 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 5104 | #define HAVE_ASM_WEAKEXT_DIRECTIVE 1 |
3a12e572 | 5105 | _ACEOF |
cd6ede75 UD |
5106 | |
5107 | fi | |
5108 | ||
b15cb495 | 5109 | case "${host_cpu}-${host_os}" in |
eacde9d0 UD |
5110 | cris*) |
5111 | libc_cv_asm_line_sep='@' | |
3a12e572 | 5112 | cat >>confdefs.h <<_ACEOF |
eacde9d0 | 5113 | #define ASM_LINE_SEP $libc_cv_asm_line_sep |
3a12e572 | 5114 | _ACEOF |
eacde9d0 UD |
5115 | |
5116 | ;; | |
b15cb495 | 5117 | hppa*linux*) |
3a12e572 UD |
5118 | echo "$as_me:$LINENO: checking for assembler line separator" >&5 |
5119 | echo $ECHO_N "checking for assembler line separator... $ECHO_C" >&6 | |
5120 | if test "${libc_cv_asm_line_sep+set}" = set; then | |
5121 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b15cb495 UD |
5122 | else |
5123 | cat > conftest.s <<EOF | |
5124 | nop ; is_old_puffin | |
5125 | EOF | |
3a12e572 UD |
5126 | if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5' |
5127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5128 | (eval $ac_try) 2>&5 | |
5129 | ac_status=$? | |
5130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5131 | (exit $ac_status); }; }; then | |
b15cb495 UD |
5132 | libc_cv_asm_line_sep='!' |
5133 | else | |
5134 | if test -z "$enable_hacker_mode"; then | |
5135 | echo "*** You need a newer assembler to compile glibc" | |
5136 | rm -f conftest* | |
5137 | exit 1 | |
5138 | fi | |
5139 | libc_cv_asm_line_sep=';' | |
5140 | fi | |
5141 | rm -f conftest* | |
5142 | fi | |
3a12e572 UD |
5143 | echo "$as_me:$LINENO: result: $libc_cv_asm_line_sep" >&5 |
5144 | echo "${ECHO_T}$libc_cv_asm_line_sep" >&6 | |
5145 | cat >>confdefs.h <<_ACEOF | |
b15cb495 | 5146 | #define ASM_LINE_SEP $libc_cv_asm_line_sep |
3a12e572 | 5147 | _ACEOF |
b15cb495 UD |
5148 | |
5149 | ;; | |
5150 | esac | |
5151 | ||
3a12e572 UD |
5152 | echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5 |
5153 | echo $ECHO_N "checking for ld --no-whole-archive... $ECHO_C" >&6 | |
5154 | if test "${libc_cv_ld_no_whole_archive+set}" = set; then | |
5155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 UD |
5156 | else |
5157 | cat > conftest.c <<\EOF | |
5158 | _start () {} | |
5159 | int __eh_pc; | |
5160 | __throw () {} | |
5161 | EOF | |
5162 | if { ac_try='${CC-cc} $CFLAGS | |
5163 | -nostdlib -nostartfiles -Wl,--no-whole-archive | |
3a12e572 UD |
5164 | -o conftest conftest.c 1>&5' |
5165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5166 | (eval $ac_try) 2>&5 | |
5167 | ac_status=$? | |
5168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5169 | (exit $ac_status); }; }; then | |
cd6ede75 UD |
5170 | libc_cv_ld_no_whole_archive=yes |
5171 | else | |
5172 | libc_cv_ld_no_whole_archive=no | |
5173 | fi | |
5174 | rm -f conftest* | |
5175 | fi | |
3a12e572 UD |
5176 | echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5 |
5177 | echo "${ECHO_T}$libc_cv_ld_no_whole_archive" >&6 | |
b17277cf UD |
5178 | if test $libc_cv_ld_no_whole_archive = yes; then |
5179 | no_whole_archive=-Wl,--no-whole-archive | |
5180 | fi | |
cd6ede75 | 5181 | |
3a12e572 UD |
5182 | echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5 |
5183 | echo $ECHO_N "checking for gcc -fexceptions... $ECHO_C" >&6 | |
5184 | if test "${libc_cv_gcc_exceptions+set}" = set; then | |
5185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 UD |
5186 | else |
5187 | cat > conftest.c <<\EOF | |
5188 | _start () {} | |
5189 | int __eh_pc; | |
5190 | __throw () {} | |
5191 | EOF | |
5192 | if { ac_try='${CC-cc} $CFLAGS | |
dff14448 | 5193 | -nostdlib -nostartfiles -fexceptions |
3a12e572 UD |
5194 | -o conftest conftest.c 1>&5' |
5195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5196 | (eval $ac_try) 2>&5 | |
5197 | ac_status=$? | |
5198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5199 | (exit $ac_status); }; }; then | |
dff14448 | 5200 | libc_cv_gcc_exceptions=yes |
cd6ede75 | 5201 | else |
dff14448 | 5202 | libc_cv_gcc_exceptions=no |
cd6ede75 UD |
5203 | fi |
5204 | rm -f conftest* | |
5205 | fi | |
3a12e572 UD |
5206 | echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5 |
5207 | echo "${ECHO_T}$libc_cv_gcc_exceptions" >&6 | |
dff14448 UD |
5208 | if test $libc_cv_gcc_exceptions = yes; then |
5209 | exceptions=-fexceptions | |
b17277cf | 5210 | fi |
cd6ede75 | 5211 | |
ebcd12d4 UD |
5212 | if test "$host_cpu" = powerpc ; then |
5213 | # Check for a bug present in at least versions 2.8.x of GCC | |
5214 | # and versions 1.0.x of EGCS. | |
3a12e572 UD |
5215 | echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5 |
5216 | echo $ECHO_N "checking whether clobbering cr0 causes problems... $ECHO_C" >&6 | |
5217 | if test "${libc_cv_c_asmcr0_bug+set}" = set; then | |
5218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ebcd12d4 | 5219 | else |
3a12e572 UD |
5220 | cat >conftest.$ac_ext <<_ACEOF |
5221 | #line $LINENO "configure" | |
ebcd12d4 UD |
5222 | #include "confdefs.h" |
5223 | int tester(int x) { asm ("" : : : "cc"); return x & 123; } | |
3a12e572 UD |
5224 | int |
5225 | main () | |
5226 | { | |
ebcd12d4 | 5227 | |
3a12e572 UD |
5228 | ; |
5229 | return 0; | |
5230 | } | |
5231 | _ACEOF | |
5232 | rm -f conftest.$ac_objext | |
5233 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5234 | (eval $ac_compile) 2>&5 | |
5235 | ac_status=$? | |
5236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5237 | (exit $ac_status); } && | |
5238 | { ac_try='test -s conftest.$ac_objext' | |
5239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5240 | (eval $ac_try) 2>&5 | |
5241 | ac_status=$? | |
5242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5243 | (exit $ac_status); }; }; then | |
ebcd12d4 UD |
5244 | libc_cv_c_asmcr0_bug='no' |
5245 | else | |
3a12e572 UD |
5246 | echo "$as_me: failed program was:" >&5 |
5247 | cat conftest.$ac_ext >&5 | |
5248 | libc_cv_c_asmcr0_bug='yes' | |
ebcd12d4 | 5249 | fi |
3a12e572 | 5250 | rm -f conftest.$ac_objext conftest.$ac_ext |
ebcd12d4 | 5251 | fi |
3a12e572 UD |
5252 | echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5 |
5253 | echo "${ECHO_T}$libc_cv_c_asmcr0_bug" >&6 | |
ebcd12d4 | 5254 | if test "$libc_cv_c_asmcr0_bug" != 'no'; then |
3a12e572 | 5255 | cat >>confdefs.h <<\_ACEOF |
ebcd12d4 | 5256 | #define BROKEN_PPC_ASM_CR0 1 |
3a12e572 | 5257 | _ACEOF |
ebcd12d4 UD |
5258 | |
5259 | fi | |
5260 | fi | |
5261 | ||
3a12e572 UD |
5262 | echo "$as_me:$LINENO: checking for DWARF2 unwind info support" >&5 |
5263 | echo $ECHO_N "checking for DWARF2 unwind info support... $ECHO_C" >&6 | |
5264 | if test "${libc_cv_gcc_dwarf2_unwind_info+set}" = set; then | |
5265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
650425ce UD |
5266 | else |
5267 | cat > conftest.c <<EOF | |
14519931 | 5268 | #line 5268 "configure" |
2b904739 | 5269 | static char *__EH_FRAME_BEGIN__; |
650425ce UD |
5270 | _start () |
5271 | { | |
9756dfe1 | 5272 | #ifdef CHECK__register_frame |
650425ce UD |
5273 | __register_frame (__EH_FRAME_BEGIN__); |
5274 | __deregister_frame (__EH_FRAME_BEGIN__); | |
9756dfe1 UD |
5275 | #endif |
5276 | #ifdef CHECK__register_frame_info | |
5277 | __register_frame_info (__EH_FRAME_BEGIN__); | |
5278 | __deregister_frame_info (__EH_FRAME_BEGIN__); | |
5279 | #endif | |
650425ce UD |
5280 | } |
5281 | int __eh_pc; | |
5282 | __throw () {} | |
5283 | /* FIXME: this is fragile. */ | |
5284 | malloc () {} | |
5285 | strcmp () {} | |
5286 | strlen () {} | |
5287 | memcpy () {} | |
5288 | memset () {} | |
5289 | free () {} | |
5290 | abort () {} | |
dfd2257a | 5291 | __bzero () {} |
7ae4abe9 | 5292 | dl_iterate_phdr () {} |
650425ce | 5293 | EOF |
9756dfe1 | 5294 | if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info |
650425ce | 5295 | -nostdlib -nostartfiles |
3a12e572 UD |
5296 | -o conftest conftest.c -lgcc >&5' |
5297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5298 | (eval $ac_try) 2>&5 | |
5299 | ac_status=$? | |
5300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5301 | (exit $ac_status); }; }; then | |
9756dfe1 | 5302 | libc_cv_gcc_dwarf2_unwind_info=static |
650425ce UD |
5303 | else |
5304 | libc_cv_gcc_dwarf2_unwind_info=no | |
5305 | fi | |
cd925327 RM |
5306 | # Some platforms' specs put -lgcc first. The second one doesn't hurt. |
5307 | libc_unwind_check="${CC-cc} $CFLAGS -DCHECK__register_frame_info \ | |
5308 | -nostdlib -nostartfiles -o conftest conftest.c \ | |
5309 | -lgcc -lgcc_eh -lgcc" | |
5310 | if { ac_try='$libc_unwind_check >&5' | |
3a12e572 UD |
5311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5312 | (eval $ac_try) 2>&5 | |
5313 | ac_status=$? | |
5314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5315 | (exit $ac_status); }; }; then | |
cd925327 | 5316 | if $libc_unwind_check -v 2>&1 >/dev/null \ |
2b904739 AJ |
5317 | | grep -q -- --eh-frame-hdr; then |
5318 | libc_cv_gcc_dwarf2_unwind_info=no_registry_needed | |
5319 | else | |
5320 | libc_cv_gcc_dwarf2_unwind_info=static | |
5321 | fi | |
5322 | else | |
5323 | libc_cv_gcc_dwarf2_unwind_info=no | |
5324 | fi | |
9756dfe1 UD |
5325 | if test $libc_cv_gcc_dwarf2_unwind_info = no; then |
5326 | if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame | |
5327 | -nostdlib -nostartfiles | |
3a12e572 UD |
5328 | -o conftest conftest.c -lgcc >&5' |
5329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5330 | (eval $ac_try) 2>&5 | |
5331 | ac_status=$? | |
5332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5333 | (exit $ac_status); }; }; then | |
9756dfe1 UD |
5334 | libc_cv_gcc_dwarf2_unwind_info=yes |
5335 | else | |
5336 | libc_cv_gcc_dwarf2_unwind_info=no | |
5337 | fi | |
5338 | fi | |
650425ce UD |
5339 | rm -f conftest* |
5340 | fi | |
3a12e572 UD |
5341 | echo "$as_me:$LINENO: result: $libc_cv_gcc_dwarf2_unwind_info" >&5 |
5342 | echo "${ECHO_T}$libc_cv_gcc_dwarf2_unwind_info" >&6 | |
9756dfe1 UD |
5343 | case $libc_cv_gcc_dwarf2_unwind_info in |
5344 | yes) | |
3a12e572 | 5345 | cat >>confdefs.h <<\_ACEOF |
650425ce | 5346 | #define HAVE_DWARF2_UNWIND_INFO 1 |
3a12e572 | 5347 | _ACEOF |
650425ce | 5348 | |
9756dfe1 UD |
5349 | ;; |
5350 | static) | |
3a12e572 | 5351 | cat >>confdefs.h <<\_ACEOF |
9756dfe1 | 5352 | #define HAVE_DWARF2_UNWIND_INFO 1 |
3a12e572 | 5353 | _ACEOF |
9756dfe1 | 5354 | |
3a12e572 | 5355 | cat >>confdefs.h <<\_ACEOF |
9756dfe1 | 5356 | #define HAVE_DWARF2_UNWIND_INFO_STATIC 1 |
3a12e572 | 5357 | _ACEOF |
9756dfe1 UD |
5358 | |
5359 | ;; | |
5360 | esac | |
650425ce | 5361 | |
3a12e572 UD |
5362 | echo "$as_me:$LINENO: checking for __builtin_expect" >&5 |
5363 | echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6 | |
5364 | if test "${libc_cv_gcc_builtin_expect+set}" = set; then | |
5365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a8eab8b1 UD |
5366 | else |
5367 | cat > conftest.c <<EOF | |
14519931 | 5368 | #line 5368 "configure" |
a8eab8b1 UD |
5369 | int foo (int a) |
5370 | { | |
5371 | a = __builtin_expect (a, 10); | |
5372 | return a == 10 ? 0 : 1; | |
5373 | } | |
5374 | EOF | |
5375 | if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles | |
3a12e572 UD |
5376 | -o conftest conftest.c -lgcc >&5' |
5377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5378 | (eval $ac_try) 2>&5 | |
5379 | ac_status=$? | |
5380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5381 | (exit $ac_status); }; }; then | |
a8eab8b1 UD |
5382 | libc_cv_gcc_builtin_expect=yes |
5383 | else | |
5384 | libc_cv_gcc_builtin_expect=no | |
5385 | fi | |
5386 | rm -f conftest* | |
5387 | fi | |
3a12e572 UD |
5388 | echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5 |
5389 | echo "${ECHO_T}$libc_cv_gcc_builtin_expect" >&6 | |
a8eab8b1 | 5390 | if test "$libc_cv_gcc_builtin_expect" = yes; then |
3a12e572 | 5391 | cat >>confdefs.h <<\_ACEOF |
a8eab8b1 | 5392 | #define HAVE_BUILTIN_EXPECT 1 |
3a12e572 | 5393 | _ACEOF |
a8eab8b1 UD |
5394 | |
5395 | fi | |
5396 | ||
3a12e572 UD |
5397 | echo "$as_me:$LINENO: checking for __builtin_memset" >&5 |
5398 | echo $ECHO_N "checking for __builtin_memset... $ECHO_C" >&6 | |
5399 | if test "${libc_cv_gcc_builtin_memset+set}" = set; then | |
5400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d555194c UD |
5401 | else |
5402 | cat > conftest.c <<\EOF | |
5403 | void zero (void *x) | |
5404 | { | |
a52d1562 | 5405 | __builtin_memset (x, 0, 1000); |
d555194c UD |
5406 | } |
5407 | EOF | |
3a12e572 UD |
5408 | if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null' |
5409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5410 | (eval $ac_try) 2>&5 | |
5411 | ac_status=$? | |
5412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5413 | (exit $ac_status); }; }; | |
d555194c UD |
5414 | then |
5415 | libc_cv_gcc_builtin_memset=no | |
5416 | else | |
5417 | libc_cv_gcc_builtin_memset=yes | |
5418 | fi | |
3a12e572 | 5419 | rm -f conftest* |
d555194c | 5420 | fi |
3a12e572 UD |
5421 | echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5 |
5422 | echo "${ECHO_T}$libc_cv_gcc_builtin_memset" >&6 | |
d555194c | 5423 | if test "$libc_cv_gcc_builtin_memset" = yes ; then |
3a12e572 | 5424 | cat >>confdefs.h <<\_ACEOF |
d555194c | 5425 | #define HAVE_BUILTIN_MEMSET 1 |
3a12e572 | 5426 | _ACEOF |
d555194c UD |
5427 | |
5428 | fi | |
5429 | ||
3a12e572 UD |
5430 | echo "$as_me:$LINENO: checking for local label subtraction" >&5 |
5431 | echo $ECHO_N "checking for local label subtraction... $ECHO_C" >&6 | |
5432 | if test "${libc_cv_gcc_subtract_local_labels+set}" = set; then | |
5433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3d558f4e UD |
5434 | else |
5435 | cat > conftest.c <<EOF | |
14519931 | 5436 | #line 5436 "configure" |
3d558f4e UD |
5437 | int foo (int a) |
5438 | { | |
5439 | static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 }; | |
5440 | void *p = &&l1 + ar[a]; | |
5441 | goto *p; | |
5442 | l1: | |
5443 | return 1; | |
5444 | l2: | |
5445 | return 2; | |
5446 | } | |
5447 | EOF | |
5448 | if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles | |
3a12e572 UD |
5449 | -o conftest conftest.c -lgcc >&5' |
5450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5451 | (eval $ac_try) 2>&5 | |
5452 | ac_status=$? | |
5453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5454 | (exit $ac_status); }; }; then | |
3d558f4e UD |
5455 | libc_cv_gcc_subtract_local_labels=yes |
5456 | else | |
5457 | libc_cv_gcc_subtract_local_labels=no | |
5458 | fi | |
5459 | rm -f conftest* | |
5460 | fi | |
3a12e572 UD |
5461 | echo "$as_me:$LINENO: result: $libc_cv_gcc_subtract_local_labels" >&5 |
5462 | echo "${ECHO_T}$libc_cv_gcc_subtract_local_labels" >&6 | |
3d558f4e | 5463 | if test "$libc_cv_gcc_subtract_local_labels" = yes; then |
3a12e572 | 5464 | cat >>confdefs.h <<\_ACEOF |
3d558f4e | 5465 | #define HAVE_SUBTRACT_LOCAL_LABELS 1 |
3a12e572 | 5466 | _ACEOF |
3d558f4e UD |
5467 | |
5468 | fi | |
5469 | ||
5b8f26b4 | 5470 | if test "x$use__thread" != xno; then |
3a12e572 UD |
5471 | echo "$as_me:$LINENO: checking for __thread" >&5 |
5472 | echo $ECHO_N "checking for __thread... $ECHO_C" >&6 | |
5473 | if test "${libc_cv_gcc___thread+set}" = set; then | |
5474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
739d440d | 5475 | else |
5bbfc1ea | 5476 | cat > conftest.c <<\EOF |
fbb18522 RM |
5477 | __thread int a = 42; |
5478 | EOF | |
3a12e572 UD |
5479 | if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5' |
5480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5481 | (eval $ac_try) 2>&5 | |
5482 | ac_status=$? | |
5483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5484 | (exit $ac_status); }; }; then | |
5b8f26b4 RM |
5485 | libc_cv_gcc___thread=yes |
5486 | else | |
5487 | libc_cv_gcc___thread=no | |
5488 | fi | |
5489 | rm -f conftest* | |
739d440d | 5490 | fi |
3a12e572 UD |
5491 | echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5 |
5492 | echo "${ECHO_T}$libc_cv_gcc___thread" >&6 | |
5b8f26b4 | 5493 | if test "$libc_cv_gcc___thread" = yes; then |
3a12e572 | 5494 | cat >>confdefs.h <<\_ACEOF |
739d440d | 5495 | #define HAVE___THREAD 1 |
3a12e572 | 5496 | _ACEOF |
739d440d | 5497 | |
5b8f26b4 | 5498 | fi |
fbb18522 RM |
5499 | else |
5500 | libc_cv_gcc___thread=no | |
739d440d UD |
5501 | fi |
5502 | ||
9b21e6bc | 5503 | if test "$libc_cv_gcc___thread" = yes; then |
3a12e572 UD |
5504 | echo "$as_me:$LINENO: checking for tls_model attribute" >&5 |
5505 | echo $ECHO_N "checking for tls_model attribute... $ECHO_C" >&6 | |
5506 | if test "${libc_cv_gcc_tls_model_attr+set}" = set; then | |
5507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9b21e6bc RM |
5508 | else |
5509 | cat > conftest.c <<\EOF | |
5510 | extern __thread int a __attribute__((tls_model ("initial-exec"))); | |
5511 | EOF | |
3a12e572 UD |
5512 | if { ac_try='${CC-cc} $CFLAGS -S -Werror conftest.c >&5' |
5513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5514 | (eval $ac_try) 2>&5 | |
5515 | ac_status=$? | |
5516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5517 | (exit $ac_status); }; }; then | |
9b21e6bc RM |
5518 | libc_cv_gcc_tls_model_attr=yes |
5519 | else | |
5520 | libc_cv_gcc_tls_model_attr=no | |
5521 | fi | |
5522 | rm -f conftest* | |
5523 | fi | |
3a12e572 UD |
5524 | echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5 |
5525 | echo "${ECHO_T}$libc_cv_gcc_tls_model_attr" >&6 | |
9b21e6bc | 5526 | if test "$libc_cv_gcc_tls_model_attr" = yes; then |
3a12e572 | 5527 | cat >>confdefs.h <<\_ACEOF |
9b21e6bc | 5528 | #define HAVE_TLS_MODEL_ATTRIBUTE 1 |
3a12e572 | 5529 | _ACEOF |
9b21e6bc RM |
5530 | |
5531 | fi | |
5532 | fi | |
739d440d | 5533 | |
3a12e572 UD |
5534 | echo "$as_me:$LINENO: checking for libgd" >&5 |
5535 | echo $ECHO_N "checking for libgd... $ECHO_C" >&6 | |
6dab8688 UD |
5536 | if test "$with_gd" != "no"; then |
5537 | old_CFLAGS="$CFLAGS" | |
5538 | CFLAGS="$CFLAGS $libgd_include" | |
5539 | old_LDFLAGS="$LDFLAGS" | |
5540 | LDFLAGS="$LDFLAGS $libgd_ldflags" | |
5541 | old_LIBS="$LIBS" | |
5542 | LIBS="$LIBS -lgd -lpng -lz -lm" | |
3a12e572 UD |
5543 | cat >conftest.$ac_ext <<_ACEOF |
5544 | #line $LINENO "configure" | |
c8f3e6db UD |
5545 | #include "confdefs.h" |
5546 | #include <gd.h> | |
3a12e572 UD |
5547 | int |
5548 | main () | |
5549 | { | |
c8f3e6db | 5550 | gdImagePng (0, 0) |
3a12e572 UD |
5551 | ; |
5552 | return 0; | |
5553 | } | |
5554 | _ACEOF | |
5555 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5556 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5557 | (eval $ac_link) 2>&5 | |
5558 | ac_status=$? | |
5559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5560 | (exit $ac_status); } && | |
5561 | { ac_try='test -s conftest$ac_exeext' | |
5562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5563 | (eval $ac_try) 2>&5 | |
5564 | ac_status=$? | |
5565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5566 | (exit $ac_status); }; }; then | |
c8f3e6db UD |
5567 | LIBGD=yes |
5568 | else | |
3a12e572 UD |
5569 | echo "$as_me: failed program was:" >&5 |
5570 | cat conftest.$ac_ext >&5 | |
5571 | LIBGD=no | |
c8f3e6db | 5572 | fi |
3a12e572 | 5573 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
6dab8688 UD |
5574 | CFLAGS="$old_CFLAGS" |
5575 | LDFLAGS="$old_LDFLAGS" | |
5576 | LIBS="$old_LIBS" | |
5577 | else | |
5578 | LIBGD=no | |
5579 | fi | |
3a12e572 UD |
5580 | echo "$as_me:$LINENO: result: $LIBGD" >&5 |
5581 | echo "${ECHO_T}$LIBGD" >&6 | |
5582 | ||
5583 | ||
5584 | ||
f4b07664 RM |
5585 | echo "$as_me:$LINENO: checking for egrep" >&5 |
5586 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
5587 | if test "${ac_cv_prog_egrep+set}" = set; then | |
5588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5589 | else | |
5590 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
5591 | then ac_cv_prog_egrep='grep -E' | |
5592 | else ac_cv_prog_egrep='egrep' | |
5593 | fi | |
5594 | fi | |
5595 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
5596 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
5597 | EGREP=$ac_cv_prog_egrep | |
5598 | ||
5599 | ||
3a12e572 UD |
5600 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5601 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
5602 | if test "${ac_cv_header_stdc+set}" = set; then | |
5603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5604 | else | |
5605 | cat >conftest.$ac_ext <<_ACEOF | |
5606 | #line $LINENO "configure" | |
5607 | #include "confdefs.h" | |
5608 | #include <stdlib.h> | |
5609 | #include <stdarg.h> | |
5610 | #include <string.h> | |
5611 | #include <float.h> | |
5612 | ||
5613 | _ACEOF | |
5614 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5615 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5616 | ac_status=$? | |
f4b07664 | 5617 | grep -v '^ *+' conftest.er1 >conftest.err |
3a12e572 UD |
5618 | rm -f conftest.er1 |
5619 | cat conftest.err >&5 | |
5620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5621 | (exit $ac_status); } >/dev/null; then | |
5622 | if test -s conftest.err; then | |
5623 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5624 | else | |
5625 | ac_cpp_err= | |
5626 | fi | |
5627 | else | |
5628 | ac_cpp_err=yes | |
5629 | fi | |
5630 | if test -z "$ac_cpp_err"; then | |
5631 | ac_cv_header_stdc=yes | |
5632 | else | |
5633 | echo "$as_me: failed program was:" >&5 | |
5634 | cat conftest.$ac_ext >&5 | |
5635 | ac_cv_header_stdc=no | |
5636 | fi | |
5637 | rm -f conftest.err conftest.$ac_ext | |
c8f3e6db | 5638 | |
3a12e572 UD |
5639 | if test $ac_cv_header_stdc = yes; then |
5640 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5641 | cat >conftest.$ac_ext <<_ACEOF | |
5642 | #line $LINENO "configure" | |
5643 | #include "confdefs.h" | |
5644 | #include <string.h> | |
3d558f4e | 5645 | |
3a12e572 UD |
5646 | _ACEOF |
5647 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
f4b07664 | 5648 | $EGREP "memchr" >/dev/null 2>&1; then |
3a12e572 | 5649 | : |
8ed1e7d5 | 5650 | else |
3a12e572 UD |
5651 | ac_cv_header_stdc=no |
5652 | fi | |
5653 | rm -f conftest* | |
5654 | ||
5655 | fi | |
5656 | ||
5657 | if test $ac_cv_header_stdc = yes; then | |
5658 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5659 | cat >conftest.$ac_ext <<_ACEOF | |
5660 | #line $LINENO "configure" | |
5661 | #include "confdefs.h" | |
5662 | #include <stdlib.h> | |
5663 | ||
5664 | _ACEOF | |
5665 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
f4b07664 | 5666 | $EGREP "free" >/dev/null 2>&1; then |
3a12e572 UD |
5667 | : |
5668 | else | |
5669 | ac_cv_header_stdc=no | |
5670 | fi | |
5671 | rm -f conftest* | |
5672 | ||
5673 | fi | |
5674 | ||
5675 | if test $ac_cv_header_stdc = yes; then | |
5676 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8ed1e7d5 | 5677 | if test "$cross_compiling" = yes; then |
3a12e572 | 5678 | : |
8ed1e7d5 | 5679 | else |
3a12e572 UD |
5680 | cat >conftest.$ac_ext <<_ACEOF |
5681 | #line $LINENO "configure" | |
8ed1e7d5 | 5682 | #include "confdefs.h" |
3a12e572 UD |
5683 | #include <ctype.h> |
5684 | #if ((' ' & 0x0FF) == 0x020) | |
5685 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5686 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5687 | #else | |
5688 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
5689 | || ('j' <= (c) && (c) <= 'r') \ | |
5690 | || ('s' <= (c) && (c) <= 'z')) | |
5691 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5692 | #endif | |
5693 | ||
5694 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5695 | int | |
5696 | main () | |
8ed1e7d5 | 5697 | { |
3a12e572 UD |
5698 | int i; |
5699 | for (i = 0; i < 256; i++) | |
5700 | if (XOR (islower (i), ISLOWER (i)) | |
5701 | || toupper (i) != TOUPPER (i)) | |
5702 | exit(2); | |
5703 | exit (0); | |
8ed1e7d5 | 5704 | } |
3a12e572 UD |
5705 | _ACEOF |
5706 | rm -f conftest$ac_exeext | |
5707 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5708 | (eval $ac_link) 2>&5 | |
5709 | ac_status=$? | |
5710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5711 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5713 | (eval $ac_try) 2>&5 | |
5714 | ac_status=$? | |
5715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5716 | (exit $ac_status); }; }; then | |
5717 | : | |
8ed1e7d5 | 5718 | else |
3a12e572 UD |
5719 | echo "$as_me: program exited with status $ac_status" >&5 |
5720 | echo "$as_me: failed program was:" >&5 | |
5721 | cat conftest.$ac_ext >&5 | |
5722 | ( exit $ac_status ) | |
5723 | ac_cv_header_stdc=no | |
5724 | fi | |
f4b07664 | 5725 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
8ed1e7d5 | 5726 | fi |
8ed1e7d5 | 5727 | fi |
3a12e572 UD |
5728 | fi |
5729 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
5730 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
5731 | if test $ac_cv_header_stdc = yes; then | |
5732 | ||
5733 | cat >>confdefs.h <<\_ACEOF | |
5734 | #define STDC_HEADERS 1 | |
5735 | _ACEOF | |
5736 | ||
5737 | fi | |
5738 | ||
5739 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5740 | ||
5741 | ||
5742 | ||
5743 | ||
5744 | ||
5745 | ||
5746 | ||
5747 | ||
5748 | ||
5749 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5750 | inttypes.h stdint.h unistd.h | |
5751 | do | |
5752 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5753 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5754 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5755 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5757 | else | |
5758 | cat >conftest.$ac_ext <<_ACEOF | |
5759 | #line $LINENO "configure" | |
5760 | #include "confdefs.h" | |
5761 | $ac_includes_default | |
5762 | ||
5763 | #include <$ac_header> | |
5764 | _ACEOF | |
5765 | rm -f conftest.$ac_objext | |
5766 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5767 | (eval $ac_compile) 2>&5 | |
5768 | ac_status=$? | |
5769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5770 | (exit $ac_status); } && | |
5771 | { ac_try='test -s conftest.$ac_objext' | |
5772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5773 | (eval $ac_try) 2>&5 | |
5774 | ac_status=$? | |
5775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5776 | (exit $ac_status); }; }; then | |
5777 | eval "$as_ac_Header=yes" | |
5778 | else | |
5779 | echo "$as_me: failed program was:" >&5 | |
5780 | cat conftest.$ac_ext >&5 | |
5781 | eval "$as_ac_Header=no" | |
5782 | fi | |
5783 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5784 | fi | |
5785 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5786 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5787 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5788 | cat >>confdefs.h <<_ACEOF | |
5789 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5790 | _ACEOF | |
8ed1e7d5 GK |
5791 | |
5792 | fi | |
3a12e572 UD |
5793 | |
5794 | done | |
5795 | ||
5796 | ||
5797 | echo "$as_me:$LINENO: checking for long double" >&5 | |
5798 | echo $ECHO_N "checking for long double... $ECHO_C" >&6 | |
5799 | if test "${ac_cv_type_long_double+set}" = set; then | |
5800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5801 | else | |
5802 | cat >conftest.$ac_ext <<_ACEOF | |
5803 | #line $LINENO "configure" | |
5804 | #include "confdefs.h" | |
5805 | $ac_includes_default | |
3a12e572 UD |
5806 | int |
5807 | main () | |
5808 | { | |
5809 | if ((long double *) 0) | |
5810 | return 0; | |
5811 | if (sizeof (long double)) | |
5812 | return 0; | |
5813 | ; | |
5814 | return 0; | |
5815 | } | |
5816 | _ACEOF | |
5817 | rm -f conftest.$ac_objext | |
5818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5819 | (eval $ac_compile) 2>&5 | |
5820 | ac_status=$? | |
5821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5822 | (exit $ac_status); } && | |
5823 | { ac_try='test -s conftest.$ac_objext' | |
5824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5825 | (eval $ac_try) 2>&5 | |
5826 | ac_status=$? | |
5827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5828 | (exit $ac_status); }; }; then | |
5829 | ac_cv_type_long_double=yes | |
5830 | else | |
5831 | echo "$as_me: failed program was:" >&5 | |
5832 | cat conftest.$ac_ext >&5 | |
5833 | ac_cv_type_long_double=no | |
5834 | fi | |
5835 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5836 | fi | |
5837 | echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 | |
5838 | echo "${ECHO_T}$ac_cv_type_long_double" >&6 | |
5839 | ||
5840 | echo "$as_me:$LINENO: checking size of long double" >&5 | |
5841 | echo $ECHO_N "checking size of long double... $ECHO_C" >&6 | |
5842 | if test "${ac_cv_sizeof_long_double+set}" = set; then | |
5843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5844 | else | |
5845 | if test "$ac_cv_type_long_double" = yes; then | |
5846 | # The cast to unsigned long works around a bug in the HP C Compiler | |
5847 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5848 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5849 | # This bug is HP SR number 8606223364. | |
5850 | if test "$cross_compiling" = yes; then | |
5851 | # Depending upon the size, compute the lo and hi bounds. | |
5852 | cat >conftest.$ac_ext <<_ACEOF | |
5853 | #line $LINENO "configure" | |
5854 | #include "confdefs.h" | |
5855 | $ac_includes_default | |
3a12e572 UD |
5856 | int |
5857 | main () | |
5858 | { | |
5859 | static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)]; | |
5860 | test_array [0] = 0 | |
5861 | ||
5862 | ; | |
5863 | return 0; | |
5864 | } | |
5865 | _ACEOF | |
5866 | rm -f conftest.$ac_objext | |
5867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5868 | (eval $ac_compile) 2>&5 | |
5869 | ac_status=$? | |
5870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5871 | (exit $ac_status); } && | |
5872 | { ac_try='test -s conftest.$ac_objext' | |
5873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5874 | (eval $ac_try) 2>&5 | |
5875 | ac_status=$? | |
5876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5877 | (exit $ac_status); }; }; then | |
5878 | ac_lo=0 ac_mid=0 | |
5879 | while :; do | |
5880 | cat >conftest.$ac_ext <<_ACEOF | |
5881 | #line $LINENO "configure" | |
5882 | #include "confdefs.h" | |
5883 | $ac_includes_default | |
3a12e572 UD |
5884 | int |
5885 | main () | |
5886 | { | |
5887 | static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)]; | |
5888 | test_array [0] = 0 | |
5889 | ||
5890 | ; | |
5891 | return 0; | |
5892 | } | |
5893 | _ACEOF | |
5894 | rm -f conftest.$ac_objext | |
5895 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5896 | (eval $ac_compile) 2>&5 | |
5897 | ac_status=$? | |
5898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5899 | (exit $ac_status); } && | |
5900 | { ac_try='test -s conftest.$ac_objext' | |
5901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5902 | (eval $ac_try) 2>&5 | |
5903 | ac_status=$? | |
5904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5905 | (exit $ac_status); }; }; then | |
5906 | ac_hi=$ac_mid; break | |
5907 | else | |
5908 | echo "$as_me: failed program was:" >&5 | |
5909 | cat conftest.$ac_ext >&5 | |
5910 | ac_lo=`expr $ac_mid + 1` | |
5911 | if test $ac_lo -le $ac_mid; then | |
5912 | ac_lo= ac_hi= | |
5913 | break | |
5914 | fi | |
5915 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
5916 | fi | |
5917 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5918 | done | |
5919 | else | |
5920 | echo "$as_me: failed program was:" >&5 | |
5921 | cat conftest.$ac_ext >&5 | |
5922 | cat >conftest.$ac_ext <<_ACEOF | |
5923 | #line $LINENO "configure" | |
5924 | #include "confdefs.h" | |
5925 | $ac_includes_default | |
3a12e572 UD |
5926 | int |
5927 | main () | |
5928 | { | |
5929 | static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)]; | |
5930 | test_array [0] = 0 | |
5931 | ||
5932 | ; | |
5933 | return 0; | |
5934 | } | |
5935 | _ACEOF | |
5936 | rm -f conftest.$ac_objext | |
5937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5938 | (eval $ac_compile) 2>&5 | |
5939 | ac_status=$? | |
5940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5941 | (exit $ac_status); } && | |
5942 | { ac_try='test -s conftest.$ac_objext' | |
5943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5944 | (eval $ac_try) 2>&5 | |
5945 | ac_status=$? | |
5946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5947 | (exit $ac_status); }; }; then | |
5948 | ac_hi=-1 ac_mid=-1 | |
5949 | while :; do | |
5950 | cat >conftest.$ac_ext <<_ACEOF | |
5951 | #line $LINENO "configure" | |
5952 | #include "confdefs.h" | |
5953 | $ac_includes_default | |
3a12e572 UD |
5954 | int |
5955 | main () | |
5956 | { | |
5957 | static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)]; | |
5958 | test_array [0] = 0 | |
5959 | ||
5960 | ; | |
5961 | return 0; | |
5962 | } | |
5963 | _ACEOF | |
5964 | rm -f conftest.$ac_objext | |
5965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5966 | (eval $ac_compile) 2>&5 | |
5967 | ac_status=$? | |
5968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5969 | (exit $ac_status); } && | |
5970 | { ac_try='test -s conftest.$ac_objext' | |
5971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5972 | (eval $ac_try) 2>&5 | |
5973 | ac_status=$? | |
5974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5975 | (exit $ac_status); }; }; then | |
5976 | ac_lo=$ac_mid; break | |
5977 | else | |
5978 | echo "$as_me: failed program was:" >&5 | |
5979 | cat conftest.$ac_ext >&5 | |
5980 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
5981 | if test $ac_mid -le $ac_hi; then | |
5982 | ac_lo= ac_hi= | |
5983 | break | |
5984 | fi | |
5985 | ac_mid=`expr 2 '*' $ac_mid` | |
5986 | fi | |
5987 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5988 | done | |
5989 | else | |
5990 | echo "$as_me: failed program was:" >&5 | |
5991 | cat conftest.$ac_ext >&5 | |
5992 | ac_lo= ac_hi= | |
5993 | fi | |
5994 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5995 | fi | |
5996 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5997 | # Binary search between lo and hi bounds. | |
5998 | while test "x$ac_lo" != "x$ac_hi"; do | |
5999 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
6000 | cat >conftest.$ac_ext <<_ACEOF | |
6001 | #line $LINENO "configure" | |
6002 | #include "confdefs.h" | |
6003 | $ac_includes_default | |
3a12e572 UD |
6004 | int |
6005 | main () | |
6006 | { | |
6007 | static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)]; | |
6008 | test_array [0] = 0 | |
6009 | ||
6010 | ; | |
6011 | return 0; | |
6012 | } | |
6013 | _ACEOF | |
6014 | rm -f conftest.$ac_objext | |
6015 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6016 | (eval $ac_compile) 2>&5 | |
6017 | ac_status=$? | |
6018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6019 | (exit $ac_status); } && | |
6020 | { ac_try='test -s conftest.$ac_objext' | |
6021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6022 | (eval $ac_try) 2>&5 | |
6023 | ac_status=$? | |
6024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6025 | (exit $ac_status); }; }; then | |
6026 | ac_hi=$ac_mid | |
6027 | else | |
6028 | echo "$as_me: failed program was:" >&5 | |
6029 | cat conftest.$ac_ext >&5 | |
6030 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
6031 | fi | |
6032 | rm -f conftest.$ac_objext conftest.$ac_ext | |
6033 | done | |
6034 | case $ac_lo in | |
6035 | ?*) ac_cv_sizeof_long_double=$ac_lo;; | |
6036 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77" >&5 | |
6037 | echo "$as_me: error: cannot compute sizeof (long double), 77" >&2;} | |
6038 | { (exit 1); exit 1; }; } ;; | |
6039 | esac | |
6040 | else | |
6041 | if test "$cross_compiling" = yes; then | |
6042 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | |
6043 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | |
6044 | { (exit 1); exit 1; }; } | |
6045 | else | |
6046 | cat >conftest.$ac_ext <<_ACEOF | |
6047 | #line $LINENO "configure" | |
6048 | #include "confdefs.h" | |
6049 | $ac_includes_default | |
6050 | long longval () { return (long) (sizeof (long double)); } | |
6051 | unsigned long ulongval () { return (long) (sizeof (long double)); } | |
6052 | #include <stdio.h> | |
6053 | #include <stdlib.h> | |
3a12e572 UD |
6054 | int |
6055 | main () | |
6056 | { | |
6057 | ||
6058 | FILE *f = fopen ("conftest.val", "w"); | |
6059 | if (! f) | |
6060 | exit (1); | |
6061 | if (((long) (sizeof (long double))) < 0) | |
6062 | { | |
6063 | long i = longval (); | |
6064 | if (i != ((long) (sizeof (long double)))) | |
6065 | exit (1); | |
6066 | fprintf (f, "%ld\n", i); | |
6067 | } | |
6068 | else | |
6069 | { | |
6070 | unsigned long i = ulongval (); | |
6071 | if (i != ((long) (sizeof (long double)))) | |
6072 | exit (1); | |
6073 | fprintf (f, "%lu\n", i); | |
6074 | } | |
6075 | exit (ferror (f) || fclose (f) != 0); | |
6076 | ||
6077 | ; | |
6078 | return 0; | |
6079 | } | |
6080 | _ACEOF | |
6081 | rm -f conftest$ac_exeext | |
6082 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6083 | (eval $ac_link) 2>&5 | |
6084 | ac_status=$? | |
6085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6086 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6088 | (eval $ac_try) 2>&5 | |
6089 | ac_status=$? | |
6090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6091 | (exit $ac_status); }; }; then | |
6092 | ac_cv_sizeof_long_double=`cat conftest.val` | |
6093 | else | |
6094 | echo "$as_me: program exited with status $ac_status" >&5 | |
6095 | echo "$as_me: failed program was:" >&5 | |
6096 | cat conftest.$ac_ext >&5 | |
6097 | ( exit $ac_status ) | |
6098 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77" >&5 | |
6099 | echo "$as_me: error: cannot compute sizeof (long double), 77" >&2;} | |
6100 | { (exit 1); exit 1; }; } | |
6101 | fi | |
f4b07664 | 6102 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
3a12e572 UD |
6103 | fi |
6104 | fi | |
6105 | rm -f conftest.val | |
6106 | else | |
6107 | ac_cv_sizeof_long_double=0 | |
6108 | fi | |
6109 | fi | |
6110 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5 | |
6111 | echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6 | |
6112 | cat >>confdefs.h <<_ACEOF | |
8ed1e7d5 | 6113 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
3a12e572 | 6114 | _ACEOF |
8ed1e7d5 GK |
6115 | |
6116 | ||
6117 | sizeof_long_double=$ac_cv_sizeof_long_double | |
6118 | ||
6119 | ||
cd6ede75 UD |
6120 | ### End of automated tests. |
6121 | ### Now run sysdeps configure fragments. | |
6122 | ||
cb343854 | 6123 | # They also can set these variables. |
b43b13ac | 6124 | use_ldconfig=no |
cb343854 | 6125 | ldd_rewrite_script=no |
77259608 | 6126 | libc_cv_sysconfdir=$sysconfdir |
74bd2300 | 6127 | libc_cv_gcc_unwind_find_fde=no |
cb343854 | 6128 | |
cd6ede75 UD |
6129 | # Iterate over all the sysdep directories we will use, running their |
6130 | # configure fragments, and looking for a uname implementation. | |
6131 | uname= | |
6132 | for dir in $sysnames; do | |
6133 | case $dir in | |
6134 | /*) dest=$dir ;; | |
6135 | *) dest=$srcdir/$dir ;; | |
6136 | esac | |
6137 | if test -r $dest/configure; then | |
3a12e572 UD |
6138 | echo "$as_me:$LINENO: result: running configure fragment for $dest" >&5 |
6139 | echo "${ECHO_T}running configure fragment for $dest" >&6 | |
cd6ede75 UD |
6140 | . $dest/configure |
6141 | fi | |
6142 | ||
6143 | if test -z "$uname"; then | |
6144 | if test -r $dest/uname.c || | |
6145 | test -r $dest/uname.S || | |
6146 | { test -r $dest/syscalls.list && | |
6147 | grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then | |
6148 | uname=$dir | |
6149 | fi | |
6150 | fi | |
6151 | done | |
6152 | ||
74bd2300 | 6153 | if test x$libc_cv_gcc_unwind_find_fde = xyes; then |
3a12e572 | 6154 | cat >>confdefs.h <<\_ACEOF |
74bd2300 | 6155 | #define EXPORT_UNWIND_FIND_FDE 1 |
3a12e572 | 6156 | _ACEOF |
74bd2300 UD |
6157 | |
6158 | fi | |
6159 | ||
6160 | ||
cd6ede75 UD |
6161 | # If we will use the generic uname implementation, we must figure out what |
6162 | # it will say by examining the system, and write the results in config-name.h. | |
6163 | if test "$uname" = "sysdeps/generic"; then | |
6164 | ||
6165 | uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'` | |
6166 | if test $uname_sysname != $config_os; then | |
6167 | config_release=`echo $config_os | sed s/$uname_sysname//` | |
6168 | fi | |
6169 | ||
3a12e572 UD |
6170 | echo "$as_me:$LINENO: checking OS release for uname" >&5 |
6171 | echo $ECHO_N "checking OS release for uname... $ECHO_C" >&6 | |
6172 | if test "${libc_cv_uname_release+set}" = set; then | |
6173 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 | 6174 | else |
3a12e572 UD |
6175 | if test -r /vmunix; then |
6176 | kernel_id=`strings /vmunix | grep UNIX` | |
6177 | elif test -r /dynix; then | |
6178 | kernel_id=`strings /dynix | grep DYNIX` | |
6179 | else | |
6180 | kernel_id= | |
6181 | fi | |
6182 | ||
6183 | kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'` | |
cd6ede75 UD |
6184 | if test x`echo "$config_release" | sed "s/^$kernel_release//"` \ |
6185 | != x$config_release; then | |
6186 | # The configuration release is a substring of the kernel release. | |
6187 | libc_cv_uname_release=$kernel_release | |
6188 | elif test x$config_release != x; then | |
6189 | libc_cv_uname_release=$config_release | |
6190 | elif test x$kernel_release != x; then | |
6191 | libc_cv_uname_release=$kernel_release | |
6192 | else | |
6193 | libc_cv_uname_release=unknown | |
6194 | fi | |
6195 | fi | |
3a12e572 UD |
6196 | echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5 |
6197 | echo "${ECHO_T}$libc_cv_uname_release" >&6 | |
cd6ede75 UD |
6198 | uname_release="$libc_cv_uname_release" |
6199 | ||
3a12e572 UD |
6200 | echo "$as_me:$LINENO: checking OS version for uname" >&5 |
6201 | echo $ECHO_N "checking OS version for uname... $ECHO_C" >&6 | |
6202 | if test "${libc_cv_uname_version+set}" = set; then | |
6203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cd6ede75 | 6204 | else |
3a12e572 UD |
6205 | if test -r /vmunix; then |
6206 | kernel_id=`strings /vmunix | grep UNIX` | |
6207 | elif test -r /dynix; then | |
6208 | kernel_id=`strings /dynix | grep DYNIX` | |
6209 | else | |
6210 | kernel_id= | |
6211 | fi | |
6212 | ||
6213 | kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'` | |
cd6ede75 UD |
6214 | if test -n "$kernel_version"; then |
6215 | libc_cv_uname_version="$kernel_version" | |
6216 | else | |
6217 | libc_cv_uname_version=unknown | |
6218 | fi | |
6219 | fi | |
3a12e572 UD |
6220 | echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5 |
6221 | echo "${ECHO_T}$libc_cv_uname_version" >&6 | |
cd6ede75 UD |
6222 | uname_version="$libc_cv_uname_version" |
6223 | ||
6224 | config_uname=config-name.h:config-name.in | |
6225 | else | |
6226 | # For non-generic uname, we don't need to create config-name.h at all. | |
6227 | config_uname= | |
6228 | fi | |
6229 | ||
3a12e572 | 6230 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 6231 | #define USE_IN_LIBIO 1 |
3a12e572 | 6232 | _ACEOF |
a8c01776 | 6233 | |
cd6ede75 | 6234 | |
a53bad16 UD |
6235 | # Test for old glibc 2.0.x headers so that they can be removed properly |
6236 | # Search only in includedir. | |
3a12e572 UD |
6237 | echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5 |
6238 | echo $ECHO_N "checking for old glibc 2.0.x headers... $ECHO_C" >&6 | |
011ce8ed | 6239 | if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h" |
a53bad16 UD |
6240 | then |
6241 | old_glibc_headers=yes | |
6242 | else | |
6243 | old_glibc_headers=no | |
6244 | fi | |
3a12e572 UD |
6245 | echo "$as_me:$LINENO: result: $old_glibc_headers" >&5 |
6246 | echo "${ECHO_T}$old_glibc_headers" >&6 | |
a53bad16 | 6247 | if test ${old_glibc_headers} = yes; then |
3a12e572 UD |
6248 | { echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5 |
6249 | echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;} | |
6250 | { echo "$as_me:$LINENO: WARNING: *** be removed." >&5 | |
6251 | echo "$as_me: WARNING: *** be removed." >&2;} | |
a53bad16 | 6252 | fi |
26b4d766 | 6253 | |
cd6ede75 UD |
6254 | |
6255 | ||
6256 | ||
6257 | ||
6258 | ||
6259 | ||
cb343854 | 6260 | |
dff14448 | 6261 | |
77259608 | 6262 | |
3a12e572 | 6263 | |
cd6ede75 | 6264 | if test $gnu_ld = yes; then |
3a12e572 | 6265 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 6266 | #define HAVE_GNU_LD 1 |
3a12e572 | 6267 | _ACEOF |
cd6ede75 UD |
6268 | |
6269 | fi | |
6270 | if test $gnu_as = yes; then | |
3a12e572 | 6271 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 6272 | #define HAVE_GNU_AS 1 |
3a12e572 | 6273 | _ACEOF |
cd6ede75 UD |
6274 | |
6275 | fi | |
6276 | if test $elf = yes; then | |
3a12e572 | 6277 | cat >>confdefs.h <<\_ACEOF |
cd6ede75 | 6278 | #define HAVE_ELF 1 |
3a12e572 | 6279 | _ACEOF |
cd6ede75 UD |
6280 | |
6281 | fi | |
5af3245a | 6282 | if test $xcoff = yes; then |
3a12e572 | 6283 | cat >>confdefs.h <<\_ACEOF |
5af3245a | 6284 | #define HAVE_XCOFF 1 |
3a12e572 | 6285 | _ACEOF |
5af3245a UD |
6286 | |
6287 | fi | |
cd6ede75 UD |
6288 | |
6289 | ||
650425ce | 6290 | |
cd6ede75 UD |
6291 | if test $shared = default; then |
6292 | if test $gnu_ld = yes; then | |
6293 | shared=$elf | |
6294 | else | |
6295 | # For now we do not assume shared libs are available. In future more | |
6296 | # tests might become available. | |
6297 | shared=no | |
6298 | fi | |
6299 | fi | |
6300 | ||
3a12e572 UD |
6301 | echo "$as_me:$LINENO: checking whether -fPIC is default" >&5 |
6302 | echo $ECHO_N "checking whether -fPIC is default... $ECHO_C" >&6 | |
6303 | if test "${pic_default+set}" = set; then | |
6304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cc3fa755 UD |
6305 | else |
6306 | pic_default=yes | |
6307 | cat > conftest.c <<EOF | |
9756dfe1 | 6308 | #if defined __PIC__ || defined __pic__ || defined PIC || defined pic |
cc3fa755 UD |
6309 | # error PIC is default. |
6310 | #endif | |
6311 | EOF | |
6312 | if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then | |
6313 | pic_default=no | |
6314 | fi | |
6315 | rm -f conftest.* | |
6316 | fi | |
3a12e572 UD |
6317 | echo "$as_me:$LINENO: result: $pic_default" >&5 |
6318 | echo "${ECHO_T}$pic_default" >&6 | |
cc3fa755 UD |
6319 | |
6320 | ||
6321 | ||
cd6ede75 UD |
6322 | |
6323 | ||
6324 | ||
6325 | ||
6326 | ||
6327 | ||
6328 | ||
7cabd57c UD |
6329 | case "$add_ons" in |
6330 | *door*) linux_doors=yes ;; | |
6331 | *) linux_doors=no ;; | |
6332 | esac | |
6333 | ||
6334 | ||
746f4007 RM |
6335 | |
6336 | ||
cd6ede75 UD |
6337 | if test "`(cd $srcdir; pwd)`" = "`pwd`"; then |
6338 | config_makefile= | |
6339 | else | |
6340 | config_makefile=Makefile | |
6341 | fi | |
6342 | ||
ee74a442 UD |
6343 | VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h` |
6344 | RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h` | |
6345 | ||
cd6ede75 UD |
6346 | |
6347 | ||
f4b07664 RM |
6348 | ac_config_files="$ac_config_files config.make glibcbug ${config_makefile} ${config_uname}" |
6349 | ||
6350 | ac_config_commands="$ac_config_commands default" | |
6351 | ||
3a12e572 | 6352 | cat >confcache <<\_ACEOF |
cd6ede75 UD |
6353 | # This file is a shell script that caches the results of configure |
6354 | # tests run on this system so they can be shared between configure | |
3a12e572 UD |
6355 | # scripts and configure runs, see configure's option --config-cache. |
6356 | # It is not useful on other systems. If it contains results you don't | |
6357 | # want to keep, you may remove or edit it. | |
cd6ede75 | 6358 | # |
3a12e572 UD |
6359 | # config.status only pays attention to the cache file if you give it |
6360 | # the --recheck option to rerun configure. | |
cd6ede75 | 6361 | # |
f4b07664 | 6362 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
3a12e572 UD |
6363 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
6364 | # following values. | |
6365 | ||
6366 | _ACEOF | |
6367 | ||
cd6ede75 UD |
6368 | # The following way of writing the cache mishandles newlines in values, |
6369 | # but we know of no workaround that is simple, portable, and efficient. | |
6370 | # So, don't put newlines in cache variables' values. | |
6371 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6372 | # and sets the high bit in the cache file unless we assign to the vars. | |
3a12e572 UD |
6373 | { |
6374 | (set) 2>&1 | | |
6375 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6376 | *ac_space=\ *) | |
6377 | # `set' does not quote correctly, so add quotes (double-quote | |
6378 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
6379 | sed -n \ | |
6380 | "s/'/'\\\\''/g; | |
6381 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
6382 | ;; | |
6383 | *) | |
6384 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6385 | sed -n \ | |
6386 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
6387 | ;; | |
6388 | esac; | |
6389 | } | | |
6390 | sed ' | |
6391 | t clear | |
6392 | : clear | |
6393 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
6394 | t end | |
6395 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
6396 | : end' >>confcache | |
6397 | if cmp -s $cache_file confcache; then :; else | |
cd6ede75 | 6398 | if test -w $cache_file; then |
3a12e572 UD |
6399 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
6400 | cat confcache >$cache_file | |
cd6ede75 UD |
6401 | else |
6402 | echo "not updating unwritable cache $cache_file" | |
6403 | fi | |
6404 | fi | |
6405 | rm -f confcache | |
6406 | ||
cd6ede75 UD |
6407 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
6408 | # Let make expand exec_prefix. | |
6409 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6410 | ||
3a12e572 UD |
6411 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
6412 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
6413 | # trailing colons and then remove the whole line if VPATH becomes empty | |
6414 | # (actually we leave an empty line to preserve line numbers). | |
cd6ede75 | 6415 | if test "x$srcdir" = x.; then |
3a12e572 UD |
6416 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
6417 | s/:*\$(srcdir):*/:/; | |
6418 | s/:*\${srcdir}:*/:/; | |
6419 | s/:*@srcdir@:*/:/; | |
6420 | s/^\([^=]*=[ ]*\):*/\1/; | |
6421 | s/:*$//; | |
6422 | s/^[^=]*=[ ]*$//; | |
6423 | }' | |
cd6ede75 UD |
6424 | fi |
6425 | ||
cd6ede75 UD |
6426 | DEFS=-DHAVE_CONFIG_H |
6427 | ||
f4b07664 RM |
6428 | ac_libobjs= |
6429 | ac_ltlibobjs= | |
6430 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
6431 | # 1. Remove the extension, and $U if already installed. | |
6432 | ac_i=`echo "$ac_i" | | |
6433 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
6434 | # 2. Add them. | |
6435 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
6436 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
6437 | done | |
6438 | LIBOBJS=$ac_libobjs | |
6439 | ||
6440 | LTLIBOBJS=$ac_ltlibobjs | |
6441 | ||
6442 | ||
cd6ede75 | 6443 | |
3a12e572 UD |
6444 | : ${CONFIG_STATUS=./config.status} |
6445 | ac_clean_files_save=$ac_clean_files | |
6446 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
6447 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
6448 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
6449 | cat >$CONFIG_STATUS <<_ACEOF | |
6450 | #! $SHELL | |
6451 | # Generated by $as_me. | |
cd6ede75 | 6452 | # Run this file to recreate the current configuration. |
cd6ede75 | 6453 | # Compiler output produced by configure, useful for debugging |
3a12e572 | 6454 | # configure, is in config.log if it exists. |
cd6ede75 | 6455 | |
3a12e572 UD |
6456 | debug=false |
6457 | SHELL=\${CONFIG_SHELL-$SHELL} | |
6458 | _ACEOF | |
6459 | ||
6460 | cat >>$CONFIG_STATUS <<\_ACEOF | |
3a12e572 UD |
6461 | ## --------------------- ## |
6462 | ## M4sh Initialization. ## | |
6463 | ## --------------------- ## | |
6464 | ||
6465 | # Be Bourne compatible | |
6466 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
6467 | emulate sh | |
6468 | NULLCMD=: | |
f4b07664 RM |
6469 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
6470 | # is contrary to our usage. Disable this feature. | |
6471 | alias -g '${1+"$@"}'='"$@"' | |
3a12e572 UD |
6472 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
6473 | set -o posix | |
6474 | fi | |
6475 | ||
3a12e572 UD |
6476 | # Support unset when possible. |
6477 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
6478 | as_unset=unset | |
6479 | else | |
6480 | as_unset=false | |
6481 | fi | |
6482 | ||
f4b07664 RM |
6483 | |
6484 | # Work around bugs in pre-3.0 UWIN ksh. | |
6485 | $as_unset ENV MAIL MAILPATH | |
6486 | PS1='$ ' | |
6487 | PS2='> ' | |
6488 | PS4='+ ' | |
6489 | ||
6490 | # NLS nuisances. | |
6491 | for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME | |
6492 | do | |
6493 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
6494 | eval $as_var=C; export $as_var | |
6495 | else | |
6496 | $as_unset $as_var | |
6497 | fi | |
6498 | done | |
6499 | ||
6500 | # Required to use basename. | |
6501 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
6502 | as_expr=expr | |
6503 | else | |
6504 | as_expr=false | |
6505 | fi | |
6506 | ||
6507 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
6508 | as_basename=basename | |
6509 | else | |
6510 | as_basename=false | |
6511 | fi | |
3a12e572 UD |
6512 | |
6513 | ||
6514 | # Name of the executable. | |
f4b07664 | 6515 | as_me=`$as_basename "$0" || |
3a12e572 UD |
6516 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
6517 | X"$0" : 'X\(//\)$' \| \ | |
6518 | X"$0" : 'X\(/\)$' \| \ | |
6519 | . : '\(.\)' 2>/dev/null || | |
6520 | echo X/"$0" | | |
6521 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
6522 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
6523 | /^X\/\(\/\).*/{ s//\1/; q; } | |
6524 | s/.*/./; q'` | |
6525 | ||
f4b07664 | 6526 | |
3a12e572 UD |
6527 | # PATH needs CR, and LINENO needs CR and PATH. |
6528 | # Avoid depending upon Character Ranges. | |
6529 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
6530 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
6531 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
6532 | as_cr_digits='0123456789' | |
6533 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
6534 | ||
6535 | # The user is always right. | |
6536 | if test "${PATH_SEPARATOR+set}" != set; then | |
6537 | echo "#! /bin/sh" >conftest.sh | |
6538 | echo "exit 0" >>conftest.sh | |
6539 | chmod +x conftest.sh | |
f4b07664 | 6540 | if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then |
3a12e572 UD |
6541 | PATH_SEPARATOR=';' |
6542 | else | |
6543 | PATH_SEPARATOR=: | |
6544 | fi | |
6545 | rm -f conftest.sh | |
6546 | fi | |
6547 | ||
6548 | ||
6549 | as_lineno_1=$LINENO | |
6550 | as_lineno_2=$LINENO | |
6551 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
6552 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
6553 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
6554 | # Find who we are. Look in the path if we contain no path at all | |
6555 | # relative or not. | |
6556 | case $0 in | |
6557 | *[\\/]* ) as_myself=$0 ;; | |
6558 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6559 | for as_dir in $PATH | |
cd6ede75 | 6560 | do |
3a12e572 UD |
6561 | IFS=$as_save_IFS |
6562 | test -z "$as_dir" && as_dir=. | |
6563 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
6564 | done | |
6565 | ||
6566 | ;; | |
cd6ede75 | 6567 | esac |
3a12e572 UD |
6568 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
6569 | # in which case we are not to be found in the path. | |
6570 | if test "x$as_myself" = x; then | |
6571 | as_myself=$0 | |
6572 | fi | |
6573 | if test ! -f "$as_myself"; then | |
6574 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
6575 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
6576 | { (exit 1); exit 1; }; } | |
6577 | fi | |
6578 | case $CONFIG_SHELL in | |
6579 | '') | |
6580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6581 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
6582 | do | |
6583 | IFS=$as_save_IFS | |
6584 | test -z "$as_dir" && as_dir=. | |
6585 | for as_base in sh bash ksh sh5; do | |
6586 | case $as_dir in | |
6587 | /*) | |
6588 | if ("$as_dir/$as_base" -c ' | |
6589 | as_lineno_1=$LINENO | |
6590 | as_lineno_2=$LINENO | |
6591 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
6592 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
6593 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
f4b07664 RM |
6594 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
6595 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
3a12e572 UD |
6596 | CONFIG_SHELL=$as_dir/$as_base |
6597 | export CONFIG_SHELL | |
6598 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
6599 | fi;; | |
6600 | esac | |
6601 | done | |
cd6ede75 | 6602 | done |
3a12e572 UD |
6603 | ;; |
6604 | esac | |
cd6ede75 | 6605 | |
3a12e572 UD |
6606 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
6607 | # uniformly replaced by the line number. The first 'sed' inserts a | |
6608 | # line-number line before each line; the second 'sed' does the real | |
6609 | # work. The second script uses 'N' to pair each line-number line | |
6610 | # with the numbered line, and appends trailing '-' during | |
6611 | # substitution so that $LINENO is not a special case at line end. | |
6612 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
6613 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
6614 | sed '=' <$as_myself | | |
6615 | sed ' | |
6616 | N | |
6617 | s,$,-, | |
6618 | : loop | |
6619 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
6620 | t loop | |
6621 | s,-$,, | |
6622 | s,^['$as_cr_digits']*\n,, | |
6623 | ' >$as_me.lineno && | |
6624 | chmod +x $as_me.lineno || | |
6625 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
6626 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
6627 | { (exit 1); exit 1; }; } | |
6628 | ||
6629 | # Don't try to exec as it changes $[0], causing all sort of problems | |
6630 | # (the dirname of $[0] is not the place where we might find the | |
6631 | # original and so on. Autoconf is especially sensible to this). | |
6632 | . ./$as_me.lineno | |
6633 | # Exit status is that of the last command. | |
6634 | exit | |
6635 | } | |
cd6ede75 | 6636 | |
cd6ede75 | 6637 | |
3a12e572 UD |
6638 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
6639 | *c*,-n*) ECHO_N= ECHO_C=' | |
6640 | ' ECHO_T=' ' ;; | |
6641 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
6642 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
6643 | esac | |
cd6ede75 | 6644 | |
3a12e572 UD |
6645 | if expr a : '\(a\)' >/dev/null 2>&1; then |
6646 | as_expr=expr | |
6647 | else | |
6648 | as_expr=false | |
6649 | fi | |
cd6ede75 | 6650 | |
3a12e572 UD |
6651 | rm -f conf$$ conf$$.exe conf$$.file |
6652 | echo >conf$$.file | |
6653 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
6654 | # We could just check for DJGPP; but this test a) works b) is more generic | |
6655 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
6656 | if test -f conf$$.exe; then | |
6657 | # Don't use ln at all; we don't have any links | |
6658 | as_ln_s='cp -p' | |
cd6ede75 | 6659 | else |
3a12e572 | 6660 | as_ln_s='ln -s' |
cd6ede75 | 6661 | fi |
3a12e572 UD |
6662 | elif ln conf$$.file conf$$ 2>/dev/null; then |
6663 | as_ln_s=ln | |
6664 | else | |
6665 | as_ln_s='cp -p' | |
cd6ede75 | 6666 | fi |
3a12e572 | 6667 | rm -f conf$$ conf$$.exe conf$$.file |
cd6ede75 | 6668 | |
f4b07664 RM |
6669 | if mkdir -p . 2>/dev/null; then |
6670 | as_mkdir_p=: | |
6671 | else | |
6672 | as_mkdir_p=false | |
6673 | fi | |
6674 | ||
3a12e572 | 6675 | as_executable_p="test -f" |
cd6ede75 | 6676 | |
3a12e572 UD |
6677 | # Sed expression to map a string onto a valid CPP name. |
6678 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
6679 | ||
6680 | # Sed expression to map a string onto a valid variable name. | |
6681 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
6682 | ||
6683 | ||
6684 | # IFS | |
6685 | # We need space, tab and new line, in precisely that order. | |
6686 | as_nl=' | |
6687 | ' | |
6688 | IFS=" $as_nl" | |
6689 | ||
6690 | # CDPATH. | |
f4b07664 | 6691 | $as_unset CDPATH |
3a12e572 UD |
6692 | |
6693 | exec 6>&1 | |
6694 | ||
6695 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
6696 | # report actual input values of CONFIG_FILES etc. instead of their | |
6697 | # values after options handling. Logging --version etc. is OK. | |
6698 | exec 5>>config.log | |
6699 | { | |
6700 | echo | |
6701 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
6702 | ## Running $as_me. ## | |
6703 | _ASBOX | |
6704 | } >&5 | |
6705 | cat >&5 <<_CSEOF | |
6706 | ||
f4b07664 RM |
6707 | This file was extended by GNU C Library $as_me (see version.h), which was |
6708 | generated by GNU Autoconf 2.54. Invocation command line was | |
3a12e572 UD |
6709 | |
6710 | CONFIG_FILES = $CONFIG_FILES | |
6711 | CONFIG_HEADERS = $CONFIG_HEADERS | |
6712 | CONFIG_LINKS = $CONFIG_LINKS | |
6713 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
6714 | $ $0 $@ | |
6715 | ||
6716 | _CSEOF | |
6717 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
6718 | echo >&5 | |
6719 | _ACEOF | |
6720 | ||
6721 | # Files that config.status was made for. | |
6722 | if test -n "$ac_config_files"; then | |
6723 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
6724 | fi | |
6725 | ||
6726 | if test -n "$ac_config_headers"; then | |
6727 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
6728 | fi | |
6729 | ||
6730 | if test -n "$ac_config_links"; then | |
6731 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
6732 | fi | |
6733 | ||
6734 | if test -n "$ac_config_commands"; then | |
6735 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
6736 | fi | |
6737 | ||
6738 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6739 | ||
6740 | ac_cs_usage="\ | |
6741 | \`$as_me' instantiates files from templates according to the | |
6742 | current configuration. | |
6743 | ||
6744 | Usage: $0 [OPTIONS] [FILE]... | |
6745 | ||
6746 | -h, --help print this help, then exit | |
6747 | -V, --version print version number, then exit | |
6748 | -d, --debug don't remove temporary files | |
6749 | --recheck update $as_me by reconfiguring in the same conditions | |
6750 | --file=FILE[:TEMPLATE] | |
6751 | instantiate the configuration file FILE | |
6752 | --header=FILE[:TEMPLATE] | |
6753 | instantiate the configuration header FILE | |
6754 | ||
6755 | Configuration files: | |
6756 | $config_files | |
6757 | ||
6758 | Configuration headers: | |
6759 | $config_headers | |
6760 | ||
3a12e572 UD |
6761 | Configuration commands: |
6762 | $config_commands | |
6763 | ||
6764 | Report bugs to <bug-autoconf@gnu.org>." | |
6765 | _ACEOF | |
6766 | ||
6767 | cat >>$CONFIG_STATUS <<_ACEOF | |
6768 | ac_cs_version="\\ | |
f4b07664 RM |
6769 | GNU C Library config.status (see version.h) |
6770 | configured by $0, generated by GNU Autoconf 2.54, | |
3a12e572 UD |
6771 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
6772 | ||
6773 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
6774 | Free Software Foundation, Inc. | |
6775 | This config.status script is free software; the Free Software Foundation | |
6776 | gives unlimited permission to copy, distribute and modify it." | |
6777 | srcdir=$srcdir | |
6778 | INSTALL="$INSTALL" | |
6779 | _ACEOF | |
6780 | ||
6781 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6782 | # If no file are specified by the user, then we need to provide default | |
6783 | # value. By we need to know if files were specified by the user. | |
6784 | ac_need_defaults=: | |
6785 | while test $# != 0 | |
6786 | do | |
6787 | case $1 in | |
6788 | --*=*) | |
6789 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
6790 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
f4b07664 RM |
6791 | ac_shift=: |
6792 | ;; | |
6793 | -*) | |
6794 | ac_option=$1 | |
6795 | ac_optarg=$2 | |
6796 | ac_shift=shift | |
3a12e572 | 6797 | ;; |
3a12e572 UD |
6798 | *) # This is not an option, so the user has probably given explicit |
6799 | # arguments. | |
f4b07664 | 6800 | ac_option=$1 |
3a12e572 | 6801 | ac_need_defaults=false;; |
cd6ede75 UD |
6802 | esac |
6803 | ||
f4b07664 | 6804 | case $ac_option in |
3a12e572 UD |
6805 | # Handling of the options. |
6806 | _ACEOF | |
6807 | cat >>$CONFIG_STATUS <<_ACEOF | |
6808 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
6809 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" | |
6810 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | |
6811 | _ACEOF | |
6812 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6813 | --version | --vers* | -V ) | |
6814 | echo "$ac_cs_version"; exit 0 ;; | |
6815 | --he | --h) | |
6816 | # Conflict between --help and --header | |
6817 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
6818 | Try \`$0 --help' for more information." >&5 | |
6819 | echo "$as_me: error: ambiguous option: $1 | |
6820 | Try \`$0 --help' for more information." >&2;} | |
6821 | { (exit 1); exit 1; }; };; | |
6822 | --help | --hel | -h ) | |
6823 | echo "$ac_cs_usage"; exit 0 ;; | |
6824 | --debug | --d* | -d ) | |
6825 | debug=: ;; | |
6826 | --file | --fil | --fi | --f ) | |
f4b07664 RM |
6827 | $ac_shift |
6828 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
3a12e572 UD |
6829 | ac_need_defaults=false;; |
6830 | --header | --heade | --head | --hea ) | |
f4b07664 RM |
6831 | $ac_shift |
6832 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
3a12e572 UD |
6833 | ac_need_defaults=false;; |
6834 | ||
6835 | # This is an error. | |
6836 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
6837 | Try \`$0 --help' for more information." >&5 | |
6838 | echo "$as_me: error: unrecognized option: $1 | |
6839 | Try \`$0 --help' for more information." >&2;} | |
6840 | { (exit 1); exit 1; }; } ;; | |
6841 | ||
6842 | *) ac_config_targets="$ac_config_targets $1" ;; | |
cd6ede75 | 6843 | |
3a12e572 UD |
6844 | esac |
6845 | shift | |
6846 | done | |
6847 | ||
6848 | _ACEOF | |
6849 | ||
6850 | cat >>$CONFIG_STATUS <<_ACEOF | |
6851 | # | |
6852 | # INIT-COMMANDS section. | |
6853 | # | |
6854 | ||
6855 | config_vars='$config_vars' | |
6856 | ||
6857 | _ACEOF | |
6858 | ||
6859 | ||
6860 | ||
6861 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6862 | for ac_config_target in $ac_config_targets | |
6863 | do | |
6864 | case "$ac_config_target" in | |
6865 | # Handling of arguments. | |
6866 | "config.make" ) CONFIG_FILES="$CONFIG_FILES config.make" ;; | |
6867 | "glibcbug" ) CONFIG_FILES="$CONFIG_FILES glibcbug" ;; | |
6868 | "${config_makefile}" ) CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;; | |
6869 | "${config_uname}" ) CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;; | |
3a12e572 UD |
6870 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
6871 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
6872 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
6873 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
6874 | { (exit 1); exit 1; }; };; | |
6875 | esac | |
6876 | done | |
6877 | ||
6878 | # If the user did not use the arguments to specify the items to instantiate, | |
6879 | # then the envvar interface is used. Set only those that are not. | |
6880 | # We use the long form for the default assignment because of an extremely | |
6881 | # bizarre bug on SunOS 4.1.3. | |
6882 | if $ac_need_defaults; then | |
6883 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
6884 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
3a12e572 UD |
6885 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
6886 | fi | |
6887 | ||
6888 | # Create a temporary directory, and hook for its removal unless debugging. | |
6889 | $debug || | |
6890 | { | |
6891 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
6892 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
6893 | } | |
6894 | ||
6895 | # Create a (secure) tmp directory for tmp files. | |
6896 | : ${TMPDIR=/tmp} | |
6897 | { | |
6898 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | |
6899 | test -n "$tmp" && test -d "$tmp" | |
6900 | } || | |
6901 | { | |
6902 | tmp=$TMPDIR/cs$$-$RANDOM | |
6903 | (umask 077 && mkdir $tmp) | |
6904 | } || | |
6905 | { | |
6906 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
6907 | { (exit 1); exit 1; } | |
6908 | } | |
6909 | ||
6910 | _ACEOF | |
6911 | ||
6912 | cat >>$CONFIG_STATUS <<_ACEOF | |
6913 | ||
6914 | # | |
6915 | # CONFIG_FILES section. | |
6916 | # | |
6917 | ||
6918 | # No need to generate the scripts if there are no CONFIG_FILES. | |
6919 | # This happens for instance when ./config.status config.h | |
6920 | if test -n "\$CONFIG_FILES"; then | |
6921 | # Protect against being on the right side of a sed subst in config.status. | |
6922 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
6923 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
6924 | s,@SHELL@,$SHELL,;t t | |
6925 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
6926 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
6927 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
6928 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
6929 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
6930 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
6931 | s,@exec_prefix@,$exec_prefix,;t t | |
6932 | s,@prefix@,$prefix,;t t | |
6933 | s,@program_transform_name@,$program_transform_name,;t t | |
6934 | s,@bindir@,$bindir,;t t | |
6935 | s,@sbindir@,$sbindir,;t t | |
6936 | s,@libexecdir@,$libexecdir,;t t | |
6937 | s,@datadir@,$datadir,;t t | |
6938 | s,@sysconfdir@,$sysconfdir,;t t | |
6939 | s,@sharedstatedir@,$sharedstatedir,;t t | |
6940 | s,@localstatedir@,$localstatedir,;t t | |
6941 | s,@libdir@,$libdir,;t t | |
6942 | s,@includedir@,$includedir,;t t | |
6943 | s,@oldincludedir@,$oldincludedir,;t t | |
6944 | s,@infodir@,$infodir,;t t | |
6945 | s,@mandir@,$mandir,;t t | |
6946 | s,@build_alias@,$build_alias,;t t | |
6947 | s,@host_alias@,$host_alias,;t t | |
6948 | s,@target_alias@,$target_alias,;t t | |
6949 | s,@DEFS@,$DEFS,;t t | |
6950 | s,@ECHO_C@,$ECHO_C,;t t | |
6951 | s,@ECHO_N@,$ECHO_N,;t t | |
6952 | s,@ECHO_T@,$ECHO_T,;t t | |
6953 | s,@LIBS@,$LIBS,;t t | |
6954 | s,@with_fp@,$with_fp,;t t | |
6955 | s,@with_cvs@,$with_cvs,;t t | |
6956 | s,@oldest_abi@,$oldest_abi,;t t | |
6957 | s,@subdirs@,$subdirs,;t t | |
6958 | s,@force_install@,$force_install,;t t | |
6959 | s,@all_warnings@,$all_warnings,;t t | |
6960 | s,@build@,$build,;t t | |
6961 | s,@build_cpu@,$build_cpu,;t t | |
6962 | s,@build_vendor@,$build_vendor,;t t | |
6963 | s,@build_os@,$build_os,;t t | |
6964 | s,@host@,$host,;t t | |
6965 | s,@host_cpu@,$host_cpu,;t t | |
6966 | s,@host_vendor@,$host_vendor,;t t | |
6967 | s,@host_os@,$host_os,;t t | |
3a12e572 UD |
6968 | s,@base_machine@,$base_machine,;t t |
6969 | s,@sysnames@,$sysnames,;t t | |
6970 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
6971 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
6972 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
6973 | s,@LN_S@,$LN_S,;t t | |
6974 | s,@PWD_P@,$PWD_P,;t t | |
6975 | s,@CC@,$CC,;t t | |
6976 | s,@MAKE@,$MAKE,;t t | |
6977 | s,@MSGFMT@,$MSGFMT,;t t | |
6978 | s,@MAKEINFO@,$MAKEINFO,;t t | |
6979 | s,@SED@,$SED,;t t | |
6980 | s,@AUTOCONF@,$AUTOCONF,;t t | |
6981 | s,@CFLAGS@,$CFLAGS,;t t | |
6982 | s,@LDFLAGS@,$LDFLAGS,;t t | |
6983 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
6984 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
6985 | s,@OBJEXT@,$OBJEXT,;t t | |
6986 | s,@BUILD_CC@,$BUILD_CC,;t t | |
6987 | s,@cross_compiling@,$cross_compiling,;t t | |
6988 | s,@CPP@,$CPP,;t t | |
6989 | s,@AR@,$AR,;t t | |
6e3d59bc | 6990 | s,@OBJDUMP@,$OBJDUMP,;t t |
3a12e572 UD |
6991 | s,@RANLIB@,$RANLIB,;t t |
6992 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
6993 | s,@MIG@,$MIG,;t t | |
c4d23330 RM |
6994 | s,@AS@,$AS,;t t |
6995 | s,@LD@,$LD,;t t | |
3a12e572 UD |
6996 | s,@CCVERSION@,$CCVERSION,;t t |
6997 | s,@SYSINCLUDES@,$SYSINCLUDES,;t t | |
6998 | s,@libc_cv_gcc_static_libgcc@,$libc_cv_gcc_static_libgcc,;t t | |
6999 | s,@BASH@,$BASH,;t t | |
7000 | s,@libc_cv_have_bash2@,$libc_cv_have_bash2,;t t | |
7001 | s,@KSH@,$KSH,;t t | |
7002 | s,@libc_cv_have_ksh@,$libc_cv_have_ksh,;t t | |
7003 | s,@AWK@,$AWK,;t t | |
7004 | s,@PERL@,$PERL,;t t | |
7005 | s,@INSTALL_INFO@,$INSTALL_INFO,;t t | |
7006 | s,@OLD_DEBIAN_INSTALL_INFO@,$OLD_DEBIAN_INSTALL_INFO,;t t | |
7007 | s,@BISON@,$BISON,;t t | |
7008 | s,@VERSIONING@,$VERSIONING,;t t | |
7009 | s,@libc_cv_asm_protected_directive@,$libc_cv_asm_protected_directive,;t t | |
7010 | s,@libc_cv_initfinit_array@,$libc_cv_initfinit_array,;t t | |
7011 | s,@libc_cv_z_nodelete@,$libc_cv_z_nodelete,;t t | |
7012 | s,@libc_cv_z_nodlopen@,$libc_cv_z_nodlopen,;t t | |
7013 | s,@libc_cv_z_initfirst@,$libc_cv_z_initfirst,;t t | |
7014 | s,@libc_cv_Bgroup@,$libc_cv_Bgroup,;t t | |
7015 | s,@libc_cv_z_combreloc@,$libc_cv_z_combreloc,;t t | |
7016 | s,@libc_cv_have_initfini@,$libc_cv_have_initfini,;t t | |
7017 | s,@no_whole_archive@,$no_whole_archive,;t t | |
7018 | s,@exceptions@,$exceptions,;t t | |
7019 | s,@LIBGD@,$LIBGD,;t t | |
f4b07664 | 7020 | s,@EGREP@,$EGREP,;t t |
3a12e572 UD |
7021 | s,@sizeof_long_double@,$sizeof_long_double,;t t |
7022 | s,@libc_cv_gcc_unwind_find_fde@,$libc_cv_gcc_unwind_find_fde,;t t | |
7023 | s,@uname_sysname@,$uname_sysname,;t t | |
7024 | s,@uname_release@,$uname_release,;t t | |
7025 | s,@uname_version@,$uname_version,;t t | |
7026 | s,@old_glibc_headers@,$old_glibc_headers,;t t | |
7027 | s,@libc_cv_slibdir@,$libc_cv_slibdir,;t t | |
7028 | s,@libc_cv_localedir@,$libc_cv_localedir,;t t | |
7029 | s,@libc_cv_sysconfdir@,$libc_cv_sysconfdir,;t t | |
7030 | s,@libc_cv_rootsbindir@,$libc_cv_rootsbindir,;t t | |
7031 | s,@use_ldconfig@,$use_ldconfig,;t t | |
7032 | s,@ldd_rewrite_script@,$ldd_rewrite_script,;t t | |
7033 | s,@gnu_ld@,$gnu_ld,;t t | |
7034 | s,@gnu_as@,$gnu_as,;t t | |
7035 | s,@elf@,$elf,;t t | |
7036 | s,@xcoff@,$xcoff,;t t | |
7037 | s,@static@,$static,;t t | |
7038 | s,@shared@,$shared,;t t | |
7039 | s,@pic_default@,$pic_default,;t t | |
7040 | s,@profile@,$profile,;t t | |
7041 | s,@omitfp@,$omitfp,;t t | |
7042 | s,@bounded@,$bounded,;t t | |
7043 | s,@static_nss@,$static_nss,;t t | |
7044 | s,@nopic_initfini@,$nopic_initfini,;t t | |
7045 | s,@DEFINES@,$DEFINES,;t t | |
7046 | s,@linux_doors@,$linux_doors,;t t | |
7047 | s,@mach_interface_list@,$mach_interface_list,;t t | |
7048 | s,@VERSION@,$VERSION,;t t | |
7049 | s,@RELEASE@,$RELEASE,;t t | |
f4b07664 RM |
7050 | s,@LIBOBJS@,$LIBOBJS,;t t |
7051 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
3a12e572 UD |
7052 | CEOF |
7053 | ||
7054 | _ACEOF | |
7055 | ||
7056 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7057 | # Split the substitutions into bite-sized pieces for seds with | |
7058 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
7059 | ac_max_sed_lines=48 | |
7060 | ac_sed_frag=1 # Number of current file. | |
7061 | ac_beg=1 # First line for current file. | |
7062 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
7063 | ac_more_lines=: | |
7064 | ac_sed_cmds= | |
7065 | while $ac_more_lines; do | |
7066 | if test $ac_beg -gt 1; then | |
7067 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
7068 | else | |
7069 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
7070 | fi | |
7071 | if test ! -s $tmp/subs.frag; then | |
7072 | ac_more_lines=false | |
7073 | else | |
7074 | # The purpose of the label and of the branching condition is to | |
7075 | # speed up the sed processing (if there are no `@' at all, there | |
7076 | # is no need to browse any of the substitutions). | |
7077 | # These are the two extra sed commands mentioned above. | |
7078 | (echo ':t | |
7079 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
7080 | if test -z "$ac_sed_cmds"; then | |
7081 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
7082 | else | |
7083 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
7084 | fi | |
7085 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
7086 | ac_beg=$ac_end | |
7087 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
7088 | fi | |
7089 | done | |
7090 | if test -z "$ac_sed_cmds"; then | |
7091 | ac_sed_cmds=cat | |
cd6ede75 | 7092 | fi |
3a12e572 | 7093 | fi # test -n "$CONFIG_FILES" |
cd6ede75 | 7094 | |
3a12e572 UD |
7095 | _ACEOF |
7096 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7097 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
7098 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
7099 | case $ac_file in | |
7100 | - | *:- | *:-:* ) # input from stdin | |
7101 | cat >$tmp/stdin | |
7102 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7103 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7104 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7105 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7106 | * ) ac_file_in=$ac_file.in ;; | |
cd6ede75 UD |
7107 | esac |
7108 | ||
3a12e572 UD |
7109 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
7110 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
7111 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7112 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
7113 | X"$ac_file" : 'X\(//\)$' \| \ | |
7114 | X"$ac_file" : 'X\(/\)' \| \ | |
7115 | . : '\(.\)' 2>/dev/null || | |
7116 | echo X"$ac_file" | | |
7117 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7118 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7119 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7120 | /^X\(\/\).*/{ s//\1/; q; } | |
7121 | s/.*/./; q'` | |
f4b07664 RM |
7122 | { if $as_mkdir_p; then |
7123 | mkdir -p "$ac_dir" | |
7124 | else | |
7125 | as_dir="$ac_dir" | |
7126 | as_dirs= | |
7127 | while test ! -d "$as_dir"; do | |
7128 | as_dirs="$as_dir $as_dirs" | |
7129 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
7130 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7131 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7132 | X"$as_dir" : 'X\(//\)$' \| \ | |
7133 | X"$as_dir" : 'X\(/\)' \| \ | |
7134 | . : '\(.\)' 2>/dev/null || | |
7135 | echo X"$as_dir" | | |
7136 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7137 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7138 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7139 | /^X\(\/\).*/{ s//\1/; q; } | |
7140 | s/.*/./; q'` | |
7141 | done | |
7142 | test ! -n "$as_dirs" || mkdir $as_dirs | |
7143 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
7144 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
7145 | { (exit 1); exit 1; }; }; } | |
3a12e572 UD |
7146 | |
7147 | ac_builddir=. | |
7148 | ||
7149 | if test "$ac_dir" != .; then | |
7150 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
7151 | # A "../" for each directory in $ac_dir_suffix. | |
7152 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
7153 | else | |
7154 | ac_dir_suffix= ac_top_builddir= | |
7155 | fi | |
7156 | ||
7157 | case $srcdir in | |
7158 | .) # No --srcdir option. We are building in place. | |
7159 | ac_srcdir=. | |
7160 | if test -z "$ac_top_builddir"; then | |
7161 | ac_top_srcdir=. | |
7162 | else | |
7163 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
7164 | fi ;; | |
7165 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
7166 | ac_srcdir=$srcdir$ac_dir_suffix; | |
7167 | ac_top_srcdir=$srcdir ;; | |
7168 | *) # Relative path. | |
7169 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
7170 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
7171 | esac | |
7172 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
7173 | # absolute. | |
7174 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
f4b07664 | 7175 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
3a12e572 UD |
7176 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
7177 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
cd6ede75 | 7178 | |
3a12e572 UD |
7179 | |
7180 | case $INSTALL in | |
7181 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7182 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
cd6ede75 UD |
7183 | esac |
7184 | ||
3a12e572 UD |
7185 | if test x"$ac_file" != x-; then |
7186 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
7187 | echo "$as_me: creating $ac_file" >&6;} | |
7188 | rm -f "$ac_file" | |
7189 | fi | |
7190 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7191 | # use $as_me), people would be surprised to read: | |
7192 | # /* config.h. Generated by config.status. */ | |
7193 | if test x"$ac_file" = x-; then | |
7194 | configure_input= | |
7195 | else | |
7196 | configure_input="$ac_file. " | |
7197 | fi | |
7198 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
7199 | sed 's,.*/,,'` by configure." | |
7200 | ||
7201 | # First look for the input files in the build tree, otherwise in the | |
7202 | # src tree. | |
7203 | ac_file_inputs=`IFS=: | |
7204 | for f in $ac_file_in; do | |
7205 | case $f in | |
7206 | -) echo $tmp/stdin ;; | |
7207 | [\\/$]*) | |
7208 | # Absolute (can't be DOS-style, as IFS=:) | |
7209 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7210 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7211 | { (exit 1); exit 1; }; } | |
7212 | echo $f;; | |
7213 | *) # Relative | |
7214 | if test -f "$f"; then | |
7215 | # Build tree | |
7216 | echo $f | |
7217 | elif test -f "$srcdir/$f"; then | |
7218 | # Source tree | |
7219 | echo $srcdir/$f | |
7220 | else | |
7221 | # /dev/null tree | |
7222 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7223 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7224 | { (exit 1); exit 1; }; } | |
7225 | fi;; | |
7226 | esac | |
7227 | done` || { (exit 1); exit 1; } | |
7228 | _ACEOF | |
7229 | cat >>$CONFIG_STATUS <<_ACEOF | |
7230 | sed "$ac_vpsub | |
7231 | $extrasub | |
7232 | _ACEOF | |
7233 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7234 | :t | |
7235 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7236 | s,@configure_input@,$configure_input,;t t | |
7237 | s,@srcdir@,$ac_srcdir,;t t | |
7238 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
7239 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
7240 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
7241 | s,@builddir@,$ac_builddir,;t t | |
7242 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
7243 | s,@top_builddir@,$ac_top_builddir,;t t | |
7244 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
7245 | s,@INSTALL@,$ac_INSTALL,;t t | |
7246 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
7247 | rm -f $tmp/stdin | |
7248 | if test x"$ac_file" != x-; then | |
7249 | mv $tmp/out $ac_file | |
7250 | else | |
7251 | cat $tmp/out | |
7252 | rm -f $tmp/out | |
7253 | fi | |
7254 | ||
7255 | done | |
7256 | _ACEOF | |
7257 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7258 | ||
7259 | # | |
7260 | # CONFIG_HEADER section. | |
7261 | # | |
cd6ede75 UD |
7262 | |
7263 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
7264 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
7265 | # | |
7266 | # ac_d sets the value in "#define NAME VALUE" lines. | |
3a12e572 UD |
7267 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
7268 | ac_dB='[ ].*$,\1#\2' | |
7269 | ac_dC=' ' | |
7270 | ac_dD=',;t' | |
7271 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
7272 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
7273 | ac_uB='$,\1#\2define\3' | |
cd6ede75 | 7274 | ac_uC=' ' |
3a12e572 UD |
7275 | ac_uD=',;t' |
7276 | ||
7277 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
cd6ede75 | 7278 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
3a12e572 UD |
7279 | case $ac_file in |
7280 | - | *:- | *:-:* ) # input from stdin | |
7281 | cat >$tmp/stdin | |
7282 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7283 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7284 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7285 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7286 | * ) ac_file_in=$ac_file.in ;; | |
cd6ede75 UD |
7287 | esac |
7288 | ||
3a12e572 UD |
7289 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
7290 | echo "$as_me: creating $ac_file" >&6;} | |
7291 | ||
7292 | # First look for the input files in the build tree, otherwise in the | |
7293 | # src tree. | |
7294 | ac_file_inputs=`IFS=: | |
7295 | for f in $ac_file_in; do | |
7296 | case $f in | |
7297 | -) echo $tmp/stdin ;; | |
7298 | [\\/$]*) | |
7299 | # Absolute (can't be DOS-style, as IFS=:) | |
7300 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7301 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7302 | { (exit 1); exit 1; }; } | |
7303 | echo $f;; | |
7304 | *) # Relative | |
7305 | if test -f "$f"; then | |
7306 | # Build tree | |
7307 | echo $f | |
7308 | elif test -f "$srcdir/$f"; then | |
7309 | # Source tree | |
7310 | echo $srcdir/$f | |
7311 | else | |
7312 | # /dev/null tree | |
7313 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7314 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7315 | { (exit 1); exit 1; }; } | |
7316 | fi;; | |
7317 | esac | |
7318 | done` || { (exit 1); exit 1; } | |
7319 | # Remove the trailing spaces. | |
7320 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
7321 | ||
7322 | _ACEOF | |
7323 | ||
7324 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
7325 | # `conftest.undefs', that substitutes the proper values into | |
7326 | # config.h.in to produce config.h. The first handles `#define' | |
7327 | # templates, and the second `#undef' templates. | |
7328 | # And first: Protect against being on the right side of a sed subst in | |
7329 | # config.status. Protect against being in an unquoted here document | |
7330 | # in config.status. | |
7331 | rm -f conftest.defines conftest.undefs | |
7332 | # Using a here document instead of a string reduces the quoting nightmare. | |
7333 | # Putting comments in sed scripts is not portable. | |
7334 | # | |
7335 | # `end' is used to avoid that the second main sed command (meant for | |
7336 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
7337 | # See the Autoconf documentation for `clear'. | |
7338 | cat >confdef2sed.sed <<\_ACEOF | |
7339 | s/[\\&,]/\\&/g | |
7340 | s,[\\$`],\\&,g | |
7341 | t clear | |
7342 | : clear | |
7343 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
7344 | t end | |
7345 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
7346 | : end | |
7347 | _ACEOF | |
7348 | # If some macros were called several times there might be several times | |
7349 | # the same #defines, which is useless. Nevertheless, we may not want to | |
7350 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
7351 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
7352 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
7353 | rm -f confdef2sed.sed | |
cd6ede75 UD |
7354 | |
7355 | # This sed command replaces #undef with comments. This is necessary, for | |
7356 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
7357 | # on some systems where configure will not decide to define it. | |
3a12e572 UD |
7358 | cat >>conftest.undefs <<\_ACEOF |
7359 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
7360 | _ACEOF | |
7361 | ||
7362 | # Break up conftest.defines because some shells have a limit on the size | |
7363 | # of here documents, and old seds have small limits too (100 cmds). | |
7364 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
f4b07664 | 7365 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
3a12e572 UD |
7366 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
7367 | echo ' :' >>$CONFIG_STATUS | |
7368 | rm -f conftest.tail | |
7369 | while grep . conftest.defines >/dev/null | |
7370 | do | |
7371 | # Write a limited-size here document to $tmp/defines.sed. | |
7372 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
7373 | # Speed up: don't consider the non `#define' lines. | |
7374 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
7375 | # Work around the forget-to-reset-the-flag bug. | |
7376 | echo 't clr' >>$CONFIG_STATUS | |
7377 | echo ': clr' >>$CONFIG_STATUS | |
7378 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
7379 | echo 'CEOF | |
7380 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
7381 | rm -f $tmp/in | |
7382 | mv $tmp/out $tmp/in | |
7383 | ' >>$CONFIG_STATUS | |
7384 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
7385 | rm -f conftest.defines | |
7386 | mv conftest.tail conftest.defines | |
7387 | done | |
7388 | rm -f conftest.defines | |
f4b07664 | 7389 | echo ' fi # grep' >>$CONFIG_STATUS |
3a12e572 | 7390 | echo >>$CONFIG_STATUS |
cd6ede75 | 7391 | |
3a12e572 UD |
7392 | # Break up conftest.undefs because some shells have a limit on the size |
7393 | # of here documents, and old seds have small limits too (100 cmds). | |
7394 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
cd6ede75 | 7395 | rm -f conftest.tail |
3a12e572 | 7396 | while grep . conftest.undefs >/dev/null |
cd6ede75 | 7397 | do |
3a12e572 UD |
7398 | # Write a limited-size here document to $tmp/undefs.sed. |
7399 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
7400 | # Speed up: don't consider the non `#undef' | |
7401 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
7402 | # Work around the forget-to-reset-the-flag bug. | |
7403 | echo 't clr' >>$CONFIG_STATUS | |
7404 | echo ': clr' >>$CONFIG_STATUS | |
7405 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
cd6ede75 | 7406 | echo 'CEOF |
3a12e572 UD |
7407 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
7408 | rm -f $tmp/in | |
7409 | mv $tmp/out $tmp/in | |
7410 | ' >>$CONFIG_STATUS | |
7411 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
7412 | rm -f conftest.undefs | |
7413 | mv conftest.tail conftest.undefs | |
cd6ede75 | 7414 | done |
3a12e572 UD |
7415 | rm -f conftest.undefs |
7416 | ||
7417 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7418 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7419 | # use $as_me), people would be surprised to read: | |
7420 | # /* config.h. Generated by config.status. */ | |
7421 | if test x"$ac_file" = x-; then | |
7422 | echo "/* Generated by configure. */" >$tmp/config.h | |
cd6ede75 | 7423 | else |
3a12e572 UD |
7424 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
7425 | fi | |
7426 | cat $tmp/in >>$tmp/config.h | |
7427 | rm -f $tmp/in | |
7428 | if test x"$ac_file" != x-; then | |
7429 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | |
7430 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
7431 | echo "$as_me: $ac_file is unchanged" >&6;} | |
7432 | else | |
7433 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
7434 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7435 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
7436 | X"$ac_file" : 'X\(//\)$' \| \ | |
7437 | X"$ac_file" : 'X\(/\)' \| \ | |
7438 | . : '\(.\)' 2>/dev/null || | |
7439 | echo X"$ac_file" | | |
7440 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7441 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7442 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7443 | /^X\(\/\).*/{ s//\1/; q; } | |
7444 | s/.*/./; q'` | |
f4b07664 RM |
7445 | { if $as_mkdir_p; then |
7446 | mkdir -p "$ac_dir" | |
3a12e572 | 7447 | else |
f4b07664 RM |
7448 | as_dir="$ac_dir" |
7449 | as_dirs= | |
7450 | while test ! -d "$as_dir"; do | |
7451 | as_dirs="$as_dir $as_dirs" | |
7452 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
7453 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7454 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7455 | X"$as_dir" : 'X\(//\)$' \| \ | |
7456 | X"$as_dir" : 'X\(/\)' \| \ | |
3a12e572 | 7457 | . : '\(.\)' 2>/dev/null || |
f4b07664 | 7458 | echo X"$as_dir" | |
3a12e572 UD |
7459 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
7460 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7461 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7462 | /^X\(\/\).*/{ s//\1/; q; } | |
7463 | s/.*/./; q'` | |
f4b07664 RM |
7464 | done |
7465 | test ! -n "$as_dirs" || mkdir $as_dirs | |
7466 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
7467 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
7468 | { (exit 1); exit 1; }; }; } | |
cd6ede75 | 7469 | |
f4b07664 RM |
7470 | rm -f $ac_file |
7471 | mv $tmp/config.h $ac_file | |
7472 | fi | |
7473 | else | |
7474 | cat $tmp/config.h | |
7475 | rm -f $tmp/config.h | |
7476 | fi | |
cd6ede75 | 7477 | done |
3a12e572 UD |
7478 | _ACEOF |
7479 | cat >>$CONFIG_STATUS <<\_ACEOF | |
cd6ede75 | 7480 | |
3a12e572 UD |
7481 | # |
7482 | # CONFIG_COMMANDS section. | |
7483 | # | |
7484 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
7485 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
7486 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7487 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
7488 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7489 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
7490 | X"$ac_dest" : 'X\(//\)$' \| \ | |
7491 | X"$ac_dest" : 'X\(/\)' \| \ | |
7492 | . : '\(.\)' 2>/dev/null || | |
7493 | echo X"$ac_dest" | | |
7494 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7495 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7496 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7497 | /^X\(\/\).*/{ s//\1/; q; } | |
7498 | s/.*/./; q'` | |
7499 | ac_builddir=. | |
7500 | ||
7501 | if test "$ac_dir" != .; then | |
7502 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
7503 | # A "../" for each directory in $ac_dir_suffix. | |
7504 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
7505 | else | |
7506 | ac_dir_suffix= ac_top_builddir= | |
7507 | fi | |
7508 | ||
7509 | case $srcdir in | |
7510 | .) # No --srcdir option. We are building in place. | |
7511 | ac_srcdir=. | |
7512 | if test -z "$ac_top_builddir"; then | |
7513 | ac_top_srcdir=. | |
7514 | else | |
7515 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
7516 | fi ;; | |
7517 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
7518 | ac_srcdir=$srcdir$ac_dir_suffix; | |
7519 | ac_top_srcdir=$srcdir ;; | |
7520 | *) # Relative path. | |
7521 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
7522 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
7523 | esac | |
7524 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
7525 | # absolute. | |
7526 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
f4b07664 | 7527 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
3a12e572 UD |
7528 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
7529 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
7530 | ||
7531 | ||
7532 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
7533 | echo "$as_me: executing $ac_dest commands" >&6;} | |
7534 | case $ac_dest in | |
7535 | default ) | |
c0fb8a56 UD |
7536 | case $CONFIG_FILES in *config.make*) |
7537 | echo "$config_vars" >> config.make;; | |
7538 | esac | |
3a12e572 UD |
7539 | test -d bits || mkdir bits ;; |
7540 | esac | |
7541 | done | |
7542 | _ACEOF | |
7543 | ||
7544 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7545 | ||
7546 | { (exit 0); exit 0; } | |
7547 | _ACEOF | |
cd6ede75 | 7548 | chmod +x $CONFIG_STATUS |
3a12e572 UD |
7549 | ac_clean_files=$ac_clean_files_save |
7550 | ||
7551 | ||
7552 | # configure is writing to config.log, and then calls config.status. | |
7553 | # config.status does its own redirection, appending to config.log. | |
7554 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
7555 | # by configure, so config.status won't be able to write to it; its | |
7556 | # output is simply discarded. So we exec the FD to /dev/null, | |
7557 | # effectively closing config.log, so it can be properly (re)opened and | |
7558 | # appended to by config.status. When coming back to configure, we | |
7559 | # need to make the FD available again. | |
7560 | if test "$no_create" != yes; then | |
7561 | ac_cs_success=: | |
7562 | exec 5>/dev/null | |
7563 | $SHELL $CONFIG_STATUS || ac_cs_success=false | |
7564 | exec 5>>config.log | |
7565 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
7566 | # would make configure fail if this is the last instruction. | |
7567 | $ac_cs_success || { (exit 1); exit 1; } | |
7568 | fi | |
cd6ede75 | 7569 | |
3a12e572 UD |
7570 | # |
7571 | # CONFIG_SUBDIRS section. | |
7572 | # | |
cd6ede75 UD |
7573 | if test "$no_recursion" != yes; then |
7574 | ||
7575 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
7576 | ac_sub_configure_args= | |
7577 | ac_prev= | |
7578 | for ac_arg in $ac_configure_args; do | |
7579 | if test -n "$ac_prev"; then | |
7580 | ac_prev= | |
7581 | continue | |
7582 | fi | |
3a12e572 | 7583 | case $ac_arg in |
cd6ede75 UD |
7584 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
7585 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
7586 | ac_prev=cache_file ;; | |
7587 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
3a12e572 UD |
7588 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
7589 | | --c=*) | |
7590 | ;; | |
7591 | --config-cache | -C) | |
cd6ede75 UD |
7592 | ;; |
7593 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
7594 | ac_prev=srcdir ;; | |
7595 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
7596 | ;; | |
3a12e572 UD |
7597 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
7598 | ac_prev=prefix ;; | |
7599 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
7600 | ;; | |
cd6ede75 UD |
7601 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
7602 | esac | |
7603 | done | |
7604 | ||
3a12e572 UD |
7605 | # Always prepend --prefix to ensure using the same prefix |
7606 | # in subdir configurations. | |
7607 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
7608 | ||
7609 | ac_popdir=`pwd` | |
7610 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
cd6ede75 UD |
7611 | |
7612 | # Do not complain, so a configure script can configure whichever | |
7613 | # parts of a large source tree are present. | |
3a12e572 | 7614 | test -d $srcdir/$ac_dir || continue |
cd6ede75 | 7615 | |
3a12e572 UD |
7616 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
7617 | echo "$as_me: configuring in $ac_dir" >&6;} | |
f4b07664 RM |
7618 | { if $as_mkdir_p; then |
7619 | mkdir -p "$ac_dir" | |
7620 | else | |
7621 | as_dir="$ac_dir" | |
7622 | as_dirs= | |
7623 | while test ! -d "$as_dir"; do | |
7624 | as_dirs="$as_dir $as_dirs" | |
7625 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
7626 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7627 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7628 | X"$as_dir" : 'X\(//\)$' \| \ | |
7629 | X"$as_dir" : 'X\(/\)' \| \ | |
7630 | . : '\(.\)' 2>/dev/null || | |
7631 | echo X"$as_dir" | | |
7632 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7633 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7634 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7635 | /^X\(\/\).*/{ s//\1/; q; } | |
7636 | s/.*/./; q'` | |
7637 | done | |
7638 | test ! -n "$as_dirs" || mkdir $as_dirs | |
7639 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
7640 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
7641 | { (exit 1); exit 1; }; }; } | |
cd6ede75 | 7642 | |
3a12e572 | 7643 | ac_builddir=. |
cd6ede75 | 7644 | |
3a12e572 UD |
7645 | if test "$ac_dir" != .; then |
7646 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
7647 | # A "../" for each directory in $ac_dir_suffix. | |
7648 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
7649 | else | |
7650 | ac_dir_suffix= ac_top_builddir= | |
7651 | fi | |
cd6ede75 | 7652 | |
3a12e572 UD |
7653 | case $srcdir in |
7654 | .) # No --srcdir option. We are building in place. | |
7655 | ac_srcdir=. | |
7656 | if test -z "$ac_top_builddir"; then | |
7657 | ac_top_srcdir=. | |
7658 | else | |
7659 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
7660 | fi ;; | |
7661 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
7662 | ac_srcdir=$srcdir$ac_dir_suffix; | |
7663 | ac_top_srcdir=$srcdir ;; | |
7664 | *) # Relative path. | |
7665 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
7666 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
7667 | esac | |
7668 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
7669 | # absolute. | |
7670 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
f4b07664 | 7671 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
3a12e572 UD |
7672 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
7673 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
7674 | ||
7675 | ||
7676 | cd $ac_dir | |
cd6ede75 UD |
7677 | |
7678 | # Check for guested configure; otherwise get Cygnus style configure. | |
3a12e572 UD |
7679 | if test -f $ac_srcdir/configure.gnu; then |
7680 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
7681 | elif test -f $ac_srcdir/configure; then | |
7682 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
7683 | elif test -f $ac_srcdir/configure.in; then | |
cd6ede75 UD |
7684 | ac_sub_configure=$ac_configure |
7685 | else | |
3a12e572 UD |
7686 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
7687 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
cd6ede75 UD |
7688 | ac_sub_configure= |
7689 | fi | |
7690 | ||
7691 | # The recursion is here. | |
7692 | if test -n "$ac_sub_configure"; then | |
cd6ede75 | 7693 | # Make the cache file name correct relative to the subdirectory. |
3a12e572 UD |
7694 | case $cache_file in |
7695 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
cd6ede75 | 7696 | *) # Relative path. |
3a12e572 | 7697 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
cd6ede75 | 7698 | esac |
cd6ede75 | 7699 | |
3a12e572 UD |
7700 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
7701 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
cd6ede75 | 7702 | # The eval makes quoting arguments work. |
3a12e572 UD |
7703 | eval $ac_sub_configure $ac_sub_configure_args \ |
7704 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || | |
7705 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
7706 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
7707 | { (exit 1); exit 1; }; } | |
cd6ede75 UD |
7708 | fi |
7709 | ||
7710 | cd $ac_popdir | |
7711 | done | |
7712 | fi | |
7713 |