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