]>
Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
42ecbf5e | 3 | # Generated by GNU Autoconf 2.59. |
252b5132 | 4 | # |
42ecbf5e | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
252b5132 RH |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
42ecbf5e DJ |
8 | ## --------------------- ## |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
11 | ||
12 | # Be Bourne compatible | |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14 | emulate sh | |
15 | NULLCMD=: | |
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
17 | # is contrary to our usage. Disable this feature. | |
18 | alias -g '${1+"$@"}'='"$@"' | |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20 | set -o posix | |
21 | fi | |
22 | DUALCASE=1; export DUALCASE # for MKS sh | |
23 | ||
24 | # Support unset when possible. | |
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26 | as_unset=unset | |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
31 | ||
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
33 | $as_unset ENV MAIL MAILPATH | |
34 | PS1='$ ' | |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
39 | for as_var in \ | |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 | LC_TELEPHONE LC_TIME | |
43 | do | |
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
45 | eval $as_var=C; export $as_var | |
46 | else | |
47 | $as_unset $as_var | |
48 | fi | |
49 | done | |
50 | ||
51 | # Required to use basename. | |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
66 | as_me=`$as_basename "$0" || | |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
68 | X"$0" : 'X\(//\)$' \| \ | |
69 | X"$0" : 'X\(/\)$' \| \ | |
70 | . : '\(.\)' 2>/dev/null || | |
71 | echo X/"$0" | | |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
76 | ||
77 | ||
78 | # PATH needs CR, and LINENO needs CR and PATH. | |
79 | # Avoid depending upon Character Ranges. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
85 | ||
86 | # The user is always right. | |
87 | if test "${PATH_SEPARATOR+set}" != set; then | |
88 | echo "#! /bin/sh" >conf$$.sh | |
89 | echo "exit 0" >>conf$$.sh | |
90 | chmod +x conf$$.sh | |
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
92 | PATH_SEPARATOR=';' | |
93 | else | |
94 | PATH_SEPARATOR=: | |
95 | fi | |
96 | rm -f conf$$.sh | |
97 | fi | |
98 | ||
99 | ||
100 | as_lineno_1=$LINENO | |
101 | as_lineno_2=$LINENO | |
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
105 | # Find who we are. Look in the path if we contain no path at all | |
106 | # relative or not. | |
107 | case $0 in | |
108 | *[\\/]* ) as_myself=$0 ;; | |
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
116 | ||
117 | ;; | |
118 | esac | |
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
120 | # in which case we are not to be found in the path. | |
121 | if test "x$as_myself" = x; then | |
122 | as_myself=$0 | |
123 | fi | |
124 | if test ! -f "$as_myself"; then | |
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
126 | { (exit 1); exit 1; }; } | |
127 | fi | |
128 | case $CONFIG_SHELL in | |
129 | '') | |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
135 | for as_base in sh bash ksh sh5; do | |
136 | case $as_dir in | |
137 | /*) | |
138 | if ("$as_dir/$as_base" -c ' | |
139 | as_lineno_1=$LINENO | |
140 | as_lineno_2=$LINENO | |
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
146 | CONFIG_SHELL=$as_dir/$as_base | |
147 | export CONFIG_SHELL | |
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
149 | fi;; | |
150 | esac | |
151 | done | |
152 | done | |
153 | ;; | |
154 | esac | |
155 | ||
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
157 | # uniformly replaced by the line number. The first 'sed' inserts a | |
158 | # line-number line before each line; the second 'sed' does the real | |
159 | # work. The second script uses 'N' to pair each line-number line | |
160 | # with the numbered line, and appends trailing '-' during | |
161 | # substitution so that $LINENO is not a special case at line end. | |
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
164 | sed '=' <$as_myself | | |
165 | sed ' | |
166 | N | |
167 | s,$,-, | |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
170 | t loop | |
171 | s,-$,, | |
172 | s,^['$as_cr_digits']*\n,, | |
173 | ' >$as_me.lineno && | |
174 | chmod +x $as_me.lineno || | |
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
176 | { (exit 1); exit 1; }; } | |
177 | ||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | |
179 | # (the dirname of $[0] is not the place where we might find the | |
180 | # original and so on. Autoconf is especially sensible to this). | |
181 | . ./$as_me.lineno | |
182 | # Exit status is that of the last command. | |
183 | exit | |
184 | } | |
185 | ||
186 | ||
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
188 | *c*,-n*) ECHO_N= ECHO_C=' | |
189 | ' ECHO_T=' ' ;; | |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
192 | esac | |
193 | ||
194 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
195 | as_expr=expr | |
196 | else | |
197 | as_expr=false | |
198 | fi | |
199 | ||
200 | rm -f conf$$ conf$$.exe conf$$.file | |
201 | echo >conf$$.file | |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
203 | # We could just check for DJGPP; but this test a) works b) is more generic | |
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
205 | if test -f conf$$.exe; then | |
206 | # Don't use ln at all; we don't have any links | |
207 | as_ln_s='cp -p' | |
208 | else | |
209 | as_ln_s='ln -s' | |
210 | fi | |
211 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
212 | as_ln_s=ln | |
213 | else | |
214 | as_ln_s='cp -p' | |
215 | fi | |
216 | rm -f conf$$ conf$$.exe conf$$.file | |
217 | ||
218 | if mkdir -p . 2>/dev/null; then | |
219 | as_mkdir_p=: | |
220 | else | |
221 | test -d ./-p && rmdir ./-p | |
222 | as_mkdir_p=false | |
223 | fi | |
224 | ||
225 | as_executable_p="test -f" | |
226 | ||
227 | # Sed expression to map a string onto a valid CPP name. | |
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
229 | ||
230 | # Sed expression to map a string onto a valid variable name. | |
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
232 | ||
233 | ||
234 | # IFS | |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
239 | ||
240 | # CDPATH. | |
241 | $as_unset CDPATH | |
242 | ||
243 | ||
244 | # Name of the host. | |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
246 | # so uname gets run too. | |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
252b5132 | 248 | |
42ecbf5e DJ |
249 | exec 6>&1 |
250 | ||
251 | # | |
252 | # Initializations. | |
253 | # | |
252b5132 | 254 | ac_default_prefix=/usr/local |
42ecbf5e DJ |
255 | ac_config_libobj_dir=. |
256 | cross_compiling=no | |
257 | subdirs= | |
258 | MFLAGS= | |
259 | MAKEFLAGS= | |
260 | SHELL=${CONFIG_SHELL-/bin/sh} | |
261 | ||
262 | # Maximum number of lines to put in a shell here document. | |
263 | # This variable seems obsolete. It should probably be removed, and | |
264 | # only ac_max_sed_lines should be used. | |
265 | : ${ac_max_here_lines=38} | |
266 | ||
267 | # Identity of this package. | |
268 | PACKAGE_NAME= | |
269 | PACKAGE_TARNAME= | |
270 | PACKAGE_VERSION= | |
271 | PACKAGE_STRING= | |
272 | PACKAGE_BUGREPORT= | |
273 | ||
274 | ac_unique_file="ldmain.c" | |
275 | # Factoring default headers for most tests. | |
276 | ac_includes_default="\ | |
277 | #include <stdio.h> | |
278 | #if HAVE_SYS_TYPES_H | |
279 | # include <sys/types.h> | |
280 | #endif | |
281 | #if HAVE_SYS_STAT_H | |
282 | # include <sys/stat.h> | |
283 | #endif | |
284 | #if STDC_HEADERS | |
285 | # include <stdlib.h> | |
286 | # include <stddef.h> | |
287 | #else | |
288 | # if HAVE_STDLIB_H | |
289 | # include <stdlib.h> | |
290 | # endif | |
291 | #endif | |
292 | #if HAVE_STRING_H | |
293 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
294 | # include <memory.h> | |
295 | # endif | |
296 | # include <string.h> | |
297 | #endif | |
298 | #if HAVE_STRINGS_H | |
299 | # include <strings.h> | |
300 | #endif | |
301 | #if HAVE_INTTYPES_H | |
302 | # include <inttypes.h> | |
303 | #else | |
304 | # if HAVE_STDINT_H | |
305 | # include <stdint.h> | |
306 | # endif | |
307 | #endif | |
308 | #if HAVE_UNISTD_H | |
309 | # include <unistd.h> | |
310 | #endif" | |
311 | ||
92f01d61 | 312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL use_sysroot TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE REPORT_BUGS_TO WARN_CFLAGS NO_WERROR USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE YACC LEX LEXLIB LEX_OUTPUT_ROOT MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES HOSTING_CRT0 HOSTING_LIBS NATIVE_LIB_DIRS CPP EGREP STRINGIFY EMUL EMULATION_OFILES EMUL_EXTRA_OFILES LIB_PATH EMULATION_LIBPATH TESTBFDLIB datarootdir docdir htmldir LIBOBJS LTLIBOBJS' |
42ecbf5e | 313 | ac_subst_files='TDIRS' |
252b5132 RH |
314 | |
315 | # Initialize some variables set by options. | |
42ecbf5e DJ |
316 | ac_init_help= |
317 | ac_init_version=false | |
252b5132 RH |
318 | # The variables have the same names as the options, with |
319 | # dashes changed to underlines. | |
42ecbf5e | 320 | cache_file=/dev/null |
252b5132 | 321 | exec_prefix=NONE |
252b5132 | 322 | no_create= |
252b5132 RH |
323 | no_recursion= |
324 | prefix=NONE | |
325 | program_prefix=NONE | |
326 | program_suffix=NONE | |
327 | program_transform_name=s,x,x, | |
328 | silent= | |
329 | site= | |
330 | srcdir= | |
252b5132 RH |
331 | verbose= |
332 | x_includes=NONE | |
333 | x_libraries=NONE | |
42ecbf5e DJ |
334 | |
335 | # Installation directory options. | |
336 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
337 | # and all the variables that are supposed to be based on exec_prefix | |
338 | # by default will actually change. | |
339 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
252b5132 RH |
340 | bindir='${exec_prefix}/bin' |
341 | sbindir='${exec_prefix}/sbin' | |
342 | libexecdir='${exec_prefix}/libexec' | |
343 | datadir='${prefix}/share' | |
344 | sysconfdir='${prefix}/etc' | |
345 | sharedstatedir='${prefix}/com' | |
346 | localstatedir='${prefix}/var' | |
347 | libdir='${exec_prefix}/lib' | |
348 | includedir='${prefix}/include' | |
349 | oldincludedir='/usr/include' | |
350 | infodir='${prefix}/info' | |
351 | mandir='${prefix}/man' | |
352 | ||
252b5132 RH |
353 | ac_prev= |
354 | for ac_option | |
355 | do | |
252b5132 RH |
356 | # If the previous option needs an argument, assign it. |
357 | if test -n "$ac_prev"; then | |
358 | eval "$ac_prev=\$ac_option" | |
359 | ac_prev= | |
360 | continue | |
361 | fi | |
362 | ||
42ecbf5e | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
252b5132 RH |
364 | |
365 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
366 | ||
42ecbf5e | 367 | case $ac_option in |
252b5132 RH |
368 | |
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
370 | ac_prev=bindir ;; | |
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
42ecbf5e | 372 | bindir=$ac_optarg ;; |
252b5132 RH |
373 | |
374 | -build | --build | --buil | --bui | --bu) | |
42ecbf5e | 375 | ac_prev=build_alias ;; |
252b5132 | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
42ecbf5e | 377 | build_alias=$ac_optarg ;; |
252b5132 RH |
378 | |
379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
381 | ac_prev=cache_file ;; | |
382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
42ecbf5e DJ |
384 | cache_file=$ac_optarg ;; |
385 | ||
386 | --config-cache | -C) | |
387 | cache_file=config.cache ;; | |
252b5132 RH |
388 | |
389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
390 | ac_prev=datadir ;; | |
391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
392 | | --da=*) | |
42ecbf5e | 393 | datadir=$ac_optarg ;; |
252b5132 RH |
394 | |
395 | -disable-* | --disable-*) | |
42ecbf5e | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 397 | # Reject names that are not valid shell variable names. |
42ecbf5e DJ |
398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
400 | { (exit 1); exit 1; }; } | |
401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
402 | eval "enable_$ac_feature=no" ;; | |
252b5132 RH |
403 | |
404 | -enable-* | --enable-*) | |
42ecbf5e | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 406 | # Reject names that are not valid shell variable names. |
42ecbf5e DJ |
407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
409 | { (exit 1); exit 1; }; } | |
410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
411 | case $ac_option in | |
412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
413 | *) ac_optarg=yes ;; |
414 | esac | |
42ecbf5e | 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
252b5132 RH |
416 | |
417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
419 | | --exec | --exe | --ex) | |
420 | ac_prev=exec_prefix ;; | |
421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
423 | | --exec=* | --exe=* | --ex=*) | |
42ecbf5e | 424 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
425 | |
426 | -gas | --gas | --ga | --g) | |
427 | # Obsolete; use --with-gas. | |
428 | with_gas=yes ;; | |
429 | ||
42ecbf5e DJ |
430 | -help | --help | --hel | --he | -h) |
431 | ac_init_help=long ;; | |
432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
433 | ac_init_help=recursive ;; | |
434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
435 | ac_init_help=short ;; | |
252b5132 RH |
436 | |
437 | -host | --host | --hos | --ho) | |
42ecbf5e | 438 | ac_prev=host_alias ;; |
252b5132 | 439 | -host=* | --host=* | --hos=* | --ho=*) |
42ecbf5e | 440 | host_alias=$ac_optarg ;; |
252b5132 RH |
441 | |
442 | -includedir | --includedir | --includedi | --included | --include \ | |
443 | | --includ | --inclu | --incl | --inc) | |
444 | ac_prev=includedir ;; | |
445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
446 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
42ecbf5e | 447 | includedir=$ac_optarg ;; |
252b5132 RH |
448 | |
449 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
450 | ac_prev=infodir ;; | |
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
42ecbf5e | 452 | infodir=$ac_optarg ;; |
252b5132 RH |
453 | |
454 | -libdir | --libdir | --libdi | --libd) | |
455 | ac_prev=libdir ;; | |
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
42ecbf5e | 457 | libdir=$ac_optarg ;; |
252b5132 RH |
458 | |
459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
460 | | --libexe | --libex | --libe) | |
461 | ac_prev=libexecdir ;; | |
462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
463 | | --libexe=* | --libex=* | --libe=*) | |
42ecbf5e | 464 | libexecdir=$ac_optarg ;; |
252b5132 RH |
465 | |
466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
467 | | --localstate | --localstat | --localsta | --localst \ | |
468 | | --locals | --local | --loca | --loc | --lo) | |
469 | ac_prev=localstatedir ;; | |
470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
42ecbf5e | 473 | localstatedir=$ac_optarg ;; |
252b5132 RH |
474 | |
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
476 | ac_prev=mandir ;; | |
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
42ecbf5e | 478 | mandir=$ac_optarg ;; |
252b5132 RH |
479 | |
480 | -nfp | --nfp | --nf) | |
481 | # Obsolete; use --without-fp. | |
482 | with_fp=no ;; | |
483 | ||
484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
42ecbf5e | 485 | | --no-cr | --no-c | -n) |
252b5132 RH |
486 | no_create=yes ;; |
487 | ||
488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
490 | no_recursion=yes ;; | |
491 | ||
492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
494 | | --oldin | --oldi | --old | --ol | --o) | |
495 | ac_prev=oldincludedir ;; | |
496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
42ecbf5e | 499 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
500 | |
501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
502 | ac_prev=prefix ;; | |
503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
42ecbf5e | 504 | prefix=$ac_optarg ;; |
252b5132 RH |
505 | |
506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
507 | | --program-pre | --program-pr | --program-p) | |
508 | ac_prev=program_prefix ;; | |
509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
42ecbf5e | 511 | program_prefix=$ac_optarg ;; |
252b5132 RH |
512 | |
513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
514 | | --program-suf | --program-su | --program-s) | |
515 | ac_prev=program_suffix ;; | |
516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
42ecbf5e | 518 | program_suffix=$ac_optarg ;; |
252b5132 RH |
519 | |
520 | -program-transform-name | --program-transform-name \ | |
521 | | --program-transform-nam | --program-transform-na \ | |
522 | | --program-transform-n | --program-transform- \ | |
523 | | --program-transform | --program-transfor \ | |
524 | | --program-transfo | --program-transf \ | |
525 | | --program-trans | --program-tran \ | |
526 | | --progr-tra | --program-tr | --program-t) | |
527 | ac_prev=program_transform_name ;; | |
528 | -program-transform-name=* | --program-transform-name=* \ | |
529 | | --program-transform-nam=* | --program-transform-na=* \ | |
530 | | --program-transform-n=* | --program-transform-=* \ | |
531 | | --program-transform=* | --program-transfor=* \ | |
532 | | --program-transfo=* | --program-transf=* \ | |
533 | | --program-trans=* | --program-tran=* \ | |
534 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
42ecbf5e | 535 | program_transform_name=$ac_optarg ;; |
252b5132 RH |
536 | |
537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
538 | | -silent | --silent | --silen | --sile | --sil) | |
539 | silent=yes ;; | |
540 | ||
541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
542 | ac_prev=sbindir ;; | |
543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
544 | | --sbi=* | --sb=*) | |
42ecbf5e | 545 | sbindir=$ac_optarg ;; |
252b5132 RH |
546 | |
547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
549 | | --sharedst | --shareds | --shared | --share | --shar \ | |
550 | | --sha | --sh) | |
551 | ac_prev=sharedstatedir ;; | |
552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
555 | | --sha=* | --sh=*) | |
42ecbf5e | 556 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
557 | |
558 | -site | --site | --sit) | |
559 | ac_prev=site ;; | |
560 | -site=* | --site=* | --sit=*) | |
42ecbf5e | 561 | site=$ac_optarg ;; |
85fbca6a | 562 | |
252b5132 RH |
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
564 | ac_prev=srcdir ;; | |
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
42ecbf5e | 566 | srcdir=$ac_optarg ;; |
252b5132 RH |
567 | |
568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
569 | | --syscon | --sysco | --sysc | --sys | --sy) | |
570 | ac_prev=sysconfdir ;; | |
571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
42ecbf5e | 573 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
574 | |
575 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
42ecbf5e | 576 | ac_prev=target_alias ;; |
252b5132 | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
42ecbf5e | 578 | target_alias=$ac_optarg ;; |
252b5132 RH |
579 | |
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
581 | verbose=yes ;; | |
582 | ||
42ecbf5e DJ |
583 | -version | --version | --versio | --versi | --vers | -V) |
584 | ac_init_version=: ;; | |
252b5132 RH |
585 | |
586 | -with-* | --with-*) | |
42ecbf5e | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 588 | # Reject names that are not valid shell variable names. |
42ecbf5e DJ |
589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
591 | { (exit 1); exit 1; }; } | |
252b5132 | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
42ecbf5e DJ |
593 | case $ac_option in |
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
595 | *) ac_optarg=yes ;; |
596 | esac | |
42ecbf5e | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
252b5132 RH |
598 | |
599 | -without-* | --without-*) | |
42ecbf5e | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 601 | # Reject names that are not valid shell variable names. |
42ecbf5e DJ |
602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
604 | { (exit 1); exit 1; }; } | |
605 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
606 | eval "with_$ac_package=no" ;; | |
252b5132 RH |
607 | |
608 | --x) | |
609 | # Obsolete; use --with-x. | |
610 | with_x=yes ;; | |
611 | ||
612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
613 | | --x-incl | --x-inc | --x-in | --x-i) | |
614 | ac_prev=x_includes ;; | |
615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
42ecbf5e | 617 | x_includes=$ac_optarg ;; |
252b5132 RH |
618 | |
619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
621 | ac_prev=x_libraries ;; | |
622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
42ecbf5e | 624 | x_libraries=$ac_optarg ;; |
252b5132 | 625 | |
42ecbf5e DJ |
626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
627 | Try \`$0 --help' for more information." >&2 | |
628 | { (exit 1); exit 1; }; } | |
252b5132 RH |
629 | ;; |
630 | ||
42ecbf5e DJ |
631 | *=*) |
632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
633 | # Reject names that are not valid shell variable names. | |
634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
636 | { (exit 1); exit 1; }; } | |
637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
638 | eval "$ac_envvar='$ac_optarg'" | |
639 | export $ac_envvar ;; | |
640 | ||
252b5132 | 641 | *) |
42ecbf5e DJ |
642 | # FIXME: should be removed in autoconf 3.0. |
643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
252b5132 RH |
647 | ;; |
648 | ||
649 | esac | |
650 | done | |
651 | ||
652 | if test -n "$ac_prev"; then | |
42ecbf5e DJ |
653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
654 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
655 | { (exit 1); exit 1; }; } | |
252b5132 | 656 | fi |
252b5132 | 657 | |
42ecbf5e DJ |
658 | # Be sure to have absolute paths. |
659 | for ac_var in exec_prefix prefix | |
660 | do | |
661 | eval ac_val=$`echo $ac_var` | |
662 | case $ac_val in | |
663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
665 | { (exit 1); exit 1; }; };; | |
666 | esac | |
667 | done | |
252b5132 | 668 | |
42ecbf5e DJ |
669 | # Be sure to have absolute paths. |
670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
671 | localstatedir libdir includedir oldincludedir infodir mandir | |
252b5132 | 672 | do |
42ecbf5e DJ |
673 | eval ac_val=$`echo $ac_var` |
674 | case $ac_val in | |
675 | [\\/$]* | ?:[\\/]* ) ;; | |
676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
677 | { (exit 1); exit 1; }; };; | |
252b5132 RH |
678 | esac |
679 | done | |
680 | ||
42ecbf5e DJ |
681 | # There might be people who depend on the old broken behavior: `$host' |
682 | # used to hold the argument of --host etc. | |
683 | # FIXME: To remove some day. | |
684 | build=$build_alias | |
685 | host=$host_alias | |
686 | target=$target_alias | |
687 | ||
688 | # FIXME: To remove some day. | |
689 | if test "x$host_alias" != x; then | |
690 | if test "x$build_alias" = x; then | |
691 | cross_compiling=maybe | |
692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
693 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
694 | elif test "x$build_alias" != "x$host_alias"; then | |
695 | cross_compiling=yes | |
696 | fi | |
697 | fi | |
e5a52504 | 698 | |
42ecbf5e DJ |
699 | ac_tool_prefix= |
700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
701 | ||
702 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 703 | |
252b5132 RH |
704 | |
705 | # Find the source files, if location was not specified. | |
706 | if test -z "$srcdir"; then | |
707 | ac_srcdir_defaulted=yes | |
708 | # Try the directory containing this script, then its parent. | |
42ecbf5e DJ |
709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
711 | X"$0" : 'X\(//\)[^/]' \| \ | |
712 | X"$0" : 'X\(//\)$' \| \ | |
713 | X"$0" : 'X\(/\)' \| \ | |
714 | . : '\(.\)' 2>/dev/null || | |
715 | echo X"$0" | | |
716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
718 | /^X\(\/\/\)$/{ s//\1/; q; } | |
719 | /^X\(\/\).*/{ s//\1/; q; } | |
720 | s/.*/./; q'` | |
252b5132 RH |
721 | srcdir=$ac_confdir |
722 | if test ! -r $srcdir/$ac_unique_file; then | |
723 | srcdir=.. | |
724 | fi | |
725 | else | |
726 | ac_srcdir_defaulted=no | |
727 | fi | |
728 | if test ! -r $srcdir/$ac_unique_file; then | |
729 | if test "$ac_srcdir_defaulted" = yes; then | |
42ecbf5e DJ |
730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
731 | { (exit 1); exit 1; }; } | |
252b5132 | 732 | else |
42ecbf5e DJ |
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
734 | { (exit 1); exit 1; }; } | |
252b5132 RH |
735 | fi |
736 | fi | |
42ecbf5e DJ |
737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
739 | { (exit 1); exit 1; }; } | |
740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
741 | ac_env_build_alias_set=${build_alias+set} | |
742 | ac_env_build_alias_value=$build_alias | |
743 | ac_cv_env_build_alias_set=${build_alias+set} | |
744 | ac_cv_env_build_alias_value=$build_alias | |
745 | ac_env_host_alias_set=${host_alias+set} | |
746 | ac_env_host_alias_value=$host_alias | |
747 | ac_cv_env_host_alias_set=${host_alias+set} | |
748 | ac_cv_env_host_alias_value=$host_alias | |
749 | ac_env_target_alias_set=${target_alias+set} | |
750 | ac_env_target_alias_value=$target_alias | |
751 | ac_cv_env_target_alias_set=${target_alias+set} | |
752 | ac_cv_env_target_alias_value=$target_alias | |
753 | ac_env_CC_set=${CC+set} | |
754 | ac_env_CC_value=$CC | |
755 | ac_cv_env_CC_set=${CC+set} | |
756 | ac_cv_env_CC_value=$CC | |
757 | ac_env_CFLAGS_set=${CFLAGS+set} | |
758 | ac_env_CFLAGS_value=$CFLAGS | |
759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
760 | ac_cv_env_CFLAGS_value=$CFLAGS | |
761 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
762 | ac_env_LDFLAGS_value=$LDFLAGS | |
763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
764 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
766 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
769 | ac_env_CPP_set=${CPP+set} | |
770 | ac_env_CPP_value=$CPP | |
771 | ac_cv_env_CPP_set=${CPP+set} | |
772 | ac_cv_env_CPP_value=$CPP | |
252b5132 | 773 | |
42ecbf5e DJ |
774 | # |
775 | # Report the --help message. | |
776 | # | |
777 | if test "$ac_init_help" = "long"; then | |
778 | # Omit some internal or obsolete options to make the list less imposing. | |
779 | # This message is too long to be a string in the A/UX 3.1 sh. | |
780 | cat <<_ACEOF | |
781 | \`configure' configures this package to adapt to many kinds of systems. | |
252b5132 | 782 | |
42ecbf5e | 783 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 784 | |
42ecbf5e DJ |
785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
786 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
252b5132 | 787 | |
42ecbf5e | 788 | Defaults for the options are specified in brackets. |
ac48eca1 | 789 | |
42ecbf5e DJ |
790 | Configuration: |
791 | -h, --help display this help and exit | |
792 | --help=short display options specific to this package | |
793 | --help=recursive display the short help of all the included packages | |
794 | -V, --version display version information and exit | |
795 | -q, --quiet, --silent do not print \`checking...' messages | |
796 | --cache-file=FILE cache test results in FILE [disabled] | |
797 | -C, --config-cache alias for \`--cache-file=config.cache' | |
798 | -n, --no-create do not create output files | |
799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
800 | ||
801 | _ACEOF | |
802 | ||
803 | cat <<_ACEOF | |
804 | Installation directories: | |
805 | --prefix=PREFIX install architecture-independent files in PREFIX | |
806 | [$ac_default_prefix] | |
807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
808 | [PREFIX] | |
ac48eca1 | 809 | |
42ecbf5e DJ |
810 | By default, \`make install' will install all the files in |
811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
813 | for instance \`--prefix=\$HOME'. | |
ac48eca1 | 814 | |
42ecbf5e | 815 | For better control, use the options below. |
ac48eca1 | 816 | |
42ecbf5e DJ |
817 | Fine tuning of the installation directories: |
818 | --bindir=DIR user executables [EPREFIX/bin] | |
819 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
820 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
821 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
825 | --libdir=DIR object code libraries [EPREFIX/lib] | |
826 | --includedir=DIR C header files [PREFIX/include] | |
827 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
828 | --infodir=DIR info documentation [PREFIX/info] | |
829 | --mandir=DIR man documentation [PREFIX/man] | |
830 | _ACEOF | |
ac48eca1 | 831 | |
42ecbf5e | 832 | cat <<\_ACEOF |
252b5132 | 833 | |
42ecbf5e DJ |
834 | Program names: |
835 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
836 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
837 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
252b5132 | 838 | |
42ecbf5e DJ |
839 | System types: |
840 | --build=BUILD configure for building on BUILD [guessed] | |
841 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
842 | --target=TARGET configure for building compilers for TARGET [HOST] | |
843 | _ACEOF | |
252b5132 | 844 | fi |
252b5132 | 845 | |
42ecbf5e | 846 | if test -n "$ac_init_help"; then |
252b5132 | 847 | |
42ecbf5e | 848 | cat <<\_ACEOF |
e5a52504 | 849 | |
42ecbf5e DJ |
850 | Optional Features: |
851 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
852 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
853 | --disable-dependency-tracking speeds up one-time build | |
854 | --enable-dependency-tracking do not reject slow dependency extractors | |
855 | --enable-shared=PKGS build shared libraries default=yes | |
856 | --enable-static=PKGS build static libraries default=yes | |
857 | --enable-fast-install=PKGS optimize for fast installation default=yes | |
858 | --disable-libtool-lock avoid locking (might break parallel builds) | |
859 | --enable-targets alternative target configurations | |
860 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) | |
241a6c40 AM |
861 | --enable-werror treat compile warnings as errors |
862 | --enable-build-warnings enable build-time compiler warnings | |
42ecbf5e DJ |
863 | --disable-nls do not use Native Language Support |
864 | --enable-maintainer-mode enable make rules and dependencies not useful | |
865 | (and sometimes confusing) to the casual installer | |
866 | ||
867 | Optional Packages: | |
868 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
869 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
870 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
871 | --with-pic try to use only PIC/non-PIC objects default=use both | |
872 | --with-lib-path=dir1:dir2... set default LIB_PATH | |
873 | --with-sysroot=DIR Search for usr/lib et al within DIR. | |
92f01d61 | 874 | --with-bugurl=URL Direct users to URL to report a bug |
42ecbf5e DJ |
875 | |
876 | Some influential environment variables: | |
877 | CC C compiler command | |
878 | CFLAGS C compiler flags | |
879 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
880 | nonstandard directory <lib dir> | |
881 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
882 | headers in a nonstandard directory <include dir> | |
883 | CPP C preprocessor | |
884 | ||
885 | Use these variables to override the choices made by `configure' or to help | |
886 | it to find libraries and programs with nonstandard names/locations. | |
887 | ||
888 | _ACEOF | |
889 | fi | |
890 | ||
891 | if test "$ac_init_help" = "recursive"; then | |
892 | # If there are subdirs, report their specific --help. | |
893 | ac_popdir=`pwd` | |
894 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
895 | test -d $ac_dir || continue | |
896 | ac_builddir=. | |
897 | ||
898 | if test "$ac_dir" != .; then | |
899 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
900 | # A "../" for each directory in $ac_dir_suffix. | |
901 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
902 | else | |
903 | ac_dir_suffix= ac_top_builddir= | |
904 | fi | |
905 | ||
906 | case $srcdir in | |
907 | .) # No --srcdir option. We are building in place. | |
908 | ac_srcdir=. | |
909 | if test -z "$ac_top_builddir"; then | |
910 | ac_top_srcdir=. | |
911 | else | |
912 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
913 | fi ;; | |
914 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
915 | ac_srcdir=$srcdir$ac_dir_suffix; | |
916 | ac_top_srcdir=$srcdir ;; | |
917 | *) # Relative path. | |
918 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
919 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
252b5132 RH |
920 | esac |
921 | ||
42ecbf5e DJ |
922 | # Do not use `cd foo && pwd` to compute absolute paths, because |
923 | # the directories may not exist. | |
924 | case `pwd` in | |
925 | .) ac_abs_builddir="$ac_dir";; | |
926 | *) | |
927 | case "$ac_dir" in | |
928 | .) ac_abs_builddir=`pwd`;; | |
929 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
930 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
931 | esac;; | |
932 | esac | |
933 | case $ac_abs_builddir in | |
934 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
935 | *) | |
936 | case ${ac_top_builddir}. in | |
937 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
938 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
939 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
940 | esac;; | |
941 | esac | |
942 | case $ac_abs_builddir in | |
943 | .) ac_abs_srcdir=$ac_srcdir;; | |
944 | *) | |
945 | case $ac_srcdir in | |
946 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
947 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
948 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
949 | esac;; | |
950 | esac | |
951 | case $ac_abs_builddir in | |
952 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
953 | *) | |
954 | case $ac_top_srcdir in | |
955 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
956 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
957 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
958 | esac;; | |
959 | esac | |
a2d91340 | 960 | |
42ecbf5e DJ |
961 | cd $ac_dir |
962 | # Check for guested configure; otherwise get Cygnus style configure. | |
963 | if test -f $ac_srcdir/configure.gnu; then | |
964 | echo | |
965 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
966 | elif test -f $ac_srcdir/configure; then | |
967 | echo | |
968 | $SHELL $ac_srcdir/configure --help=recursive | |
969 | elif test -f $ac_srcdir/configure.ac || | |
970 | test -f $ac_srcdir/configure.in; then | |
971 | echo | |
972 | $ac_configure --help | |
973 | else | |
974 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
975 | fi | |
502bdb00 | 976 | cd $ac_popdir |
42ecbf5e | 977 | done |
a2d91340 AC |
978 | fi |
979 | ||
42ecbf5e DJ |
980 | test -n "$ac_init_help" && exit 0 |
981 | if $ac_init_version; then | |
982 | cat <<\_ACEOF | |
a2d91340 | 983 | |
42ecbf5e DJ |
984 | Copyright (C) 2003 Free Software Foundation, Inc. |
985 | This configure script is free software; the Free Software Foundation | |
986 | gives unlimited permission to copy, distribute and modify it. | |
987 | _ACEOF | |
988 | exit 0 | |
989 | fi | |
990 | exec 5>config.log | |
991 | cat >&5 <<_ACEOF | |
992 | This file contains any messages produced by compilers while | |
993 | running configure, to aid debugging if configure makes a mistake. | |
a2d91340 | 994 | |
42ecbf5e DJ |
995 | It was created by $as_me, which was |
996 | generated by GNU Autoconf 2.59. Invocation command line was | |
a2d91340 | 997 | |
42ecbf5e | 998 | $ $0 $@ |
a2d91340 | 999 | |
42ecbf5e DJ |
1000 | _ACEOF |
1001 | { | |
1002 | cat <<_ASUNAME | |
1003 | ## --------- ## | |
1004 | ## Platform. ## | |
1005 | ## --------- ## | |
1006 | ||
1007 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1008 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1009 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1010 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1011 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1012 | ||
1013 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1014 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1015 | ||
1016 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1017 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1018 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1019 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1020 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1021 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1022 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1023 | ||
1024 | _ASUNAME | |
1025 | ||
1026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1027 | for as_dir in $PATH | |
1028 | do | |
1029 | IFS=$as_save_IFS | |
1030 | test -z "$as_dir" && as_dir=. | |
1031 | echo "PATH: $as_dir" | |
1032 | done | |
252b5132 | 1033 | |
42ecbf5e | 1034 | } >&5 |
5d64ca4e | 1035 | |
42ecbf5e | 1036 | cat >&5 <<_ACEOF |
5d64ca4e | 1037 | |
5d64ca4e | 1038 | |
42ecbf5e DJ |
1039 | ## ----------- ## |
1040 | ## Core tests. ## | |
1041 | ## ----------- ## | |
5d64ca4e | 1042 | |
42ecbf5e | 1043 | _ACEOF |
2469cfa2 | 1044 | |
42ecbf5e DJ |
1045 | |
1046 | # Keep a trace of the command line. | |
1047 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1048 | # Strip out --silent because we don't want to record it for future runs. | |
1049 | # Also quote any args containing shell meta-characters. | |
1050 | # Make two passes to allow for proper duplicate-argument suppression. | |
1051 | ac_configure_args= | |
1052 | ac_configure_args0= | |
1053 | ac_configure_args1= | |
1054 | ac_sep= | |
1055 | ac_must_keep_next=false | |
1056 | for ac_pass in 1 2 | |
1057 | do | |
1058 | for ac_arg | |
1059 | do | |
1060 | case $ac_arg in | |
1061 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1062 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1063 | | -silent | --silent | --silen | --sile | --sil) | |
1064 | continue ;; | |
1065 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1066 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1067 | esac | |
1068 | case $ac_pass in | |
1069 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1070 | 2) | |
1071 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1072 | if test $ac_must_keep_next = true; then | |
1073 | ac_must_keep_next=false # Got value, back to normal. | |
1074 | else | |
1075 | case $ac_arg in | |
1076 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1077 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1078 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1079 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1080 | case "$ac_configure_args0 " in | |
1081 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1082 | esac | |
1083 | ;; | |
1084 | -* ) ac_must_keep_next=true ;; | |
1085 | esac | |
1086 | fi | |
1087 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1088 | # Get rid of the leading space. | |
1089 | ac_sep=" " | |
1090 | ;; | |
1091 | esac | |
1092 | done | |
1093 | done | |
1094 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1095 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1096 | ||
1097 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1098 | # config.log. We remove comments because anyway the quotes in there | |
1099 | # would cause problems or look ugly. | |
1100 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1101 | # such as our DU 5.0 friend, will then `close' the trap. | |
1102 | trap 'exit_status=$? | |
1103 | # Save into config.log some information that might help in debugging. | |
1104 | { | |
1105 | echo | |
1106 | ||
1107 | cat <<\_ASBOX | |
1108 | ## ---------------- ## | |
1109 | ## Cache variables. ## | |
1110 | ## ---------------- ## | |
1111 | _ASBOX | |
1112 | echo | |
1113 | # The following way of writing the cache mishandles newlines in values, | |
1114 | { | |
1115 | (set) 2>&1 | | |
1116 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1117 | *ac_space=\ *) | |
1118 | sed -n \ | |
1119 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1120 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1121 | ;; | |
1122 | *) | |
1123 | sed -n \ | |
1124 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1125 | ;; | |
1126 | esac; | |
1127 | } | |
1128 | echo | |
1129 | ||
1130 | cat <<\_ASBOX | |
1131 | ## ----------------- ## | |
1132 | ## Output variables. ## | |
1133 | ## ----------------- ## | |
1134 | _ASBOX | |
1135 | echo | |
1136 | for ac_var in $ac_subst_vars | |
1137 | do | |
1138 | eval ac_val=$`echo $ac_var` | |
1139 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1140 | done | sort | |
1141 | echo | |
1142 | ||
1143 | if test -n "$ac_subst_files"; then | |
1144 | cat <<\_ASBOX | |
1145 | ## ------------- ## | |
1146 | ## Output files. ## | |
1147 | ## ------------- ## | |
1148 | _ASBOX | |
1149 | echo | |
1150 | for ac_var in $ac_subst_files | |
1151 | do | |
1152 | eval ac_val=$`echo $ac_var` | |
1153 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1154 | done | sort | |
1155 | echo | |
1156 | fi | |
1157 | ||
1158 | if test -s confdefs.h; then | |
1159 | cat <<\_ASBOX | |
1160 | ## ----------- ## | |
1161 | ## confdefs.h. ## | |
1162 | ## ----------- ## | |
1163 | _ASBOX | |
1164 | echo | |
1165 | sed "/^$/d" confdefs.h | sort | |
1166 | echo | |
1167 | fi | |
1168 | test "$ac_signal" != 0 && | |
1169 | echo "$as_me: caught signal $ac_signal" | |
1170 | echo "$as_me: exit $exit_status" | |
1171 | } >&5 | |
1172 | rm -f core *.core && | |
1173 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1174 | exit $exit_status | |
1175 | ' 0 | |
1176 | for ac_signal in 1 2 13 15; do | |
1177 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1178 | done | |
1179 | ac_signal=0 | |
1180 | ||
1181 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1182 | rm -rf conftest* confdefs.h | |
1183 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1184 | echo >confdefs.h | |
1185 | ||
1186 | # Predefined preprocessor variables. | |
1187 | ||
1188 | cat >>confdefs.h <<_ACEOF | |
1189 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1190 | _ACEOF | |
1191 | ||
1192 | ||
1193 | cat >>confdefs.h <<_ACEOF | |
1194 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1195 | _ACEOF | |
1196 | ||
1197 | ||
1198 | cat >>confdefs.h <<_ACEOF | |
1199 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1200 | _ACEOF | |
1201 | ||
1202 | ||
1203 | cat >>confdefs.h <<_ACEOF | |
1204 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1205 | _ACEOF | |
1206 | ||
1207 | ||
1208 | cat >>confdefs.h <<_ACEOF | |
1209 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1210 | _ACEOF | |
1211 | ||
1212 | ||
1213 | # Let the site file select an alternate cache file if it wants to. | |
1214 | # Prefer explicitly selected file to automatically selected ones. | |
1215 | if test -z "$CONFIG_SITE"; then | |
1216 | if test "x$prefix" != xNONE; then | |
1217 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1218 | else | |
1219 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1220 | fi | |
1221 | fi | |
1222 | for ac_site_file in $CONFIG_SITE; do | |
1223 | if test -r "$ac_site_file"; then | |
1224 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1225 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1226 | sed 's/^/| /' "$ac_site_file" >&5 | |
1227 | . "$ac_site_file" | |
1228 | fi | |
1229 | done | |
1230 | ||
1231 | if test -r "$cache_file"; then | |
1232 | # Some versions of bash will fail to source /dev/null (special | |
1233 | # files actually), so we avoid doing that. | |
1234 | if test -f "$cache_file"; then | |
1235 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1236 | echo "$as_me: loading cache $cache_file" >&6;} | |
1237 | case $cache_file in | |
1238 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1239 | *) . ./$cache_file;; | |
1240 | esac | |
1241 | fi | |
1242 | else | |
1243 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1244 | echo "$as_me: creating cache $cache_file" >&6;} | |
1245 | >$cache_file | |
1246 | fi | |
1247 | ||
1248 | # Check that the precious variables saved in the cache have kept the same | |
1249 | # value. | |
1250 | ac_cache_corrupted=false | |
1251 | for ac_var in `(set) 2>&1 | | |
1252 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1253 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1254 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1255 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1256 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1257 | case $ac_old_set,$ac_new_set in | |
1258 | set,) | |
1259 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1260 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1261 | ac_cache_corrupted=: ;; | |
1262 | ,set) | |
1263 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1264 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1265 | ac_cache_corrupted=: ;; | |
1266 | ,);; | |
1267 | *) | |
1268 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1269 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1270 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1271 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1272 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1273 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1274 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1275 | ac_cache_corrupted=: | |
1276 | fi;; | |
1277 | esac | |
1278 | # Pass precious variables to config.status. | |
1279 | if test "$ac_new_set" = set; then | |
1280 | case $ac_new_val in | |
1281 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1282 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1283 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1284 | esac | |
1285 | case " $ac_configure_args " in | |
1286 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1287 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1288 | esac | |
1289 | fi | |
1290 | done | |
1291 | if $ac_cache_corrupted; then | |
1292 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1293 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1294 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1295 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1296 | { (exit 1); exit 1; }; } | |
1297 | fi | |
1298 | ||
1299 | ac_ext=c | |
1300 | ac_cpp='$CPP $CPPFLAGS' | |
1301 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1302 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1303 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1304 | ||
1305 | ||
1306 | ||
1307 | ||
1308 | ||
1309 | ||
1310 | ||
1311 | ||
1312 | ||
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ||
1324 | ac_aux_dir= | |
1325 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1326 | if test -f $ac_dir/install-sh; then | |
1327 | ac_aux_dir=$ac_dir | |
1328 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1329 | break | |
1330 | elif test -f $ac_dir/install.sh; then | |
1331 | ac_aux_dir=$ac_dir | |
1332 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1333 | break | |
1334 | elif test -f $ac_dir/shtool; then | |
1335 | ac_aux_dir=$ac_dir | |
1336 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1337 | break | |
1338 | fi | |
1339 | done | |
1340 | if test -z "$ac_aux_dir"; then | |
1341 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1342 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1343 | { (exit 1); exit 1; }; } | |
1344 | fi | |
1345 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1346 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1347 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1348 | ||
1349 | # Make sure we can run config.sub. | |
1350 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1351 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1352 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1353 | { (exit 1); exit 1; }; } | |
1354 | ||
1355 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1356 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1357 | if test "${ac_cv_build+set}" = set; then | |
1358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1359 | else | |
1360 | ac_cv_build_alias=$build_alias | |
1361 | test -z "$ac_cv_build_alias" && | |
1362 | ac_cv_build_alias=`$ac_config_guess` | |
1363 | test -z "$ac_cv_build_alias" && | |
1364 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1365 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1366 | { (exit 1); exit 1; }; } | |
1367 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1368 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1369 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1370 | { (exit 1); exit 1; }; } | |
1371 | ||
1372 | fi | |
1373 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1374 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1375 | build=$ac_cv_build | |
1376 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1377 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1378 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1379 | ||
1380 | ||
1381 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1382 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1383 | if test "${ac_cv_host+set}" = set; then | |
1384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1385 | else | |
1386 | ac_cv_host_alias=$host_alias | |
1387 | test -z "$ac_cv_host_alias" && | |
1388 | ac_cv_host_alias=$ac_cv_build_alias | |
1389 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1390 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1391 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1392 | { (exit 1); exit 1; }; } | |
1393 | ||
1394 | fi | |
1395 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1396 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1397 | host=$ac_cv_host | |
1398 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1399 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1400 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1401 | ||
1402 | ||
1403 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1404 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1405 | if test "${ac_cv_target+set}" = set; then | |
1406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1407 | else | |
1408 | ac_cv_target_alias=$target_alias | |
1409 | test "x$ac_cv_target_alias" = "x" && | |
1410 | ac_cv_target_alias=$ac_cv_host_alias | |
1411 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1412 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1413 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1414 | { (exit 1); exit 1; }; } | |
1415 | ||
1416 | fi | |
1417 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1418 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1419 | target=$ac_cv_target | |
1420 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1421 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1422 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1423 | ||
1424 | ||
1425 | # The aliases save the names the user supplied, while $host etc. | |
1426 | # will get canonicalized. | |
1427 | test -n "$target_alias" && | |
1428 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1429 | NONENONEs,x,x, && | |
1430 | program_prefix=${target_alias}- | |
1431 | ac_ext=c | |
1432 | ac_cpp='$CPP $CPPFLAGS' | |
1433 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1434 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1435 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1436 | if test -n "$ac_tool_prefix"; then | |
1437 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1438 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1439 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1440 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1441 | if test "${ac_cv_prog_CC+set}" = set; then | |
1442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1443 | else | |
1444 | if test -n "$CC"; then | |
1445 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1446 | else | |
1447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1448 | for as_dir in $PATH | |
1449 | do | |
1450 | IFS=$as_save_IFS | |
1451 | test -z "$as_dir" && as_dir=. | |
1452 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1453 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1454 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1455 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1456 | break 2 | |
1457 | fi | |
1458 | done | |
1459 | done | |
1460 | ||
1461 | fi | |
1462 | fi | |
1463 | CC=$ac_cv_prog_CC | |
1464 | if test -n "$CC"; then | |
1465 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1466 | echo "${ECHO_T}$CC" >&6 | |
1467 | else | |
1468 | echo "$as_me:$LINENO: result: no" >&5 | |
1469 | echo "${ECHO_T}no" >&6 | |
1470 | fi | |
1471 | ||
1472 | fi | |
1473 | if test -z "$ac_cv_prog_CC"; then | |
1474 | ac_ct_CC=$CC | |
1475 | # Extract the first word of "gcc", so it can be a program name with args. | |
1476 | set dummy gcc; ac_word=$2 | |
1477 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1478 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1479 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1481 | else | |
1482 | if test -n "$ac_ct_CC"; then | |
1483 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1484 | else | |
1485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1486 | for as_dir in $PATH | |
1487 | do | |
1488 | IFS=$as_save_IFS | |
1489 | test -z "$as_dir" && as_dir=. | |
1490 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1491 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1492 | ac_cv_prog_ac_ct_CC="gcc" | |
1493 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1494 | break 2 | |
1495 | fi | |
1496 | done | |
1497 | done | |
1498 | ||
1499 | fi | |
1500 | fi | |
1501 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1502 | if test -n "$ac_ct_CC"; then | |
1503 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1504 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1505 | else | |
1506 | echo "$as_me:$LINENO: result: no" >&5 | |
1507 | echo "${ECHO_T}no" >&6 | |
1508 | fi | |
1509 | ||
1510 | CC=$ac_ct_CC | |
1511 | else | |
1512 | CC="$ac_cv_prog_CC" | |
1513 | fi | |
1514 | ||
1515 | if test -z "$CC"; then | |
1516 | if test -n "$ac_tool_prefix"; then | |
1517 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1518 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1519 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1520 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1521 | if test "${ac_cv_prog_CC+set}" = set; then | |
1522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1523 | else | |
1524 | if test -n "$CC"; then | |
1525 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1526 | else | |
1527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1528 | for as_dir in $PATH | |
1529 | do | |
1530 | IFS=$as_save_IFS | |
1531 | test -z "$as_dir" && as_dir=. | |
1532 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1533 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1534 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1535 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1536 | break 2 | |
1537 | fi | |
1538 | done | |
1539 | done | |
1540 | ||
1541 | fi | |
1542 | fi | |
1543 | CC=$ac_cv_prog_CC | |
1544 | if test -n "$CC"; then | |
1545 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1546 | echo "${ECHO_T}$CC" >&6 | |
1547 | else | |
1548 | echo "$as_me:$LINENO: result: no" >&5 | |
1549 | echo "${ECHO_T}no" >&6 | |
1550 | fi | |
1551 | ||
1552 | fi | |
1553 | if test -z "$ac_cv_prog_CC"; then | |
1554 | ac_ct_CC=$CC | |
1555 | # Extract the first word of "cc", so it can be a program name with args. | |
1556 | set dummy cc; ac_word=$2 | |
1557 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1558 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1559 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1561 | else | |
1562 | if test -n "$ac_ct_CC"; then | |
1563 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1564 | else | |
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 | ac_cv_prog_ac_ct_CC="cc" | |
1573 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1574 | break 2 | |
1575 | fi | |
1576 | done | |
1577 | done | |
1578 | ||
1579 | fi | |
1580 | fi | |
1581 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1582 | if test -n "$ac_ct_CC"; then | |
1583 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1584 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1585 | else | |
1586 | echo "$as_me:$LINENO: result: no" >&5 | |
1587 | echo "${ECHO_T}no" >&6 | |
1588 | fi | |
1589 | ||
1590 | CC=$ac_ct_CC | |
1591 | else | |
1592 | CC="$ac_cv_prog_CC" | |
1593 | fi | |
1594 | ||
1595 | fi | |
1596 | if test -z "$CC"; then | |
1597 | # Extract the first word of "cc", so it can be a program name with args. | |
1598 | set dummy cc; ac_word=$2 | |
1599 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1600 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1601 | if test "${ac_cv_prog_CC+set}" = set; then | |
1602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1603 | else | |
1604 | if test -n "$CC"; then | |
1605 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1606 | else | |
1607 | ac_prog_rejected=no | |
1608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1609 | for as_dir in $PATH | |
1610 | do | |
1611 | IFS=$as_save_IFS | |
1612 | test -z "$as_dir" && as_dir=. | |
1613 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1614 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1615 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1616 | ac_prog_rejected=yes | |
1617 | continue | |
1618 | fi | |
1619 | ac_cv_prog_CC="cc" | |
1620 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1621 | break 2 | |
1622 | fi | |
1623 | done | |
1624 | done | |
1625 | ||
1626 | if test $ac_prog_rejected = yes; then | |
1627 | # We found a bogon in the path, so make sure we never use it. | |
1628 | set dummy $ac_cv_prog_CC | |
1629 | shift | |
1630 | if test $# != 0; then | |
1631 | # We chose a different compiler from the bogus one. | |
1632 | # However, it has the same basename, so the bogon will be chosen | |
1633 | # first if we set CC to just the basename; use the full file name. | |
1634 | shift | |
1635 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1636 | fi | |
1637 | fi | |
1638 | fi | |
1639 | fi | |
1640 | CC=$ac_cv_prog_CC | |
1641 | if test -n "$CC"; then | |
1642 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1643 | echo "${ECHO_T}$CC" >&6 | |
1644 | else | |
1645 | echo "$as_me:$LINENO: result: no" >&5 | |
1646 | echo "${ECHO_T}no" >&6 | |
1647 | fi | |
1648 | ||
1649 | fi | |
1650 | if test -z "$CC"; then | |
1651 | if test -n "$ac_tool_prefix"; then | |
1652 | for ac_prog in cl | |
1653 | do | |
1654 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1655 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1656 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1657 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1658 | if test "${ac_cv_prog_CC+set}" = set; then | |
1659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1660 | else | |
1661 | if test -n "$CC"; then | |
1662 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1663 | else | |
1664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1665 | for as_dir in $PATH | |
1666 | do | |
1667 | IFS=$as_save_IFS | |
1668 | test -z "$as_dir" && as_dir=. | |
1669 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1670 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1671 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1672 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1673 | break 2 | |
1674 | fi | |
1675 | done | |
1676 | done | |
1677 | ||
1678 | fi | |
1679 | fi | |
1680 | CC=$ac_cv_prog_CC | |
1681 | if test -n "$CC"; then | |
1682 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1683 | echo "${ECHO_T}$CC" >&6 | |
1684 | else | |
1685 | echo "$as_me:$LINENO: result: no" >&5 | |
1686 | echo "${ECHO_T}no" >&6 | |
1687 | fi | |
1688 | ||
1689 | test -n "$CC" && break | |
1690 | done | |
1691 | fi | |
1692 | if test -z "$CC"; then | |
1693 | ac_ct_CC=$CC | |
1694 | for ac_prog in cl | |
1695 | do | |
1696 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1697 | set dummy $ac_prog; ac_word=$2 | |
1698 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1699 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1700 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1702 | else | |
1703 | if test -n "$ac_ct_CC"; then | |
1704 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1705 | else | |
1706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1707 | for as_dir in $PATH | |
1708 | do | |
1709 | IFS=$as_save_IFS | |
1710 | test -z "$as_dir" && as_dir=. | |
1711 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1712 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1713 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1714 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1715 | break 2 | |
1716 | fi | |
1717 | done | |
1718 | done | |
1719 | ||
1720 | fi | |
1721 | fi | |
1722 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1723 | if test -n "$ac_ct_CC"; then | |
1724 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1725 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1726 | else | |
1727 | echo "$as_me:$LINENO: result: no" >&5 | |
1728 | echo "${ECHO_T}no" >&6 | |
1729 | fi | |
1730 | ||
1731 | test -n "$ac_ct_CC" && break | |
1732 | done | |
1733 | ||
1734 | CC=$ac_ct_CC | |
1735 | fi | |
1736 | ||
1737 | fi | |
1738 | ||
1739 | ||
1740 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1741 | See \`config.log' for more details." >&5 | |
1742 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1743 | See \`config.log' for more details." >&2;} | |
1744 | { (exit 1); exit 1; }; } | |
1745 | ||
1746 | # Provide some information about the compiler. | |
1747 | echo "$as_me:$LINENO:" \ | |
1748 | "checking for C compiler version" >&5 | |
1749 | ac_compiler=`set X $ac_compile; echo $2` | |
1750 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1751 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1752 | ac_status=$? | |
1753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1754 | (exit $ac_status); } | |
1755 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1756 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1757 | ac_status=$? | |
1758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1759 | (exit $ac_status); } | |
1760 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1761 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1762 | ac_status=$? | |
1763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1764 | (exit $ac_status); } | |
1765 | ||
1766 | cat >conftest.$ac_ext <<_ACEOF | |
1767 | /* confdefs.h. */ | |
1768 | _ACEOF | |
1769 | cat confdefs.h >>conftest.$ac_ext | |
1770 | cat >>conftest.$ac_ext <<_ACEOF | |
1771 | /* end confdefs.h. */ | |
1772 | ||
1773 | int | |
1774 | main () | |
1775 | { | |
1776 | ||
1777 | ; | |
1778 | return 0; | |
1779 | } | |
1780 | _ACEOF | |
1781 | ac_clean_files_save=$ac_clean_files | |
1782 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1783 | # Try to create an executable without -o first, disregard a.out. | |
1784 | # It will help us diagnose broken compilers, and finding out an intuition | |
1785 | # of exeext. | |
1786 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1787 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1788 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1789 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1790 | (eval $ac_link_default) 2>&5 | |
1791 | ac_status=$? | |
1792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1793 | (exit $ac_status); }; then | |
1794 | # Find the output, starting from the most likely. This scheme is | |
1795 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1796 | # resort. | |
1797 | ||
1798 | # Be careful to initialize this variable, since it used to be cached. | |
1799 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1800 | ac_cv_exeext= | |
1801 | # b.out is created by i960 compilers. | |
1802 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1803 | do | |
1804 | test -f "$ac_file" || continue | |
1805 | case $ac_file in | |
1806 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1807 | ;; | |
1808 | conftest.$ac_ext ) | |
1809 | # This is the source file. | |
1810 | ;; | |
1811 | [ab].out ) | |
1812 | # We found the default executable, but exeext='' is most | |
1813 | # certainly right. | |
1814 | break;; | |
1815 | *.* ) | |
1816 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1817 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1818 | # but it would be cool to find out if it's true. Does anybody | |
1819 | # maintain Libtool? --akim. | |
1820 | export ac_cv_exeext | |
1821 | break;; | |
1822 | * ) | |
1823 | break;; | |
1824 | esac | |
1825 | done | |
1826 | else | |
1827 | echo "$as_me: failed program was:" >&5 | |
1828 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1829 | ||
1830 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1831 | See \`config.log' for more details." >&5 | |
1832 | echo "$as_me: error: C compiler cannot create executables | |
1833 | See \`config.log' for more details." >&2;} | |
1834 | { (exit 77); exit 77; }; } | |
1835 | fi | |
1836 | ||
1837 | ac_exeext=$ac_cv_exeext | |
1838 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1839 | echo "${ECHO_T}$ac_file" >&6 | |
1840 | ||
1841 | # Check the compiler produces executables we can run. If not, either | |
1842 | # the compiler is broken, or we cross compile. | |
1843 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1844 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1845 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1846 | # If not cross compiling, check that we can run a simple program. | |
1847 | if test "$cross_compiling" != yes; then | |
1848 | if { ac_try='./$ac_file' | |
1849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1850 | (eval $ac_try) 2>&5 | |
1851 | ac_status=$? | |
1852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1853 | (exit $ac_status); }; }; then | |
1854 | cross_compiling=no | |
1855 | else | |
1856 | if test "$cross_compiling" = maybe; then | |
1857 | cross_compiling=yes | |
1858 | else | |
1859 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1860 | If you meant to cross compile, use \`--host'. | |
1861 | See \`config.log' for more details." >&5 | |
1862 | echo "$as_me: error: cannot run C compiled programs. | |
1863 | If you meant to cross compile, use \`--host'. | |
1864 | See \`config.log' for more details." >&2;} | |
1865 | { (exit 1); exit 1; }; } | |
1866 | fi | |
1867 | fi | |
1868 | fi | |
1869 | echo "$as_me:$LINENO: result: yes" >&5 | |
1870 | echo "${ECHO_T}yes" >&6 | |
1871 | ||
1872 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1873 | ac_clean_files=$ac_clean_files_save | |
1874 | # Check the compiler produces executables we can run. If not, either | |
1875 | # the compiler is broken, or we cross compile. | |
1876 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1877 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1878 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1879 | echo "${ECHO_T}$cross_compiling" >&6 | |
1880 | ||
1881 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1882 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1883 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1884 | (eval $ac_link) 2>&5 | |
1885 | ac_status=$? | |
1886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1887 | (exit $ac_status); }; then | |
1888 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1889 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1890 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1891 | # `rm'. | |
1892 | for ac_file in conftest.exe conftest conftest.*; do | |
1893 | test -f "$ac_file" || continue | |
1894 | case $ac_file in | |
1895 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1896 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1897 | export ac_cv_exeext | |
1898 | break;; | |
1899 | * ) break;; | |
1900 | esac | |
1901 | done | |
1902 | else | |
1903 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
1904 | See \`config.log' for more details." >&5 | |
1905 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1906 | See \`config.log' for more details." >&2;} | |
1907 | { (exit 1); exit 1; }; } | |
1908 | fi | |
1909 | ||
1910 | rm -f conftest$ac_cv_exeext | |
1911 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1912 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1913 | ||
1914 | rm -f conftest.$ac_ext | |
1915 | EXEEXT=$ac_cv_exeext | |
1916 | ac_exeext=$EXEEXT | |
1917 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
1918 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1919 | if test "${ac_cv_objext+set}" = set; then | |
1920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1921 | else | |
1922 | cat >conftest.$ac_ext <<_ACEOF | |
1923 | /* confdefs.h. */ | |
1924 | _ACEOF | |
1925 | cat confdefs.h >>conftest.$ac_ext | |
1926 | cat >>conftest.$ac_ext <<_ACEOF | |
1927 | /* end confdefs.h. */ | |
1928 | ||
1929 | int | |
1930 | main () | |
1931 | { | |
1932 | ||
1933 | ; | |
1934 | return 0; | |
1935 | } | |
1936 | _ACEOF | |
1937 | rm -f conftest.o conftest.obj | |
1938 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1939 | (eval $ac_compile) 2>&5 | |
1940 | ac_status=$? | |
1941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1942 | (exit $ac_status); }; then | |
1943 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1944 | case $ac_file in | |
1945 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
1946 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1947 | break;; | |
1948 | esac | |
1949 | done | |
1950 | else | |
1951 | echo "$as_me: failed program was:" >&5 | |
1952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1953 | ||
1954 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1955 | See \`config.log' for more details." >&5 | |
1956 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1957 | See \`config.log' for more details." >&2;} | |
1958 | { (exit 1); exit 1; }; } | |
1959 | fi | |
1960 | ||
1961 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
1962 | fi | |
1963 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
1964 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1965 | OBJEXT=$ac_cv_objext | |
1966 | ac_objext=$OBJEXT | |
1967 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
1968 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1969 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1971 | else | |
1972 | cat >conftest.$ac_ext <<_ACEOF | |
1973 | /* confdefs.h. */ | |
1974 | _ACEOF | |
1975 | cat confdefs.h >>conftest.$ac_ext | |
1976 | cat >>conftest.$ac_ext <<_ACEOF | |
1977 | /* end confdefs.h. */ | |
1978 | ||
1979 | int | |
1980 | main () | |
1981 | { | |
1982 | #ifndef __GNUC__ | |
1983 | choke me | |
1984 | #endif | |
1985 | ||
1986 | ; | |
1987 | return 0; | |
1988 | } | |
1989 | _ACEOF | |
1990 | rm -f conftest.$ac_objext | |
1991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1992 | (eval $ac_compile) 2>conftest.er1 | |
1993 | ac_status=$? | |
1994 | grep -v '^ *+' conftest.er1 >conftest.err | |
1995 | rm -f conftest.er1 | |
1996 | cat conftest.err >&5 | |
1997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1998 | (exit $ac_status); } && | |
502bdb00 JW |
1999 | { ac_try='test -z "$ac_c_werror_flag" |
2000 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2002 | (eval $ac_try) 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_compiler_gnu=yes | |
2013 | else | |
2014 | echo "$as_me: failed program was:" >&5 | |
2015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2016 | ||
2017 | ac_compiler_gnu=no | |
2018 | fi | |
2019 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2020 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2021 | ||
2022 | fi | |
2023 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2024 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2025 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2026 | ac_test_CFLAGS=${CFLAGS+set} | |
2027 | ac_save_CFLAGS=$CFLAGS | |
2028 | CFLAGS="-g" | |
2029 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2030 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2031 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2033 | else | |
2034 | cat >conftest.$ac_ext <<_ACEOF | |
2035 | /* confdefs.h. */ | |
2036 | _ACEOF | |
2037 | cat confdefs.h >>conftest.$ac_ext | |
2038 | cat >>conftest.$ac_ext <<_ACEOF | |
2039 | /* end confdefs.h. */ | |
2040 | ||
2041 | int | |
2042 | main () | |
2043 | { | |
2044 | ||
2045 | ; | |
2046 | return 0; | |
2047 | } | |
2048 | _ACEOF | |
2049 | rm -f conftest.$ac_objext | |
2050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2051 | (eval $ac_compile) 2>conftest.er1 | |
2052 | ac_status=$? | |
2053 | grep -v '^ *+' conftest.er1 >conftest.err | |
2054 | rm -f conftest.er1 | |
2055 | cat conftest.err >&5 | |
2056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2057 | (exit $ac_status); } && | |
502bdb00 JW |
2058 | { ac_try='test -z "$ac_c_werror_flag" |
2059 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2061 | (eval $ac_try) 2>&5 | |
2062 | ac_status=$? | |
2063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2064 | (exit $ac_status); }; } && | |
2065 | { ac_try='test -s conftest.$ac_objext' | |
2066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2067 | (eval $ac_try) 2>&5 | |
2068 | ac_status=$? | |
2069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2070 | (exit $ac_status); }; }; then | |
2071 | ac_cv_prog_cc_g=yes | |
2072 | else | |
2073 | echo "$as_me: failed program was:" >&5 | |
2074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2075 | ||
2076 | ac_cv_prog_cc_g=no | |
2077 | fi | |
2078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2079 | fi | |
2080 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2081 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2082 | if test "$ac_test_CFLAGS" = set; then | |
2083 | CFLAGS=$ac_save_CFLAGS | |
2084 | elif test $ac_cv_prog_cc_g = yes; then | |
2085 | if test "$GCC" = yes; then | |
2086 | CFLAGS="-g -O2" | |
2087 | else | |
2088 | CFLAGS="-g" | |
2089 | fi | |
2090 | else | |
2091 | if test "$GCC" = yes; then | |
2092 | CFLAGS="-O2" | |
2093 | else | |
2094 | CFLAGS= | |
2095 | fi | |
2096 | fi | |
2097 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2098 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2099 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2101 | else | |
2102 | ac_cv_prog_cc_stdc=no | |
2103 | ac_save_CC=$CC | |
2104 | cat >conftest.$ac_ext <<_ACEOF | |
2105 | /* confdefs.h. */ | |
2106 | _ACEOF | |
2107 | cat confdefs.h >>conftest.$ac_ext | |
2108 | cat >>conftest.$ac_ext <<_ACEOF | |
2109 | /* end confdefs.h. */ | |
2110 | #include <stdarg.h> | |
2111 | #include <stdio.h> | |
2112 | #include <sys/types.h> | |
2113 | #include <sys/stat.h> | |
2114 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2115 | struct buf { int x; }; | |
2116 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2117 | static char *e (p, i) | |
2118 | char **p; | |
2119 | int i; | |
2120 | { | |
2121 | return p[i]; | |
2122 | } | |
2123 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2124 | { | |
2125 | char *s; | |
2126 | va_list v; | |
2127 | va_start (v,p); | |
2128 | s = g (p, va_arg (v,int)); | |
2129 | va_end (v); | |
2130 | return s; | |
2131 | } | |
2132 | ||
2133 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2134 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2135 | These don't provoke an error unfortunately, instead are silently treated | |
2136 | as 'x'. The following induces an error, until -std1 is added to get | |
2137 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2138 | array size at least. It's necessary to write '\x00'==0 to get something | |
2139 | that's true only with -std1. */ | |
2140 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2141 | ||
2142 | int test (int i, double x); | |
2143 | struct s1 {int (*f) (int a);}; | |
2144 | struct s2 {int (*f) (double a);}; | |
2145 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2146 | int argc; | |
2147 | char **argv; | |
2148 | int | |
2149 | main () | |
2150 | { | |
2151 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2152 | ; | |
2153 | return 0; | |
2154 | } | |
2155 | _ACEOF | |
2156 | # Don't try gcc -ansi; that turns off useful extensions and | |
2157 | # breaks some systems' header files. | |
2158 | # AIX -qlanglvl=ansi | |
2159 | # Ultrix and OSF/1 -std1 | |
2160 | # HP-UX 10.20 and later -Ae | |
2161 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2162 | # SVR4 -Xc -D__EXTENSIONS__ | |
2163 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2164 | do | |
2165 | CC="$ac_save_CC $ac_arg" | |
2166 | rm -f conftest.$ac_objext | |
2167 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2168 | (eval $ac_compile) 2>conftest.er1 | |
2169 | ac_status=$? | |
2170 | grep -v '^ *+' conftest.er1 >conftest.err | |
2171 | rm -f conftest.er1 | |
2172 | cat conftest.err >&5 | |
2173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2174 | (exit $ac_status); } && | |
502bdb00 JW |
2175 | { ac_try='test -z "$ac_c_werror_flag" |
2176 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2178 | (eval $ac_try) 2>&5 | |
2179 | ac_status=$? | |
2180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2181 | (exit $ac_status); }; } && | |
2182 | { ac_try='test -s conftest.$ac_objext' | |
2183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2184 | (eval $ac_try) 2>&5 | |
2185 | ac_status=$? | |
2186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2187 | (exit $ac_status); }; }; then | |
2188 | ac_cv_prog_cc_stdc=$ac_arg | |
2189 | break | |
2190 | else | |
2191 | echo "$as_me: failed program was:" >&5 | |
2192 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2193 | ||
2194 | fi | |
2195 | rm -f conftest.err conftest.$ac_objext | |
2196 | done | |
2197 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2198 | CC=$ac_save_CC | |
2199 | ||
2200 | fi | |
2201 | ||
2202 | case "x$ac_cv_prog_cc_stdc" in | |
2203 | x|xno) | |
2204 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2205 | echo "${ECHO_T}none needed" >&6 ;; | |
2206 | *) | |
2207 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2208 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2209 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2210 | esac | |
2211 | ||
2212 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2213 | # in C++ we need to declare it. In case someone uses the same compiler | |
2214 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2215 | # the declaration of exit, since it's the most demanding environment. | |
2216 | cat >conftest.$ac_ext <<_ACEOF | |
2217 | #ifndef __cplusplus | |
2218 | choke me | |
2219 | #endif | |
2220 | _ACEOF | |
2221 | rm -f conftest.$ac_objext | |
2222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2223 | (eval $ac_compile) 2>conftest.er1 | |
2224 | ac_status=$? | |
2225 | grep -v '^ *+' conftest.er1 >conftest.err | |
2226 | rm -f conftest.er1 | |
2227 | cat conftest.err >&5 | |
2228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2229 | (exit $ac_status); } && | |
502bdb00 JW |
2230 | { ac_try='test -z "$ac_c_werror_flag" |
2231 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2233 | (eval $ac_try) 2>&5 | |
2234 | ac_status=$? | |
2235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2236 | (exit $ac_status); }; } && | |
2237 | { ac_try='test -s conftest.$ac_objext' | |
2238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2239 | (eval $ac_try) 2>&5 | |
2240 | ac_status=$? | |
2241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2242 | (exit $ac_status); }; }; then | |
2243 | for ac_declaration in \ | |
2244 | '' \ | |
2245 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2246 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2247 | 'extern "C" void exit (int) throw ();' \ | |
2248 | 'extern "C" void exit (int);' \ | |
2249 | 'void exit (int);' | |
2250 | do | |
2251 | cat >conftest.$ac_ext <<_ACEOF | |
2252 | /* confdefs.h. */ | |
2253 | _ACEOF | |
2254 | cat confdefs.h >>conftest.$ac_ext | |
2255 | cat >>conftest.$ac_ext <<_ACEOF | |
2256 | /* end confdefs.h. */ | |
2257 | $ac_declaration | |
2258 | #include <stdlib.h> | |
2259 | int | |
2260 | main () | |
2261 | { | |
2262 | exit (42); | |
2263 | ; | |
2264 | return 0; | |
2265 | } | |
2266 | _ACEOF | |
2267 | rm -f conftest.$ac_objext | |
2268 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2269 | (eval $ac_compile) 2>conftest.er1 | |
2270 | ac_status=$? | |
2271 | grep -v '^ *+' conftest.er1 >conftest.err | |
2272 | rm -f conftest.er1 | |
2273 | cat conftest.err >&5 | |
2274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2275 | (exit $ac_status); } && | |
502bdb00 JW |
2276 | { ac_try='test -z "$ac_c_werror_flag" |
2277 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2279 | (eval $ac_try) 2>&5 | |
2280 | ac_status=$? | |
2281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2282 | (exit $ac_status); }; } && | |
2283 | { ac_try='test -s conftest.$ac_objext' | |
2284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2285 | (eval $ac_try) 2>&5 | |
2286 | ac_status=$? | |
2287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2288 | (exit $ac_status); }; }; then | |
2289 | : | |
2290 | else | |
2291 | echo "$as_me: failed program was:" >&5 | |
2292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2293 | ||
2294 | continue | |
2295 | fi | |
2296 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2297 | cat >conftest.$ac_ext <<_ACEOF | |
2298 | /* confdefs.h. */ | |
2299 | _ACEOF | |
2300 | cat confdefs.h >>conftest.$ac_ext | |
2301 | cat >>conftest.$ac_ext <<_ACEOF | |
2302 | /* end confdefs.h. */ | |
2303 | $ac_declaration | |
2304 | int | |
2305 | main () | |
2306 | { | |
2307 | exit (42); | |
2308 | ; | |
2309 | return 0; | |
2310 | } | |
2311 | _ACEOF | |
2312 | rm -f conftest.$ac_objext | |
2313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2314 | (eval $ac_compile) 2>conftest.er1 | |
2315 | ac_status=$? | |
2316 | grep -v '^ *+' conftest.er1 >conftest.err | |
2317 | rm -f conftest.er1 | |
2318 | cat conftest.err >&5 | |
2319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2320 | (exit $ac_status); } && | |
502bdb00 JW |
2321 | { ac_try='test -z "$ac_c_werror_flag" |
2322 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2324 | (eval $ac_try) 2>&5 | |
2325 | ac_status=$? | |
2326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2327 | (exit $ac_status); }; } && | |
2328 | { ac_try='test -s conftest.$ac_objext' | |
2329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2330 | (eval $ac_try) 2>&5 | |
2331 | ac_status=$? | |
2332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2333 | (exit $ac_status); }; }; then | |
2334 | break | |
2335 | else | |
2336 | echo "$as_me: failed program was:" >&5 | |
2337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2338 | ||
2339 | fi | |
2340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2341 | done | |
2342 | rm -f conftest* | |
2343 | if test -n "$ac_declaration"; then | |
2344 | echo '#ifdef __cplusplus' >>confdefs.h | |
2345 | echo $ac_declaration >>confdefs.h | |
2346 | echo '#endif' >>confdefs.h | |
2347 | fi | |
2348 | ||
2349 | else | |
2350 | echo "$as_me: failed program was:" >&5 | |
2351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2352 | ||
2353 | fi | |
2354 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2355 | ac_ext=c | |
2356 | ac_cpp='$CPP $CPPFLAGS' | |
2357 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2358 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2359 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2360 | ||
2361 | ||
2362 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 | |
2363 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
2364 | if test "${ac_cv_search_strerror+set}" = set; then | |
2365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2366 | else | |
2367 | ac_func_search_save_LIBS=$LIBS | |
2368 | ac_cv_search_strerror=no | |
2369 | cat >conftest.$ac_ext <<_ACEOF | |
2370 | /* confdefs.h. */ | |
2371 | _ACEOF | |
2372 | cat confdefs.h >>conftest.$ac_ext | |
2373 | cat >>conftest.$ac_ext <<_ACEOF | |
2374 | /* end confdefs.h. */ | |
2375 | ||
2376 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2377 | #ifdef __cplusplus | |
2378 | extern "C" | |
2379 | #endif | |
2380 | /* We use char because int might match the return type of a gcc2 | |
2381 | builtin and then its argument prototype would still apply. */ | |
2382 | char strerror (); | |
2383 | int | |
2384 | main () | |
2385 | { | |
2386 | strerror (); | |
2387 | ; | |
2388 | return 0; | |
2389 | } | |
2390 | _ACEOF | |
2391 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2392 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2393 | (eval $ac_link) 2>conftest.er1 | |
2394 | ac_status=$? | |
2395 | grep -v '^ *+' conftest.er1 >conftest.err | |
2396 | rm -f conftest.er1 | |
2397 | cat conftest.err >&5 | |
2398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2399 | (exit $ac_status); } && | |
502bdb00 JW |
2400 | { ac_try='test -z "$ac_c_werror_flag" |
2401 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2403 | (eval $ac_try) 2>&5 | |
2404 | ac_status=$? | |
2405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2406 | (exit $ac_status); }; } && | |
2407 | { ac_try='test -s conftest$ac_exeext' | |
2408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2409 | (eval $ac_try) 2>&5 | |
2410 | ac_status=$? | |
2411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2412 | (exit $ac_status); }; }; then | |
2413 | ac_cv_search_strerror="none required" | |
2414 | else | |
2415 | echo "$as_me: failed program was:" >&5 | |
2416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2417 | ||
2418 | fi | |
2419 | rm -f conftest.err conftest.$ac_objext \ | |
2420 | conftest$ac_exeext conftest.$ac_ext | |
2421 | if test "$ac_cv_search_strerror" = no; then | |
2422 | for ac_lib in cposix; do | |
2423 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2424 | cat >conftest.$ac_ext <<_ACEOF | |
2425 | /* confdefs.h. */ | |
2426 | _ACEOF | |
2427 | cat confdefs.h >>conftest.$ac_ext | |
2428 | cat >>conftest.$ac_ext <<_ACEOF | |
2429 | /* end confdefs.h. */ | |
2430 | ||
2431 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2432 | #ifdef __cplusplus | |
2433 | extern "C" | |
2434 | #endif | |
2435 | /* We use char because int might match the return type of a gcc2 | |
2436 | builtin and then its argument prototype would still apply. */ | |
2437 | char strerror (); | |
2438 | int | |
2439 | main () | |
2440 | { | |
2441 | strerror (); | |
2442 | ; | |
2443 | return 0; | |
2444 | } | |
2445 | _ACEOF | |
2446 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2447 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2448 | (eval $ac_link) 2>conftest.er1 | |
2449 | ac_status=$? | |
2450 | grep -v '^ *+' conftest.er1 >conftest.err | |
2451 | rm -f conftest.er1 | |
2452 | cat conftest.err >&5 | |
2453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2454 | (exit $ac_status); } && | |
502bdb00 JW |
2455 | { ac_try='test -z "$ac_c_werror_flag" |
2456 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2458 | (eval $ac_try) 2>&5 | |
2459 | ac_status=$? | |
2460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2461 | (exit $ac_status); }; } && | |
2462 | { ac_try='test -s conftest$ac_exeext' | |
2463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2464 | (eval $ac_try) 2>&5 | |
2465 | ac_status=$? | |
2466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2467 | (exit $ac_status); }; }; then | |
2468 | ac_cv_search_strerror="-l$ac_lib" | |
2469 | break | |
2470 | else | |
2471 | echo "$as_me: failed program was:" >&5 | |
2472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2473 | ||
2474 | fi | |
2475 | rm -f conftest.err conftest.$ac_objext \ | |
2476 | conftest$ac_exeext conftest.$ac_ext | |
2477 | done | |
2478 | fi | |
2479 | LIBS=$ac_func_search_save_LIBS | |
2480 | fi | |
2481 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
2482 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2483 | if test "$ac_cv_search_strerror" != no; then | |
2484 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
2485 | ||
2486 | fi | |
e5a52504 MM |
2487 | |
2488 | ||
2489 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` | |
42ecbf5e | 2490 | am__api_version="1.9" |
e5a52504 MM |
2491 | # Find a good install program. We prefer a C program (faster), |
2492 | # so one script is as good as another. But avoid the broken or | |
2493 | # incompatible versions: | |
2494 | # SysV /etc/install, /usr/sbin/install | |
2495 | # SunOS /usr/etc/install | |
2496 | # IRIX /sbin/install | |
2497 | # AIX /bin/install | |
42ecbf5e | 2498 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e5a52504 MM |
2499 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2500 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2501 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
42ecbf5e | 2502 | # OS/2's system install, which has a completely different semantic |
e5a52504 | 2503 | # ./install, which can be erroneously created by make from ./install.sh. |
42ecbf5e DJ |
2504 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2505 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
e5a52504 | 2506 | if test -z "$INSTALL"; then |
42ecbf5e DJ |
2507 | if test "${ac_cv_path_install+set}" = set; then |
2508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e5a52504 | 2509 | else |
42ecbf5e DJ |
2510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2511 | for as_dir in $PATH | |
2512 | do | |
2513 | IFS=$as_save_IFS | |
2514 | test -z "$as_dir" && as_dir=. | |
2515 | # Account for people who put trailing slashes in PATH elements. | |
2516 | case $as_dir/ in | |
2517 | ./ | .// | /cC/* | \ | |
2518 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2519 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2520 | /usr/ucb/* ) ;; | |
2521 | *) | |
2522 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2523 | # Don't use installbsd from OSF since it installs stuff as root | |
2524 | # by default. | |
2525 | for ac_prog in ginstall scoinst install; do | |
2526 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2527 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
252b5132 | 2528 | if test $ac_prog = install && |
42ecbf5e | 2529 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
252b5132 RH |
2530 | # AIX install. It has an incompatible calling convention. |
2531 | : | |
42ecbf5e DJ |
2532 | elif test $ac_prog = install && |
2533 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2534 | # program-specific install script used by HP pwplus--don't use. | |
2535 | : | |
252b5132 | 2536 | else |
42ecbf5e DJ |
2537 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2538 | break 3 | |
252b5132 RH |
2539 | fi |
2540 | fi | |
2541 | done | |
42ecbf5e DJ |
2542 | done |
2543 | ;; | |
2544 | esac | |
2545 | done | |
2546 | ||
252b5132 RH |
2547 | |
2548 | fi | |
2549 | if test "${ac_cv_path_install+set}" = set; then | |
42ecbf5e | 2550 | INSTALL=$ac_cv_path_install |
252b5132 RH |
2551 | else |
2552 | # As a last resort, use the slow shell script. We don't cache a | |
2553 | # path for INSTALL within a source directory, because that will | |
2554 | # break other packages using the cache if that directory is | |
2555 | # removed, or if the path is relative. | |
42ecbf5e | 2556 | INSTALL=$ac_install_sh |
252b5132 RH |
2557 | fi |
2558 | fi | |
42ecbf5e DJ |
2559 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2560 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
2561 | |
2562 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2563 | # It thinks the first close brace ends the variable substitution. | |
2564 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2565 | ||
42ecbf5e | 2566 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
2567 | |
2568 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2569 | ||
42ecbf5e DJ |
2570 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2571 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
252b5132 RH |
2572 | # Just in case |
2573 | sleep 1 | |
42ecbf5e | 2574 | echo timestamp > conftest.file |
252b5132 RH |
2575 | # Do `set' in a subshell so we don't clobber the current shell's |
2576 | # arguments. Must try -L first in case configure is actually a | |
2577 | # symlink; some systems play weird games with the mod time of symlinks | |
2578 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2579 | # directory). | |
2580 | if ( | |
42ecbf5e | 2581 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
252b5132 RH |
2582 | if test "$*" = "X"; then |
2583 | # -L didn't work. | |
42ecbf5e | 2584 | set X `ls -t $srcdir/configure conftest.file` |
252b5132 | 2585 | fi |
42ecbf5e DJ |
2586 | rm -f conftest.file |
2587 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2588 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
2589 | |
2590 | # If neither matched, then we have a broken ls. This can happen | |
2591 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2592 | # broken ls alias from the environment. This has actually | |
2593 | # happened. Such a system could not be considered "sane". | |
42ecbf5e DJ |
2594 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2595 | alias in your environment" >&5 | |
2596 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2597 | alias in your environment" >&2;} | |
2598 | { (exit 1); exit 1; }; } | |
252b5132 RH |
2599 | fi |
2600 | ||
42ecbf5e | 2601 | test "$2" = conftest.file |
252b5132 RH |
2602 | ) |
2603 | then | |
2604 | # Ok. | |
2605 | : | |
2606 | else | |
42ecbf5e DJ |
2607 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2608 | Check your system clock" >&5 | |
2609 | echo "$as_me: error: newly created file is older than distributed files! | |
2610 | Check your system clock" >&2;} | |
2611 | { (exit 1); exit 1; }; } | |
252b5132 | 2612 | fi |
42ecbf5e DJ |
2613 | echo "$as_me:$LINENO: result: yes" >&5 |
2614 | echo "${ECHO_T}yes" >&6 | |
252b5132 | 2615 | test "$program_prefix" != NONE && |
42ecbf5e | 2616 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
252b5132 RH |
2617 | # Use a double $ so make ignores it. |
2618 | test "$program_suffix" != NONE && | |
42ecbf5e DJ |
2619 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
2620 | # Double any \ or $. echo might interpret backslashes. | |
2621 | # By default was `s,x,x', remove it if useless. | |
2622 | cat <<\_ACEOF >conftest.sed | |
2623 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2624 | _ACEOF | |
2625 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
2626 | rm conftest.sed | |
2627 | ||
2628 | # expand $ac_aux_dir to an absolute path | |
2629 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2630 | ||
2631 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2632 | # Use eval to expand $SHELL | |
2633 | if eval "$MISSING --run true"; then | |
2634 | am_missing_run="$MISSING --run " | |
2635 | else | |
2636 | am_missing_run= | |
2637 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2638 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2639 | fi | |
2640 | ||
2641 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
2642 | # We used to keeping the `.' as first argument, in order to | |
2643 | # allow $(mkdir_p) to be used without argument. As in | |
2644 | # $(mkdir_p) $(somedir) | |
2645 | # where $(somedir) is conditionally defined. However this is wrong | |
2646 | # for two reasons: | |
2647 | # 1. if the package is installed by a user who cannot write `.' | |
2648 | # make install will fail, | |
2649 | # 2. the above comment should most certainly read | |
2650 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
2651 | # so it does not work when $(somedir) is undefined and | |
2652 | # $(DESTDIR) is not. | |
2653 | # To support the latter case, we have to write | |
2654 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
2655 | # so the `.' trick is pointless. | |
2656 | mkdir_p='mkdir -p --' | |
2657 | else | |
2658 | # On NextStep and OpenStep, the `mkdir' command does not | |
2659 | # recognize any option. It will interpret all options as | |
2660 | # directories to create, and then abort because `.' already | |
2661 | # exists. | |
2662 | for d in ./-p ./--version; | |
2663 | do | |
2664 | test -d $d && rmdir $d | |
2665 | done | |
2666 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
2667 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
2668 | mkdir_p='$(mkinstalldirs)' | |
2669 | else | |
2670 | mkdir_p='$(install_sh) -d' | |
2671 | fi | |
2672 | fi | |
2673 | ||
2674 | for ac_prog in gawk mawk nawk awk | |
2675 | do | |
2676 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2677 | set dummy $ac_prog; ac_word=$2 | |
2678 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2679 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2680 | if test "${ac_cv_prog_AWK+set}" = set; then | |
2681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2682 | else | |
2683 | if test -n "$AWK"; then | |
2684 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2685 | else | |
2686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2687 | for as_dir in $PATH | |
2688 | do | |
2689 | IFS=$as_save_IFS | |
2690 | test -z "$as_dir" && as_dir=. | |
2691 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2692 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2693 | ac_cv_prog_AWK="$ac_prog" | |
2694 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2695 | break 2 | |
2696 | fi | |
2697 | done | |
2698 | done | |
2699 | ||
2700 | fi | |
2701 | fi | |
2702 | AWK=$ac_cv_prog_AWK | |
2703 | if test -n "$AWK"; then | |
2704 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
2705 | echo "${ECHO_T}$AWK" >&6 | |
2706 | else | |
2707 | echo "$as_me:$LINENO: result: no" >&5 | |
2708 | echo "${ECHO_T}no" >&6 | |
2709 | fi | |
252b5132 | 2710 | |
42ecbf5e DJ |
2711 | test -n "$AWK" && break |
2712 | done | |
252b5132 | 2713 | |
42ecbf5e DJ |
2714 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2715 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
2716 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
2717 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
2718 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 2719 | else |
42ecbf5e | 2720 | cat >conftest.make <<\_ACEOF |
252b5132 | 2721 | all: |
42ecbf5e DJ |
2722 | @echo 'ac_maketemp="$(MAKE)"' |
2723 | _ACEOF | |
252b5132 | 2724 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
42ecbf5e | 2725 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
252b5132 RH |
2726 | if test -n "$ac_maketemp"; then |
2727 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2728 | else | |
2729 | eval ac_cv_prog_make_${ac_make}_set=no | |
2730 | fi | |
42ecbf5e | 2731 | rm -f conftest.make |
252b5132 RH |
2732 | fi |
2733 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
42ecbf5e DJ |
2734 | echo "$as_me:$LINENO: result: yes" >&5 |
2735 | echo "${ECHO_T}yes" >&6 | |
252b5132 RH |
2736 | SET_MAKE= |
2737 | else | |
42ecbf5e DJ |
2738 | echo "$as_me:$LINENO: result: no" >&5 |
2739 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
2740 | SET_MAKE="MAKE=${MAKE-make}" |
2741 | fi | |
2742 | ||
42ecbf5e DJ |
2743 | rm -rf .tst 2>/dev/null |
2744 | mkdir .tst 2>/dev/null | |
2745 | if test -d .tst; then | |
2746 | am__leading_dot=. | |
2747 | else | |
2748 | am__leading_dot=_ | |
2749 | fi | |
2750 | rmdir .tst 2>/dev/null | |
2751 | ||
2752 | DEPDIR="${am__leading_dot}deps" | |
2753 | ||
2754 | ac_config_commands="$ac_config_commands depfiles" | |
2755 | ||
2756 | ||
2757 | am_make=${MAKE-make} | |
2758 | cat > confinc << 'END' | |
2759 | am__doit: | |
2760 | @echo done | |
2761 | .PHONY: am__doit | |
2762 | END | |
2763 | # If we don't find an include directive, just comment out the code. | |
2764 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2765 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2766 | am__include="#" | |
2767 | am__quote= | |
2768 | _am_result=none | |
2769 | # First try GNU make style include. | |
2770 | echo "include confinc" > confmf | |
2771 | # We grep out `Entering directory' and `Leaving directory' | |
2772 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2773 | # In particular we don't look at `^make:' because GNU make might | |
2774 | # be invoked under some other name (usually "gmake"), in which | |
2775 | # case it prints its new name instead of `make'. | |
2776 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2777 | am__include=include | |
2778 | am__quote= | |
2779 | _am_result=GNU | |
2780 | fi | |
2781 | # Now try BSD make style include. | |
2782 | if test "$am__include" = "#"; then | |
2783 | echo '.include "confinc"' > confmf | |
2784 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2785 | am__include=.include | |
2786 | am__quote="\"" | |
2787 | _am_result=BSD | |
2788 | fi | |
2789 | fi | |
2790 | ||
2791 | ||
2792 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2793 | echo "${ECHO_T}$_am_result" >&6 | |
2794 | rm -f confinc confmf | |
2795 | ||
2796 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
2797 | if test "${enable_dependency_tracking+set}" = set; then | |
2798 | enableval="$enable_dependency_tracking" | |
2799 | ||
2800 | fi; | |
2801 | if test "x$enable_dependency_tracking" != xno; then | |
2802 | am_depcomp="$ac_aux_dir/depcomp" | |
2803 | AMDEPBACKSLASH='\' | |
2804 | fi | |
2805 | ||
2806 | ||
2807 | if test "x$enable_dependency_tracking" != xno; then | |
2808 | AMDEP_TRUE= | |
2809 | AMDEP_FALSE='#' | |
2810 | else | |
2811 | AMDEP_TRUE='#' | |
2812 | AMDEP_FALSE= | |
2813 | fi | |
2814 | ||
e5a52504 MM |
2815 | |
2816 | ||
42ecbf5e DJ |
2817 | # test to see if srcdir already configured |
2818 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
2819 | test -f $srcdir/config.status; then | |
2820 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
2821 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2822 | { (exit 1); exit 1; }; } | |
2823 | fi | |
252b5132 | 2824 | |
42ecbf5e DJ |
2825 | # test whether we have cygpath |
2826 | if test -z "$CYGPATH_W"; then | |
2827 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2828 | CYGPATH_W='cygpath -w' | |
2829 | else | |
2830 | CYGPATH_W=echo | |
2831 | fi | |
252b5132 | 2832 | fi |
42ecbf5e DJ |
2833 | |
2834 | ||
2835 | # Define the identity of the package. | |
2836 | PACKAGE=ld | |
2837 | VERSION=${BFD_VERSION} | |
2838 | ||
2839 | ||
2840 | cat >>confdefs.h <<_ACEOF | |
e5a52504 | 2841 | #define PACKAGE "$PACKAGE" |
42ecbf5e DJ |
2842 | _ACEOF |
2843 | ||
252b5132 | 2844 | |
42ecbf5e | 2845 | cat >>confdefs.h <<_ACEOF |
e5a52504 | 2846 | #define VERSION "$VERSION" |
42ecbf5e DJ |
2847 | _ACEOF |
2848 | ||
2849 | # Some tools Automake needs. | |
2850 | ||
2851 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2852 | ||
2853 | ||
2854 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2855 | ||
2856 | ||
2857 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2858 | ||
2859 | ||
2860 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2861 | ||
e5a52504 | 2862 | |
42ecbf5e | 2863 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
e5a52504 | 2864 | |
42ecbf5e | 2865 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
e5a52504 | 2866 | |
42ecbf5e DJ |
2867 | # Installed binaries are usually stripped using `strip' when the user |
2868 | # run `make install-strip'. However `strip' might not be the right | |
2869 | # tool to use in cross-compilation environments, therefore Automake | |
2870 | # will honor the `STRIP' environment variable to overrule this program. | |
2871 | if test "$cross_compiling" != no; then | |
2872 | if test -n "$ac_tool_prefix"; then | |
2873 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2874 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2875 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2876 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2877 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2879 | else | |
2880 | if test -n "$STRIP"; then | |
2881 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2882 | else | |
2883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2884 | for as_dir in $PATH | |
2885 | do | |
2886 | IFS=$as_save_IFS | |
2887 | test -z "$as_dir" && as_dir=. | |
2888 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2889 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2890 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2891 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2892 | break 2 | |
2893 | fi | |
2894 | done | |
2895 | done | |
2896 | ||
2897 | fi | |
2898 | fi | |
2899 | STRIP=$ac_cv_prog_STRIP | |
2900 | if test -n "$STRIP"; then | |
2901 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2902 | echo "${ECHO_T}$STRIP" >&6 | |
2469cfa2 | 2903 | else |
42ecbf5e DJ |
2904 | echo "$as_me:$LINENO: result: no" >&5 |
2905 | echo "${ECHO_T}no" >&6 | |
2906 | fi | |
2907 | ||
e5a52504 | 2908 | fi |
42ecbf5e DJ |
2909 | if test -z "$ac_cv_prog_STRIP"; then |
2910 | ac_ct_STRIP=$STRIP | |
2911 | # Extract the first word of "strip", so it can be a program name with args. | |
2912 | set dummy strip; ac_word=$2 | |
2913 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2914 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2915 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2916 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2917 | else | |
2918 | if test -n "$ac_ct_STRIP"; then | |
2919 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2920 | else | |
2921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2922 | for as_dir in $PATH | |
2923 | do | |
2924 | IFS=$as_save_IFS | |
2925 | test -z "$as_dir" && as_dir=. | |
2926 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2927 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2928 | ac_cv_prog_ac_ct_STRIP="strip" | |
2929 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2930 | break 2 | |
2931 | fi | |
2932 | done | |
2933 | done | |
e5a52504 | 2934 | |
42ecbf5e DJ |
2935 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
2936 | fi | |
2937 | fi | |
2938 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2939 | if test -n "$ac_ct_STRIP"; then | |
2940 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2941 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
2469cfa2 | 2942 | else |
42ecbf5e DJ |
2943 | echo "$as_me:$LINENO: result: no" >&5 |
2944 | echo "${ECHO_T}no" >&6 | |
2469cfa2 NC |
2945 | fi |
2946 | ||
42ecbf5e | 2947 | STRIP=$ac_ct_STRIP |
2469cfa2 | 2948 | else |
42ecbf5e DJ |
2949 | STRIP="$ac_cv_prog_STRIP" |
2950 | fi | |
2951 | ||
2469cfa2 | 2952 | fi |
42ecbf5e DJ |
2953 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
2954 | ||
2955 | # We need awk for the "check" target. The system "awk" is bad on | |
2956 | # some platforms. | |
2957 | # Always define AMTAR for backward compatibility. | |
2958 | ||
2959 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2960 | ||
2961 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2962 | ||
2963 | ||
2964 | ||
2965 | ||
2966 | depcc="$CC" am_compiler_list= | |
2967 | ||
2968 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
2969 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
2970 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
2971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2972 | else | |
2973 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
2974 | # We make a subdir and do the tests there. Otherwise we can end up | |
2975 | # making bogus files that we don't know about and never remove. For | |
2976 | # instance it was reported that on HP-UX the gcc test will end up | |
2977 | # making a dummy file named `D' -- because `-MD' means `put the output | |
2978 | # in D'. | |
2979 | mkdir conftest.dir | |
2980 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
2981 | # using a relative directory. | |
2982 | cp "$am_depcomp" conftest.dir | |
2983 | cd conftest.dir | |
2984 | # We will build objects and dependencies in a subdirectory because | |
2985 | # it helps to detect inapplicable dependency modes. For instance | |
2986 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
2987 | # side effect of compilation, but ICC will put the dependencies in | |
2988 | # the current directory while Tru64 will put them in the object | |
2989 | # directory. | |
2990 | mkdir sub | |
2991 | ||
2992 | am_cv_CC_dependencies_compiler_type=none | |
2993 | if test "$am_compiler_list" = ""; then | |
2994 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
2995 | fi | |
2996 | for depmode in $am_compiler_list; do | |
2997 | # Setup a source with many dependencies, because some compilers | |
2998 | # like to wrap large dependency lists on column 80 (with \), and | |
2999 | # we should not choose a depcomp mode which is confused by this. | |
3000 | # | |
3001 | # We need to recreate these files for each test, as the compiler may | |
3002 | # overwrite some of them when testing with obscure command lines. | |
3003 | # This happens at least with the AIX C compiler. | |
3004 | : > sub/conftest.c | |
3005 | for i in 1 2 3 4 5 6; do | |
3006 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3007 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3008 | # Solaris 8's {/usr,}/bin/sh. | |
3009 | touch sub/conftst$i.h | |
3010 | done | |
3011 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3012 | ||
3013 | case $depmode in | |
3014 | nosideeffect) | |
3015 | # after this tag, mechanisms are not by side-effect, so they'll | |
3016 | # only be used when explicitly requested | |
3017 | if test "x$enable_dependency_tracking" = xyes; then | |
3018 | continue | |
3019 | else | |
3020 | break | |
3021 | fi | |
3022 | ;; | |
3023 | none) break ;; | |
3024 | esac | |
3025 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3026 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3027 | # handle `-M -o', and we need to detect this. | |
3028 | if depmode=$depmode \ | |
3029 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3030 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3031 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3032 | >/dev/null 2>conftest.err && | |
3033 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3034 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3035 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3036 | # icc doesn't choke on unknown options, it will just issue warnings | |
3037 | # or remarks (even with -Werror). So we grep stderr for any message | |
3038 | # that says an option was ignored or not supported. | |
3039 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3040 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3041 | # The diagnosis changed in icc 8.0: | |
3042 | # icc: Command line remark: option '-MP' not supported | |
3043 | if (grep 'ignoring option' conftest.err || | |
3044 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3045 | am_cv_CC_dependencies_compiler_type=$depmode | |
3046 | break | |
3047 | fi | |
3048 | fi | |
3049 | done | |
2469cfa2 | 3050 | |
42ecbf5e DJ |
3051 | cd .. |
3052 | rm -rf conftest.dir | |
2469cfa2 | 3053 | else |
42ecbf5e DJ |
3054 | am_cv_CC_dependencies_compiler_type=none |
3055 | fi | |
3056 | ||
2469cfa2 | 3057 | fi |
42ecbf5e DJ |
3058 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3059 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3060 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3061 | ||
2469cfa2 | 3062 | |
42ecbf5e DJ |
3063 | |
3064 | if | |
3065 | test "x$enable_dependency_tracking" != xno \ | |
3066 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3067 | am__fastdepCC_TRUE= | |
3068 | am__fastdepCC_FALSE='#' | |
2469cfa2 | 3069 | else |
42ecbf5e DJ |
3070 | am__fastdepCC_TRUE='#' |
3071 | am__fastdepCC_FALSE= | |
2469cfa2 | 3072 | fi |
2469cfa2 | 3073 | |
2469cfa2 | 3074 | |
e5a52504 | 3075 | |
42ecbf5e | 3076 | |
e5a52504 MM |
3077 | # Check whether --enable-shared or --disable-shared was given. |
3078 | if test "${enable_shared+set}" = set; then | |
3079 | enableval="$enable_shared" | |
3080 | p=${PACKAGE-default} | |
3081 | case $enableval in | |
3082 | yes) enable_shared=yes ;; | |
3083 | no) enable_shared=no ;; | |
3084 | *) | |
3085 | enable_shared=no | |
3086 | # Look at the argument we got. We use all the common list separators. | |
3087 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3088 | for pkg in $enableval; do | |
3089 | if test "X$pkg" = "X$p"; then | |
3090 | enable_shared=yes | |
3091 | fi | |
3092 | done | |
3093 | IFS="$ac_save_ifs" | |
3094 | ;; | |
3095 | esac | |
2469cfa2 | 3096 | else |
e5a52504 | 3097 | enable_shared=yes |
42ecbf5e | 3098 | fi; |
e5a52504 MM |
3099 | # Check whether --enable-static or --disable-static was given. |
3100 | if test "${enable_static+set}" = set; then | |
3101 | enableval="$enable_static" | |
3102 | p=${PACKAGE-default} | |
3103 | case $enableval in | |
3104 | yes) enable_static=yes ;; | |
3105 | no) enable_static=no ;; | |
3106 | *) | |
3107 | enable_static=no | |
3108 | # Look at the argument we got. We use all the common list separators. | |
3109 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3110 | for pkg in $enableval; do | |
3111 | if test "X$pkg" = "X$p"; then | |
3112 | enable_static=yes | |
3113 | fi | |
3114 | done | |
3115 | IFS="$ac_save_ifs" | |
3116 | ;; | |
3117 | esac | |
3118 | else | |
42ecbf5e DJ |
3119 | enable_static=yes |
3120 | fi; | |
3121 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
3122 | if test "${enable_fast_install+set}" = set; then | |
3123 | enableval="$enable_fast_install" | |
3124 | p=${PACKAGE-default} | |
3125 | case $enableval in | |
3126 | yes) enable_fast_install=yes ;; | |
3127 | no) enable_fast_install=no ;; | |
3128 | *) | |
3129 | enable_fast_install=no | |
3130 | # Look at the argument we got. We use all the common list separators. | |
3131 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3132 | for pkg in $enableval; do | |
3133 | if test "X$pkg" = "X$p"; then | |
3134 | enable_fast_install=yes | |
d15b04bd L |
3135 | fi |
3136 | done | |
3137 | IFS="$ac_save_ifs" | |
42ecbf5e DJ |
3138 | ;; |
3139 | esac | |
d15b04bd | 3140 | else |
42ecbf5e DJ |
3141 | enable_fast_install=yes |
3142 | fi; | |
2469cfa2 | 3143 | |
252b5132 RH |
3144 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3145 | if test "${with_gnu_ld+set}" = set; then | |
3146 | withval="$with_gnu_ld" | |
3147 | test "$withval" = no || with_gnu_ld=yes | |
3148 | else | |
3149 | with_gnu_ld=no | |
42ecbf5e | 3150 | fi; |
252b5132 | 3151 | ac_prog=ld |
c7e40348 | 3152 | if test "$GCC" = yes; then |
252b5132 | 3153 | # Check if gcc -print-prog-name=ld gives a path. |
42ecbf5e DJ |
3154 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
3155 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
ac48eca1 AO |
3156 | case $host in |
3157 | *-*-mingw*) | |
3158 | # gcc leaves a trailing carriage return which upsets mingw | |
3159 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3160 | *) | |
3161 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3162 | esac | |
c7e40348 | 3163 | case $ac_prog in |
252b5132 | 3164 | # Accept absolute paths. |
a74801ba | 3165 | [\\/]* | [A-Za-z]:[\\/]*) |
252b5132 RH |
3166 | re_direlt='/[^/][^/]*/\.\./' |
3167 | # Canonicalize the path of ld | |
3168 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
3169 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3170 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
3171 | done | |
3172 | test -z "$LD" && LD="$ac_prog" | |
3173 | ;; | |
3174 | "") | |
3175 | # If it fails, then pretend we aren't using GCC. | |
3176 | ac_prog=ld | |
3177 | ;; | |
3178 | *) | |
3179 | # If it is relative, then search for the first ld in PATH. | |
3180 | with_gnu_ld=unknown | |
3181 | ;; | |
3182 | esac | |
3183 | elif test "$with_gnu_ld" = yes; then | |
42ecbf5e DJ |
3184 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
3185 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
252b5132 | 3186 | else |
42ecbf5e DJ |
3187 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
3188 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
252b5132 | 3189 | fi |
42ecbf5e DJ |
3190 | if test "${lt_cv_path_LD+set}" = set; then |
3191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3192 | else |
3193 | if test -z "$LD"; then | |
a74801ba | 3194 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
252b5132 RH |
3195 | for ac_dir in $PATH; do |
3196 | test -z "$ac_dir" && ac_dir=. | |
a74801ba | 3197 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
c7e40348 | 3198 | lt_cv_path_LD="$ac_dir/$ac_prog" |
252b5132 RH |
3199 | # Check to see if the program is GNU ld. I'd rather use --version, |
3200 | # but apparently some GNU ld's only accept -v. | |
3201 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
c7e40348 | 3202 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
252b5132 RH |
3203 | test "$with_gnu_ld" != no && break |
3204 | else | |
3205 | test "$with_gnu_ld" != yes && break | |
3206 | fi | |
3207 | fi | |
3208 | done | |
3209 | IFS="$ac_save_ifs" | |
3210 | else | |
c7e40348 | 3211 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
252b5132 RH |
3212 | fi |
3213 | fi | |
3214 | ||
c7e40348 | 3215 | LD="$lt_cv_path_LD" |
252b5132 | 3216 | if test -n "$LD"; then |
42ecbf5e DJ |
3217 | echo "$as_me:$LINENO: result: $LD" >&5 |
3218 | echo "${ECHO_T}$LD" >&6 | |
252b5132 | 3219 | else |
42ecbf5e DJ |
3220 | echo "$as_me:$LINENO: result: no" >&5 |
3221 | echo "${ECHO_T}no" >&6 | |
252b5132 | 3222 | fi |
42ecbf5e DJ |
3223 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
3224 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3225 | { (exit 1); exit 1; }; } | |
3226 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3227 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3228 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3230 | else |
3231 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3232 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
c7e40348 | 3233 | lt_cv_prog_gnu_ld=yes |
252b5132 | 3234 | else |
c7e40348 | 3235 | lt_cv_prog_gnu_ld=no |
252b5132 RH |
3236 | fi |
3237 | fi | |
42ecbf5e DJ |
3238 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
3239 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
c7e40348 | 3240 | with_gnu_ld=$lt_cv_prog_gnu_ld |
252b5132 RH |
3241 | |
3242 | ||
42ecbf5e DJ |
3243 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
3244 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
3245 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
3246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3247 | else |
3248 | lt_cv_ld_reload_flag='-r' | |
3249 | fi | |
42ecbf5e DJ |
3250 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
3251 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
ac48eca1 AO |
3252 | reload_flag=$lt_cv_ld_reload_flag |
3253 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
3254 | ||
42ecbf5e DJ |
3255 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
3256 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
3257 | if test "${lt_cv_path_NM+set}" = set; then | |
3258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3259 | else |
3260 | if test -n "$NM"; then | |
3261 | # Let the user override the test. | |
c7e40348 | 3262 | lt_cv_path_NM="$NM" |
252b5132 | 3263 | else |
a74801ba | 3264 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
252b5132 RH |
3265 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
3266 | test -z "$ac_dir" && ac_dir=. | |
ac48eca1 AO |
3267 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
3268 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
252b5132 RH |
3269 | # Check to see if the nm accepts a BSD-compat flag. |
3270 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3271 | # nm: unknown option "B" ignored | |
58cccadb AO |
3272 | # Tru64's nm complains that /dev/null is an invalid object file |
3273 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
c7e40348 | 3274 | lt_cv_path_NM="$tmp_nm -B" |
252b5132 | 3275 | break |
ac48eca1 | 3276 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
c7e40348 | 3277 | lt_cv_path_NM="$tmp_nm -p" |
252b5132 RH |
3278 | break |
3279 | else | |
c7e40348 | 3280 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
252b5132 RH |
3281 | continue # so that we can try to find one that supports BSD flags |
3282 | fi | |
3283 | fi | |
3284 | done | |
3285 | IFS="$ac_save_ifs" | |
c7e40348 | 3286 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
252b5132 RH |
3287 | fi |
3288 | fi | |
3289 | ||
c7e40348 | 3290 | NM="$lt_cv_path_NM" |
42ecbf5e DJ |
3291 | echo "$as_me:$LINENO: result: $NM" >&5 |
3292 | echo "${ECHO_T}$NM" >&6 | |
252b5132 | 3293 | |
42ecbf5e DJ |
3294 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3295 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3296 | LN_S=$as_ln_s | |
3297 | if test "$LN_S" = "ln -s"; then | |
3298 | echo "$as_me:$LINENO: result: yes" >&5 | |
3299 | echo "${ECHO_T}yes" >&6 | |
d15b04bd | 3300 | else |
42ecbf5e DJ |
3301 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3302 | echo "${ECHO_T}no, using $LN_S" >&6 | |
252b5132 RH |
3303 | fi |
3304 | ||
42ecbf5e DJ |
3305 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 |
3306 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 | |
3307 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3309 | else |
d64552c5 | 3310 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
ac48eca1 AO |
3311 | lt_cv_file_magic_test_file= |
3312 | lt_cv_deplibs_check_method='unknown' | |
3313 | # Need to set the preceding variable on all platforms that support | |
3314 | # interlibrary dependencies. | |
3315 | # 'none' -- dependencies not supported. | |
3316 | # `unknown' -- same as none, but documents that we really don't know. | |
3317 | # 'pass_all' -- all dependencies passed with no checks. | |
3318 | # 'test_compile' -- check by making test program. | |
3319 | # 'file_magic [regex]' -- check by looking for files in library path | |
3320 | # which responds to the $file_magic_cmd with a given egrep regex. | |
3321 | # If you have `file' or equivalent on your system and you're not sure | |
3322 | # whether `pass_all' will *always* work, you probably want this one. | |
3323 | ||
c7e40348 NC |
3324 | case $host_os in |
3325 | aix*) | |
ac48eca1 AO |
3326 | lt_cv_deplibs_check_method=pass_all |
3327 | ;; | |
3328 | ||
3329 | beos*) | |
3330 | lt_cv_deplibs_check_method=pass_all | |
3331 | ;; | |
3332 | ||
3333 | bsdi4*) | |
c7e40348 NC |
3334 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
3335 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
ac48eca1 AO |
3336 | lt_cv_file_magic_test_file=/shlib/libc.so |
3337 | ;; | |
3338 | ||
d64552c5 | 3339 | cygwin* | mingw* |pw32*) |
ac48eca1 | 3340 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
d64552c5 | 3341 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
ac48eca1 AO |
3342 | ;; |
3343 | ||
c7e40348 | 3344 | darwin* | rhapsody*) |
32fba81d | 3345 | # this will be overwritten by pass_all, but leave it in just in case |
c7e40348 NC |
3346 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
3347 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3348 | case "$host_os" in | |
3349 | rhapsody* | darwin1.012) | |
3350 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
3351 | ;; | |
3352 | *) # Darwin 1.3 on | |
3353 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
3354 | ;; | |
3355 | esac | |
32fba81d | 3356 | lt_cv_deplibs_check_method=pass_all |
c7e40348 NC |
3357 | ;; |
3358 | ||
e5a52504 | 3359 | freebsd* | kfreebsd*-gnu) |
ac48eca1 | 3360 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
c7e40348 | 3361 | case $host_cpu in |
ac48eca1 | 3362 | i*86 ) |
58cccadb AO |
3363 | # Not sure whether the presence of OpenBSD here was a mistake. |
3364 | # Let's accept both of them until this is cleared up. | |
c7e40348 NC |
3365 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
3366 | lt_cv_file_magic_cmd=/usr/bin/file | |
ac48eca1 AO |
3367 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3368 | ;; | |
3369 | esac | |
3370 | else | |
3371 | lt_cv_deplibs_check_method=pass_all | |
3372 | fi | |
3373 | ;; | |
3374 | ||
3375 | gnu*) | |
3376 | lt_cv_deplibs_check_method=pass_all | |
3377 | ;; | |
3378 | ||
c7e40348 | 3379 | hpux10.20*|hpux11*) |
4867be41 DJ |
3380 | case $host_cpu in |
3381 | hppa*) | |
3382 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3383 | lt_cv_file_magic_cmd=/usr/bin/file | |
3384 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3385 | ;; | |
3386 | ia64*) | |
3387 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3388 | lt_cv_file_magic_cmd=/usr/bin/file | |
3389 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3390 | ;; | |
3391 | esac | |
ac48eca1 AO |
3392 | ;; |
3393 | ||
3394 | irix5* | irix6*) | |
c7e40348 | 3395 | case $host_os in |
ac48eca1 AO |
3396 | irix5*) |
3397 | # this will be overridden with pass_all, but let us keep it just in case | |
3398 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
3399 | ;; | |
3400 | *) | |
c7e40348 | 3401 | case $LD in |
ac48eca1 AO |
3402 | *-32|*"-32 ") libmagic=32-bit;; |
3403 | *-n32|*"-n32 ") libmagic=N32;; | |
3404 | *-64|*"-64 ") libmagic=64-bit;; | |
3405 | *) libmagic=never-match;; | |
3406 | esac | |
3407 | # this will be overridden with pass_all, but let us keep it just in case | |
c7e40348 NC |
3408 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
3409 | ;; | |
ac48eca1 AO |
3410 | esac |
3411 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
3412 | lt_cv_deplibs_check_method=pass_all | |
3413 | ;; | |
3414 | ||
3415 | # This must be Linux ELF. | |
58cccadb | 3416 | linux-gnu*) |
32fba81d | 3417 | lt_cv_deplibs_check_method=pass_all |
ac48eca1 AO |
3418 | ;; |
3419 | ||
e5a52504 | 3420 | netbsd* | knetbsd*-gnu) |
c7e40348 NC |
3421 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3422 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | |
ac48eca1 | 3423 | else |
c7e40348 | 3424 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
ac48eca1 AO |
3425 | fi |
3426 | ;; | |
3427 | ||
c7e40348 NC |
3428 | newsos6) |
3429 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3430 | lt_cv_file_magic_cmd=/usr/bin/file | |
3431 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3432 | ;; | |
3433 | ||
ac48eca1 AO |
3434 | osf3* | osf4* | osf5*) |
3435 | # this will be overridden with pass_all, but let us keep it just in case | |
3436 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
3437 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3438 | lt_cv_deplibs_check_method=pass_all | |
3439 | ;; | |
3440 | ||
3441 | sco3.2v5*) | |
3442 | lt_cv_deplibs_check_method=pass_all | |
3443 | ;; | |
3444 | ||
3445 | solaris*) | |
3446 | lt_cv_deplibs_check_method=pass_all | |
3447 | lt_cv_file_magic_test_file=/lib/libc.so | |
3448 | ;; | |
3449 | ||
6be7c12c AO |
3450 | sysv5uw[78]* | sysv4*uw2*) |
3451 | lt_cv_deplibs_check_method=pass_all | |
3452 | ;; | |
3453 | ||
ac48eca1 | 3454 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
c7e40348 | 3455 | case $host_vendor in |
ac48eca1 AO |
3456 | ncr) |
3457 | lt_cv_deplibs_check_method=pass_all | |
3458 | ;; | |
3459 | motorola) | |
c7e40348 NC |
3460 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' |
3461 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
ac48eca1 AO |
3462 | ;; |
3463 | esac | |
3464 | ;; | |
3465 | esac | |
3466 | ||
3467 | fi | |
42ecbf5e DJ |
3468 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
3469 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
ac48eca1 AO |
3470 | file_magic_cmd=$lt_cv_file_magic_cmd |
3471 | deplibs_check_method=$lt_cv_deplibs_check_method | |
3472 | ||
d15b04bd L |
3473 | |
3474 | ||
ac48eca1 AO |
3475 | |
3476 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
3477 | ||
32fba81d NC |
3478 | # find the maximum length of command line arguments |
3479 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
3480 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
3481 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
3482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3483 | else | |
3484 | i=0 | |
3485 | teststring="ABCD" | |
3486 | ||
3487 | case $build_os in | |
3488 | msdosdjgpp*) | |
3489 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
3490 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
3491 | # during glob expansion). Even if it were fixed, the result of this | |
3492 | # check would be larger than it should be. | |
3493 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
3494 | ;; | |
3495 | ||
3496 | cygwin* | mingw*) | |
3497 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
3498 | # about 5 minutes as the teststring grows exponentially. | |
3499 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
3500 | # you end up with a "frozen" computer, even though with patience | |
3501 | # the test eventually succeeds (with a max line length of 256k). | |
3502 | # Instead, let's just punt: use the minimum linelength reported by | |
3503 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
3504 | lt_cv_sys_max_cmd_len=8192; | |
3505 | ;; | |
3506 | ||
3507 | amigaos*) | |
3508 | # On AmigaOS with pdksh, this test takes hours, literally. | |
3509 | # So we just punt and use a minimum line length of 8192. | |
3510 | lt_cv_sys_max_cmd_len=8192; | |
3511 | ;; | |
3512 | ||
3513 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
3514 | # This has been around since 386BSD, at least. Likely further. | |
3515 | if test -x /sbin/sysctl; then | |
3516 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
3517 | elif test -x /usr/sbin/sysctl; then | |
3518 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
3519 | else | |
3520 | lt_cv_sys_max_cmd_len=65536 # usable default for *BSD | |
3521 | fi | |
3522 | # And add a safety zone | |
3523 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
3524 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
3525 | ;; | |
3526 | esac | |
3527 | ||
3528 | fi | |
3529 | ||
3530 | if test -n "$lt_cv_sys_max_cmd_len" ; then | |
3531 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
3532 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
3533 | else | |
3534 | echo "$as_me:$LINENO: result: none" >&5 | |
3535 | echo "${ECHO_T}none" >&6 | |
3536 | fi | |
3537 | ||
3538 | ||
ac48eca1 | 3539 | # Only perform the check for file, if the check method requires it |
c7e40348 | 3540 | case $deplibs_check_method in |
ac48eca1 | 3541 | file_magic*) |
d64552c5 | 3542 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
42ecbf5e DJ |
3543 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
3544 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
3545 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3547 | else |
c7e40348 | 3548 | case $MAGIC_CMD in |
ac48eca1 | 3549 | /*) |
d64552c5 | 3550 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
ac48eca1 AO |
3551 | ;; |
3552 | ?:/*) | |
d64552c5 | 3553 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
ac48eca1 AO |
3554 | ;; |
3555 | *) | |
d64552c5 | 3556 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
3557 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3558 | ac_dummy="/usr/bin:$PATH" | |
3559 | for ac_dir in $ac_dummy; do | |
3560 | test -z "$ac_dir" && ac_dir=. | |
3561 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
d64552c5 | 3562 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
ac48eca1 | 3563 | if test -n "$file_magic_test_file"; then |
c7e40348 | 3564 | case $deplibs_check_method in |
ac48eca1 AO |
3565 | "file_magic "*) |
3566 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 3567 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
3568 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
3569 | egrep "$file_magic_regex" > /dev/null; then | |
3570 | : | |
3571 | else | |
3572 | cat <<EOF 1>&2 | |
3573 | ||
3574 | *** Warning: the command libtool uses to detect shared libraries, | |
3575 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3576 | *** The result is that libtool may fail to recognize shared libraries | |
3577 | *** as such. This will affect the creation of libtool libraries that | |
3578 | *** depend on shared libraries, but programs linked with such libtool | |
3579 | *** libraries will work regardless of this problem. Nevertheless, you | |
3580 | *** may want to report the problem to your system manager and/or to | |
3581 | *** [email protected] | |
3582 | ||
3583 | EOF | |
3584 | fi ;; | |
3585 | esac | |
3586 | fi | |
3587 | break | |
3588 | fi | |
3589 | done | |
3590 | IFS="$ac_save_ifs" | |
d64552c5 | 3591 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
3592 | ;; |
3593 | esac | |
3594 | fi | |
3595 | ||
d64552c5 AO |
3596 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3597 | if test -n "$MAGIC_CMD"; then | |
42ecbf5e DJ |
3598 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
3599 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
ac48eca1 | 3600 | else |
42ecbf5e DJ |
3601 | echo "$as_me:$LINENO: result: no" >&5 |
3602 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3603 | fi |
3604 | ||
d64552c5 | 3605 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
ac48eca1 | 3606 | if test -n "$ac_tool_prefix"; then |
42ecbf5e DJ |
3607 | echo "$as_me:$LINENO: checking for file" >&5 |
3608 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
3609 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3611 | else |
c7e40348 | 3612 | case $MAGIC_CMD in |
ac48eca1 | 3613 | /*) |
d64552c5 | 3614 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
ac48eca1 AO |
3615 | ;; |
3616 | ?:/*) | |
d64552c5 | 3617 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
ac48eca1 AO |
3618 | ;; |
3619 | *) | |
d64552c5 | 3620 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
3621 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3622 | ac_dummy="/usr/bin:$PATH" | |
3623 | for ac_dir in $ac_dummy; do | |
3624 | test -z "$ac_dir" && ac_dir=. | |
3625 | if test -f $ac_dir/file; then | |
d64552c5 | 3626 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
ac48eca1 | 3627 | if test -n "$file_magic_test_file"; then |
c7e40348 | 3628 | case $deplibs_check_method in |
ac48eca1 AO |
3629 | "file_magic "*) |
3630 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 3631 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
3632 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
3633 | egrep "$file_magic_regex" > /dev/null; then | |
3634 | : | |
3635 | else | |
3636 | cat <<EOF 1>&2 | |
3637 | ||
3638 | *** Warning: the command libtool uses to detect shared libraries, | |
3639 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3640 | *** The result is that libtool may fail to recognize shared libraries | |
3641 | *** as such. This will affect the creation of libtool libraries that | |
3642 | *** depend on shared libraries, but programs linked with such libtool | |
3643 | *** libraries will work regardless of this problem. Nevertheless, you | |
3644 | *** may want to report the problem to your system manager and/or to | |
3645 | *** [email protected] | |
3646 | ||
3647 | EOF | |
3648 | fi ;; | |
3649 | esac | |
3650 | fi | |
3651 | break | |
3652 | fi | |
3653 | done | |
3654 | IFS="$ac_save_ifs" | |
d64552c5 | 3655 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
3656 | ;; |
3657 | esac | |
3658 | fi | |
3659 | ||
d64552c5 AO |
3660 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3661 | if test -n "$MAGIC_CMD"; then | |
42ecbf5e DJ |
3662 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
3663 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
ac48eca1 | 3664 | else |
42ecbf5e DJ |
3665 | echo "$as_me:$LINENO: result: no" >&5 |
3666 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3667 | fi |
3668 | ||
3669 | else | |
d64552c5 | 3670 | MAGIC_CMD=: |
ac48eca1 AO |
3671 | fi |
3672 | fi | |
252b5132 | 3673 | |
ac48eca1 AO |
3674 | fi |
3675 | ;; | |
a74801ba | 3676 | esac |
252b5132 | 3677 | |
42ecbf5e DJ |
3678 | if test -n "$ac_tool_prefix"; then |
3679 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
ac48eca1 | 3680 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
42ecbf5e DJ |
3681 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3682 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3683 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3685 | else |
3686 | if test -n "$RANLIB"; then | |
3687 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3688 | else | |
42ecbf5e DJ |
3689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3690 | for as_dir in $PATH | |
3691 | do | |
3692 | IFS=$as_save_IFS | |
3693 | test -z "$as_dir" && as_dir=. | |
3694 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3695 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3696 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3697 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3698 | break 2 | |
3699 | fi | |
3700 | done | |
3701 | done | |
3702 | ||
ac48eca1 AO |
3703 | fi |
3704 | fi | |
42ecbf5e | 3705 | RANLIB=$ac_cv_prog_RANLIB |
ac48eca1 | 3706 | if test -n "$RANLIB"; then |
42ecbf5e DJ |
3707 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3708 | echo "${ECHO_T}$RANLIB" >&6 | |
ac48eca1 | 3709 | else |
42ecbf5e DJ |
3710 | echo "$as_me:$LINENO: result: no" >&5 |
3711 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3712 | fi |
3713 | ||
42ecbf5e | 3714 | fi |
ac48eca1 | 3715 | if test -z "$ac_cv_prog_RANLIB"; then |
42ecbf5e | 3716 | ac_ct_RANLIB=$RANLIB |
ac48eca1 AO |
3717 | # Extract the first word of "ranlib", so it can be a program name with args. |
3718 | set dummy ranlib; ac_word=$2 | |
42ecbf5e DJ |
3719 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3720 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3721 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3723 | else |
42ecbf5e DJ |
3724 | if test -n "$ac_ct_RANLIB"; then |
3725 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
ac48eca1 | 3726 | else |
42ecbf5e DJ |
3727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3728 | for as_dir in $PATH | |
3729 | do | |
3730 | IFS=$as_save_IFS | |
3731 | test -z "$as_dir" && as_dir=. | |
3732 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3733 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3734 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3735 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3736 | break 2 | |
3737 | fi | |
3738 | done | |
3739 | done | |
3740 | ||
3741 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
ac48eca1 AO |
3742 | fi |
3743 | fi | |
42ecbf5e DJ |
3744 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3745 | if test -n "$ac_ct_RANLIB"; then | |
3746 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3747 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
ac48eca1 | 3748 | else |
42ecbf5e DJ |
3749 | echo "$as_me:$LINENO: result: no" >&5 |
3750 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3751 | fi |
3752 | ||
42ecbf5e | 3753 | RANLIB=$ac_ct_RANLIB |
ac48eca1 | 3754 | else |
42ecbf5e | 3755 | RANLIB="$ac_cv_prog_RANLIB" |
ac48eca1 AO |
3756 | fi |
3757 | ||
42ecbf5e DJ |
3758 | if test -n "$ac_tool_prefix"; then |
3759 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
ac48eca1 | 3760 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
42ecbf5e DJ |
3761 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3762 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3763 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
3764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3765 | else |
3766 | if test -n "$STRIP"; then | |
3767 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3768 | else | |
42ecbf5e DJ |
3769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3770 | for as_dir in $PATH | |
3771 | do | |
3772 | IFS=$as_save_IFS | |
3773 | test -z "$as_dir" && as_dir=. | |
3774 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3775 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3776 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3777 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3778 | break 2 | |
3779 | fi | |
3780 | done | |
3781 | done | |
3782 | ||
ac48eca1 AO |
3783 | fi |
3784 | fi | |
42ecbf5e | 3785 | STRIP=$ac_cv_prog_STRIP |
ac48eca1 | 3786 | if test -n "$STRIP"; then |
42ecbf5e DJ |
3787 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
3788 | echo "${ECHO_T}$STRIP" >&6 | |
ac48eca1 | 3789 | else |
42ecbf5e DJ |
3790 | echo "$as_me:$LINENO: result: no" >&5 |
3791 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3792 | fi |
3793 | ||
42ecbf5e | 3794 | fi |
ac48eca1 | 3795 | if test -z "$ac_cv_prog_STRIP"; then |
42ecbf5e | 3796 | ac_ct_STRIP=$STRIP |
ac48eca1 AO |
3797 | # Extract the first word of "strip", so it can be a program name with args. |
3798 | set dummy strip; ac_word=$2 | |
42ecbf5e DJ |
3799 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3800 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3801 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
3802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3803 | else |
42ecbf5e DJ |
3804 | if test -n "$ac_ct_STRIP"; then |
3805 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
ac48eca1 | 3806 | else |
42ecbf5e DJ |
3807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3808 | for as_dir in $PATH | |
3809 | do | |
3810 | IFS=$as_save_IFS | |
3811 | test -z "$as_dir" && as_dir=. | |
3812 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3813 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3814 | ac_cv_prog_ac_ct_STRIP="strip" | |
3815 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3816 | break 2 | |
3817 | fi | |
3818 | done | |
3819 | done | |
3820 | ||
3821 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
ac48eca1 AO |
3822 | fi |
3823 | fi | |
42ecbf5e DJ |
3824 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3825 | if test -n "$ac_ct_STRIP"; then | |
3826 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
3827 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
ac48eca1 | 3828 | else |
42ecbf5e DJ |
3829 | echo "$as_me:$LINENO: result: no" >&5 |
3830 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3831 | fi |
3832 | ||
42ecbf5e | 3833 | STRIP=$ac_ct_STRIP |
ac48eca1 | 3834 | else |
42ecbf5e | 3835 | STRIP="$ac_cv_prog_STRIP" |
ac48eca1 AO |
3836 | fi |
3837 | ||
3838 | ||
252b5132 RH |
3839 | # Check for any special flags to pass to ltconfig. |
3840 | libtool_flags="--cache-file=$cache_file" | |
3841 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
3842 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
3843 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
c7e40348 NC |
3844 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" |
3845 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
252b5132 | 3846 | |
a74801ba ILT |
3847 | |
3848 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
3849 | if test "${enable_libtool_lock+set}" = set; then | |
3850 | enableval="$enable_libtool_lock" | |
a74801ba | 3851 | |
42ecbf5e | 3852 | fi; |
a74801ba ILT |
3853 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
3854 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
3855 | ||
42ecbf5e | 3856 | |
ac48eca1 AO |
3857 | # Check whether --with-pic or --without-pic was given. |
3858 | if test "${with_pic+set}" = set; then | |
3859 | withval="$with_pic" | |
3860 | pic_mode="$withval" | |
3861 | else | |
3862 | pic_mode=default | |
42ecbf5e | 3863 | fi; |
ac48eca1 AO |
3864 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" |
3865 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
3866 | ||
252b5132 RH |
3867 | # Some flags need to be propagated to the compiler or linker for good |
3868 | # libtool support. | |
c7e40348 | 3869 | case $host in |
252b5132 RH |
3870 | *-*-irix6*) |
3871 | # Find out which ABI we are using. | |
92f01d61 | 3872 | echo '#line 3872 "configure"' > conftest.$ac_ext |
42ecbf5e DJ |
3873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3874 | (eval $ac_compile) 2>&5 | |
3875 | ac_status=$? | |
3876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3877 | (exit $ac_status); }; then | |
715d1656 AO |
3878 | if test "$lt_cv_prog_gnu_ld" = yes; then |
3879 | case `/usr/bin/file conftest.$ac_objext` in | |
3880 | *32-bit*) | |
3881 | LD="${LD-ld} -melf32bsmip" | |
3882 | ;; | |
3883 | *N32*) | |
3884 | LD="${LD-ld} -melf32bmipn32" | |
3885 | ;; | |
3886 | *64-bit*) | |
3887 | LD="${LD-ld} -melf64bmip" | |
3888 | ;; | |
3889 | esac | |
3890 | else | |
c7e40348 | 3891 | case `/usr/bin/file conftest.$ac_objext` in |
252b5132 RH |
3892 | *32-bit*) |
3893 | LD="${LD-ld} -32" | |
3894 | ;; | |
3895 | *N32*) | |
3896 | LD="${LD-ld} -n32" | |
3897 | ;; | |
3898 | *64-bit*) | |
3899 | LD="${LD-ld} -64" | |
3900 | ;; | |
3901 | esac | |
715d1656 | 3902 | fi |
252b5132 RH |
3903 | fi |
3904 | rm -rf conftest* | |
3905 | ;; | |
3906 | ||
4867be41 DJ |
3907 | ia64-*-hpux*) |
3908 | # Find out which ABI we are using. | |
3909 | echo 'int i;' > conftest.$ac_ext | |
42ecbf5e DJ |
3910 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3911 | (eval $ac_compile) 2>&5 | |
3912 | ac_status=$? | |
3913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3914 | (exit $ac_status); }; then | |
4867be41 DJ |
3915 | case "`/usr/bin/file conftest.o`" in |
3916 | *ELF-32*) | |
3917 | HPUX_IA64_MODE="32" | |
3918 | ;; | |
3919 | *ELF-64*) | |
3920 | HPUX_IA64_MODE="64" | |
3921 | ;; | |
3922 | esac | |
3923 | fi | |
3924 | rm -rf conftest* | |
3925 | ;; | |
3926 | ||
32fba81d NC |
3927 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
3928 | # Find out which ABI we are using. | |
3929 | echo 'int i;' > conftest.$ac_ext | |
3930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3931 | (eval $ac_compile) 2>&5 | |
3932 | ac_status=$? | |
3933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3934 | (exit $ac_status); }; then | |
3935 | case "`/usr/bin/file conftest.o`" in | |
3936 | *32-bit*) | |
3937 | case $host in | |
3938 | x86_64-*linux*) | |
3939 | LD="${LD-ld} -m elf_i386" | |
3940 | ;; | |
3941 | ppc64-*linux*|powerpc64-*linux*) | |
3942 | LD="${LD-ld} -m elf32ppclinux" | |
3943 | ;; | |
3944 | s390x-*linux*) | |
3945 | LD="${LD-ld} -m elf_s390" | |
3946 | ;; | |
3947 | sparc64-*linux*) | |
3948 | LD="${LD-ld} -m elf32_sparc" | |
3949 | ;; | |
3950 | esac | |
3951 | ;; | |
3952 | *64-bit*) | |
3953 | case $host in | |
3954 | x86_64-*linux*) | |
3955 | LD="${LD-ld} -m elf_x86_64" | |
3956 | ;; | |
3957 | ppc*-*linux*|powerpc*-*linux*) | |
3958 | LD="${LD-ld} -m elf64ppc" | |
3959 | ;; | |
3960 | s390*-*linux*) | |
3961 | LD="${LD-ld} -m elf64_s390" | |
3962 | ;; | |
3963 | sparc*-*linux*) | |
3964 | LD="${LD-ld} -m elf64_sparc" | |
3965 | ;; | |
3966 | esac | |
3967 | ;; | |
3968 | esac | |
3969 | fi | |
3970 | rm -rf conftest* | |
3971 | ;; | |
3972 | ||
252b5132 RH |
3973 | *-*-sco3.2v5*) |
3974 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
3975 | SAVE_CFLAGS="$CFLAGS" | |
3976 | CFLAGS="$CFLAGS -belf" | |
42ecbf5e DJ |
3977 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
3978 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
3979 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
3980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 3981 | else |
42ecbf5e DJ |
3982 | |
3983 | ||
ac48eca1 | 3984 | ac_ext=c |
ac48eca1 | 3985 | ac_cpp='$CPP $CPPFLAGS' |
42ecbf5e DJ |
3986 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3987 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3988 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 3989 | |
42ecbf5e DJ |
3990 | cat >conftest.$ac_ext <<_ACEOF |
3991 | /* confdefs.h. */ | |
3992 | _ACEOF | |
3993 | cat confdefs.h >>conftest.$ac_ext | |
3994 | cat >>conftest.$ac_ext <<_ACEOF | |
3995 | /* end confdefs.h. */ | |
252b5132 | 3996 | |
42ecbf5e DJ |
3997 | int |
3998 | main () | |
3999 | { | |
252b5132 | 4000 | |
42ecbf5e DJ |
4001 | ; |
4002 | return 0; | |
4003 | } | |
4004 | _ACEOF | |
4005 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4006 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4007 | (eval $ac_link) 2>conftest.er1 | |
4008 | ac_status=$? | |
4009 | grep -v '^ *+' conftest.er1 >conftest.err | |
4010 | rm -f conftest.er1 | |
4011 | cat conftest.err >&5 | |
4012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4013 | (exit $ac_status); } && | |
502bdb00 JW |
4014 | { ac_try='test -z "$ac_c_werror_flag" |
4015 | || test ! -s conftest.err' | |
42ecbf5e DJ |
4016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4017 | (eval $ac_try) 2>&5 | |
4018 | ac_status=$? | |
4019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4020 | (exit $ac_status); }; } && | |
4021 | { ac_try='test -s conftest$ac_exeext' | |
4022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4023 | (eval $ac_try) 2>&5 | |
4024 | ac_status=$? | |
4025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4026 | (exit $ac_status); }; }; then | |
252b5132 RH |
4027 | lt_cv_cc_needs_belf=yes |
4028 | else | |
42ecbf5e DJ |
4029 | echo "$as_me: failed program was:" >&5 |
4030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4031 | ||
4032 | lt_cv_cc_needs_belf=no | |
252b5132 | 4033 | fi |
42ecbf5e DJ |
4034 | rm -f conftest.err conftest.$ac_objext \ |
4035 | conftest$ac_exeext conftest.$ac_ext | |
ac48eca1 | 4036 | ac_ext=c |
ac48eca1 | 4037 | ac_cpp='$CPP $CPPFLAGS' |
42ecbf5e DJ |
4038 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4039 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4040 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 4041 | |
252b5132 | 4042 | fi |
42ecbf5e DJ |
4043 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4044 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
252b5132 RH |
4045 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4046 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4047 | CFLAGS="$SAVE_CFLAGS" | |
4048 | fi | |
4049 | ;; | |
4050 | ||
252b5132 RH |
4051 | |
4052 | esac | |
4053 | ||
252b5132 RH |
4054 | |
4055 | # Save cache, so that ltconfig can load it | |
42ecbf5e | 4056 | cat >confcache <<\_ACEOF |
252b5132 RH |
4057 | # This file is a shell script that caches the results of configure |
4058 | # tests run on this system so they can be shared between configure | |
42ecbf5e DJ |
4059 | # scripts and configure runs, see configure's option --config-cache. |
4060 | # It is not useful on other systems. If it contains results you don't | |
4061 | # want to keep, you may remove or edit it. | |
252b5132 | 4062 | # |
42ecbf5e DJ |
4063 | # config.status only pays attention to the cache file if you give it |
4064 | # the --recheck option to rerun configure. | |
252b5132 | 4065 | # |
42ecbf5e DJ |
4066 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
4067 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
4068 | # following values. | |
4069 | ||
4070 | _ACEOF | |
4071 | ||
252b5132 RH |
4072 | # The following way of writing the cache mishandles newlines in values, |
4073 | # but we know of no workaround that is simple, portable, and efficient. | |
4074 | # So, don't put newlines in cache variables' values. | |
4075 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
4076 | # and sets the high bit in the cache file unless we assign to the vars. | |
42ecbf5e DJ |
4077 | { |
4078 | (set) 2>&1 | | |
4079 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
4080 | *ac_space=\ *) | |
4081 | # `set' does not quote correctly, so add quotes (double-quote | |
4082 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
4083 | sed -n \ | |
4084 | "s/'/'\\\\''/g; | |
4085 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
4086 | ;; | |
4087 | *) | |
4088 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4089 | sed -n \ | |
4090 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
4091 | ;; | |
4092 | esac; | |
4093 | } | | |
4094 | sed ' | |
4095 | t clear | |
4096 | : clear | |
4097 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
4098 | t end | |
4099 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
4100 | : end' >>confcache | |
4101 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
252b5132 | 4102 | if test -w $cache_file; then |
42ecbf5e DJ |
4103 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
4104 | cat confcache >$cache_file | |
252b5132 RH |
4105 | else |
4106 | echo "not updating unwritable cache $cache_file" | |
4107 | fi | |
4108 | fi | |
4109 | rm -f confcache | |
4110 | ||
252b5132 | 4111 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
ac48eca1 | 4112 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
d64552c5 | 4113 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
ac48eca1 AO |
4114 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
4115 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
4116 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
4117 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
252b5132 | 4118 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
ac48eca1 | 4119 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ |
42ecbf5e DJ |
4120 | || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 |
4121 | echo "$as_me: error: libtool configure failed" >&2;} | |
4122 | { (exit 1); exit 1; }; } | |
252b5132 RH |
4123 | |
4124 | # Reload cache, that may have been modified by ltconfig | |
4125 | if test -r "$cache_file"; then | |
42ecbf5e DJ |
4126 | # Some versions of bash will fail to source /dev/null (special |
4127 | # files actually), so we avoid doing that. | |
4128 | if test -f "$cache_file"; then | |
4129 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
4130 | echo "$as_me: loading cache $cache_file" >&6;} | |
4131 | case $cache_file in | |
4132 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
4133 | *) . ./$cache_file;; | |
4134 | esac | |
4135 | fi | |
252b5132 | 4136 | else |
42ecbf5e DJ |
4137 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
4138 | echo "$as_me: creating cache $cache_file" >&6;} | |
4139 | >$cache_file | |
252b5132 RH |
4140 | fi |
4141 | ||
4142 | ||
4143 | # This can be used to rebuild libtool when needed | |
ac48eca1 | 4144 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" |
252b5132 RH |
4145 | |
4146 | # Always use our own libtool. | |
4147 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
4148 | ||
4149 | # Redirect the config.log output again, so that the ltconfig log is not | |
4150 | # clobbered by the next message. | |
4151 | exec 5>>./config.log | |
4152 | ||
ac48eca1 | 4153 | |
42ecbf5e DJ |
4154 | |
4155 | ||
4156 | ||
4157 | ||
4158 | ||
ac48eca1 | 4159 | |
8e523c23 NC |
4160 | # Check whether --with-lib-path or --without-lib-path was given. |
4161 | if test "${with_lib_path+set}" = set; then | |
4162 | withval="$with_lib_path" | |
4163 | LIB_PATH=$withval | |
42ecbf5e | 4164 | fi; |
252b5132 RH |
4165 | # Check whether --enable-targets or --disable-targets was given. |
4166 | if test "${enable_targets+set}" = set; then | |
4167 | enableval="$enable_targets" | |
4168 | case "${enableval}" in | |
42ecbf5e DJ |
4169 | yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5 |
4170 | echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;} | |
4171 | { (exit 1); exit 1; }; } | |
252b5132 RH |
4172 | ;; |
4173 | no) enable_targets= ;; | |
4174 | *) enable_targets=$enableval ;; | |
4175 | esac | |
42ecbf5e | 4176 | fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given. |
252b5132 RH |
4177 | if test "${enable_64_bit_bfd+set}" = set; then |
4178 | enableval="$enable_64_bit_bfd" | |
4179 | case "${enableval}" in | |
4180 | yes) want64=true ;; | |
4181 | no) want64=false ;; | |
42ecbf5e DJ |
4182 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5 |
4183 | echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;} | |
4184 | { (exit 1); exit 1; }; } ;; | |
252b5132 RH |
4185 | esac |
4186 | else | |
4187 | want64=false | |
42ecbf5e | 4188 | fi; |
252b5132 | 4189 | |
9c8ebd6a DJ |
4190 | # Check whether --with-sysroot or --without-sysroot was given. |
4191 | if test "${with_sysroot+set}" = set; then | |
4192 | withval="$with_sysroot" | |
42ecbf5e | 4193 | |
9c8ebd6a | 4194 | case ${with_sysroot} in |
715d1656 | 4195 | yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; |
9c8ebd6a DJ |
4196 | *) TARGET_SYSTEM_ROOT=$with_sysroot ;; |
4197 | esac | |
4198 | ||
4199 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' | |
4200 | use_sysroot=yes | |
4201 | ||
4202 | if test "x$exec_prefix" = xNONE; then | |
4203 | if test "x$prefix" = xNONE; then | |
4204 | test_prefix=/usr/local | |
4205 | else | |
4206 | test_prefix=$prefix | |
4207 | fi | |
4208 | else | |
4209 | test_prefix=$exec_prefix | |
4210 | fi | |
4211 | case ${TARGET_SYSTEM_ROOT} in | |
715d1656 AO |
4212 | "${test_prefix}"|"${test_prefix}/"*|\ |
4213 | '${exec_prefix}'|'${exec_prefix}/'*) | |
9c8ebd6a DJ |
4214 | t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" |
4215 | TARGET_SYSTEM_ROOT_DEFINE="$t" | |
4216 | ;; | |
4217 | esac | |
4218 | ||
4219 | else | |
42ecbf5e | 4220 | |
9c8ebd6a DJ |
4221 | use_sysroot=no |
4222 | TARGET_SYSTEM_ROOT= | |
4223 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' | |
4224 | ||
42ecbf5e | 4225 | fi; |
9c8ebd6a DJ |
4226 | |
4227 | ||
4228 | ||
4229 | ||
92f01d61 JM |
4230 | # The location to which bugs should be reported. |
4231 | ||
4232 | # Check whether --with-bugurl or --without-bugurl was given. | |
4233 | if test "${with_bugurl+set}" = set; then | |
4234 | withval="$with_bugurl" | |
4235 | case "$withval" in | |
4236 | yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5 | |
4237 | echo "$as_me: error: bug URL not specified" >&2;} | |
4238 | { (exit 1); exit 1; }; } ;; | |
4239 | no) REPORT_BUGS_TO="" ;; | |
4240 | *) REPORT_BUGS_TO="<URL:$withval>" ;; | |
4241 | esac | |
4242 | else | |
4243 | REPORT_BUGS_TO="<URL:http://www.sourceware.org/bugzilla/>" | |
4244 | ||
4245 | fi; | |
4246 | ||
4247 | ||
502bdb00 | 4248 | |
a541e3ce | 4249 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
1ad12f97 | 4250 | |
569acd2c NC |
4251 | # Check whether --enable-werror or --disable-werror was given. |
4252 | if test "${enable_werror+set}" = set; then | |
4253 | enableval="$enable_werror" | |
1ad12f97 NC |
4254 | case "${enableval}" in |
4255 | yes | y) ERROR_ON_WARNING="yes" ;; | |
4256 | no | n) ERROR_ON_WARNING="no" ;; | |
42ecbf5e DJ |
4257 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 |
4258 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} | |
4259 | { (exit 1); exit 1; }; } ;; | |
1ad12f97 | 4260 | esac |
42ecbf5e | 4261 | fi; |
1ad12f97 | 4262 | |
9e9b66a9 AM |
4263 | # Enable -Werror by default when using gcc |
4264 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
4265 | ERROR_ON_WARNING=yes | |
1ad12f97 | 4266 | fi |
569acd2c | 4267 | |
9e9b66a9 AM |
4268 | NO_WERROR= |
4269 | if test "${ERROR_ON_WARNING}" = yes ; then | |
a541e3ce | 4270 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" |
9e9b66a9 AM |
4271 | NO_WERROR="-Wno-error" |
4272 | fi | |
42ecbf5e | 4273 | |
a541e3ce SE |
4274 | if test "${GCC}" = yes ; then |
4275 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
4276 | fi | |
4277 | ||
a2d91340 AC |
4278 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
4279 | if test "${enable_build_warnings+set}" = set; then | |
4280 | enableval="$enable_build_warnings" | |
4281 | case "${enableval}" in | |
a541e3ce SE |
4282 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; |
4283 | no) if test "${GCC}" = yes ; then | |
4284 | WARN_CFLAGS="-w" | |
4285 | fi;; | |
a2d91340 | 4286 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
a541e3ce | 4287 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; |
a2d91340 | 4288 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
a541e3ce | 4289 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; |
9e9b66a9 | 4290 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; |
a2d91340 | 4291 | esac |
42ecbf5e | 4292 | fi; |
9e9b66a9 AM |
4293 | |
4294 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then | |
4295 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
d15b04bd | 4296 | fi |
9e9b66a9 AM |
4297 | |
4298 | ||
a2d91340 AC |
4299 | |
4300 | ||
502bdb00 | 4301 | |
42ecbf5e DJ |
4302 | ac_config_headers="$ac_config_headers config.h:config.in" |
4303 | ||
252b5132 | 4304 | |
42ecbf5e DJ |
4305 | if test -z "$target" ; then |
4306 | { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5 | |
4307 | echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;} | |
4308 | { (exit 1); exit 1; }; } | |
4309 | fi | |
4310 | if test -z "$host" ; then | |
4311 | { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5 | |
4312 | echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;} | |
4313 | { (exit 1); exit 1; }; } | |
4314 | fi | |
4315 | ||
4316 | # host-specific stuff: | |
4317 | ||
4318 | ac_ext=c | |
4319 | ac_cpp='$CPP $CPPFLAGS' | |
4320 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4321 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4322 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4323 | if test -n "$ac_tool_prefix"; then | |
4324 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4325 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4326 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4327 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4328 | if test "${ac_cv_prog_CC+set}" = set; then | |
4329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4330 | else | |
4331 | if test -n "$CC"; then | |
4332 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4333 | else | |
4334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4335 | for as_dir in $PATH | |
4336 | do | |
4337 | IFS=$as_save_IFS | |
4338 | test -z "$as_dir" && as_dir=. | |
4339 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4340 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4341 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
4342 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4343 | break 2 | |
4344 | fi | |
4345 | done | |
4346 | done | |
252b5132 | 4347 | |
42ecbf5e DJ |
4348 | fi |
4349 | fi | |
4350 | CC=$ac_cv_prog_CC | |
4351 | if test -n "$CC"; then | |
4352 | echo "$as_me:$LINENO: result: $CC" >&5 | |
4353 | echo "${ECHO_T}$CC" >&6 | |
4354 | else | |
4355 | echo "$as_me:$LINENO: result: no" >&5 | |
4356 | echo "${ECHO_T}no" >&6 | |
4357 | fi | |
e5a52504 | 4358 | |
42ecbf5e DJ |
4359 | fi |
4360 | if test -z "$ac_cv_prog_CC"; then | |
4361 | ac_ct_CC=$CC | |
4362 | # Extract the first word of "gcc", so it can be a program name with args. | |
4363 | set dummy gcc; ac_word=$2 | |
4364 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4365 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4366 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4368 | else | |
4369 | if test -n "$ac_ct_CC"; then | |
4370 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4371 | else | |
4372 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4373 | for as_dir in $PATH | |
4374 | do | |
4375 | IFS=$as_save_IFS | |
4376 | test -z "$as_dir" && as_dir=. | |
4377 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4378 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4379 | ac_cv_prog_ac_ct_CC="gcc" | |
4380 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4381 | break 2 | |
4382 | fi | |
4383 | done | |
4384 | done | |
d15b04bd | 4385 | |
252b5132 | 4386 | fi |
42ecbf5e DJ |
4387 | fi |
4388 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4389 | if test -n "$ac_ct_CC"; then | |
4390 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4391 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4392 | else | |
4393 | echo "$as_me:$LINENO: result: no" >&5 | |
4394 | echo "${ECHO_T}no" >&6 | |
e5a52504 MM |
4395 | fi |
4396 | ||
42ecbf5e DJ |
4397 | CC=$ac_ct_CC |
4398 | else | |
4399 | CC="$ac_cv_prog_CC" | |
4400 | fi | |
d15b04bd | 4401 | |
42ecbf5e DJ |
4402 | if test -z "$CC"; then |
4403 | if test -n "$ac_tool_prefix"; then | |
4404 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4405 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4406 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4407 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4408 | if test "${ac_cv_prog_CC+set}" = set; then | |
4409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e5a52504 | 4410 | else |
d15b04bd L |
4411 | if test -n "$CC"; then |
4412 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
e5a52504 | 4413 | else |
42ecbf5e DJ |
4414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4415 | for as_dir in $PATH | |
4416 | do | |
4417 | IFS=$as_save_IFS | |
4418 | test -z "$as_dir" && as_dir=. | |
4419 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4420 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4421 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
4422 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4423 | break 2 | |
4424 | fi | |
4425 | done | |
4426 | done | |
4427 | ||
e5a52504 | 4428 | fi |
e5a52504 | 4429 | fi |
42ecbf5e | 4430 | CC=$ac_cv_prog_CC |
d15b04bd | 4431 | if test -n "$CC"; then |
42ecbf5e DJ |
4432 | echo "$as_me:$LINENO: result: $CC" >&5 |
4433 | echo "${ECHO_T}$CC" >&6 | |
4434 | else | |
4435 | echo "$as_me:$LINENO: result: no" >&5 | |
4436 | echo "${ECHO_T}no" >&6 | |
4437 | fi | |
4438 | ||
4439 | fi | |
4440 | if test -z "$ac_cv_prog_CC"; then | |
4441 | ac_ct_CC=$CC | |
4442 | # Extract the first word of "cc", so it can be a program name with args. | |
4443 | set dummy cc; ac_word=$2 | |
4444 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4445 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4446 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4448 | else | |
4449 | if test -n "$ac_ct_CC"; then | |
4450 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4451 | else | |
4452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4453 | for as_dir in $PATH | |
4454 | do | |
4455 | IFS=$as_save_IFS | |
4456 | test -z "$as_dir" && as_dir=. | |
4457 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4458 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4459 | ac_cv_prog_ac_ct_CC="cc" | |
4460 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4461 | break 2 | |
4462 | fi | |
4463 | done | |
4464 | done | |
4465 | ||
4466 | fi | |
4467 | fi | |
4468 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4469 | if test -n "$ac_ct_CC"; then | |
4470 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4471 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
252b5132 | 4472 | else |
42ecbf5e DJ |
4473 | echo "$as_me:$LINENO: result: no" >&5 |
4474 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
4475 | fi |
4476 | ||
42ecbf5e DJ |
4477 | CC=$ac_ct_CC |
4478 | else | |
4479 | CC="$ac_cv_prog_CC" | |
4480 | fi | |
4481 | ||
4482 | fi | |
252b5132 RH |
4483 | if test -z "$CC"; then |
4484 | # Extract the first word of "cc", so it can be a program name with args. | |
4485 | set dummy cc; ac_word=$2 | |
42ecbf5e DJ |
4486 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4487 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4488 | if test "${ac_cv_prog_CC+set}" = set; then | |
4489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
4490 | else |
4491 | if test -n "$CC"; then | |
4492 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4493 | else | |
252b5132 | 4494 | ac_prog_rejected=no |
42ecbf5e DJ |
4495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4496 | for as_dir in $PATH | |
4497 | do | |
4498 | IFS=$as_save_IFS | |
4499 | test -z "$as_dir" && as_dir=. | |
4500 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4501 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4502 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
4503 | ac_prog_rejected=yes | |
4504 | continue | |
4505 | fi | |
4506 | ac_cv_prog_CC="cc" | |
4507 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4508 | break 2 | |
4509 | fi | |
4510 | done | |
4511 | done | |
4512 | ||
252b5132 RH |
4513 | if test $ac_prog_rejected = yes; then |
4514 | # We found a bogon in the path, so make sure we never use it. | |
4515 | set dummy $ac_cv_prog_CC | |
4516 | shift | |
42ecbf5e | 4517 | if test $# != 0; then |
252b5132 RH |
4518 | # We chose a different compiler from the bogus one. |
4519 | # However, it has the same basename, so the bogon will be chosen | |
4520 | # first if we set CC to just the basename; use the full file name. | |
4521 | shift | |
42ecbf5e | 4522 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
252b5132 RH |
4523 | fi |
4524 | fi | |
4525 | fi | |
4526 | fi | |
42ecbf5e | 4527 | CC=$ac_cv_prog_CC |
252b5132 | 4528 | if test -n "$CC"; then |
42ecbf5e DJ |
4529 | echo "$as_me:$LINENO: result: $CC" >&5 |
4530 | echo "${ECHO_T}$CC" >&6 | |
252b5132 | 4531 | else |
42ecbf5e DJ |
4532 | echo "$as_me:$LINENO: result: no" >&5 |
4533 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
4534 | fi |
4535 | ||
42ecbf5e DJ |
4536 | fi |
4537 | if test -z "$CC"; then | |
4538 | if test -n "$ac_tool_prefix"; then | |
4539 | for ac_prog in cl | |
4540 | do | |
4541 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4542 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4543 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4544 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4545 | if test "${ac_cv_prog_CC+set}" = set; then | |
4546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
4547 | else |
4548 | if test -n "$CC"; then | |
4549 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4550 | else | |
42ecbf5e DJ |
4551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4552 | for as_dir in $PATH | |
4553 | do | |
4554 | IFS=$as_save_IFS | |
4555 | test -z "$as_dir" && as_dir=. | |
4556 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4557 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4558 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
4559 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4560 | break 2 | |
4561 | fi | |
4562 | done | |
4563 | done | |
4564 | ||
252b5132 RH |
4565 | fi |
4566 | fi | |
42ecbf5e | 4567 | CC=$ac_cv_prog_CC |
252b5132 | 4568 | if test -n "$CC"; then |
42ecbf5e DJ |
4569 | echo "$as_me:$LINENO: result: $CC" >&5 |
4570 | echo "${ECHO_T}$CC" >&6 | |
252b5132 | 4571 | else |
42ecbf5e DJ |
4572 | echo "$as_me:$LINENO: result: no" >&5 |
4573 | echo "${ECHO_T}no" >&6 | |
e5a52504 | 4574 | fi |
d15b04bd | 4575 | |
42ecbf5e DJ |
4576 | test -n "$CC" && break |
4577 | done | |
4578 | fi | |
4579 | if test -z "$CC"; then | |
4580 | ac_ct_CC=$CC | |
4581 | for ac_prog in cl | |
4582 | do | |
4583 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4584 | set dummy $ac_prog; ac_word=$2 | |
4585 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4586 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4587 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4589 | else | |
4590 | if test -n "$ac_ct_CC"; then | |
4591 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4592 | else | |
4593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4594 | for as_dir in $PATH | |
4595 | do | |
4596 | IFS=$as_save_IFS | |
4597 | test -z "$as_dir" && as_dir=. | |
4598 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4599 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4600 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
4601 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4602 | break 2 | |
d15b04bd | 4603 | fi |
42ecbf5e DJ |
4604 | done |
4605 | done | |
4606 | ||
4607 | fi | |
4608 | fi | |
4609 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4610 | if test -n "$ac_ct_CC"; then | |
4611 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4612 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
252b5132 | 4613 | else |
42ecbf5e DJ |
4614 | echo "$as_me:$LINENO: result: no" >&5 |
4615 | echo "${ECHO_T}no" >&6 | |
252b5132 | 4616 | fi |
252b5132 | 4617 | |
42ecbf5e DJ |
4618 | test -n "$ac_ct_CC" && break |
4619 | done | |
e5a52504 | 4620 | |
42ecbf5e DJ |
4621 | CC=$ac_ct_CC |
4622 | fi | |
4623 | ||
4624 | fi | |
4625 | ||
4626 | ||
4627 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
4628 | See \`config.log' for more details." >&5 | |
4629 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
4630 | See \`config.log' for more details." >&2;} | |
4631 | { (exit 1); exit 1; }; } | |
4632 | ||
4633 | # Provide some information about the compiler. | |
4634 | echo "$as_me:$LINENO:" \ | |
4635 | "checking for C compiler version" >&5 | |
4636 | ac_compiler=`set X $ac_compile; echo $2` | |
4637 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
4638 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
4639 | ac_status=$? | |
4640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4641 | (exit $ac_status); } | |
4642 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
4643 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
4644 | ac_status=$? | |
4645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4646 | (exit $ac_status); } | |
4647 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
4648 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
4649 | ac_status=$? | |
4650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4651 | (exit $ac_status); } | |
4652 | ||
4653 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
4654 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
4655 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
4656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4657 | else | |
4658 | cat >conftest.$ac_ext <<_ACEOF | |
4659 | /* confdefs.h. */ | |
4660 | _ACEOF | |
4661 | cat confdefs.h >>conftest.$ac_ext | |
4662 | cat >>conftest.$ac_ext <<_ACEOF | |
4663 | /* end confdefs.h. */ | |
4664 | ||
4665 | int | |
4666 | main () | |
4667 | { | |
4668 | #ifndef __GNUC__ | |
4669 | choke me | |
252b5132 | 4670 | #endif |
252b5132 | 4671 | |
42ecbf5e DJ |
4672 | ; |
4673 | return 0; | |
4674 | } | |
4675 | _ACEOF | |
4676 | rm -f conftest.$ac_objext | |
4677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4678 | (eval $ac_compile) 2>conftest.er1 | |
4679 | ac_status=$? | |
4680 | grep -v '^ *+' conftest.er1 >conftest.err | |
4681 | rm -f conftest.er1 | |
4682 | cat conftest.err >&5 | |
4683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4684 | (exit $ac_status); } && | |
502bdb00 JW |
4685 | { ac_try='test -z "$ac_c_werror_flag" |
4686 | || test ! -s conftest.err' | |
42ecbf5e DJ |
4687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4688 | (eval $ac_try) 2>&5 | |
4689 | ac_status=$? | |
4690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4691 | (exit $ac_status); }; } && | |
4692 | { ac_try='test -s conftest.$ac_objext' | |
4693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4694 | (eval $ac_try) 2>&5 | |
4695 | ac_status=$? | |
4696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4697 | (exit $ac_status); }; }; then | |
4698 | ac_compiler_gnu=yes | |
4699 | else | |
4700 | echo "$as_me: failed program was:" >&5 | |
4701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4702 | ||
4703 | ac_compiler_gnu=no | |
4704 | fi | |
4705 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4706 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4707 | ||
4708 | fi | |
4709 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
4710 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
4711 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
4712 | ac_test_CFLAGS=${CFLAGS+set} | |
4713 | ac_save_CFLAGS=$CFLAGS | |
4714 | CFLAGS="-g" | |
4715 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
4716 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
4717 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
4718 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4719 | else | |
4720 | cat >conftest.$ac_ext <<_ACEOF | |
4721 | /* confdefs.h. */ | |
4722 | _ACEOF | |
4723 | cat confdefs.h >>conftest.$ac_ext | |
4724 | cat >>conftest.$ac_ext <<_ACEOF | |
4725 | /* end confdefs.h. */ | |
252b5132 | 4726 | |
42ecbf5e DJ |
4727 | int |
4728 | main () | |
4729 | { | |
252b5132 | 4730 | |
42ecbf5e DJ |
4731 | ; |
4732 | return 0; | |
4733 | } | |
4734 | _ACEOF | |
4735 | rm -f conftest.$ac_objext | |
4736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4737 | (eval $ac_compile) 2>conftest.er1 | |
4738 | ac_status=$? | |
4739 | grep -v '^ *+' conftest.er1 >conftest.err | |
4740 | rm -f conftest.er1 | |
4741 | cat conftest.err >&5 | |
4742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4743 | (exit $ac_status); } && | |
502bdb00 JW |
4744 | { ac_try='test -z "$ac_c_werror_flag" |
4745 | || test ! -s conftest.err' | |
42ecbf5e DJ |
4746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4747 | (eval $ac_try) 2>&5 | |
4748 | ac_status=$? | |
4749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4750 | (exit $ac_status); }; } && | |
4751 | { ac_try='test -s conftest.$ac_objext' | |
4752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4753 | (eval $ac_try) 2>&5 | |
4754 | ac_status=$? | |
4755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4756 | (exit $ac_status); }; }; then | |
252b5132 RH |
4757 | ac_cv_prog_cc_g=yes |
4758 | else | |
42ecbf5e DJ |
4759 | echo "$as_me: failed program was:" >&5 |
4760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d15b04bd | 4761 | |
42ecbf5e | 4762 | ac_cv_prog_cc_g=no |
e5a52504 | 4763 | fi |
42ecbf5e DJ |
4764 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4765 | fi | |
4766 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
4767 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
252b5132 | 4768 | if test "$ac_test_CFLAGS" = set; then |
42ecbf5e | 4769 | CFLAGS=$ac_save_CFLAGS |
252b5132 RH |
4770 | elif test $ac_cv_prog_cc_g = yes; then |
4771 | if test "$GCC" = yes; then | |
4772 | CFLAGS="-g -O2" | |
4773 | else | |
4774 | CFLAGS="-g" | |
4775 | fi | |
4776 | else | |
4777 | if test "$GCC" = yes; then | |
4778 | CFLAGS="-O2" | |
4779 | else | |
4780 | CFLAGS= | |
4781 | fi | |
4782 | fi | |
42ecbf5e DJ |
4783 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
4784 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
4785 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
4786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4787 | else | |
4788 | ac_cv_prog_cc_stdc=no | |
4789 | ac_save_CC=$CC | |
4790 | cat >conftest.$ac_ext <<_ACEOF | |
4791 | /* confdefs.h. */ | |
4792 | _ACEOF | |
4793 | cat confdefs.h >>conftest.$ac_ext | |
4794 | cat >>conftest.$ac_ext <<_ACEOF | |
4795 | /* end confdefs.h. */ | |
4796 | #include <stdarg.h> | |
4797 | #include <stdio.h> | |
4798 | #include <sys/types.h> | |
4799 | #include <sys/stat.h> | |
4800 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4801 | struct buf { int x; }; | |
4802 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4803 | static char *e (p, i) | |
4804 | char **p; | |
4805 | int i; | |
4806 | { | |
4807 | return p[i]; | |
4808 | } | |
4809 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4810 | { | |
4811 | char *s; | |
4812 | va_list v; | |
4813 | va_start (v,p); | |
4814 | s = g (p, va_arg (v,int)); | |
4815 | va_end (v); | |
4816 | return s; | |
4817 | } | |
4818 | ||
4819 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4820 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4821 | These don't provoke an error unfortunately, instead are silently treated | |
4822 | as 'x'. The following induces an error, until -std1 is added to get | |
4823 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4824 | array size at least. It's necessary to write '\x00'==0 to get something | |
4825 | that's true only with -std1. */ | |
4826 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4827 | ||
4828 | int test (int i, double x); | |
4829 | struct s1 {int (*f) (int a);}; | |
4830 | struct s2 {int (*f) (double a);}; | |
4831 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4832 | int argc; | |
4833 | char **argv; | |
4834 | int | |
4835 | main () | |
4836 | { | |
4837 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4838 | ; | |
4839 | return 0; | |
4840 | } | |
4841 | _ACEOF | |
4842 | # Don't try gcc -ansi; that turns off useful extensions and | |
4843 | # breaks some systems' header files. | |
4844 | # AIX -qlanglvl=ansi | |
4845 | # Ultrix and OSF/1 -std1 | |
4846 | # HP-UX 10.20 and later -Ae | |
4847 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
4848 | # SVR4 -Xc -D__EXTENSIONS__ | |
4849 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4850 | do | |
4851 | CC="$ac_save_CC $ac_arg" | |
4852 | rm -f conftest.$ac_objext | |
4853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4854 | (eval $ac_compile) 2>conftest.er1 | |
4855 | ac_status=$? | |
4856 | grep -v '^ *+' conftest.er1 >conftest.err | |
4857 | rm -f conftest.er1 | |
4858 | cat conftest.err >&5 | |
4859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4860 | (exit $ac_status); } && | |
502bdb00 JW |
4861 | { ac_try='test -z "$ac_c_werror_flag" |
4862 | || test ! -s conftest.err' | |
42ecbf5e DJ |
4863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4864 | (eval $ac_try) 2>&5 | |
4865 | ac_status=$? | |
4866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4867 | (exit $ac_status); }; } && | |
4868 | { ac_try='test -s conftest.$ac_objext' | |
4869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4870 | (eval $ac_try) 2>&5 | |
4871 | ac_status=$? | |
4872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4873 | (exit $ac_status); }; }; then | |
4874 | ac_cv_prog_cc_stdc=$ac_arg | |
4875 | break | |
4876 | else | |
4877 | echo "$as_me: failed program was:" >&5 | |
4878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4879 | ||
4880 | fi | |
4881 | rm -f conftest.err conftest.$ac_objext | |
4882 | done | |
4883 | rm -f conftest.$ac_ext conftest.$ac_objext | |
4884 | CC=$ac_save_CC | |
4885 | ||
4886 | fi | |
4887 | ||
4888 | case "x$ac_cv_prog_cc_stdc" in | |
4889 | x|xno) | |
4890 | echo "$as_me:$LINENO: result: none needed" >&5 | |
4891 | echo "${ECHO_T}none needed" >&6 ;; | |
4892 | *) | |
4893 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
4894 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
4895 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
4896 | esac | |
4897 | ||
4898 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
4899 | # in C++ we need to declare it. In case someone uses the same compiler | |
4900 | # for both compiling C and C++ we need to have the C++ compiler decide | |
4901 | # the declaration of exit, since it's the most demanding environment. | |
4902 | cat >conftest.$ac_ext <<_ACEOF | |
4903 | #ifndef __cplusplus | |
4904 | choke me | |
4905 | #endif | |
4906 | _ACEOF | |
4907 | rm -f conftest.$ac_objext | |
4908 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4909 | (eval $ac_compile) 2>conftest.er1 | |
4910 | ac_status=$? | |
4911 | grep -v '^ *+' conftest.er1 >conftest.err | |
4912 | rm -f conftest.er1 | |
4913 | cat conftest.err >&5 | |
4914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4915 | (exit $ac_status); } && | |
502bdb00 JW |
4916 | { ac_try='test -z "$ac_c_werror_flag" |
4917 | || test ! -s conftest.err' | |
42ecbf5e DJ |
4918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4919 | (eval $ac_try) 2>&5 | |
4920 | ac_status=$? | |
4921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4922 | (exit $ac_status); }; } && | |
4923 | { ac_try='test -s conftest.$ac_objext' | |
4924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4925 | (eval $ac_try) 2>&5 | |
4926 | ac_status=$? | |
4927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4928 | (exit $ac_status); }; }; then | |
4929 | for ac_declaration in \ | |
4930 | '' \ | |
4931 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
4932 | 'extern "C" void std::exit (int); using std::exit;' \ | |
4933 | 'extern "C" void exit (int) throw ();' \ | |
4934 | 'extern "C" void exit (int);' \ | |
4935 | 'void exit (int);' | |
4936 | do | |
4937 | cat >conftest.$ac_ext <<_ACEOF | |
4938 | /* confdefs.h. */ | |
4939 | _ACEOF | |
4940 | cat confdefs.h >>conftest.$ac_ext | |
4941 | cat >>conftest.$ac_ext <<_ACEOF | |
4942 | /* end confdefs.h. */ | |
4943 | $ac_declaration | |
4944 | #include <stdlib.h> | |
4945 | int | |
4946 | main () | |
4947 | { | |
4948 | exit (42); | |
4949 | ; | |
4950 | return 0; | |
4951 | } | |
4952 | _ACEOF | |
4953 | rm -f conftest.$ac_objext | |
4954 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4955 | (eval $ac_compile) 2>conftest.er1 | |
4956 | ac_status=$? | |
4957 | grep -v '^ *+' conftest.er1 >conftest.err | |
4958 | rm -f conftest.er1 | |
4959 | cat conftest.err >&5 | |
4960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4961 | (exit $ac_status); } && | |
502bdb00 JW |
4962 | { ac_try='test -z "$ac_c_werror_flag" |
4963 | || test ! -s conftest.err' | |
42ecbf5e DJ |
4964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4965 | (eval $ac_try) 2>&5 | |
4966 | ac_status=$? | |
4967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4968 | (exit $ac_status); }; } && | |
4969 | { ac_try='test -s conftest.$ac_objext' | |
4970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4971 | (eval $ac_try) 2>&5 | |
4972 | ac_status=$? | |
4973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4974 | (exit $ac_status); }; }; then | |
4975 | : | |
4976 | else | |
4977 | echo "$as_me: failed program was:" >&5 | |
4978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4979 | ||
4980 | continue | |
4981 | fi | |
4982 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4983 | cat >conftest.$ac_ext <<_ACEOF | |
4984 | /* confdefs.h. */ | |
4985 | _ACEOF | |
4986 | cat confdefs.h >>conftest.$ac_ext | |
4987 | cat >>conftest.$ac_ext <<_ACEOF | |
4988 | /* end confdefs.h. */ | |
4989 | $ac_declaration | |
4990 | int | |
4991 | main () | |
4992 | { | |
4993 | exit (42); | |
4994 | ; | |
4995 | return 0; | |
4996 | } | |
4997 | _ACEOF | |
4998 | rm -f conftest.$ac_objext | |
4999 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5000 | (eval $ac_compile) 2>conftest.er1 | |
5001 | ac_status=$? | |
5002 | grep -v '^ *+' conftest.er1 >conftest.err | |
5003 | rm -f conftest.er1 | |
5004 | cat conftest.err >&5 | |
5005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5006 | (exit $ac_status); } && | |
502bdb00 JW |
5007 | { ac_try='test -z "$ac_c_werror_flag" |
5008 | || test ! -s conftest.err' | |
42ecbf5e DJ |
5009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5010 | (eval $ac_try) 2>&5 | |
5011 | ac_status=$? | |
5012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5013 | (exit $ac_status); }; } && | |
5014 | { ac_try='test -s conftest.$ac_objext' | |
5015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5016 | (eval $ac_try) 2>&5 | |
5017 | ac_status=$? | |
5018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5019 | (exit $ac_status); }; }; then | |
5020 | break | |
5021 | else | |
5022 | echo "$as_me: failed program was:" >&5 | |
5023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5024 | ||
5025 | fi | |
5026 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5027 | done | |
5028 | rm -f conftest* | |
5029 | if test -n "$ac_declaration"; then | |
5030 | echo '#ifdef __cplusplus' >>confdefs.h | |
5031 | echo $ac_declaration >>confdefs.h | |
5032 | echo '#endif' >>confdefs.h | |
5033 | fi | |
5034 | ||
5035 | else | |
5036 | echo "$as_me: failed program was:" >&5 | |
5037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5038 | ||
5039 | fi | |
5040 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5041 | ac_ext=c | |
5042 | ac_cpp='$CPP $CPPFLAGS' | |
5043 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5044 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5045 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
252b5132 RH |
5046 | |
5047 | # Find a good install program. We prefer a C program (faster), | |
5048 | # so one script is as good as another. But avoid the broken or | |
5049 | # incompatible versions: | |
5050 | # SysV /etc/install, /usr/sbin/install | |
5051 | # SunOS /usr/etc/install | |
5052 | # IRIX /sbin/install | |
5053 | # AIX /bin/install | |
42ecbf5e | 5054 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
252b5132 RH |
5055 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
5056 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
5057 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
42ecbf5e | 5058 | # OS/2's system install, which has a completely different semantic |
252b5132 | 5059 | # ./install, which can be erroneously created by make from ./install.sh. |
42ecbf5e DJ |
5060 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
5061 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
252b5132 | 5062 | if test -z "$INSTALL"; then |
42ecbf5e DJ |
5063 | if test "${ac_cv_path_install+set}" = set; then |
5064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5065 | else |
42ecbf5e DJ |
5066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5067 | for as_dir in $PATH | |
5068 | do | |
5069 | IFS=$as_save_IFS | |
5070 | test -z "$as_dir" && as_dir=. | |
5071 | # Account for people who put trailing slashes in PATH elements. | |
5072 | case $as_dir/ in | |
5073 | ./ | .// | /cC/* | \ | |
5074 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
5075 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
5076 | /usr/ucb/* ) ;; | |
5077 | *) | |
5078 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
5079 | # Don't use installbsd from OSF since it installs stuff as root | |
5080 | # by default. | |
5081 | for ac_prog in ginstall scoinst install; do | |
5082 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5083 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
252b5132 | 5084 | if test $ac_prog = install && |
42ecbf5e | 5085 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
252b5132 RH |
5086 | # AIX install. It has an incompatible calling convention. |
5087 | : | |
42ecbf5e DJ |
5088 | elif test $ac_prog = install && |
5089 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5090 | # program-specific install script used by HP pwplus--don't use. | |
5091 | : | |
252b5132 | 5092 | else |
42ecbf5e DJ |
5093 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
5094 | break 3 | |
252b5132 RH |
5095 | fi |
5096 | fi | |
5097 | done | |
42ecbf5e DJ |
5098 | done |
5099 | ;; | |
5100 | esac | |
5101 | done | |
5102 | ||
252b5132 RH |
5103 | |
5104 | fi | |
5105 | if test "${ac_cv_path_install+set}" = set; then | |
42ecbf5e | 5106 | INSTALL=$ac_cv_path_install |
252b5132 RH |
5107 | else |
5108 | # As a last resort, use the slow shell script. We don't cache a | |
5109 | # path for INSTALL within a source directory, because that will | |
5110 | # break other packages using the cache if that directory is | |
5111 | # removed, or if the path is relative. | |
42ecbf5e | 5112 | INSTALL=$ac_install_sh |
252b5132 RH |
5113 | fi |
5114 | fi | |
42ecbf5e DJ |
5115 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
5116 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
5117 | |
5118 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
5119 | # It thinks the first close brace ends the variable substitution. | |
5120 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
5121 | ||
42ecbf5e | 5122 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
5123 | |
5124 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
5125 | ||
5126 | ||
221ca466 | 5127 | ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga" |
20e95c23 DJ |
5128 | # If we haven't got the data from the intl directory, |
5129 | # assume NLS is disabled. | |
5130 | USE_NLS=no | |
5131 | LIBINTL= | |
5132 | LIBINTL_DEP= | |
5133 | INCINTL= | |
5134 | XGETTEXT= | |
5135 | GMSGFMT= | |
5136 | POSUB= | |
b83ef3ee NC |
5137 | |
5138 | if test -f ../intl/config.intl; then | |
5139 | . ../intl/config.intl | |
20e95c23 DJ |
5140 | fi |
5141 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
5142 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
5143 | if test x"$USE_NLS" != xyes; then | |
5144 | echo "$as_me:$LINENO: result: no" >&5 | |
5145 | echo "${ECHO_T}no" >&6 | |
5146 | else | |
5147 | echo "$as_me:$LINENO: result: yes" >&5 | |
5148 | echo "${ECHO_T}yes" >&6 | |
5149 | ||
5150 | cat >>confdefs.h <<\_ACEOF | |
5151 | #define ENABLE_NLS 1 | |
5152 | _ACEOF | |
5153 | ||
5154 | ||
5155 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 | |
5156 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
5157 | # Look for .po and .gmo files in the source directory. | |
5158 | CATALOGS= | |
5159 | XLINGUAS= | |
5160 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
5161 | # If there aren't any .gmo files the shell will give us the | |
5162 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
5163 | # weeded out. | |
5164 | case "$cat" in *\**) | |
5165 | continue;; | |
5166 | esac | |
5167 | # The quadruple backslash is collapsed to a double backslash | |
5168 | # by the backticks, then collapsed again by the double quotes, | |
5169 | # leaving us with one backslash in the sed expression (right | |
5170 | # before the dot that mustn't act as a wildcard). | |
5171 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
5172 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
5173 | # The user is allowed to set LINGUAS to a list of languages to | |
5174 | # install catalogs for. If it's empty that means "all of them." | |
5175 | if test "x$LINGUAS" = x; then | |
5176 | CATALOGS="$CATALOGS $cat" | |
5177 | XLINGUAS="$XLINGUAS $lang" | |
5178 | else | |
5179 | case "$LINGUAS" in *$lang*) | |
5180 | CATALOGS="$CATALOGS $cat" | |
5181 | XLINGUAS="$XLINGUAS $lang" | |
5182 | ;; | |
5183 | esac | |
5184 | fi | |
5185 | done | |
5186 | LINGUAS="$XLINGUAS" | |
5187 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 | |
5188 | echo "${ECHO_T}$LINGUAS" >&6 | |
5189 | ||
5190 | ||
5191 | DATADIRNAME=share | |
5192 | ||
5193 | INSTOBJEXT=.mo | |
5194 | ||
5195 | GENCAT=gencat | |
5196 | ||
5197 | CATOBJEXT=.gmo | |
5198 | ||
5199 | fi | |
5200 | ||
5201 | MKINSTALLDIRS= | |
5202 | if test -n "$ac_aux_dir"; then | |
5203 | case "$ac_aux_dir" in | |
5204 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
5205 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
5206 | esac | |
5207 | fi | |
5208 | if test -z "$MKINSTALLDIRS"; then | |
5209 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
5210 | fi | |
5211 | ||
5212 | ||
5213 | ||
5214 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
5215 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
5216 | # Check whether --enable-nls or --disable-nls was given. | |
5217 | if test "${enable_nls+set}" = set; then | |
5218 | enableval="$enable_nls" | |
5219 | USE_NLS=$enableval | |
5220 | else | |
5221 | USE_NLS=yes | |
5222 | fi; | |
5223 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
5224 | echo "${ECHO_T}$USE_NLS" >&6 | |
5225 | ||
5226 | ||
5227 | ||
5228 | ||
5229 | ||
5230 | ||
5231 | # Prepare PATH_SEPARATOR. | |
5232 | # The user is always right. | |
5233 | if test "${PATH_SEPARATOR+set}" != set; then | |
5234 | echo "#! /bin/sh" >conf$$.sh | |
5235 | echo "exit 0" >>conf$$.sh | |
5236 | chmod +x conf$$.sh | |
5237 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5238 | PATH_SEPARATOR=';' | |
5239 | else | |
5240 | PATH_SEPARATOR=: | |
5241 | fi | |
5242 | rm -f conf$$.sh | |
5243 | fi | |
5244 | ||
5245 | # Find out how to test for executable files. Don't use a zero-byte file, | |
5246 | # as systems may use methods other than mode bits to determine executability. | |
5247 | cat >conf$$.file <<_ASEOF | |
5248 | #! /bin/sh | |
5249 | exit 0 | |
5250 | _ASEOF | |
5251 | chmod +x conf$$.file | |
5252 | if test -x conf$$.file >/dev/null 2>&1; then | |
5253 | ac_executable_p="test -x" | |
5254 | else | |
5255 | ac_executable_p="test -f" | |
5256 | fi | |
5257 | rm -f conf$$.file | |
5258 | ||
5259 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
5260 | set dummy msgfmt; ac_word=$2 | |
42ecbf5e DJ |
5261 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5262 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20e95c23 | 5263 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
42ecbf5e DJ |
5264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5265 | else | |
20e95c23 DJ |
5266 | case "$MSGFMT" in |
5267 | [\\/]* | ?:[\\/]*) | |
5268 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5269 | ;; | |
5270 | *) | |
5271 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5272 | for ac_dir in $PATH; do | |
5273 | IFS="$ac_save_IFS" | |
5274 | test -z "$ac_dir" && ac_dir=. | |
5275 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5276 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5277 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
5278 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5279 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
5280 | break 2 | |
5281 | fi | |
5282 | fi | |
5283 | done | |
5284 | done | |
5285 | IFS="$ac_save_IFS" | |
5286 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
5287 | ;; | |
5288 | esac | |
5289 | fi | |
5290 | MSGFMT="$ac_cv_path_MSGFMT" | |
5291 | if test "$MSGFMT" != ":"; then | |
5292 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
5293 | echo "${ECHO_T}$MSGFMT" >&6 | |
42ecbf5e | 5294 | else |
20e95c23 DJ |
5295 | echo "$as_me:$LINENO: result: no" >&5 |
5296 | echo "${ECHO_T}no" >&6 | |
5297 | fi | |
5298 | ||
5299 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5300 | set dummy gmsgfmt; ac_word=$2 | |
5301 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5302 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5303 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
5304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5305 | else | |
5306 | case $GMSGFMT in | |
5307 | [\\/]* | ?:[\\/]*) | |
5308 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
5309 | ;; | |
5310 | *) | |
5311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42ecbf5e DJ |
5312 | for as_dir in $PATH |
5313 | do | |
5314 | IFS=$as_save_IFS | |
5315 | test -z "$as_dir" && as_dir=. | |
5316 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5317 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20e95c23 | 5318 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
42ecbf5e DJ |
5319 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5320 | break 2 | |
5321 | fi | |
5322 | done | |
5323 | done | |
5324 | ||
20e95c23 DJ |
5325 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
5326 | ;; | |
5327 | esac | |
42ecbf5e | 5328 | fi |
20e95c23 DJ |
5329 | GMSGFMT=$ac_cv_path_GMSGFMT |
5330 | ||
5331 | if test -n "$GMSGFMT"; then | |
5332 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 | |
5333 | echo "${ECHO_T}$GMSGFMT" >&6 | |
5334 | else | |
5335 | echo "$as_me:$LINENO: result: no" >&5 | |
5336 | echo "${ECHO_T}no" >&6 | |
42ecbf5e | 5337 | fi |
20e95c23 DJ |
5338 | |
5339 | ||
5340 | ||
5341 | # Prepare PATH_SEPARATOR. | |
5342 | # The user is always right. | |
5343 | if test "${PATH_SEPARATOR+set}" != set; then | |
5344 | echo "#! /bin/sh" >conf$$.sh | |
5345 | echo "exit 0" >>conf$$.sh | |
5346 | chmod +x conf$$.sh | |
5347 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5348 | PATH_SEPARATOR=';' | |
5349 | else | |
5350 | PATH_SEPARATOR=: | |
5351 | fi | |
5352 | rm -f conf$$.sh | |
5353 | fi | |
5354 | ||
5355 | # Find out how to test for executable files. Don't use a zero-byte file, | |
5356 | # as systems may use methods other than mode bits to determine executability. | |
5357 | cat >conf$$.file <<_ASEOF | |
5358 | #! /bin/sh | |
5359 | exit 0 | |
5360 | _ASEOF | |
5361 | chmod +x conf$$.file | |
5362 | if test -x conf$$.file >/dev/null 2>&1; then | |
5363 | ac_executable_p="test -x" | |
5364 | else | |
5365 | ac_executable_p="test -f" | |
5366 | fi | |
5367 | rm -f conf$$.file | |
5368 | ||
5369 | # Extract the first word of "xgettext", so it can be a program name with args. | |
5370 | set dummy xgettext; ac_word=$2 | |
5371 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5372 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5373 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
5374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5375 | else | |
5376 | case "$XGETTEXT" in | |
5377 | [\\/]* | ?:[\\/]*) | |
5378 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5379 | ;; | |
5380 | *) | |
5381 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5382 | for ac_dir in $PATH; do | |
5383 | IFS="$ac_save_IFS" | |
5384 | test -z "$ac_dir" && ac_dir=. | |
5385 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5386 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5387 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
5388 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5389 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
5390 | break 2 | |
5391 | fi | |
5392 | fi | |
5393 | done | |
5394 | done | |
5395 | IFS="$ac_save_IFS" | |
5396 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5397 | ;; | |
5398 | esac | |
5399 | fi | |
5400 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
5401 | if test "$XGETTEXT" != ":"; then | |
5402 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 | |
5403 | echo "${ECHO_T}$XGETTEXT" >&6 | |
42ecbf5e DJ |
5404 | else |
5405 | echo "$as_me:$LINENO: result: no" >&5 | |
5406 | echo "${ECHO_T}no" >&6 | |
5407 | fi | |
5408 | ||
20e95c23 DJ |
5409 | rm -f messages.po |
5410 | ||
5411 | ||
5412 | # Prepare PATH_SEPARATOR. | |
5413 | # The user is always right. | |
5414 | if test "${PATH_SEPARATOR+set}" != set; then | |
5415 | echo "#! /bin/sh" >conf$$.sh | |
5416 | echo "exit 0" >>conf$$.sh | |
5417 | chmod +x conf$$.sh | |
5418 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5419 | PATH_SEPARATOR=';' | |
5420 | else | |
5421 | PATH_SEPARATOR=: | |
5422 | fi | |
5423 | rm -f conf$$.sh | |
42ecbf5e | 5424 | fi |
20e95c23 DJ |
5425 | |
5426 | # Find out how to test for executable files. Don't use a zero-byte file, | |
5427 | # as systems may use methods other than mode bits to determine executability. | |
5428 | cat >conf$$.file <<_ASEOF | |
5429 | #! /bin/sh | |
5430 | exit 0 | |
5431 | _ASEOF | |
5432 | chmod +x conf$$.file | |
5433 | if test -x conf$$.file >/dev/null 2>&1; then | |
5434 | ac_executable_p="test -x" | |
5435 | else | |
5436 | ac_executable_p="test -f" | |
5437 | fi | |
5438 | rm -f conf$$.file | |
5439 | ||
5440 | # Extract the first word of "msgmerge", so it can be a program name with args. | |
5441 | set dummy msgmerge; ac_word=$2 | |
42ecbf5e DJ |
5442 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5443 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20e95c23 | 5444 | if test "${ac_cv_path_MSGMERGE+set}" = set; then |
42ecbf5e DJ |
5445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5446 | else | |
20e95c23 DJ |
5447 | case "$MSGMERGE" in |
5448 | [\\/]* | ?:[\\/]*) | |
5449 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
5450 | ;; | |
5451 | *) | |
5452 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
5453 | for ac_dir in $PATH; do | |
5454 | IFS="$ac_save_IFS" | |
5455 | test -z "$ac_dir" && ac_dir=. | |
5456 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5457 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
5458 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
5459 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
5460 | break 2 | |
5461 | fi | |
5462 | fi | |
5463 | done | |
5464 | done | |
5465 | IFS="$ac_save_IFS" | |
5466 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
5467 | ;; | |
5468 | esac | |
5469 | fi | |
5470 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
5471 | if test "$MSGMERGE" != ":"; then | |
5472 | echo "$as_me:$LINENO: result: $MSGMERGE" >&5 | |
5473 | echo "${ECHO_T}$MSGMERGE" >&6 | |
5474 | else | |
5475 | echo "$as_me:$LINENO: result: no" >&5 | |
5476 | echo "${ECHO_T}no" >&6 | |
5477 | fi | |
5478 | ||
5479 | ||
5480 | if test "$GMSGFMT" != ":"; then | |
5481 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
5482 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5483 | : ; | |
5484 | else | |
5485 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
5486 | echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 | |
5487 | echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 | |
5488 | GMSGFMT=":" | |
5489 | fi | |
5490 | fi | |
5491 | ||
5492 | if test "$XGETTEXT" != ":"; then | |
5493 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
5494 | (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
5495 | : ; | |
5496 | else | |
5497 | echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 | |
5498 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 | |
5499 | XGETTEXT=":" | |
5500 | fi | |
5501 | rm -f messages.po | |
5502 | fi | |
5503 | ||
5504 | ac_config_commands="$ac_config_commands default-1" | |
5505 | ||
5506 | ||
5507 | ||
5508 | ||
5509 | ||
5510 | for ac_prog in 'bison -y' byacc | |
5511 | do | |
5512 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5513 | set dummy $ac_prog; ac_word=$2 | |
5514 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5515 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5516 | if test "${ac_cv_prog_YACC+set}" = set; then | |
5517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5518 | else | |
5519 | if test -n "$YACC"; then | |
5520 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
42ecbf5e DJ |
5521 | else |
5522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5523 | for as_dir in $PATH | |
5524 | do | |
5525 | IFS=$as_save_IFS | |
5526 | test -z "$as_dir" && as_dir=. | |
5527 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5528 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20e95c23 | 5529 | ac_cv_prog_YACC="$ac_prog" |
42ecbf5e DJ |
5530 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5531 | break 2 | |
5532 | fi | |
5533 | done | |
5534 | done | |
5535 | ||
42ecbf5e DJ |
5536 | fi |
5537 | fi | |
20e95c23 DJ |
5538 | YACC=$ac_cv_prog_YACC |
5539 | if test -n "$YACC"; then | |
5540 | echo "$as_me:$LINENO: result: $YACC" >&5 | |
5541 | echo "${ECHO_T}$YACC" >&6 | |
42ecbf5e DJ |
5542 | else |
5543 | echo "$as_me:$LINENO: result: no" >&5 | |
5544 | echo "${ECHO_T}no" >&6 | |
5545 | fi | |
5546 | ||
20e95c23 DJ |
5547 | test -n "$YACC" && break |
5548 | done | |
5549 | test -n "$YACC" || YACC="yacc" | |
42ecbf5e | 5550 | |
20e95c23 DJ |
5551 | for ac_prog in flex lex |
5552 | do | |
5553 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5554 | set dummy $ac_prog; ac_word=$2 | |
5555 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5556 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5557 | if test "${ac_cv_prog_LEX+set}" = set; then | |
42ecbf5e DJ |
5558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5559 | else | |
20e95c23 DJ |
5560 | if test -n "$LEX"; then |
5561 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
5562 | else | |
5563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5564 | for as_dir in $PATH | |
42ecbf5e | 5565 | do |
20e95c23 DJ |
5566 | IFS=$as_save_IFS |
5567 | test -z "$as_dir" && as_dir=. | |
5568 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5569 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5570 | ac_cv_prog_LEX="$ac_prog" | |
5571 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5572 | break 2 | |
42ecbf5e | 5573 | fi |
20e95c23 DJ |
5574 | done |
5575 | done | |
5576 | ||
42ecbf5e | 5577 | fi |
20e95c23 DJ |
5578 | fi |
5579 | LEX=$ac_cv_prog_LEX | |
5580 | if test -n "$LEX"; then | |
5581 | echo "$as_me:$LINENO: result: $LEX" >&5 | |
5582 | echo "${ECHO_T}$LEX" >&6 | |
e5a52504 | 5583 | else |
20e95c23 DJ |
5584 | echo "$as_me:$LINENO: result: no" >&5 |
5585 | echo "${ECHO_T}no" >&6 | |
42ecbf5e | 5586 | fi |
42ecbf5e | 5587 | |
20e95c23 DJ |
5588 | test -n "$LEX" && break |
5589 | done | |
5590 | test -n "$LEX" || LEX=":" | |
5591 | ||
5592 | if test -z "$LEXLIB" | |
5593 | then | |
5594 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 | |
5595 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 | |
5596 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | |
5597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5598 | else | |
5599 | ac_check_lib_save_LIBS=$LIBS | |
5600 | LIBS="-lfl $LIBS" | |
5601 | cat >conftest.$ac_ext <<_ACEOF | |
42ecbf5e DJ |
5602 | /* confdefs.h. */ |
5603 | _ACEOF | |
5604 | cat confdefs.h >>conftest.$ac_ext | |
5605 | cat >>conftest.$ac_ext <<_ACEOF | |
5606 | /* end confdefs.h. */ | |
20e95c23 DJ |
5607 | |
5608 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5609 | #ifdef __cplusplus | |
5610 | extern "C" | |
5611 | #endif | |
5612 | /* We use char because int might match the return type of a gcc2 | |
5613 | builtin and then its argument prototype would still apply. */ | |
5614 | char yywrap (); | |
5615 | int | |
5616 | main () | |
5617 | { | |
5618 | yywrap (); | |
5619 | ; | |
5620 | return 0; | |
5621 | } | |
42ecbf5e | 5622 | _ACEOF |
20e95c23 DJ |
5623 | rm -f conftest.$ac_objext conftest$ac_exeext |
5624 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5625 | (eval $ac_link) 2>conftest.er1 | |
42ecbf5e DJ |
5626 | ac_status=$? |
5627 | grep -v '^ *+' conftest.er1 >conftest.err | |
5628 | rm -f conftest.er1 | |
5629 | cat conftest.err >&5 | |
5630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20e95c23 DJ |
5631 | (exit $ac_status); } && |
5632 | { ac_try='test -z "$ac_c_werror_flag" | |
5633 | || test ! -s conftest.err' | |
5634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5635 | (eval $ac_try) 2>&5 | |
5636 | ac_status=$? | |
5637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5638 | (exit $ac_status); }; } && | |
5639 | { ac_try='test -s conftest$ac_exeext' | |
5640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5641 | (eval $ac_try) 2>&5 | |
5642 | ac_status=$? | |
5643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5644 | (exit $ac_status); }; }; then | |
5645 | ac_cv_lib_fl_yywrap=yes | |
42ecbf5e DJ |
5646 | else |
5647 | echo "$as_me: failed program was:" >&5 | |
5648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5649 | ||
20e95c23 | 5650 | ac_cv_lib_fl_yywrap=no |
42ecbf5e | 5651 | fi |
20e95c23 DJ |
5652 | rm -f conftest.err conftest.$ac_objext \ |
5653 | conftest$ac_exeext conftest.$ac_ext | |
5654 | LIBS=$ac_check_lib_save_LIBS | |
42ecbf5e | 5655 | fi |
20e95c23 DJ |
5656 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
5657 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 | |
5658 | if test $ac_cv_lib_fl_yywrap = yes; then | |
5659 | LEXLIB="-lfl" | |
42ecbf5e | 5660 | else |
20e95c23 DJ |
5661 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
5662 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 | |
5663 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | |
5664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5665 | else | |
5666 | ac_check_lib_save_LIBS=$LIBS | |
5667 | LIBS="-ll $LIBS" | |
5668 | cat >conftest.$ac_ext <<_ACEOF | |
42ecbf5e DJ |
5669 | /* confdefs.h. */ |
5670 | _ACEOF | |
5671 | cat confdefs.h >>conftest.$ac_ext | |
5672 | cat >>conftest.$ac_ext <<_ACEOF | |
5673 | /* end confdefs.h. */ | |
20e95c23 DJ |
5674 | |
5675 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5676 | #ifdef __cplusplus | |
5677 | extern "C" | |
42ecbf5e | 5678 | #endif |
20e95c23 DJ |
5679 | /* We use char because int might match the return type of a gcc2 |
5680 | builtin and then its argument prototype would still apply. */ | |
5681 | char yywrap (); | |
5682 | int | |
5683 | main () | |
5684 | { | |
5685 | yywrap (); | |
5686 | ; | |
5687 | return 0; | |
5688 | } | |
42ecbf5e | 5689 | _ACEOF |
20e95c23 DJ |
5690 | rm -f conftest.$ac_objext conftest$ac_exeext |
5691 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5692 | (eval $ac_link) 2>conftest.er1 | |
42ecbf5e DJ |
5693 | ac_status=$? |
5694 | grep -v '^ *+' conftest.er1 >conftest.err | |
5695 | rm -f conftest.er1 | |
5696 | cat conftest.err >&5 | |
5697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20e95c23 DJ |
5698 | (exit $ac_status); } && |
5699 | { ac_try='test -z "$ac_c_werror_flag" | |
5700 | || test ! -s conftest.err' | |
5701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5702 | (eval $ac_try) 2>&5 | |
5703 | ac_status=$? | |
5704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5705 | (exit $ac_status); }; } && | |
5706 | { ac_try='test -s conftest$ac_exeext' | |
5707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5708 | (eval $ac_try) 2>&5 | |
5709 | ac_status=$? | |
5710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5711 | (exit $ac_status); }; }; then | |
5712 | ac_cv_lib_l_yywrap=yes | |
252b5132 | 5713 | else |
42ecbf5e DJ |
5714 | echo "$as_me: failed program was:" >&5 |
5715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5716 | ||
20e95c23 DJ |
5717 | ac_cv_lib_l_yywrap=no |
5718 | fi | |
5719 | rm -f conftest.err conftest.$ac_objext \ | |
5720 | conftest$ac_exeext conftest.$ac_ext | |
5721 | LIBS=$ac_check_lib_save_LIBS | |
5722 | fi | |
5723 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 | |
5724 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 | |
5725 | if test $ac_cv_lib_l_yywrap = yes; then | |
5726 | LEXLIB="-ll" | |
42ecbf5e | 5727 | fi |
42ecbf5e | 5728 | |
252b5132 | 5729 | fi |
42ecbf5e | 5730 | |
ac48eca1 | 5731 | fi |
e5a52504 | 5732 | |
20e95c23 DJ |
5733 | if test "x$LEX" != "x:"; then |
5734 | echo "$as_me:$LINENO: checking lex output file root" >&5 | |
5735 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 | |
5736 | if test "${ac_cv_prog_lex_root+set}" = set; then | |
5737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 5738 | else |
20e95c23 DJ |
5739 | # The minimal lex program is just a single line: %%. But some broken lexes |
5740 | # (Solaris, I think it was) want two %% lines, so accommodate them. | |
5741 | cat >conftest.l <<_ACEOF | |
5742 | %% | |
5743 | %% | |
5744 | _ACEOF | |
5745 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 | |
5746 | (eval $LEX conftest.l) 2>&5 | |
5747 | ac_status=$? | |
5748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5749 | (exit $ac_status); } | |
5750 | if test -f lex.yy.c; then | |
5751 | ac_cv_prog_lex_root=lex.yy | |
5752 | elif test -f lexyy.c; then | |
5753 | ac_cv_prog_lex_root=lexyy | |
5754 | else | |
5755 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 | |
5756 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | |
42ecbf5e | 5757 | { (exit 1); exit 1; }; } |
d15b04bd | 5758 | fi |
ac48eca1 | 5759 | fi |
20e95c23 DJ |
5760 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
5761 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 | |
5762 | rm -f conftest.l | |
5763 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
e5a52504 | 5764 | |
20e95c23 DJ |
5765 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
5766 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 | |
5767 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | |
42ecbf5e | 5768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 5769 | else |
20e95c23 DJ |
5770 | # POSIX says lex can declare yytext either as a pointer or an array; the |
5771 | # default is implementation-dependent. Figure out which it is, since | |
5772 | # not all implementations provide the %pointer and %array declarations. | |
5773 | ac_cv_prog_lex_yytext_pointer=no | |
5774 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | |
5775 | ac_save_LIBS=$LIBS | |
5776 | LIBS="$LIBS $LEXLIB" | |
5777 | cat >conftest.$ac_ext <<_ACEOF | |
5778 | `cat $LEX_OUTPUT_ROOT.c` | |
42ecbf5e | 5779 | _ACEOF |
20e95c23 DJ |
5780 | rm -f conftest.$ac_objext conftest$ac_exeext |
5781 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5782 | (eval $ac_link) 2>conftest.er1 | |
42ecbf5e DJ |
5783 | ac_status=$? |
5784 | grep -v '^ *+' conftest.er1 >conftest.err | |
5785 | rm -f conftest.er1 | |
5786 | cat conftest.err >&5 | |
5787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5788 | (exit $ac_status); } && | |
502bdb00 JW |
5789 | { ac_try='test -z "$ac_c_werror_flag" |
5790 | || test ! -s conftest.err' | |
42ecbf5e DJ |
5791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5792 | (eval $ac_try) 2>&5 | |
5793 | ac_status=$? | |
5794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5795 | (exit $ac_status); }; } && | |
20e95c23 | 5796 | { ac_try='test -s conftest$ac_exeext' |
42ecbf5e DJ |
5797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5798 | (eval $ac_try) 2>&5 | |
5799 | ac_status=$? | |
5800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5801 | (exit $ac_status); }; }; then | |
20e95c23 | 5802 | ac_cv_prog_lex_yytext_pointer=yes |
252b5132 | 5803 | else |
42ecbf5e DJ |
5804 | echo "$as_me: failed program was:" >&5 |
5805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5806 | ||
252b5132 | 5807 | fi |
20e95c23 DJ |
5808 | rm -f conftest.err conftest.$ac_objext \ |
5809 | conftest$ac_exeext conftest.$ac_ext | |
5810 | LIBS=$ac_save_LIBS | |
5811 | rm -f "${LEX_OUTPUT_ROOT}.c" | |
252b5132 | 5812 | |
20e95c23 DJ |
5813 | fi |
5814 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 | |
5815 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 | |
5816 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
42ecbf5e | 5817 | |
20e95c23 DJ |
5818 | cat >>confdefs.h <<\_ACEOF |
5819 | #define YYTEXT_POINTER 1 | |
42ecbf5e | 5820 | _ACEOF |
20e95c23 | 5821 | |
252b5132 | 5822 | fi |
252b5132 RH |
5823 | |
5824 | fi | |
20e95c23 DJ |
5825 | if test "$LEX" = :; then |
5826 | LEX=${am_missing_run}flex | |
5827 | fi | |
252b5132 | 5828 | |
20e95c23 DJ |
5829 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
5830 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
5831 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
5832 | if test "${enable_maintainer_mode+set}" = set; then | |
5833 | enableval="$enable_maintainer_mode" | |
5834 | USE_MAINTAINER_MODE=$enableval | |
5835 | else | |
5836 | USE_MAINTAINER_MODE=no | |
5837 | fi; | |
5838 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
5839 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
42ecbf5e | 5840 | |
20e95c23 DJ |
5841 | |
5842 | if test $USE_MAINTAINER_MODE = yes; then | |
5843 | MAINTAINER_MODE_TRUE= | |
5844 | MAINTAINER_MODE_FALSE='#' | |
252b5132 | 5845 | else |
20e95c23 DJ |
5846 | MAINTAINER_MODE_TRUE='#' |
5847 | MAINTAINER_MODE_FALSE= | |
252b5132 | 5848 | fi |
252b5132 | 5849 | |
20e95c23 | 5850 | MAINT=$MAINTAINER_MODE_TRUE |
252b5132 | 5851 | |
20e95c23 DJ |
5852 | |
5853 | ||
d5fbea21 DJ |
5854 | |
5855 | if false; then | |
5856 | GENINSRC_NEVER_TRUE= | |
5857 | GENINSRC_NEVER_FALSE='#' | |
5858 | else | |
5859 | GENINSRC_NEVER_TRUE='#' | |
5860 | GENINSRC_NEVER_FALSE= | |
5861 | fi | |
5862 | ||
5863 | ||
20e95c23 DJ |
5864 | . ${srcdir}/configure.host |
5865 | ||
5866 | ||
5867 | ||
5868 | ||
5869 | ||
5870 | ||
5871 | ac_ext=c | |
5872 | ac_cpp='$CPP $CPPFLAGS' | |
5873 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5874 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5875 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5876 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
5877 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
5878 | # On Suns, sometimes $CPP names a directory. | |
5879 | if test -n "$CPP" && test -d "$CPP"; then | |
5880 | CPP= | |
5881 | fi | |
5882 | if test -z "$CPP"; then | |
5883 | if test "${ac_cv_prog_CPP+set}" = set; then | |
5884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5885 | else |
20e95c23 DJ |
5886 | # Double quotes because CPP needs to be expanded |
5887 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5888 | do | |
5889 | ac_preproc_ok=false | |
5890 | for ac_c_preproc_warn_flag in '' yes | |
5891 | do | |
5892 | # Use a header file that comes with gcc, so configuring glibc | |
5893 | # with a fresh cross-compiler works. | |
5894 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5895 | # <limits.h> exists even on freestanding compilers. | |
5896 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5897 | # not just through cpp. "Syntax error" is here to catch this case. | |
42ecbf5e DJ |
5898 | cat >conftest.$ac_ext <<_ACEOF |
5899 | /* confdefs.h. */ | |
5900 | _ACEOF | |
5901 | cat confdefs.h >>conftest.$ac_ext | |
5902 | cat >>conftest.$ac_ext <<_ACEOF | |
5903 | /* end confdefs.h. */ | |
20e95c23 DJ |
5904 | #ifdef __STDC__ |
5905 | # include <limits.h> | |
42ecbf5e | 5906 | #else |
20e95c23 | 5907 | # include <assert.h> |
42ecbf5e | 5908 | #endif |
20e95c23 | 5909 | Syntax error |
42ecbf5e | 5910 | _ACEOF |
20e95c23 DJ |
5911 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5912 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
42ecbf5e DJ |
5913 | ac_status=$? |
5914 | grep -v '^ *+' conftest.er1 >conftest.err | |
5915 | rm -f conftest.er1 | |
5916 | cat conftest.err >&5 | |
5917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20e95c23 DJ |
5918 | (exit $ac_status); } >/dev/null; then |
5919 | if test -s conftest.err; then | |
5920 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5921 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5922 | else | |
5923 | ac_cpp_err= | |
5924 | fi | |
5925 | else | |
5926 | ac_cpp_err=yes | |
5927 | fi | |
5928 | if test -z "$ac_cpp_err"; then | |
5929 | : | |
252b5132 | 5930 | else |
42ecbf5e DJ |
5931 | echo "$as_me: failed program was:" >&5 |
5932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5933 | ||
20e95c23 DJ |
5934 | # Broken: fails on valid input. |
5935 | continue | |
252b5132 | 5936 | fi |
20e95c23 | 5937 | rm -f conftest.err conftest.$ac_ext |
252b5132 | 5938 | |
20e95c23 DJ |
5939 | # OK, works on sane cases. Now check whether non-existent headers |
5940 | # can be detected and how. | |
42ecbf5e DJ |
5941 | cat >conftest.$ac_ext <<_ACEOF |
5942 | /* confdefs.h. */ | |
5943 | _ACEOF | |
5944 | cat confdefs.h >>conftest.$ac_ext | |
5945 | cat >>conftest.$ac_ext <<_ACEOF | |
5946 | /* end confdefs.h. */ | |
20e95c23 | 5947 | #include <ac_nonexistent.h> |
42ecbf5e | 5948 | _ACEOF |
20e95c23 DJ |
5949 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5950 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
42ecbf5e DJ |
5951 | ac_status=$? |
5952 | grep -v '^ *+' conftest.er1 >conftest.err | |
5953 | rm -f conftest.er1 | |
5954 | cat conftest.err >&5 | |
5955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20e95c23 DJ |
5956 | (exit $ac_status); } >/dev/null; then |
5957 | if test -s conftest.err; then | |
5958 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5959 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5960 | else | |
5961 | ac_cpp_err= | |
5962 | fi | |
5963 | else | |
5964 | ac_cpp_err=yes | |
5965 | fi | |
5966 | if test -z "$ac_cpp_err"; then | |
5967 | # Broken: success on invalid input. | |
5968 | continue | |
252b5132 | 5969 | else |
42ecbf5e DJ |
5970 | echo "$as_me: failed program was:" >&5 |
5971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5972 | ||
20e95c23 DJ |
5973 | # Passes both tests. |
5974 | ac_preproc_ok=: | |
5975 | break | |
252b5132 | 5976 | fi |
20e95c23 | 5977 | rm -f conftest.err conftest.$ac_ext |
252b5132 | 5978 | |
20e95c23 DJ |
5979 | done |
5980 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5981 | rm -f conftest.err conftest.$ac_ext | |
5982 | if $ac_preproc_ok; then | |
5983 | break | |
252b5132 | 5984 | fi |
42ecbf5e | 5985 | |
20e95c23 DJ |
5986 | done |
5987 | ac_cv_prog_CPP=$CPP | |
42ecbf5e | 5988 | |
20e95c23 DJ |
5989 | fi |
5990 | CPP=$ac_cv_prog_CPP | |
42ecbf5e | 5991 | else |
20e95c23 DJ |
5992 | ac_cv_prog_CPP=$CPP |
5993 | fi | |
5994 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
5995 | echo "${ECHO_T}$CPP" >&6 | |
5996 | ac_preproc_ok=false | |
5997 | for ac_c_preproc_warn_flag in '' yes | |
5998 | do | |
5999 | # Use a header file that comes with gcc, so configuring glibc | |
6000 | # with a fresh cross-compiler works. | |
6001 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6002 | # <limits.h> exists even on freestanding compilers. | |
6003 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6004 | # not just through cpp. "Syntax error" is here to catch this case. | |
42ecbf5e DJ |
6005 | cat >conftest.$ac_ext <<_ACEOF |
6006 | /* confdefs.h. */ | |
6007 | _ACEOF | |
6008 | cat confdefs.h >>conftest.$ac_ext | |
6009 | cat >>conftest.$ac_ext <<_ACEOF | |
6010 | /* end confdefs.h. */ | |
20e95c23 DJ |
6011 | #ifdef __STDC__ |
6012 | # include <limits.h> | |
6013 | #else | |
6014 | # include <assert.h> | |
6015 | #endif | |
6016 | Syntax error | |
42ecbf5e | 6017 | _ACEOF |
20e95c23 DJ |
6018 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
6019 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
42ecbf5e DJ |
6020 | ac_status=$? |
6021 | grep -v '^ *+' conftest.er1 >conftest.err | |
6022 | rm -f conftest.er1 | |
6023 | cat conftest.err >&5 | |
6024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20e95c23 DJ |
6025 | (exit $ac_status); } >/dev/null; then |
6026 | if test -s conftest.err; then | |
6027 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6028 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6029 | else | |
6030 | ac_cpp_err= | |
6031 | fi | |
6032 | else | |
6033 | ac_cpp_err=yes | |
6034 | fi | |
6035 | if test -z "$ac_cpp_err"; then | |
6036 | : | |
42ecbf5e DJ |
6037 | else |
6038 | echo "$as_me: failed program was:" >&5 | |
6039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6040 | ||
20e95c23 DJ |
6041 | # Broken: fails on valid input. |
6042 | continue | |
42ecbf5e | 6043 | fi |
20e95c23 | 6044 | rm -f conftest.err conftest.$ac_ext |
42ecbf5e | 6045 | |
20e95c23 DJ |
6046 | # OK, works on sane cases. Now check whether non-existent headers |
6047 | # can be detected and how. | |
6048 | cat >conftest.$ac_ext <<_ACEOF | |
42ecbf5e DJ |
6049 | /* confdefs.h. */ |
6050 | _ACEOF | |
6051 | cat confdefs.h >>conftest.$ac_ext | |
6052 | cat >>conftest.$ac_ext <<_ACEOF | |
6053 | /* end confdefs.h. */ | |
20e95c23 | 6054 | #include <ac_nonexistent.h> |
42ecbf5e DJ |
6055 | _ACEOF |
6056 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6057 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6058 | ac_status=$? | |
6059 | grep -v '^ *+' conftest.er1 >conftest.err | |
6060 | rm -f conftest.er1 | |
6061 | cat conftest.err >&5 | |
6062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6063 | (exit $ac_status); } >/dev/null; then | |
6064 | if test -s conftest.err; then | |
6065 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6066 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6067 | else | |
6068 | ac_cpp_err= | |
6069 | fi | |
e5a52504 | 6070 | else |
42ecbf5e | 6071 | ac_cpp_err=yes |
e5a52504 | 6072 | fi |
42ecbf5e | 6073 | if test -z "$ac_cpp_err"; then |
20e95c23 DJ |
6074 | # Broken: success on invalid input. |
6075 | continue | |
42ecbf5e DJ |
6076 | else |
6077 | echo "$as_me: failed program was:" >&5 | |
6078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6079 | ||
20e95c23 DJ |
6080 | # Passes both tests. |
6081 | ac_preproc_ok=: | |
6082 | break | |
42ecbf5e DJ |
6083 | fi |
6084 | rm -f conftest.err conftest.$ac_ext | |
252b5132 | 6085 | |
42ecbf5e | 6086 | done |
20e95c23 DJ |
6087 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
6088 | rm -f conftest.err conftest.$ac_ext | |
6089 | if $ac_preproc_ok; then | |
6090 | : | |
252b5132 | 6091 | else |
20e95c23 DJ |
6092 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
6093 | See \`config.log' for more details." >&5 | |
6094 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
6095 | See \`config.log' for more details." >&2;} | |
6096 | { (exit 1); exit 1; }; } | |
252b5132 RH |
6097 | fi |
6098 | ||
20e95c23 DJ |
6099 | ac_ext=c |
6100 | ac_cpp='$CPP $CPPFLAGS' | |
6101 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6102 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6103 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
252b5132 | 6104 | |
d15b04bd | 6105 | |
20e95c23 DJ |
6106 | echo "$as_me:$LINENO: checking for egrep" >&5 |
6107 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
6108 | if test "${ac_cv_prog_egrep+set}" = set; then | |
6109 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d15b04bd | 6110 | else |
20e95c23 DJ |
6111 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
6112 | then ac_cv_prog_egrep='grep -E' | |
6113 | else ac_cv_prog_egrep='egrep' | |
6114 | fi | |
d15b04bd | 6115 | fi |
20e95c23 DJ |
6116 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
6117 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
6118 | EGREP=$ac_cv_prog_egrep | |
e5a52504 | 6119 | |
42ecbf5e | 6120 | |
20e95c23 DJ |
6121 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
6122 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
6123 | if test "${ac_cv_header_stdc+set}" = set; then | |
42ecbf5e DJ |
6124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6125 | else | |
20e95c23 | 6126 | cat >conftest.$ac_ext <<_ACEOF |
42ecbf5e DJ |
6127 | /* confdefs.h. */ |
6128 | _ACEOF | |
6129 | cat confdefs.h >>conftest.$ac_ext | |
6130 | cat >>conftest.$ac_ext <<_ACEOF | |
6131 | /* end confdefs.h. */ | |
20e95c23 DJ |
6132 | #include <stdlib.h> |
6133 | #include <stdarg.h> | |
6134 | #include <string.h> | |
6135 | #include <float.h> | |
42ecbf5e | 6136 | |
42ecbf5e DJ |
6137 | int |
6138 | main () | |
6139 | { | |
d15b04bd | 6140 | |
42ecbf5e DJ |
6141 | ; |
6142 | return 0; | |
6143 | } | |
6144 | _ACEOF | |
20e95c23 DJ |
6145 | rm -f conftest.$ac_objext |
6146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6147 | (eval $ac_compile) 2>conftest.er1 | |
42ecbf5e DJ |
6148 | ac_status=$? |
6149 | grep -v '^ *+' conftest.er1 >conftest.err | |
6150 | rm -f conftest.er1 | |
6151 | cat conftest.err >&5 | |
6152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6153 | (exit $ac_status); } && | |
502bdb00 JW |
6154 | { ac_try='test -z "$ac_c_werror_flag" |
6155 | || test ! -s conftest.err' | |
42ecbf5e DJ |
6156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6157 | (eval $ac_try) 2>&5 | |
6158 | ac_status=$? | |
6159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6160 | (exit $ac_status); }; } && | |
20e95c23 | 6161 | { ac_try='test -s conftest.$ac_objext' |
42ecbf5e DJ |
6162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6163 | (eval $ac_try) 2>&5 | |
6164 | ac_status=$? | |
6165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6166 | (exit $ac_status); }; }; then | |
20e95c23 | 6167 | ac_cv_header_stdc=yes |
42ecbf5e DJ |
6168 | else |
6169 | echo "$as_me: failed program was:" >&5 | |
6170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6171 | ||
20e95c23 | 6172 | ac_cv_header_stdc=no |
42ecbf5e | 6173 | fi |
20e95c23 DJ |
6174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6175 | ||
6176 | if test $ac_cv_header_stdc = yes; then | |
6177 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6178 | cat >conftest.$ac_ext <<_ACEOF | |
6179 | /* confdefs.h. */ | |
6180 | _ACEOF | |
6181 | cat confdefs.h >>conftest.$ac_ext | |
6182 | cat >>conftest.$ac_ext <<_ACEOF | |
6183 | /* end confdefs.h. */ | |
6184 | #include <string.h> | |
6185 | ||
6186 | _ACEOF | |
6187 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6188 | $EGREP "memchr" >/dev/null 2>&1; then | |
6189 | : | |
6190 | else | |
6191 | ac_cv_header_stdc=no | |
42ecbf5e | 6192 | fi |
20e95c23 DJ |
6193 | rm -f conftest* |
6194 | ||
42ecbf5e DJ |
6195 | fi |
6196 | ||
20e95c23 DJ |
6197 | if test $ac_cv_header_stdc = yes; then |
6198 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6199 | cat >conftest.$ac_ext <<_ACEOF | |
6200 | /* confdefs.h. */ | |
6201 | _ACEOF | |
6202 | cat confdefs.h >>conftest.$ac_ext | |
6203 | cat >>conftest.$ac_ext <<_ACEOF | |
6204 | /* end confdefs.h. */ | |
6205 | #include <stdlib.h> | |
6206 | ||
6207 | _ACEOF | |
6208 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6209 | $EGREP "free" >/dev/null 2>&1; then | |
6210 | : | |
6211 | else | |
6212 | ac_cv_header_stdc=no | |
42ecbf5e | 6213 | fi |
20e95c23 | 6214 | rm -f conftest* |
42ecbf5e DJ |
6215 | |
6216 | fi | |
6217 | ||
20e95c23 DJ |
6218 | if test $ac_cv_header_stdc = yes; then |
6219 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6220 | if test "$cross_compiling" = yes; then | |
6221 | : | |
252b5132 | 6222 | else |
20e95c23 DJ |
6223 | cat >conftest.$ac_ext <<_ACEOF |
6224 | /* confdefs.h. */ | |
42ecbf5e | 6225 | _ACEOF |
20e95c23 DJ |
6226 | cat confdefs.h >>conftest.$ac_ext |
6227 | cat >>conftest.$ac_ext <<_ACEOF | |
6228 | /* end confdefs.h. */ | |
6229 | #include <ctype.h> | |
6230 | #if ((' ' & 0x0FF) == 0x020) | |
6231 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6232 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6233 | #else | |
6234 | # define ISLOWER(c) \ | |
6235 | (('a' <= (c) && (c) <= 'i') \ | |
6236 | || ('j' <= (c) && (c) <= 'r') \ | |
6237 | || ('s' <= (c) && (c) <= 'z')) | |
6238 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6239 | #endif | |
6240 | ||
6241 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6242 | int | |
6243 | main () | |
6244 | { | |
6245 | int i; | |
6246 | for (i = 0; i < 256; i++) | |
6247 | if (XOR (islower (i), ISLOWER (i)) | |
6248 | || toupper (i) != TOUPPER (i)) | |
6249 | exit(2); | |
6250 | exit (0); | |
6251 | } | |
6252 | _ACEOF | |
6253 | rm -f conftest$ac_exeext | |
6254 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6255 | (eval $ac_link) 2>&5 | |
42ecbf5e DJ |
6256 | ac_status=$? |
6257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20e95c23 DJ |
6258 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
6259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6260 | (eval $ac_try) 2>&5 | |
6261 | ac_status=$? | |
6262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6263 | (exit $ac_status); }; }; then | |
6264 | : | |
252b5132 | 6265 | else |
20e95c23 DJ |
6266 | echo "$as_me: program exited with status $ac_status" >&5 |
6267 | echo "$as_me: failed program was:" >&5 | |
6268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6269 | ||
6270 | ( exit $ac_status ) | |
6271 | ac_cv_header_stdc=no | |
252b5132 | 6272 | fi |
20e95c23 | 6273 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 6274 | fi |
20e95c23 DJ |
6275 | fi |
6276 | fi | |
6277 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
6278 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
6279 | if test $ac_cv_header_stdc = yes; then | |
252b5132 | 6280 | |
20e95c23 DJ |
6281 | cat >>confdefs.h <<\_ACEOF |
6282 | #define STDC_HEADERS 1 | |
6283 | _ACEOF | |
6284 | ||
6285 | fi | |
6286 | ||
6287 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
6288 | ||
6289 | ||
6290 | ||
6291 | ||
6292 | ||
6293 | ||
6294 | ||
6295 | ||
6296 | ||
6297 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
6298 | inttypes.h stdint.h unistd.h | |
6299 | do | |
6300 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6301 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6302 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6303 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
42ecbf5e | 6304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 6305 | else |
20e95c23 DJ |
6306 | cat >conftest.$ac_ext <<_ACEOF |
6307 | /* confdefs.h. */ | |
42ecbf5e | 6308 | _ACEOF |
20e95c23 DJ |
6309 | cat confdefs.h >>conftest.$ac_ext |
6310 | cat >>conftest.$ac_ext <<_ACEOF | |
6311 | /* end confdefs.h. */ | |
6312 | $ac_includes_default | |
6313 | ||
6314 | #include <$ac_header> | |
6315 | _ACEOF | |
6316 | rm -f conftest.$ac_objext | |
6317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6318 | (eval $ac_compile) 2>conftest.er1 | |
42ecbf5e DJ |
6319 | ac_status=$? |
6320 | grep -v '^ *+' conftest.er1 >conftest.err | |
6321 | rm -f conftest.er1 | |
6322 | cat conftest.err >&5 | |
6323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6324 | (exit $ac_status); } && | |
502bdb00 JW |
6325 | { ac_try='test -z "$ac_c_werror_flag" |
6326 | || test ! -s conftest.err' | |
42ecbf5e DJ |
6327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6328 | (eval $ac_try) 2>&5 | |
6329 | ac_status=$? | |
6330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6331 | (exit $ac_status); }; } && | |
20e95c23 | 6332 | { ac_try='test -s conftest.$ac_objext' |
42ecbf5e DJ |
6333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6334 | (eval $ac_try) 2>&5 | |
6335 | ac_status=$? | |
6336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6337 | (exit $ac_status); }; }; then | |
20e95c23 | 6338 | eval "$as_ac_Header=yes" |
252b5132 | 6339 | else |
42ecbf5e DJ |
6340 | echo "$as_me: failed program was:" >&5 |
6341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6342 | ||
20e95c23 | 6343 | eval "$as_ac_Header=no" |
252b5132 | 6344 | fi |
20e95c23 | 6345 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 6346 | fi |
20e95c23 DJ |
6347 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6348 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6349 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6350 | cat >>confdefs.h <<_ACEOF | |
6351 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
42ecbf5e | 6352 | _ACEOF |
252b5132 RH |
6353 | |
6354 | fi | |
6355 | ||
20e95c23 | 6356 | done |
252b5132 RH |
6357 | |
6358 | ||
42ecbf5e DJ |
6359 | |
6360 | ||
6361 | ||
6362 | ||
ebe1fac1 | 6363 | |
a3ffa599 L |
6364 | |
6365 | ||
6366 | for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h | |
252b5132 | 6367 | do |
42ecbf5e DJ |
6368 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6369 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6370 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6371 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6372 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6374 | fi | |
6375 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6376 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6377 | else | |
6378 | # Is the header compilable? | |
6379 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6380 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6381 | cat >conftest.$ac_ext <<_ACEOF | |
6382 | /* confdefs.h. */ | |
6383 | _ACEOF | |
6384 | cat confdefs.h >>conftest.$ac_ext | |
6385 | cat >>conftest.$ac_ext <<_ACEOF | |
6386 | /* end confdefs.h. */ | |
6387 | $ac_includes_default | |
6388 | #include <$ac_header> | |
6389 | _ACEOF | |
6390 | rm -f conftest.$ac_objext | |
6391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6392 | (eval $ac_compile) 2>conftest.er1 | |
6393 | ac_status=$? | |
6394 | grep -v '^ *+' conftest.er1 >conftest.err | |
6395 | rm -f conftest.er1 | |
6396 | cat conftest.err >&5 | |
6397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6398 | (exit $ac_status); } && | |
502bdb00 JW |
6399 | { ac_try='test -z "$ac_c_werror_flag" |
6400 | || test ! -s conftest.err' | |
42ecbf5e DJ |
6401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6402 | (eval $ac_try) 2>&5 | |
6403 | ac_status=$? | |
6404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6405 | (exit $ac_status); }; } && | |
6406 | { ac_try='test -s conftest.$ac_objext' | |
6407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6408 | (eval $ac_try) 2>&5 | |
6409 | ac_status=$? | |
6410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6411 | (exit $ac_status); }; }; then | |
6412 | ac_header_compiler=yes | |
6413 | else | |
6414 | echo "$as_me: failed program was:" >&5 | |
6415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6416 | ||
6417 | ac_header_compiler=no | |
6418 | fi | |
6419 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6420 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6421 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6422 | ||
6423 | # Is the header present? | |
6424 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6425 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6426 | cat >conftest.$ac_ext <<_ACEOF | |
6427 | /* confdefs.h. */ | |
6428 | _ACEOF | |
6429 | cat confdefs.h >>conftest.$ac_ext | |
6430 | cat >>conftest.$ac_ext <<_ACEOF | |
6431 | /* end confdefs.h. */ | |
6432 | #include <$ac_header> | |
6433 | _ACEOF | |
6434 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6435 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6436 | ac_status=$? | |
6437 | grep -v '^ *+' conftest.er1 >conftest.err | |
6438 | rm -f conftest.er1 | |
6439 | cat conftest.err >&5 | |
6440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6441 | (exit $ac_status); } >/dev/null; then | |
6442 | if test -s conftest.err; then | |
6443 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6444 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6445 | else | |
6446 | ac_cpp_err= | |
6447 | fi | |
252b5132 | 6448 | else |
42ecbf5e | 6449 | ac_cpp_err=yes |
252b5132 | 6450 | fi |
42ecbf5e DJ |
6451 | if test -z "$ac_cpp_err"; then |
6452 | ac_header_preproc=yes | |
6453 | else | |
6454 | echo "$as_me: failed program was:" >&5 | |
6455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6456 | ||
6457 | ac_header_preproc=no | |
252b5132 | 6458 | fi |
42ecbf5e DJ |
6459 | rm -f conftest.err conftest.$ac_ext |
6460 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6461 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6462 | ||
6463 | # So? What about this header? | |
6464 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6465 | yes:no: ) | |
6466 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6467 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6468 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6469 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6470 | ac_header_preproc=yes | |
6471 | ;; | |
6472 | no:yes:* ) | |
6473 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6474 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6475 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6476 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6477 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6478 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6479 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6480 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6481 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6482 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6483 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6484 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6485 | ( | |
6486 | cat <<\_ASBOX | |
6487 | ## ------------------------------------------ ## | |
6488 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6489 | ## ------------------------------------------ ## | |
6490 | _ASBOX | |
6491 | ) | | |
6492 | sed "s/^/$as_me: WARNING: /" >&2 | |
6493 | ;; | |
6494 | esac | |
6495 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6496 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6497 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6499 | else |
42ecbf5e DJ |
6500 | eval "$as_ac_Header=\$ac_header_preproc" |
6501 | fi | |
6502 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6503 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6504 | ||
252b5132 | 6505 | fi |
42ecbf5e DJ |
6506 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6507 | cat >>confdefs.h <<_ACEOF | |
6508 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6509 | _ACEOF | |
6510 | ||
6511 | fi | |
6512 | ||
252b5132 RH |
6513 | done |
6514 | ||
42ecbf5e DJ |
6515 | |
6516 | ||
6517 | ||
0b48acfe | 6518 | for ac_func in sbrk realpath glob |
252b5132 | 6519 | do |
42ecbf5e DJ |
6520 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6521 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6522 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6523 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6525 | else | |
6526 | cat >conftest.$ac_ext <<_ACEOF | |
6527 | /* confdefs.h. */ | |
6528 | _ACEOF | |
6529 | cat confdefs.h >>conftest.$ac_ext | |
6530 | cat >>conftest.$ac_ext <<_ACEOF | |
6531 | /* end confdefs.h. */ | |
6532 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6533 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6534 | #define $ac_func innocuous_$ac_func | |
6535 | ||
252b5132 | 6536 | /* System header to define __stub macros and hopefully few prototypes, |
42ecbf5e DJ |
6537 | which can conflict with char $ac_func (); below. |
6538 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6539 | <limits.h> exists even on freestanding compilers. */ | |
6540 | ||
6541 | #ifdef __STDC__ | |
6542 | # include <limits.h> | |
6543 | #else | |
6544 | # include <assert.h> | |
6545 | #endif | |
d15b04bd | 6546 | |
42ecbf5e | 6547 | #undef $ac_func |
d15b04bd | 6548 | |
42ecbf5e DJ |
6549 | /* Override any gcc2 internal prototype to avoid an error. */ |
6550 | #ifdef __cplusplus | |
6551 | extern "C" | |
6552 | { | |
6553 | #endif | |
6554 | /* We use char because int might match the return type of a gcc2 | |
6555 | builtin and then its argument prototype would still apply. */ | |
6556 | char $ac_func (); | |
252b5132 RH |
6557 | /* The GNU C library defines this for functions which it implements |
6558 | to always fail with ENOSYS. Some functions are actually named | |
6559 | something starting with __ and the normal name is an alias. */ | |
6560 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6561 | choke me | |
6562 | #else | |
42ecbf5e DJ |
6563 | char (*f) () = $ac_func; |
6564 | #endif | |
6565 | #ifdef __cplusplus | |
6566 | } | |
252b5132 RH |
6567 | #endif |
6568 | ||
42ecbf5e DJ |
6569 | int |
6570 | main () | |
6571 | { | |
6572 | return f != $ac_func; | |
6573 | ; | |
6574 | return 0; | |
6575 | } | |
6576 | _ACEOF | |
6577 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6578 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6579 | (eval $ac_link) 2>conftest.er1 | |
6580 | ac_status=$? | |
6581 | grep -v '^ *+' conftest.er1 >conftest.err | |
6582 | rm -f conftest.er1 | |
6583 | cat conftest.err >&5 | |
6584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6585 | (exit $ac_status); } && | |
502bdb00 JW |
6586 | { ac_try='test -z "$ac_c_werror_flag" |
6587 | || test ! -s conftest.err' | |
42ecbf5e DJ |
6588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6589 | (eval $ac_try) 2>&5 | |
6590 | ac_status=$? | |
6591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6592 | (exit $ac_status); }; } && | |
6593 | { ac_try='test -s conftest$ac_exeext' | |
6594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6595 | (eval $ac_try) 2>&5 | |
6596 | ac_status=$? | |
6597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6598 | (exit $ac_status); }; }; then | |
6599 | eval "$as_ac_var=yes" | |
6600 | else | |
6601 | echo "$as_me: failed program was:" >&5 | |
6602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6603 | ||
6604 | eval "$as_ac_var=no" | |
6605 | fi | |
6606 | rm -f conftest.err conftest.$ac_objext \ | |
6607 | conftest$ac_exeext conftest.$ac_ext | |
6608 | fi | |
6609 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6610 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6611 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6612 | cat >>confdefs.h <<_ACEOF | |
6613 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6614 | _ACEOF | |
252b5132 | 6615 | |
252b5132 RH |
6616 | fi |
6617 | done | |
6618 | ||
42ecbf5e DJ |
6619 | |
6620 | ||
6621 | ||
6622 | ||
6623 | ||
252b5132 | 6624 | ac_header_dirent=no |
42ecbf5e DJ |
6625 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
6626 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
6627 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
6628 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
6629 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6631 | else | |
6632 | cat >conftest.$ac_ext <<_ACEOF | |
6633 | /* confdefs.h. */ | |
6634 | _ACEOF | |
6635 | cat confdefs.h >>conftest.$ac_ext | |
6636 | cat >>conftest.$ac_ext <<_ACEOF | |
6637 | /* end confdefs.h. */ | |
252b5132 RH |
6638 | #include <sys/types.h> |
6639 | #include <$ac_hdr> | |
42ecbf5e DJ |
6640 | |
6641 | int | |
6642 | main () | |
6643 | { | |
6644 | if ((DIR *) 0) | |
6645 | return 0; | |
6646 | ; | |
6647 | return 0; | |
6648 | } | |
6649 | _ACEOF | |
6650 | rm -f conftest.$ac_objext | |
6651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6652 | (eval $ac_compile) 2>conftest.er1 | |
6653 | ac_status=$? | |
6654 | grep -v '^ *+' conftest.er1 >conftest.err | |
6655 | rm -f conftest.er1 | |
6656 | cat conftest.err >&5 | |
6657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6658 | (exit $ac_status); } && | |
502bdb00 JW |
6659 | { ac_try='test -z "$ac_c_werror_flag" |
6660 | || test ! -s conftest.err' | |
42ecbf5e DJ |
6661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6662 | (eval $ac_try) 2>&5 | |
6663 | ac_status=$? | |
6664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6665 | (exit $ac_status); }; } && | |
6666 | { ac_try='test -s conftest.$ac_objext' | |
6667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6668 | (eval $ac_try) 2>&5 | |
6669 | ac_status=$? | |
6670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6671 | (exit $ac_status); }; }; then | |
6672 | eval "$as_ac_Header=yes" | |
6673 | else | |
6674 | echo "$as_me: failed program was:" >&5 | |
6675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6676 | ||
6677 | eval "$as_ac_Header=no" | |
6678 | fi | |
6679 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6680 | fi | |
6681 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6682 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6683 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6684 | cat >>confdefs.h <<_ACEOF | |
6685 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
6686 | _ACEOF | |
6687 | ||
6688 | ac_header_dirent=$ac_hdr; break | |
d15b04bd | 6689 | fi |
42ecbf5e | 6690 | |
d15b04bd L |
6691 | done |
6692 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
6693 | if test $ac_header_dirent = dirent.h; then | |
42ecbf5e DJ |
6694 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
6695 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
6696 | if test "${ac_cv_search_opendir+set}" = set; then | |
6697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6698 | else | |
6699 | ac_func_search_save_LIBS=$LIBS | |
6700 | ac_cv_search_opendir=no | |
6701 | cat >conftest.$ac_ext <<_ACEOF | |
6702 | /* confdefs.h. */ | |
6703 | _ACEOF | |
6704 | cat confdefs.h >>conftest.$ac_ext | |
6705 | cat >>conftest.$ac_ext <<_ACEOF | |
6706 | /* end confdefs.h. */ | |
6707 | ||
e5a52504 | 6708 | /* Override any gcc2 internal prototype to avoid an error. */ |
42ecbf5e DJ |
6709 | #ifdef __cplusplus |
6710 | extern "C" | |
6711 | #endif | |
e5a52504 | 6712 | /* We use char because int might match the return type of a gcc2 |
42ecbf5e DJ |
6713 | builtin and then its argument prototype would still apply. */ |
6714 | char opendir (); | |
6715 | int | |
6716 | main () | |
6717 | { | |
6718 | opendir (); | |
6719 | ; | |
6720 | return 0; | |
6721 | } | |
6722 | _ACEOF | |
6723 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6724 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6725 | (eval $ac_link) 2>conftest.er1 | |
6726 | ac_status=$? | |
6727 | grep -v '^ *+' conftest.er1 >conftest.err | |
6728 | rm -f conftest.er1 | |
6729 | cat conftest.err >&5 | |
6730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6731 | (exit $ac_status); } && | |
502bdb00 JW |
6732 | { ac_try='test -z "$ac_c_werror_flag" |
6733 | || test ! -s conftest.err' | |
42ecbf5e DJ |
6734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6735 | (eval $ac_try) 2>&5 | |
6736 | ac_status=$? | |
6737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6738 | (exit $ac_status); }; } && | |
6739 | { ac_try='test -s conftest$ac_exeext' | |
6740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6741 | (eval $ac_try) 2>&5 | |
6742 | ac_status=$? | |
6743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6744 | (exit $ac_status); }; }; then | |
6745 | ac_cv_search_opendir="none required" | |
6746 | else | |
6747 | echo "$as_me: failed program was:" >&5 | |
6748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6749 | ||
6750 | fi | |
6751 | rm -f conftest.err conftest.$ac_objext \ | |
6752 | conftest$ac_exeext conftest.$ac_ext | |
6753 | if test "$ac_cv_search_opendir" = no; then | |
6754 | for ac_lib in dir; do | |
6755 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6756 | cat >conftest.$ac_ext <<_ACEOF | |
6757 | /* confdefs.h. */ | |
6758 | _ACEOF | |
6759 | cat confdefs.h >>conftest.$ac_ext | |
6760 | cat >>conftest.$ac_ext <<_ACEOF | |
6761 | /* end confdefs.h. */ | |
e5a52504 | 6762 | |
42ecbf5e DJ |
6763 | /* Override any gcc2 internal prototype to avoid an error. */ |
6764 | #ifdef __cplusplus | |
6765 | extern "C" | |
6766 | #endif | |
6767 | /* We use char because int might match the return type of a gcc2 | |
6768 | builtin and then its argument prototype would still apply. */ | |
6769 | char opendir (); | |
6770 | int | |
6771 | main () | |
6772 | { | |
6773 | opendir (); | |
6774 | ; | |
6775 | return 0; | |
6776 | } | |
6777 | _ACEOF | |
6778 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6779 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6780 | (eval $ac_link) 2>conftest.er1 | |
6781 | ac_status=$? | |
6782 | grep -v '^ *+' conftest.er1 >conftest.err | |
6783 | rm -f conftest.er1 | |
6784 | cat conftest.err >&5 | |
6785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6786 | (exit $ac_status); } && | |
502bdb00 JW |
6787 | { ac_try='test -z "$ac_c_werror_flag" |
6788 | || test ! -s conftest.err' | |
42ecbf5e DJ |
6789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6790 | (eval $ac_try) 2>&5 | |
6791 | ac_status=$? | |
6792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6793 | (exit $ac_status); }; } && | |
6794 | { ac_try='test -s conftest$ac_exeext' | |
6795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6796 | (eval $ac_try) 2>&5 | |
6797 | ac_status=$? | |
6798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6799 | (exit $ac_status); }; }; then | |
6800 | ac_cv_search_opendir="-l$ac_lib" | |
6801 | break | |
6802 | else | |
6803 | echo "$as_me: failed program was:" >&5 | |
6804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6805 | ||
6806 | fi | |
6807 | rm -f conftest.err conftest.$ac_objext \ | |
6808 | conftest$ac_exeext conftest.$ac_ext | |
6809 | done | |
252b5132 | 6810 | fi |
42ecbf5e DJ |
6811 | LIBS=$ac_func_search_save_LIBS |
6812 | fi | |
6813 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
6814 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
6815 | if test "$ac_cv_search_opendir" != no; then | |
6816 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
6817 | ||
d15b04bd | 6818 | fi |
252b5132 RH |
6819 | |
6820 | else | |
42ecbf5e DJ |
6821 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
6822 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
6823 | if test "${ac_cv_search_opendir+set}" = set; then | |
6824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6825 | else |
42ecbf5e DJ |
6826 | ac_func_search_save_LIBS=$LIBS |
6827 | ac_cv_search_opendir=no | |
6828 | cat >conftest.$ac_ext <<_ACEOF | |
6829 | /* confdefs.h. */ | |
6830 | _ACEOF | |
6831 | cat confdefs.h >>conftest.$ac_ext | |
6832 | cat >>conftest.$ac_ext <<_ACEOF | |
6833 | /* end confdefs.h. */ | |
6834 | ||
252b5132 | 6835 | /* Override any gcc2 internal prototype to avoid an error. */ |
42ecbf5e DJ |
6836 | #ifdef __cplusplus |
6837 | extern "C" | |
6838 | #endif | |
252b5132 | 6839 | /* We use char because int might match the return type of a gcc2 |
42ecbf5e DJ |
6840 | builtin and then its argument prototype would still apply. */ |
6841 | char opendir (); | |
6842 | int | |
6843 | main () | |
6844 | { | |
6845 | opendir (); | |
6846 | ; | |
6847 | return 0; | |
6848 | } | |
6849 | _ACEOF | |
6850 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6851 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6852 | (eval $ac_link) 2>conftest.er1 | |
6853 | ac_status=$? | |
6854 | grep -v '^ *+' conftest.er1 >conftest.err | |
6855 | rm -f conftest.er1 | |
6856 | cat conftest.err >&5 | |
6857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6858 | (exit $ac_status); } && | |
502bdb00 JW |
6859 | { ac_try='test -z "$ac_c_werror_flag" |
6860 | || test ! -s conftest.err' | |
42ecbf5e DJ |
6861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6862 | (eval $ac_try) 2>&5 | |
6863 | ac_status=$? | |
6864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6865 | (exit $ac_status); }; } && | |
6866 | { ac_try='test -s conftest$ac_exeext' | |
6867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6868 | (eval $ac_try) 2>&5 | |
6869 | ac_status=$? | |
6870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6871 | (exit $ac_status); }; }; then | |
6872 | ac_cv_search_opendir="none required" | |
6873 | else | |
6874 | echo "$as_me: failed program was:" >&5 | |
6875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6876 | ||
6877 | fi | |
6878 | rm -f conftest.err conftest.$ac_objext \ | |
6879 | conftest$ac_exeext conftest.$ac_ext | |
6880 | if test "$ac_cv_search_opendir" = no; then | |
6881 | for ac_lib in x; do | |
6882 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6883 | cat >conftest.$ac_ext <<_ACEOF | |
6884 | /* confdefs.h. */ | |
6885 | _ACEOF | |
6886 | cat confdefs.h >>conftest.$ac_ext | |
6887 | cat >>conftest.$ac_ext <<_ACEOF | |
6888 | /* end confdefs.h. */ | |
252b5132 | 6889 | |
42ecbf5e DJ |
6890 | /* Override any gcc2 internal prototype to avoid an error. */ |
6891 | #ifdef __cplusplus | |
6892 | extern "C" | |
6893 | #endif | |
6894 | /* We use char because int might match the return type of a gcc2 | |
6895 | builtin and then its argument prototype would still apply. */ | |
6896 | char opendir (); | |
6897 | int | |
6898 | main () | |
6899 | { | |
6900 | opendir (); | |
6901 | ; | |
6902 | return 0; | |
6903 | } | |
6904 | _ACEOF | |
6905 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6906 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6907 | (eval $ac_link) 2>conftest.er1 | |
6908 | ac_status=$? | |
6909 | grep -v '^ *+' conftest.er1 >conftest.err | |
6910 | rm -f conftest.er1 | |
6911 | cat conftest.err >&5 | |
6912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6913 | (exit $ac_status); } && | |
502bdb00 JW |
6914 | { ac_try='test -z "$ac_c_werror_flag" |
6915 | || test ! -s conftest.err' | |
42ecbf5e DJ |
6916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6917 | (eval $ac_try) 2>&5 | |
6918 | ac_status=$? | |
6919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6920 | (exit $ac_status); }; } && | |
6921 | { ac_try='test -s conftest$ac_exeext' | |
6922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6923 | (eval $ac_try) 2>&5 | |
6924 | ac_status=$? | |
6925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6926 | (exit $ac_status); }; }; then | |
6927 | ac_cv_search_opendir="-l$ac_lib" | |
6928 | break | |
6929 | else | |
6930 | echo "$as_me: failed program was:" >&5 | |
6931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6932 | ||
6933 | fi | |
6934 | rm -f conftest.err conftest.$ac_objext \ | |
6935 | conftest$ac_exeext conftest.$ac_ext | |
6936 | done | |
252b5132 | 6937 | fi |
42ecbf5e | 6938 | LIBS=$ac_func_search_save_LIBS |
252b5132 | 6939 | fi |
42ecbf5e DJ |
6940 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
6941 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
6942 | if test "$ac_cv_search_opendir" != no; then | |
6943 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
6944 | ||
d15b04bd | 6945 | fi |
252b5132 RH |
6946 | |
6947 | fi | |
6948 | ||
6949 | ||
42ecbf5e DJ |
6950 | echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5 |
6951 | echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6 | |
6952 | if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then | |
6953 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34875e64 | 6954 | else |
42ecbf5e DJ |
6955 | cat >conftest.$ac_ext <<_ACEOF |
6956 | /* confdefs.h. */ | |
6957 | _ACEOF | |
6958 | cat confdefs.h >>conftest.$ac_ext | |
6959 | cat >>conftest.$ac_ext <<_ACEOF | |
6960 | /* end confdefs.h. */ | |
34875e64 | 6961 | #include <unistd.h> |
42ecbf5e DJ |
6962 | int |
6963 | main () | |
6964 | { | |
34875e64 | 6965 | extern int getopt (int, char *const*, const char *); |
42ecbf5e DJ |
6966 | ; |
6967 | return 0; | |
6968 | } | |
6969 | _ACEOF | |
6970 | rm -f conftest.$ac_objext | |
6971 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6972 | (eval $ac_compile) 2>conftest.er1 | |
6973 | ac_status=$? | |
6974 | grep -v '^ *+' conftest.er1 >conftest.err | |
6975 | rm -f conftest.er1 | |
6976 | cat conftest.err >&5 | |
6977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6978 | (exit $ac_status); } && | |
502bdb00 JW |
6979 | { ac_try='test -z "$ac_c_werror_flag" |
6980 | || test ! -s conftest.err' | |
42ecbf5e DJ |
6981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6982 | (eval $ac_try) 2>&5 | |
6983 | ac_status=$? | |
6984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6985 | (exit $ac_status); }; } && | |
6986 | { ac_try='test -s conftest.$ac_objext' | |
6987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6988 | (eval $ac_try) 2>&5 | |
6989 | ac_status=$? | |
6990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6991 | (exit $ac_status); }; }; then | |
34875e64 NC |
6992 | ld_cv_decl_getopt_unistd_h=yes |
6993 | else | |
42ecbf5e DJ |
6994 | echo "$as_me: failed program was:" >&5 |
6995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6996 | ||
6997 | ld_cv_decl_getopt_unistd_h=no | |
34875e64 | 6998 | fi |
42ecbf5e | 6999 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
34875e64 NC |
7000 | fi |
7001 | ||
42ecbf5e DJ |
7002 | echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5 |
7003 | echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6 | |
34875e64 | 7004 | if test $ld_cv_decl_getopt_unistd_h = yes; then |
42ecbf5e DJ |
7005 | |
7006 | cat >>confdefs.h <<\_ACEOF | |
34875e64 | 7007 | #define HAVE_DECL_GETOPT 1 |
42ecbf5e | 7008 | _ACEOF |
34875e64 NC |
7009 | |
7010 | fi | |
42ecbf5e | 7011 | |
252b5132 RH |
7012 | |
7013 | case "${host}" in | |
a8100d5b | 7014 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) |
42ecbf5e DJ |
7015 | |
7016 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 7017 | #define USE_BINARY_FOPEN 1 |
42ecbf5e | 7018 | _ACEOF |
252b5132 RH |
7019 | ;; |
7020 | esac | |
7021 | ||
502bdb00 JW |
7022 | echo "$as_me:$LINENO: checking whether strstr is declared" >&5 |
7023 | echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6 | |
7024 | if test "${ac_cv_have_decl_strstr+set}" = set; then | |
42ecbf5e | 7025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 7026 | else |
42ecbf5e DJ |
7027 | cat >conftest.$ac_ext <<_ACEOF |
7028 | /* confdefs.h. */ | |
7029 | _ACEOF | |
7030 | cat confdefs.h >>conftest.$ac_ext | |
7031 | cat >>conftest.$ac_ext <<_ACEOF | |
7032 | /* end confdefs.h. */ | |
502bdb00 | 7033 | $ac_includes_default |
42ecbf5e DJ |
7034 | int |
7035 | main () | |
7036 | { | |
502bdb00 JW |
7037 | #ifndef strstr |
7038 | char *p = (char *) strstr; | |
7039 | #endif | |
7040 | ||
42ecbf5e DJ |
7041 | ; |
7042 | return 0; | |
7043 | } | |
7044 | _ACEOF | |
7045 | rm -f conftest.$ac_objext | |
7046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7047 | (eval $ac_compile) 2>conftest.er1 | |
7048 | ac_status=$? | |
7049 | grep -v '^ *+' conftest.er1 >conftest.err | |
7050 | rm -f conftest.er1 | |
7051 | cat conftest.err >&5 | |
7052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7053 | (exit $ac_status); } && | |
502bdb00 JW |
7054 | { ac_try='test -z "$ac_c_werror_flag" |
7055 | || test ! -s conftest.err' | |
42ecbf5e DJ |
7056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7057 | (eval $ac_try) 2>&5 | |
7058 | ac_status=$? | |
7059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7060 | (exit $ac_status); }; } && | |
7061 | { ac_try='test -s conftest.$ac_objext' | |
7062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7063 | (eval $ac_try) 2>&5 | |
7064 | ac_status=$? | |
7065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7066 | (exit $ac_status); }; }; then | |
502bdb00 | 7067 | ac_cv_have_decl_strstr=yes |
252b5132 | 7068 | else |
42ecbf5e DJ |
7069 | echo "$as_me: failed program was:" >&5 |
7070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7071 | ||
502bdb00 | 7072 | ac_cv_have_decl_strstr=no |
252b5132 | 7073 | fi |
42ecbf5e | 7074 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 7075 | fi |
502bdb00 JW |
7076 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5 |
7077 | echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6 | |
7078 | if test $ac_cv_have_decl_strstr = yes; then | |
252b5132 | 7079 | |
502bdb00 JW |
7080 | cat >>confdefs.h <<_ACEOF |
7081 | #define HAVE_DECL_STRSTR 1 | |
7082 | _ACEOF | |
42ecbf5e | 7083 | |
502bdb00 JW |
7084 | |
7085 | else | |
7086 | cat >>confdefs.h <<_ACEOF | |
7087 | #define HAVE_DECL_STRSTR 0 | |
42ecbf5e | 7088 | _ACEOF |
252b5132 | 7089 | |
252b5132 | 7090 | |
502bdb00 JW |
7091 | fi |
7092 | echo "$as_me:$LINENO: checking whether free is declared" >&5 | |
7093 | echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6 | |
7094 | if test "${ac_cv_have_decl_free+set}" = set; then | |
42ecbf5e | 7095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 7096 | else |
42ecbf5e DJ |
7097 | cat >conftest.$ac_ext <<_ACEOF |
7098 | /* confdefs.h. */ | |
7099 | _ACEOF | |
7100 | cat confdefs.h >>conftest.$ac_ext | |
7101 | cat >>conftest.$ac_ext <<_ACEOF | |
7102 | /* end confdefs.h. */ | |
502bdb00 | 7103 | $ac_includes_default |
42ecbf5e DJ |
7104 | int |
7105 | main () | |
7106 | { | |
502bdb00 JW |
7107 | #ifndef free |
7108 | char *p = (char *) free; | |
7109 | #endif | |
7110 | ||
42ecbf5e DJ |
7111 | ; |
7112 | return 0; | |
7113 | } | |
7114 | _ACEOF | |
7115 | rm -f conftest.$ac_objext | |
7116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7117 | (eval $ac_compile) 2>conftest.er1 | |
7118 | ac_status=$? | |
7119 | grep -v '^ *+' conftest.er1 >conftest.err | |
7120 | rm -f conftest.er1 | |
7121 | cat conftest.err >&5 | |
7122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7123 | (exit $ac_status); } && | |
502bdb00 JW |
7124 | { ac_try='test -z "$ac_c_werror_flag" |
7125 | || test ! -s conftest.err' | |
42ecbf5e DJ |
7126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7127 | (eval $ac_try) 2>&5 | |
7128 | ac_status=$? | |
7129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7130 | (exit $ac_status); }; } && | |
7131 | { ac_try='test -s conftest.$ac_objext' | |
7132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7133 | (eval $ac_try) 2>&5 | |
7134 | ac_status=$? | |
7135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7136 | (exit $ac_status); }; }; then | |
502bdb00 | 7137 | ac_cv_have_decl_free=yes |
252b5132 | 7138 | else |
42ecbf5e DJ |
7139 | echo "$as_me: failed program was:" >&5 |
7140 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7141 | ||
502bdb00 | 7142 | ac_cv_have_decl_free=no |
252b5132 | 7143 | fi |
42ecbf5e | 7144 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 7145 | fi |
502bdb00 JW |
7146 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5 |
7147 | echo "${ECHO_T}$ac_cv_have_decl_free" >&6 | |
7148 | if test $ac_cv_have_decl_free = yes; then | |
252b5132 | 7149 | |
502bdb00 JW |
7150 | cat >>confdefs.h <<_ACEOF |
7151 | #define HAVE_DECL_FREE 1 | |
7152 | _ACEOF | |
42ecbf5e | 7153 | |
502bdb00 JW |
7154 | |
7155 | else | |
7156 | cat >>confdefs.h <<_ACEOF | |
7157 | #define HAVE_DECL_FREE 0 | |
42ecbf5e | 7158 | _ACEOF |
252b5132 | 7159 | |
252b5132 | 7160 | |
502bdb00 JW |
7161 | fi |
7162 | echo "$as_me:$LINENO: checking whether sbrk is declared" >&5 | |
7163 | echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6 | |
7164 | if test "${ac_cv_have_decl_sbrk+set}" = set; then | |
42ecbf5e | 7165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 7166 | else |
42ecbf5e DJ |
7167 | cat >conftest.$ac_ext <<_ACEOF |
7168 | /* confdefs.h. */ | |
7169 | _ACEOF | |
7170 | cat confdefs.h >>conftest.$ac_ext | |
7171 | cat >>conftest.$ac_ext <<_ACEOF | |
7172 | /* end confdefs.h. */ | |
502bdb00 | 7173 | $ac_includes_default |
42ecbf5e DJ |
7174 | int |
7175 | main () | |
7176 | { | |
502bdb00 JW |
7177 | #ifndef sbrk |
7178 | char *p = (char *) sbrk; | |
7179 | #endif | |
7180 | ||
42ecbf5e DJ |
7181 | ; |
7182 | return 0; | |
7183 | } | |
7184 | _ACEOF | |
7185 | rm -f conftest.$ac_objext | |
7186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7187 | (eval $ac_compile) 2>conftest.er1 | |
7188 | ac_status=$? | |
7189 | grep -v '^ *+' conftest.er1 >conftest.err | |
7190 | rm -f conftest.er1 | |
7191 | cat conftest.err >&5 | |
7192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7193 | (exit $ac_status); } && | |
502bdb00 JW |
7194 | { ac_try='test -z "$ac_c_werror_flag" |
7195 | || test ! -s conftest.err' | |
42ecbf5e DJ |
7196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7197 | (eval $ac_try) 2>&5 | |
7198 | ac_status=$? | |
7199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7200 | (exit $ac_status); }; } && | |
7201 | { ac_try='test -s conftest.$ac_objext' | |
7202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7203 | (eval $ac_try) 2>&5 | |
7204 | ac_status=$? | |
7205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7206 | (exit $ac_status); }; }; then | |
502bdb00 | 7207 | ac_cv_have_decl_sbrk=yes |
252b5132 | 7208 | else |
42ecbf5e DJ |
7209 | echo "$as_me: failed program was:" >&5 |
7210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7211 | ||
502bdb00 | 7212 | ac_cv_have_decl_sbrk=no |
252b5132 | 7213 | fi |
42ecbf5e | 7214 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 7215 | fi |
502bdb00 JW |
7216 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5 |
7217 | echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6 | |
7218 | if test $ac_cv_have_decl_sbrk = yes; then | |
7219 | ||
7220 | cat >>confdefs.h <<_ACEOF | |
7221 | #define HAVE_DECL_SBRK 1 | |
7222 | _ACEOF | |
252b5132 | 7223 | |
42ecbf5e | 7224 | |
502bdb00 JW |
7225 | else |
7226 | cat >>confdefs.h <<_ACEOF | |
7227 | #define HAVE_DECL_SBRK 0 | |
42ecbf5e | 7228 | _ACEOF |
252b5132 | 7229 | |
252b5132 | 7230 | |
502bdb00 JW |
7231 | fi |
7232 | echo "$as_me:$LINENO: checking whether getenv is declared" >&5 | |
7233 | echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6 | |
7234 | if test "${ac_cv_have_decl_getenv+set}" = set; then | |
42ecbf5e | 7235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 7236 | else |
42ecbf5e DJ |
7237 | cat >conftest.$ac_ext <<_ACEOF |
7238 | /* confdefs.h. */ | |
7239 | _ACEOF | |
7240 | cat confdefs.h >>conftest.$ac_ext | |
7241 | cat >>conftest.$ac_ext <<_ACEOF | |
7242 | /* end confdefs.h. */ | |
502bdb00 | 7243 | $ac_includes_default |
42ecbf5e DJ |
7244 | int |
7245 | main () | |
7246 | { | |
502bdb00 JW |
7247 | #ifndef getenv |
7248 | char *p = (char *) getenv; | |
7249 | #endif | |
7250 | ||
42ecbf5e DJ |
7251 | ; |
7252 | return 0; | |
7253 | } | |
7254 | _ACEOF | |
7255 | rm -f conftest.$ac_objext | |
7256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7257 | (eval $ac_compile) 2>conftest.er1 | |
7258 | ac_status=$? | |
7259 | grep -v '^ *+' conftest.er1 >conftest.err | |
7260 | rm -f conftest.er1 | |
7261 | cat conftest.err >&5 | |
7262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7263 | (exit $ac_status); } && | |
502bdb00 JW |
7264 | { ac_try='test -z "$ac_c_werror_flag" |
7265 | || test ! -s conftest.err' | |
42ecbf5e DJ |
7266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7267 | (eval $ac_try) 2>&5 | |
7268 | ac_status=$? | |
7269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7270 | (exit $ac_status); }; } && | |
7271 | { ac_try='test -s conftest.$ac_objext' | |
7272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7273 | (eval $ac_try) 2>&5 | |
7274 | ac_status=$? | |
7275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7276 | (exit $ac_status); }; }; then | |
502bdb00 | 7277 | ac_cv_have_decl_getenv=yes |
252b5132 | 7278 | else |
42ecbf5e DJ |
7279 | echo "$as_me: failed program was:" >&5 |
7280 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7281 | ||
502bdb00 | 7282 | ac_cv_have_decl_getenv=no |
252b5132 | 7283 | fi |
42ecbf5e | 7284 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 7285 | fi |
502bdb00 JW |
7286 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5 |
7287 | echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6 | |
7288 | if test $ac_cv_have_decl_getenv = yes; then | |
252b5132 | 7289 | |
502bdb00 JW |
7290 | cat >>confdefs.h <<_ACEOF |
7291 | #define HAVE_DECL_GETENV 1 | |
7292 | _ACEOF | |
42ecbf5e | 7293 | |
502bdb00 JW |
7294 | |
7295 | else | |
7296 | cat >>confdefs.h <<_ACEOF | |
7297 | #define HAVE_DECL_GETENV 0 | |
42ecbf5e | 7298 | _ACEOF |
252b5132 | 7299 | |
252b5132 | 7300 | |
502bdb00 JW |
7301 | fi |
7302 | echo "$as_me:$LINENO: checking whether environ is declared" >&5 | |
7303 | echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6 | |
7304 | if test "${ac_cv_have_decl_environ+set}" = set; then | |
42ecbf5e | 7305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 7306 | else |
42ecbf5e DJ |
7307 | cat >conftest.$ac_ext <<_ACEOF |
7308 | /* confdefs.h. */ | |
7309 | _ACEOF | |
7310 | cat confdefs.h >>conftest.$ac_ext | |
7311 | cat >>conftest.$ac_ext <<_ACEOF | |
7312 | /* end confdefs.h. */ | |
502bdb00 | 7313 | $ac_includes_default |
42ecbf5e DJ |
7314 | int |
7315 | main () | |
7316 | { | |
502bdb00 JW |
7317 | #ifndef environ |
7318 | char *p = (char *) environ; | |
7319 | #endif | |
7320 | ||
42ecbf5e DJ |
7321 | ; |
7322 | return 0; | |
7323 | } | |
7324 | _ACEOF | |
7325 | rm -f conftest.$ac_objext | |
7326 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7327 | (eval $ac_compile) 2>conftest.er1 | |
7328 | ac_status=$? | |
7329 | grep -v '^ *+' conftest.er1 >conftest.err | |
7330 | rm -f conftest.er1 | |
7331 | cat conftest.err >&5 | |
7332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7333 | (exit $ac_status); } && | |
502bdb00 JW |
7334 | { ac_try='test -z "$ac_c_werror_flag" |
7335 | || test ! -s conftest.err' | |
42ecbf5e DJ |
7336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7337 | (eval $ac_try) 2>&5 | |
7338 | ac_status=$? | |
7339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7340 | (exit $ac_status); }; } && | |
7341 | { ac_try='test -s conftest.$ac_objext' | |
7342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7343 | (eval $ac_try) 2>&5 | |
7344 | ac_status=$? | |
7345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7346 | (exit $ac_status); }; }; then | |
502bdb00 | 7347 | ac_cv_have_decl_environ=yes |
252b5132 | 7348 | else |
42ecbf5e DJ |
7349 | echo "$as_me: failed program was:" >&5 |
7350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7351 | ||
502bdb00 | 7352 | ac_cv_have_decl_environ=no |
252b5132 | 7353 | fi |
42ecbf5e | 7354 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 7355 | fi |
502bdb00 JW |
7356 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5 |
7357 | echo "${ECHO_T}$ac_cv_have_decl_environ" >&6 | |
7358 | if test $ac_cv_have_decl_environ = yes; then | |
252b5132 | 7359 | |
502bdb00 JW |
7360 | cat >>confdefs.h <<_ACEOF |
7361 | #define HAVE_DECL_ENVIRON 1 | |
7362 | _ACEOF | |
42ecbf5e | 7363 | |
502bdb00 JW |
7364 | |
7365 | else | |
7366 | cat >>confdefs.h <<_ACEOF | |
7367 | #define HAVE_DECL_ENVIRON 0 | |
42ecbf5e | 7368 | _ACEOF |
252b5132 | 7369 | |
502bdb00 | 7370 | |
252b5132 RH |
7371 | fi |
7372 | ||
7373 | ||
502bdb00 | 7374 | |
597e2591 ILT |
7375 | # When converting linker scripts into strings for use in emulation |
7376 | # files, use astring.sed if the compiler supports ANSI string | |
7377 | # concatenation, or ostring.sed otherwise. This is to support the | |
7378 | # broken Microsoft MSVC compiler, which limits the length of string | |
7379 | # constants, while still supporting pre-ANSI compilers which do not | |
7380 | # support string concatenation. | |
42ecbf5e DJ |
7381 | echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5 |
7382 | echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6 | |
7383 | if test "${ld_cv_string_concatenation+set}" = set; then | |
7384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7385 | else | |
7386 | cat >conftest.$ac_ext <<_ACEOF | |
7387 | /* confdefs.h. */ | |
7388 | _ACEOF | |
7389 | cat confdefs.h >>conftest.$ac_ext | |
7390 | cat >>conftest.$ac_ext <<_ACEOF | |
7391 | /* end confdefs.h. */ | |
597e2591 | 7392 | |
42ecbf5e DJ |
7393 | int |
7394 | main () | |
7395 | { | |
597e2591 | 7396 | char *a = "a" "a"; |
42ecbf5e DJ |
7397 | ; |
7398 | return 0; | |
7399 | } | |
7400 | _ACEOF | |
7401 | rm -f conftest.$ac_objext | |
7402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7403 | (eval $ac_compile) 2>conftest.er1 | |
7404 | ac_status=$? | |
7405 | grep -v '^ *+' conftest.er1 >conftest.err | |
7406 | rm -f conftest.er1 | |
7407 | cat conftest.err >&5 | |
7408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7409 | (exit $ac_status); } && | |
502bdb00 JW |
7410 | { ac_try='test -z "$ac_c_werror_flag" |
7411 | || test ! -s conftest.err' | |
42ecbf5e DJ |
7412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7413 | (eval $ac_try) 2>&5 | |
7414 | ac_status=$? | |
7415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7416 | (exit $ac_status); }; } && | |
7417 | { ac_try='test -s conftest.$ac_objext' | |
7418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7419 | (eval $ac_try) 2>&5 | |
7420 | ac_status=$? | |
7421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7422 | (exit $ac_status); }; }; then | |
e4dabd0e | 7423 | ld_cv_string_concatenation=yes |
597e2591 | 7424 | else |
42ecbf5e DJ |
7425 | echo "$as_me: failed program was:" >&5 |
7426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7427 | ||
7428 | ld_cv_string_concatenation=no | |
597e2591 | 7429 | fi |
42ecbf5e | 7430 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
597e2591 ILT |
7431 | fi |
7432 | ||
42ecbf5e DJ |
7433 | echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5 |
7434 | echo "${ECHO_T}$ld_cv_string_concatenation" >&6 | |
e4dabd0e | 7435 | if test "$ld_cv_string_concatenation" = "yes"; then |
597e2591 ILT |
7436 | STRINGIFY=astring.sed |
7437 | else | |
7438 | STRINGIFY=ostring.sed | |
7439 | fi | |
7440 | ||
7441 | ||
252b5132 RH |
7442 | # target-specific stuff: |
7443 | ||
7444 | all_targets= | |
7445 | EMUL= | |
7446 | all_emuls= | |
7447 | all_emul_extras= | |
ba2be581 | 7448 | all_libpath= |
252b5132 RH |
7449 | |
7450 | rm -f tdirs | |
7451 | ||
7452 | for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'` | |
7453 | do | |
7454 | if test "$targ_alias" = "all"; then | |
7455 | all_targets=true | |
7456 | else | |
7457 | # Canonicalize the secondary target names. | |
42ecbf5e | 7458 | result=`$ac_config_sub $targ_alias 2>/dev/null` |
252b5132 RH |
7459 | if test -n "$result"; then |
7460 | targ=$result | |
7461 | else | |
7462 | targ=$targ_alias | |
7463 | fi | |
7464 | ||
7465 | . ${srcdir}/configure.tgt | |
7466 | ||
7467 | if test "$targ" = "$target"; then | |
7468 | EMUL=$targ_emul | |
7469 | fi | |
7470 | ||
314e9a4e L |
7471 | if test x${want64} = xfalse; then |
7472 | . ${srcdir}/../bfd/config.bfd | |
7473 | fi | |
7474 | ||
534d3119 L |
7475 | if test x${want64} = xtrue; then |
7476 | targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls" | |
7477 | targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath" | |
7478 | fi | |
7479 | ||
3336653a | 7480 | for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do |
252b5132 RH |
7481 | case " $all_emuls " in |
7482 | *" e${i}.o "*) ;; | |
7483 | *) | |
7484 | all_emuls="$all_emuls e${i}.o" | |
7485 | eval result=\$tdir_$i | |
7486 | test -z "$result" && result=$targ_alias | |
7487 | echo tdir_$i=$result >> tdirs | |
7488 | ;; | |
d15b04bd L |
7489 | esac |
7490 | done | |
3336653a | 7491 | |
42ecbf5e DJ |
7492 | for i in $targ_emul $targ_extra_libpath; do |
7493 | case " $all_libpath " in | |
7494 | *" ${i} "*) ;; | |
7495 | *) | |
7496 | if test -z "$all_libpath"; then | |
7497 | all_libpath=${i} | |
7498 | else | |
7499 | all_libpath="$all_libpath ${i}" | |
7500 | fi | |
7501 | ;; | |
7502 | esac | |
7503 | done | |
7504 | ||
7505 | for i in $targ_extra_ofiles; do | |
7506 | case " $all_emul_extras " in | |
7507 | *" ${i} "*) ;; | |
7508 | *) | |
7509 | all_emul_extras="$all_emul_extras ${i}" | |
7510 | ;; | |
7511 | esac | |
7512 | done | |
7513 | fi | |
7514 | done | |
7515 | ||
7516 | ||
7517 | ||
7518 | TDIRS=tdirs | |
7519 | ||
7520 | ||
7521 | if test x${all_targets} = xtrue; then | |
314e9a4e L |
7522 | if test x${want64} = xfalse; then |
7523 | echo "$as_me:$LINENO: checking for long" >&5 | |
7524 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
7525 | if test "${ac_cv_type_long+set}" = set; then | |
7526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7527 | else | |
7528 | cat >conftest.$ac_ext <<_ACEOF | |
7529 | /* confdefs.h. */ | |
7530 | _ACEOF | |
7531 | cat confdefs.h >>conftest.$ac_ext | |
7532 | cat >>conftest.$ac_ext <<_ACEOF | |
7533 | /* end confdefs.h. */ | |
7534 | $ac_includes_default | |
7535 | int | |
7536 | main () | |
7537 | { | |
7538 | if ((long *) 0) | |
7539 | return 0; | |
7540 | if (sizeof (long)) | |
7541 | return 0; | |
7542 | ; | |
7543 | return 0; | |
7544 | } | |
7545 | _ACEOF | |
7546 | rm -f conftest.$ac_objext | |
7547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7548 | (eval $ac_compile) 2>conftest.er1 | |
7549 | ac_status=$? | |
7550 | grep -v '^ *+' conftest.er1 >conftest.err | |
7551 | rm -f conftest.er1 | |
7552 | cat conftest.err >&5 | |
7553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7554 | (exit $ac_status); } && | |
7555 | { ac_try='test -z "$ac_c_werror_flag" | |
7556 | || test ! -s conftest.err' | |
7557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7558 | (eval $ac_try) 2>&5 | |
7559 | ac_status=$? | |
7560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7561 | (exit $ac_status); }; } && | |
7562 | { ac_try='test -s conftest.$ac_objext' | |
7563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7564 | (eval $ac_try) 2>&5 | |
7565 | ac_status=$? | |
7566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7567 | (exit $ac_status); }; }; then | |
7568 | ac_cv_type_long=yes | |
7569 | else | |
7570 | echo "$as_me: failed program was:" >&5 | |
7571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7572 | ||
7573 | ac_cv_type_long=no | |
7574 | fi | |
7575 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7576 | fi | |
7577 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
7578 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
7579 | ||
7580 | echo "$as_me:$LINENO: checking size of long" >&5 | |
7581 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
7582 | if test "${ac_cv_sizeof_long+set}" = set; then | |
7583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7584 | else | |
7585 | if test "$ac_cv_type_long" = yes; then | |
7586 | # The cast to unsigned long works around a bug in the HP C Compiler | |
7587 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
7588 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
7589 | # This bug is HP SR number 8606223364. | |
7590 | if test "$cross_compiling" = yes; then | |
7591 | # Depending upon the size, compute the lo and hi bounds. | |
7592 | cat >conftest.$ac_ext <<_ACEOF | |
7593 | /* confdefs.h. */ | |
7594 | _ACEOF | |
7595 | cat confdefs.h >>conftest.$ac_ext | |
7596 | cat >>conftest.$ac_ext <<_ACEOF | |
7597 | /* end confdefs.h. */ | |
7598 | $ac_includes_default | |
7599 | int | |
7600 | main () | |
7601 | { | |
7602 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
7603 | test_array [0] = 0 | |
7604 | ||
7605 | ; | |
7606 | return 0; | |
7607 | } | |
7608 | _ACEOF | |
7609 | rm -f conftest.$ac_objext | |
7610 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7611 | (eval $ac_compile) 2>conftest.er1 | |
7612 | ac_status=$? | |
7613 | grep -v '^ *+' conftest.er1 >conftest.err | |
7614 | rm -f conftest.er1 | |
7615 | cat conftest.err >&5 | |
7616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7617 | (exit $ac_status); } && | |
7618 | { ac_try='test -z "$ac_c_werror_flag" | |
7619 | || test ! -s conftest.err' | |
7620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7621 | (eval $ac_try) 2>&5 | |
7622 | ac_status=$? | |
7623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7624 | (exit $ac_status); }; } && | |
7625 | { ac_try='test -s conftest.$ac_objext' | |
7626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7627 | (eval $ac_try) 2>&5 | |
7628 | ac_status=$? | |
7629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7630 | (exit $ac_status); }; }; then | |
7631 | ac_lo=0 ac_mid=0 | |
7632 | while :; do | |
7633 | cat >conftest.$ac_ext <<_ACEOF | |
7634 | /* confdefs.h. */ | |
7635 | _ACEOF | |
7636 | cat confdefs.h >>conftest.$ac_ext | |
7637 | cat >>conftest.$ac_ext <<_ACEOF | |
7638 | /* end confdefs.h. */ | |
7639 | $ac_includes_default | |
7640 | int | |
7641 | main () | |
7642 | { | |
7643 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
7644 | test_array [0] = 0 | |
7645 | ||
7646 | ; | |
7647 | return 0; | |
7648 | } | |
7649 | _ACEOF | |
7650 | rm -f conftest.$ac_objext | |
7651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7652 | (eval $ac_compile) 2>conftest.er1 | |
7653 | ac_status=$? | |
7654 | grep -v '^ *+' conftest.er1 >conftest.err | |
7655 | rm -f conftest.er1 | |
7656 | cat conftest.err >&5 | |
7657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7658 | (exit $ac_status); } && | |
7659 | { ac_try='test -z "$ac_c_werror_flag" | |
7660 | || test ! -s conftest.err' | |
7661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7662 | (eval $ac_try) 2>&5 | |
7663 | ac_status=$? | |
7664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7665 | (exit $ac_status); }; } && | |
7666 | { ac_try='test -s conftest.$ac_objext' | |
7667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7668 | (eval $ac_try) 2>&5 | |
7669 | ac_status=$? | |
7670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7671 | (exit $ac_status); }; }; then | |
7672 | ac_hi=$ac_mid; break | |
7673 | else | |
7674 | echo "$as_me: failed program was:" >&5 | |
7675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7676 | ||
7677 | ac_lo=`expr $ac_mid + 1` | |
7678 | if test $ac_lo -le $ac_mid; then | |
7679 | ac_lo= ac_hi= | |
7680 | break | |
7681 | fi | |
7682 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
7683 | fi | |
7684 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7685 | done | |
7686 | else | |
7687 | echo "$as_me: failed program was:" >&5 | |
7688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7689 | ||
7690 | cat >conftest.$ac_ext <<_ACEOF | |
7691 | /* confdefs.h. */ | |
7692 | _ACEOF | |
7693 | cat confdefs.h >>conftest.$ac_ext | |
7694 | cat >>conftest.$ac_ext <<_ACEOF | |
7695 | /* end confdefs.h. */ | |
7696 | $ac_includes_default | |
7697 | int | |
7698 | main () | |
7699 | { | |
7700 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
7701 | test_array [0] = 0 | |
7702 | ||
7703 | ; | |
7704 | return 0; | |
7705 | } | |
7706 | _ACEOF | |
7707 | rm -f conftest.$ac_objext | |
7708 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7709 | (eval $ac_compile) 2>conftest.er1 | |
7710 | ac_status=$? | |
7711 | grep -v '^ *+' conftest.er1 >conftest.err | |
7712 | rm -f conftest.er1 | |
7713 | cat conftest.err >&5 | |
7714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7715 | (exit $ac_status); } && | |
7716 | { ac_try='test -z "$ac_c_werror_flag" | |
7717 | || test ! -s conftest.err' | |
7718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7719 | (eval $ac_try) 2>&5 | |
7720 | ac_status=$? | |
7721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7722 | (exit $ac_status); }; } && | |
7723 | { ac_try='test -s conftest.$ac_objext' | |
7724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7725 | (eval $ac_try) 2>&5 | |
7726 | ac_status=$? | |
7727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7728 | (exit $ac_status); }; }; then | |
7729 | ac_hi=-1 ac_mid=-1 | |
7730 | while :; do | |
7731 | cat >conftest.$ac_ext <<_ACEOF | |
7732 | /* confdefs.h. */ | |
7733 | _ACEOF | |
7734 | cat confdefs.h >>conftest.$ac_ext | |
7735 | cat >>conftest.$ac_ext <<_ACEOF | |
7736 | /* end confdefs.h. */ | |
7737 | $ac_includes_default | |
7738 | int | |
7739 | main () | |
7740 | { | |
7741 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
7742 | test_array [0] = 0 | |
7743 | ||
7744 | ; | |
7745 | return 0; | |
7746 | } | |
7747 | _ACEOF | |
7748 | rm -f conftest.$ac_objext | |
7749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7750 | (eval $ac_compile) 2>conftest.er1 | |
7751 | ac_status=$? | |
7752 | grep -v '^ *+' conftest.er1 >conftest.err | |
7753 | rm -f conftest.er1 | |
7754 | cat conftest.err >&5 | |
7755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7756 | (exit $ac_status); } && | |
7757 | { ac_try='test -z "$ac_c_werror_flag" | |
7758 | || test ! -s conftest.err' | |
7759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7760 | (eval $ac_try) 2>&5 | |
7761 | ac_status=$? | |
7762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7763 | (exit $ac_status); }; } && | |
7764 | { ac_try='test -s conftest.$ac_objext' | |
7765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7766 | (eval $ac_try) 2>&5 | |
7767 | ac_status=$? | |
7768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7769 | (exit $ac_status); }; }; then | |
7770 | ac_lo=$ac_mid; break | |
7771 | else | |
7772 | echo "$as_me: failed program was:" >&5 | |
7773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7774 | ||
7775 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
7776 | if test $ac_mid -le $ac_hi; then | |
7777 | ac_lo= ac_hi= | |
7778 | break | |
7779 | fi | |
7780 | ac_mid=`expr 2 '*' $ac_mid` | |
7781 | fi | |
7782 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7783 | done | |
7784 | else | |
7785 | echo "$as_me: failed program was:" >&5 | |
7786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7787 | ||
7788 | ac_lo= ac_hi= | |
7789 | fi | |
7790 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7791 | fi | |
7792 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7793 | # Binary search between lo and hi bounds. | |
7794 | while test "x$ac_lo" != "x$ac_hi"; do | |
7795 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
7796 | cat >conftest.$ac_ext <<_ACEOF | |
7797 | /* confdefs.h. */ | |
7798 | _ACEOF | |
7799 | cat confdefs.h >>conftest.$ac_ext | |
7800 | cat >>conftest.$ac_ext <<_ACEOF | |
7801 | /* end confdefs.h. */ | |
7802 | $ac_includes_default | |
7803 | int | |
7804 | main () | |
7805 | { | |
7806 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
7807 | test_array [0] = 0 | |
7808 | ||
7809 | ; | |
7810 | return 0; | |
7811 | } | |
7812 | _ACEOF | |
7813 | rm -f conftest.$ac_objext | |
7814 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7815 | (eval $ac_compile) 2>conftest.er1 | |
7816 | ac_status=$? | |
7817 | grep -v '^ *+' conftest.er1 >conftest.err | |
7818 | rm -f conftest.er1 | |
7819 | cat conftest.err >&5 | |
7820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7821 | (exit $ac_status); } && | |
7822 | { ac_try='test -z "$ac_c_werror_flag" | |
7823 | || test ! -s conftest.err' | |
7824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7825 | (eval $ac_try) 2>&5 | |
7826 | ac_status=$? | |
7827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7828 | (exit $ac_status); }; } && | |
7829 | { ac_try='test -s conftest.$ac_objext' | |
7830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7831 | (eval $ac_try) 2>&5 | |
7832 | ac_status=$? | |
7833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7834 | (exit $ac_status); }; }; then | |
7835 | ac_hi=$ac_mid | |
7836 | else | |
7837 | echo "$as_me: failed program was:" >&5 | |
7838 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7839 | ||
7840 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
7841 | fi | |
7842 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7843 | done | |
7844 | case $ac_lo in | |
7845 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
7846 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
7847 | See \`config.log' for more details." >&5 | |
7848 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
7849 | See \`config.log' for more details." >&2;} | |
7850 | { (exit 1); exit 1; }; } ;; | |
7851 | esac | |
7852 | else | |
7853 | if test "$cross_compiling" = yes; then | |
7854 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
7855 | See \`config.log' for more details." >&5 | |
7856 | echo "$as_me: error: cannot run test program while cross compiling | |
7857 | See \`config.log' for more details." >&2;} | |
7858 | { (exit 1); exit 1; }; } | |
7859 | else | |
7860 | cat >conftest.$ac_ext <<_ACEOF | |
7861 | /* confdefs.h. */ | |
7862 | _ACEOF | |
7863 | cat confdefs.h >>conftest.$ac_ext | |
7864 | cat >>conftest.$ac_ext <<_ACEOF | |
7865 | /* end confdefs.h. */ | |
7866 | $ac_includes_default | |
7867 | long longval () { return (long) (sizeof (long)); } | |
7868 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
7869 | #include <stdio.h> | |
7870 | #include <stdlib.h> | |
7871 | int | |
7872 | main () | |
7873 | { | |
7874 | ||
7875 | FILE *f = fopen ("conftest.val", "w"); | |
7876 | if (! f) | |
7877 | exit (1); | |
7878 | if (((long) (sizeof (long))) < 0) | |
7879 | { | |
7880 | long i = longval (); | |
7881 | if (i != ((long) (sizeof (long)))) | |
7882 | exit (1); | |
7883 | fprintf (f, "%ld\n", i); | |
7884 | } | |
7885 | else | |
7886 | { | |
7887 | unsigned long i = ulongval (); | |
7888 | if (i != ((long) (sizeof (long)))) | |
7889 | exit (1); | |
7890 | fprintf (f, "%lu\n", i); | |
7891 | } | |
7892 | exit (ferror (f) || fclose (f) != 0); | |
7893 | ||
7894 | ; | |
7895 | return 0; | |
7896 | } | |
7897 | _ACEOF | |
7898 | rm -f conftest$ac_exeext | |
7899 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7900 | (eval $ac_link) 2>&5 | |
7901 | ac_status=$? | |
7902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7903 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7905 | (eval $ac_try) 2>&5 | |
7906 | ac_status=$? | |
7907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7908 | (exit $ac_status); }; }; then | |
7909 | ac_cv_sizeof_long=`cat conftest.val` | |
7910 | else | |
7911 | echo "$as_me: program exited with status $ac_status" >&5 | |
7912 | echo "$as_me: failed program was:" >&5 | |
7913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7914 | ||
7915 | ( exit $ac_status ) | |
7916 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
7917 | See \`config.log' for more details." >&5 | |
7918 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
7919 | See \`config.log' for more details." >&2;} | |
7920 | { (exit 1); exit 1; }; } | |
7921 | fi | |
7922 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
7923 | fi | |
7924 | fi | |
7925 | rm -f conftest.val | |
7926 | else | |
7927 | ac_cv_sizeof_long=0 | |
7928 | fi | |
7929 | fi | |
7930 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
7931 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
7932 | cat >>confdefs.h <<_ACEOF | |
7933 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
7934 | _ACEOF | |
7935 | ||
7936 | ||
7937 | if test "x${ac_cv_sizeof_long}" = "x8"; then | |
7938 | want64=true | |
7939 | fi | |
7940 | fi | |
42ecbf5e DJ |
7941 | if test x${want64} = xtrue; then |
7942 | EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)' | |
7943 | else | |
7944 | EMULATION_OFILES='$(ALL_EMULATIONS)' | |
7945 | fi | |
7946 | EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)' | |
7947 | else | |
7948 | EMULATION_OFILES=$all_emuls | |
7949 | EMUL_EXTRA_OFILES=$all_emul_extras | |
7950 | fi | |
7951 | ||
7952 | ||
7953 | ||
7954 | ||
7955 | EMULATION_LIBPATH=$all_libpath | |
7956 | ||
7957 | ||
7958 | if test x${enable_static} = xno; then | |
7959 | TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so" | |
7960 | else | |
7961 | TESTBFDLIB="../bfd/.libs/libbfd.a" | |
7962 | fi | |
7963 | ||
7964 | ||
7965 | target_vendor=${target_vendor=$host_vendor} | |
7966 | case "$target_vendor" in | |
7967 | hp) EXTRA_SHLIB_EXTENSION=".sl" ;; | |
7968 | *) EXTRA_SHLIB_EXTENSION= ;; | |
7969 | esac | |
7970 | ||
7971 | case "$target_os" in | |
7972 | lynxos) EXTRA_SHLIB_EXTENSION=".a" ;; | |
7973 | esac | |
7974 | ||
7975 | if test x${EXTRA_SHLIB_EXTENSION} != x ; then | |
7976 | ||
7977 | cat >>confdefs.h <<_ACEOF | |
7978 | #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION" | |
7979 | _ACEOF | |
7980 | ||
7981 | fi | |
7982 | ||
108a6f8e CD |
7983 | |
7984 | ||
7985 | ||
7986 | ||
42ecbf5e | 7987 | ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in" |
42ecbf5e DJ |
7988 | cat >confcache <<\_ACEOF |
7989 | # This file is a shell script that caches the results of configure | |
7990 | # tests run on this system so they can be shared between configure | |
7991 | # scripts and configure runs, see configure's option --config-cache. | |
7992 | # It is not useful on other systems. If it contains results you don't | |
7993 | # want to keep, you may remove or edit it. | |
7994 | # | |
7995 | # config.status only pays attention to the cache file if you give it | |
7996 | # the --recheck option to rerun configure. | |
7997 | # | |
7998 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
7999 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
8000 | # following values. | |
8001 | ||
8002 | _ACEOF | |
8003 | ||
8004 | # The following way of writing the cache mishandles newlines in values, | |
8005 | # but we know of no workaround that is simple, portable, and efficient. | |
8006 | # So, don't put newlines in cache variables' values. | |
8007 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8008 | # and sets the high bit in the cache file unless we assign to the vars. | |
8009 | { | |
8010 | (set) 2>&1 | | |
8011 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8012 | *ac_space=\ *) | |
8013 | # `set' does not quote correctly, so add quotes (double-quote | |
8014 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
8015 | sed -n \ | |
8016 | "s/'/'\\\\''/g; | |
8017 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
8018 | ;; | |
8019 | *) | |
8020 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8021 | sed -n \ | |
8022 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
8023 | ;; | |
8024 | esac; | |
8025 | } | | |
8026 | sed ' | |
8027 | t clear | |
8028 | : clear | |
8029 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
8030 | t end | |
8031 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
8032 | : end' >>confcache | |
8033 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
8034 | if test -w $cache_file; then | |
8035 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
8036 | cat confcache >$cache_file | |
8037 | else | |
8038 | echo "not updating unwritable cache $cache_file" | |
8039 | fi | |
8040 | fi | |
8041 | rm -f confcache | |
8042 | ||
8043 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
8044 | # Let make expand exec_prefix. | |
8045 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
8046 | ||
8047 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
8048 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
8049 | # trailing colons and then remove the whole line if VPATH becomes empty | |
8050 | # (actually we leave an empty line to preserve line numbers). | |
8051 | if test "x$srcdir" = x.; then | |
8052 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
8053 | s/:*\$(srcdir):*/:/; | |
8054 | s/:*\${srcdir}:*/:/; | |
8055 | s/:*@srcdir@:*/:/; | |
8056 | s/^\([^=]*=[ ]*\):*/\1/; | |
8057 | s/:*$//; | |
8058 | s/^[^=]*=[ ]*$//; | |
8059 | }' | |
8060 | fi | |
8061 | ||
8062 | DEFS=-DHAVE_CONFIG_H | |
8063 | ||
8064 | ac_libobjs= | |
8065 | ac_ltlibobjs= | |
8066 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
8067 | # 1. Remove the extension, and $U if already installed. | |
8068 | ac_i=`echo "$ac_i" | | |
8069 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
8070 | # 2. Add them. | |
8071 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
8072 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
8073 | done | |
8074 | LIBOBJS=$ac_libobjs | |
8075 | ||
8076 | LTLIBOBJS=$ac_ltlibobjs | |
8077 | ||
8078 | ||
8079 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
8080 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
8081 | Usually this means the macro was only invoked conditionally." >&5 | |
8082 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
8083 | Usually this means the macro was only invoked conditionally." >&2;} | |
8084 | { (exit 1); exit 1; }; } | |
8085 | fi | |
8086 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
8087 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
8088 | Usually this means the macro was only invoked conditionally." >&5 | |
8089 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
8090 | Usually this means the macro was only invoked conditionally." >&2;} | |
8091 | { (exit 1); exit 1; }; } | |
8092 | fi | |
8093 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
8094 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
8095 | Usually this means the macro was only invoked conditionally." >&5 | |
8096 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
8097 | Usually this means the macro was only invoked conditionally." >&2;} | |
8098 | { (exit 1); exit 1; }; } | |
8099 | fi | |
d5fbea21 DJ |
8100 | if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then |
8101 | { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined. | |
8102 | Usually this means the macro was only invoked conditionally." >&5 | |
8103 | echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined. | |
8104 | Usually this means the macro was only invoked conditionally." >&2;} | |
8105 | { (exit 1); exit 1; }; } | |
8106 | fi | |
42ecbf5e DJ |
8107 | |
8108 | : ${CONFIG_STATUS=./config.status} | |
8109 | ac_clean_files_save=$ac_clean_files | |
8110 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
8111 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
8112 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
8113 | cat >$CONFIG_STATUS <<_ACEOF | |
8114 | #! $SHELL | |
8115 | # Generated by $as_me. | |
8116 | # Run this file to recreate the current configuration. | |
8117 | # Compiler output produced by configure, useful for debugging | |
8118 | # configure, is in config.log if it exists. | |
8119 | ||
8120 | debug=false | |
8121 | ac_cs_recheck=false | |
8122 | ac_cs_silent=false | |
8123 | SHELL=\${CONFIG_SHELL-$SHELL} | |
8124 | _ACEOF | |
8125 | ||
8126 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8127 | ## --------------------- ## | |
8128 | ## M4sh Initialization. ## | |
8129 | ## --------------------- ## | |
8130 | ||
8131 | # Be Bourne compatible | |
8132 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
8133 | emulate sh | |
8134 | NULLCMD=: | |
8135 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
8136 | # is contrary to our usage. Disable this feature. | |
8137 | alias -g '${1+"$@"}'='"$@"' | |
8138 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
8139 | set -o posix | |
8140 | fi | |
8141 | DUALCASE=1; export DUALCASE # for MKS sh | |
8142 | ||
8143 | # Support unset when possible. | |
8144 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
8145 | as_unset=unset | |
8146 | else | |
8147 | as_unset=false | |
8148 | fi | |
8149 | ||
8150 | ||
8151 | # Work around bugs in pre-3.0 UWIN ksh. | |
8152 | $as_unset ENV MAIL MAILPATH | |
8153 | PS1='$ ' | |
8154 | PS2='> ' | |
8155 | PS4='+ ' | |
8156 | ||
8157 | # NLS nuisances. | |
8158 | for as_var in \ | |
8159 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
8160 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
8161 | LC_TELEPHONE LC_TIME | |
8162 | do | |
8163 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
8164 | eval $as_var=C; export $as_var | |
8165 | else | |
8166 | $as_unset $as_var | |
8167 | fi | |
8168 | done | |
8169 | ||
8170 | # Required to use basename. | |
8171 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
8172 | as_expr=expr | |
8173 | else | |
8174 | as_expr=false | |
8175 | fi | |
8176 | ||
8177 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
8178 | as_basename=basename | |
8179 | else | |
8180 | as_basename=false | |
8181 | fi | |
8182 | ||
8183 | ||
8184 | # Name of the executable. | |
8185 | as_me=`$as_basename "$0" || | |
8186 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
8187 | X"$0" : 'X\(//\)$' \| \ | |
8188 | X"$0" : 'X\(/\)$' \| \ | |
8189 | . : '\(.\)' 2>/dev/null || | |
8190 | echo X/"$0" | | |
8191 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
8192 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
8193 | /^X\/\(\/\).*/{ s//\1/; q; } | |
8194 | s/.*/./; q'` | |
8195 | ||
8196 | ||
8197 | # PATH needs CR, and LINENO needs CR and PATH. | |
8198 | # Avoid depending upon Character Ranges. | |
8199 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
8200 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
8201 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
8202 | as_cr_digits='0123456789' | |
8203 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
8204 | ||
8205 | # The user is always right. | |
8206 | if test "${PATH_SEPARATOR+set}" != set; then | |
8207 | echo "#! /bin/sh" >conf$$.sh | |
8208 | echo "exit 0" >>conf$$.sh | |
8209 | chmod +x conf$$.sh | |
8210 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
8211 | PATH_SEPARATOR=';' | |
8212 | else | |
8213 | PATH_SEPARATOR=: | |
8214 | fi | |
8215 | rm -f conf$$.sh | |
8216 | fi | |
8217 | ||
e5a52504 | 8218 | |
42ecbf5e DJ |
8219 | as_lineno_1=$LINENO |
8220 | as_lineno_2=$LINENO | |
8221 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
8222 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
8223 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
8224 | # Find who we are. Look in the path if we contain no path at all | |
8225 | # relative or not. | |
8226 | case $0 in | |
8227 | *[\\/]* ) as_myself=$0 ;; | |
8228 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8229 | for as_dir in $PATH | |
8230 | do | |
8231 | IFS=$as_save_IFS | |
8232 | test -z "$as_dir" && as_dir=. | |
8233 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
8234 | done | |
8235 | ||
8236 | ;; | |
8237 | esac | |
8238 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
8239 | # in which case we are not to be found in the path. | |
8240 | if test "x$as_myself" = x; then | |
8241 | as_myself=$0 | |
8242 | fi | |
8243 | if test ! -f "$as_myself"; then | |
8244 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
8245 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
8246 | { (exit 1); exit 1; }; } | |
252b5132 | 8247 | fi |
42ecbf5e DJ |
8248 | case $CONFIG_SHELL in |
8249 | '') | |
8250 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8251 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
8252 | do | |
8253 | IFS=$as_save_IFS | |
8254 | test -z "$as_dir" && as_dir=. | |
8255 | for as_base in sh bash ksh sh5; do | |
8256 | case $as_dir in | |
8257 | /*) | |
8258 | if ("$as_dir/$as_base" -c ' | |
8259 | as_lineno_1=$LINENO | |
8260 | as_lineno_2=$LINENO | |
8261 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
8262 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
8263 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
8264 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
8265 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
8266 | CONFIG_SHELL=$as_dir/$as_base | |
8267 | export CONFIG_SHELL | |
8268 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
8269 | fi;; | |
8270 | esac | |
8271 | done | |
252b5132 | 8272 | done |
42ecbf5e DJ |
8273 | ;; |
8274 | esac | |
252b5132 | 8275 | |
42ecbf5e DJ |
8276 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
8277 | # uniformly replaced by the line number. The first 'sed' inserts a | |
8278 | # line-number line before each line; the second 'sed' does the real | |
8279 | # work. The second script uses 'N' to pair each line-number line | |
8280 | # with the numbered line, and appends trailing '-' during | |
8281 | # substitution so that $LINENO is not a special case at line end. | |
8282 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
8283 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
8284 | sed '=' <$as_myself | | |
8285 | sed ' | |
8286 | N | |
8287 | s,$,-, | |
8288 | : loop | |
8289 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
8290 | t loop | |
8291 | s,-$,, | |
8292 | s,^['$as_cr_digits']*\n,, | |
8293 | ' >$as_me.lineno && | |
8294 | chmod +x $as_me.lineno || | |
8295 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
8296 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
8297 | { (exit 1); exit 1; }; } | |
8298 | ||
8299 | # Don't try to exec as it changes $[0], causing all sort of problems | |
8300 | # (the dirname of $[0] is not the place where we might find the | |
8301 | # original and so on. Autoconf is especially sensible to this). | |
8302 | . ./$as_me.lineno | |
8303 | # Exit status is that of the last command. | |
8304 | exit | |
8305 | } | |
252b5132 RH |
8306 | |
8307 | ||
42ecbf5e DJ |
8308 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
8309 | *c*,-n*) ECHO_N= ECHO_C=' | |
8310 | ' ECHO_T=' ' ;; | |
8311 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
8312 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
8313 | esac | |
252b5132 | 8314 | |
42ecbf5e DJ |
8315 | if expr a : '\(a\)' >/dev/null 2>&1; then |
8316 | as_expr=expr | |
8317 | else | |
8318 | as_expr=false | |
8319 | fi | |
252b5132 | 8320 | |
42ecbf5e DJ |
8321 | rm -f conf$$ conf$$.exe conf$$.file |
8322 | echo >conf$$.file | |
8323 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
8324 | # We could just check for DJGPP; but this test a) works b) is more generic | |
8325 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
8326 | if test -f conf$$.exe; then | |
8327 | # Don't use ln at all; we don't have any links | |
8328 | as_ln_s='cp -p' | |
252b5132 | 8329 | else |
42ecbf5e | 8330 | as_ln_s='ln -s' |
252b5132 | 8331 | fi |
42ecbf5e DJ |
8332 | elif ln conf$$.file conf$$ 2>/dev/null; then |
8333 | as_ln_s=ln | |
e5a52504 | 8334 | else |
42ecbf5e | 8335 | as_ln_s='cp -p' |
e5a52504 | 8336 | fi |
42ecbf5e | 8337 | rm -f conf$$ conf$$.exe conf$$.file |
252b5132 | 8338 | |
42ecbf5e DJ |
8339 | if mkdir -p . 2>/dev/null; then |
8340 | as_mkdir_p=: | |
8341 | else | |
8342 | test -d ./-p && rmdir ./-p | |
8343 | as_mkdir_p=false | |
8344 | fi | |
252b5132 | 8345 | |
42ecbf5e | 8346 | as_executable_p="test -f" |
252b5132 | 8347 | |
42ecbf5e DJ |
8348 | # Sed expression to map a string onto a valid CPP name. |
8349 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
f234d5fe | 8350 | |
42ecbf5e DJ |
8351 | # Sed expression to map a string onto a valid variable name. |
8352 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
e5a52504 | 8353 | |
e5a52504 | 8354 | |
42ecbf5e DJ |
8355 | # IFS |
8356 | # We need space, tab and new line, in precisely that order. | |
8357 | as_nl=' | |
8358 | ' | |
8359 | IFS=" $as_nl" | |
e5a52504 | 8360 | |
42ecbf5e DJ |
8361 | # CDPATH. |
8362 | $as_unset CDPATH | |
e5a52504 | 8363 | |
42ecbf5e | 8364 | exec 6>&1 |
e5a52504 | 8365 | |
42ecbf5e DJ |
8366 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
8367 | # report actual input values of CONFIG_FILES etc. instead of their | |
8368 | # values after options handling. Logging --version etc. is OK. | |
8369 | exec 5>>config.log | |
8370 | { | |
8371 | echo | |
8372 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
8373 | ## Running $as_me. ## | |
8374 | _ASBOX | |
8375 | } >&5 | |
8376 | cat >&5 <<_CSEOF | |
e5a52504 | 8377 | |
42ecbf5e DJ |
8378 | This file was extended by $as_me, which was |
8379 | generated by GNU Autoconf 2.59. Invocation command line was | |
8380 | ||
8381 | CONFIG_FILES = $CONFIG_FILES | |
8382 | CONFIG_HEADERS = $CONFIG_HEADERS | |
8383 | CONFIG_LINKS = $CONFIG_LINKS | |
8384 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
8385 | $ $0 $@ | |
e5a52504 | 8386 | |
42ecbf5e DJ |
8387 | _CSEOF |
8388 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
8389 | echo >&5 | |
8390 | _ACEOF | |
8391 | ||
8392 | # Files that config.status was made for. | |
8393 | if test -n "$ac_config_files"; then | |
8394 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
d15b04bd | 8395 | fi |
e5a52504 | 8396 | |
42ecbf5e DJ |
8397 | if test -n "$ac_config_headers"; then |
8398 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
8399 | fi | |
8400 | ||
8401 | if test -n "$ac_config_links"; then | |
8402 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
8403 | fi | |
8404 | ||
8405 | if test -n "$ac_config_commands"; then | |
8406 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
8407 | fi | |
8408 | ||
8409 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8410 | ||
8411 | ac_cs_usage="\ | |
8412 | \`$as_me' instantiates files from templates according to the | |
8413 | current configuration. | |
8414 | ||
8415 | Usage: $0 [OPTIONS] [FILE]... | |
8416 | ||
8417 | -h, --help print this help, then exit | |
8418 | -V, --version print version number, then exit | |
8419 | -q, --quiet do not print progress messages | |
8420 | -d, --debug don't remove temporary files | |
8421 | --recheck update $as_me by reconfiguring in the same conditions | |
8422 | --file=FILE[:TEMPLATE] | |
8423 | instantiate the configuration file FILE | |
8424 | --header=FILE[:TEMPLATE] | |
8425 | instantiate the configuration header FILE | |
8426 | ||
8427 | Configuration files: | |
8428 | $config_files | |
8429 | ||
8430 | Configuration headers: | |
8431 | $config_headers | |
8432 | ||
8433 | Configuration commands: | |
8434 | $config_commands | |
8435 | ||
8436 | Report bugs to <[email protected]>." | |
8437 | _ACEOF | |
8438 | ||
8439 | cat >>$CONFIG_STATUS <<_ACEOF | |
8440 | ac_cs_version="\\ | |
8441 | config.status | |
8442 | configured by $0, generated by GNU Autoconf 2.59, | |
8443 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
8444 | ||
8445 | Copyright (C) 2003 Free Software Foundation, Inc. | |
8446 | This config.status script is free software; the Free Software Foundation | |
8447 | gives unlimited permission to copy, distribute and modify it." | |
8448 | srcdir=$srcdir | |
8449 | INSTALL="$INSTALL" | |
8450 | _ACEOF | |
8451 | ||
8452 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8453 | # If no file are specified by the user, then we need to provide default | |
8454 | # value. By we need to know if files were specified by the user. | |
8455 | ac_need_defaults=: | |
8456 | while test $# != 0 | |
8457 | do | |
8458 | case $1 in | |
8459 | --*=*) | |
8460 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
8461 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
8462 | ac_shift=: | |
252b5132 | 8463 | ;; |
42ecbf5e DJ |
8464 | -*) |
8465 | ac_option=$1 | |
8466 | ac_optarg=$2 | |
8467 | ac_shift=shift | |
252b5132 | 8468 | ;; |
42ecbf5e DJ |
8469 | *) # This is not an option, so the user has probably given explicit |
8470 | # arguments. | |
8471 | ac_option=$1 | |
8472 | ac_need_defaults=false;; | |
8473 | esac | |
252b5132 | 8474 | |
42ecbf5e DJ |
8475 | case $ac_option in |
8476 | # Handling of the options. | |
8477 | _ACEOF | |
8478 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8479 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
8480 | ac_cs_recheck=: ;; | |
8481 | --version | --vers* | -V ) | |
8482 | echo "$ac_cs_version"; exit 0 ;; | |
8483 | --he | --h) | |
8484 | # Conflict between --help and --header | |
8485 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
8486 | Try \`$0 --help' for more information." >&5 | |
8487 | echo "$as_me: error: ambiguous option: $1 | |
8488 | Try \`$0 --help' for more information." >&2;} | |
8489 | { (exit 1); exit 1; }; };; | |
8490 | --help | --hel | -h ) | |
8491 | echo "$ac_cs_usage"; exit 0 ;; | |
8492 | --debug | --d* | -d ) | |
8493 | debug=: ;; | |
8494 | --file | --fil | --fi | --f ) | |
8495 | $ac_shift | |
8496 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
8497 | ac_need_defaults=false;; | |
8498 | --header | --heade | --head | --hea ) | |
8499 | $ac_shift | |
8500 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
8501 | ac_need_defaults=false;; | |
8502 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
8503 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
8504 | ac_cs_silent=: ;; | |
252b5132 | 8505 | |
42ecbf5e DJ |
8506 | # This is an error. |
8507 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
8508 | Try \`$0 --help' for more information." >&5 | |
8509 | echo "$as_me: error: unrecognized option: $1 | |
8510 | Try \`$0 --help' for more information." >&2;} | |
8511 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 8512 | |
42ecbf5e | 8513 | *) ac_config_targets="$ac_config_targets $1" ;; |
252b5132 | 8514 | |
42ecbf5e DJ |
8515 | esac |
8516 | shift | |
8517 | done | |
d15b04bd | 8518 | |
42ecbf5e | 8519 | ac_configure_extra_args= |
e5a52504 | 8520 | |
42ecbf5e DJ |
8521 | if $ac_cs_silent; then |
8522 | exec 6>/dev/null | |
8523 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
8524 | fi | |
e5a52504 | 8525 | |
42ecbf5e DJ |
8526 | _ACEOF |
8527 | cat >>$CONFIG_STATUS <<_ACEOF | |
8528 | if \$ac_cs_recheck; then | |
8529 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
8530 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
8531 | fi | |
8532 | ||
8533 | _ACEOF | |
8534 | ||
8535 | cat >>$CONFIG_STATUS <<_ACEOF | |
252b5132 | 8536 | # |
42ecbf5e | 8537 | # INIT-COMMANDS section. |
252b5132 | 8538 | # |
252b5132 | 8539 | |
42ecbf5e | 8540 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
20e95c23 DJ |
8541 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
8542 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
8543 | # from automake. | |
8544 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
8545 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
8546 | LINGUAS="${LINGUAS-%UNSET%}" | |
8547 | ||
42ecbf5e DJ |
8548 | |
8549 | _ACEOF | |
8550 | ||
8551 | ||
8552 | ||
8553 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8554 | for ac_config_target in $ac_config_targets | |
252b5132 | 8555 | do |
42ecbf5e DJ |
8556 | case "$ac_config_target" in |
8557 | # Handling of arguments. | |
8558 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
8559 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
8560 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
20e95c23 | 8561 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
42ecbf5e DJ |
8562 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; |
8563 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
8564 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
8565 | { (exit 1); exit 1; }; };; | |
252b5132 RH |
8566 | esac |
8567 | done | |
8568 | ||
42ecbf5e DJ |
8569 | # If the user did not use the arguments to specify the items to instantiate, |
8570 | # then the envvar interface is used. Set only those that are not. | |
8571 | # We use the long form for the default assignment because of an extremely | |
8572 | # bizarre bug on SunOS 4.1.3. | |
8573 | if $ac_need_defaults; then | |
8574 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
8575 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
8576 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
8577 | fi | |
8578 | ||
8579 | # Have a temporary directory for convenience. Make it in the build tree | |
8580 | # simply because there is no reason to put it here, and in addition, | |
8581 | # creating and moving files from /tmp can sometimes cause problems. | |
8582 | # Create a temporary directory, and hook for its removal unless debugging. | |
8583 | $debug || | |
8584 | { | |
8585 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
8586 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
8587 | } | |
8588 | ||
8589 | # Create a (secure) tmp directory for tmp files. | |
e5a52504 | 8590 | |
42ecbf5e DJ |
8591 | { |
8592 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
8593 | test -n "$tmp" && test -d "$tmp" | |
8594 | } || | |
8595 | { | |
8596 | tmp=./confstat$$-$RANDOM | |
8597 | (umask 077 && mkdir $tmp) | |
8598 | } || | |
8599 | { | |
8600 | echo "$me: cannot create a temporary directory in ." >&2 | |
8601 | { (exit 1); exit 1; } | |
8602 | } | |
e5a52504 | 8603 | |
42ecbf5e | 8604 | _ACEOF |
d15b04bd | 8605 | |
42ecbf5e DJ |
8606 | cat >>$CONFIG_STATUS <<_ACEOF |
8607 | ||
8608 | # | |
8609 | # CONFIG_FILES section. | |
8610 | # | |
8611 | ||
8612 | # No need to generate the scripts if there are no CONFIG_FILES. | |
8613 | # This happens for instance when ./config.status config.h | |
8614 | if test -n "\$CONFIG_FILES"; then | |
8615 | # Protect against being on the right side of a sed subst in config.status. | |
8616 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
8617 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
8618 | s,@SHELL@,$SHELL,;t t | |
8619 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
8620 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
8621 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
8622 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
8623 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
8624 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
8625 | s,@exec_prefix@,$exec_prefix,;t t | |
8626 | s,@prefix@,$prefix,;t t | |
8627 | s,@program_transform_name@,$program_transform_name,;t t | |
8628 | s,@bindir@,$bindir,;t t | |
8629 | s,@sbindir@,$sbindir,;t t | |
8630 | s,@libexecdir@,$libexecdir,;t t | |
8631 | s,@datadir@,$datadir,;t t | |
8632 | s,@sysconfdir@,$sysconfdir,;t t | |
8633 | s,@sharedstatedir@,$sharedstatedir,;t t | |
8634 | s,@localstatedir@,$localstatedir,;t t | |
8635 | s,@libdir@,$libdir,;t t | |
8636 | s,@includedir@,$includedir,;t t | |
8637 | s,@oldincludedir@,$oldincludedir,;t t | |
8638 | s,@infodir@,$infodir,;t t | |
8639 | s,@mandir@,$mandir,;t t | |
8640 | s,@build_alias@,$build_alias,;t t | |
8641 | s,@host_alias@,$host_alias,;t t | |
8642 | s,@target_alias@,$target_alias,;t t | |
8643 | s,@DEFS@,$DEFS,;t t | |
8644 | s,@ECHO_C@,$ECHO_C,;t t | |
8645 | s,@ECHO_N@,$ECHO_N,;t t | |
8646 | s,@ECHO_T@,$ECHO_T,;t t | |
8647 | s,@LIBS@,$LIBS,;t t | |
8648 | s,@build@,$build,;t t | |
8649 | s,@build_cpu@,$build_cpu,;t t | |
8650 | s,@build_vendor@,$build_vendor,;t t | |
8651 | s,@build_os@,$build_os,;t t | |
8652 | s,@host@,$host,;t t | |
8653 | s,@host_cpu@,$host_cpu,;t t | |
8654 | s,@host_vendor@,$host_vendor,;t t | |
8655 | s,@host_os@,$host_os,;t t | |
8656 | s,@target@,$target,;t t | |
8657 | s,@target_cpu@,$target_cpu,;t t | |
8658 | s,@target_vendor@,$target_vendor,;t t | |
8659 | s,@target_os@,$target_os,;t t | |
8660 | s,@CC@,$CC,;t t | |
8661 | s,@CFLAGS@,$CFLAGS,;t t | |
8662 | s,@LDFLAGS@,$LDFLAGS,;t t | |
8663 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
8664 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
8665 | s,@EXEEXT@,$EXEEXT,;t t | |
8666 | s,@OBJEXT@,$OBJEXT,;t t | |
8667 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
8668 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
8669 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
8670 | s,@CYGPATH_W@,$CYGPATH_W,;t t | |
8671 | s,@PACKAGE@,$PACKAGE,;t t | |
8672 | s,@VERSION@,$VERSION,;t t | |
8673 | s,@ACLOCAL@,$ACLOCAL,;t t | |
8674 | s,@AUTOCONF@,$AUTOCONF,;t t | |
8675 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
8676 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
8677 | s,@MAKEINFO@,$MAKEINFO,;t t | |
8678 | s,@install_sh@,$install_sh,;t t | |
8679 | s,@STRIP@,$STRIP,;t t | |
8680 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
8681 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
8682 | s,@mkdir_p@,$mkdir_p,;t t | |
8683 | s,@AWK@,$AWK,;t t | |
8684 | s,@SET_MAKE@,$SET_MAKE,;t t | |
8685 | s,@am__leading_dot@,$am__leading_dot,;t t | |
8686 | s,@AMTAR@,$AMTAR,;t t | |
8687 | s,@am__tar@,$am__tar,;t t | |
8688 | s,@am__untar@,$am__untar,;t t | |
8689 | s,@DEPDIR@,$DEPDIR,;t t | |
8690 | s,@am__include@,$am__include,;t t | |
8691 | s,@am__quote@,$am__quote,;t t | |
8692 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
8693 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
8694 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
8695 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
8696 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
8697 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
8698 | s,@LN_S@,$LN_S,;t t | |
8699 | s,@RANLIB@,$RANLIB,;t t | |
8700 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
8701 | s,@LIBTOOL@,$LIBTOOL,;t t | |
8702 | s,@use_sysroot@,$use_sysroot,;t t | |
8703 | s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t | |
8704 | s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t | |
92f01d61 | 8705 | s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t |
42ecbf5e DJ |
8706 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t |
8707 | s,@NO_WERROR@,$NO_WERROR,;t t | |
42ecbf5e | 8708 | s,@USE_NLS@,$USE_NLS,;t t |
20e95c23 DJ |
8709 | s,@LIBINTL@,$LIBINTL,;t t |
8710 | s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t | |
8711 | s,@INCINTL@,$INCINTL,;t t | |
42ecbf5e | 8712 | s,@XGETTEXT@,$XGETTEXT,;t t |
20e95c23 DJ |
8713 | s,@GMSGFMT@,$GMSGFMT,;t t |
8714 | s,@POSUB@,$POSUB,;t t | |
42ecbf5e | 8715 | s,@CATALOGS@,$CATALOGS,;t t |
42ecbf5e | 8716 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
42ecbf5e | 8717 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t |
20e95c23 DJ |
8718 | s,@GENCAT@,$GENCAT,;t t |
8719 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
42ecbf5e | 8720 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
20e95c23 DJ |
8721 | s,@MSGFMT@,$MSGFMT,;t t |
8722 | s,@MSGMERGE@,$MSGMERGE,;t t | |
42ecbf5e DJ |
8723 | s,@YACC@,$YACC,;t t |
8724 | s,@LEX@,$LEX,;t t | |
8725 | s,@LEXLIB@,$LEXLIB,;t t | |
8726 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | |
8727 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
8728 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
8729 | s,@MAINT@,$MAINT,;t t | |
d5fbea21 DJ |
8730 | s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t |
8731 | s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t | |
42ecbf5e DJ |
8732 | s,@HDEFINES@,$HDEFINES,;t t |
8733 | s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t | |
8734 | s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t | |
8735 | s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t | |
20e95c23 DJ |
8736 | s,@CPP@,$CPP,;t t |
8737 | s,@EGREP@,$EGREP,;t t | |
42ecbf5e DJ |
8738 | s,@STRINGIFY@,$STRINGIFY,;t t |
8739 | s,@EMUL@,$EMUL,;t t | |
8740 | s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t | |
8741 | s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t | |
8742 | s,@LIB_PATH@,$LIB_PATH,;t t | |
8743 | s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t | |
8744 | s,@TESTBFDLIB@,$TESTBFDLIB,;t t | |
108a6f8e CD |
8745 | s,@datarootdir@,$datarootdir,;t t |
8746 | s,@docdir@,$docdir,;t t | |
8747 | s,@htmldir@,$htmldir,;t t | |
42ecbf5e DJ |
8748 | s,@LIBOBJS@,$LIBOBJS,;t t |
8749 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
8750 | /@TDIRS@/r $TDIRS | |
8751 | s,@TDIRS@,,;t t | |
252b5132 | 8752 | CEOF |
252b5132 | 8753 | |
42ecbf5e DJ |
8754 | _ACEOF |
8755 | ||
8756 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8757 | # Split the substitutions into bite-sized pieces for seds with | |
8758 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
8759 | ac_max_sed_lines=48 | |
8760 | ac_sed_frag=1 # Number of current file. | |
8761 | ac_beg=1 # First line for current file. | |
8762 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
8763 | ac_more_lines=: | |
8764 | ac_sed_cmds= | |
8765 | while $ac_more_lines; do | |
8766 | if test $ac_beg -gt 1; then | |
8767 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
8768 | else | |
8769 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
8770 | fi | |
8771 | if test ! -s $tmp/subs.frag; then | |
8772 | ac_more_lines=false | |
252b5132 | 8773 | else |
42ecbf5e DJ |
8774 | # The purpose of the label and of the branching condition is to |
8775 | # speed up the sed processing (if there are no `@' at all, there | |
8776 | # is no need to browse any of the substitutions). | |
8777 | # These are the two extra sed commands mentioned above. | |
8778 | (echo ':t | |
8779 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
8780 | if test -z "$ac_sed_cmds"; then | |
8781 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
8782 | else | |
8783 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
8784 | fi | |
8785 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
8786 | ac_beg=$ac_end | |
8787 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
252b5132 | 8788 | fi |
42ecbf5e DJ |
8789 | done |
8790 | if test -z "$ac_sed_cmds"; then | |
8791 | ac_sed_cmds=cat | |
252b5132 | 8792 | fi |
42ecbf5e | 8793 | fi # test -n "$CONFIG_FILES" |
252b5132 | 8794 | |
42ecbf5e DJ |
8795 | _ACEOF |
8796 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8797 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
252b5132 | 8798 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
42ecbf5e DJ |
8799 | case $ac_file in |
8800 | - | *:- | *:-:* ) # input from stdin | |
8801 | cat >$tmp/stdin | |
8802 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8803 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
8804 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8805 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
8806 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
8807 | esac |
8808 | ||
42ecbf5e DJ |
8809 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
8810 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
8811 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8812 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8813 | X"$ac_file" : 'X\(//\)$' \| \ | |
8814 | X"$ac_file" : 'X\(/\)' \| \ | |
8815 | . : '\(.\)' 2>/dev/null || | |
8816 | echo X"$ac_file" | | |
8817 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8818 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8819 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8820 | /^X\(\/\).*/{ s//\1/; q; } | |
8821 | s/.*/./; q'` | |
8822 | { if $as_mkdir_p; then | |
8823 | mkdir -p "$ac_dir" | |
d15b04bd | 8824 | else |
42ecbf5e DJ |
8825 | as_dir="$ac_dir" |
8826 | as_dirs= | |
8827 | while test ! -d "$as_dir"; do | |
8828 | as_dirs="$as_dir $as_dirs" | |
8829 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8830 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8831 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8832 | X"$as_dir" : 'X\(//\)$' \| \ | |
8833 | X"$as_dir" : 'X\(/\)' \| \ | |
8834 | . : '\(.\)' 2>/dev/null || | |
8835 | echo X"$as_dir" | | |
8836 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8837 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8838 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8839 | /^X\(\/\).*/{ s//\1/; q; } | |
8840 | s/.*/./; q'` | |
8841 | done | |
8842 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8843 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
8844 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
8845 | { (exit 1); exit 1; }; }; } | |
8846 | ||
8847 | ac_builddir=. | |
8848 | ||
8849 | if test "$ac_dir" != .; then | |
8850 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
8851 | # A "../" for each directory in $ac_dir_suffix. | |
8852 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
8853 | else | |
8854 | ac_dir_suffix= ac_top_builddir= | |
8855 | fi | |
252b5132 | 8856 | |
42ecbf5e DJ |
8857 | case $srcdir in |
8858 | .) # No --srcdir option. We are building in place. | |
8859 | ac_srcdir=. | |
8860 | if test -z "$ac_top_builddir"; then | |
8861 | ac_top_srcdir=. | |
8862 | else | |
8863 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
8864 | fi ;; | |
8865 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
8866 | ac_srcdir=$srcdir$ac_dir_suffix; | |
8867 | ac_top_srcdir=$srcdir ;; | |
252b5132 | 8868 | *) # Relative path. |
42ecbf5e DJ |
8869 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
8870 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
8871 | esac | |
8872 | ||
8873 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
8874 | # the directories may not exist. | |
8875 | case `pwd` in | |
8876 | .) ac_abs_builddir="$ac_dir";; | |
8877 | *) | |
8878 | case "$ac_dir" in | |
8879 | .) ac_abs_builddir=`pwd`;; | |
8880 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
8881 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
8882 | esac;; | |
8883 | esac | |
8884 | case $ac_abs_builddir in | |
8885 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8886 | *) | |
8887 | case ${ac_top_builddir}. in | |
8888 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
8889 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8890 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
8891 | esac;; | |
8892 | esac | |
8893 | case $ac_abs_builddir in | |
8894 | .) ac_abs_srcdir=$ac_srcdir;; | |
8895 | *) | |
8896 | case $ac_srcdir in | |
8897 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
8898 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
8899 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
8900 | esac;; | |
8901 | esac | |
8902 | case $ac_abs_builddir in | |
8903 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8904 | *) | |
8905 | case $ac_top_srcdir in | |
8906 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
8907 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8908 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
8909 | esac;; | |
8910 | esac | |
252b5132 | 8911 | |
e5a52504 | 8912 | |
42ecbf5e DJ |
8913 | case $INSTALL in |
8914 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
8915 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
d15b04bd | 8916 | esac |
e5a52504 | 8917 | |
502bdb00 JW |
8918 | if test x"$ac_file" != x-; then |
8919 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
8920 | echo "$as_me: creating $ac_file" >&6;} | |
8921 | rm -f "$ac_file" | |
8922 | fi | |
42ecbf5e DJ |
8923 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
8924 | # use $as_me), people would be surprised to read: | |
8925 | # /* config.h. Generated by config.status. */ | |
8926 | if test x"$ac_file" = x-; then | |
8927 | configure_input= | |
8928 | else | |
8929 | configure_input="$ac_file. " | |
8930 | fi | |
8931 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
8932 | sed 's,.*/,,'` by configure." | |
8933 | ||
8934 | # First look for the input files in the build tree, otherwise in the | |
8935 | # src tree. | |
8936 | ac_file_inputs=`IFS=: | |
8937 | for f in $ac_file_in; do | |
8938 | case $f in | |
8939 | -) echo $tmp/stdin ;; | |
8940 | [\\/$]*) | |
8941 | # Absolute (can't be DOS-style, as IFS=:) | |
8942 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
8943 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
8944 | { (exit 1); exit 1; }; } | |
8945 | echo "$f";; | |
8946 | *) # Relative | |
8947 | if test -f "$f"; then | |
8948 | # Build tree | |
8949 | echo "$f" | |
8950 | elif test -f "$srcdir/$f"; then | |
8951 | # Source tree | |
8952 | echo "$srcdir/$f" | |
8953 | else | |
8954 | # /dev/null tree | |
8955 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
8956 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
8957 | { (exit 1); exit 1; }; } | |
8958 | fi;; | |
8959 | esac | |
8960 | done` || { (exit 1); exit 1; } | |
42ecbf5e DJ |
8961 | _ACEOF |
8962 | cat >>$CONFIG_STATUS <<_ACEOF | |
8963 | sed "$ac_vpsub | |
8964 | $extrasub | |
8965 | _ACEOF | |
8966 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8967 | :t | |
8968 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
8969 | s,@configure_input@,$configure_input,;t t | |
8970 | s,@srcdir@,$ac_srcdir,;t t | |
8971 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
8972 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
8973 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
8974 | s,@builddir@,$ac_builddir,;t t | |
8975 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
8976 | s,@top_builddir@,$ac_top_builddir,;t t | |
8977 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
8978 | s,@INSTALL@,$ac_INSTALL,;t t | |
8979 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
8980 | rm -f $tmp/stdin | |
8981 | if test x"$ac_file" != x-; then | |
8982 | mv $tmp/out $ac_file | |
8983 | else | |
8984 | cat $tmp/out | |
8985 | rm -f $tmp/out | |
8986 | fi | |
8987 | ||
8988 | done | |
8989 | _ACEOF | |
8990 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8991 | ||
8992 | # | |
8993 | # CONFIG_HEADER section. | |
8994 | # | |
252b5132 RH |
8995 | |
8996 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
8997 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
8998 | # | |
8999 | # ac_d sets the value in "#define NAME VALUE" lines. | |
42ecbf5e DJ |
9000 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
9001 | ac_dB='[ ].*$,\1#\2' | |
9002 | ac_dC=' ' | |
9003 | ac_dD=',;t' | |
9004 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
9005 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
9006 | ac_uB='$,\1#\2define\3' | |
252b5132 | 9007 | ac_uC=' ' |
42ecbf5e DJ |
9008 | ac_uD=',;t' |
9009 | ||
9010 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
252b5132 | 9011 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
42ecbf5e DJ |
9012 | case $ac_file in |
9013 | - | *:- | *:-:* ) # input from stdin | |
9014 | cat >$tmp/stdin | |
9015 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9016 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9017 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9018 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9019 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
9020 | esac |
9021 | ||
42ecbf5e DJ |
9022 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
9023 | echo "$as_me: creating $ac_file" >&6;} | |
9024 | ||
9025 | # First look for the input files in the build tree, otherwise in the | |
9026 | # src tree. | |
9027 | ac_file_inputs=`IFS=: | |
9028 | for f in $ac_file_in; do | |
9029 | case $f in | |
9030 | -) echo $tmp/stdin ;; | |
9031 | [\\/$]*) | |
9032 | # Absolute (can't be DOS-style, as IFS=:) | |
9033 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9034 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
9035 | { (exit 1); exit 1; }; } | |
9036 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
9037 | echo "$f";; | |
9038 | *) # Relative | |
9039 | if test -f "$f"; then | |
9040 | # Build tree | |
9041 | echo "$f" | |
9042 | elif test -f "$srcdir/$f"; then | |
9043 | # Source tree | |
9044 | echo "$srcdir/$f" | |
9045 | else | |
9046 | # /dev/null tree | |
9047 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9048 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
9049 | { (exit 1); exit 1; }; } | |
9050 | fi;; | |
9051 | esac | |
9052 | done` || { (exit 1); exit 1; } | |
9053 | # Remove the trailing spaces. | |
9054 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
9055 | ||
9056 | _ACEOF | |
9057 | ||
9058 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
9059 | # `conftest.undefs', that substitutes the proper values into | |
9060 | # config.h.in to produce config.h. The first handles `#define' | |
9061 | # templates, and the second `#undef' templates. | |
9062 | # And first: Protect against being on the right side of a sed subst in | |
9063 | # config.status. Protect against being in an unquoted here document | |
9064 | # in config.status. | |
9065 | rm -f conftest.defines conftest.undefs | |
9066 | # Using a here document instead of a string reduces the quoting nightmare. | |
9067 | # Putting comments in sed scripts is not portable. | |
9068 | # | |
9069 | # `end' is used to avoid that the second main sed command (meant for | |
9070 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
9071 | # See the Autoconf documentation for `clear'. | |
9072 | cat >confdef2sed.sed <<\_ACEOF | |
9073 | s/[\\&,]/\\&/g | |
9074 | s,[\\$`],\\&,g | |
9075 | t clear | |
9076 | : clear | |
9077 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
9078 | t end | |
9079 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
9080 | : end | |
9081 | _ACEOF | |
9082 | # If some macros were called several times there might be several times | |
9083 | # the same #defines, which is useless. Nevertheless, we may not want to | |
9084 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
9085 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
9086 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
9087 | rm -f confdef2sed.sed | |
252b5132 RH |
9088 | |
9089 | # This sed command replaces #undef with comments. This is necessary, for | |
9090 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
9091 | # on some systems where configure will not decide to define it. | |
42ecbf5e DJ |
9092 | cat >>conftest.undefs <<\_ACEOF |
9093 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
9094 | _ACEOF | |
9095 | ||
9096 | # Break up conftest.defines because some shells have a limit on the size | |
9097 | # of here documents, and old seds have small limits too (100 cmds). | |
9098 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
9099 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
9100 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
9101 | echo ' :' >>$CONFIG_STATUS | |
9102 | rm -f conftest.tail | |
9103 | while grep . conftest.defines >/dev/null | |
9104 | do | |
9105 | # Write a limited-size here document to $tmp/defines.sed. | |
9106 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
9107 | # Speed up: don't consider the non `#define' lines. | |
9108 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
9109 | # Work around the forget-to-reset-the-flag bug. | |
9110 | echo 't clr' >>$CONFIG_STATUS | |
9111 | echo ': clr' >>$CONFIG_STATUS | |
9112 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
9113 | echo 'CEOF | |
9114 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
9115 | rm -f $tmp/in | |
9116 | mv $tmp/out $tmp/in | |
9117 | ' >>$CONFIG_STATUS | |
9118 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
9119 | rm -f conftest.defines | |
9120 | mv conftest.tail conftest.defines | |
9121 | done | |
9122 | rm -f conftest.defines | |
9123 | echo ' fi # grep' >>$CONFIG_STATUS | |
9124 | echo >>$CONFIG_STATUS | |
252b5132 | 9125 | |
42ecbf5e DJ |
9126 | # Break up conftest.undefs because some shells have a limit on the size |
9127 | # of here documents, and old seds have small limits too (100 cmds). | |
9128 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
252b5132 | 9129 | rm -f conftest.tail |
42ecbf5e | 9130 | while grep . conftest.undefs >/dev/null |
252b5132 | 9131 | do |
42ecbf5e DJ |
9132 | # Write a limited-size here document to $tmp/undefs.sed. |
9133 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
9134 | # Speed up: don't consider the non `#undef' | |
9135 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
9136 | # Work around the forget-to-reset-the-flag bug. | |
9137 | echo 't clr' >>$CONFIG_STATUS | |
9138 | echo ': clr' >>$CONFIG_STATUS | |
9139 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
252b5132 | 9140 | echo 'CEOF |
42ecbf5e DJ |
9141 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
9142 | rm -f $tmp/in | |
9143 | mv $tmp/out $tmp/in | |
9144 | ' >>$CONFIG_STATUS | |
9145 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
9146 | rm -f conftest.undefs | |
9147 | mv conftest.tail conftest.undefs | |
252b5132 | 9148 | done |
42ecbf5e DJ |
9149 | rm -f conftest.undefs |
9150 | ||
9151 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9152 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
9153 | # use $as_me), people would be surprised to read: | |
9154 | # /* config.h. Generated by config.status. */ | |
9155 | if test x"$ac_file" = x-; then | |
9156 | echo "/* Generated by configure. */" >$tmp/config.h | |
252b5132 | 9157 | else |
42ecbf5e DJ |
9158 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
9159 | fi | |
9160 | cat $tmp/in >>$tmp/config.h | |
9161 | rm -f $tmp/in | |
9162 | if test x"$ac_file" != x-; then | |
9163 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
9164 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
9165 | echo "$as_me: $ac_file is unchanged" >&6;} | |
9166 | else | |
9167 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
9168 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9169 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
9170 | X"$ac_file" : 'X\(//\)$' \| \ | |
9171 | X"$ac_file" : 'X\(/\)' \| \ | |
9172 | . : '\(.\)' 2>/dev/null || | |
9173 | echo X"$ac_file" | | |
9174 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9175 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9176 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9177 | /^X\(\/\).*/{ s//\1/; q; } | |
9178 | s/.*/./; q'` | |
9179 | { if $as_mkdir_p; then | |
9180 | mkdir -p "$ac_dir" | |
9181 | else | |
9182 | as_dir="$ac_dir" | |
9183 | as_dirs= | |
9184 | while test ! -d "$as_dir"; do | |
9185 | as_dirs="$as_dir $as_dirs" | |
9186 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
9187 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9188 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9189 | X"$as_dir" : 'X\(//\)$' \| \ | |
9190 | X"$as_dir" : 'X\(/\)' \| \ | |
9191 | . : '\(.\)' 2>/dev/null || | |
9192 | echo X"$as_dir" | | |
9193 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9194 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9195 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9196 | /^X\(\/\).*/{ s//\1/; q; } | |
9197 | s/.*/./; q'` | |
9198 | done | |
9199 | test ! -n "$as_dirs" || mkdir $as_dirs | |
9200 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
9201 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
9202 | { (exit 1); exit 1; }; }; } | |
9203 | ||
9204 | rm -f $ac_file | |
9205 | mv $tmp/config.h $ac_file | |
252b5132 | 9206 | fi |
42ecbf5e DJ |
9207 | else |
9208 | cat $tmp/config.h | |
9209 | rm -f $tmp/config.h | |
e5a52504 | 9210 | fi |
42ecbf5e DJ |
9211 | # Compute $ac_file's index in $config_headers. |
9212 | _am_stamp_count=1 | |
9213 | for _am_header in $config_headers :; do | |
9214 | case $_am_header in | |
9215 | $ac_file | $ac_file:* ) | |
9216 | break ;; | |
9217 | * ) | |
9218 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
9219 | esac | |
9220 | done | |
9221 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
9222 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9223 | X$ac_file : 'X\(//\)[^/]' \| \ | |
9224 | X$ac_file : 'X\(//\)$' \| \ | |
9225 | X$ac_file : 'X\(/\)' \| \ | |
9226 | . : '\(.\)' 2>/dev/null || | |
9227 | echo X$ac_file | | |
9228 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9229 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9230 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9231 | /^X\(\/\).*/{ s//\1/; q; } | |
9232 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
9233 | done | |
9234 | _ACEOF | |
9235 | cat >>$CONFIG_STATUS <<\_ACEOF | |
e5a52504 | 9236 | |
42ecbf5e DJ |
9237 | # |
9238 | # CONFIG_COMMANDS section. | |
9239 | # | |
9240 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
9241 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
9242 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9243 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
9244 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9245 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
9246 | X"$ac_dest" : 'X\(//\)$' \| \ | |
9247 | X"$ac_dest" : 'X\(/\)' \| \ | |
9248 | . : '\(.\)' 2>/dev/null || | |
9249 | echo X"$ac_dest" | | |
9250 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9251 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9252 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9253 | /^X\(\/\).*/{ s//\1/; q; } | |
9254 | s/.*/./; q'` | |
9255 | { if $as_mkdir_p; then | |
9256 | mkdir -p "$ac_dir" | |
9257 | else | |
9258 | as_dir="$ac_dir" | |
9259 | as_dirs= | |
9260 | while test ! -d "$as_dir"; do | |
9261 | as_dirs="$as_dir $as_dirs" | |
9262 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
9263 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9264 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9265 | X"$as_dir" : 'X\(//\)$' \| \ | |
9266 | X"$as_dir" : 'X\(/\)' \| \ | |
9267 | . : '\(.\)' 2>/dev/null || | |
9268 | echo X"$as_dir" | | |
9269 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9270 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9271 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9272 | /^X\(\/\).*/{ s//\1/; q; } | |
9273 | s/.*/./; q'` | |
9274 | done | |
9275 | test ! -n "$as_dirs" || mkdir $as_dirs | |
9276 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
9277 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
9278 | { (exit 1); exit 1; }; }; } | |
e5a52504 | 9279 | |
42ecbf5e | 9280 | ac_builddir=. |
e5a52504 | 9281 | |
42ecbf5e DJ |
9282 | if test "$ac_dir" != .; then |
9283 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
9284 | # A "../" for each directory in $ac_dir_suffix. | |
9285 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
9286 | else | |
9287 | ac_dir_suffix= ac_top_builddir= | |
9288 | fi | |
9289 | ||
9290 | case $srcdir in | |
9291 | .) # No --srcdir option. We are building in place. | |
9292 | ac_srcdir=. | |
9293 | if test -z "$ac_top_builddir"; then | |
9294 | ac_top_srcdir=. | |
9295 | else | |
9296 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
9297 | fi ;; | |
9298 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
9299 | ac_srcdir=$srcdir$ac_dir_suffix; | |
9300 | ac_top_srcdir=$srcdir ;; | |
9301 | *) # Relative path. | |
9302 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
9303 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
9304 | esac | |
9305 | ||
9306 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
9307 | # the directories may not exist. | |
9308 | case `pwd` in | |
9309 | .) ac_abs_builddir="$ac_dir";; | |
9310 | *) | |
9311 | case "$ac_dir" in | |
9312 | .) ac_abs_builddir=`pwd`;; | |
9313 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
9314 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
9315 | esac;; | |
9316 | esac | |
9317 | case $ac_abs_builddir in | |
9318 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
9319 | *) | |
9320 | case ${ac_top_builddir}. in | |
9321 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
9322 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
9323 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
9324 | esac;; | |
9325 | esac | |
9326 | case $ac_abs_builddir in | |
9327 | .) ac_abs_srcdir=$ac_srcdir;; | |
9328 | *) | |
9329 | case $ac_srcdir in | |
9330 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
9331 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
9332 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
9333 | esac;; | |
9334 | esac | |
9335 | case $ac_abs_builddir in | |
9336 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
9337 | *) | |
9338 | case $ac_top_srcdir in | |
9339 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
9340 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
9341 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
9342 | esac;; | |
9343 | esac | |
9344 | ||
9345 | ||
9346 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
9347 | echo "$as_me: executing $ac_dest commands" >&6;} | |
9348 | case $ac_dest in | |
9349 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
9350 | # Strip MF so we end up with the name of the file. | |
9351 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
9352 | # Check whether this is an Automake generated Makefile or not. | |
9353 | # We used to match only the files named `Makefile.in', but | |
9354 | # some people rename them; so instead we look at the file content. | |
9355 | # Grep'ing the first line is not enough: some people post-process | |
9356 | # each Makefile.in and add a new line on top of each file to say so. | |
9357 | # So let's grep whole file. | |
9358 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
9359 | dirpart=`(dirname "$mf") 2>/dev/null || | |
9360 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9361 | X"$mf" : 'X\(//\)[^/]' \| \ | |
9362 | X"$mf" : 'X\(//\)$' \| \ | |
9363 | X"$mf" : 'X\(/\)' \| \ | |
9364 | . : '\(.\)' 2>/dev/null || | |
9365 | echo X"$mf" | | |
9366 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9367 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9368 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9369 | /^X\(\/\).*/{ s//\1/; q; } | |
9370 | s/.*/./; q'` | |
9371 | else | |
9372 | continue | |
9373 | fi | |
9374 | # Extract the definition of DEPDIR, am__include, and am__quote | |
9375 | # from the Makefile without running `make'. | |
9376 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
9377 | test -z "$DEPDIR" && continue | |
9378 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
9379 | test -z "am__include" && continue | |
9380 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
9381 | # When using ansi2knr, U may be empty or an underscore; expand it | |
9382 | U=`sed -n 's/^U = //p' < "$mf"` | |
9383 | # Find all dependency output files, they are included files with | |
9384 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
9385 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
9386 | # expansion. | |
9387 | for file in `sed -n " | |
9388 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
9389 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
9390 | # Make sure the directory exists. | |
9391 | test -f "$dirpart/$file" && continue | |
9392 | fdir=`(dirname "$file") 2>/dev/null || | |
9393 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9394 | X"$file" : 'X\(//\)[^/]' \| \ | |
9395 | X"$file" : 'X\(//\)$' \| \ | |
9396 | X"$file" : 'X\(/\)' \| \ | |
9397 | . : '\(.\)' 2>/dev/null || | |
9398 | echo X"$file" | | |
9399 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9400 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9401 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9402 | /^X\(\/\).*/{ s//\1/; q; } | |
9403 | s/.*/./; q'` | |
9404 | { if $as_mkdir_p; then | |
9405 | mkdir -p $dirpart/$fdir | |
9406 | else | |
9407 | as_dir=$dirpart/$fdir | |
9408 | as_dirs= | |
9409 | while test ! -d "$as_dir"; do | |
9410 | as_dirs="$as_dir $as_dirs" | |
9411 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
9412 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9413 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9414 | X"$as_dir" : 'X\(//\)$' \| \ | |
9415 | X"$as_dir" : 'X\(/\)' \| \ | |
9416 | . : '\(.\)' 2>/dev/null || | |
9417 | echo X"$as_dir" | | |
9418 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9419 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9420 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9421 | /^X\(\/\).*/{ s//\1/; q; } | |
9422 | s/.*/./; q'` | |
9423 | done | |
9424 | test ! -n "$as_dirs" || mkdir $as_dirs | |
9425 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
9426 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
9427 | { (exit 1); exit 1; }; }; } | |
9428 | ||
9429 | # echo "creating $dirpart/$file" | |
9430 | echo '# dummy' > "$dirpart/$file" | |
9431 | done | |
9432 | done | |
9433 | ;; | |
20e95c23 DJ |
9434 | default-1 ) |
9435 | for ac_file in $CONFIG_FILES; do | |
9436 | # Support "outfile[:infile[:infile...]]" | |
9437 | case "$ac_file" in | |
9438 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
9439 | esac | |
9440 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
9441 | case "$ac_file" in */Makefile.in) | |
9442 | # Adjust a relative srcdir. | |
9443 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
9444 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
9445 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
9446 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
9447 | # In autoconf-2.50 it is called $srcdir. | |
9448 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
9449 | case "$ac_given_srcdir" in | |
9450 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
9451 | /*) top_srcdir="$ac_given_srcdir" ;; | |
9452 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
9453 | esac | |
9454 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
9455 | rm -f "$ac_dir/POTFILES" | |
9456 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
9457 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
9458 | POMAKEFILEDEPS="POTFILES.in" | |
9459 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
9460 | # on $ac_dir but don't depend on user-specified configuration | |
9461 | # parameters. | |
9462 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
9463 | # The LINGUAS file contains the set of available languages. | |
9464 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
9465 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
9466 | fi | |
9467 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
9468 | # Hide the ALL_LINGUAS assigment from automake. | |
9469 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
9470 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
9471 | else | |
9472 | # The set of available languages was given in configure.in. | |
9473 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
9474 | fi | |
9475 | case "$ac_given_srcdir" in | |
9476 | .) srcdirpre= ;; | |
9477 | *) srcdirpre='$(srcdir)/' ;; | |
9478 | esac | |
9479 | POFILES= | |
9480 | GMOFILES= | |
9481 | UPDATEPOFILES= | |
9482 | DUMMYPOFILES= | |
9483 | for lang in $ALL_LINGUAS; do | |
9484 | POFILES="$POFILES $srcdirpre$lang.po" | |
9485 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
9486 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
9487 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
9488 | done | |
9489 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
9490 | # environment variable. | |
9491 | INST_LINGUAS= | |
9492 | if test -n "$ALL_LINGUAS"; then | |
9493 | for presentlang in $ALL_LINGUAS; do | |
9494 | useit=no | |
9495 | if test "%UNSET%" != "$LINGUAS"; then | |
9496 | desiredlanguages="$LINGUAS" | |
9497 | else | |
9498 | desiredlanguages="$ALL_LINGUAS" | |
9499 | fi | |
9500 | for desiredlang in $desiredlanguages; do | |
9501 | # Use the presentlang catalog if desiredlang is | |
9502 | # a. equal to presentlang, or | |
9503 | # b. a variant of presentlang (because in this case, | |
9504 | # presentlang can be used as a fallback for messages | |
9505 | # which are not translated in the desiredlang catalog). | |
9506 | case "$desiredlang" in | |
9507 | "$presentlang"*) useit=yes;; | |
9508 | esac | |
9509 | done | |
9510 | if test $useit = yes; then | |
9511 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
9512 | fi | |
9513 | done | |
9514 | fi | |
9515 | CATALOGS= | |
9516 | if test -n "$INST_LINGUAS"; then | |
9517 | for lang in $INST_LINGUAS; do | |
9518 | CATALOGS="$CATALOGS $lang.gmo" | |
9519 | done | |
9520 | fi | |
9521 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
9522 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" | |
9523 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
9524 | if test -f "$f"; then | |
9525 | case "$f" in | |
9526 | *.orig | *.bak | *~) ;; | |
9527 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
9528 | esac | |
9529 | fi | |
9530 | done | |
9531 | fi | |
9532 | ;; | |
9533 | esac | |
9534 | done ;; | |
42ecbf5e DJ |
9535 | esac |
9536 | done | |
9537 | _ACEOF | |
9538 | ||
9539 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9540 | ||
9541 | { (exit 0); exit 0; } | |
9542 | _ACEOF | |
252b5132 | 9543 | chmod +x $CONFIG_STATUS |
42ecbf5e DJ |
9544 | ac_clean_files=$ac_clean_files_save |
9545 | ||
9546 | ||
9547 | # configure is writing to config.log, and then calls config.status. | |
9548 | # config.status does its own redirection, appending to config.log. | |
9549 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
9550 | # by configure, so config.status won't be able to write to it; its | |
9551 | # output is simply discarded. So we exec the FD to /dev/null, | |
9552 | # effectively closing config.log, so it can be properly (re)opened and | |
9553 | # appended to by config.status. When coming back to configure, we | |
9554 | # need to make the FD available again. | |
9555 | if test "$no_create" != yes; then | |
9556 | ac_cs_success=: | |
9557 | ac_config_status_args= | |
9558 | test "$silent" = yes && | |
9559 | ac_config_status_args="$ac_config_status_args --quiet" | |
9560 | exec 5>/dev/null | |
9561 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
9562 | exec 5>>config.log | |
9563 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
9564 | # would make configure fail if this is the last instruction. | |
9565 | $ac_cs_success || { (exit 1); exit 1; } | |
9566 | fi | |
252b5132 | 9567 |