Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
6bf9431b | 3 | # Generated by GNU Autoconf 2.59. |
252b5132 | 4 | # |
6bf9431b | 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. | |
6bf9431b BE |
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 | |
6bf9431b BE |
249 | exec 6>&1 |
250 | ||
251 | # | |
252 | # Initializations. | |
253 | # | |
252b5132 | 254 | ac_default_prefix=/usr/local |
6bf9431b BE |
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="gprof.c" | |
275 | # Factoring default headers for most tests. | |
276 | ac_includes_default="\ | |
277 | #include <stdio.h> | |
278 | #if HAVE_SYS_TYPES_H | |
279 | # include <sys/types.h> | |
280 | #endif | |
281 | #if HAVE_SYS_STAT_H | |
282 | # include <sys/stat.h> | |
283 | #endif | |
284 | #if STDC_HEADERS | |
285 | # include <stdlib.h> | |
286 | # include <stddef.h> | |
287 | #else | |
288 | # if HAVE_STDLIB_H | |
289 | # include <stdlib.h> | |
290 | # endif | |
291 | #endif | |
292 | #if HAVE_STRING_H | |
293 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
294 | # include <memory.h> | |
295 | # endif | |
296 | # include <string.h> | |
297 | #endif | |
298 | #if HAVE_STRINGS_H | |
299 | # include <strings.h> | |
300 | #endif | |
301 | #if HAVE_INTTYPES_H | |
302 | # include <inttypes.h> | |
303 | #else | |
304 | # if HAVE_STDINT_H | |
305 | # include <stdint.h> | |
306 | # endif | |
307 | #endif | |
308 | #if HAVE_UNISTD_H | |
309 | # include <unistd.h> | |
310 | #endif" | |
311 | ||
312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT WARN_CFLAGS LIBOBJS LTLIBOBJS' | |
313 | ac_subst_files='' | |
252b5132 RH |
314 | |
315 | # Initialize some variables set by options. | |
6bf9431b BE |
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. | |
6bf9431b | 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 | |
6bf9431b BE |
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 | ||
6bf9431b | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
252b5132 RH |
364 | |
365 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
366 | ||
6bf9431b | 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=*) | |
6bf9431b | 372 | bindir=$ac_optarg ;; |
252b5132 RH |
373 | |
374 | -build | --build | --buil | --bui | --bu) | |
6bf9431b | 375 | ac_prev=build_alias ;; |
252b5132 | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
6bf9431b | 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=*) | |
6bf9431b BE |
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=*) | |
6bf9431b | 393 | datadir=$ac_optarg ;; |
252b5132 RH |
394 | |
395 | -disable-* | --disable-*) | |
6bf9431b | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 397 | # Reject names that are not valid shell variable names. |
6bf9431b BE |
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-*) | |
6bf9431b | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 406 | # Reject names that are not valid shell variable names. |
6bf9431b BE |
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 | |
6bf9431b | 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=*) | |
6bf9431b | 424 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
425 | |
426 | -gas | --gas | --ga | --g) | |
427 | # Obsolete; use --with-gas. | |
428 | with_gas=yes ;; | |
429 | ||
6bf9431b BE |
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) | |
6bf9431b | 438 | ac_prev=host_alias ;; |
252b5132 | 439 | -host=* | --host=* | --hos=* | --ho=*) |
6bf9431b | 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=*) | |
6bf9431b | 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=*) | |
6bf9431b | 452 | infodir=$ac_optarg ;; |
252b5132 RH |
453 | |
454 | -libdir | --libdir | --libdi | --libd) | |
455 | ac_prev=libdir ;; | |
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
6bf9431b | 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=*) | |
6bf9431b | 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=*) | |
6bf9431b | 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=*) | |
6bf9431b | 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 \ | |
6bf9431b | 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=*) | |
6bf9431b | 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=*) | |
6bf9431b | 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=*) | |
6bf9431b | 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=*) | |
6bf9431b | 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=*) | |
6bf9431b | 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=*) | |
6bf9431b | 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=*) | |
6bf9431b | 556 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
557 | |
558 | -site | --site | --sit) | |
559 | ac_prev=site ;; | |
560 | -site=* | --site=* | --sit=*) | |
6bf9431b | 561 | site=$ac_optarg ;; |
093872ec | 562 | |
252b5132 RH |
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
564 | ac_prev=srcdir ;; | |
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
6bf9431b | 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=*) | |
6bf9431b | 573 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
574 | |
575 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
6bf9431b | 576 | ac_prev=target_alias ;; |
252b5132 | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
6bf9431b | 578 | target_alias=$ac_optarg ;; |
252b5132 RH |
579 | |
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
581 | verbose=yes ;; | |
582 | ||
6bf9431b BE |
583 | -version | --version | --versio | --versi | --vers | -V) |
584 | ac_init_version=: ;; | |
252b5132 RH |
585 | |
586 | -with-* | --with-*) | |
6bf9431b | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 588 | # Reject names that are not valid shell variable names. |
6bf9431b BE |
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'` |
6bf9431b BE |
593 | case $ac_option in |
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
595 | *) ac_optarg=yes ;; |
596 | esac | |
6bf9431b | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
252b5132 RH |
598 | |
599 | -without-* | --without-*) | |
6bf9431b | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 601 | # Reject names that are not valid shell variable names. |
6bf9431b BE |
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=*) | |
6bf9431b | 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=*) | |
6bf9431b | 624 | x_libraries=$ac_optarg ;; |
252b5132 | 625 | |
6bf9431b BE |
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 | ||
6bf9431b BE |
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 | *) |
6bf9431b BE |
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 | |
6bf9431b BE |
653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
654 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
655 | { (exit 1); exit 1; }; } | |
252b5132 RH |
656 | fi |
657 | ||
6bf9431b BE |
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 | |
6bf9431b BE |
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 |
6bf9431b BE |
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 | ||
6bf9431b BE |
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 | |
252b5132 | 698 | |
6bf9431b BE |
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. | |
6bf9431b BE |
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 | |
6bf9431b BE |
730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
731 | { (exit 1); exit 1; }; } | |
252b5132 | 732 | else |
6bf9431b BE |
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 | |
6bf9431b BE |
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 | |
6bf9431b BE |
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 | |
6bf9431b | 783 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 784 | |
6bf9431b BE |
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 | |
6bf9431b | 788 | Defaults for the options are specified in brackets. |
ac48eca1 | 789 | |
6bf9431b BE |
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 | |
6bf9431b BE |
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 | |
6bf9431b | 815 | For better control, use the options below. |
ac48eca1 | 816 | |
6bf9431b BE |
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 | |
6bf9431b | 832 | cat <<\_ACEOF |
252b5132 | 833 | |
6bf9431b BE |
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 | |
6bf9431b BE |
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 | |
6bf9431b | 846 | if test -n "$ac_init_help"; then |
252b5132 | 847 | |
6bf9431b | 848 | cat <<\_ACEOF |
252b5132 | 849 | |
6bf9431b BE |
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 | --disable-nls do not use Native Language Support | |
860 | --enable-maintainer-mode enable make rules and dependencies not useful | |
861 | (and sometimes confusing) to the casual installer | |
862 | --enable-build-warnings Enable build-time compiler warnings if gcc is used | |
863 | ||
864 | Optional Packages: | |
865 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
866 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
867 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
868 | --with-pic try to use only PIC/non-PIC objects default=use both | |
869 | --with-included-gettext use the GNU gettext library included here | |
252b5132 | 870 | |
6bf9431b BE |
871 | Some influential environment variables: |
872 | CC C compiler command | |
873 | CFLAGS C compiler flags | |
874 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
875 | nonstandard directory <lib dir> | |
876 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
877 | headers in a nonstandard directory <include dir> | |
878 | CPP C preprocessor | |
252b5132 | 879 | |
6bf9431b BE |
880 | Use these variables to override the choices made by `configure' or to help |
881 | it to find libraries and programs with nonstandard names/locations. | |
882 | ||
883 | _ACEOF | |
252b5132 RH |
884 | fi |
885 | ||
6bf9431b BE |
886 | if test "$ac_init_help" = "recursive"; then |
887 | # If there are subdirs, report their specific --help. | |
888 | ac_popdir=`pwd` | |
889 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
890 | test -d $ac_dir || continue | |
891 | ac_builddir=. | |
252b5132 | 892 | |
6bf9431b BE |
893 | if test "$ac_dir" != .; then |
894 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
895 | # A "../" for each directory in $ac_dir_suffix. | |
896 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
897 | else | |
898 | ac_dir_suffix= ac_top_builddir= | |
899 | fi | |
900 | ||
901 | case $srcdir in | |
902 | .) # No --srcdir option. We are building in place. | |
903 | ac_srcdir=. | |
904 | if test -z "$ac_top_builddir"; then | |
905 | ac_top_srcdir=. | |
906 | else | |
907 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
252b5132 | 908 | fi ;; |
6bf9431b BE |
909 | [\\/]* | ?:[\\/]* ) # Absolute path. |
910 | ac_srcdir=$srcdir$ac_dir_suffix; | |
911 | ac_top_srcdir=$srcdir ;; | |
912 | *) # Relative path. | |
913 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
914 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
252b5132 RH |
915 | esac |
916 | ||
6bf9431b BE |
917 | # Do not use `cd foo && pwd` to compute absolute paths, because |
918 | # the directories may not exist. | |
919 | case `pwd` in | |
920 | .) ac_abs_builddir="$ac_dir";; | |
921 | *) | |
922 | case "$ac_dir" in | |
923 | .) ac_abs_builddir=`pwd`;; | |
924 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
925 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
926 | esac;; | |
252b5132 | 927 | esac |
6bf9431b BE |
928 | case $ac_abs_builddir in |
929 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
930 | *) | |
931 | case ${ac_top_builddir}. in | |
932 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
933 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
934 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
935 | esac;; | |
936 | esac | |
937 | case $ac_abs_builddir in | |
938 | .) ac_abs_srcdir=$ac_srcdir;; | |
939 | *) | |
940 | case $ac_srcdir in | |
941 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
942 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
943 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
944 | esac;; | |
945 | esac | |
946 | case $ac_abs_builddir in | |
947 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
948 | *) | |
949 | case $ac_top_srcdir in | |
950 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
951 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
952 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
953 | esac;; | |
252b5132 RH |
954 | esac |
955 | ||
6bf9431b BE |
956 | cd $ac_dir |
957 | # Check for guested configure; otherwise get Cygnus style configure. | |
958 | if test -f $ac_srcdir/configure.gnu; then | |
959 | echo | |
960 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
961 | elif test -f $ac_srcdir/configure; then | |
962 | echo | |
963 | $SHELL $ac_srcdir/configure --help=recursive | |
964 | elif test -f $ac_srcdir/configure.ac || | |
965 | test -f $ac_srcdir/configure.in; then | |
966 | echo | |
967 | $ac_configure --help | |
968 | else | |
969 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
970 | fi | |
971 | cd "$ac_popdir" | |
972 | done | |
973 | fi | |
252b5132 | 974 | |
6bf9431b BE |
975 | test -n "$ac_init_help" && exit 0 |
976 | if $ac_init_version; then | |
977 | cat <<\_ACEOF | |
252b5132 | 978 | |
6bf9431b BE |
979 | Copyright (C) 2003 Free Software Foundation, Inc. |
980 | This configure script is free software; the Free Software Foundation | |
981 | gives unlimited permission to copy, distribute and modify it. | |
982 | _ACEOF | |
983 | exit 0 | |
984 | fi | |
985 | exec 5>config.log | |
986 | cat >&5 <<_ACEOF | |
987 | This file contains any messages produced by compilers while | |
988 | running configure, to aid debugging if configure makes a mistake. | |
66477e87 | 989 | |
6bf9431b BE |
990 | It was created by $as_me, which was |
991 | generated by GNU Autoconf 2.59. Invocation command line was | |
5d64ca4e | 992 | |
6bf9431b | 993 | $ $0 $@ |
5d64ca4e | 994 | |
6bf9431b BE |
995 | _ACEOF |
996 | { | |
997 | cat <<_ASUNAME | |
998 | ## --------- ## | |
999 | ## Platform. ## | |
1000 | ## --------- ## | |
1001 | ||
1002 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1003 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1004 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1005 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1006 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1007 | ||
1008 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1009 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1010 | ||
1011 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1012 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1013 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1014 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1015 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1016 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1017 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1018 | ||
1019 | _ASUNAME | |
1020 | ||
1021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1022 | for as_dir in $PATH | |
1023 | do | |
1024 | IFS=$as_save_IFS | |
1025 | test -z "$as_dir" && as_dir=. | |
1026 | echo "PATH: $as_dir" | |
1027 | done | |
5d64ca4e | 1028 | |
6bf9431b | 1029 | } >&5 |
093872ec | 1030 | |
6bf9431b | 1031 | cat >&5 <<_ACEOF |
252b5132 | 1032 | |
6bf9431b BE |
1033 | |
1034 | ## ----------- ## | |
1035 | ## Core tests. ## | |
1036 | ## ----------- ## | |
1037 | ||
1038 | _ACEOF | |
1039 | ||
1040 | ||
1041 | # Keep a trace of the command line. | |
1042 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1043 | # Strip out --silent because we don't want to record it for future runs. | |
1044 | # Also quote any args containing shell meta-characters. | |
1045 | # Make two passes to allow for proper duplicate-argument suppression. | |
1046 | ac_configure_args= | |
1047 | ac_configure_args0= | |
1048 | ac_configure_args1= | |
1049 | ac_sep= | |
1050 | ac_must_keep_next=false | |
1051 | for ac_pass in 1 2 | |
1052 | do | |
1053 | for ac_arg | |
1054 | do | |
1055 | case $ac_arg in | |
1056 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1057 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1058 | | -silent | --silent | --silen | --sile | --sil) | |
1059 | continue ;; | |
1060 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1061 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1062 | esac | |
1063 | case $ac_pass in | |
1064 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1065 | 2) | |
1066 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1067 | if test $ac_must_keep_next = true; then | |
1068 | ac_must_keep_next=false # Got value, back to normal. | |
1069 | else | |
1070 | case $ac_arg in | |
1071 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1072 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1073 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1074 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1075 | case "$ac_configure_args0 " in | |
1076 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1077 | esac | |
1078 | ;; | |
1079 | -* ) ac_must_keep_next=true ;; | |
1080 | esac | |
1081 | fi | |
1082 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1083 | # Get rid of the leading space. | |
1084 | ac_sep=" " | |
1085 | ;; | |
1086 | esac | |
1087 | done | |
1088 | done | |
1089 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1090 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1091 | ||
1092 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1093 | # config.log. We remove comments because anyway the quotes in there | |
1094 | # would cause problems or look ugly. | |
1095 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1096 | # such as our DU 5.0 friend, will then `close' the trap. | |
1097 | trap 'exit_status=$? | |
1098 | # Save into config.log some information that might help in debugging. | |
1099 | { | |
1100 | echo | |
1101 | ||
1102 | cat <<\_ASBOX | |
1103 | ## ---------------- ## | |
1104 | ## Cache variables. ## | |
1105 | ## ---------------- ## | |
1106 | _ASBOX | |
1107 | echo | |
1108 | # The following way of writing the cache mishandles newlines in values, | |
1109 | { | |
1110 | (set) 2>&1 | | |
1111 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1112 | *ac_space=\ *) | |
1113 | sed -n \ | |
1114 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1115 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1116 | ;; | |
1117 | *) | |
1118 | sed -n \ | |
1119 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1120 | ;; | |
1121 | esac; | |
1122 | } | |
1123 | echo | |
1124 | ||
1125 | cat <<\_ASBOX | |
1126 | ## ----------------- ## | |
1127 | ## Output variables. ## | |
1128 | ## ----------------- ## | |
1129 | _ASBOX | |
1130 | echo | |
1131 | for ac_var in $ac_subst_vars | |
1132 | do | |
1133 | eval ac_val=$`echo $ac_var` | |
1134 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1135 | done | sort | |
1136 | echo | |
1137 | ||
1138 | if test -n "$ac_subst_files"; then | |
1139 | cat <<\_ASBOX | |
1140 | ## ------------- ## | |
1141 | ## Output files. ## | |
1142 | ## ------------- ## | |
1143 | _ASBOX | |
1144 | echo | |
1145 | for ac_var in $ac_subst_files | |
1146 | do | |
1147 | eval ac_val=$`echo $ac_var` | |
1148 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1149 | done | sort | |
1150 | echo | |
1151 | fi | |
1152 | ||
1153 | if test -s confdefs.h; then | |
1154 | cat <<\_ASBOX | |
1155 | ## ----------- ## | |
1156 | ## confdefs.h. ## | |
1157 | ## ----------- ## | |
1158 | _ASBOX | |
1159 | echo | |
1160 | sed "/^$/d" confdefs.h | sort | |
1161 | echo | |
1162 | fi | |
1163 | test "$ac_signal" != 0 && | |
1164 | echo "$as_me: caught signal $ac_signal" | |
1165 | echo "$as_me: exit $exit_status" | |
1166 | } >&5 | |
1167 | rm -f core *.core && | |
1168 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1169 | exit $exit_status | |
1170 | ' 0 | |
1171 | for ac_signal in 1 2 13 15; do | |
1172 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1173 | done | |
1174 | ac_signal=0 | |
1175 | ||
1176 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1177 | rm -rf conftest* confdefs.h | |
1178 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1179 | echo >confdefs.h | |
1180 | ||
1181 | # Predefined preprocessor variables. | |
1182 | ||
1183 | cat >>confdefs.h <<_ACEOF | |
1184 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1185 | _ACEOF | |
1186 | ||
1187 | ||
1188 | cat >>confdefs.h <<_ACEOF | |
1189 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1190 | _ACEOF | |
1191 | ||
1192 | ||
1193 | cat >>confdefs.h <<_ACEOF | |
1194 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1195 | _ACEOF | |
1196 | ||
1197 | ||
1198 | cat >>confdefs.h <<_ACEOF | |
1199 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1200 | _ACEOF | |
1201 | ||
1202 | ||
1203 | cat >>confdefs.h <<_ACEOF | |
1204 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1205 | _ACEOF | |
1206 | ||
1207 | ||
1208 | # Let the site file select an alternate cache file if it wants to. | |
1209 | # Prefer explicitly selected file to automatically selected ones. | |
1210 | if test -z "$CONFIG_SITE"; then | |
1211 | if test "x$prefix" != xNONE; then | |
1212 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1213 | else | |
1214 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1215 | fi | |
1216 | fi | |
1217 | for ac_site_file in $CONFIG_SITE; do | |
1218 | if test -r "$ac_site_file"; then | |
1219 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1220 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1221 | sed 's/^/| /' "$ac_site_file" >&5 | |
1222 | . "$ac_site_file" | |
1223 | fi | |
1224 | done | |
1225 | ||
1226 | if test -r "$cache_file"; then | |
1227 | # Some versions of bash will fail to source /dev/null (special | |
1228 | # files actually), so we avoid doing that. | |
1229 | if test -f "$cache_file"; then | |
1230 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1231 | echo "$as_me: loading cache $cache_file" >&6;} | |
1232 | case $cache_file in | |
1233 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1234 | *) . ./$cache_file;; | |
1235 | esac | |
1236 | fi | |
1237 | else | |
1238 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1239 | echo "$as_me: creating cache $cache_file" >&6;} | |
1240 | >$cache_file | |
1241 | fi | |
1242 | ||
1243 | # Check that the precious variables saved in the cache have kept the same | |
1244 | # value. | |
1245 | ac_cache_corrupted=false | |
1246 | for ac_var in `(set) 2>&1 | | |
1247 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1248 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1249 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1250 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1251 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1252 | case $ac_old_set,$ac_new_set in | |
1253 | set,) | |
1254 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1255 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1256 | ac_cache_corrupted=: ;; | |
1257 | ,set) | |
1258 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1259 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1260 | ac_cache_corrupted=: ;; | |
1261 | ,);; | |
1262 | *) | |
1263 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1264 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1265 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1266 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1267 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1268 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1269 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1270 | ac_cache_corrupted=: | |
1271 | fi;; | |
1272 | esac | |
1273 | # Pass precious variables to config.status. | |
1274 | if test "$ac_new_set" = set; then | |
1275 | case $ac_new_val in | |
1276 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1277 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1278 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1279 | esac | |
1280 | case " $ac_configure_args " in | |
1281 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1282 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1283 | esac | |
1284 | fi | |
1285 | done | |
1286 | if $ac_cache_corrupted; then | |
1287 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1288 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1289 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1290 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1291 | { (exit 1); exit 1; }; } | |
1292 | fi | |
1293 | ||
1294 | ac_ext=c | |
1295 | ac_cpp='$CPP $CPPFLAGS' | |
1296 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1297 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1298 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1299 | ||
1300 | ||
1301 | ||
1302 | ||
1303 | ||
1304 | ||
1305 | ||
1306 | ||
1307 | ||
1308 | ||
1309 | ||
1310 | ||
1311 | ||
1312 | ||
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ac_aux_dir= | |
1321 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1322 | if test -f $ac_dir/install-sh; then | |
1323 | ac_aux_dir=$ac_dir | |
1324 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1325 | break | |
1326 | elif 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/shtool; then | |
1331 | ac_aux_dir=$ac_dir | |
1332 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1333 | break | |
1334 | fi | |
1335 | done | |
1336 | if test -z "$ac_aux_dir"; then | |
1337 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1338 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1339 | { (exit 1); exit 1; }; } | |
1340 | fi | |
1341 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1342 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1343 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1344 | ||
1345 | # Make sure we can run config.sub. | |
1346 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1347 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1348 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1349 | { (exit 1); exit 1; }; } | |
1350 | ||
1351 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1352 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1353 | if test "${ac_cv_build+set}" = set; then | |
1354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1355 | else | |
1356 | ac_cv_build_alias=$build_alias | |
1357 | test -z "$ac_cv_build_alias" && | |
1358 | ac_cv_build_alias=`$ac_config_guess` | |
1359 | test -z "$ac_cv_build_alias" && | |
1360 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1361 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1362 | { (exit 1); exit 1; }; } | |
1363 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1364 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1365 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1366 | { (exit 1); exit 1; }; } | |
1367 | ||
1368 | fi | |
1369 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1370 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1371 | build=$ac_cv_build | |
1372 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1373 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1374 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1375 | ||
1376 | ||
1377 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1378 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1379 | if test "${ac_cv_host+set}" = set; then | |
1380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1381 | else | |
1382 | ac_cv_host_alias=$host_alias | |
1383 | test -z "$ac_cv_host_alias" && | |
1384 | ac_cv_host_alias=$ac_cv_build_alias | |
1385 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1386 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1387 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1388 | { (exit 1); exit 1; }; } | |
1389 | ||
1390 | fi | |
1391 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1392 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1393 | host=$ac_cv_host | |
1394 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1395 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1396 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1397 | ||
1398 | ||
1399 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1400 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1401 | if test "${ac_cv_target+set}" = set; then | |
1402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1403 | else | |
1404 | ac_cv_target_alias=$target_alias | |
1405 | test "x$ac_cv_target_alias" = "x" && | |
1406 | ac_cv_target_alias=$ac_cv_host_alias | |
1407 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1408 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1409 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1410 | { (exit 1); exit 1; }; } | |
1411 | ||
1412 | fi | |
1413 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1414 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1415 | target=$ac_cv_target | |
1416 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1417 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1418 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1419 | ||
1420 | ||
1421 | # The aliases save the names the user supplied, while $host etc. | |
1422 | # will get canonicalized. | |
1423 | test -n "$target_alias" && | |
1424 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1425 | NONENONEs,x,x, && | |
1426 | program_prefix=${target_alias}- | |
1427 | ac_ext=c | |
1428 | ac_cpp='$CPP $CPPFLAGS' | |
1429 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1430 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1431 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1432 | if test -n "$ac_tool_prefix"; then | |
1433 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1434 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1435 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1436 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1437 | if test "${ac_cv_prog_CC+set}" = set; then | |
1438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1439 | else | |
1440 | if test -n "$CC"; then | |
1441 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1442 | else | |
1443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1444 | for as_dir in $PATH | |
1445 | do | |
1446 | IFS=$as_save_IFS | |
1447 | test -z "$as_dir" && as_dir=. | |
1448 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1449 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1450 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1451 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1452 | break 2 | |
1453 | fi | |
1454 | done | |
1455 | done | |
1456 | ||
1457 | fi | |
1458 | fi | |
1459 | CC=$ac_cv_prog_CC | |
1460 | if test -n "$CC"; then | |
1461 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1462 | echo "${ECHO_T}$CC" >&6 | |
1463 | else | |
1464 | echo "$as_me:$LINENO: result: no" >&5 | |
1465 | echo "${ECHO_T}no" >&6 | |
1466 | fi | |
1467 | ||
1468 | fi | |
1469 | if test -z "$ac_cv_prog_CC"; then | |
1470 | ac_ct_CC=$CC | |
1471 | # Extract the first word of "gcc", so it can be a program name with args. | |
1472 | set dummy gcc; ac_word=$2 | |
1473 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1474 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1475 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1477 | else | |
1478 | if test -n "$ac_ct_CC"; then | |
1479 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1480 | else | |
1481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1482 | for as_dir in $PATH | |
1483 | do | |
1484 | IFS=$as_save_IFS | |
1485 | test -z "$as_dir" && as_dir=. | |
1486 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1487 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1488 | ac_cv_prog_ac_ct_CC="gcc" | |
1489 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1490 | break 2 | |
1491 | fi | |
1492 | done | |
1493 | done | |
1494 | ||
1495 | fi | |
1496 | fi | |
1497 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1498 | if test -n "$ac_ct_CC"; then | |
1499 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1500 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1501 | else | |
1502 | echo "$as_me:$LINENO: result: no" >&5 | |
1503 | echo "${ECHO_T}no" >&6 | |
1504 | fi | |
1505 | ||
1506 | CC=$ac_ct_CC | |
1507 | else | |
1508 | CC="$ac_cv_prog_CC" | |
1509 | fi | |
1510 | ||
1511 | if test -z "$CC"; then | |
1512 | if test -n "$ac_tool_prefix"; then | |
1513 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1514 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1515 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1516 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1517 | if test "${ac_cv_prog_CC+set}" = set; then | |
1518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1519 | else | |
1520 | if test -n "$CC"; then | |
1521 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1522 | else | |
1523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1524 | for as_dir in $PATH | |
1525 | do | |
1526 | IFS=$as_save_IFS | |
1527 | test -z "$as_dir" && as_dir=. | |
1528 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1529 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1530 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1531 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1532 | break 2 | |
1533 | fi | |
1534 | done | |
1535 | done | |
1536 | ||
1537 | fi | |
1538 | fi | |
1539 | CC=$ac_cv_prog_CC | |
1540 | if test -n "$CC"; then | |
1541 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1542 | echo "${ECHO_T}$CC" >&6 | |
1543 | else | |
1544 | echo "$as_me:$LINENO: result: no" >&5 | |
1545 | echo "${ECHO_T}no" >&6 | |
1546 | fi | |
1547 | ||
1548 | fi | |
1549 | if test -z "$ac_cv_prog_CC"; then | |
1550 | ac_ct_CC=$CC | |
1551 | # Extract the first word of "cc", so it can be a program name with args. | |
1552 | set dummy cc; ac_word=$2 | |
1553 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1554 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1555 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1557 | else | |
1558 | if test -n "$ac_ct_CC"; then | |
1559 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1560 | else | |
1561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1562 | for as_dir in $PATH | |
1563 | do | |
1564 | IFS=$as_save_IFS | |
1565 | test -z "$as_dir" && as_dir=. | |
1566 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1567 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1568 | ac_cv_prog_ac_ct_CC="cc" | |
1569 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1570 | break 2 | |
1571 | fi | |
1572 | done | |
1573 | done | |
1574 | ||
1575 | fi | |
1576 | fi | |
1577 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1578 | if test -n "$ac_ct_CC"; then | |
1579 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1580 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1581 | else | |
1582 | echo "$as_me:$LINENO: result: no" >&5 | |
1583 | echo "${ECHO_T}no" >&6 | |
1584 | fi | |
1585 | ||
1586 | CC=$ac_ct_CC | |
1587 | else | |
1588 | CC="$ac_cv_prog_CC" | |
1589 | fi | |
1590 | ||
1591 | fi | |
1592 | if test -z "$CC"; then | |
1593 | # Extract the first word of "cc", so it can be a program name with args. | |
1594 | set dummy cc; ac_word=$2 | |
1595 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1596 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1597 | if test "${ac_cv_prog_CC+set}" = set; then | |
1598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1599 | else | |
1600 | if test -n "$CC"; then | |
1601 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1602 | else | |
1603 | ac_prog_rejected=no | |
1604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1605 | for as_dir in $PATH | |
1606 | do | |
1607 | IFS=$as_save_IFS | |
1608 | test -z "$as_dir" && as_dir=. | |
1609 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1610 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1611 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1612 | ac_prog_rejected=yes | |
1613 | continue | |
1614 | fi | |
1615 | ac_cv_prog_CC="cc" | |
1616 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1617 | break 2 | |
1618 | fi | |
1619 | done | |
1620 | done | |
1621 | ||
1622 | if test $ac_prog_rejected = yes; then | |
1623 | # We found a bogon in the path, so make sure we never use it. | |
1624 | set dummy $ac_cv_prog_CC | |
1625 | shift | |
1626 | if test $# != 0; then | |
1627 | # We chose a different compiler from the bogus one. | |
1628 | # However, it has the same basename, so the bogon will be chosen | |
1629 | # first if we set CC to just the basename; use the full file name. | |
1630 | shift | |
1631 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1632 | fi | |
1633 | fi | |
1634 | fi | |
1635 | fi | |
1636 | CC=$ac_cv_prog_CC | |
1637 | if test -n "$CC"; then | |
1638 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1639 | echo "${ECHO_T}$CC" >&6 | |
1640 | else | |
1641 | echo "$as_me:$LINENO: result: no" >&5 | |
1642 | echo "${ECHO_T}no" >&6 | |
1643 | fi | |
1644 | ||
1645 | fi | |
1646 | if test -z "$CC"; then | |
1647 | if test -n "$ac_tool_prefix"; then | |
1648 | for ac_prog in cl | |
1649 | do | |
1650 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1651 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1652 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1653 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1654 | if test "${ac_cv_prog_CC+set}" = set; then | |
1655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1656 | else | |
1657 | if test -n "$CC"; then | |
1658 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1659 | else | |
1660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1661 | for as_dir in $PATH | |
1662 | do | |
1663 | IFS=$as_save_IFS | |
1664 | test -z "$as_dir" && as_dir=. | |
1665 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1666 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1667 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1668 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1669 | break 2 | |
1670 | fi | |
1671 | done | |
1672 | done | |
1673 | ||
1674 | fi | |
1675 | fi | |
1676 | CC=$ac_cv_prog_CC | |
1677 | if test -n "$CC"; then | |
1678 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1679 | echo "${ECHO_T}$CC" >&6 | |
1680 | else | |
1681 | echo "$as_me:$LINENO: result: no" >&5 | |
1682 | echo "${ECHO_T}no" >&6 | |
1683 | fi | |
1684 | ||
1685 | test -n "$CC" && break | |
1686 | done | |
1687 | fi | |
1688 | if test -z "$CC"; then | |
1689 | ac_ct_CC=$CC | |
1690 | for ac_prog in cl | |
1691 | do | |
1692 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1693 | set dummy $ac_prog; ac_word=$2 | |
1694 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1695 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1696 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1698 | else | |
1699 | if test -n "$ac_ct_CC"; then | |
1700 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1701 | else | |
1702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1703 | for as_dir in $PATH | |
1704 | do | |
1705 | IFS=$as_save_IFS | |
1706 | test -z "$as_dir" && as_dir=. | |
1707 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1708 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1709 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1710 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1711 | break 2 | |
1712 | fi | |
1713 | done | |
1714 | done | |
1715 | ||
1716 | fi | |
1717 | fi | |
1718 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1719 | if test -n "$ac_ct_CC"; then | |
1720 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1721 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1722 | else | |
1723 | echo "$as_me:$LINENO: result: no" >&5 | |
1724 | echo "${ECHO_T}no" >&6 | |
1725 | fi | |
1726 | ||
1727 | test -n "$ac_ct_CC" && break | |
1728 | done | |
1729 | ||
1730 | CC=$ac_ct_CC | |
1731 | fi | |
1732 | ||
1733 | fi | |
1734 | ||
1735 | ||
1736 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1737 | See \`config.log' for more details." >&5 | |
1738 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1739 | See \`config.log' for more details." >&2;} | |
1740 | { (exit 1); exit 1; }; } | |
1741 | ||
1742 | # Provide some information about the compiler. | |
1743 | echo "$as_me:$LINENO:" \ | |
1744 | "checking for C compiler version" >&5 | |
1745 | ac_compiler=`set X $ac_compile; echo $2` | |
1746 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1747 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1748 | ac_status=$? | |
1749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1750 | (exit $ac_status); } | |
1751 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1752 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1753 | ac_status=$? | |
1754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1755 | (exit $ac_status); } | |
1756 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1757 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1758 | ac_status=$? | |
1759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1760 | (exit $ac_status); } | |
1761 | ||
1762 | cat >conftest.$ac_ext <<_ACEOF | |
1763 | /* confdefs.h. */ | |
1764 | _ACEOF | |
1765 | cat confdefs.h >>conftest.$ac_ext | |
1766 | cat >>conftest.$ac_ext <<_ACEOF | |
1767 | /* end confdefs.h. */ | |
1768 | ||
1769 | int | |
1770 | main () | |
1771 | { | |
1772 | ||
1773 | ; | |
1774 | return 0; | |
1775 | } | |
1776 | _ACEOF | |
1777 | ac_clean_files_save=$ac_clean_files | |
1778 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1779 | # Try to create an executable without -o first, disregard a.out. | |
1780 | # It will help us diagnose broken compilers, and finding out an intuition | |
1781 | # of exeext. | |
1782 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1783 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1784 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1785 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1786 | (eval $ac_link_default) 2>&5 | |
1787 | ac_status=$? | |
1788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1789 | (exit $ac_status); }; then | |
1790 | # Find the output, starting from the most likely. This scheme is | |
1791 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1792 | # resort. | |
1793 | ||
1794 | # Be careful to initialize this variable, since it used to be cached. | |
1795 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1796 | ac_cv_exeext= | |
1797 | # b.out is created by i960 compilers. | |
1798 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1799 | do | |
1800 | test -f "$ac_file" || continue | |
1801 | case $ac_file in | |
1802 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1803 | ;; | |
1804 | conftest.$ac_ext ) | |
1805 | # This is the source file. | |
1806 | ;; | |
1807 | [ab].out ) | |
1808 | # We found the default executable, but exeext='' is most | |
1809 | # certainly right. | |
1810 | break;; | |
1811 | *.* ) | |
1812 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1813 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1814 | # but it would be cool to find out if it's true. Does anybody | |
1815 | # maintain Libtool? --akim. | |
1816 | export ac_cv_exeext | |
1817 | break;; | |
1818 | * ) | |
1819 | break;; | |
1820 | esac | |
1821 | done | |
1822 | else | |
1823 | echo "$as_me: failed program was:" >&5 | |
1824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1825 | ||
1826 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1827 | See \`config.log' for more details." >&5 | |
1828 | echo "$as_me: error: C compiler cannot create executables | |
1829 | See \`config.log' for more details." >&2;} | |
1830 | { (exit 77); exit 77; }; } | |
1831 | fi | |
1832 | ||
1833 | ac_exeext=$ac_cv_exeext | |
1834 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1835 | echo "${ECHO_T}$ac_file" >&6 | |
1836 | ||
1837 | # Check the compiler produces executables we can run. If not, either | |
1838 | # the compiler is broken, or we cross compile. | |
1839 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1840 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1841 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1842 | # If not cross compiling, check that we can run a simple program. | |
1843 | if test "$cross_compiling" != yes; then | |
1844 | if { ac_try='./$ac_file' | |
1845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1846 | (eval $ac_try) 2>&5 | |
1847 | ac_status=$? | |
1848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1849 | (exit $ac_status); }; }; then | |
1850 | cross_compiling=no | |
1851 | else | |
1852 | if test "$cross_compiling" = maybe; then | |
1853 | cross_compiling=yes | |
1854 | else | |
1855 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1856 | If you meant to cross compile, use \`--host'. | |
1857 | See \`config.log' for more details." >&5 | |
1858 | echo "$as_me: error: cannot run C compiled programs. | |
1859 | If you meant to cross compile, use \`--host'. | |
1860 | See \`config.log' for more details." >&2;} | |
1861 | { (exit 1); exit 1; }; } | |
1862 | fi | |
1863 | fi | |
1864 | fi | |
1865 | echo "$as_me:$LINENO: result: yes" >&5 | |
1866 | echo "${ECHO_T}yes" >&6 | |
1867 | ||
1868 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1869 | ac_clean_files=$ac_clean_files_save | |
1870 | # Check the compiler produces executables we can run. If not, either | |
1871 | # the compiler is broken, or we cross compile. | |
1872 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1873 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1874 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1875 | echo "${ECHO_T}$cross_compiling" >&6 | |
1876 | ||
1877 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1878 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1879 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1880 | (eval $ac_link) 2>&5 | |
1881 | ac_status=$? | |
1882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1883 | (exit $ac_status); }; then | |
1884 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1885 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1886 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1887 | # `rm'. | |
1888 | for ac_file in conftest.exe conftest conftest.*; do | |
1889 | test -f "$ac_file" || continue | |
1890 | case $ac_file in | |
1891 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1892 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1893 | export ac_cv_exeext | |
1894 | break;; | |
1895 | * ) break;; | |
1896 | esac | |
1897 | done | |
1898 | else | |
1899 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
1900 | See \`config.log' for more details." >&5 | |
1901 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1902 | See \`config.log' for more details." >&2;} | |
1903 | { (exit 1); exit 1; }; } | |
1904 | fi | |
1905 | ||
1906 | rm -f conftest$ac_cv_exeext | |
1907 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1908 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1909 | ||
1910 | rm -f conftest.$ac_ext | |
1911 | EXEEXT=$ac_cv_exeext | |
1912 | ac_exeext=$EXEEXT | |
1913 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
1914 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1915 | if test "${ac_cv_objext+set}" = set; then | |
1916 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1917 | else | |
1918 | cat >conftest.$ac_ext <<_ACEOF | |
1919 | /* confdefs.h. */ | |
1920 | _ACEOF | |
1921 | cat confdefs.h >>conftest.$ac_ext | |
1922 | cat >>conftest.$ac_ext <<_ACEOF | |
1923 | /* end confdefs.h. */ | |
1924 | ||
1925 | int | |
1926 | main () | |
1927 | { | |
1928 | ||
1929 | ; | |
1930 | return 0; | |
1931 | } | |
1932 | _ACEOF | |
1933 | rm -f conftest.o conftest.obj | |
1934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1935 | (eval $ac_compile) 2>&5 | |
1936 | ac_status=$? | |
1937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1938 | (exit $ac_status); }; then | |
1939 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1940 | case $ac_file in | |
1941 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
1942 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1943 | break;; | |
1944 | esac | |
1945 | done | |
1946 | else | |
1947 | echo "$as_me: failed program was:" >&5 | |
1948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1949 | ||
1950 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1951 | See \`config.log' for more details." >&5 | |
1952 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1953 | See \`config.log' for more details." >&2;} | |
1954 | { (exit 1); exit 1; }; } | |
1955 | fi | |
1956 | ||
1957 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
1958 | fi | |
1959 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
1960 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1961 | OBJEXT=$ac_cv_objext | |
1962 | ac_objext=$OBJEXT | |
1963 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
1964 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1965 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1967 | else | |
1968 | cat >conftest.$ac_ext <<_ACEOF | |
1969 | /* confdefs.h. */ | |
1970 | _ACEOF | |
1971 | cat confdefs.h >>conftest.$ac_ext | |
1972 | cat >>conftest.$ac_ext <<_ACEOF | |
1973 | /* end confdefs.h. */ | |
1974 | ||
1975 | int | |
1976 | main () | |
1977 | { | |
1978 | #ifndef __GNUC__ | |
1979 | choke me | |
1980 | #endif | |
1981 | ||
1982 | ; | |
1983 | return 0; | |
1984 | } | |
1985 | _ACEOF | |
1986 | rm -f conftest.$ac_objext | |
1987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1988 | (eval $ac_compile) 2>conftest.er1 | |
1989 | ac_status=$? | |
1990 | grep -v '^ *+' conftest.er1 >conftest.err | |
1991 | rm -f conftest.er1 | |
1992 | cat conftest.err >&5 | |
1993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1994 | (exit $ac_status); } && | |
1995 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
1996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1997 | (eval $ac_try) 2>&5 | |
1998 | ac_status=$? | |
1999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2000 | (exit $ac_status); }; } && | |
2001 | { ac_try='test -s conftest.$ac_objext' | |
2002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2003 | (eval $ac_try) 2>&5 | |
2004 | ac_status=$? | |
2005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2006 | (exit $ac_status); }; }; then | |
2007 | ac_compiler_gnu=yes | |
2008 | else | |
2009 | echo "$as_me: failed program was:" >&5 | |
2010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2011 | ||
2012 | ac_compiler_gnu=no | |
2013 | fi | |
2014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2015 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2016 | ||
2017 | fi | |
2018 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2019 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2020 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2021 | ac_test_CFLAGS=${CFLAGS+set} | |
2022 | ac_save_CFLAGS=$CFLAGS | |
2023 | CFLAGS="-g" | |
2024 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2025 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2026 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2028 | else | |
2029 | cat >conftest.$ac_ext <<_ACEOF | |
2030 | /* confdefs.h. */ | |
2031 | _ACEOF | |
2032 | cat confdefs.h >>conftest.$ac_ext | |
2033 | cat >>conftest.$ac_ext <<_ACEOF | |
2034 | /* end confdefs.h. */ | |
2035 | ||
2036 | int | |
2037 | main () | |
2038 | { | |
2039 | ||
2040 | ; | |
2041 | return 0; | |
2042 | } | |
2043 | _ACEOF | |
2044 | rm -f conftest.$ac_objext | |
2045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2046 | (eval $ac_compile) 2>conftest.er1 | |
2047 | ac_status=$? | |
2048 | grep -v '^ *+' conftest.er1 >conftest.err | |
2049 | rm -f conftest.er1 | |
2050 | cat conftest.err >&5 | |
2051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2052 | (exit $ac_status); } && | |
2053 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2055 | (eval $ac_try) 2>&5 | |
2056 | ac_status=$? | |
2057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2058 | (exit $ac_status); }; } && | |
2059 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
2065 | ac_cv_prog_cc_g=yes | |
2066 | else | |
2067 | echo "$as_me: failed program was:" >&5 | |
2068 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2069 | ||
2070 | ac_cv_prog_cc_g=no | |
2071 | fi | |
2072 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2073 | fi | |
2074 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2075 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2076 | if test "$ac_test_CFLAGS" = set; then | |
2077 | CFLAGS=$ac_save_CFLAGS | |
2078 | elif test $ac_cv_prog_cc_g = yes; then | |
2079 | if test "$GCC" = yes; then | |
2080 | CFLAGS="-g -O2" | |
2081 | else | |
2082 | CFLAGS="-g" | |
2083 | fi | |
2084 | else | |
2085 | if test "$GCC" = yes; then | |
2086 | CFLAGS="-O2" | |
2087 | else | |
2088 | CFLAGS= | |
2089 | fi | |
2090 | fi | |
2091 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2092 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2093 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2095 | else | |
2096 | ac_cv_prog_cc_stdc=no | |
2097 | ac_save_CC=$CC | |
2098 | cat >conftest.$ac_ext <<_ACEOF | |
2099 | /* confdefs.h. */ | |
2100 | _ACEOF | |
2101 | cat confdefs.h >>conftest.$ac_ext | |
2102 | cat >>conftest.$ac_ext <<_ACEOF | |
2103 | /* end confdefs.h. */ | |
2104 | #include <stdarg.h> | |
2105 | #include <stdio.h> | |
2106 | #include <sys/types.h> | |
2107 | #include <sys/stat.h> | |
2108 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2109 | struct buf { int x; }; | |
2110 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2111 | static char *e (p, i) | |
2112 | char **p; | |
2113 | int i; | |
2114 | { | |
2115 | return p[i]; | |
2116 | } | |
2117 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2118 | { | |
2119 | char *s; | |
2120 | va_list v; | |
2121 | va_start (v,p); | |
2122 | s = g (p, va_arg (v,int)); | |
2123 | va_end (v); | |
2124 | return s; | |
2125 | } | |
2126 | ||
2127 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2128 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2129 | These don't provoke an error unfortunately, instead are silently treated | |
2130 | as 'x'. The following induces an error, until -std1 is added to get | |
2131 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2132 | array size at least. It's necessary to write '\x00'==0 to get something | |
2133 | that's true only with -std1. */ | |
2134 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2135 | ||
2136 | int test (int i, double x); | |
2137 | struct s1 {int (*f) (int a);}; | |
2138 | struct s2 {int (*f) (double a);}; | |
2139 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2140 | int argc; | |
2141 | char **argv; | |
2142 | int | |
2143 | main () | |
2144 | { | |
2145 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2146 | ; | |
2147 | return 0; | |
2148 | } | |
2149 | _ACEOF | |
2150 | # Don't try gcc -ansi; that turns off useful extensions and | |
2151 | # breaks some systems' header files. | |
2152 | # AIX -qlanglvl=ansi | |
2153 | # Ultrix and OSF/1 -std1 | |
2154 | # HP-UX 10.20 and later -Ae | |
2155 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2156 | # SVR4 -Xc -D__EXTENSIONS__ | |
2157 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2158 | do | |
2159 | CC="$ac_save_CC $ac_arg" | |
2160 | rm -f conftest.$ac_objext | |
2161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2162 | (eval $ac_compile) 2>conftest.er1 | |
2163 | ac_status=$? | |
2164 | grep -v '^ *+' conftest.er1 >conftest.err | |
2165 | rm -f conftest.er1 | |
2166 | cat conftest.err >&5 | |
2167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2168 | (exit $ac_status); } && | |
2169 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2171 | (eval $ac_try) 2>&5 | |
2172 | ac_status=$? | |
2173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2174 | (exit $ac_status); }; } && | |
2175 | { ac_try='test -s conftest.$ac_objext' | |
2176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2177 | (eval $ac_try) 2>&5 | |
2178 | ac_status=$? | |
2179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2180 | (exit $ac_status); }; }; then | |
2181 | ac_cv_prog_cc_stdc=$ac_arg | |
2182 | break | |
2183 | else | |
2184 | echo "$as_me: failed program was:" >&5 | |
2185 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2186 | ||
2187 | fi | |
2188 | rm -f conftest.err conftest.$ac_objext | |
2189 | done | |
2190 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2191 | CC=$ac_save_CC | |
2192 | ||
2193 | fi | |
2194 | ||
2195 | case "x$ac_cv_prog_cc_stdc" in | |
2196 | x|xno) | |
2197 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2198 | echo "${ECHO_T}none needed" >&6 ;; | |
2199 | *) | |
2200 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2201 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2202 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2203 | esac | |
2204 | ||
2205 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2206 | # in C++ we need to declare it. In case someone uses the same compiler | |
2207 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2208 | # the declaration of exit, since it's the most demanding environment. | |
2209 | cat >conftest.$ac_ext <<_ACEOF | |
2210 | #ifndef __cplusplus | |
2211 | choke me | |
2212 | #endif | |
2213 | _ACEOF | |
2214 | rm -f conftest.$ac_objext | |
2215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2216 | (eval $ac_compile) 2>conftest.er1 | |
2217 | ac_status=$? | |
2218 | grep -v '^ *+' conftest.er1 >conftest.err | |
2219 | rm -f conftest.er1 | |
2220 | cat conftest.err >&5 | |
2221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2222 | (exit $ac_status); } && | |
2223 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2225 | (eval $ac_try) 2>&5 | |
2226 | ac_status=$? | |
2227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2228 | (exit $ac_status); }; } && | |
2229 | { ac_try='test -s conftest.$ac_objext' | |
2230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2231 | (eval $ac_try) 2>&5 | |
2232 | ac_status=$? | |
2233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2234 | (exit $ac_status); }; }; then | |
2235 | for ac_declaration in \ | |
2236 | '' \ | |
2237 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2238 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2239 | 'extern "C" void exit (int) throw ();' \ | |
2240 | 'extern "C" void exit (int);' \ | |
2241 | 'void exit (int);' | |
2242 | do | |
2243 | cat >conftest.$ac_ext <<_ACEOF | |
2244 | /* confdefs.h. */ | |
2245 | _ACEOF | |
2246 | cat confdefs.h >>conftest.$ac_ext | |
2247 | cat >>conftest.$ac_ext <<_ACEOF | |
2248 | /* end confdefs.h. */ | |
2249 | $ac_declaration | |
2250 | #include <stdlib.h> | |
2251 | int | |
2252 | main () | |
2253 | { | |
2254 | exit (42); | |
2255 | ; | |
2256 | return 0; | |
2257 | } | |
2258 | _ACEOF | |
2259 | rm -f conftest.$ac_objext | |
2260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2261 | (eval $ac_compile) 2>conftest.er1 | |
2262 | ac_status=$? | |
2263 | grep -v '^ *+' conftest.er1 >conftest.err | |
2264 | rm -f conftest.er1 | |
2265 | cat conftest.err >&5 | |
2266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2267 | (exit $ac_status); } && | |
2268 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2270 | (eval $ac_try) 2>&5 | |
2271 | ac_status=$? | |
2272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2273 | (exit $ac_status); }; } && | |
2274 | { ac_try='test -s conftest.$ac_objext' | |
2275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2276 | (eval $ac_try) 2>&5 | |
2277 | ac_status=$? | |
2278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2279 | (exit $ac_status); }; }; then | |
2280 | : | |
2281 | else | |
2282 | echo "$as_me: failed program was:" >&5 | |
2283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2284 | ||
2285 | continue | |
2286 | fi | |
2287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2288 | cat >conftest.$ac_ext <<_ACEOF | |
2289 | /* confdefs.h. */ | |
2290 | _ACEOF | |
2291 | cat confdefs.h >>conftest.$ac_ext | |
2292 | cat >>conftest.$ac_ext <<_ACEOF | |
2293 | /* end confdefs.h. */ | |
2294 | $ac_declaration | |
2295 | int | |
2296 | main () | |
2297 | { | |
2298 | exit (42); | |
2299 | ; | |
2300 | return 0; | |
2301 | } | |
2302 | _ACEOF | |
2303 | rm -f conftest.$ac_objext | |
2304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2305 | (eval $ac_compile) 2>conftest.er1 | |
2306 | ac_status=$? | |
2307 | grep -v '^ *+' conftest.er1 >conftest.err | |
2308 | rm -f conftest.er1 | |
2309 | cat conftest.err >&5 | |
2310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2311 | (exit $ac_status); } && | |
2312 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2314 | (eval $ac_try) 2>&5 | |
2315 | ac_status=$? | |
2316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2317 | (exit $ac_status); }; } && | |
2318 | { ac_try='test -s conftest.$ac_objext' | |
2319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2320 | (eval $ac_try) 2>&5 | |
2321 | ac_status=$? | |
2322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2323 | (exit $ac_status); }; }; then | |
2324 | break | |
2325 | else | |
2326 | echo "$as_me: failed program was:" >&5 | |
2327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2328 | ||
2329 | fi | |
2330 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2331 | done | |
2332 | rm -f conftest* | |
2333 | if test -n "$ac_declaration"; then | |
2334 | echo '#ifdef __cplusplus' >>confdefs.h | |
2335 | echo $ac_declaration >>confdefs.h | |
2336 | echo '#endif' >>confdefs.h | |
2337 | fi | |
2338 | ||
2339 | else | |
2340 | echo "$as_me: failed program was:" >&5 | |
2341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2342 | ||
2343 | fi | |
2344 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2345 | ac_ext=c | |
2346 | ac_cpp='$CPP $CPPFLAGS' | |
2347 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2348 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2349 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2350 | ||
2351 | ||
2352 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 | |
2353 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
2354 | if test "${ac_cv_search_strerror+set}" = set; then | |
2355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2356 | else | |
2357 | ac_func_search_save_LIBS=$LIBS | |
2358 | ac_cv_search_strerror=no | |
2359 | cat >conftest.$ac_ext <<_ACEOF | |
2360 | /* confdefs.h. */ | |
2361 | _ACEOF | |
2362 | cat confdefs.h >>conftest.$ac_ext | |
2363 | cat >>conftest.$ac_ext <<_ACEOF | |
2364 | /* end confdefs.h. */ | |
2365 | ||
2366 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2367 | #ifdef __cplusplus | |
2368 | extern "C" | |
2369 | #endif | |
2370 | /* We use char because int might match the return type of a gcc2 | |
2371 | builtin and then its argument prototype would still apply. */ | |
2372 | char strerror (); | |
2373 | int | |
2374 | main () | |
2375 | { | |
2376 | strerror (); | |
2377 | ; | |
2378 | return 0; | |
2379 | } | |
2380 | _ACEOF | |
2381 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2382 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2383 | (eval $ac_link) 2>conftest.er1 | |
2384 | ac_status=$? | |
2385 | grep -v '^ *+' conftest.er1 >conftest.err | |
2386 | rm -f conftest.er1 | |
2387 | cat conftest.err >&5 | |
2388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2389 | (exit $ac_status); } && | |
2390 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2392 | (eval $ac_try) 2>&5 | |
2393 | ac_status=$? | |
2394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2395 | (exit $ac_status); }; } && | |
2396 | { ac_try='test -s conftest$ac_exeext' | |
2397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2398 | (eval $ac_try) 2>&5 | |
2399 | ac_status=$? | |
2400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2401 | (exit $ac_status); }; }; then | |
2402 | ac_cv_search_strerror="none required" | |
2403 | else | |
2404 | echo "$as_me: failed program was:" >&5 | |
2405 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2406 | ||
2407 | fi | |
2408 | rm -f conftest.err conftest.$ac_objext \ | |
2409 | conftest$ac_exeext conftest.$ac_ext | |
2410 | if test "$ac_cv_search_strerror" = no; then | |
2411 | for ac_lib in cposix; do | |
2412 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2413 | cat >conftest.$ac_ext <<_ACEOF | |
2414 | /* confdefs.h. */ | |
2415 | _ACEOF | |
2416 | cat confdefs.h >>conftest.$ac_ext | |
2417 | cat >>conftest.$ac_ext <<_ACEOF | |
2418 | /* end confdefs.h. */ | |
2419 | ||
2420 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2421 | #ifdef __cplusplus | |
2422 | extern "C" | |
2423 | #endif | |
2424 | /* We use char because int might match the return type of a gcc2 | |
2425 | builtin and then its argument prototype would still apply. */ | |
2426 | char strerror (); | |
2427 | int | |
2428 | main () | |
2429 | { | |
2430 | strerror (); | |
2431 | ; | |
2432 | return 0; | |
2433 | } | |
2434 | _ACEOF | |
2435 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2437 | (eval $ac_link) 2>conftest.er1 | |
2438 | ac_status=$? | |
2439 | grep -v '^ *+' conftest.er1 >conftest.err | |
2440 | rm -f conftest.er1 | |
2441 | cat conftest.err >&5 | |
2442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2443 | (exit $ac_status); } && | |
2444 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2446 | (eval $ac_try) 2>&5 | |
2447 | ac_status=$? | |
2448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2449 | (exit $ac_status); }; } && | |
2450 | { ac_try='test -s conftest$ac_exeext' | |
2451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2452 | (eval $ac_try) 2>&5 | |
2453 | ac_status=$? | |
2454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2455 | (exit $ac_status); }; }; then | |
2456 | ac_cv_search_strerror="-l$ac_lib" | |
2457 | break | |
2458 | else | |
2459 | echo "$as_me: failed program was:" >&5 | |
2460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2461 | ||
2462 | fi | |
2463 | rm -f conftest.err conftest.$ac_objext \ | |
2464 | conftest$ac_exeext conftest.$ac_ext | |
2465 | done | |
2466 | fi | |
2467 | LIBS=$ac_func_search_save_LIBS | |
2468 | fi | |
2469 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
2470 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2471 | if test "$ac_cv_search_strerror" != no; then | |
2472 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
2473 | ||
2474 | fi | |
2475 | ||
2476 | ||
2477 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` | |
2478 | am__api_version="1.8" | |
2479 | # Find a good install program. We prefer a C program (faster), | |
2480 | # so one script is as good as another. But avoid the broken or | |
2481 | # incompatible versions: | |
2482 | # SysV /etc/install, /usr/sbin/install | |
2483 | # SunOS /usr/etc/install | |
2484 | # IRIX /sbin/install | |
2485 | # AIX /bin/install | |
2486 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2487 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2488 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2489 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2490 | # OS/2's system install, which has a completely different semantic | |
2491 | # ./install, which can be erroneously created by make from ./install.sh. | |
2492 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2493 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
2494 | if test -z "$INSTALL"; then | |
2495 | if test "${ac_cv_path_install+set}" = set; then | |
2496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2497 | else | |
2498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2499 | for as_dir in $PATH | |
2500 | do | |
2501 | IFS=$as_save_IFS | |
2502 | test -z "$as_dir" && as_dir=. | |
2503 | # Account for people who put trailing slashes in PATH elements. | |
2504 | case $as_dir/ in | |
2505 | ./ | .// | /cC/* | \ | |
2506 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2507 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2508 | /usr/ucb/* ) ;; | |
2509 | *) | |
2510 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2511 | # Don't use installbsd from OSF since it installs stuff as root | |
2512 | # by default. | |
2513 | for ac_prog in ginstall scoinst install; do | |
2514 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2515 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2516 | if test $ac_prog = install && | |
2517 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2518 | # AIX install. It has an incompatible calling convention. | |
2519 | : | |
2520 | elif test $ac_prog = install && | |
2521 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2522 | # program-specific install script used by HP pwplus--don't use. | |
2523 | : | |
252b5132 | 2524 | else |
6bf9431b BE |
2525 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2526 | break 3 | |
252b5132 RH |
2527 | fi |
2528 | fi | |
2529 | done | |
6bf9431b BE |
2530 | done |
2531 | ;; | |
2532 | esac | |
2533 | done | |
2534 | ||
252b5132 RH |
2535 | |
2536 | fi | |
2537 | if test "${ac_cv_path_install+set}" = set; then | |
6bf9431b | 2538 | INSTALL=$ac_cv_path_install |
252b5132 RH |
2539 | else |
2540 | # As a last resort, use the slow shell script. We don't cache a | |
2541 | # path for INSTALL within a source directory, because that will | |
2542 | # break other packages using the cache if that directory is | |
2543 | # removed, or if the path is relative. | |
6bf9431b | 2544 | INSTALL=$ac_install_sh |
252b5132 RH |
2545 | fi |
2546 | fi | |
6bf9431b BE |
2547 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2548 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
2549 | |
2550 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2551 | # It thinks the first close brace ends the variable substitution. | |
2552 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2553 | ||
6bf9431b | 2554 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
2555 | |
2556 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2557 | ||
6bf9431b BE |
2558 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2559 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
252b5132 RH |
2560 | # Just in case |
2561 | sleep 1 | |
6bf9431b | 2562 | echo timestamp > conftest.file |
252b5132 RH |
2563 | # Do `set' in a subshell so we don't clobber the current shell's |
2564 | # arguments. Must try -L first in case configure is actually a | |
2565 | # symlink; some systems play weird games with the mod time of symlinks | |
2566 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2567 | # directory). | |
2568 | if ( | |
6bf9431b | 2569 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
252b5132 RH |
2570 | if test "$*" = "X"; then |
2571 | # -L didn't work. | |
6bf9431b | 2572 | set X `ls -t $srcdir/configure conftest.file` |
252b5132 | 2573 | fi |
6bf9431b BE |
2574 | rm -f conftest.file |
2575 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2576 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
2577 | |
2578 | # If neither matched, then we have a broken ls. This can happen | |
2579 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2580 | # broken ls alias from the environment. This has actually | |
2581 | # happened. Such a system could not be considered "sane". | |
6bf9431b BE |
2582 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2583 | alias in your environment" >&5 | |
2584 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2585 | alias in your environment" >&2;} | |
2586 | { (exit 1); exit 1; }; } | |
252b5132 RH |
2587 | fi |
2588 | ||
6bf9431b | 2589 | test "$2" = conftest.file |
252b5132 RH |
2590 | ) |
2591 | then | |
2592 | # Ok. | |
2593 | : | |
2594 | else | |
6bf9431b BE |
2595 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2596 | Check your system clock" >&5 | |
2597 | echo "$as_me: error: newly created file is older than distributed files! | |
2598 | Check your system clock" >&2;} | |
2599 | { (exit 1); exit 1; }; } | |
252b5132 | 2600 | fi |
6bf9431b BE |
2601 | echo "$as_me:$LINENO: result: yes" >&5 |
2602 | echo "${ECHO_T}yes" >&6 | |
252b5132 | 2603 | test "$program_prefix" != NONE && |
6bf9431b | 2604 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
252b5132 RH |
2605 | # Use a double $ so make ignores it. |
2606 | test "$program_suffix" != NONE && | |
6bf9431b BE |
2607 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
2608 | # Double any \ or $. echo might interpret backslashes. | |
2609 | # By default was `s,x,x', remove it if useless. | |
2610 | cat <<\_ACEOF >conftest.sed | |
2611 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2612 | _ACEOF | |
2613 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
2614 | rm conftest.sed | |
2615 | ||
2616 | # expand $ac_aux_dir to an absolute path | |
2617 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2618 | ||
2619 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2620 | # Use eval to expand $SHELL | |
2621 | if eval "$MISSING --run true"; then | |
2622 | am_missing_run="$MISSING --run " | |
2623 | else | |
2624 | am_missing_run= | |
2625 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2626 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2627 | fi | |
2628 | ||
2629 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
2630 | # Keeping the `.' argument allows $(mkdir_p) to be used without | |
2631 | # argument. Indeed, we sometimes output rules like | |
2632 | # $(mkdir_p) $(somedir) | |
2633 | # where $(somedir) is conditionally defined. | |
2634 | # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more | |
2635 | # expensive solution, as it forces Make to start a sub-shell.) | |
2636 | mkdir_p='mkdir -p -- .' | |
2637 | else | |
2638 | # On NextStep and OpenStep, the `mkdir' command does not | |
2639 | # recognize any option. It will interpret all options as | |
2640 | # directories to create, and then abort because `.' already | |
2641 | # exists. | |
2642 | for d in ./-p ./--version; | |
2643 | do | |
2644 | test -d $d && rmdir $d | |
2645 | done | |
2646 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
2647 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
2648 | mkdir_p='$(mkinstalldirs)' | |
2649 | else | |
2650 | mkdir_p='$(install_sh) -d' | |
2651 | fi | |
2652 | fi | |
252b5132 | 2653 | |
6bf9431b BE |
2654 | for ac_prog in gawk mawk nawk awk |
2655 | do | |
2656 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2657 | set dummy $ac_prog; ac_word=$2 | |
2658 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2659 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2660 | if test "${ac_cv_prog_AWK+set}" = set; then | |
2661 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2662 | else | |
2663 | if test -n "$AWK"; then | |
2664 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2665 | else | |
2666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2667 | for as_dir in $PATH | |
2668 | do | |
2669 | IFS=$as_save_IFS | |
2670 | test -z "$as_dir" && as_dir=. | |
2671 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2672 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2673 | ac_cv_prog_AWK="$ac_prog" | |
2674 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2675 | break 2 | |
2676 | fi | |
2677 | done | |
2678 | done | |
2679 | ||
2680 | fi | |
2681 | fi | |
2682 | AWK=$ac_cv_prog_AWK | |
2683 | if test -n "$AWK"; then | |
2684 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
2685 | echo "${ECHO_T}$AWK" >&6 | |
2686 | else | |
2687 | echo "$as_me:$LINENO: result: no" >&5 | |
2688 | echo "${ECHO_T}no" >&6 | |
2689 | fi | |
2690 | ||
2691 | test -n "$AWK" && break | |
2692 | done | |
252b5132 | 2693 | |
6bf9431b BE |
2694 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2695 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
2696 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
2697 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
2698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 2699 | else |
6bf9431b | 2700 | cat >conftest.make <<\_ACEOF |
252b5132 | 2701 | all: |
6bf9431b BE |
2702 | @echo 'ac_maketemp="$(MAKE)"' |
2703 | _ACEOF | |
252b5132 | 2704 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
6bf9431b | 2705 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
252b5132 RH |
2706 | if test -n "$ac_maketemp"; then |
2707 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2708 | else | |
2709 | eval ac_cv_prog_make_${ac_make}_set=no | |
2710 | fi | |
6bf9431b | 2711 | rm -f conftest.make |
252b5132 RH |
2712 | fi |
2713 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
6bf9431b BE |
2714 | echo "$as_me:$LINENO: result: yes" >&5 |
2715 | echo "${ECHO_T}yes" >&6 | |
252b5132 RH |
2716 | SET_MAKE= |
2717 | else | |
6bf9431b BE |
2718 | echo "$as_me:$LINENO: result: no" >&5 |
2719 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
2720 | SET_MAKE="MAKE=${MAKE-make}" |
2721 | fi | |
2722 | ||
6bf9431b BE |
2723 | rm -rf .tst 2>/dev/null |
2724 | mkdir .tst 2>/dev/null | |
2725 | if test -d .tst; then | |
2726 | am__leading_dot=. | |
2727 | else | |
2728 | am__leading_dot=_ | |
2729 | fi | |
2730 | rmdir .tst 2>/dev/null | |
2731 | ||
2732 | DEPDIR="${am__leading_dot}deps" | |
2733 | ||
2734 | ac_config_commands="$ac_config_commands depfiles" | |
2735 | ||
2736 | ||
2737 | am_make=${MAKE-make} | |
2738 | cat > confinc << 'END' | |
2739 | am__doit: | |
2740 | @echo done | |
2741 | .PHONY: am__doit | |
2742 | END | |
2743 | # If we don't find an include directive, just comment out the code. | |
2744 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2745 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2746 | am__include="#" | |
2747 | am__quote= | |
2748 | _am_result=none | |
2749 | # First try GNU make style include. | |
2750 | echo "include confinc" > confmf | |
2751 | # We grep out `Entering directory' and `Leaving directory' | |
2752 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2753 | # In particular we don't look at `^make:' because GNU make might | |
2754 | # be invoked under some other name (usually "gmake"), in which | |
2755 | # case it prints its new name instead of `make'. | |
2756 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2757 | am__include=include | |
2758 | am__quote= | |
2759 | _am_result=GNU | |
2760 | fi | |
2761 | # Now try BSD make style include. | |
2762 | if test "$am__include" = "#"; then | |
2763 | echo '.include "confinc"' > confmf | |
2764 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2765 | am__include=.include | |
2766 | am__quote="\"" | |
2767 | _am_result=BSD | |
2768 | fi | |
2769 | fi | |
2770 | ||
252b5132 | 2771 | |
6bf9431b BE |
2772 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
2773 | echo "${ECHO_T}$_am_result" >&6 | |
2774 | rm -f confinc confmf | |
252b5132 | 2775 | |
6bf9431b BE |
2776 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
2777 | if test "${enable_dependency_tracking+set}" = set; then | |
2778 | enableval="$enable_dependency_tracking" | |
252b5132 | 2779 | |
6bf9431b BE |
2780 | fi; |
2781 | if test "x$enable_dependency_tracking" != xno; then | |
2782 | am_depcomp="$ac_aux_dir/depcomp" | |
2783 | AMDEPBACKSLASH='\' | |
252b5132 | 2784 | fi |
6bf9431b BE |
2785 | |
2786 | ||
2787 | if test "x$enable_dependency_tracking" != xno; then | |
2788 | AMDEP_TRUE= | |
2789 | AMDEP_FALSE='#' | |
2790 | else | |
2791 | AMDEP_TRUE='#' | |
2792 | AMDEP_FALSE= | |
2793 | fi | |
2794 | ||
2795 | ||
2796 | ||
2797 | # test to see if srcdir already configured | |
2798 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
2799 | test -f $srcdir/config.status; then | |
2800 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
2801 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2802 | { (exit 1); exit 1; }; } | |
2803 | fi | |
2804 | ||
2805 | # test whether we have cygpath | |
2806 | if test -z "$CYGPATH_W"; then | |
2807 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2808 | CYGPATH_W='cygpath -w' | |
2809 | else | |
2810 | CYGPATH_W=echo | |
2811 | fi | |
2812 | fi | |
2813 | ||
2814 | ||
2815 | # Define the identity of the package. | |
2816 | PACKAGE=gprof | |
2817 | VERSION=${BFD_VERSION} | |
2818 | ||
2819 | ||
2820 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 2821 | #define PACKAGE "$PACKAGE" |
6bf9431b BE |
2822 | _ACEOF |
2823 | ||
252b5132 | 2824 | |
6bf9431b | 2825 | cat >>confdefs.h <<_ACEOF |
252b5132 | 2826 | #define VERSION "$VERSION" |
6bf9431b BE |
2827 | _ACEOF |
2828 | ||
2829 | # Some tools Automake needs. | |
2830 | ||
2831 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2832 | ||
2833 | ||
2834 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2835 | ||
2836 | ||
2837 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2838 | ||
2839 | ||
2840 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2841 | ||
2842 | ||
2843 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2844 | ||
2845 | ||
2846 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2847 | ||
2848 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
252b5132 | 2849 | |
6bf9431b BE |
2850 | # Installed binaries are usually stripped using `strip' when the user |
2851 | # run `make install-strip'. However `strip' might not be the right | |
2852 | # tool to use in cross-compilation environments, therefore Automake | |
2853 | # will honor the `STRIP' environment variable to overrule this program. | |
2854 | if test "$cross_compiling" != no; then | |
2855 | if test -n "$ac_tool_prefix"; then | |
2856 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2857 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2858 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2859 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2860 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2862 | else | |
2863 | if test -n "$STRIP"; then | |
2864 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2865 | else | |
2866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2867 | for as_dir in $PATH | |
2868 | do | |
2869 | IFS=$as_save_IFS | |
2870 | test -z "$as_dir" && as_dir=. | |
2871 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2872 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2873 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2874 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2875 | break 2 | |
2876 | fi | |
2877 | done | |
2878 | done | |
2879 | ||
2880 | fi | |
2881 | fi | |
2882 | STRIP=$ac_cv_prog_STRIP | |
2883 | if test -n "$STRIP"; then | |
2884 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2885 | echo "${ECHO_T}$STRIP" >&6 | |
2886 | else | |
2887 | echo "$as_me:$LINENO: result: no" >&5 | |
2888 | echo "${ECHO_T}no" >&6 | |
2889 | fi | |
252b5132 | 2890 | |
6bf9431b BE |
2891 | fi |
2892 | if test -z "$ac_cv_prog_STRIP"; then | |
2893 | ac_ct_STRIP=$STRIP | |
2894 | # Extract the first word of "strip", so it can be a program name with args. | |
2895 | set dummy strip; ac_word=$2 | |
2896 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2897 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2898 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2900 | else | |
2901 | if test -n "$ac_ct_STRIP"; then | |
2902 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2903 | else | |
2904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2905 | for as_dir in $PATH | |
2906 | do | |
2907 | IFS=$as_save_IFS | |
2908 | test -z "$as_dir" && as_dir=. | |
2909 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2910 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2911 | ac_cv_prog_ac_ct_STRIP="strip" | |
2912 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2913 | break 2 | |
2914 | fi | |
2915 | done | |
2916 | done | |
252b5132 | 2917 | |
6bf9431b BE |
2918 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
2919 | fi | |
2920 | fi | |
2921 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2922 | if test -n "$ac_ct_STRIP"; then | |
2923 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2924 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
252b5132 | 2925 | else |
6bf9431b BE |
2926 | echo "$as_me:$LINENO: result: no" >&5 |
2927 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
2928 | fi |
2929 | ||
6bf9431b | 2930 | STRIP=$ac_ct_STRIP |
252b5132 | 2931 | else |
6bf9431b | 2932 | STRIP="$ac_cv_prog_STRIP" |
252b5132 RH |
2933 | fi |
2934 | ||
6bf9431b BE |
2935 | fi |
2936 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
2937 | ||
2938 | # We need awk for the "check" target. The system "awk" is bad on | |
2939 | # some platforms. | |
2940 | ||
2941 | ||
2942 | depcc="$CC" am_compiler_list= | |
2943 | ||
2944 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
2945 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
2946 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
2947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2948 | else | |
2949 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
2950 | # We make a subdir and do the tests there. Otherwise we can end up | |
2951 | # making bogus files that we don't know about and never remove. For | |
2952 | # instance it was reported that on HP-UX the gcc test will end up | |
2953 | # making a dummy file named `D' -- because `-MD' means `put the output | |
2954 | # in D'. | |
2955 | mkdir conftest.dir | |
2956 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
2957 | # using a relative directory. | |
2958 | cp "$am_depcomp" conftest.dir | |
2959 | cd conftest.dir | |
2960 | # We will build objects and dependencies in a subdirectory because | |
2961 | # it helps to detect inapplicable dependency modes. For instance | |
2962 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
2963 | # side effect of compilation, but ICC will put the dependencies in | |
2964 | # the current directory while Tru64 will put them in the object | |
2965 | # directory. | |
2966 | mkdir sub | |
2967 | ||
2968 | am_cv_CC_dependencies_compiler_type=none | |
2969 | if test "$am_compiler_list" = ""; then | |
2970 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
2971 | fi | |
2972 | for depmode in $am_compiler_list; do | |
2973 | # Setup a source with many dependencies, because some compilers | |
2974 | # like to wrap large dependency lists on column 80 (with \), and | |
2975 | # we should not choose a depcomp mode which is confused by this. | |
2976 | # | |
2977 | # We need to recreate these files for each test, as the compiler may | |
2978 | # overwrite some of them when testing with obscure command lines. | |
2979 | # This happens at least with the AIX C compiler. | |
2980 | : > sub/conftest.c | |
2981 | for i in 1 2 3 4 5 6; do | |
2982 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
2983 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
2984 | # Solaris 8's {/usr,}/bin/sh. | |
2985 | touch sub/conftst$i.h | |
2986 | done | |
2987 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
2988 | ||
2989 | case $depmode in | |
2990 | nosideeffect) | |
2991 | # after this tag, mechanisms are not by side-effect, so they'll | |
2992 | # only be used when explicitly requested | |
2993 | if test "x$enable_dependency_tracking" = xyes; then | |
2994 | continue | |
2995 | else | |
2996 | break | |
2997 | fi | |
2998 | ;; | |
2999 | none) break ;; | |
3000 | esac | |
3001 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3002 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3003 | # handle `-M -o', and we need to detect this. | |
3004 | if depmode=$depmode \ | |
3005 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3006 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3007 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3008 | >/dev/null 2>conftest.err && | |
3009 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3010 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3011 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3012 | # icc doesn't choke on unknown options, it will just issue warnings | |
3013 | # or remarks (even with -Werror). So we grep stderr for any message | |
3014 | # that says an option was ignored or not supported. | |
3015 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3016 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3017 | # The diagnosis changed in icc 8.0: | |
3018 | # icc: Command line remark: option '-MP' not supported | |
3019 | if (grep 'ignoring option' conftest.err || | |
3020 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3021 | am_cv_CC_dependencies_compiler_type=$depmode | |
3022 | break | |
3023 | fi | |
3024 | fi | |
3025 | done | |
3026 | ||
3027 | cd .. | |
3028 | rm -rf conftest.dir | |
252b5132 | 3029 | else |
6bf9431b | 3030 | am_cv_CC_dependencies_compiler_type=none |
252b5132 RH |
3031 | fi |
3032 | ||
252b5132 | 3033 | fi |
6bf9431b BE |
3034 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3035 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3036 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3037 | ||
252b5132 | 3038 | |
6bf9431b BE |
3039 | |
3040 | if | |
3041 | test "x$enable_dependency_tracking" != xno \ | |
3042 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3043 | am__fastdepCC_TRUE= | |
3044 | am__fastdepCC_FALSE='#' | |
252b5132 | 3045 | else |
6bf9431b BE |
3046 | am__fastdepCC_TRUE='#' |
3047 | am__fastdepCC_FALSE= | |
252b5132 RH |
3048 | fi |
3049 | ||
3050 | ||
3051 | ||
6bf9431b | 3052 | |
252b5132 RH |
3053 | # Check whether --enable-shared or --disable-shared was given. |
3054 | if test "${enable_shared+set}" = set; then | |
3055 | enableval="$enable_shared" | |
3056 | p=${PACKAGE-default} | |
6be7c12c | 3057 | case $enableval in |
252b5132 RH |
3058 | yes) enable_shared=yes ;; |
3059 | no) enable_shared=no ;; | |
3060 | *) | |
3061 | enable_shared=no | |
3062 | # Look at the argument we got. We use all the common list separators. | |
3063 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3064 | for pkg in $enableval; do | |
3065 | if test "X$pkg" = "X$p"; then | |
3066 | enable_shared=yes | |
3067 | fi | |
3068 | done | |
3069 | IFS="$ac_save_ifs" | |
3070 | ;; | |
3071 | esac | |
3072 | else | |
3073 | enable_shared=yes | |
6bf9431b | 3074 | fi; |
252b5132 RH |
3075 | # Check whether --enable-static or --disable-static was given. |
3076 | if test "${enable_static+set}" = set; then | |
3077 | enableval="$enable_static" | |
3078 | p=${PACKAGE-default} | |
6be7c12c | 3079 | case $enableval in |
252b5132 RH |
3080 | yes) enable_static=yes ;; |
3081 | no) enable_static=no ;; | |
3082 | *) | |
3083 | enable_static=no | |
3084 | # Look at the argument we got. We use all the common list separators. | |
3085 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3086 | for pkg in $enableval; do | |
3087 | if test "X$pkg" = "X$p"; then | |
3088 | enable_static=yes | |
3089 | fi | |
3090 | done | |
3091 | IFS="$ac_save_ifs" | |
3092 | ;; | |
3093 | esac | |
3094 | else | |
3095 | enable_static=yes | |
6bf9431b | 3096 | fi; |
252b5132 RH |
3097 | # Check whether --enable-fast-install or --disable-fast-install was given. |
3098 | if test "${enable_fast_install+set}" = set; then | |
3099 | enableval="$enable_fast_install" | |
3100 | p=${PACKAGE-default} | |
6be7c12c | 3101 | case $enableval in |
252b5132 RH |
3102 | yes) enable_fast_install=yes ;; |
3103 | no) enable_fast_install=no ;; | |
3104 | *) | |
3105 | enable_fast_install=no | |
3106 | # Look at the argument we got. We use all the common list separators. | |
3107 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3108 | for pkg in $enableval; do | |
3109 | if test "X$pkg" = "X$p"; then | |
3110 | enable_fast_install=yes | |
3111 | fi | |
3112 | done | |
3113 | IFS="$ac_save_ifs" | |
3114 | ;; | |
3115 | esac | |
3116 | else | |
3117 | enable_fast_install=yes | |
6bf9431b | 3118 | fi; |
093872ec | 3119 | |
252b5132 RH |
3120 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3121 | if test "${with_gnu_ld+set}" = set; then | |
3122 | withval="$with_gnu_ld" | |
3123 | test "$withval" = no || with_gnu_ld=yes | |
3124 | else | |
3125 | with_gnu_ld=no | |
6bf9431b | 3126 | fi; |
252b5132 | 3127 | ac_prog=ld |
6be7c12c | 3128 | if test "$GCC" = yes; then |
252b5132 | 3129 | # Check if gcc -print-prog-name=ld gives a path. |
6bf9431b BE |
3130 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
3131 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
ac48eca1 AO |
3132 | case $host in |
3133 | *-*-mingw*) | |
3134 | # gcc leaves a trailing carriage return which upsets mingw | |
3135 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3136 | *) | |
3137 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3138 | esac | |
6be7c12c | 3139 | case $ac_prog in |
252b5132 | 3140 | # Accept absolute paths. |
5af11cab | 3141 | [\\/]* | [A-Za-z]:[\\/]*) |
252b5132 RH |
3142 | re_direlt='/[^/][^/]*/\.\./' |
3143 | # Canonicalize the path of ld | |
3144 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
3145 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3146 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
3147 | done | |
3148 | test -z "$LD" && LD="$ac_prog" | |
3149 | ;; | |
3150 | "") | |
3151 | # If it fails, then pretend we aren't using GCC. | |
3152 | ac_prog=ld | |
3153 | ;; | |
3154 | *) | |
3155 | # If it is relative, then search for the first ld in PATH. | |
3156 | with_gnu_ld=unknown | |
3157 | ;; | |
3158 | esac | |
3159 | elif test "$with_gnu_ld" = yes; then | |
6bf9431b BE |
3160 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
3161 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
252b5132 | 3162 | else |
6bf9431b BE |
3163 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
3164 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
252b5132 | 3165 | fi |
6bf9431b BE |
3166 | if test "${lt_cv_path_LD+set}" = set; then |
3167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3168 | else |
3169 | if test -z "$LD"; then | |
5af11cab | 3170 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
252b5132 RH |
3171 | for ac_dir in $PATH; do |
3172 | test -z "$ac_dir" && ac_dir=. | |
5af11cab | 3173 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
6be7c12c | 3174 | lt_cv_path_LD="$ac_dir/$ac_prog" |
252b5132 RH |
3175 | # Check to see if the program is GNU ld. I'd rather use --version, |
3176 | # but apparently some GNU ld's only accept -v. | |
3177 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
6be7c12c | 3178 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
252b5132 RH |
3179 | test "$with_gnu_ld" != no && break |
3180 | else | |
3181 | test "$with_gnu_ld" != yes && break | |
3182 | fi | |
3183 | fi | |
3184 | done | |
3185 | IFS="$ac_save_ifs" | |
3186 | else | |
6be7c12c | 3187 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
252b5132 RH |
3188 | fi |
3189 | fi | |
3190 | ||
6be7c12c | 3191 | LD="$lt_cv_path_LD" |
252b5132 | 3192 | if test -n "$LD"; then |
6bf9431b BE |
3193 | echo "$as_me:$LINENO: result: $LD" >&5 |
3194 | echo "${ECHO_T}$LD" >&6 | |
252b5132 | 3195 | else |
6bf9431b BE |
3196 | echo "$as_me:$LINENO: result: no" >&5 |
3197 | echo "${ECHO_T}no" >&6 | |
252b5132 | 3198 | fi |
6bf9431b BE |
3199 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
3200 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3201 | { (exit 1); exit 1; }; } | |
3202 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3203 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3204 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3206 | else |
3207 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3208 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
6be7c12c | 3209 | lt_cv_prog_gnu_ld=yes |
252b5132 | 3210 | else |
6be7c12c | 3211 | lt_cv_prog_gnu_ld=no |
252b5132 RH |
3212 | fi |
3213 | fi | |
6bf9431b BE |
3214 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
3215 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
6be7c12c | 3216 | with_gnu_ld=$lt_cv_prog_gnu_ld |
252b5132 RH |
3217 | |
3218 | ||
6bf9431b BE |
3219 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
3220 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
3221 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
3222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3223 | else |
3224 | lt_cv_ld_reload_flag='-r' | |
3225 | fi | |
6bf9431b BE |
3226 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
3227 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
ac48eca1 AO |
3228 | reload_flag=$lt_cv_ld_reload_flag |
3229 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
3230 | ||
6bf9431b BE |
3231 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
3232 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
3233 | if test "${lt_cv_path_NM+set}" = set; then | |
3234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3235 | else |
3236 | if test -n "$NM"; then | |
3237 | # Let the user override the test. | |
6be7c12c | 3238 | lt_cv_path_NM="$NM" |
252b5132 | 3239 | else |
5af11cab | 3240 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
252b5132 RH |
3241 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
3242 | test -z "$ac_dir" && ac_dir=. | |
ac48eca1 AO |
3243 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
3244 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
252b5132 RH |
3245 | # Check to see if the nm accepts a BSD-compat flag. |
3246 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3247 | # nm: unknown option "B" ignored | |
17a94bb6 AO |
3248 | # Tru64's nm complains that /dev/null is an invalid object file |
3249 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
6be7c12c | 3250 | lt_cv_path_NM="$tmp_nm -B" |
252b5132 | 3251 | break |
ac48eca1 | 3252 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
6be7c12c | 3253 | lt_cv_path_NM="$tmp_nm -p" |
252b5132 RH |
3254 | break |
3255 | else | |
6be7c12c | 3256 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
252b5132 RH |
3257 | continue # so that we can try to find one that supports BSD flags |
3258 | fi | |
3259 | fi | |
3260 | done | |
3261 | IFS="$ac_save_ifs" | |
6be7c12c | 3262 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
252b5132 RH |
3263 | fi |
3264 | fi | |
3265 | ||
6be7c12c | 3266 | NM="$lt_cv_path_NM" |
6bf9431b BE |
3267 | echo "$as_me:$LINENO: result: $NM" >&5 |
3268 | echo "${ECHO_T}$NM" >&6 | |
252b5132 | 3269 | |
6bf9431b BE |
3270 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3271 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3272 | LN_S=$as_ln_s | |
3273 | if test "$LN_S" = "ln -s"; then | |
3274 | echo "$as_me:$LINENO: result: yes" >&5 | |
3275 | echo "${ECHO_T}yes" >&6 | |
252b5132 | 3276 | else |
6bf9431b BE |
3277 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3278 | echo "${ECHO_T}no, using $LN_S" >&6 | |
252b5132 RH |
3279 | fi |
3280 | ||
6bf9431b BE |
3281 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 |
3282 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 | |
3283 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3285 | else |
d64552c5 | 3286 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
ac48eca1 AO |
3287 | lt_cv_file_magic_test_file= |
3288 | lt_cv_deplibs_check_method='unknown' | |
3289 | # Need to set the preceding variable on all platforms that support | |
3290 | # interlibrary dependencies. | |
3291 | # 'none' -- dependencies not supported. | |
3292 | # `unknown' -- same as none, but documents that we really don't know. | |
3293 | # 'pass_all' -- all dependencies passed with no checks. | |
3294 | # 'test_compile' -- check by making test program. | |
3295 | # 'file_magic [regex]' -- check by looking for files in library path | |
3296 | # which responds to the $file_magic_cmd with a given egrep regex. | |
3297 | # If you have `file' or equivalent on your system and you're not sure | |
3298 | # whether `pass_all' will *always* work, you probably want this one. | |
3299 | ||
6be7c12c AO |
3300 | case $host_os in |
3301 | aix*) | |
ac48eca1 AO |
3302 | lt_cv_deplibs_check_method=pass_all |
3303 | ;; | |
3304 | ||
3305 | beos*) | |
3306 | lt_cv_deplibs_check_method=pass_all | |
3307 | ;; | |
3308 | ||
3309 | bsdi4*) | |
6be7c12c AO |
3310 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
3311 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
ac48eca1 AO |
3312 | lt_cv_file_magic_test_file=/shlib/libc.so |
3313 | ;; | |
3314 | ||
d64552c5 | 3315 | cygwin* | mingw* |pw32*) |
ac48eca1 | 3316 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
d64552c5 | 3317 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
ac48eca1 AO |
3318 | ;; |
3319 | ||
6be7c12c AO |
3320 | darwin* | rhapsody*) |
3321 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
3322 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3323 | case "$host_os" in | |
3324 | rhapsody* | darwin1.012) | |
3325 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
3326 | ;; | |
3327 | *) # Darwin 1.3 on | |
3328 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
3329 | ;; | |
3330 | esac | |
3331 | ;; | |
3332 | ||
ac48eca1 AO |
3333 | freebsd* ) |
3334 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
6be7c12c | 3335 | case $host_cpu in |
ac48eca1 | 3336 | i*86 ) |
17a94bb6 AO |
3337 | # Not sure whether the presence of OpenBSD here was a mistake. |
3338 | # Let's accept both of them until this is cleared up. | |
6be7c12c AO |
3339 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
3340 | lt_cv_file_magic_cmd=/usr/bin/file | |
ac48eca1 AO |
3341 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3342 | ;; | |
3343 | esac | |
3344 | else | |
3345 | lt_cv_deplibs_check_method=pass_all | |
3346 | fi | |
3347 | ;; | |
3348 | ||
3349 | gnu*) | |
3350 | lt_cv_deplibs_check_method=pass_all | |
3351 | ;; | |
3352 | ||
6be7c12c | 3353 | hpux10.20*|hpux11*) |
4867be41 DJ |
3354 | case $host_cpu in |
3355 | hppa*) | |
3356 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3357 | lt_cv_file_magic_cmd=/usr/bin/file | |
3358 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3359 | ;; | |
3360 | ia64*) | |
3361 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3362 | lt_cv_file_magic_cmd=/usr/bin/file | |
3363 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3364 | ;; | |
3365 | esac | |
ac48eca1 AO |
3366 | ;; |
3367 | ||
3368 | irix5* | irix6*) | |
6be7c12c | 3369 | case $host_os in |
ac48eca1 AO |
3370 | irix5*) |
3371 | # this will be overridden with pass_all, but let us keep it just in case | |
3372 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
3373 | ;; | |
3374 | *) | |
6be7c12c | 3375 | case $LD in |
ac48eca1 AO |
3376 | *-32|*"-32 ") libmagic=32-bit;; |
3377 | *-n32|*"-n32 ") libmagic=N32;; | |
3378 | *-64|*"-64 ") libmagic=64-bit;; | |
3379 | *) libmagic=never-match;; | |
3380 | esac | |
3381 | # this will be overridden with pass_all, but let us keep it just in case | |
6be7c12c AO |
3382 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
3383 | ;; | |
ac48eca1 AO |
3384 | esac |
3385 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
3386 | lt_cv_deplibs_check_method=pass_all | |
3387 | ;; | |
3388 | ||
3389 | # This must be Linux ELF. | |
17a94bb6 | 3390 | linux-gnu*) |
6be7c12c | 3391 | case $host_cpu in |
093872ec | 3392 | alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* ) |
ac48eca1 AO |
3393 | lt_cv_deplibs_check_method=pass_all ;; |
3394 | *) | |
3395 | # glibc up to 2.1.1 does not perform some relocations on ARM | |
6be7c12c AO |
3396 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
3397 | esac | |
ac48eca1 AO |
3398 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
3399 | ;; | |
3400 | ||
3401 | netbsd*) | |
6be7c12c AO |
3402 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3403 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | |
ac48eca1 | 3404 | else |
6be7c12c | 3405 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
ac48eca1 AO |
3406 | fi |
3407 | ;; | |
3408 | ||
6be7c12c AO |
3409 | newsos6) |
3410 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3411 | lt_cv_file_magic_cmd=/usr/bin/file | |
3412 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3413 | ;; | |
3414 | ||
ac48eca1 AO |
3415 | osf3* | osf4* | osf5*) |
3416 | # this will be overridden with pass_all, but let us keep it just in case | |
3417 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
3418 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3419 | lt_cv_deplibs_check_method=pass_all | |
3420 | ;; | |
3421 | ||
3422 | sco3.2v5*) | |
3423 | lt_cv_deplibs_check_method=pass_all | |
3424 | ;; | |
3425 | ||
3426 | solaris*) | |
3427 | lt_cv_deplibs_check_method=pass_all | |
3428 | lt_cv_file_magic_test_file=/lib/libc.so | |
3429 | ;; | |
3430 | ||
6be7c12c AO |
3431 | sysv5uw[78]* | sysv4*uw2*) |
3432 | lt_cv_deplibs_check_method=pass_all | |
3433 | ;; | |
3434 | ||
ac48eca1 | 3435 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
6be7c12c | 3436 | case $host_vendor in |
ac48eca1 AO |
3437 | ncr) |
3438 | lt_cv_deplibs_check_method=pass_all | |
3439 | ;; | |
3440 | motorola) | |
6be7c12c AO |
3441 | 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]' |
3442 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
ac48eca1 AO |
3443 | ;; |
3444 | esac | |
3445 | ;; | |
3446 | esac | |
3447 | ||
3448 | fi | |
6bf9431b BE |
3449 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
3450 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
ac48eca1 AO |
3451 | file_magic_cmd=$lt_cv_file_magic_cmd |
3452 | deplibs_check_method=$lt_cv_deplibs_check_method | |
3453 | ||
ac48eca1 | 3454 | |
ac48eca1 | 3455 | |
ac48eca1 AO |
3456 | |
3457 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
3458 | ||
3459 | # Only perform the check for file, if the check method requires it | |
6be7c12c | 3460 | case $deplibs_check_method in |
ac48eca1 | 3461 | file_magic*) |
d64552c5 | 3462 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
6bf9431b BE |
3463 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
3464 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
3465 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3467 | else |
6be7c12c | 3468 | case $MAGIC_CMD in |
ac48eca1 | 3469 | /*) |
d64552c5 | 3470 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
ac48eca1 AO |
3471 | ;; |
3472 | ?:/*) | |
d64552c5 | 3473 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
ac48eca1 AO |
3474 | ;; |
3475 | *) | |
d64552c5 | 3476 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
3477 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3478 | ac_dummy="/usr/bin:$PATH" | |
3479 | for ac_dir in $ac_dummy; do | |
3480 | test -z "$ac_dir" && ac_dir=. | |
3481 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
d64552c5 | 3482 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
ac48eca1 | 3483 | if test -n "$file_magic_test_file"; then |
6be7c12c | 3484 | case $deplibs_check_method in |
ac48eca1 AO |
3485 | "file_magic "*) |
3486 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 3487 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
3488 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
3489 | egrep "$file_magic_regex" > /dev/null; then | |
3490 | : | |
3491 | else | |
3492 | cat <<EOF 1>&2 | |
3493 | ||
3494 | *** Warning: the command libtool uses to detect shared libraries, | |
3495 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3496 | *** The result is that libtool may fail to recognize shared libraries | |
3497 | *** as such. This will affect the creation of libtool libraries that | |
3498 | *** depend on shared libraries, but programs linked with such libtool | |
3499 | *** libraries will work regardless of this problem. Nevertheless, you | |
3500 | *** may want to report the problem to your system manager and/or to | |
3501 | *** bug-libtool@gnu.org | |
3502 | ||
3503 | EOF | |
3504 | fi ;; | |
3505 | esac | |
3506 | fi | |
3507 | break | |
3508 | fi | |
3509 | done | |
3510 | IFS="$ac_save_ifs" | |
d64552c5 | 3511 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
3512 | ;; |
3513 | esac | |
3514 | fi | |
3515 | ||
d64552c5 AO |
3516 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3517 | if test -n "$MAGIC_CMD"; then | |
6bf9431b BE |
3518 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
3519 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
ac48eca1 | 3520 | else |
6bf9431b BE |
3521 | echo "$as_me:$LINENO: result: no" >&5 |
3522 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3523 | fi |
3524 | ||
d64552c5 | 3525 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
ac48eca1 | 3526 | if test -n "$ac_tool_prefix"; then |
6bf9431b BE |
3527 | echo "$as_me:$LINENO: checking for file" >&5 |
3528 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
3529 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3530 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3531 | else |
6be7c12c | 3532 | case $MAGIC_CMD in |
ac48eca1 | 3533 | /*) |
d64552c5 | 3534 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
ac48eca1 AO |
3535 | ;; |
3536 | ?:/*) | |
d64552c5 | 3537 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
ac48eca1 AO |
3538 | ;; |
3539 | *) | |
d64552c5 | 3540 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
3541 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3542 | ac_dummy="/usr/bin:$PATH" | |
3543 | for ac_dir in $ac_dummy; do | |
3544 | test -z "$ac_dir" && ac_dir=. | |
3545 | if test -f $ac_dir/file; then | |
d64552c5 | 3546 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
ac48eca1 | 3547 | if test -n "$file_magic_test_file"; then |
6be7c12c | 3548 | case $deplibs_check_method in |
ac48eca1 AO |
3549 | "file_magic "*) |
3550 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 3551 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
3552 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
3553 | egrep "$file_magic_regex" > /dev/null; then | |
3554 | : | |
3555 | else | |
3556 | cat <<EOF 1>&2 | |
3557 | ||
3558 | *** Warning: the command libtool uses to detect shared libraries, | |
3559 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3560 | *** The result is that libtool may fail to recognize shared libraries | |
3561 | *** as such. This will affect the creation of libtool libraries that | |
3562 | *** depend on shared libraries, but programs linked with such libtool | |
3563 | *** libraries will work regardless of this problem. Nevertheless, you | |
3564 | *** may want to report the problem to your system manager and/or to | |
3565 | *** bug-libtool@gnu.org | |
3566 | ||
3567 | EOF | |
3568 | fi ;; | |
3569 | esac | |
3570 | fi | |
3571 | break | |
3572 | fi | |
3573 | done | |
3574 | IFS="$ac_save_ifs" | |
d64552c5 | 3575 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
3576 | ;; |
3577 | esac | |
3578 | fi | |
3579 | ||
d64552c5 AO |
3580 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3581 | if test -n "$MAGIC_CMD"; then | |
6bf9431b BE |
3582 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
3583 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
ac48eca1 | 3584 | else |
6bf9431b BE |
3585 | echo "$as_me:$LINENO: result: no" >&5 |
3586 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3587 | fi |
3588 | ||
3589 | else | |
d64552c5 | 3590 | MAGIC_CMD=: |
ac48eca1 AO |
3591 | fi |
3592 | fi | |
252b5132 | 3593 | |
ac48eca1 AO |
3594 | fi |
3595 | ;; | |
5af11cab | 3596 | esac |
252b5132 | 3597 | |
6bf9431b BE |
3598 | if test -n "$ac_tool_prefix"; then |
3599 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
ac48eca1 | 3600 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
6bf9431b BE |
3601 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3602 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3603 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3605 | else |
3606 | if test -n "$RANLIB"; then | |
3607 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3608 | else | |
6bf9431b BE |
3609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3610 | for as_dir in $PATH | |
3611 | do | |
3612 | IFS=$as_save_IFS | |
3613 | test -z "$as_dir" && as_dir=. | |
3614 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3615 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3616 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3617 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3618 | break 2 | |
3619 | fi | |
3620 | done | |
3621 | done | |
3622 | ||
ac48eca1 AO |
3623 | fi |
3624 | fi | |
6bf9431b | 3625 | RANLIB=$ac_cv_prog_RANLIB |
ac48eca1 | 3626 | if test -n "$RANLIB"; then |
6bf9431b BE |
3627 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3628 | echo "${ECHO_T}$RANLIB" >&6 | |
ac48eca1 | 3629 | else |
6bf9431b BE |
3630 | echo "$as_me:$LINENO: result: no" >&5 |
3631 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3632 | fi |
3633 | ||
6bf9431b | 3634 | fi |
ac48eca1 | 3635 | if test -z "$ac_cv_prog_RANLIB"; then |
6bf9431b | 3636 | ac_ct_RANLIB=$RANLIB |
ac48eca1 AO |
3637 | # Extract the first word of "ranlib", so it can be a program name with args. |
3638 | set dummy ranlib; ac_word=$2 | |
6bf9431b BE |
3639 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3640 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3641 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3643 | else |
6bf9431b BE |
3644 | if test -n "$ac_ct_RANLIB"; then |
3645 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
ac48eca1 | 3646 | else |
6bf9431b BE |
3647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3648 | for as_dir in $PATH | |
3649 | do | |
3650 | IFS=$as_save_IFS | |
3651 | test -z "$as_dir" && as_dir=. | |
3652 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3653 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3654 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3655 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3656 | break 2 | |
3657 | fi | |
3658 | done | |
3659 | done | |
3660 | ||
3661 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
ac48eca1 AO |
3662 | fi |
3663 | fi | |
6bf9431b BE |
3664 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3665 | if test -n "$ac_ct_RANLIB"; then | |
3666 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3667 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
ac48eca1 | 3668 | else |
6bf9431b BE |
3669 | echo "$as_me:$LINENO: result: no" >&5 |
3670 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3671 | fi |
3672 | ||
6bf9431b | 3673 | RANLIB=$ac_ct_RANLIB |
ac48eca1 | 3674 | else |
6bf9431b | 3675 | RANLIB="$ac_cv_prog_RANLIB" |
ac48eca1 AO |
3676 | fi |
3677 | ||
6bf9431b BE |
3678 | if test -n "$ac_tool_prefix"; then |
3679 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
ac48eca1 | 3680 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
6bf9431b BE |
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_STRIP+set}" = set; then | |
3684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3685 | else |
3686 | if test -n "$STRIP"; then | |
3687 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3688 | else | |
6bf9431b BE |
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_STRIP="${ac_tool_prefix}strip" | |
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 | |
6bf9431b | 3705 | STRIP=$ac_cv_prog_STRIP |
ac48eca1 | 3706 | if test -n "$STRIP"; then |
6bf9431b BE |
3707 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
3708 | echo "${ECHO_T}$STRIP" >&6 | |
ac48eca1 | 3709 | else |
6bf9431b BE |
3710 | echo "$as_me:$LINENO: result: no" >&5 |
3711 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3712 | fi |
3713 | ||
6bf9431b | 3714 | fi |
ac48eca1 | 3715 | if test -z "$ac_cv_prog_STRIP"; then |
6bf9431b | 3716 | ac_ct_STRIP=$STRIP |
ac48eca1 AO |
3717 | # Extract the first word of "strip", so it can be a program name with args. |
3718 | set dummy strip; ac_word=$2 | |
6bf9431b BE |
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_STRIP+set}" = set; then | |
3722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3723 | else |
6bf9431b BE |
3724 | if test -n "$ac_ct_STRIP"; then |
3725 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
ac48eca1 | 3726 | else |
6bf9431b BE |
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_STRIP="strip" | |
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_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
ac48eca1 AO |
3742 | fi |
3743 | fi | |
6bf9431b BE |
3744 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3745 | if test -n "$ac_ct_STRIP"; then | |
3746 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
3747 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
ac48eca1 | 3748 | else |
6bf9431b BE |
3749 | echo "$as_me:$LINENO: result: no" >&5 |
3750 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3751 | fi |
3752 | ||
6bf9431b | 3753 | STRIP=$ac_ct_STRIP |
ac48eca1 | 3754 | else |
6bf9431b | 3755 | STRIP="$ac_cv_prog_STRIP" |
ac48eca1 AO |
3756 | fi |
3757 | ||
3758 | ||
252b5132 RH |
3759 | # Check for any special flags to pass to ltconfig. |
3760 | libtool_flags="--cache-file=$cache_file" | |
3761 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
3762 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
3763 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
6be7c12c AO |
3764 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" |
3765 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
252b5132 | 3766 | |
5af11cab AM |
3767 | |
3768 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
3769 | if test "${enable_libtool_lock+set}" = set; then | |
3770 | enableval="$enable_libtool_lock" | |
5af11cab | 3771 | |
6bf9431b | 3772 | fi; |
5af11cab AM |
3773 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
3774 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
3775 | ||
6bf9431b | 3776 | |
ac48eca1 AO |
3777 | # Check whether --with-pic or --without-pic was given. |
3778 | if test "${with_pic+set}" = set; then | |
3779 | withval="$with_pic" | |
3780 | pic_mode="$withval" | |
3781 | else | |
3782 | pic_mode=default | |
6bf9431b | 3783 | fi; |
ac48eca1 AO |
3784 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" |
3785 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
3786 | ||
252b5132 RH |
3787 | # Some flags need to be propagated to the compiler or linker for good |
3788 | # libtool support. | |
6be7c12c | 3789 | case $host in |
252b5132 RH |
3790 | *-*-irix6*) |
3791 | # Find out which ABI we are using. | |
6bf9431b BE |
3792 | echo '#line 3792 "configure"' > conftest.$ac_ext |
3793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3794 | (eval $ac_compile) 2>&5 | |
3795 | ac_status=$? | |
3796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3797 | (exit $ac_status); }; then | |
093872ec NC |
3798 | if test "$lt_cv_prog_gnu_ld" = yes; then |
3799 | case `/usr/bin/file conftest.$ac_objext` in | |
3800 | *32-bit*) | |
3801 | LD="${LD-ld} -melf32bsmip" | |
3802 | ;; | |
3803 | *N32*) | |
3804 | LD="${LD-ld} -melf32bmipn32" | |
3805 | ;; | |
3806 | *64-bit*) | |
3807 | LD="${LD-ld} -melf64bmip" | |
3808 | ;; | |
3809 | esac | |
3810 | else | |
6be7c12c | 3811 | case `/usr/bin/file conftest.$ac_objext` in |
252b5132 RH |
3812 | *32-bit*) |
3813 | LD="${LD-ld} -32" | |
3814 | ;; | |
3815 | *N32*) | |
3816 | LD="${LD-ld} -n32" | |
3817 | ;; | |
3818 | *64-bit*) | |
3819 | LD="${LD-ld} -64" | |
3820 | ;; | |
3821 | esac | |
093872ec | 3822 | fi |
252b5132 RH |
3823 | fi |
3824 | rm -rf conftest* | |
3825 | ;; | |
3826 | ||
4867be41 DJ |
3827 | ia64-*-hpux*) |
3828 | # Find out which ABI we are using. | |
3829 | echo 'int i;' > conftest.$ac_ext | |
6bf9431b BE |
3830 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3831 | (eval $ac_compile) 2>&5 | |
3832 | ac_status=$? | |
3833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3834 | (exit $ac_status); }; then | |
4867be41 DJ |
3835 | case "`/usr/bin/file conftest.o`" in |
3836 | *ELF-32*) | |
3837 | HPUX_IA64_MODE="32" | |
3838 | ;; | |
3839 | *ELF-64*) | |
3840 | HPUX_IA64_MODE="64" | |
3841 | ;; | |
3842 | esac | |
3843 | fi | |
3844 | rm -rf conftest* | |
3845 | ;; | |
3846 | ||
252b5132 RH |
3847 | *-*-sco3.2v5*) |
3848 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
3849 | SAVE_CFLAGS="$CFLAGS" | |
3850 | CFLAGS="$CFLAGS -belf" | |
6bf9431b BE |
3851 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
3852 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
3853 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
3854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 3855 | else |
6bf9431b BE |
3856 | |
3857 | ||
ac48eca1 | 3858 | ac_ext=c |
ac48eca1 | 3859 | ac_cpp='$CPP $CPPFLAGS' |
6bf9431b BE |
3860 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3861 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3862 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 3863 | |
6bf9431b BE |
3864 | cat >conftest.$ac_ext <<_ACEOF |
3865 | /* confdefs.h. */ | |
3866 | _ACEOF | |
3867 | cat confdefs.h >>conftest.$ac_ext | |
3868 | cat >>conftest.$ac_ext <<_ACEOF | |
3869 | /* end confdefs.h. */ | |
252b5132 | 3870 | |
6bf9431b BE |
3871 | int |
3872 | main () | |
3873 | { | |
252b5132 | 3874 | |
6bf9431b BE |
3875 | ; |
3876 | return 0; | |
3877 | } | |
3878 | _ACEOF | |
3879 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3880 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3881 | (eval $ac_link) 2>conftest.er1 | |
3882 | ac_status=$? | |
3883 | grep -v '^ *+' conftest.er1 >conftest.err | |
3884 | rm -f conftest.er1 | |
3885 | cat conftest.err >&5 | |
3886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3887 | (exit $ac_status); } && | |
3888 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
3889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3890 | (eval $ac_try) 2>&5 | |
3891 | ac_status=$? | |
3892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3893 | (exit $ac_status); }; } && | |
3894 | { ac_try='test -s conftest$ac_exeext' | |
3895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3896 | (eval $ac_try) 2>&5 | |
3897 | ac_status=$? | |
3898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3899 | (exit $ac_status); }; }; then | |
252b5132 RH |
3900 | lt_cv_cc_needs_belf=yes |
3901 | else | |
6bf9431b BE |
3902 | echo "$as_me: failed program was:" >&5 |
3903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3904 | ||
3905 | lt_cv_cc_needs_belf=no | |
252b5132 | 3906 | fi |
6bf9431b BE |
3907 | rm -f conftest.err conftest.$ac_objext \ |
3908 | conftest$ac_exeext conftest.$ac_ext | |
ac48eca1 | 3909 | ac_ext=c |
ac48eca1 | 3910 | ac_cpp='$CPP $CPPFLAGS' |
6bf9431b BE |
3911 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3912 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3913 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 3914 | |
252b5132 | 3915 | fi |
6bf9431b BE |
3916 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
3917 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
252b5132 RH |
3918 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
3919 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
3920 | CFLAGS="$SAVE_CFLAGS" | |
3921 | fi | |
3922 | ;; | |
3923 | ||
252b5132 RH |
3924 | |
3925 | esac | |
3926 | ||
252b5132 RH |
3927 | |
3928 | # Save cache, so that ltconfig can load it | |
6bf9431b | 3929 | cat >confcache <<\_ACEOF |
252b5132 RH |
3930 | # This file is a shell script that caches the results of configure |
3931 | # tests run on this system so they can be shared between configure | |
6bf9431b BE |
3932 | # scripts and configure runs, see configure's option --config-cache. |
3933 | # It is not useful on other systems. If it contains results you don't | |
3934 | # want to keep, you may remove or edit it. | |
252b5132 | 3935 | # |
6bf9431b BE |
3936 | # config.status only pays attention to the cache file if you give it |
3937 | # the --recheck option to rerun configure. | |
252b5132 | 3938 | # |
6bf9431b BE |
3939 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
3940 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
3941 | # following values. | |
3942 | ||
3943 | _ACEOF | |
3944 | ||
252b5132 RH |
3945 | # The following way of writing the cache mishandles newlines in values, |
3946 | # but we know of no workaround that is simple, portable, and efficient. | |
3947 | # So, don't put newlines in cache variables' values. | |
6bf9431b BE |
3948 | # Ultrix sh set writes to stderr and can't be redirected directly, |
3949 | # and sets the high bit in the cache file unless we assign to the vars. | |
3950 | { | |
3951 | (set) 2>&1 | | |
3952 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
3953 | *ac_space=\ *) | |
3954 | # `set' does not quote correctly, so add quotes (double-quote | |
3955 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
3956 | sed -n \ | |
3957 | "s/'/'\\\\''/g; | |
3958 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
3959 | ;; | |
3960 | *) | |
3961 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
3962 | sed -n \ | |
3963 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
3964 | ;; | |
3965 | esac; | |
3966 | } | | |
3967 | sed ' | |
3968 | t clear | |
3969 | : clear | |
3970 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
3971 | t end | |
3972 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
3973 | : end' >>confcache | |
3974 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
252b5132 | 3975 | if test -w $cache_file; then |
6bf9431b BE |
3976 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
3977 | cat confcache >$cache_file | |
252b5132 RH |
3978 | else |
3979 | echo "not updating unwritable cache $cache_file" | |
3980 | fi | |
3981 | fi | |
3982 | rm -f confcache | |
3983 | ||
252b5132 | 3984 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
ac48eca1 | 3985 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
d64552c5 | 3986 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
ac48eca1 AO |
3987 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
3988 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
3989 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
3990 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
252b5132 | 3991 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
ac48eca1 | 3992 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ |
6bf9431b BE |
3993 | || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 |
3994 | echo "$as_me: error: libtool configure failed" >&2;} | |
3995 | { (exit 1); exit 1; }; } | |
252b5132 RH |
3996 | |
3997 | # Reload cache, that may have been modified by ltconfig | |
3998 | if test -r "$cache_file"; then | |
6bf9431b BE |
3999 | # Some versions of bash will fail to source /dev/null (special |
4000 | # files actually), so we avoid doing that. | |
4001 | if test -f "$cache_file"; then | |
4002 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
4003 | echo "$as_me: loading cache $cache_file" >&6;} | |
4004 | case $cache_file in | |
4005 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
4006 | *) . ./$cache_file;; | |
4007 | esac | |
4008 | fi | |
252b5132 | 4009 | else |
6bf9431b BE |
4010 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
4011 | echo "$as_me: creating cache $cache_file" >&6;} | |
4012 | >$cache_file | |
252b5132 RH |
4013 | fi |
4014 | ||
4015 | ||
4016 | # This can be used to rebuild libtool when needed | |
ac48eca1 | 4017 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" |
252b5132 RH |
4018 | |
4019 | # Always use our own libtool. | |
4020 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
4021 | ||
4022 | # Redirect the config.log output again, so that the ltconfig log is not | |
4023 | # clobbered by the next message. | |
4024 | exec 5>>./config.log | |
4025 | ||
ac48eca1 | 4026 | |
ac48eca1 | 4027 | |
252b5132 RH |
4028 | |
4029 | ||
4030 | ||
4031 | ||
6bf9431b BE |
4032 | ac_config_headers="$ac_config_headers gconfig.h:gconfig.in" |
4033 | ||
4034 | ||
4035 | ac_ext=c | |
4036 | ac_cpp='$CPP $CPPFLAGS' | |
4037 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4038 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4039 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4040 | if test -n "$ac_tool_prefix"; then | |
4041 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4042 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4043 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4044 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4045 | if test "${ac_cv_prog_CC+set}" = set; then | |
4046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4047 | else | |
4048 | if test -n "$CC"; then | |
4049 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4050 | else | |
4051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4052 | for as_dir in $PATH | |
4053 | do | |
4054 | IFS=$as_save_IFS | |
4055 | test -z "$as_dir" && as_dir=. | |
4056 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4057 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4058 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
4059 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4060 | break 2 | |
4061 | fi | |
4062 | done | |
4063 | done | |
4064 | ||
4065 | fi | |
4066 | fi | |
4067 | CC=$ac_cv_prog_CC | |
4068 | if test -n "$CC"; then | |
4069 | echo "$as_me:$LINENO: result: $CC" >&5 | |
4070 | echo "${ECHO_T}$CC" >&6 | |
4071 | else | |
4072 | echo "$as_me:$LINENO: result: no" >&5 | |
4073 | echo "${ECHO_T}no" >&6 | |
4074 | fi | |
4075 | ||
4076 | fi | |
4077 | if test -z "$ac_cv_prog_CC"; then | |
4078 | ac_ct_CC=$CC | |
4079 | # Extract the first word of "gcc", so it can be a program name with args. | |
252b5132 | 4080 | set dummy gcc; ac_word=$2 |
6bf9431b BE |
4081 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4082 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4083 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4085 | else | |
4086 | if test -n "$ac_ct_CC"; then | |
4087 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4088 | else | |
4089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4090 | for as_dir in $PATH | |
4091 | do | |
4092 | IFS=$as_save_IFS | |
4093 | test -z "$as_dir" && as_dir=. | |
4094 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4095 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4096 | ac_cv_prog_ac_ct_CC="gcc" | |
4097 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4098 | break 2 | |
4099 | fi | |
4100 | done | |
4101 | done | |
4102 | ||
4103 | fi | |
4104 | fi | |
4105 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4106 | if test -n "$ac_ct_CC"; then | |
4107 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4108 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4109 | else | |
4110 | echo "$as_me:$LINENO: result: no" >&5 | |
4111 | echo "${ECHO_T}no" >&6 | |
4112 | fi | |
4113 | ||
4114 | CC=$ac_ct_CC | |
4115 | else | |
4116 | CC="$ac_cv_prog_CC" | |
4117 | fi | |
4118 | ||
4119 | if test -z "$CC"; then | |
4120 | if test -n "$ac_tool_prefix"; then | |
4121 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4122 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4123 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4124 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4125 | if test "${ac_cv_prog_CC+set}" = set; then | |
4126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
4127 | else |
4128 | if test -n "$CC"; then | |
4129 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4130 | else | |
6bf9431b BE |
4131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4132 | for as_dir in $PATH | |
4133 | do | |
4134 | IFS=$as_save_IFS | |
4135 | test -z "$as_dir" && as_dir=. | |
4136 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4137 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4138 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
4139 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4140 | break 2 | |
4141 | fi | |
4142 | done | |
4143 | done | |
4144 | ||
252b5132 RH |
4145 | fi |
4146 | fi | |
6bf9431b | 4147 | CC=$ac_cv_prog_CC |
252b5132 | 4148 | if test -n "$CC"; then |
6bf9431b BE |
4149 | echo "$as_me:$LINENO: result: $CC" >&5 |
4150 | echo "${ECHO_T}$CC" >&6 | |
4151 | else | |
4152 | echo "$as_me:$LINENO: result: no" >&5 | |
4153 | echo "${ECHO_T}no" >&6 | |
4154 | fi | |
4155 | ||
4156 | fi | |
4157 | if test -z "$ac_cv_prog_CC"; then | |
4158 | ac_ct_CC=$CC | |
4159 | # Extract the first word of "cc", so it can be a program name with args. | |
4160 | set dummy cc; ac_word=$2 | |
4161 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4162 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4163 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4165 | else | |
4166 | if test -n "$ac_ct_CC"; then | |
4167 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4168 | else | |
4169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4170 | for as_dir in $PATH | |
4171 | do | |
4172 | IFS=$as_save_IFS | |
4173 | test -z "$as_dir" && as_dir=. | |
4174 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4175 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4176 | ac_cv_prog_ac_ct_CC="cc" | |
4177 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4178 | break 2 | |
4179 | fi | |
4180 | done | |
4181 | done | |
4182 | ||
4183 | fi | |
4184 | fi | |
4185 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4186 | if test -n "$ac_ct_CC"; then | |
4187 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4188 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4189 | else | |
4190 | echo "$as_me:$LINENO: result: no" >&5 | |
4191 | echo "${ECHO_T}no" >&6 | |
4192 | fi | |
4193 | ||
4194 | CC=$ac_ct_CC | |
252b5132 | 4195 | else |
6bf9431b | 4196 | CC="$ac_cv_prog_CC" |
252b5132 RH |
4197 | fi |
4198 | ||
6bf9431b | 4199 | fi |
252b5132 RH |
4200 | if test -z "$CC"; then |
4201 | # Extract the first word of "cc", so it can be a program name with args. | |
4202 | set dummy cc; ac_word=$2 | |
6bf9431b BE |
4203 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4204 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4205 | if test "${ac_cv_prog_CC+set}" = set; then | |
4206 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
4207 | else |
4208 | if test -n "$CC"; then | |
4209 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4210 | else | |
252b5132 | 4211 | ac_prog_rejected=no |
6bf9431b BE |
4212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4213 | for as_dir in $PATH | |
4214 | do | |
4215 | IFS=$as_save_IFS | |
4216 | test -z "$as_dir" && as_dir=. | |
4217 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4218 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4219 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
4220 | ac_prog_rejected=yes | |
4221 | continue | |
4222 | fi | |
4223 | ac_cv_prog_CC="cc" | |
4224 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4225 | break 2 | |
4226 | fi | |
4227 | done | |
4228 | done | |
4229 | ||
252b5132 RH |
4230 | if test $ac_prog_rejected = yes; then |
4231 | # We found a bogon in the path, so make sure we never use it. | |
4232 | set dummy $ac_cv_prog_CC | |
4233 | shift | |
6bf9431b | 4234 | if test $# != 0; then |
252b5132 RH |
4235 | # We chose a different compiler from the bogus one. |
4236 | # However, it has the same basename, so the bogon will be chosen | |
4237 | # first if we set CC to just the basename; use the full file name. | |
4238 | shift | |
6bf9431b | 4239 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
252b5132 RH |
4240 | fi |
4241 | fi | |
4242 | fi | |
4243 | fi | |
6bf9431b | 4244 | CC=$ac_cv_prog_CC |
252b5132 | 4245 | if test -n "$CC"; then |
6bf9431b BE |
4246 | echo "$as_me:$LINENO: result: $CC" >&5 |
4247 | echo "${ECHO_T}$CC" >&6 | |
252b5132 | 4248 | else |
6bf9431b BE |
4249 | echo "$as_me:$LINENO: result: no" >&5 |
4250 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
4251 | fi |
4252 | ||
6bf9431b BE |
4253 | fi |
4254 | if test -z "$CC"; then | |
4255 | if test -n "$ac_tool_prefix"; then | |
4256 | for ac_prog in cl | |
4257 | do | |
4258 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4259 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4260 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4261 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4262 | if test "${ac_cv_prog_CC+set}" = set; then | |
4263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
4264 | else |
4265 | if test -n "$CC"; then | |
4266 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4267 | else | |
6bf9431b BE |
4268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4269 | for as_dir in $PATH | |
4270 | do | |
4271 | IFS=$as_save_IFS | |
4272 | test -z "$as_dir" && as_dir=. | |
4273 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4274 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4275 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
4276 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4277 | break 2 | |
4278 | fi | |
4279 | done | |
4280 | done | |
4281 | ||
252b5132 RH |
4282 | fi |
4283 | fi | |
6bf9431b | 4284 | CC=$ac_cv_prog_CC |
252b5132 | 4285 | if test -n "$CC"; then |
6bf9431b BE |
4286 | echo "$as_me:$LINENO: result: $CC" >&5 |
4287 | echo "${ECHO_T}$CC" >&6 | |
252b5132 | 4288 | else |
6bf9431b BE |
4289 | echo "$as_me:$LINENO: result: no" >&5 |
4290 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
4291 | fi |
4292 | ||
6bf9431b BE |
4293 | test -n "$CC" && break |
4294 | done | |
4295 | fi | |
4296 | if test -z "$CC"; then | |
4297 | ac_ct_CC=$CC | |
4298 | for ac_prog in cl | |
4299 | do | |
4300 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4301 | set dummy $ac_prog; ac_word=$2 | |
4302 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4303 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4304 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4306 | else | |
4307 | if test -n "$ac_ct_CC"; then | |
4308 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4309 | else | |
4310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4311 | for as_dir in $PATH | |
4312 | do | |
4313 | IFS=$as_save_IFS | |
4314 | test -z "$as_dir" && as_dir=. | |
4315 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4316 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4317 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
4318 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4319 | break 2 | |
252b5132 | 4320 | fi |
6bf9431b BE |
4321 | done |
4322 | done | |
4323 | ||
4324 | fi | |
4325 | fi | |
4326 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4327 | if test -n "$ac_ct_CC"; then | |
4328 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4329 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
252b5132 | 4330 | else |
6bf9431b BE |
4331 | echo "$as_me:$LINENO: result: no" >&5 |
4332 | echo "${ECHO_T}no" >&6 | |
252b5132 | 4333 | fi |
252b5132 | 4334 | |
6bf9431b BE |
4335 | test -n "$ac_ct_CC" && break |
4336 | done | |
252b5132 | 4337 | |
6bf9431b BE |
4338 | CC=$ac_ct_CC |
4339 | fi | |
4340 | ||
4341 | fi | |
4342 | ||
4343 | ||
4344 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
4345 | See \`config.log' for more details." >&5 | |
4346 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
4347 | See \`config.log' for more details." >&2;} | |
4348 | { (exit 1); exit 1; }; } | |
4349 | ||
4350 | # Provide some information about the compiler. | |
4351 | echo "$as_me:$LINENO:" \ | |
4352 | "checking for C compiler version" >&5 | |
4353 | ac_compiler=`set X $ac_compile; echo $2` | |
4354 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
4355 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
4356 | ac_status=$? | |
4357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4358 | (exit $ac_status); } | |
4359 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
4360 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
4361 | ac_status=$? | |
4362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4363 | (exit $ac_status); } | |
4364 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
4365 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
4366 | ac_status=$? | |
4367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4368 | (exit $ac_status); } | |
4369 | ||
4370 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
4371 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
4372 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
4373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4374 | else | |
4375 | cat >conftest.$ac_ext <<_ACEOF | |
4376 | /* confdefs.h. */ | |
4377 | _ACEOF | |
4378 | cat confdefs.h >>conftest.$ac_ext | |
4379 | cat >>conftest.$ac_ext <<_ACEOF | |
4380 | /* end confdefs.h. */ | |
4381 | ||
4382 | int | |
4383 | main () | |
4384 | { | |
4385 | #ifndef __GNUC__ | |
4386 | choke me | |
252b5132 | 4387 | #endif |
252b5132 | 4388 | |
6bf9431b BE |
4389 | ; |
4390 | return 0; | |
4391 | } | |
4392 | _ACEOF | |
4393 | rm -f conftest.$ac_objext | |
4394 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4395 | (eval $ac_compile) 2>conftest.er1 | |
4396 | ac_status=$? | |
4397 | grep -v '^ *+' conftest.er1 >conftest.err | |
4398 | rm -f conftest.er1 | |
4399 | cat conftest.err >&5 | |
4400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4401 | (exit $ac_status); } && | |
4402 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4404 | (eval $ac_try) 2>&5 | |
4405 | ac_status=$? | |
4406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4407 | (exit $ac_status); }; } && | |
4408 | { ac_try='test -s conftest.$ac_objext' | |
4409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4410 | (eval $ac_try) 2>&5 | |
4411 | ac_status=$? | |
4412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4413 | (exit $ac_status); }; }; then | |
4414 | ac_compiler_gnu=yes | |
4415 | else | |
4416 | echo "$as_me: failed program was:" >&5 | |
4417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4418 | ||
4419 | ac_compiler_gnu=no | |
4420 | fi | |
4421 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4422 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4423 | ||
4424 | fi | |
4425 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
4426 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
4427 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
4428 | ac_test_CFLAGS=${CFLAGS+set} | |
4429 | ac_save_CFLAGS=$CFLAGS | |
4430 | CFLAGS="-g" | |
4431 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
4432 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
4433 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
4434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4435 | else | |
4436 | cat >conftest.$ac_ext <<_ACEOF | |
4437 | /* confdefs.h. */ | |
4438 | _ACEOF | |
4439 | cat confdefs.h >>conftest.$ac_ext | |
4440 | cat >>conftest.$ac_ext <<_ACEOF | |
4441 | /* end confdefs.h. */ | |
252b5132 | 4442 | |
6bf9431b BE |
4443 | int |
4444 | main () | |
4445 | { | |
252b5132 | 4446 | |
6bf9431b BE |
4447 | ; |
4448 | return 0; | |
4449 | } | |
4450 | _ACEOF | |
4451 | rm -f conftest.$ac_objext | |
4452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4453 | (eval $ac_compile) 2>conftest.er1 | |
4454 | ac_status=$? | |
4455 | grep -v '^ *+' conftest.er1 >conftest.err | |
4456 | rm -f conftest.er1 | |
4457 | cat conftest.err >&5 | |
4458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4459 | (exit $ac_status); } && | |
4460 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4462 | (eval $ac_try) 2>&5 | |
4463 | ac_status=$? | |
4464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4465 | (exit $ac_status); }; } && | |
4466 | { ac_try='test -s conftest.$ac_objext' | |
4467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4468 | (eval $ac_try) 2>&5 | |
4469 | ac_status=$? | |
4470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4471 | (exit $ac_status); }; }; then | |
252b5132 RH |
4472 | ac_cv_prog_cc_g=yes |
4473 | else | |
6bf9431b BE |
4474 | echo "$as_me: failed program was:" >&5 |
4475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
252b5132 | 4476 | |
6bf9431b | 4477 | ac_cv_prog_cc_g=no |
252b5132 | 4478 | fi |
6bf9431b BE |
4479 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4480 | fi | |
4481 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
4482 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
252b5132 | 4483 | if test "$ac_test_CFLAGS" = set; then |
6bf9431b | 4484 | CFLAGS=$ac_save_CFLAGS |
252b5132 RH |
4485 | elif test $ac_cv_prog_cc_g = yes; then |
4486 | if test "$GCC" = yes; then | |
4487 | CFLAGS="-g -O2" | |
4488 | else | |
4489 | CFLAGS="-g" | |
4490 | fi | |
4491 | else | |
4492 | if test "$GCC" = yes; then | |
4493 | CFLAGS="-O2" | |
4494 | else | |
4495 | CFLAGS= | |
4496 | fi | |
4497 | fi | |
6bf9431b BE |
4498 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
4499 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
4500 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
4501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4502 | else | |
4503 | ac_cv_prog_cc_stdc=no | |
4504 | ac_save_CC=$CC | |
4505 | cat >conftest.$ac_ext <<_ACEOF | |
4506 | /* confdefs.h. */ | |
4507 | _ACEOF | |
4508 | cat confdefs.h >>conftest.$ac_ext | |
4509 | cat >>conftest.$ac_ext <<_ACEOF | |
4510 | /* end confdefs.h. */ | |
4511 | #include <stdarg.h> | |
4512 | #include <stdio.h> | |
4513 | #include <sys/types.h> | |
4514 | #include <sys/stat.h> | |
4515 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4516 | struct buf { int x; }; | |
4517 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4518 | static char *e (p, i) | |
4519 | char **p; | |
4520 | int i; | |
4521 | { | |
4522 | return p[i]; | |
4523 | } | |
4524 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4525 | { | |
4526 | char *s; | |
4527 | va_list v; | |
4528 | va_start (v,p); | |
4529 | s = g (p, va_arg (v,int)); | |
4530 | va_end (v); | |
4531 | return s; | |
4532 | } | |
4533 | ||
4534 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4535 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4536 | These don't provoke an error unfortunately, instead are silently treated | |
4537 | as 'x'. The following induces an error, until -std1 is added to get | |
4538 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4539 | array size at least. It's necessary to write '\x00'==0 to get something | |
4540 | that's true only with -std1. */ | |
4541 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4542 | ||
4543 | int test (int i, double x); | |
4544 | struct s1 {int (*f) (int a);}; | |
4545 | struct s2 {int (*f) (double a);}; | |
4546 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4547 | int argc; | |
4548 | char **argv; | |
4549 | int | |
4550 | main () | |
4551 | { | |
4552 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4553 | ; | |
4554 | return 0; | |
4555 | } | |
4556 | _ACEOF | |
4557 | # Don't try gcc -ansi; that turns off useful extensions and | |
4558 | # breaks some systems' header files. | |
4559 | # AIX -qlanglvl=ansi | |
4560 | # Ultrix and OSF/1 -std1 | |
4561 | # HP-UX 10.20 and later -Ae | |
4562 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
4563 | # SVR4 -Xc -D__EXTENSIONS__ | |
4564 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4565 | do | |
4566 | CC="$ac_save_CC $ac_arg" | |
4567 | rm -f conftest.$ac_objext | |
4568 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4569 | (eval $ac_compile) 2>conftest.er1 | |
4570 | ac_status=$? | |
4571 | grep -v '^ *+' conftest.er1 >conftest.err | |
4572 | rm -f conftest.er1 | |
4573 | cat conftest.err >&5 | |
4574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4575 | (exit $ac_status); } && | |
4576 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4578 | (eval $ac_try) 2>&5 | |
4579 | ac_status=$? | |
4580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4581 | (exit $ac_status); }; } && | |
4582 | { ac_try='test -s conftest.$ac_objext' | |
4583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4584 | (eval $ac_try) 2>&5 | |
4585 | ac_status=$? | |
4586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4587 | (exit $ac_status); }; }; then | |
4588 | ac_cv_prog_cc_stdc=$ac_arg | |
4589 | break | |
4590 | else | |
4591 | echo "$as_me: failed program was:" >&5 | |
4592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4593 | ||
4594 | fi | |
4595 | rm -f conftest.err conftest.$ac_objext | |
4596 | done | |
4597 | rm -f conftest.$ac_ext conftest.$ac_objext | |
4598 | CC=$ac_save_CC | |
4599 | ||
4600 | fi | |
4601 | ||
4602 | case "x$ac_cv_prog_cc_stdc" in | |
4603 | x|xno) | |
4604 | echo "$as_me:$LINENO: result: none needed" >&5 | |
4605 | echo "${ECHO_T}none needed" >&6 ;; | |
4606 | *) | |
4607 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
4608 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
4609 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
4610 | esac | |
4611 | ||
4612 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
4613 | # in C++ we need to declare it. In case someone uses the same compiler | |
4614 | # for both compiling C and C++ we need to have the C++ compiler decide | |
4615 | # the declaration of exit, since it's the most demanding environment. | |
4616 | cat >conftest.$ac_ext <<_ACEOF | |
4617 | #ifndef __cplusplus | |
4618 | choke me | |
4619 | #endif | |
4620 | _ACEOF | |
4621 | rm -f conftest.$ac_objext | |
4622 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4623 | (eval $ac_compile) 2>conftest.er1 | |
4624 | ac_status=$? | |
4625 | grep -v '^ *+' conftest.er1 >conftest.err | |
4626 | rm -f conftest.er1 | |
4627 | cat conftest.err >&5 | |
4628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4629 | (exit $ac_status); } && | |
4630 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4632 | (eval $ac_try) 2>&5 | |
4633 | ac_status=$? | |
4634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4635 | (exit $ac_status); }; } && | |
4636 | { ac_try='test -s conftest.$ac_objext' | |
4637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4638 | (eval $ac_try) 2>&5 | |
4639 | ac_status=$? | |
4640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4641 | (exit $ac_status); }; }; then | |
4642 | for ac_declaration in \ | |
4643 | '' \ | |
4644 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
4645 | 'extern "C" void std::exit (int); using std::exit;' \ | |
4646 | 'extern "C" void exit (int) throw ();' \ | |
4647 | 'extern "C" void exit (int);' \ | |
4648 | 'void exit (int);' | |
4649 | do | |
4650 | cat >conftest.$ac_ext <<_ACEOF | |
4651 | /* confdefs.h. */ | |
4652 | _ACEOF | |
4653 | cat confdefs.h >>conftest.$ac_ext | |
4654 | cat >>conftest.$ac_ext <<_ACEOF | |
4655 | /* end confdefs.h. */ | |
4656 | $ac_declaration | |
4657 | #include <stdlib.h> | |
4658 | int | |
4659 | main () | |
4660 | { | |
4661 | exit (42); | |
4662 | ; | |
4663 | return 0; | |
4664 | } | |
4665 | _ACEOF | |
4666 | rm -f conftest.$ac_objext | |
4667 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4668 | (eval $ac_compile) 2>conftest.er1 | |
4669 | ac_status=$? | |
4670 | grep -v '^ *+' conftest.er1 >conftest.err | |
4671 | rm -f conftest.er1 | |
4672 | cat conftest.err >&5 | |
4673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4674 | (exit $ac_status); } && | |
4675 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4677 | (eval $ac_try) 2>&5 | |
4678 | ac_status=$? | |
4679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4680 | (exit $ac_status); }; } && | |
4681 | { ac_try='test -s conftest.$ac_objext' | |
4682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4683 | (eval $ac_try) 2>&5 | |
4684 | ac_status=$? | |
4685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4686 | (exit $ac_status); }; }; then | |
4687 | : | |
4688 | else | |
4689 | echo "$as_me: failed program was:" >&5 | |
4690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4691 | ||
4692 | continue | |
4693 | fi | |
4694 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4695 | cat >conftest.$ac_ext <<_ACEOF | |
4696 | /* confdefs.h. */ | |
4697 | _ACEOF | |
4698 | cat confdefs.h >>conftest.$ac_ext | |
4699 | cat >>conftest.$ac_ext <<_ACEOF | |
4700 | /* end confdefs.h. */ | |
4701 | $ac_declaration | |
4702 | int | |
4703 | main () | |
4704 | { | |
4705 | exit (42); | |
4706 | ; | |
4707 | return 0; | |
4708 | } | |
4709 | _ACEOF | |
4710 | rm -f conftest.$ac_objext | |
4711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4712 | (eval $ac_compile) 2>conftest.er1 | |
4713 | ac_status=$? | |
4714 | grep -v '^ *+' conftest.er1 >conftest.err | |
4715 | rm -f conftest.er1 | |
4716 | cat conftest.err >&5 | |
4717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4718 | (exit $ac_status); } && | |
4719 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4721 | (eval $ac_try) 2>&5 | |
4722 | ac_status=$? | |
4723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4724 | (exit $ac_status); }; } && | |
4725 | { ac_try='test -s conftest.$ac_objext' | |
4726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4727 | (eval $ac_try) 2>&5 | |
4728 | ac_status=$? | |
4729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4730 | (exit $ac_status); }; }; then | |
4731 | break | |
4732 | else | |
4733 | echo "$as_me: failed program was:" >&5 | |
4734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4735 | ||
4736 | fi | |
4737 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4738 | done | |
4739 | rm -f conftest* | |
4740 | if test -n "$ac_declaration"; then | |
4741 | echo '#ifdef __cplusplus' >>confdefs.h | |
4742 | echo $ac_declaration >>confdefs.h | |
4743 | echo '#endif' >>confdefs.h | |
4744 | fi | |
4745 | ||
4746 | else | |
4747 | echo "$as_me: failed program was:" >&5 | |
4748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4749 | ||
4750 | fi | |
4751 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4752 | ac_ext=c | |
4753 | ac_cpp='$CPP $CPPFLAGS' | |
4754 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4755 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4756 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
252b5132 RH |
4757 | |
4758 | # Find a good install program. We prefer a C program (faster), | |
4759 | # so one script is as good as another. But avoid the broken or | |
4760 | # incompatible versions: | |
4761 | # SysV /etc/install, /usr/sbin/install | |
4762 | # SunOS /usr/etc/install | |
4763 | # IRIX /sbin/install | |
4764 | # AIX /bin/install | |
6bf9431b | 4765 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
252b5132 RH |
4766 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
4767 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4768 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
6bf9431b | 4769 | # OS/2's system install, which has a completely different semantic |
252b5132 | 4770 | # ./install, which can be erroneously created by make from ./install.sh. |
6bf9431b BE |
4771 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
4772 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
252b5132 | 4773 | if test -z "$INSTALL"; then |
6bf9431b BE |
4774 | if test "${ac_cv_path_install+set}" = set; then |
4775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 4776 | else |
6bf9431b BE |
4777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4778 | for as_dir in $PATH | |
4779 | do | |
4780 | IFS=$as_save_IFS | |
4781 | test -z "$as_dir" && as_dir=. | |
4782 | # Account for people who put trailing slashes in PATH elements. | |
4783 | case $as_dir/ in | |
4784 | ./ | .// | /cC/* | \ | |
4785 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4786 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
4787 | /usr/ucb/* ) ;; | |
4788 | *) | |
4789 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4790 | # Don't use installbsd from OSF since it installs stuff as root | |
4791 | # by default. | |
4792 | for ac_prog in ginstall scoinst install; do | |
4793 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4794 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
252b5132 | 4795 | if test $ac_prog = install && |
6bf9431b | 4796 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
252b5132 RH |
4797 | # AIX install. It has an incompatible calling convention. |
4798 | : | |
6bf9431b BE |
4799 | elif test $ac_prog = install && |
4800 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4801 | # program-specific install script used by HP pwplus--don't use. | |
4802 | : | |
252b5132 | 4803 | else |
6bf9431b BE |
4804 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
4805 | break 3 | |
252b5132 RH |
4806 | fi |
4807 | fi | |
4808 | done | |
6bf9431b BE |
4809 | done |
4810 | ;; | |
4811 | esac | |
4812 | done | |
4813 | ||
252b5132 RH |
4814 | |
4815 | fi | |
4816 | if test "${ac_cv_path_install+set}" = set; then | |
6bf9431b | 4817 | INSTALL=$ac_cv_path_install |
252b5132 RH |
4818 | else |
4819 | # As a last resort, use the slow shell script. We don't cache a | |
4820 | # path for INSTALL within a source directory, because that will | |
4821 | # break other packages using the cache if that directory is | |
4822 | # removed, or if the path is relative. | |
6bf9431b | 4823 | INSTALL=$ac_install_sh |
252b5132 RH |
4824 | fi |
4825 | fi | |
6bf9431b BE |
4826 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
4827 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
4828 | |
4829 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4830 | # It thinks the first close brace ends the variable substitution. | |
4831 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4832 | ||
6bf9431b | 4833 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
4834 | |
4835 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4836 | ||
4837 | ||
6bf9431b | 4838 | |
5af11cab AM |
4839 | for ac_func in setmode |
4840 | do | |
6bf9431b BE |
4841 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4842 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4843 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4844 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4846 | else | |
4847 | cat >conftest.$ac_ext <<_ACEOF | |
4848 | /* confdefs.h. */ | |
4849 | _ACEOF | |
4850 | cat confdefs.h >>conftest.$ac_ext | |
4851 | cat >>conftest.$ac_ext <<_ACEOF | |
4852 | /* end confdefs.h. */ | |
4853 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4854 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4855 | #define $ac_func innocuous_$ac_func | |
4856 | ||
4857 | /* System header to define __stub macros and hopefully few prototypes, | |
4858 | which can conflict with char $ac_func (); below. | |
4859 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4860 | <limits.h> exists even on freestanding compilers. */ | |
4861 | ||
4862 | #ifdef __STDC__ | |
4863 | # include <limits.h> | |
4864 | #else | |
4865 | # include <assert.h> | |
4866 | #endif | |
4867 | ||
4868 | #undef $ac_func | |
4869 | ||
4870 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4871 | #ifdef __cplusplus | |
4872 | extern "C" | |
4873 | { | |
4874 | #endif | |
4875 | /* We use char because int might match the return type of a gcc2 | |
4876 | builtin and then its argument prototype would still apply. */ | |
4877 | char $ac_func (); | |
4878 | /* The GNU C library defines this for functions which it implements | |
4879 | to always fail with ENOSYS. Some functions are actually named | |
4880 | something starting with __ and the normal name is an alias. */ | |
4881 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4882 | choke me | |
4883 | #else | |
4884 | char (*f) () = $ac_func; | |
4885 | #endif | |
4886 | #ifdef __cplusplus | |
4887 | } | |
4888 | #endif | |
4889 | ||
4890 | int | |
4891 | main () | |
4892 | { | |
4893 | return f != $ac_func; | |
4894 | ; | |
4895 | return 0; | |
4896 | } | |
4897 | _ACEOF | |
4898 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4899 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4900 | (eval $ac_link) 2>conftest.er1 | |
4901 | ac_status=$? | |
4902 | grep -v '^ *+' conftest.er1 >conftest.err | |
4903 | rm -f conftest.er1 | |
4904 | cat conftest.err >&5 | |
4905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4906 | (exit $ac_status); } && | |
4907 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4909 | (eval $ac_try) 2>&5 | |
4910 | ac_status=$? | |
4911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4912 | (exit $ac_status); }; } && | |
4913 | { ac_try='test -s conftest$ac_exeext' | |
4914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4915 | (eval $ac_try) 2>&5 | |
4916 | ac_status=$? | |
4917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4918 | (exit $ac_status); }; }; then | |
4919 | eval "$as_ac_var=yes" | |
4920 | else | |
4921 | echo "$as_me: failed program was:" >&5 | |
4922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4923 | ||
4924 | eval "$as_ac_var=no" | |
4925 | fi | |
4926 | rm -f conftest.err conftest.$ac_objext \ | |
4927 | conftest$ac_exeext conftest.$ac_ext | |
4928 | fi | |
4929 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4930 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4931 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4932 | cat >>confdefs.h <<_ACEOF | |
4933 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4934 | _ACEOF | |
4935 | ||
4936 | fi | |
4937 | done | |
4938 | ||
4939 | ||
4940 | ALL_LINGUAS="fr tr sv es id da pt_BR de" | |
4941 | if test -n "$ac_tool_prefix"; then | |
4942 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4943 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4944 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4945 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4946 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
4947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4948 | else | |
4949 | if test -n "$RANLIB"; then | |
4950 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4951 | else | |
4952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4953 | for as_dir in $PATH | |
4954 | do | |
4955 | IFS=$as_save_IFS | |
4956 | test -z "$as_dir" && as_dir=. | |
4957 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4958 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4959 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4960 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4961 | break 2 | |
4962 | fi | |
4963 | done | |
4964 | done | |
5af11cab | 4965 | |
6bf9431b BE |
4966 | fi |
4967 | fi | |
4968 | RANLIB=$ac_cv_prog_RANLIB | |
4969 | if test -n "$RANLIB"; then | |
4970 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
4971 | echo "${ECHO_T}$RANLIB" >&6 | |
5af11cab | 4972 | else |
6bf9431b BE |
4973 | echo "$as_me:$LINENO: result: no" >&5 |
4974 | echo "${ECHO_T}no" >&6 | |
5af11cab | 4975 | fi |
6bf9431b | 4976 | |
5af11cab | 4977 | fi |
6bf9431b BE |
4978 | if test -z "$ac_cv_prog_RANLIB"; then |
4979 | ac_ct_RANLIB=$RANLIB | |
4980 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4981 | set dummy ranlib; ac_word=$2 | |
4982 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4983 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4984 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
4985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4986 | else | |
4987 | if test -n "$ac_ct_RANLIB"; then | |
4988 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4989 | else | |
4990 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4991 | for as_dir in $PATH | |
4992 | do | |
4993 | IFS=$as_save_IFS | |
4994 | test -z "$as_dir" && as_dir=. | |
4995 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4996 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4997 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4998 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4999 | break 2 | |
5000 | fi | |
5001 | done | |
5002 | done | |
5af11cab | 5003 | |
6bf9431b BE |
5004 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
5005 | fi | |
5006 | fi | |
5007 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5008 | if test -n "$ac_ct_RANLIB"; then | |
5009 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5010 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
5af11cab | 5011 | else |
6bf9431b BE |
5012 | echo "$as_me:$LINENO: result: no" >&5 |
5013 | echo "${ECHO_T}no" >&6 | |
5af11cab | 5014 | fi |
5af11cab | 5015 | |
6bf9431b BE |
5016 | RANLIB=$ac_ct_RANLIB |
5017 | else | |
5018 | RANLIB="$ac_cv_prog_RANLIB" | |
5019 | fi | |
252b5132 | 5020 | |
6bf9431b BE |
5021 | ac_ext=c |
5022 | ac_cpp='$CPP $CPPFLAGS' | |
5023 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5024 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5025 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5026 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
5027 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
252b5132 RH |
5028 | # On Suns, sometimes $CPP names a directory. |
5029 | if test -n "$CPP" && test -d "$CPP"; then | |
5030 | CPP= | |
5031 | fi | |
5032 | if test -z "$CPP"; then | |
6bf9431b BE |
5033 | if test "${ac_cv_prog_CPP+set}" = set; then |
5034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5035 | else | |
5036 | # Double quotes because CPP needs to be expanded | |
5037 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5038 | do | |
5039 | ac_preproc_ok=false | |
5040 | for ac_c_preproc_warn_flag in '' yes | |
5041 | do | |
5042 | # Use a header file that comes with gcc, so configuring glibc | |
5043 | # with a fresh cross-compiler works. | |
5044 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5045 | # <limits.h> exists even on freestanding compilers. | |
252b5132 | 5046 | # On the NeXT, cc -E runs the code through the compiler's parser, |
6bf9431b BE |
5047 | # not just through cpp. "Syntax error" is here to catch this case. |
5048 | cat >conftest.$ac_ext <<_ACEOF | |
5049 | /* confdefs.h. */ | |
5050 | _ACEOF | |
5051 | cat confdefs.h >>conftest.$ac_ext | |
5052 | cat >>conftest.$ac_ext <<_ACEOF | |
5053 | /* end confdefs.h. */ | |
5054 | #ifdef __STDC__ | |
5055 | # include <limits.h> | |
5056 | #else | |
5057 | # include <assert.h> | |
5058 | #endif | |
5059 | Syntax error | |
5060 | _ACEOF | |
5061 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5062 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5063 | ac_status=$? | |
5064 | grep -v '^ *+' conftest.er1 >conftest.err | |
5065 | rm -f conftest.er1 | |
5066 | cat conftest.err >&5 | |
5067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5068 | (exit $ac_status); } >/dev/null; then | |
5069 | if test -s conftest.err; then | |
5070 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5071 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5072 | else | |
5073 | ac_cpp_err= | |
5074 | fi | |
252b5132 | 5075 | else |
6bf9431b BE |
5076 | ac_cpp_err=yes |
5077 | fi | |
5078 | if test -z "$ac_cpp_err"; then | |
252b5132 RH |
5079 | : |
5080 | else | |
6bf9431b BE |
5081 | echo "$as_me: failed program was:" >&5 |
5082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5083 | ||
5084 | # Broken: fails on valid input. | |
5085 | continue | |
5086 | fi | |
5087 | rm -f conftest.err conftest.$ac_ext | |
5088 | ||
5089 | # OK, works on sane cases. Now check whether non-existent headers | |
5090 | # can be detected and how. | |
5091 | cat >conftest.$ac_ext <<_ACEOF | |
5092 | /* confdefs.h. */ | |
5093 | _ACEOF | |
5094 | cat confdefs.h >>conftest.$ac_ext | |
5095 | cat >>conftest.$ac_ext <<_ACEOF | |
5096 | /* end confdefs.h. */ | |
5097 | #include <ac_nonexistent.h> | |
5098 | _ACEOF | |
5099 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5100 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5101 | ac_status=$? | |
5102 | grep -v '^ *+' conftest.er1 >conftest.err | |
5103 | rm -f conftest.er1 | |
5104 | cat conftest.err >&5 | |
5105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5106 | (exit $ac_status); } >/dev/null; then | |
5107 | if test -s conftest.err; then | |
5108 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5109 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5110 | else | |
5111 | ac_cpp_err= | |
5112 | fi | |
252b5132 | 5113 | else |
6bf9431b | 5114 | ac_cpp_err=yes |
252b5132 | 5115 | fi |
6bf9431b BE |
5116 | if test -z "$ac_cpp_err"; then |
5117 | # Broken: success on invalid input. | |
5118 | continue | |
5119 | else | |
5120 | echo "$as_me: failed program was:" >&5 | |
5121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5122 | ||
5123 | # Passes both tests. | |
5124 | ac_preproc_ok=: | |
5125 | break | |
252b5132 | 5126 | fi |
6bf9431b BE |
5127 | rm -f conftest.err conftest.$ac_ext |
5128 | ||
5129 | done | |
5130 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5131 | rm -f conftest.err conftest.$ac_ext | |
5132 | if $ac_preproc_ok; then | |
5133 | break | |
252b5132 | 5134 | fi |
6bf9431b BE |
5135 | |
5136 | done | |
5137 | ac_cv_prog_CPP=$CPP | |
5138 | ||
252b5132 | 5139 | fi |
6bf9431b | 5140 | CPP=$ac_cv_prog_CPP |
252b5132 | 5141 | else |
6bf9431b | 5142 | ac_cv_prog_CPP=$CPP |
252b5132 | 5143 | fi |
6bf9431b BE |
5144 | echo "$as_me:$LINENO: result: $CPP" >&5 |
5145 | echo "${ECHO_T}$CPP" >&6 | |
5146 | ac_preproc_ok=false | |
5147 | for ac_c_preproc_warn_flag in '' yes | |
5148 | do | |
5149 | # Use a header file that comes with gcc, so configuring glibc | |
5150 | # with a fresh cross-compiler works. | |
5151 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5152 | # <limits.h> exists even on freestanding compilers. | |
5153 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5154 | # not just through cpp. "Syntax error" is here to catch this case. | |
5155 | cat >conftest.$ac_ext <<_ACEOF | |
5156 | /* confdefs.h. */ | |
5157 | _ACEOF | |
5158 | cat confdefs.h >>conftest.$ac_ext | |
5159 | cat >>conftest.$ac_ext <<_ACEOF | |
5160 | /* end confdefs.h. */ | |
5161 | #ifdef __STDC__ | |
5162 | # include <limits.h> | |
5163 | #else | |
5164 | # include <assert.h> | |
5165 | #endif | |
5166 | Syntax error | |
5167 | _ACEOF | |
5168 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5169 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5170 | ac_status=$? | |
5171 | grep -v '^ *+' conftest.er1 >conftest.err | |
5172 | rm -f conftest.er1 | |
5173 | cat conftest.err >&5 | |
5174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5175 | (exit $ac_status); } >/dev/null; then | |
5176 | if test -s conftest.err; then | |
5177 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5178 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5179 | else | |
5180 | ac_cpp_err= | |
5181 | fi | |
ac48eca1 | 5182 | else |
6bf9431b BE |
5183 | ac_cpp_err=yes |
5184 | fi | |
5185 | if test -z "$ac_cpp_err"; then | |
5186 | : | |
ac48eca1 | 5187 | else |
6bf9431b BE |
5188 | echo "$as_me: failed program was:" >&5 |
5189 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5190 | ||
5191 | # Broken: fails on valid input. | |
5192 | continue | |
5193 | fi | |
5194 | rm -f conftest.err conftest.$ac_ext | |
5195 | ||
5196 | # OK, works on sane cases. Now check whether non-existent headers | |
5197 | # can be detected and how. | |
5198 | cat >conftest.$ac_ext <<_ACEOF | |
5199 | /* confdefs.h. */ | |
5200 | _ACEOF | |
5201 | cat confdefs.h >>conftest.$ac_ext | |
5202 | cat >>conftest.$ac_ext <<_ACEOF | |
5203 | /* end confdefs.h. */ | |
5204 | #include <ac_nonexistent.h> | |
5205 | _ACEOF | |
5206 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5207 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5208 | ac_status=$? | |
5209 | grep -v '^ *+' conftest.er1 >conftest.err | |
5210 | rm -f conftest.er1 | |
5211 | cat conftest.err >&5 | |
5212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5213 | (exit $ac_status); } >/dev/null; then | |
5214 | if test -s conftest.err; then | |
5215 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5216 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5217 | else | |
5218 | ac_cpp_err= | |
5219 | fi | |
5220 | else | |
5221 | ac_cpp_err=yes | |
ac48eca1 | 5222 | fi |
6bf9431b BE |
5223 | if test -z "$ac_cpp_err"; then |
5224 | # Broken: success on invalid input. | |
5225 | continue | |
5226 | else | |
5227 | echo "$as_me: failed program was:" >&5 | |
5228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5229 | ||
5230 | # Passes both tests. | |
5231 | ac_preproc_ok=: | |
5232 | break | |
ac48eca1 | 5233 | fi |
6bf9431b BE |
5234 | rm -f conftest.err conftest.$ac_ext |
5235 | ||
5236 | done | |
5237 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5238 | rm -f conftest.err conftest.$ac_ext | |
5239 | if $ac_preproc_ok; then | |
5240 | : | |
5241 | else | |
5242 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
5243 | See \`config.log' for more details." >&5 | |
5244 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
5245 | See \`config.log' for more details." >&2;} | |
5246 | { (exit 1); exit 1; }; } | |
5247 | fi | |
5248 | ||
5249 | ac_ext=c | |
5250 | ac_cpp='$CPP $CPPFLAGS' | |
5251 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5252 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5253 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5254 | ||
5255 | ||
5256 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
5257 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
5258 | if test "${ac_cv_prog_egrep+set}" = set; then | |
5259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 5260 | else |
6bf9431b BE |
5261 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
5262 | then ac_cv_prog_egrep='grep -E' | |
5263 | else ac_cv_prog_egrep='egrep' | |
5264 | fi | |
ac48eca1 | 5265 | fi |
6bf9431b BE |
5266 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
5267 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
5268 | EGREP=$ac_cv_prog_egrep | |
5269 | ||
ac48eca1 | 5270 | |
6bf9431b BE |
5271 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5272 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
5273 | if test "${ac_cv_header_stdc+set}" = set; then | |
5274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5275 | else |
6bf9431b BE |
5276 | cat >conftest.$ac_ext <<_ACEOF |
5277 | /* confdefs.h. */ | |
5278 | _ACEOF | |
5279 | cat confdefs.h >>conftest.$ac_ext | |
5280 | cat >>conftest.$ac_ext <<_ACEOF | |
5281 | /* end confdefs.h. */ | |
252b5132 RH |
5282 | #include <stdlib.h> |
5283 | #include <stdarg.h> | |
5284 | #include <string.h> | |
5285 | #include <float.h> | |
6bf9431b BE |
5286 | |
5287 | int | |
5288 | main () | |
5289 | { | |
5290 | ||
5291 | ; | |
5292 | return 0; | |
5293 | } | |
5294 | _ACEOF | |
5295 | rm -f conftest.$ac_objext | |
5296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5297 | (eval $ac_compile) 2>conftest.er1 | |
5298 | ac_status=$? | |
5299 | grep -v '^ *+' conftest.er1 >conftest.err | |
5300 | rm -f conftest.er1 | |
5301 | cat conftest.err >&5 | |
5302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5303 | (exit $ac_status); } && | |
5304 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5306 | (eval $ac_try) 2>&5 | |
5307 | ac_status=$? | |
5308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5309 | (exit $ac_status); }; } && | |
5310 | { ac_try='test -s conftest.$ac_objext' | |
5311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5312 | (eval $ac_try) 2>&5 | |
5313 | ac_status=$? | |
5314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5315 | (exit $ac_status); }; }; then | |
252b5132 RH |
5316 | ac_cv_header_stdc=yes |
5317 | else | |
6bf9431b BE |
5318 | echo "$as_me: failed program was:" >&5 |
5319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5320 | ||
5321 | ac_cv_header_stdc=no | |
252b5132 | 5322 | fi |
6bf9431b | 5323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
5324 | |
5325 | if test $ac_cv_header_stdc = yes; then | |
5326 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6bf9431b BE |
5327 | cat >conftest.$ac_ext <<_ACEOF |
5328 | /* confdefs.h. */ | |
5329 | _ACEOF | |
5330 | cat confdefs.h >>conftest.$ac_ext | |
5331 | cat >>conftest.$ac_ext <<_ACEOF | |
5332 | /* end confdefs.h. */ | |
252b5132 | 5333 | #include <string.h> |
6bf9431b BE |
5334 | |
5335 | _ACEOF | |
252b5132 | 5336 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6bf9431b | 5337 | $EGREP "memchr" >/dev/null 2>&1; then |
252b5132 RH |
5338 | : |
5339 | else | |
252b5132 RH |
5340 | ac_cv_header_stdc=no |
5341 | fi | |
5342 | rm -f conftest* | |
5343 | ||
5344 | fi | |
5345 | ||
5346 | if test $ac_cv_header_stdc = yes; then | |
5347 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6bf9431b BE |
5348 | cat >conftest.$ac_ext <<_ACEOF |
5349 | /* confdefs.h. */ | |
5350 | _ACEOF | |
5351 | cat confdefs.h >>conftest.$ac_ext | |
5352 | cat >>conftest.$ac_ext <<_ACEOF | |
5353 | /* end confdefs.h. */ | |
252b5132 | 5354 | #include <stdlib.h> |
6bf9431b BE |
5355 | |
5356 | _ACEOF | |
252b5132 | 5357 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6bf9431b | 5358 | $EGREP "free" >/dev/null 2>&1; then |
252b5132 RH |
5359 | : |
5360 | else | |
252b5132 RH |
5361 | ac_cv_header_stdc=no |
5362 | fi | |
5363 | rm -f conftest* | |
5364 | ||
5365 | fi | |
5366 | ||
5367 | if test $ac_cv_header_stdc = yes; then | |
5368 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6bf9431b | 5369 | if test "$cross_compiling" = yes; then |
252b5132 RH |
5370 | : |
5371 | else | |
6bf9431b BE |
5372 | cat >conftest.$ac_ext <<_ACEOF |
5373 | /* confdefs.h. */ | |
5374 | _ACEOF | |
5375 | cat confdefs.h >>conftest.$ac_ext | |
5376 | cat >>conftest.$ac_ext <<_ACEOF | |
5377 | /* end confdefs.h. */ | |
252b5132 | 5378 | #include <ctype.h> |
6bf9431b BE |
5379 | #if ((' ' & 0x0FF) == 0x020) |
5380 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5381 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5382 | #else | |
5383 | # define ISLOWER(c) \ | |
5384 | (('a' <= (c) && (c) <= 'i') \ | |
5385 | || ('j' <= (c) && (c) <= 'r') \ | |
5386 | || ('s' <= (c) && (c) <= 'z')) | |
5387 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5388 | #endif | |
252b5132 | 5389 | |
6bf9431b BE |
5390 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
5391 | int | |
5392 | main () | |
5393 | { | |
5394 | int i; | |
5395 | for (i = 0; i < 256; i++) | |
5396 | if (XOR (islower (i), ISLOWER (i)) | |
5397 | || toupper (i) != TOUPPER (i)) | |
5398 | exit(2); | |
5399 | exit (0); | |
5400 | } | |
5401 | _ACEOF | |
5402 | rm -f conftest$ac_exeext | |
5403 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5404 | (eval $ac_link) 2>&5 | |
5405 | ac_status=$? | |
5406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5407 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5409 | (eval $ac_try) 2>&5 | |
5410 | ac_status=$? | |
5411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5412 | (exit $ac_status); }; }; then | |
252b5132 RH |
5413 | : |
5414 | else | |
6bf9431b BE |
5415 | echo "$as_me: program exited with status $ac_status" >&5 |
5416 | echo "$as_me: failed program was:" >&5 | |
5417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5418 | ||
5419 | ( exit $ac_status ) | |
5420 | ac_cv_header_stdc=no | |
252b5132 | 5421 | fi |
6bf9431b | 5422 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 5423 | fi |
252b5132 RH |
5424 | fi |
5425 | fi | |
6bf9431b BE |
5426 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
5427 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
252b5132 | 5428 | if test $ac_cv_header_stdc = yes; then |
6bf9431b BE |
5429 | |
5430 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 5431 | #define STDC_HEADERS 1 |
6bf9431b | 5432 | _ACEOF |
252b5132 RH |
5433 | |
5434 | fi | |
5435 | ||
6bf9431b BE |
5436 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5437 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
5438 | if test "${ac_cv_c_const+set}" = set; then | |
5439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5440 | else | |
5441 | cat >conftest.$ac_ext <<_ACEOF | |
5442 | /* confdefs.h. */ | |
5443 | _ACEOF | |
5444 | cat confdefs.h >>conftest.$ac_ext | |
5445 | cat >>conftest.$ac_ext <<_ACEOF | |
5446 | /* end confdefs.h. */ | |
252b5132 | 5447 | |
6bf9431b BE |
5448 | int |
5449 | main () | |
5450 | { | |
5451 | /* FIXME: Include the comments suggested by Paul. */ | |
5452 | #ifndef __cplusplus | |
5453 | /* Ultrix mips cc rejects this. */ | |
5454 | typedef int charset[2]; | |
5455 | const charset x; | |
5456 | /* SunOS 4.1.1 cc rejects this. */ | |
5457 | char const *const *ccp; | |
5458 | char **p; | |
5459 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5460 | struct point {int x, y;}; | |
5461 | static struct point const zero = {0,0}; | |
5462 | /* AIX XL C 1.02.0.0 rejects this. | |
5463 | It does not let you subtract one const X* pointer from another in | |
5464 | an arm of an if-expression whose if-part is not a constant | |
5465 | expression */ | |
5466 | const char *g = "string"; | |
5467 | ccp = &g + (g ? g-g : 0); | |
5468 | /* HPUX 7.0 cc rejects these. */ | |
5469 | ++ccp; | |
5470 | p = (char**) ccp; | |
5471 | ccp = (char const *const *) p; | |
5472 | { /* SCO 3.2v4 cc rejects this. */ | |
5473 | char *t; | |
5474 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5475 | ||
5476 | *t++ = 0; | |
5477 | } | |
5478 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5479 | int x[] = {25, 17}; | |
5480 | const int *foo = &x[0]; | |
5481 | ++foo; | |
5482 | } | |
5483 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5484 | typedef const int *iptr; | |
5485 | iptr p = 0; | |
5486 | ++p; | |
5487 | } | |
5488 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5489 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5490 | struct s { int j; const int *ap[3]; }; | |
5491 | struct s *b; b->j = 5; | |
5492 | } | |
5493 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5494 | const int foo = 10; | |
5495 | } | |
5496 | #endif | |
5497 | ||
5498 | ; | |
5499 | return 0; | |
5500 | } | |
5501 | _ACEOF | |
5502 | rm -f conftest.$ac_objext | |
5503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5504 | (eval $ac_compile) 2>conftest.er1 | |
5505 | ac_status=$? | |
5506 | grep -v '^ *+' conftest.er1 >conftest.err | |
5507 | rm -f conftest.er1 | |
5508 | cat conftest.err >&5 | |
5509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5510 | (exit $ac_status); } && | |
5511 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5513 | (eval $ac_try) 2>&5 | |
5514 | ac_status=$? | |
5515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5516 | (exit $ac_status); }; } && | |
5517 | { ac_try='test -s conftest.$ac_objext' | |
5518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5519 | (eval $ac_try) 2>&5 | |
5520 | ac_status=$? | |
5521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5522 | (exit $ac_status); }; }; then | |
252b5132 RH |
5523 | ac_cv_c_const=yes |
5524 | else | |
6bf9431b BE |
5525 | echo "$as_me: failed program was:" >&5 |
5526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5527 | ||
5528 | ac_cv_c_const=no | |
252b5132 | 5529 | fi |
6bf9431b | 5530 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 5531 | fi |
6bf9431b BE |
5532 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5533 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
252b5132 | 5534 | if test $ac_cv_c_const = no; then |
6bf9431b BE |
5535 | |
5536 | cat >>confdefs.h <<\_ACEOF | |
5537 | #define const | |
5538 | _ACEOF | |
252b5132 RH |
5539 | |
5540 | fi | |
5541 | ||
6bf9431b BE |
5542 | echo "$as_me:$LINENO: checking for inline" >&5 |
5543 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
5544 | if test "${ac_cv_c_inline+set}" = set; then | |
5545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
5546 | else |
5547 | ac_cv_c_inline=no | |
5548 | for ac_kw in inline __inline__ __inline; do | |
6bf9431b BE |
5549 | cat >conftest.$ac_ext <<_ACEOF |
5550 | /* confdefs.h. */ | |
5551 | _ACEOF | |
5552 | cat confdefs.h >>conftest.$ac_ext | |
5553 | cat >>conftest.$ac_ext <<_ACEOF | |
5554 | /* end confdefs.h. */ | |
5555 | #ifndef __cplusplus | |
5556 | typedef int foo_t; | |
5557 | static $ac_kw foo_t static_foo () {return 0; } | |
5558 | $ac_kw foo_t foo () {return 0; } | |
5559 | #endif | |
252b5132 | 5560 | |
6bf9431b BE |
5561 | _ACEOF |
5562 | rm -f conftest.$ac_objext | |
5563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5564 | (eval $ac_compile) 2>conftest.er1 | |
5565 | ac_status=$? | |
5566 | grep -v '^ *+' conftest.er1 >conftest.err | |
5567 | rm -f conftest.er1 | |
5568 | cat conftest.err >&5 | |
5569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5570 | (exit $ac_status); } && | |
5571 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5573 | (eval $ac_try) 2>&5 | |
5574 | ac_status=$? | |
5575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5576 | (exit $ac_status); }; } && | |
5577 | { ac_try='test -s conftest.$ac_objext' | |
5578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5579 | (eval $ac_try) 2>&5 | |
5580 | ac_status=$? | |
5581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5582 | (exit $ac_status); }; }; then | |
252b5132 RH |
5583 | ac_cv_c_inline=$ac_kw; break |
5584 | else | |
6bf9431b BE |
5585 | echo "$as_me: failed program was:" >&5 |
5586 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5587 | ||
252b5132 | 5588 | fi |
6bf9431b | 5589 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
5590 | done |
5591 | ||
5592 | fi | |
6bf9431b BE |
5593 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
5594 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
252b5132 | 5595 | |
6bf9431b BE |
5596 | |
5597 | case $ac_cv_c_inline in | |
252b5132 | 5598 | inline | yes) ;; |
6bf9431b BE |
5599 | *) |
5600 | case $ac_cv_c_inline in | |
5601 | no) ac_val=;; | |
5602 | *) ac_val=$ac_cv_c_inline;; | |
5603 | esac | |
5604 | cat >>confdefs.h <<_ACEOF | |
5605 | #ifndef __cplusplus | |
5606 | #define inline $ac_val | |
5607 | #endif | |
5608 | _ACEOF | |
5609 | ;; | |
252b5132 RH |
5610 | esac |
5611 | ||
6bf9431b BE |
5612 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
5613 | ||
5614 | ||
5615 | ||
5616 | ||
5617 | ||
5618 | ||
5619 | ||
5620 | ||
5621 | ||
5622 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5623 | inttypes.h stdint.h unistd.h | |
5624 | do | |
5625 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5626 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5627 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5628 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5630 | else | |
5631 | cat >conftest.$ac_ext <<_ACEOF | |
5632 | /* confdefs.h. */ | |
5633 | _ACEOF | |
5634 | cat confdefs.h >>conftest.$ac_ext | |
5635 | cat >>conftest.$ac_ext <<_ACEOF | |
5636 | /* end confdefs.h. */ | |
5637 | $ac_includes_default | |
5638 | ||
5639 | #include <$ac_header> | |
5640 | _ACEOF | |
5641 | rm -f conftest.$ac_objext | |
5642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5643 | (eval $ac_compile) 2>conftest.er1 | |
5644 | ac_status=$? | |
5645 | grep -v '^ *+' conftest.er1 >conftest.err | |
5646 | rm -f conftest.er1 | |
5647 | cat conftest.err >&5 | |
5648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5649 | (exit $ac_status); } && | |
5650 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5652 | (eval $ac_try) 2>&5 | |
5653 | ac_status=$? | |
5654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5655 | (exit $ac_status); }; } && | |
5656 | { ac_try='test -s conftest.$ac_objext' | |
5657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5658 | (eval $ac_try) 2>&5 | |
5659 | ac_status=$? | |
5660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5661 | (exit $ac_status); }; }; then | |
5662 | eval "$as_ac_Header=yes" | |
5663 | else | |
5664 | echo "$as_me: failed program was:" >&5 | |
5665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5666 | ||
5667 | eval "$as_ac_Header=no" | |
5668 | fi | |
5669 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5670 | fi | |
5671 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5672 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5673 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5674 | cat >>confdefs.h <<_ACEOF | |
5675 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5676 | _ACEOF | |
5677 | ||
5678 | fi | |
5679 | ||
5680 | done | |
5681 | ||
5682 | ||
5683 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
5684 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
5685 | if test "${ac_cv_type_off_t+set}" = set; then | |
5686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5687 | else |
6bf9431b BE |
5688 | cat >conftest.$ac_ext <<_ACEOF |
5689 | /* confdefs.h. */ | |
5690 | _ACEOF | |
5691 | cat confdefs.h >>conftest.$ac_ext | |
5692 | cat >>conftest.$ac_ext <<_ACEOF | |
5693 | /* end confdefs.h. */ | |
5694 | $ac_includes_default | |
5695 | int | |
5696 | main () | |
5697 | { | |
5698 | if ((off_t *) 0) | |
5699 | return 0; | |
5700 | if (sizeof (off_t)) | |
5701 | return 0; | |
5702 | ; | |
5703 | return 0; | |
5704 | } | |
5705 | _ACEOF | |
5706 | rm -f conftest.$ac_objext | |
5707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5708 | (eval $ac_compile) 2>conftest.er1 | |
5709 | ac_status=$? | |
5710 | grep -v '^ *+' conftest.er1 >conftest.err | |
5711 | rm -f conftest.er1 | |
5712 | cat conftest.err >&5 | |
5713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5714 | (exit $ac_status); } && | |
5715 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5717 | (eval $ac_try) 2>&5 | |
5718 | ac_status=$? | |
5719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5720 | (exit $ac_status); }; } && | |
5721 | { ac_try='test -s conftest.$ac_objext' | |
5722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5723 | (eval $ac_try) 2>&5 | |
5724 | ac_status=$? | |
5725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5726 | (exit $ac_status); }; }; then | |
252b5132 RH |
5727 | ac_cv_type_off_t=yes |
5728 | else | |
6bf9431b BE |
5729 | echo "$as_me: failed program was:" >&5 |
5730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
252b5132 | 5731 | |
6bf9431b BE |
5732 | ac_cv_type_off_t=no |
5733 | fi | |
5734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
252b5132 | 5735 | fi |
6bf9431b BE |
5736 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
5737 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
5738 | if test $ac_cv_type_off_t = yes; then | |
5739 | : | |
5740 | else | |
5741 | ||
5742 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 5743 | #define off_t long |
6bf9431b | 5744 | _ACEOF |
252b5132 RH |
5745 | |
5746 | fi | |
5747 | ||
6bf9431b BE |
5748 | echo "$as_me:$LINENO: checking for size_t" >&5 |
5749 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
5750 | if test "${ac_cv_type_size_t+set}" = set; then | |
5751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5752 | else |
6bf9431b BE |
5753 | cat >conftest.$ac_ext <<_ACEOF |
5754 | /* confdefs.h. */ | |
5755 | _ACEOF | |
5756 | cat confdefs.h >>conftest.$ac_ext | |
5757 | cat >>conftest.$ac_ext <<_ACEOF | |
5758 | /* end confdefs.h. */ | |
5759 | $ac_includes_default | |
5760 | int | |
5761 | main () | |
5762 | { | |
5763 | if ((size_t *) 0) | |
5764 | return 0; | |
5765 | if (sizeof (size_t)) | |
5766 | return 0; | |
5767 | ; | |
5768 | return 0; | |
5769 | } | |
5770 | _ACEOF | |
5771 | rm -f conftest.$ac_objext | |
5772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5773 | (eval $ac_compile) 2>conftest.er1 | |
5774 | ac_status=$? | |
5775 | grep -v '^ *+' conftest.er1 >conftest.err | |
5776 | rm -f conftest.er1 | |
5777 | cat conftest.err >&5 | |
5778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5779 | (exit $ac_status); } && | |
5780 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5782 | (eval $ac_try) 2>&5 | |
5783 | ac_status=$? | |
5784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5785 | (exit $ac_status); }; } && | |
5786 | { ac_try='test -s conftest.$ac_objext' | |
5787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5788 | (eval $ac_try) 2>&5 | |
5789 | ac_status=$? | |
5790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5791 | (exit $ac_status); }; }; then | |
252b5132 RH |
5792 | ac_cv_type_size_t=yes |
5793 | else | |
6bf9431b BE |
5794 | echo "$as_me: failed program was:" >&5 |
5795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
252b5132 | 5796 | |
6bf9431b | 5797 | ac_cv_type_size_t=no |
252b5132 | 5798 | fi |
6bf9431b BE |
5799 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5800 | fi | |
5801 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
5802 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
5803 | if test $ac_cv_type_size_t = yes; then | |
5804 | : | |
5805 | else | |
5806 | ||
5807 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 5808 | #define size_t unsigned |
6bf9431b | 5809 | _ACEOF |
252b5132 RH |
5810 | |
5811 | fi | |
5812 | ||
5813 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
5814 | # for constant arguments. Useless! | |
6bf9431b BE |
5815 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
5816 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
5817 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
5818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5819 | else | |
5820 | cat >conftest.$ac_ext <<_ACEOF | |
5821 | /* confdefs.h. */ | |
5822 | _ACEOF | |
5823 | cat confdefs.h >>conftest.$ac_ext | |
5824 | cat >>conftest.$ac_ext <<_ACEOF | |
5825 | /* end confdefs.h. */ | |
252b5132 | 5826 | #include <alloca.h> |
6bf9431b BE |
5827 | int |
5828 | main () | |
5829 | { | |
5830 | char *p = (char *) alloca (2 * sizeof (int)); | |
5831 | ; | |
5832 | return 0; | |
5833 | } | |
5834 | _ACEOF | |
5835 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5837 | (eval $ac_link) 2>conftest.er1 | |
5838 | ac_status=$? | |
5839 | grep -v '^ *+' conftest.er1 >conftest.err | |
5840 | rm -f conftest.er1 | |
5841 | cat conftest.err >&5 | |
5842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5843 | (exit $ac_status); } && | |
5844 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5846 | (eval $ac_try) 2>&5 | |
5847 | ac_status=$? | |
5848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5849 | (exit $ac_status); }; } && | |
5850 | { ac_try='test -s conftest$ac_exeext' | |
5851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5852 | (eval $ac_try) 2>&5 | |
5853 | ac_status=$? | |
5854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5855 | (exit $ac_status); }; }; then | |
5856 | ac_cv_working_alloca_h=yes | |
5857 | else | |
5858 | echo "$as_me: failed program was:" >&5 | |
5859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5860 | ||
5861 | ac_cv_working_alloca_h=no | |
5862 | fi | |
5863 | rm -f conftest.err conftest.$ac_objext \ | |
5864 | conftest$ac_exeext conftest.$ac_ext | |
5865 | fi | |
5866 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
5867 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
5868 | if test $ac_cv_working_alloca_h = yes; then | |
5869 | ||
5870 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 5871 | #define HAVE_ALLOCA_H 1 |
6bf9431b | 5872 | _ACEOF |
252b5132 RH |
5873 | |
5874 | fi | |
5875 | ||
6bf9431b BE |
5876 | echo "$as_me:$LINENO: checking for alloca" >&5 |
5877 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
5878 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
5879 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5880 | else |
6bf9431b BE |
5881 | cat >conftest.$ac_ext <<_ACEOF |
5882 | /* confdefs.h. */ | |
5883 | _ACEOF | |
5884 | cat confdefs.h >>conftest.$ac_ext | |
5885 | cat >>conftest.$ac_ext <<_ACEOF | |
5886 | /* end confdefs.h. */ | |
252b5132 RH |
5887 | #ifdef __GNUC__ |
5888 | # define alloca __builtin_alloca | |
5889 | #else | |
5890 | # ifdef _MSC_VER | |
5891 | # include <malloc.h> | |
5892 | # define alloca _alloca | |
5893 | # else | |
5894 | # if HAVE_ALLOCA_H | |
5895 | # include <alloca.h> | |
5896 | # else | |
5897 | # ifdef _AIX | |
5898 | #pragma alloca | |
5899 | # else | |
5900 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
5901 | char *alloca (); | |
5902 | # endif | |
5903 | # endif | |
5904 | # endif | |
5905 | # endif | |
5906 | #endif | |
5907 | ||
6bf9431b BE |
5908 | int |
5909 | main () | |
5910 | { | |
5911 | char *p = (char *) alloca (1); | |
5912 | ; | |
5913 | return 0; | |
5914 | } | |
5915 | _ACEOF | |
5916 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5917 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5918 | (eval $ac_link) 2>conftest.er1 | |
5919 | ac_status=$? | |
5920 | grep -v '^ *+' conftest.er1 >conftest.err | |
5921 | rm -f conftest.er1 | |
5922 | cat conftest.err >&5 | |
5923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5924 | (exit $ac_status); } && | |
5925 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5927 | (eval $ac_try) 2>&5 | |
5928 | ac_status=$? | |
5929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5930 | (exit $ac_status); }; } && | |
5931 | { ac_try='test -s conftest$ac_exeext' | |
5932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5933 | (eval $ac_try) 2>&5 | |
5934 | ac_status=$? | |
5935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5936 | (exit $ac_status); }; }; then | |
252b5132 RH |
5937 | ac_cv_func_alloca_works=yes |
5938 | else | |
6bf9431b BE |
5939 | echo "$as_me: failed program was:" >&5 |
5940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5941 | ||
5942 | ac_cv_func_alloca_works=no | |
252b5132 | 5943 | fi |
6bf9431b BE |
5944 | rm -f conftest.err conftest.$ac_objext \ |
5945 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 5946 | fi |
6bf9431b BE |
5947 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
5948 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
252b5132 | 5949 | |
252b5132 | 5950 | if test $ac_cv_func_alloca_works = yes; then |
252b5132 | 5951 | |
6bf9431b BE |
5952 | cat >>confdefs.h <<\_ACEOF |
5953 | #define HAVE_ALLOCA 1 | |
5954 | _ACEOF | |
252b5132 | 5955 | |
6bf9431b | 5956 | else |
252b5132 | 5957 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
6bf9431b BE |
5958 | # that cause trouble. Some versions do not even contain alloca or |
5959 | # contain a buggy version. If you still want to use their alloca, | |
5960 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
5961 | ||
5962 | ALLOCA=alloca.$ac_objext | |
5963 | ||
5964 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 5965 | #define C_ALLOCA 1 |
6bf9431b | 5966 | _ACEOF |
252b5132 RH |
5967 | |
5968 | ||
6bf9431b BE |
5969 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
5970 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
5971 | if test "${ac_cv_os_cray+set}" = set; then | |
5972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5973 | else |
6bf9431b BE |
5974 | cat >conftest.$ac_ext <<_ACEOF |
5975 | /* confdefs.h. */ | |
5976 | _ACEOF | |
5977 | cat confdefs.h >>conftest.$ac_ext | |
5978 | cat >>conftest.$ac_ext <<_ACEOF | |
5979 | /* end confdefs.h. */ | |
252b5132 RH |
5980 | #if defined(CRAY) && ! defined(CRAY2) |
5981 | webecray | |
5982 | #else | |
5983 | wenotbecray | |
5984 | #endif | |
5985 | ||
6bf9431b | 5986 | _ACEOF |
252b5132 | 5987 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6bf9431b | 5988 | $EGREP "webecray" >/dev/null 2>&1; then |
252b5132 RH |
5989 | ac_cv_os_cray=yes |
5990 | else | |
252b5132 RH |
5991 | ac_cv_os_cray=no |
5992 | fi | |
5993 | rm -f conftest* | |
5994 | ||
5995 | fi | |
6bf9431b BE |
5996 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
5997 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
252b5132 | 5998 | if test $ac_cv_os_cray = yes; then |
6bf9431b BE |
5999 | for ac_func in _getb67 GETB67 getb67; do |
6000 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6001 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6002 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6003 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6005 | else | |
6006 | cat >conftest.$ac_ext <<_ACEOF | |
6007 | /* confdefs.h. */ | |
6008 | _ACEOF | |
6009 | cat confdefs.h >>conftest.$ac_ext | |
6010 | cat >>conftest.$ac_ext <<_ACEOF | |
6011 | /* end confdefs.h. */ | |
6012 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6013 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6014 | #define $ac_func innocuous_$ac_func | |
6015 | ||
252b5132 | 6016 | /* System header to define __stub macros and hopefully few prototypes, |
6bf9431b BE |
6017 | which can conflict with char $ac_func (); below. |
6018 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6019 | <limits.h> exists even on freestanding compilers. */ | |
6020 | ||
6021 | #ifdef __STDC__ | |
6022 | # include <limits.h> | |
6023 | #else | |
6024 | # include <assert.h> | |
6025 | #endif | |
252b5132 | 6026 | |
6bf9431b | 6027 | #undef $ac_func |
252b5132 | 6028 | |
6bf9431b BE |
6029 | /* Override any gcc2 internal prototype to avoid an error. */ |
6030 | #ifdef __cplusplus | |
6031 | extern "C" | |
6032 | { | |
6033 | #endif | |
6034 | /* We use char because int might match the return type of a gcc2 | |
6035 | builtin and then its argument prototype would still apply. */ | |
6036 | char $ac_func (); | |
252b5132 RH |
6037 | /* The GNU C library defines this for functions which it implements |
6038 | to always fail with ENOSYS. Some functions are actually named | |
6039 | something starting with __ and the normal name is an alias. */ | |
6040 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6041 | choke me | |
6042 | #else | |
6bf9431b BE |
6043 | char (*f) () = $ac_func; |
6044 | #endif | |
6045 | #ifdef __cplusplus | |
6046 | } | |
252b5132 RH |
6047 | #endif |
6048 | ||
6bf9431b BE |
6049 | int |
6050 | main () | |
6051 | { | |
6052 | return f != $ac_func; | |
6053 | ; | |
6054 | return 0; | |
6055 | } | |
6056 | _ACEOF | |
6057 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6058 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6059 | (eval $ac_link) 2>conftest.er1 | |
6060 | ac_status=$? | |
6061 | grep -v '^ *+' conftest.er1 >conftest.err | |
6062 | rm -f conftest.er1 | |
6063 | cat conftest.err >&5 | |
6064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6065 | (exit $ac_status); } && | |
6066 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6068 | (eval $ac_try) 2>&5 | |
6069 | ac_status=$? | |
6070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6071 | (exit $ac_status); }; } && | |
6072 | { ac_try='test -s conftest$ac_exeext' | |
6073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6074 | (eval $ac_try) 2>&5 | |
6075 | ac_status=$? | |
6076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6077 | (exit $ac_status); }; }; then | |
6078 | eval "$as_ac_var=yes" | |
6079 | else | |
6080 | echo "$as_me: failed program was:" >&5 | |
6081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6082 | ||
6083 | eval "$as_ac_var=no" | |
6084 | fi | |
6085 | rm -f conftest.err conftest.$ac_objext \ | |
6086 | conftest$ac_exeext conftest.$ac_ext | |
6087 | fi | |
6088 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6089 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6090 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6091 | ||
6092 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 6093 | #define CRAY_STACKSEG_END $ac_func |
6bf9431b | 6094 | _ACEOF |
252b5132 | 6095 | |
6bf9431b | 6096 | break |
252b5132 RH |
6097 | fi |
6098 | ||
6bf9431b | 6099 | done |
252b5132 RH |
6100 | fi |
6101 | ||
6bf9431b BE |
6102 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6103 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
6104 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
6105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
6106 | else |
6107 | if test "$cross_compiling" = yes; then | |
6108 | ac_cv_c_stack_direction=0 | |
6109 | else | |
6bf9431b BE |
6110 | cat >conftest.$ac_ext <<_ACEOF |
6111 | /* confdefs.h. */ | |
6112 | _ACEOF | |
6113 | cat confdefs.h >>conftest.$ac_ext | |
6114 | cat >>conftest.$ac_ext <<_ACEOF | |
6115 | /* end confdefs.h. */ | |
6116 | int | |
252b5132 RH |
6117 | find_stack_direction () |
6118 | { | |
6119 | static char *addr = 0; | |
6120 | auto char dummy; | |
6121 | if (addr == 0) | |
6122 | { | |
6123 | addr = &dummy; | |
6124 | return find_stack_direction (); | |
6125 | } | |
6126 | else | |
6127 | return (&dummy > addr) ? 1 : -1; | |
6128 | } | |
6bf9431b BE |
6129 | |
6130 | int | |
252b5132 RH |
6131 | main () |
6132 | { | |
6bf9431b | 6133 | exit (find_stack_direction () < 0); |
252b5132 | 6134 | } |
6bf9431b BE |
6135 | _ACEOF |
6136 | rm -f conftest$ac_exeext | |
6137 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6138 | (eval $ac_link) 2>&5 | |
6139 | ac_status=$? | |
6140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6141 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6143 | (eval $ac_try) 2>&5 | |
6144 | ac_status=$? | |
6145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6146 | (exit $ac_status); }; }; then | |
252b5132 RH |
6147 | ac_cv_c_stack_direction=1 |
6148 | else | |
6bf9431b BE |
6149 | echo "$as_me: program exited with status $ac_status" >&5 |
6150 | echo "$as_me: failed program was:" >&5 | |
6151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6152 | ||
6153 | ( exit $ac_status ) | |
6154 | ac_cv_c_stack_direction=-1 | |
252b5132 | 6155 | fi |
6bf9431b | 6156 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 6157 | fi |
252b5132 | 6158 | fi |
6bf9431b BE |
6159 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
6160 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
252b5132 | 6161 | |
6bf9431b | 6162 | cat >>confdefs.h <<_ACEOF |
252b5132 | 6163 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
6bf9431b BE |
6164 | _ACEOF |
6165 | ||
252b5132 RH |
6166 | |
6167 | fi | |
6168 | ||
6bf9431b BE |
6169 | |
6170 | ||
6171 | for ac_header in stdlib.h unistd.h | |
252b5132 | 6172 | do |
6bf9431b BE |
6173 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6174 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6175 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6176 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6177 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6179 | fi | |
6180 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6181 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6182 | else | |
6183 | # Is the header compilable? | |
6184 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6185 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6186 | cat >conftest.$ac_ext <<_ACEOF | |
6187 | /* confdefs.h. */ | |
6188 | _ACEOF | |
6189 | cat confdefs.h >>conftest.$ac_ext | |
6190 | cat >>conftest.$ac_ext <<_ACEOF | |
6191 | /* end confdefs.h. */ | |
6192 | $ac_includes_default | |
6193 | #include <$ac_header> | |
6194 | _ACEOF | |
6195 | rm -f conftest.$ac_objext | |
6196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6197 | (eval $ac_compile) 2>conftest.er1 | |
6198 | ac_status=$? | |
6199 | grep -v '^ *+' conftest.er1 >conftest.err | |
6200 | rm -f conftest.er1 | |
6201 | cat conftest.err >&5 | |
6202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6203 | (exit $ac_status); } && | |
6204 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6206 | (eval $ac_try) 2>&5 | |
6207 | ac_status=$? | |
6208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6209 | (exit $ac_status); }; } && | |
6210 | { ac_try='test -s conftest.$ac_objext' | |
6211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6212 | (eval $ac_try) 2>&5 | |
6213 | ac_status=$? | |
6214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6215 | (exit $ac_status); }; }; then | |
6216 | ac_header_compiler=yes | |
6217 | else | |
6218 | echo "$as_me: failed program was:" >&5 | |
6219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6220 | ||
6221 | ac_header_compiler=no | |
6222 | fi | |
6223 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6224 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6225 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6226 | ||
6227 | # Is the header present? | |
6228 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6229 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6230 | cat >conftest.$ac_ext <<_ACEOF | |
6231 | /* confdefs.h. */ | |
6232 | _ACEOF | |
6233 | cat confdefs.h >>conftest.$ac_ext | |
6234 | cat >>conftest.$ac_ext <<_ACEOF | |
6235 | /* end confdefs.h. */ | |
6236 | #include <$ac_header> | |
6237 | _ACEOF | |
6238 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6239 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6240 | ac_status=$? | |
6241 | grep -v '^ *+' conftest.er1 >conftest.err | |
6242 | rm -f conftest.er1 | |
6243 | cat conftest.err >&5 | |
6244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6245 | (exit $ac_status); } >/dev/null; then | |
6246 | if test -s conftest.err; then | |
6247 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6248 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6249 | else | |
6250 | ac_cpp_err= | |
6251 | fi | |
252b5132 | 6252 | else |
6bf9431b | 6253 | ac_cpp_err=yes |
252b5132 | 6254 | fi |
6bf9431b BE |
6255 | if test -z "$ac_cpp_err"; then |
6256 | ac_header_preproc=yes | |
6257 | else | |
6258 | echo "$as_me: failed program was:" >&5 | |
6259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6260 | ||
6261 | ac_header_preproc=no | |
252b5132 | 6262 | fi |
6bf9431b BE |
6263 | rm -f conftest.err conftest.$ac_ext |
6264 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6265 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6266 | ||
6267 | # So? What about this header? | |
6268 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6269 | yes:no: ) | |
6270 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6271 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6272 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6273 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6274 | ac_header_preproc=yes | |
6275 | ;; | |
6276 | no:yes:* ) | |
6277 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6278 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6279 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6280 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6281 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6282 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6283 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6284 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6285 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6286 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6287 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6288 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6289 | ( | |
6290 | cat <<\_ASBOX | |
6291 | ## ------------------------------------------ ## | |
6292 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6293 | ## ------------------------------------------ ## | |
6294 | _ASBOX | |
6295 | ) | | |
6296 | sed "s/^/$as_me: WARNING: /" >&2 | |
6297 | ;; | |
6298 | esac | |
6299 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6300 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6301 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6303 | else |
6bf9431b BE |
6304 | eval "$as_ac_Header=\$ac_header_preproc" |
6305 | fi | |
6306 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6307 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6308 | ||
252b5132 | 6309 | fi |
6bf9431b BE |
6310 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6311 | cat >>confdefs.h <<_ACEOF | |
6312 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6313 | _ACEOF | |
6314 | ||
6315 | fi | |
6316 | ||
252b5132 RH |
6317 | done |
6318 | ||
6bf9431b | 6319 | |
252b5132 RH |
6320 | for ac_func in getpagesize |
6321 | do | |
6bf9431b BE |
6322 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6323 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6324 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6325 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6327 | else | |
6328 | cat >conftest.$ac_ext <<_ACEOF | |
6329 | /* confdefs.h. */ | |
6330 | _ACEOF | |
6331 | cat confdefs.h >>conftest.$ac_ext | |
6332 | cat >>conftest.$ac_ext <<_ACEOF | |
6333 | /* end confdefs.h. */ | |
6334 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6335 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6336 | #define $ac_func innocuous_$ac_func | |
6337 | ||
252b5132 | 6338 | /* System header to define __stub macros and hopefully few prototypes, |
6bf9431b BE |
6339 | which can conflict with char $ac_func (); below. |
6340 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6341 | <limits.h> exists even on freestanding compilers. */ | |
6342 | ||
6343 | #ifdef __STDC__ | |
6344 | # include <limits.h> | |
6345 | #else | |
6346 | # include <assert.h> | |
6347 | #endif | |
252b5132 | 6348 | |
6bf9431b | 6349 | #undef $ac_func |
252b5132 | 6350 | |
6bf9431b BE |
6351 | /* Override any gcc2 internal prototype to avoid an error. */ |
6352 | #ifdef __cplusplus | |
6353 | extern "C" | |
6354 | { | |
6355 | #endif | |
6356 | /* We use char because int might match the return type of a gcc2 | |
6357 | builtin and then its argument prototype would still apply. */ | |
6358 | char $ac_func (); | |
252b5132 RH |
6359 | /* The GNU C library defines this for functions which it implements |
6360 | to always fail with ENOSYS. Some functions are actually named | |
6361 | something starting with __ and the normal name is an alias. */ | |
6362 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6363 | choke me | |
6364 | #else | |
6bf9431b BE |
6365 | char (*f) () = $ac_func; |
6366 | #endif | |
6367 | #ifdef __cplusplus | |
6368 | } | |
252b5132 RH |
6369 | #endif |
6370 | ||
6bf9431b BE |
6371 | int |
6372 | main () | |
6373 | { | |
6374 | return f != $ac_func; | |
6375 | ; | |
6376 | return 0; | |
6377 | } | |
6378 | _ACEOF | |
6379 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6381 | (eval $ac_link) 2>conftest.er1 | |
6382 | ac_status=$? | |
6383 | grep -v '^ *+' conftest.er1 >conftest.err | |
6384 | rm -f conftest.er1 | |
6385 | cat conftest.err >&5 | |
6386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6387 | (exit $ac_status); } && | |
6388 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6390 | (eval $ac_try) 2>&5 | |
6391 | ac_status=$? | |
6392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6393 | (exit $ac_status); }; } && | |
6394 | { ac_try='test -s conftest$ac_exeext' | |
6395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6396 | (eval $ac_try) 2>&5 | |
6397 | ac_status=$? | |
6398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6399 | (exit $ac_status); }; }; then | |
6400 | eval "$as_ac_var=yes" | |
6401 | else | |
6402 | echo "$as_me: failed program was:" >&5 | |
6403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6404 | ||
6405 | eval "$as_ac_var=no" | |
6406 | fi | |
6407 | rm -f conftest.err conftest.$ac_objext \ | |
6408 | conftest$ac_exeext conftest.$ac_ext | |
6409 | fi | |
6410 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6411 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6412 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6413 | cat >>confdefs.h <<_ACEOF | |
6414 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6415 | _ACEOF | |
252b5132 | 6416 | |
252b5132 RH |
6417 | fi |
6418 | done | |
6419 | ||
6bf9431b BE |
6420 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
6421 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
6422 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
6423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
6424 | else |
6425 | if test "$cross_compiling" = yes; then | |
6426 | ac_cv_func_mmap_fixed_mapped=no | |
6427 | else | |
6bf9431b BE |
6428 | cat >conftest.$ac_ext <<_ACEOF |
6429 | /* confdefs.h. */ | |
6430 | _ACEOF | |
6431 | cat confdefs.h >>conftest.$ac_ext | |
6432 | cat >>conftest.$ac_ext <<_ACEOF | |
6433 | /* end confdefs.h. */ | |
6434 | $ac_includes_default | |
6435 | /* malloc might have been renamed as rpl_malloc. */ | |
6436 | #undef malloc | |
252b5132 RH |
6437 | |
6438 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
6439 | Here is a matrix of mmap possibilities: | |
6440 | mmap private not fixed | |
6441 | mmap private fixed at somewhere currently unmapped | |
6442 | mmap private fixed at somewhere already mapped | |
6443 | mmap shared not fixed | |
6444 | mmap shared fixed at somewhere currently unmapped | |
6445 | mmap shared fixed at somewhere already mapped | |
6446 | For private mappings, we should verify that changes cannot be read() | |
6447 | back from the file, nor mmap's back from the file at a different | |
6448 | address. (There have been systems where private was not correctly | |
6449 | implemented like the infamous i386 svr4.0, and systems where the | |
6bf9431b | 6450 | VM page cache was not coherent with the file system buffer cache |
252b5132 RH |
6451 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
6452 | For shared mappings, we should conversely verify that changes get | |
6bf9431b | 6453 | propagated back to all the places they're supposed to be. |
252b5132 RH |
6454 | |
6455 | Grep wants private fixed already mapped. | |
6456 | The main things grep needs to know about mmap are: | |
6457 | * does it exist and is it safe to write into the mmap'd area | |
6458 | * how to use it (BSD variants) */ | |
6bf9431b | 6459 | |
252b5132 RH |
6460 | #include <fcntl.h> |
6461 | #include <sys/mman.h> | |
6462 | ||
6bf9431b BE |
6463 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
6464 | char *malloc (); | |
6465 | #endif | |
252b5132 | 6466 | |
6bf9431b BE |
6467 | /* This mess was copied from the GNU getpagesize.h. */ |
6468 | #if !HAVE_GETPAGESIZE | |
252b5132 | 6469 | /* Assume that all systems that can run configure have sys/param.h. */ |
6bf9431b | 6470 | # if !HAVE_SYS_PARAM_H |
252b5132 RH |
6471 | # define HAVE_SYS_PARAM_H 1 |
6472 | # endif | |
6473 | ||
6474 | # ifdef _SC_PAGESIZE | |
6475 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6476 | # else /* no _SC_PAGESIZE */ | |
6bf9431b | 6477 | # if HAVE_SYS_PARAM_H |
252b5132 RH |
6478 | # include <sys/param.h> |
6479 | # ifdef EXEC_PAGESIZE | |
6480 | # define getpagesize() EXEC_PAGESIZE | |
6481 | # else /* no EXEC_PAGESIZE */ | |
6482 | # ifdef NBPG | |
6483 | # define getpagesize() NBPG * CLSIZE | |
6484 | # ifndef CLSIZE | |
6485 | # define CLSIZE 1 | |
6486 | # endif /* no CLSIZE */ | |
6487 | # else /* no NBPG */ | |
6488 | # ifdef NBPC | |
6489 | # define getpagesize() NBPC | |
6490 | # else /* no NBPC */ | |
6491 | # ifdef PAGESIZE | |
6492 | # define getpagesize() PAGESIZE | |
6493 | # endif /* PAGESIZE */ | |
6494 | # endif /* no NBPC */ | |
6495 | # endif /* no NBPG */ | |
6496 | # endif /* no EXEC_PAGESIZE */ | |
6497 | # else /* no HAVE_SYS_PARAM_H */ | |
6498 | # define getpagesize() 8192 /* punt totally */ | |
6499 | # endif /* no HAVE_SYS_PARAM_H */ | |
6500 | # endif /* no _SC_PAGESIZE */ | |
6501 | ||
6502 | #endif /* no HAVE_GETPAGESIZE */ | |
6503 | ||
252b5132 | 6504 | int |
6bf9431b | 6505 | main () |
252b5132 | 6506 | { |
6bf9431b BE |
6507 | char *data, *data2, *data3; |
6508 | int i, pagesize; | |
6509 | int fd; | |
6510 | ||
6511 | pagesize = getpagesize (); | |
6512 | ||
6513 | /* First, make a file with some known garbage in it. */ | |
6514 | data = (char *) malloc (pagesize); | |
6515 | if (!data) | |
6516 | exit (1); | |
6517 | for (i = 0; i < pagesize; ++i) | |
6518 | *(data + i) = rand (); | |
6519 | umask (0); | |
6520 | fd = creat ("conftest.mmap", 0600); | |
6521 | if (fd < 0) | |
6522 | exit (1); | |
6523 | if (write (fd, data, pagesize) != pagesize) | |
6524 | exit (1); | |
6525 | close (fd); | |
6526 | ||
6527 | /* Next, try to mmap the file at a fixed address which already has | |
6528 | something else allocated at it. If we can, also make sure that | |
6529 | we see the same garbage. */ | |
6530 | fd = open ("conftest.mmap", O_RDWR); | |
6531 | if (fd < 0) | |
6532 | exit (1); | |
6533 | data2 = (char *) malloc (2 * pagesize); | |
6534 | if (!data2) | |
6535 | exit (1); | |
6536 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
6537 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
6538 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
6539 | exit (1); | |
6540 | for (i = 0; i < pagesize; ++i) | |
6541 | if (*(data + i) != *(data2 + i)) | |
6542 | exit (1); | |
6543 | ||
6544 | /* Finally, make sure that changes to the mapped area do not | |
6545 | percolate back to the file as seen by read(). (This is a bug on | |
6546 | some variants of i386 svr4.0.) */ | |
6547 | for (i = 0; i < pagesize; ++i) | |
6548 | *(data2 + i) = *(data2 + i) + 1; | |
6549 | data3 = (char *) malloc (pagesize); | |
6550 | if (!data3) | |
6551 | exit (1); | |
6552 | if (read (fd, data3, pagesize) != pagesize) | |
6553 | exit (1); | |
6554 | for (i = 0; i < pagesize; ++i) | |
6555 | if (*(data + i) != *(data3 + i)) | |
6556 | exit (1); | |
6557 | close (fd); | |
6558 | exit (0); | |
252b5132 | 6559 | } |
6bf9431b BE |
6560 | _ACEOF |
6561 | rm -f conftest$ac_exeext | |
6562 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6563 | (eval $ac_link) 2>&5 | |
6564 | ac_status=$? | |
6565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6566 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6568 | (eval $ac_try) 2>&5 | |
6569 | ac_status=$? | |
6570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6571 | (exit $ac_status); }; }; then | |
252b5132 RH |
6572 | ac_cv_func_mmap_fixed_mapped=yes |
6573 | else | |
6bf9431b BE |
6574 | echo "$as_me: program exited with status $ac_status" >&5 |
6575 | echo "$as_me: failed program was:" >&5 | |
6576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6577 | ||
6578 | ( exit $ac_status ) | |
6579 | ac_cv_func_mmap_fixed_mapped=no | |
252b5132 | 6580 | fi |
6bf9431b | 6581 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 6582 | fi |
252b5132 | 6583 | fi |
6bf9431b BE |
6584 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
6585 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
252b5132 | 6586 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
6bf9431b BE |
6587 | |
6588 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 6589 | #define HAVE_MMAP 1 |
6bf9431b | 6590 | _ACEOF |
252b5132 RH |
6591 | |
6592 | fi | |
6bf9431b BE |
6593 | rm -f conftest.mmap |
6594 | ||
6595 | ||
6596 | ||
6597 | ||
6598 | ||
6599 | ||
6600 | ||
6601 | ||
6602 | ||
252b5132 | 6603 | |
6bf9431b BE |
6604 | |
6605 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
252b5132 RH |
6606 | unistd.h values.h sys/param.h |
6607 | do | |
6bf9431b BE |
6608 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6609 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6610 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6611 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6612 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6614 | fi | |
6615 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6616 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6617 | else | |
6618 | # Is the header compilable? | |
6619 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6620 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6621 | cat >conftest.$ac_ext <<_ACEOF | |
6622 | /* confdefs.h. */ | |
6623 | _ACEOF | |
6624 | cat confdefs.h >>conftest.$ac_ext | |
6625 | cat >>conftest.$ac_ext <<_ACEOF | |
6626 | /* end confdefs.h. */ | |
6627 | $ac_includes_default | |
6628 | #include <$ac_header> | |
6629 | _ACEOF | |
6630 | rm -f conftest.$ac_objext | |
6631 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6632 | (eval $ac_compile) 2>conftest.er1 | |
6633 | ac_status=$? | |
6634 | grep -v '^ *+' conftest.er1 >conftest.err | |
6635 | rm -f conftest.er1 | |
6636 | cat conftest.err >&5 | |
6637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6638 | (exit $ac_status); } && | |
6639 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6641 | (eval $ac_try) 2>&5 | |
6642 | ac_status=$? | |
6643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6644 | (exit $ac_status); }; } && | |
6645 | { ac_try='test -s conftest.$ac_objext' | |
6646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6647 | (eval $ac_try) 2>&5 | |
6648 | ac_status=$? | |
6649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6650 | (exit $ac_status); }; }; then | |
6651 | ac_header_compiler=yes | |
6652 | else | |
6653 | echo "$as_me: failed program was:" >&5 | |
6654 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6655 | ||
6656 | ac_header_compiler=no | |
6657 | fi | |
6658 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6659 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6660 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6661 | ||
6662 | # Is the header present? | |
6663 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6664 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6665 | cat >conftest.$ac_ext <<_ACEOF | |
6666 | /* confdefs.h. */ | |
6667 | _ACEOF | |
6668 | cat confdefs.h >>conftest.$ac_ext | |
6669 | cat >>conftest.$ac_ext <<_ACEOF | |
6670 | /* end confdefs.h. */ | |
6671 | #include <$ac_header> | |
6672 | _ACEOF | |
6673 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6674 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6675 | ac_status=$? | |
6676 | grep -v '^ *+' conftest.er1 >conftest.err | |
6677 | rm -f conftest.er1 | |
6678 | cat conftest.err >&5 | |
6679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6680 | (exit $ac_status); } >/dev/null; then | |
6681 | if test -s conftest.err; then | |
6682 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6683 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6684 | else | |
6685 | ac_cpp_err= | |
6686 | fi | |
252b5132 | 6687 | else |
6bf9431b | 6688 | ac_cpp_err=yes |
252b5132 | 6689 | fi |
6bf9431b BE |
6690 | if test -z "$ac_cpp_err"; then |
6691 | ac_header_preproc=yes | |
6692 | else | |
6693 | echo "$as_me: failed program was:" >&5 | |
6694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6695 | ||
6696 | ac_header_preproc=no | |
252b5132 | 6697 | fi |
6bf9431b BE |
6698 | rm -f conftest.err conftest.$ac_ext |
6699 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6700 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6701 | ||
6702 | # So? What about this header? | |
6703 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6704 | yes:no: ) | |
6705 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6706 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6707 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6708 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6709 | ac_header_preproc=yes | |
6710 | ;; | |
6711 | no:yes:* ) | |
6712 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6713 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6714 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6715 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6716 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6717 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6718 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6719 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6720 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6721 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6722 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6723 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6724 | ( | |
6725 | cat <<\_ASBOX | |
6726 | ## ------------------------------------------ ## | |
6727 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6728 | ## ------------------------------------------ ## | |
6729 | _ASBOX | |
6730 | ) | | |
6731 | sed "s/^/$as_me: WARNING: /" >&2 | |
6732 | ;; | |
6733 | esac | |
6734 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6735 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6736 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6738 | else |
6bf9431b BE |
6739 | eval "$as_ac_Header=\$ac_header_preproc" |
6740 | fi | |
6741 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6742 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6743 | ||
252b5132 | 6744 | fi |
6bf9431b BE |
6745 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6746 | cat >>confdefs.h <<_ACEOF | |
6747 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6748 | _ACEOF | |
6749 | ||
6750 | fi | |
6751 | ||
252b5132 RH |
6752 | done |
6753 | ||
6bf9431b BE |
6754 | |
6755 | ||
6756 | ||
6757 | ||
6758 | ||
6759 | ||
6760 | ||
6761 | ||
6762 | ||
6763 | ||
6764 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
252b5132 RH |
6765 | __argz_count __argz_stringify __argz_next |
6766 | do | |
6bf9431b BE |
6767 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6768 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6769 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6770 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6772 | else | |
6773 | cat >conftest.$ac_ext <<_ACEOF | |
6774 | /* confdefs.h. */ | |
6775 | _ACEOF | |
6776 | cat confdefs.h >>conftest.$ac_ext | |
6777 | cat >>conftest.$ac_ext <<_ACEOF | |
6778 | /* end confdefs.h. */ | |
6779 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6780 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6781 | #define $ac_func innocuous_$ac_func | |
6782 | ||
252b5132 | 6783 | /* System header to define __stub macros and hopefully few prototypes, |
6bf9431b BE |
6784 | which can conflict with char $ac_func (); below. |
6785 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6786 | <limits.h> exists even on freestanding compilers. */ | |
252b5132 | 6787 | |
6bf9431b BE |
6788 | #ifdef __STDC__ |
6789 | # include <limits.h> | |
6790 | #else | |
6791 | # include <assert.h> | |
6792 | #endif | |
252b5132 | 6793 | |
6bf9431b BE |
6794 | #undef $ac_func |
6795 | ||
6796 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6797 | #ifdef __cplusplus | |
6798 | extern "C" | |
6799 | { | |
6800 | #endif | |
6801 | /* We use char because int might match the return type of a gcc2 | |
6802 | builtin and then its argument prototype would still apply. */ | |
6803 | char $ac_func (); | |
252b5132 RH |
6804 | /* The GNU C library defines this for functions which it implements |
6805 | to always fail with ENOSYS. Some functions are actually named | |
6806 | something starting with __ and the normal name is an alias. */ | |
6807 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6808 | choke me | |
6809 | #else | |
6bf9431b BE |
6810 | char (*f) () = $ac_func; |
6811 | #endif | |
6812 | #ifdef __cplusplus | |
6813 | } | |
252b5132 RH |
6814 | #endif |
6815 | ||
6bf9431b BE |
6816 | int |
6817 | main () | |
6818 | { | |
6819 | return f != $ac_func; | |
6820 | ; | |
6821 | return 0; | |
6822 | } | |
6823 | _ACEOF | |
6824 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6825 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6826 | (eval $ac_link) 2>conftest.er1 | |
6827 | ac_status=$? | |
6828 | grep -v '^ *+' conftest.er1 >conftest.err | |
6829 | rm -f conftest.er1 | |
6830 | cat conftest.err >&5 | |
6831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6832 | (exit $ac_status); } && | |
6833 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6835 | (eval $ac_try) 2>&5 | |
6836 | ac_status=$? | |
6837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6838 | (exit $ac_status); }; } && | |
6839 | { ac_try='test -s conftest$ac_exeext' | |
6840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6841 | (eval $ac_try) 2>&5 | |
6842 | ac_status=$? | |
6843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6844 | (exit $ac_status); }; }; then | |
6845 | eval "$as_ac_var=yes" | |
6846 | else | |
6847 | echo "$as_me: failed program was:" >&5 | |
6848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6849 | ||
6850 | eval "$as_ac_var=no" | |
6851 | fi | |
6852 | rm -f conftest.err conftest.$ac_objext \ | |
6853 | conftest$ac_exeext conftest.$ac_ext | |
6854 | fi | |
6855 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6856 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6857 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6858 | cat >>confdefs.h <<_ACEOF | |
6859 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6860 | _ACEOF | |
252b5132 | 6861 | |
252b5132 RH |
6862 | fi |
6863 | done | |
6864 | ||
6865 | ||
6866 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
6bf9431b BE |
6867 | |
6868 | for ac_func in stpcpy | |
252b5132 | 6869 | do |
6bf9431b BE |
6870 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6871 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6872 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6873 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6875 | else | |
6876 | cat >conftest.$ac_ext <<_ACEOF | |
6877 | /* confdefs.h. */ | |
6878 | _ACEOF | |
6879 | cat confdefs.h >>conftest.$ac_ext | |
6880 | cat >>conftest.$ac_ext <<_ACEOF | |
6881 | /* end confdefs.h. */ | |
6882 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6883 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6884 | #define $ac_func innocuous_$ac_func | |
6885 | ||
252b5132 | 6886 | /* System header to define __stub macros and hopefully few prototypes, |
6bf9431b BE |
6887 | which can conflict with char $ac_func (); below. |
6888 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6889 | <limits.h> exists even on freestanding compilers. */ | |
252b5132 | 6890 | |
6bf9431b BE |
6891 | #ifdef __STDC__ |
6892 | # include <limits.h> | |
6893 | #else | |
6894 | # include <assert.h> | |
6895 | #endif | |
252b5132 | 6896 | |
6bf9431b BE |
6897 | #undef $ac_func |
6898 | ||
6899 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6900 | #ifdef __cplusplus | |
6901 | extern "C" | |
6902 | { | |
6903 | #endif | |
6904 | /* We use char because int might match the return type of a gcc2 | |
6905 | builtin and then its argument prototype would still apply. */ | |
6906 | char $ac_func (); | |
252b5132 RH |
6907 | /* The GNU C library defines this for functions which it implements |
6908 | to always fail with ENOSYS. Some functions are actually named | |
6909 | something starting with __ and the normal name is an alias. */ | |
6910 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6911 | choke me | |
6912 | #else | |
6bf9431b BE |
6913 | char (*f) () = $ac_func; |
6914 | #endif | |
6915 | #ifdef __cplusplus | |
6916 | } | |
252b5132 RH |
6917 | #endif |
6918 | ||
6bf9431b BE |
6919 | int |
6920 | main () | |
6921 | { | |
6922 | return f != $ac_func; | |
6923 | ; | |
6924 | return 0; | |
6925 | } | |
6926 | _ACEOF | |
6927 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6928 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6929 | (eval $ac_link) 2>conftest.er1 | |
6930 | ac_status=$? | |
6931 | grep -v '^ *+' conftest.er1 >conftest.err | |
6932 | rm -f conftest.er1 | |
6933 | cat conftest.err >&5 | |
6934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6935 | (exit $ac_status); } && | |
6936 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6938 | (eval $ac_try) 2>&5 | |
6939 | ac_status=$? | |
6940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6941 | (exit $ac_status); }; } && | |
6942 | { ac_try='test -s conftest$ac_exeext' | |
6943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6944 | (eval $ac_try) 2>&5 | |
6945 | ac_status=$? | |
6946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6947 | (exit $ac_status); }; }; then | |
6948 | eval "$as_ac_var=yes" | |
6949 | else | |
6950 | echo "$as_me: failed program was:" >&5 | |
6951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6952 | ||
6953 | eval "$as_ac_var=no" | |
6954 | fi | |
6955 | rm -f conftest.err conftest.$ac_objext \ | |
6956 | conftest$ac_exeext conftest.$ac_ext | |
6957 | fi | |
6958 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6959 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6960 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6961 | cat >>confdefs.h <<_ACEOF | |
6962 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6963 | _ACEOF | |
252b5132 | 6964 | |
252b5132 RH |
6965 | fi |
6966 | done | |
6967 | ||
6968 | fi | |
6969 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
6bf9431b BE |
6970 | |
6971 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 6972 | #define HAVE_STPCPY 1 |
6bf9431b | 6973 | _ACEOF |
252b5132 RH |
6974 | |
6975 | fi | |
6976 | ||
6977 | if test $ac_cv_header_locale_h = yes; then | |
6bf9431b BE |
6978 | echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
6979 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 | |
6980 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | |
6981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6982 | else | |
6983 | cat >conftest.$ac_ext <<_ACEOF | |
6984 | /* confdefs.h. */ | |
6985 | _ACEOF | |
6986 | cat confdefs.h >>conftest.$ac_ext | |
6987 | cat >>conftest.$ac_ext <<_ACEOF | |
6988 | /* end confdefs.h. */ | |
252b5132 | 6989 | #include <locale.h> |
6bf9431b BE |
6990 | int |
6991 | main () | |
6992 | { | |
252b5132 | 6993 | return LC_MESSAGES |
6bf9431b BE |
6994 | ; |
6995 | return 0; | |
6996 | } | |
6997 | _ACEOF | |
6998 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6999 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7000 | (eval $ac_link) 2>conftest.er1 | |
7001 | ac_status=$? | |
7002 | grep -v '^ *+' conftest.er1 >conftest.err | |
7003 | rm -f conftest.er1 | |
7004 | cat conftest.err >&5 | |
7005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7006 | (exit $ac_status); } && | |
7007 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7009 | (eval $ac_try) 2>&5 | |
7010 | ac_status=$? | |
7011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7012 | (exit $ac_status); }; } && | |
7013 | { ac_try='test -s conftest$ac_exeext' | |
7014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7015 | (eval $ac_try) 2>&5 | |
7016 | ac_status=$? | |
7017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7018 | (exit $ac_status); }; }; then | |
252b5132 RH |
7019 | am_cv_val_LC_MESSAGES=yes |
7020 | else | |
6bf9431b BE |
7021 | echo "$as_me: failed program was:" >&5 |
7022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7023 | ||
7024 | am_cv_val_LC_MESSAGES=no | |
252b5132 | 7025 | fi |
6bf9431b BE |
7026 | rm -f conftest.err conftest.$ac_objext \ |
7027 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 7028 | fi |
6bf9431b BE |
7029 | echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
7030 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 | |
252b5132 | 7031 | if test $am_cv_val_LC_MESSAGES = yes; then |
6bf9431b BE |
7032 | |
7033 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 7034 | #define HAVE_LC_MESSAGES 1 |
6bf9431b | 7035 | _ACEOF |
252b5132 RH |
7036 | |
7037 | fi | |
7038 | fi | |
6bf9431b BE |
7039 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
7040 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
252b5132 RH |
7041 | # Check whether --enable-nls or --disable-nls was given. |
7042 | if test "${enable_nls+set}" = set; then | |
7043 | enableval="$enable_nls" | |
7044 | USE_NLS=$enableval | |
7045 | else | |
7046 | USE_NLS=yes | |
6bf9431b BE |
7047 | fi; |
7048 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
7049 | echo "${ECHO_T}$USE_NLS" >&6 | |
252b5132 | 7050 | |
252b5132 RH |
7051 | |
7052 | USE_INCLUDED_LIBINTL=no | |
7053 | ||
7054 | if test "$USE_NLS" = "yes"; then | |
6bf9431b BE |
7055 | |
7056 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 7057 | #define ENABLE_NLS 1 |
6bf9431b BE |
7058 | _ACEOF |
7059 | ||
7060 | echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 | |
7061 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 | |
252b5132 | 7062 | |
6bf9431b | 7063 | # Check whether --with-included-gettext or --without-included-gettext was given. |
252b5132 RH |
7064 | if test "${with_included_gettext+set}" = set; then |
7065 | withval="$with_included_gettext" | |
7066 | nls_cv_force_use_gnu_gettext=$withval | |
7067 | else | |
7068 | nls_cv_force_use_gnu_gettext=no | |
6bf9431b BE |
7069 | fi; |
7070 | echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 | |
7071 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 | |
252b5132 RH |
7072 | |
7073 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
7074 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
7075 | nls_cv_header_intl= | |
7076 | nls_cv_header_libgt= | |
7077 | CATOBJEXT=NONE | |
7078 | ||
6bf9431b BE |
7079 | if test "${ac_cv_header_libintl_h+set}" = set; then |
7080 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
7081 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
7082 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
7083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7084 | fi | |
7085 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
7086 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
7087 | else | |
7088 | # Is the header compilable? | |
7089 | echo "$as_me:$LINENO: checking libintl.h usability" >&5 | |
7090 | echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 | |
7091 | cat >conftest.$ac_ext <<_ACEOF | |
7092 | /* confdefs.h. */ | |
7093 | _ACEOF | |
7094 | cat confdefs.h >>conftest.$ac_ext | |
7095 | cat >>conftest.$ac_ext <<_ACEOF | |
7096 | /* end confdefs.h. */ | |
7097 | $ac_includes_default | |
252b5132 | 7098 | #include <libintl.h> |
6bf9431b BE |
7099 | _ACEOF |
7100 | rm -f conftest.$ac_objext | |
7101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7102 | (eval $ac_compile) 2>conftest.er1 | |
7103 | ac_status=$? | |
7104 | grep -v '^ *+' conftest.er1 >conftest.err | |
7105 | rm -f conftest.er1 | |
7106 | cat conftest.err >&5 | |
7107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7108 | (exit $ac_status); } && | |
7109 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7111 | (eval $ac_try) 2>&5 | |
7112 | ac_status=$? | |
7113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7114 | (exit $ac_status); }; } && | |
7115 | { ac_try='test -s conftest.$ac_objext' | |
7116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7117 | (eval $ac_try) 2>&5 | |
7118 | ac_status=$? | |
7119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7120 | (exit $ac_status); }; }; then | |
7121 | ac_header_compiler=yes | |
7122 | else | |
7123 | echo "$as_me: failed program was:" >&5 | |
7124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7125 | ||
7126 | ac_header_compiler=no | |
7127 | fi | |
7128 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7129 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7130 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
7131 | ||
7132 | # Is the header present? | |
7133 | echo "$as_me:$LINENO: checking libintl.h presence" >&5 | |
7134 | echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 | |
7135 | cat >conftest.$ac_ext <<_ACEOF | |
7136 | /* confdefs.h. */ | |
7137 | _ACEOF | |
7138 | cat confdefs.h >>conftest.$ac_ext | |
7139 | cat >>conftest.$ac_ext <<_ACEOF | |
7140 | /* end confdefs.h. */ | |
7141 | #include <libintl.h> | |
7142 | _ACEOF | |
7143 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7144 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7145 | ac_status=$? | |
7146 | grep -v '^ *+' conftest.er1 >conftest.err | |
7147 | rm -f conftest.er1 | |
7148 | cat conftest.err >&5 | |
7149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7150 | (exit $ac_status); } >/dev/null; then | |
7151 | if test -s conftest.err; then | |
7152 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7153 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7154 | else | |
7155 | ac_cpp_err= | |
7156 | fi | |
252b5132 | 7157 | else |
6bf9431b | 7158 | ac_cpp_err=yes |
252b5132 | 7159 | fi |
6bf9431b BE |
7160 | if test -z "$ac_cpp_err"; then |
7161 | ac_header_preproc=yes | |
7162 | else | |
7163 | echo "$as_me: failed program was:" >&5 | |
7164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7165 | ||
7166 | ac_header_preproc=no | |
7167 | fi | |
7168 | rm -f conftest.err conftest.$ac_ext | |
7169 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7170 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7171 | ||
7172 | # So? What about this header? | |
7173 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7174 | yes:no: ) | |
7175 | { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7176 | echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7177 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 | |
7178 | echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} | |
7179 | ac_header_preproc=yes | |
7180 | ;; | |
7181 | no:yes:* ) | |
7182 | { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 | |
7183 | echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} | |
7184 | { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 | |
7185 | echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} | |
7186 | { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 | |
7187 | echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} | |
7188 | { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
7189 | echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
7190 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 | |
7191 | echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} | |
7192 | { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 | |
7193 | echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} | |
7194 | ( | |
7195 | cat <<\_ASBOX | |
7196 | ## ------------------------------------------ ## | |
7197 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7198 | ## ------------------------------------------ ## | |
7199 | _ASBOX | |
7200 | ) | | |
7201 | sed "s/^/$as_me: WARNING: /" >&2 | |
7202 | ;; | |
7203 | esac | |
7204 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
7205 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
7206 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
7207 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7208 | else | |
7209 | ac_cv_header_libintl_h=$ac_header_preproc | |
252b5132 | 7210 | fi |
6bf9431b BE |
7211 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 |
7212 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
7213 | ||
7214 | fi | |
7215 | if test $ac_cv_header_libintl_h = yes; then | |
7216 | echo "$as_me:$LINENO: checking for gettext in libc" >&5 | |
7217 | echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6 | |
7218 | if test "${gt_cv_func_gettext_libc+set}" = set; then | |
7219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7220 | else |
6bf9431b BE |
7221 | cat >conftest.$ac_ext <<_ACEOF |
7222 | /* confdefs.h. */ | |
7223 | _ACEOF | |
7224 | cat confdefs.h >>conftest.$ac_ext | |
7225 | cat >>conftest.$ac_ext <<_ACEOF | |
7226 | /* end confdefs.h. */ | |
252b5132 | 7227 | #include <libintl.h> |
6bf9431b BE |
7228 | int |
7229 | main () | |
7230 | { | |
252b5132 | 7231 | return (int) gettext ("") |
6bf9431b BE |
7232 | ; |
7233 | return 0; | |
7234 | } | |
7235 | _ACEOF | |
7236 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7237 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7238 | (eval $ac_link) 2>conftest.er1 | |
7239 | ac_status=$? | |
7240 | grep -v '^ *+' conftest.er1 >conftest.err | |
7241 | rm -f conftest.er1 | |
7242 | cat conftest.err >&5 | |
7243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7244 | (exit $ac_status); } && | |
7245 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7247 | (eval $ac_try) 2>&5 | |
7248 | ac_status=$? | |
7249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7250 | (exit $ac_status); }; } && | |
7251 | { ac_try='test -s conftest$ac_exeext' | |
7252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7253 | (eval $ac_try) 2>&5 | |
7254 | ac_status=$? | |
7255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7256 | (exit $ac_status); }; }; then | |
252b5132 RH |
7257 | gt_cv_func_gettext_libc=yes |
7258 | else | |
6bf9431b BE |
7259 | echo "$as_me: failed program was:" >&5 |
7260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7261 | ||
7262 | gt_cv_func_gettext_libc=no | |
252b5132 | 7263 | fi |
6bf9431b BE |
7264 | rm -f conftest.err conftest.$ac_objext \ |
7265 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 7266 | fi |
6bf9431b BE |
7267 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5 |
7268 | echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6 | |
252b5132 RH |
7269 | |
7270 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
6bf9431b BE |
7271 | echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 |
7272 | echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 | |
7273 | if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then | |
7274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7275 | else |
6bf9431b | 7276 | ac_check_lib_save_LIBS=$LIBS |
252b5132 | 7277 | LIBS="-lintl $LIBS" |
6bf9431b BE |
7278 | cat >conftest.$ac_ext <<_ACEOF |
7279 | /* confdefs.h. */ | |
7280 | _ACEOF | |
7281 | cat confdefs.h >>conftest.$ac_ext | |
7282 | cat >>conftest.$ac_ext <<_ACEOF | |
7283 | /* end confdefs.h. */ | |
7284 | ||
252b5132 | 7285 | /* Override any gcc2 internal prototype to avoid an error. */ |
6bf9431b BE |
7286 | #ifdef __cplusplus |
7287 | extern "C" | |
7288 | #endif | |
252b5132 | 7289 | /* We use char because int might match the return type of a gcc2 |
6bf9431b BE |
7290 | builtin and then its argument prototype would still apply. */ |
7291 | char bindtextdomain (); | |
7292 | int | |
7293 | main () | |
7294 | { | |
7295 | bindtextdomain (); | |
7296 | ; | |
7297 | return 0; | |
7298 | } | |
7299 | _ACEOF | |
7300 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7301 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7302 | (eval $ac_link) 2>conftest.er1 | |
7303 | ac_status=$? | |
7304 | grep -v '^ *+' conftest.er1 >conftest.err | |
7305 | rm -f conftest.er1 | |
7306 | cat conftest.err >&5 | |
7307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7308 | (exit $ac_status); } && | |
7309 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7311 | (eval $ac_try) 2>&5 | |
7312 | ac_status=$? | |
7313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7314 | (exit $ac_status); }; } && | |
7315 | { ac_try='test -s conftest$ac_exeext' | |
7316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7317 | (eval $ac_try) 2>&5 | |
7318 | ac_status=$? | |
7319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7320 | (exit $ac_status); }; }; then | |
7321 | ac_cv_lib_intl_bindtextdomain=yes | |
7322 | else | |
7323 | echo "$as_me: failed program was:" >&5 | |
7324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7325 | ||
7326 | ac_cv_lib_intl_bindtextdomain=no | |
7327 | fi | |
7328 | rm -f conftest.err conftest.$ac_objext \ | |
7329 | conftest$ac_exeext conftest.$ac_ext | |
7330 | LIBS=$ac_check_lib_save_LIBS | |
7331 | fi | |
7332 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 | |
7333 | echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 | |
7334 | if test $ac_cv_lib_intl_bindtextdomain = yes; then | |
7335 | echo "$as_me:$LINENO: checking for gettext in libintl" >&5 | |
7336 | echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6 | |
7337 | if test "${gt_cv_func_gettext_libintl+set}" = set; then | |
7338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7339 | else | |
7340 | cat >conftest.$ac_ext <<_ACEOF | |
7341 | /* confdefs.h. */ | |
7342 | _ACEOF | |
7343 | cat confdefs.h >>conftest.$ac_ext | |
7344 | cat >>conftest.$ac_ext <<_ACEOF | |
7345 | /* end confdefs.h. */ | |
252b5132 | 7346 | |
6bf9431b BE |
7347 | int |
7348 | main () | |
7349 | { | |
252b5132 | 7350 | return (int) gettext ("") |
6bf9431b BE |
7351 | ; |
7352 | return 0; | |
7353 | } | |
7354 | _ACEOF | |
7355 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7356 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7357 | (eval $ac_link) 2>conftest.er1 | |
7358 | ac_status=$? | |
7359 | grep -v '^ *+' conftest.er1 >conftest.err | |
7360 | rm -f conftest.er1 | |
7361 | cat conftest.err >&5 | |
7362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7363 | (exit $ac_status); } && | |
7364 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7366 | (eval $ac_try) 2>&5 | |
7367 | ac_status=$? | |
7368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7369 | (exit $ac_status); }; } && | |
7370 | { ac_try='test -s conftest$ac_exeext' | |
7371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7372 | (eval $ac_try) 2>&5 | |
7373 | ac_status=$? | |
7374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7375 | (exit $ac_status); }; }; then | |
252b5132 RH |
7376 | gt_cv_func_gettext_libintl=yes |
7377 | else | |
6bf9431b BE |
7378 | echo "$as_me: failed program was:" >&5 |
7379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7380 | ||
7381 | gt_cv_func_gettext_libintl=no | |
252b5132 | 7382 | fi |
6bf9431b BE |
7383 | rm -f conftest.err conftest.$ac_objext \ |
7384 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 7385 | fi |
6bf9431b BE |
7386 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5 |
7387 | echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6 | |
252b5132 RH |
7388 | fi |
7389 | ||
7390 | fi | |
7391 | ||
7392 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
7393 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
6bf9431b BE |
7394 | |
7395 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 7396 | #define HAVE_GETTEXT 1 |
6bf9431b | 7397 | _ACEOF |
252b5132 RH |
7398 | |
7399 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7400 | set dummy msgfmt; ac_word=$2 | |
6bf9431b BE |
7401 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7402 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7403 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
7404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7405 | else |
7406 | case "$MSGFMT" in | |
7407 | /*) | |
7408 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7409 | ;; | |
7410 | *) | |
7411 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7412 | for ac_dir in $PATH; do | |
7413 | test -z "$ac_dir" && ac_dir=. | |
7414 | if test -f $ac_dir/$ac_word; then | |
7415 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7416 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7417 | break | |
7418 | fi | |
7419 | fi | |
7420 | done | |
7421 | IFS="$ac_save_ifs" | |
7422 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
7423 | ;; | |
7424 | esac | |
7425 | fi | |
7426 | MSGFMT="$ac_cv_path_MSGFMT" | |
7427 | if test -n "$MSGFMT"; then | |
6bf9431b BE |
7428 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
7429 | echo "${ECHO_T}$MSGFMT" >&6 | |
252b5132 | 7430 | else |
6bf9431b BE |
7431 | echo "$as_me:$LINENO: result: no" >&5 |
7432 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7433 | fi |
7434 | if test "$MSGFMT" != "no"; then | |
6bf9431b BE |
7435 | |
7436 | for ac_func in dcgettext | |
252b5132 | 7437 | do |
6bf9431b BE |
7438 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7439 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7440 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7441 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7443 | else | |
7444 | cat >conftest.$ac_ext <<_ACEOF | |
7445 | /* confdefs.h. */ | |
7446 | _ACEOF | |
7447 | cat confdefs.h >>conftest.$ac_ext | |
7448 | cat >>conftest.$ac_ext <<_ACEOF | |
7449 | /* end confdefs.h. */ | |
7450 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7451 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7452 | #define $ac_func innocuous_$ac_func | |
7453 | ||
252b5132 | 7454 | /* System header to define __stub macros and hopefully few prototypes, |
6bf9431b BE |
7455 | which can conflict with char $ac_func (); below. |
7456 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7457 | <limits.h> exists even on freestanding compilers. */ | |
7458 | ||
7459 | #ifdef __STDC__ | |
7460 | # include <limits.h> | |
7461 | #else | |
7462 | # include <assert.h> | |
7463 | #endif | |
252b5132 | 7464 | |
6bf9431b | 7465 | #undef $ac_func |
252b5132 | 7466 | |
6bf9431b BE |
7467 | /* Override any gcc2 internal prototype to avoid an error. */ |
7468 | #ifdef __cplusplus | |
7469 | extern "C" | |
7470 | { | |
7471 | #endif | |
7472 | /* We use char because int might match the return type of a gcc2 | |
7473 | builtin and then its argument prototype would still apply. */ | |
7474 | char $ac_func (); | |
252b5132 RH |
7475 | /* The GNU C library defines this for functions which it implements |
7476 | to always fail with ENOSYS. Some functions are actually named | |
7477 | something starting with __ and the normal name is an alias. */ | |
7478 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7479 | choke me | |
7480 | #else | |
6bf9431b BE |
7481 | char (*f) () = $ac_func; |
7482 | #endif | |
7483 | #ifdef __cplusplus | |
7484 | } | |
252b5132 RH |
7485 | #endif |
7486 | ||
6bf9431b BE |
7487 | int |
7488 | main () | |
7489 | { | |
7490 | return f != $ac_func; | |
7491 | ; | |
7492 | return 0; | |
7493 | } | |
7494 | _ACEOF | |
7495 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7496 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7497 | (eval $ac_link) 2>conftest.er1 | |
7498 | ac_status=$? | |
7499 | grep -v '^ *+' conftest.er1 >conftest.err | |
7500 | rm -f conftest.er1 | |
7501 | cat conftest.err >&5 | |
7502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7503 | (exit $ac_status); } && | |
7504 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7506 | (eval $ac_try) 2>&5 | |
7507 | ac_status=$? | |
7508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7509 | (exit $ac_status); }; } && | |
7510 | { ac_try='test -s conftest$ac_exeext' | |
7511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7512 | (eval $ac_try) 2>&5 | |
7513 | ac_status=$? | |
7514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7515 | (exit $ac_status); }; }; then | |
7516 | eval "$as_ac_var=yes" | |
7517 | else | |
7518 | echo "$as_me: failed program was:" >&5 | |
7519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7520 | ||
7521 | eval "$as_ac_var=no" | |
7522 | fi | |
7523 | rm -f conftest.err conftest.$ac_objext \ | |
7524 | conftest$ac_exeext conftest.$ac_ext | |
7525 | fi | |
7526 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7527 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7528 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7529 | cat >>confdefs.h <<_ACEOF | |
7530 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7531 | _ACEOF | |
252b5132 | 7532 | |
252b5132 RH |
7533 | fi |
7534 | done | |
7535 | ||
7536 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7537 | set dummy gmsgfmt; ac_word=$2 | |
6bf9431b BE |
7538 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7539 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7540 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
7541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7542 | else |
6bf9431b BE |
7543 | case $GMSGFMT in |
7544 | [\\/]* | ?:[\\/]*) | |
252b5132 RH |
7545 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
7546 | ;; | |
252b5132 | 7547 | *) |
6bf9431b BE |
7548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7549 | for as_dir in $PATH | |
7550 | do | |
7551 | IFS=$as_save_IFS | |
7552 | test -z "$as_dir" && as_dir=. | |
7553 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7554 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7555 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
7556 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7557 | break 2 | |
7558 | fi | |
7559 | done | |
7560 | done | |
7561 | ||
252b5132 RH |
7562 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
7563 | ;; | |
7564 | esac | |
7565 | fi | |
6bf9431b BE |
7566 | GMSGFMT=$ac_cv_path_GMSGFMT |
7567 | ||
252b5132 | 7568 | if test -n "$GMSGFMT"; then |
6bf9431b BE |
7569 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
7570 | echo "${ECHO_T}$GMSGFMT" >&6 | |
252b5132 | 7571 | else |
6bf9431b BE |
7572 | echo "$as_me:$LINENO: result: no" >&5 |
7573 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7574 | fi |
7575 | ||
7576 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7577 | set dummy xgettext; ac_word=$2 | |
6bf9431b BE |
7578 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7579 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7580 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
7581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7582 | else |
7583 | case "$XGETTEXT" in | |
7584 | /*) | |
7585 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7586 | ;; | |
7587 | *) | |
7588 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7589 | for ac_dir in $PATH; do | |
7590 | test -z "$ac_dir" && ac_dir=. | |
7591 | if test -f $ac_dir/$ac_word; then | |
7592 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7593 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7594 | break | |
7595 | fi | |
7596 | fi | |
7597 | done | |
7598 | IFS="$ac_save_ifs" | |
7599 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7600 | ;; | |
7601 | esac | |
7602 | fi | |
7603 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7604 | if test -n "$XGETTEXT"; then | |
6bf9431b BE |
7605 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
7606 | echo "${ECHO_T}$XGETTEXT" >&6 | |
252b5132 | 7607 | else |
6bf9431b BE |
7608 | echo "$as_me:$LINENO: result: no" >&5 |
7609 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7610 | fi |
7611 | ||
6bf9431b BE |
7612 | cat >conftest.$ac_ext <<_ACEOF |
7613 | /* confdefs.h. */ | |
7614 | _ACEOF | |
7615 | cat confdefs.h >>conftest.$ac_ext | |
7616 | cat >>conftest.$ac_ext <<_ACEOF | |
7617 | /* end confdefs.h. */ | |
252b5132 | 7618 | |
6bf9431b BE |
7619 | int |
7620 | main () | |
7621 | { | |
252b5132 RH |
7622 | extern int _nl_msg_cat_cntr; |
7623 | return _nl_msg_cat_cntr | |
6bf9431b BE |
7624 | ; |
7625 | return 0; | |
7626 | } | |
7627 | _ACEOF | |
7628 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7629 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7630 | (eval $ac_link) 2>conftest.er1 | |
7631 | ac_status=$? | |
7632 | grep -v '^ *+' conftest.er1 >conftest.err | |
7633 | rm -f conftest.er1 | |
7634 | cat conftest.err >&5 | |
7635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7636 | (exit $ac_status); } && | |
7637 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7639 | (eval $ac_try) 2>&5 | |
7640 | ac_status=$? | |
7641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7642 | (exit $ac_status); }; } && | |
7643 | { ac_try='test -s conftest$ac_exeext' | |
7644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7645 | (eval $ac_try) 2>&5 | |
7646 | ac_status=$? | |
7647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7648 | (exit $ac_status); }; }; then | |
252b5132 RH |
7649 | CATOBJEXT=.gmo |
7650 | DATADIRNAME=share | |
7651 | else | |
6bf9431b BE |
7652 | echo "$as_me: failed program was:" >&5 |
7653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7654 | ||
7655 | CATOBJEXT=.mo | |
252b5132 RH |
7656 | DATADIRNAME=lib |
7657 | fi | |
6bf9431b BE |
7658 | rm -f conftest.err conftest.$ac_objext \ |
7659 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 RH |
7660 | INSTOBJEXT=.mo |
7661 | fi | |
7662 | fi | |
6bf9431b | 7663 | |
252b5132 RH |
7664 | fi |
7665 | ||
7666 | ||
6bf9431b BE |
7667 | |
7668 | ||
252b5132 RH |
7669 | if test "$CATOBJEXT" = "NONE"; then |
7670 | nls_cv_use_gnu_gettext=yes | |
7671 | fi | |
7672 | fi | |
7673 | ||
7674 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
7675 | INTLOBJS="\$(GETTOBJS)" | |
7676 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7677 | set dummy msgfmt; ac_word=$2 | |
6bf9431b BE |
7678 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7679 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7680 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
7681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7682 | else |
7683 | case "$MSGFMT" in | |
7684 | /*) | |
7685 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7686 | ;; | |
7687 | *) | |
7688 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7689 | for ac_dir in $PATH; do | |
7690 | test -z "$ac_dir" && ac_dir=. | |
7691 | if test -f $ac_dir/$ac_word; then | |
7692 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7693 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7694 | break | |
7695 | fi | |
7696 | fi | |
7697 | done | |
7698 | IFS="$ac_save_ifs" | |
7699 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
7700 | ;; | |
7701 | esac | |
7702 | fi | |
7703 | MSGFMT="$ac_cv_path_MSGFMT" | |
7704 | if test -n "$MSGFMT"; then | |
6bf9431b BE |
7705 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
7706 | echo "${ECHO_T}$MSGFMT" >&6 | |
252b5132 | 7707 | else |
6bf9431b BE |
7708 | echo "$as_me:$LINENO: result: no" >&5 |
7709 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7710 | fi |
7711 | ||
7712 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7713 | set dummy gmsgfmt; ac_word=$2 | |
6bf9431b BE |
7714 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7715 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7716 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
7717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7718 | else |
6bf9431b BE |
7719 | case $GMSGFMT in |
7720 | [\\/]* | ?:[\\/]*) | |
252b5132 RH |
7721 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
7722 | ;; | |
252b5132 | 7723 | *) |
6bf9431b BE |
7724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7725 | for as_dir in $PATH | |
7726 | do | |
7727 | IFS=$as_save_IFS | |
7728 | test -z "$as_dir" && as_dir=. | |
7729 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7730 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7731 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
7732 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7733 | break 2 | |
7734 | fi | |
7735 | done | |
7736 | done | |
7737 | ||
252b5132 RH |
7738 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
7739 | ;; | |
7740 | esac | |
7741 | fi | |
6bf9431b BE |
7742 | GMSGFMT=$ac_cv_path_GMSGFMT |
7743 | ||
252b5132 | 7744 | if test -n "$GMSGFMT"; then |
6bf9431b BE |
7745 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
7746 | echo "${ECHO_T}$GMSGFMT" >&6 | |
252b5132 | 7747 | else |
6bf9431b BE |
7748 | echo "$as_me:$LINENO: result: no" >&5 |
7749 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7750 | fi |
7751 | ||
7752 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7753 | set dummy xgettext; ac_word=$2 | |
6bf9431b BE |
7754 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7755 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7756 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
7757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7758 | else |
7759 | case "$XGETTEXT" in | |
7760 | /*) | |
7761 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7762 | ;; | |
7763 | *) | |
7764 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7765 | for ac_dir in $PATH; do | |
7766 | test -z "$ac_dir" && ac_dir=. | |
7767 | if test -f $ac_dir/$ac_word; then | |
7768 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7769 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7770 | break | |
7771 | fi | |
7772 | fi | |
7773 | done | |
7774 | IFS="$ac_save_ifs" | |
7775 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7776 | ;; | |
7777 | esac | |
7778 | fi | |
7779 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7780 | if test -n "$XGETTEXT"; then | |
6bf9431b BE |
7781 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
7782 | echo "${ECHO_T}$XGETTEXT" >&6 | |
252b5132 | 7783 | else |
6bf9431b BE |
7784 | echo "$as_me:$LINENO: result: no" >&5 |
7785 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7786 | fi |
7787 | ||
6bf9431b | 7788 | |
252b5132 RH |
7789 | USE_INCLUDED_LIBINTL=yes |
7790 | CATOBJEXT=.gmo | |
7791 | INSTOBJEXT=.mo | |
7792 | DATADIRNAME=share | |
7793 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
7794 | INTLLIBS=$INTLDEPS | |
7795 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
7796 | nls_cv_header_intl=libintl.h | |
7797 | nls_cv_header_libgt=libgettext.h | |
7798 | fi | |
7799 | ||
7800 | if test "$XGETTEXT" != ":"; then | |
7801 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
7802 | : ; | |
7803 | else | |
6bf9431b BE |
7804 | echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5 |
7805 | echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6 | |
252b5132 RH |
7806 | XGETTEXT=":" |
7807 | fi | |
7808 | fi | |
7809 | ||
7810 | # We need to process the po/ directory. | |
7811 | POSUB=po | |
7812 | else | |
7813 | DATADIRNAME=share | |
7814 | nls_cv_header_intl=libintl.h | |
7815 | nls_cv_header_libgt=libgettext.h | |
7816 | fi | |
7817 | ||
7818 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
7819 | # because some of the sources are only built for this goal. | |
7820 | if test "$PACKAGE" = gettext; then | |
7821 | USE_NLS=yes | |
7822 | USE_INCLUDED_LIBINTL=yes | |
7823 | fi | |
7824 | ||
7825 | for lang in $ALL_LINGUAS; do | |
7826 | GMOFILES="$GMOFILES $lang.gmo" | |
7827 | POFILES="$POFILES $lang.po" | |
7828 | done | |
7829 | ||
6bf9431b BE |
7830 | |
7831 | ||
7832 | ||
7833 | ||
7834 | ||
7835 | ||
7836 | ||
7837 | ||
7838 | ||
7839 | ||
7840 | ||
7841 | ||
252b5132 RH |
7842 | |
7843 | if test "x$CATOBJEXT" != "x"; then | |
7844 | if test "x$ALL_LINGUAS" = "x"; then | |
7845 | LINGUAS= | |
7846 | else | |
6bf9431b BE |
7847 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
7848 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
252b5132 RH |
7849 | NEW_LINGUAS= |
7850 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
7851 | case "$ALL_LINGUAS" in | |
7852 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
7853 | esac | |
7854 | done | |
7855 | LINGUAS=$NEW_LINGUAS | |
6bf9431b BE |
7856 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 |
7857 | echo "${ECHO_T}$LINGUAS" >&6 | |
252b5132 RH |
7858 | fi |
7859 | ||
7860 | if test -n "$LINGUAS"; then | |
7861 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
7862 | fi | |
7863 | fi | |
7864 | ||
7865 | if test $ac_cv_header_locale_h = yes; then | |
7866 | INCLUDE_LOCALE_H="#include <locale.h>" | |
7867 | else | |
7868 | INCLUDE_LOCALE_H="\ | |
7869 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
7870 | fi | |
6bf9431b | 7871 | |
252b5132 RH |
7872 | |
7873 | if test -f $srcdir/po2tbl.sed.in; then | |
7874 | if test "$CATOBJEXT" = ".cat"; then | |
6bf9431b BE |
7875 | if test "${ac_cv_header_linux_version_h+set}" = set; then |
7876 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
7877 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
7878 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
7879 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7880 | fi | |
7881 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
7882 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
7883 | else | |
7884 | # Is the header compilable? | |
7885 | echo "$as_me:$LINENO: checking linux/version.h usability" >&5 | |
7886 | echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6 | |
7887 | cat >conftest.$ac_ext <<_ACEOF | |
7888 | /* confdefs.h. */ | |
7889 | _ACEOF | |
7890 | cat confdefs.h >>conftest.$ac_ext | |
7891 | cat >>conftest.$ac_ext <<_ACEOF | |
7892 | /* end confdefs.h. */ | |
7893 | $ac_includes_default | |
252b5132 | 7894 | #include <linux/version.h> |
6bf9431b BE |
7895 | _ACEOF |
7896 | rm -f conftest.$ac_objext | |
7897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7898 | (eval $ac_compile) 2>conftest.er1 | |
7899 | ac_status=$? | |
7900 | grep -v '^ *+' conftest.er1 >conftest.err | |
7901 | rm -f conftest.er1 | |
7902 | cat conftest.err >&5 | |
7903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7904 | (exit $ac_status); } && | |
7905 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
7906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7907 | (eval $ac_try) 2>&5 | |
7908 | ac_status=$? | |
7909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7910 | (exit $ac_status); }; } && | |
7911 | { ac_try='test -s conftest.$ac_objext' | |
7912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7913 | (eval $ac_try) 2>&5 | |
7914 | ac_status=$? | |
7915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7916 | (exit $ac_status); }; }; then | |
7917 | ac_header_compiler=yes | |
7918 | else | |
7919 | echo "$as_me: failed program was:" >&5 | |
7920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7921 | ||
7922 | ac_header_compiler=no | |
7923 | fi | |
7924 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7925 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7926 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
7927 | ||
7928 | # Is the header present? | |
7929 | echo "$as_me:$LINENO: checking linux/version.h presence" >&5 | |
7930 | echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6 | |
7931 | cat >conftest.$ac_ext <<_ACEOF | |
7932 | /* confdefs.h. */ | |
7933 | _ACEOF | |
7934 | cat confdefs.h >>conftest.$ac_ext | |
7935 | cat >>conftest.$ac_ext <<_ACEOF | |
7936 | /* end confdefs.h. */ | |
7937 | #include <linux/version.h> | |
7938 | _ACEOF | |
7939 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7940 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7941 | ac_status=$? | |
7942 | grep -v '^ *+' conftest.er1 >conftest.err | |
7943 | rm -f conftest.er1 | |
7944 | cat conftest.err >&5 | |
7945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7946 | (exit $ac_status); } >/dev/null; then | |
7947 | if test -s conftest.err; then | |
7948 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7949 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7950 | else | |
7951 | ac_cpp_err= | |
7952 | fi | |
252b5132 | 7953 | else |
6bf9431b | 7954 | ac_cpp_err=yes |
252b5132 | 7955 | fi |
6bf9431b BE |
7956 | if test -z "$ac_cpp_err"; then |
7957 | ac_header_preproc=yes | |
7958 | else | |
7959 | echo "$as_me: failed program was:" >&5 | |
7960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7961 | ||
7962 | ac_header_preproc=no | |
7963 | fi | |
7964 | rm -f conftest.err conftest.$ac_ext | |
7965 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7966 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7967 | ||
7968 | # So? What about this header? | |
7969 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7970 | yes:no: ) | |
7971 | { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7972 | echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7973 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5 | |
7974 | echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;} | |
7975 | ac_header_preproc=yes | |
7976 | ;; | |
7977 | no:yes:* ) | |
7978 | { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5 | |
7979 | echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;} | |
7980 | { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5 | |
7981 | echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;} | |
7982 | { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5 | |
7983 | echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;} | |
7984 | { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5 | |
7985 | echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
7986 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5 | |
7987 | echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;} | |
7988 | { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5 | |
7989 | echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;} | |
7990 | ( | |
7991 | cat <<\_ASBOX | |
7992 | ## ------------------------------------------ ## | |
7993 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7994 | ## ------------------------------------------ ## | |
7995 | _ASBOX | |
7996 | ) | | |
7997 | sed "s/^/$as_me: WARNING: /" >&2 | |
7998 | ;; | |
7999 | esac | |
8000 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
8001 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
8002 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
8003 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8004 | else | |
8005 | ac_cv_header_linux_version_h=$ac_header_preproc | |
252b5132 | 8006 | fi |
6bf9431b BE |
8007 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 |
8008 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
8009 | ||
8010 | fi | |
8011 | if test $ac_cv_header_linux_version_h = yes; then | |
252b5132 RH |
8012 | msgformat=linux |
8013 | else | |
6bf9431b | 8014 | msgformat=xopen |
252b5132 RH |
8015 | fi |
8016 | ||
8017 | ||
6bf9431b | 8018 | |
252b5132 RH |
8019 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed |
8020 | fi | |
8021 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
8022 | $srcdir/po2tbl.sed.in > po2tbl.sed | |
8023 | fi | |
8024 | ||
8025 | if test "$PACKAGE" = "gettext"; then | |
8026 | GT_NO="#NO#" | |
8027 | GT_YES= | |
8028 | else | |
8029 | GT_NO= | |
8030 | GT_YES="#YES#" | |
8031 | fi | |
6bf9431b BE |
8032 | |
8033 | ||
252b5132 RH |
8034 | |
8035 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | |
6bf9431b | 8036 | |
252b5132 RH |
8037 | |
8038 | l= | |
6bf9431b | 8039 | |
252b5132 | 8040 | |
fcd8210c | 8041 | if test -f $srcdir/po/POTFILES.in; then |
252b5132 RH |
8042 | test -d po || mkdir po |
8043 | if test "x$srcdir" != "x."; then | |
8044 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
8045 | posrcprefix="$srcdir/" | |
8046 | else | |
8047 | posrcprefix="../$srcdir/" | |
8048 | fi | |
8049 | else | |
8050 | posrcprefix="../" | |
8051 | fi | |
8052 | rm -f po/POTFILES | |
8053 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
8054 | < $srcdir/po/POTFILES.in > po/POTFILES | |
8055 | fi | |
252b5132 | 8056 | |
6bf9431b BE |
8057 | |
8058 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
8059 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
252b5132 RH |
8060 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
8061 | if test "${enable_maintainer_mode+set}" = set; then | |
8062 | enableval="$enable_maintainer_mode" | |
8063 | USE_MAINTAINER_MODE=$enableval | |
8064 | else | |
8065 | USE_MAINTAINER_MODE=no | |
6bf9431b BE |
8066 | fi; |
8067 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
8068 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
252b5132 | 8069 | |
252b5132 RH |
8070 | |
8071 | if test $USE_MAINTAINER_MODE = yes; then | |
8072 | MAINTAINER_MODE_TRUE= | |
8073 | MAINTAINER_MODE_FALSE='#' | |
8074 | else | |
6bf9431b BE |
8075 | MAINTAINER_MODE_TRUE='#' |
8076 | MAINTAINER_MODE_FALSE= | |
8077 | fi | |
8078 | ||
8079 | MAINT=$MAINTAINER_MODE_TRUE | |
8080 | ||
8081 | ||
8082 | ||
8083 | ||
8084 | ||
8085 | for ac_header in sys/gmon_out.h | |
8086 | do | |
8087 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8088 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8089 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8090 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8091 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8093 | fi | |
8094 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8095 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8096 | else | |
8097 | # Is the header compilable? | |
8098 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8099 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8100 | cat >conftest.$ac_ext <<_ACEOF | |
8101 | /* confdefs.h. */ | |
8102 | _ACEOF | |
8103 | cat confdefs.h >>conftest.$ac_ext | |
8104 | cat >>conftest.$ac_ext <<_ACEOF | |
8105 | /* end confdefs.h. */ | |
8106 | $ac_includes_default | |
8107 | #include <$ac_header> | |
8108 | _ACEOF | |
8109 | rm -f conftest.$ac_objext | |
8110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8111 | (eval $ac_compile) 2>conftest.er1 | |
8112 | ac_status=$? | |
8113 | grep -v '^ *+' conftest.er1 >conftest.err | |
8114 | rm -f conftest.er1 | |
8115 | cat conftest.err >&5 | |
8116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8117 | (exit $ac_status); } && | |
8118 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8120 | (eval $ac_try) 2>&5 | |
8121 | ac_status=$? | |
8122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8123 | (exit $ac_status); }; } && | |
8124 | { ac_try='test -s conftest.$ac_objext' | |
8125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8126 | (eval $ac_try) 2>&5 | |
8127 | ac_status=$? | |
8128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8129 | (exit $ac_status); }; }; then | |
8130 | ac_header_compiler=yes | |
8131 | else | |
8132 | echo "$as_me: failed program was:" >&5 | |
8133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8134 | ||
8135 | ac_header_compiler=no | |
8136 | fi | |
8137 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8138 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8139 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8140 | ||
8141 | # Is the header present? | |
8142 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8143 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8144 | cat >conftest.$ac_ext <<_ACEOF | |
8145 | /* confdefs.h. */ | |
8146 | _ACEOF | |
8147 | cat confdefs.h >>conftest.$ac_ext | |
8148 | cat >>conftest.$ac_ext <<_ACEOF | |
8149 | /* end confdefs.h. */ | |
8150 | #include <$ac_header> | |
8151 | _ACEOF | |
8152 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8153 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8154 | ac_status=$? | |
8155 | grep -v '^ *+' conftest.er1 >conftest.err | |
8156 | rm -f conftest.er1 | |
8157 | cat conftest.err >&5 | |
8158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8159 | (exit $ac_status); } >/dev/null; then | |
8160 | if test -s conftest.err; then | |
8161 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8162 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8163 | else | |
8164 | ac_cpp_err= | |
8165 | fi | |
8166 | else | |
8167 | ac_cpp_err=yes | |
8168 | fi | |
8169 | if test -z "$ac_cpp_err"; then | |
8170 | ac_header_preproc=yes | |
8171 | else | |
8172 | echo "$as_me: failed program was:" >&5 | |
8173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8174 | ||
8175 | ac_header_preproc=no | |
8176 | fi | |
8177 | rm -f conftest.err conftest.$ac_ext | |
8178 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8179 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8180 | ||
8181 | # So? What about this header? | |
8182 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8183 | yes:no: ) | |
8184 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8185 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8186 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8187 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8188 | ac_header_preproc=yes | |
8189 | ;; | |
8190 | no:yes:* ) | |
8191 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8192 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8193 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8194 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8195 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8196 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8197 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8198 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8199 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8200 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8201 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8202 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
8203 | ( | |
8204 | cat <<\_ASBOX | |
8205 | ## ------------------------------------------ ## | |
8206 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8207 | ## ------------------------------------------ ## | |
8208 | _ASBOX | |
8209 | ) | | |
8210 | sed "s/^/$as_me: WARNING: /" >&2 | |
8211 | ;; | |
8212 | esac | |
8213 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8214 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8215 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8217 | else | |
8218 | eval "$as_ac_Header=\$ac_header_preproc" | |
8219 | fi | |
8220 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8221 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8222 | ||
8223 | fi | |
8224 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8225 | cat >>confdefs.h <<_ACEOF | |
8226 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8227 | _ACEOF | |
8228 | ||
8229 | fi | |
8230 | ||
8231 | done | |
8232 | ||
8233 | ||
8234 | build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" | |
8235 | # Check whether --enable-build-warnings or --disable-build-warnings was given. | |
8236 | if test "${enable_build_warnings+set}" = set; then | |
8237 | enableval="$enable_build_warnings" | |
8238 | case "${enableval}" in | |
8239 | yes) ;; | |
8240 | no) build_warnings="-w";; | |
8241 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
8242 | build_warnings="${build_warnings} ${t}";; | |
8243 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
8244 | build_warnings="${t} ${build_warnings}";; | |
8245 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
8246 | esac | |
8247 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
8248 | echo "Setting warning flags = $build_warnings" 6>&1 | |
8249 | fi | |
8250 | fi; WARN_CFLAGS="" | |
8251 | if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then | |
8252 | WARN_CFLAGS="${build_warnings}" | |
8253 | fi | |
8254 | ||
8255 | ||
8256 | ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in" | |
8257 | ||
8258 | ac_config_commands="$ac_config_commands default" | |
8259 | ||
8260 | cat >confcache <<\_ACEOF | |
8261 | # This file is a shell script that caches the results of configure | |
8262 | # tests run on this system so they can be shared between configure | |
8263 | # scripts and configure runs, see configure's option --config-cache. | |
8264 | # It is not useful on other systems. If it contains results you don't | |
8265 | # want to keep, you may remove or edit it. | |
8266 | # | |
8267 | # config.status only pays attention to the cache file if you give it | |
8268 | # the --recheck option to rerun configure. | |
8269 | # | |
8270 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
8271 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
8272 | # following values. | |
8273 | ||
8274 | _ACEOF | |
8275 | ||
8276 | # The following way of writing the cache mishandles newlines in values, | |
8277 | # but we know of no workaround that is simple, portable, and efficient. | |
8278 | # So, don't put newlines in cache variables' values. | |
8279 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8280 | # and sets the high bit in the cache file unless we assign to the vars. | |
8281 | { | |
8282 | (set) 2>&1 | | |
8283 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8284 | *ac_space=\ *) | |
8285 | # `set' does not quote correctly, so add quotes (double-quote | |
8286 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
8287 | sed -n \ | |
8288 | "s/'/'\\\\''/g; | |
8289 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
8290 | ;; | |
8291 | *) | |
8292 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8293 | sed -n \ | |
8294 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
8295 | ;; | |
8296 | esac; | |
8297 | } | | |
8298 | sed ' | |
8299 | t clear | |
8300 | : clear | |
8301 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
8302 | t end | |
8303 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
8304 | : end' >>confcache | |
8305 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
8306 | if test -w $cache_file; then | |
8307 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
8308 | cat confcache >$cache_file | |
8309 | else | |
8310 | echo "not updating unwritable cache $cache_file" | |
8311 | fi | |
8312 | fi | |
8313 | rm -f confcache | |
8314 | ||
8315 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
8316 | # Let make expand exec_prefix. | |
8317 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
8318 | ||
8319 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
8320 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
8321 | # trailing colons and then remove the whole line if VPATH becomes empty | |
8322 | # (actually we leave an empty line to preserve line numbers). | |
8323 | if test "x$srcdir" = x.; then | |
8324 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
8325 | s/:*\$(srcdir):*/:/; | |
8326 | s/:*\${srcdir}:*/:/; | |
8327 | s/:*@srcdir@:*/:/; | |
8328 | s/^\([^=]*=[ ]*\):*/\1/; | |
8329 | s/:*$//; | |
8330 | s/^[^=]*=[ ]*$//; | |
8331 | }' | |
8332 | fi | |
8333 | ||
8334 | DEFS=-DHAVE_CONFIG_H | |
8335 | ||
8336 | ac_libobjs= | |
8337 | ac_ltlibobjs= | |
8338 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
8339 | # 1. Remove the extension, and $U if already installed. | |
8340 | ac_i=`echo "$ac_i" | | |
8341 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
8342 | # 2. Add them. | |
8343 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
8344 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
8345 | done | |
8346 | LIBOBJS=$ac_libobjs | |
8347 | ||
8348 | LTLIBOBJS=$ac_ltlibobjs | |
8349 | ||
8350 | ||
8351 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
8352 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
8353 | Usually this means the macro was only invoked conditionally." >&5 | |
8354 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
8355 | Usually this means the macro was only invoked conditionally." >&2;} | |
8356 | { (exit 1); exit 1; }; } | |
8357 | fi | |
8358 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
8359 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
8360 | Usually this means the macro was only invoked conditionally." >&5 | |
8361 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
8362 | Usually this means the macro was only invoked conditionally." >&2;} | |
8363 | { (exit 1); exit 1; }; } | |
8364 | fi | |
8365 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
8366 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
8367 | Usually this means the macro was only invoked conditionally." >&5 | |
8368 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
8369 | Usually this means the macro was only invoked conditionally." >&2;} | |
8370 | { (exit 1); exit 1; }; } | |
8371 | fi | |
8372 | ||
8373 | : ${CONFIG_STATUS=./config.status} | |
8374 | ac_clean_files_save=$ac_clean_files | |
8375 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
8376 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
8377 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
8378 | cat >$CONFIG_STATUS <<_ACEOF | |
8379 | #! $SHELL | |
8380 | # Generated by $as_me. | |
8381 | # Run this file to recreate the current configuration. | |
8382 | # Compiler output produced by configure, useful for debugging | |
8383 | # configure, is in config.log if it exists. | |
8384 | ||
8385 | debug=false | |
8386 | ac_cs_recheck=false | |
8387 | ac_cs_silent=false | |
8388 | SHELL=\${CONFIG_SHELL-$SHELL} | |
8389 | _ACEOF | |
8390 | ||
8391 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8392 | ## --------------------- ## | |
8393 | ## M4sh Initialization. ## | |
8394 | ## --------------------- ## | |
8395 | ||
8396 | # Be Bourne compatible | |
8397 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
8398 | emulate sh | |
8399 | NULLCMD=: | |
8400 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
8401 | # is contrary to our usage. Disable this feature. | |
8402 | alias -g '${1+"$@"}'='"$@"' | |
8403 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
8404 | set -o posix | |
8405 | fi | |
8406 | DUALCASE=1; export DUALCASE # for MKS sh | |
8407 | ||
8408 | # Support unset when possible. | |
8409 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
8410 | as_unset=unset | |
8411 | else | |
8412 | as_unset=false | |
8413 | fi | |
8414 | ||
8415 | ||
8416 | # Work around bugs in pre-3.0 UWIN ksh. | |
8417 | $as_unset ENV MAIL MAILPATH | |
8418 | PS1='$ ' | |
8419 | PS2='> ' | |
8420 | PS4='+ ' | |
8421 | ||
8422 | # NLS nuisances. | |
8423 | for as_var in \ | |
8424 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
8425 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
8426 | LC_TELEPHONE LC_TIME | |
8427 | do | |
8428 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
8429 | eval $as_var=C; export $as_var | |
8430 | else | |
8431 | $as_unset $as_var | |
8432 | fi | |
8433 | done | |
8434 | ||
8435 | # Required to use basename. | |
8436 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
8437 | as_expr=expr | |
8438 | else | |
8439 | as_expr=false | |
8440 | fi | |
8441 | ||
8442 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
8443 | as_basename=basename | |
8444 | else | |
8445 | as_basename=false | |
252b5132 | 8446 | fi |
252b5132 | 8447 | |
252b5132 | 8448 | |
6bf9431b BE |
8449 | # Name of the executable. |
8450 | as_me=`$as_basename "$0" || | |
8451 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
8452 | X"$0" : 'X\(//\)$' \| \ | |
8453 | X"$0" : 'X\(/\)$' \| \ | |
8454 | . : '\(.\)' 2>/dev/null || | |
8455 | echo X/"$0" | | |
8456 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
8457 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
8458 | /^X\/\(\/\).*/{ s//\1/; q; } | |
8459 | s/.*/./; q'` | |
252b5132 | 8460 | |
6bf9431b BE |
8461 | |
8462 | # PATH needs CR, and LINENO needs CR and PATH. | |
8463 | # Avoid depending upon Character Ranges. | |
8464 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
8465 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
8466 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
8467 | as_cr_digits='0123456789' | |
8468 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
8469 | ||
8470 | # The user is always right. | |
8471 | if test "${PATH_SEPARATOR+set}" != set; then | |
8472 | echo "#! /bin/sh" >conf$$.sh | |
8473 | echo "exit 0" >>conf$$.sh | |
8474 | chmod +x conf$$.sh | |
8475 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
8476 | PATH_SEPARATOR=';' | |
252b5132 | 8477 | else |
6bf9431b | 8478 | PATH_SEPARATOR=: |
252b5132 | 8479 | fi |
6bf9431b | 8480 | rm -f conf$$.sh |
252b5132 RH |
8481 | fi |
8482 | ||
252b5132 | 8483 | |
6bf9431b BE |
8484 | as_lineno_1=$LINENO |
8485 | as_lineno_2=$LINENO | |
8486 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
8487 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
8488 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
8489 | # Find who we are. Look in the path if we contain no path at all | |
8490 | # relative or not. | |
8491 | case $0 in | |
8492 | *[\\/]* ) as_myself=$0 ;; | |
8493 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8494 | for as_dir in $PATH | |
8495 | do | |
8496 | IFS=$as_save_IFS | |
8497 | test -z "$as_dir" && as_dir=. | |
8498 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
8499 | done | |
252b5132 | 8500 | |
6bf9431b BE |
8501 | ;; |
8502 | esac | |
8503 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
8504 | # in which case we are not to be found in the path. | |
8505 | if test "x$as_myself" = x; then | |
8506 | as_myself=$0 | |
8507 | fi | |
8508 | if test ! -f "$as_myself"; then | |
8509 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
8510 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
8511 | { (exit 1); exit 1; }; } | |
8512 | fi | |
8513 | case $CONFIG_SHELL in | |
8514 | '') | |
8515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8516 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
0eee5820 | 8517 | do |
6bf9431b BE |
8518 | IFS=$as_save_IFS |
8519 | test -z "$as_dir" && as_dir=. | |
8520 | for as_base in sh bash ksh sh5; do | |
8521 | case $as_dir in | |
8522 | /*) | |
8523 | if ("$as_dir/$as_base" -c ' | |
8524 | as_lineno_1=$LINENO | |
8525 | as_lineno_2=$LINENO | |
8526 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
8527 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
8528 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
8529 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
8530 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
8531 | CONFIG_SHELL=$as_dir/$as_base | |
8532 | export CONFIG_SHELL | |
8533 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
8534 | fi;; | |
8535 | esac | |
8536 | done | |
8537 | done | |
8538 | ;; | |
8539 | esac | |
8540 | ||
8541 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
8542 | # uniformly replaced by the line number. The first 'sed' inserts a | |
8543 | # line-number line before each line; the second 'sed' does the real | |
8544 | # work. The second script uses 'N' to pair each line-number line | |
8545 | # with the numbered line, and appends trailing '-' during | |
8546 | # substitution so that $LINENO is not a special case at line end. | |
8547 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
8548 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
8549 | sed '=' <$as_myself | | |
8550 | sed ' | |
8551 | N | |
8552 | s,$,-, | |
8553 | : loop | |
8554 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
8555 | t loop | |
8556 | s,-$,, | |
8557 | s,^['$as_cr_digits']*\n,, | |
8558 | ' >$as_me.lineno && | |
8559 | chmod +x $as_me.lineno || | |
8560 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
8561 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
8562 | { (exit 1); exit 1; }; } | |
8563 | ||
8564 | # Don't try to exec as it changes $[0], causing all sort of problems | |
8565 | # (the dirname of $[0] is not the place where we might find the | |
8566 | # original and so on. Autoconf is especially sensible to this). | |
8567 | . ./$as_me.lineno | |
8568 | # Exit status is that of the last command. | |
8569 | exit | |
8570 | } | |
8571 | ||
8572 | ||
8573 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
8574 | *c*,-n*) ECHO_N= ECHO_C=' | |
8575 | ' ECHO_T=' ' ;; | |
8576 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
8577 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
8578 | esac | |
8579 | ||
8580 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
8581 | as_expr=expr | |
0eee5820 | 8582 | else |
6bf9431b | 8583 | as_expr=false |
0eee5820 | 8584 | fi |
6bf9431b BE |
8585 | |
8586 | rm -f conf$$ conf$$.exe conf$$.file | |
8587 | echo >conf$$.file | |
8588 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
8589 | # We could just check for DJGPP; but this test a) works b) is more generic | |
8590 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
8591 | if test -f conf$$.exe; then | |
8592 | # Don't use ln at all; we don't have any links | |
8593 | as_ln_s='cp -p' | |
8594 | else | |
8595 | as_ln_s='ln -s' | |
8596 | fi | |
8597 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
8598 | as_ln_s=ln | |
8599 | else | |
8600 | as_ln_s='cp -p' | |
0eee5820 | 8601 | fi |
6bf9431b BE |
8602 | rm -f conf$$ conf$$.exe conf$$.file |
8603 | ||
8604 | if mkdir -p . 2>/dev/null; then | |
8605 | as_mkdir_p=: | |
0eee5820 | 8606 | else |
6bf9431b BE |
8607 | test -d ./-p && rmdir ./-p |
8608 | as_mkdir_p=false | |
0eee5820 | 8609 | fi |
0eee5820 | 8610 | |
6bf9431b | 8611 | as_executable_p="test -f" |
0eee5820 | 8612 | |
6bf9431b BE |
8613 | # Sed expression to map a string onto a valid CPP name. |
8614 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
8615 | ||
8616 | # Sed expression to map a string onto a valid variable name. | |
8617 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
8618 | ||
8619 | ||
8620 | # IFS | |
8621 | # We need space, tab and new line, in precisely that order. | |
8622 | as_nl=' | |
8623 | ' | |
8624 | IFS=" $as_nl" | |
8625 | ||
8626 | # CDPATH. | |
8627 | $as_unset CDPATH | |
8628 | ||
8629 | exec 6>&1 | |
8630 | ||
8631 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
8632 | # report actual input values of CONFIG_FILES etc. instead of their | |
8633 | # values after options handling. Logging --version etc. is OK. | |
8634 | exec 5>>config.log | |
8635 | { | |
8636 | echo | |
8637 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
8638 | ## Running $as_me. ## | |
8639 | _ASBOX | |
8640 | } >&5 | |
8641 | cat >&5 <<_CSEOF | |
8642 | ||
8643 | This file was extended by $as_me, which was | |
8644 | generated by GNU Autoconf 2.59. Invocation command line was | |
8645 | ||
8646 | CONFIG_FILES = $CONFIG_FILES | |
8647 | CONFIG_HEADERS = $CONFIG_HEADERS | |
8648 | CONFIG_LINKS = $CONFIG_LINKS | |
8649 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
8650 | $ $0 $@ | |
8651 | ||
8652 | _CSEOF | |
8653 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
8654 | echo >&5 | |
8655 | _ACEOF | |
8656 | ||
8657 | # Files that config.status was made for. | |
8658 | if test -n "$ac_config_files"; then | |
8659 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
a2d91340 | 8660 | fi |
6bf9431b BE |
8661 | |
8662 | if test -n "$ac_config_headers"; then | |
8663 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
a2d91340 | 8664 | fi |
6bf9431b BE |
8665 | |
8666 | if test -n "$ac_config_links"; then | |
8667 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
a2d91340 AC |
8668 | fi |
8669 | ||
6bf9431b BE |
8670 | if test -n "$ac_config_commands"; then |
8671 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
8672 | fi | |
a2d91340 | 8673 | |
6bf9431b BE |
8674 | cat >>$CONFIG_STATUS <<\_ACEOF |
8675 | ||
8676 | ac_cs_usage="\ | |
8677 | \`$as_me' instantiates files from templates according to the | |
8678 | current configuration. | |
8679 | ||
8680 | Usage: $0 [OPTIONS] [FILE]... | |
8681 | ||
8682 | -h, --help print this help, then exit | |
8683 | -V, --version print version number, then exit | |
8684 | -q, --quiet do not print progress messages | |
8685 | -d, --debug don't remove temporary files | |
8686 | --recheck update $as_me by reconfiguring in the same conditions | |
8687 | --file=FILE[:TEMPLATE] | |
8688 | instantiate the configuration file FILE | |
8689 | --header=FILE[:TEMPLATE] | |
8690 | instantiate the configuration header FILE | |
8691 | ||
8692 | Configuration files: | |
8693 | $config_files | |
8694 | ||
8695 | Configuration headers: | |
8696 | $config_headers | |
8697 | ||
8698 | Configuration commands: | |
8699 | $config_commands | |
8700 | ||
8701 | Report bugs to <bug-autoconf@gnu.org>." | |
8702 | _ACEOF | |
8703 | ||
8704 | cat >>$CONFIG_STATUS <<_ACEOF | |
8705 | ac_cs_version="\\ | |
8706 | config.status | |
8707 | configured by $0, generated by GNU Autoconf 2.59, | |
8708 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
8709 | ||
8710 | Copyright (C) 2003 Free Software Foundation, Inc. | |
8711 | This config.status script is free software; the Free Software Foundation | |
8712 | gives unlimited permission to copy, distribute and modify it." | |
8713 | srcdir=$srcdir | |
8714 | INSTALL="$INSTALL" | |
8715 | _ACEOF | |
8716 | ||
8717 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8718 | # If no file are specified by the user, then we need to provide default | |
8719 | # value. By we need to know if files were specified by the user. | |
8720 | ac_need_defaults=: | |
8721 | while test $# != 0 | |
8722 | do | |
8723 | case $1 in | |
8724 | --*=*) | |
8725 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
8726 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
8727 | ac_shift=: | |
252b5132 | 8728 | ;; |
6bf9431b BE |
8729 | -*) |
8730 | ac_option=$1 | |
8731 | ac_optarg=$2 | |
8732 | ac_shift=shift | |
252b5132 | 8733 | ;; |
6bf9431b BE |
8734 | *) # This is not an option, so the user has probably given explicit |
8735 | # arguments. | |
8736 | ac_option=$1 | |
8737 | ac_need_defaults=false;; | |
8738 | esac | |
252b5132 | 8739 | |
6bf9431b BE |
8740 | case $ac_option in |
8741 | # Handling of the options. | |
8742 | _ACEOF | |
8743 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8744 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
8745 | ac_cs_recheck=: ;; | |
8746 | --version | --vers* | -V ) | |
8747 | echo "$ac_cs_version"; exit 0 ;; | |
8748 | --he | --h) | |
8749 | # Conflict between --help and --header | |
8750 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
8751 | Try \`$0 --help' for more information." >&5 | |
8752 | echo "$as_me: error: ambiguous option: $1 | |
8753 | Try \`$0 --help' for more information." >&2;} | |
8754 | { (exit 1); exit 1; }; };; | |
8755 | --help | --hel | -h ) | |
8756 | echo "$ac_cs_usage"; exit 0 ;; | |
8757 | --debug | --d* | -d ) | |
8758 | debug=: ;; | |
8759 | --file | --fil | --fi | --f ) | |
8760 | $ac_shift | |
8761 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
8762 | ac_need_defaults=false;; | |
8763 | --header | --heade | --head | --hea ) | |
8764 | $ac_shift | |
8765 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
8766 | ac_need_defaults=false;; | |
8767 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
8768 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
8769 | ac_cs_silent=: ;; | |
252b5132 | 8770 | |
6bf9431b BE |
8771 | # This is an error. |
8772 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
8773 | Try \`$0 --help' for more information." >&5 | |
8774 | echo "$as_me: error: unrecognized option: $1 | |
8775 | Try \`$0 --help' for more information." >&2;} | |
8776 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 8777 | |
6bf9431b | 8778 | *) ac_config_targets="$ac_config_targets $1" ;; |
252b5132 | 8779 | |
6bf9431b BE |
8780 | esac |
8781 | shift | |
8782 | done | |
252b5132 | 8783 | |
6bf9431b | 8784 | ac_configure_extra_args= |
252b5132 | 8785 | |
6bf9431b BE |
8786 | if $ac_cs_silent; then |
8787 | exec 6>/dev/null | |
8788 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
8789 | fi | |
252b5132 | 8790 | |
6bf9431b BE |
8791 | _ACEOF |
8792 | cat >>$CONFIG_STATUS <<_ACEOF | |
8793 | if \$ac_cs_recheck; then | |
8794 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
8795 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
8796 | fi | |
8797 | ||
8798 | _ACEOF | |
8799 | ||
8800 | cat >>$CONFIG_STATUS <<_ACEOF | |
252b5132 | 8801 | # |
6bf9431b | 8802 | # INIT-COMMANDS section. |
252b5132 | 8803 | # |
252b5132 | 8804 | |
6bf9431b BE |
8805 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
8806 | ||
8807 | ||
8808 | _ACEOF | |
8809 | ||
8810 | ||
8811 | ||
8812 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8813 | for ac_config_target in $ac_config_targets | |
252b5132 | 8814 | do |
6bf9431b BE |
8815 | case "$ac_config_target" in |
8816 | # Handling of arguments. | |
8817 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
8818 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
8819 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
8820 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
8821 | "gconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;; | |
8822 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
8823 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
8824 | { (exit 1); exit 1; }; };; | |
252b5132 RH |
8825 | esac |
8826 | done | |
8827 | ||
6bf9431b BE |
8828 | # If the user did not use the arguments to specify the items to instantiate, |
8829 | # then the envvar interface is used. Set only those that are not. | |
8830 | # We use the long form for the default assignment because of an extremely | |
8831 | # bizarre bug on SunOS 4.1.3. | |
8832 | if $ac_need_defaults; then | |
8833 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
8834 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
8835 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
8836 | fi | |
8837 | ||
8838 | # Have a temporary directory for convenience. Make it in the build tree | |
8839 | # simply because there is no reason to put it here, and in addition, | |
8840 | # creating and moving files from /tmp can sometimes cause problems. | |
8841 | # Create a temporary directory, and hook for its removal unless debugging. | |
8842 | $debug || | |
8843 | { | |
8844 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
8845 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
8846 | } | |
8847 | ||
8848 | # Create a (secure) tmp directory for tmp files. | |
252b5132 | 8849 | |
6bf9431b BE |
8850 | { |
8851 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
8852 | test -n "$tmp" && test -d "$tmp" | |
8853 | } || | |
8854 | { | |
8855 | tmp=./confstat$$-$RANDOM | |
8856 | (umask 077 && mkdir $tmp) | |
8857 | } || | |
8858 | { | |
8859 | echo "$me: cannot create a temporary directory in ." >&2 | |
8860 | { (exit 1); exit 1; } | |
8861 | } | |
252b5132 | 8862 | |
6bf9431b | 8863 | _ACEOF |
252b5132 | 8864 | |
6bf9431b BE |
8865 | cat >>$CONFIG_STATUS <<_ACEOF |
8866 | ||
8867 | # | |
8868 | # CONFIG_FILES section. | |
8869 | # | |
8870 | ||
8871 | # No need to generate the scripts if there are no CONFIG_FILES. | |
8872 | # This happens for instance when ./config.status config.h | |
8873 | if test -n "\$CONFIG_FILES"; then | |
8874 | # Protect against being on the right side of a sed subst in config.status. | |
8875 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
8876 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
8877 | s,@SHELL@,$SHELL,;t t | |
8878 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
8879 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
8880 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
8881 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
8882 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
8883 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
8884 | s,@exec_prefix@,$exec_prefix,;t t | |
8885 | s,@prefix@,$prefix,;t t | |
8886 | s,@program_transform_name@,$program_transform_name,;t t | |
8887 | s,@bindir@,$bindir,;t t | |
8888 | s,@sbindir@,$sbindir,;t t | |
8889 | s,@libexecdir@,$libexecdir,;t t | |
8890 | s,@datadir@,$datadir,;t t | |
8891 | s,@sysconfdir@,$sysconfdir,;t t | |
8892 | s,@sharedstatedir@,$sharedstatedir,;t t | |
8893 | s,@localstatedir@,$localstatedir,;t t | |
8894 | s,@libdir@,$libdir,;t t | |
8895 | s,@includedir@,$includedir,;t t | |
8896 | s,@oldincludedir@,$oldincludedir,;t t | |
8897 | s,@infodir@,$infodir,;t t | |
8898 | s,@mandir@,$mandir,;t t | |
8899 | s,@build_alias@,$build_alias,;t t | |
8900 | s,@host_alias@,$host_alias,;t t | |
8901 | s,@target_alias@,$target_alias,;t t | |
8902 | s,@DEFS@,$DEFS,;t t | |
8903 | s,@ECHO_C@,$ECHO_C,;t t | |
8904 | s,@ECHO_N@,$ECHO_N,;t t | |
8905 | s,@ECHO_T@,$ECHO_T,;t t | |
8906 | s,@LIBS@,$LIBS,;t t | |
8907 | s,@build@,$build,;t t | |
8908 | s,@build_cpu@,$build_cpu,;t t | |
8909 | s,@build_vendor@,$build_vendor,;t t | |
8910 | s,@build_os@,$build_os,;t t | |
8911 | s,@host@,$host,;t t | |
8912 | s,@host_cpu@,$host_cpu,;t t | |
8913 | s,@host_vendor@,$host_vendor,;t t | |
8914 | s,@host_os@,$host_os,;t t | |
8915 | s,@target@,$target,;t t | |
8916 | s,@target_cpu@,$target_cpu,;t t | |
8917 | s,@target_vendor@,$target_vendor,;t t | |
8918 | s,@target_os@,$target_os,;t t | |
8919 | s,@CC@,$CC,;t t | |
8920 | s,@CFLAGS@,$CFLAGS,;t t | |
8921 | s,@LDFLAGS@,$LDFLAGS,;t t | |
8922 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
8923 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
8924 | s,@EXEEXT@,$EXEEXT,;t t | |
8925 | s,@OBJEXT@,$OBJEXT,;t t | |
8926 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
8927 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
8928 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
8929 | s,@CYGPATH_W@,$CYGPATH_W,;t t | |
8930 | s,@PACKAGE@,$PACKAGE,;t t | |
8931 | s,@VERSION@,$VERSION,;t t | |
8932 | s,@ACLOCAL@,$ACLOCAL,;t t | |
8933 | s,@AUTOCONF@,$AUTOCONF,;t t | |
8934 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
8935 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
8936 | s,@MAKEINFO@,$MAKEINFO,;t t | |
8937 | s,@AMTAR@,$AMTAR,;t t | |
8938 | s,@install_sh@,$install_sh,;t t | |
8939 | s,@STRIP@,$STRIP,;t t | |
8940 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
8941 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
8942 | s,@mkdir_p@,$mkdir_p,;t t | |
8943 | s,@AWK@,$AWK,;t t | |
8944 | s,@SET_MAKE@,$SET_MAKE,;t t | |
8945 | s,@am__leading_dot@,$am__leading_dot,;t t | |
8946 | s,@DEPDIR@,$DEPDIR,;t t | |
8947 | s,@am__include@,$am__include,;t t | |
8948 | s,@am__quote@,$am__quote,;t t | |
8949 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
8950 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
8951 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
8952 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
8953 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
8954 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
8955 | s,@LN_S@,$LN_S,;t t | |
8956 | s,@RANLIB@,$RANLIB,;t t | |
8957 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
8958 | s,@LIBTOOL@,$LIBTOOL,;t t | |
8959 | s,@CPP@,$CPP,;t t | |
8960 | s,@EGREP@,$EGREP,;t t | |
8961 | s,@ALLOCA@,$ALLOCA,;t t | |
8962 | s,@USE_NLS@,$USE_NLS,;t t | |
8963 | s,@MSGFMT@,$MSGFMT,;t t | |
8964 | s,@GMSGFMT@,$GMSGFMT,;t t | |
8965 | s,@XGETTEXT@,$XGETTEXT,;t t | |
8966 | s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t | |
8967 | s,@CATALOGS@,$CATALOGS,;t t | |
8968 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
8969 | s,@DATADIRNAME@,$DATADIRNAME,;t t | |
8970 | s,@GMOFILES@,$GMOFILES,;t t | |
8971 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
8972 | s,@INTLDEPS@,$INTLDEPS,;t t | |
8973 | s,@INTLLIBS@,$INTLLIBS,;t t | |
8974 | s,@INTLOBJS@,$INTLOBJS,;t t | |
8975 | s,@POFILES@,$POFILES,;t t | |
8976 | s,@POSUB@,$POSUB,;t t | |
8977 | s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t | |
8978 | s,@GT_NO@,$GT_NO,;t t | |
8979 | s,@GT_YES@,$GT_YES,;t t | |
8980 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t | |
8981 | s,@l@,$l,;t t | |
8982 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
8983 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
8984 | s,@MAINT@,$MAINT,;t t | |
8985 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
8986 | s,@LIBOBJS@,$LIBOBJS,;t t | |
8987 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
252b5132 | 8988 | CEOF |
252b5132 | 8989 | |
6bf9431b BE |
8990 | _ACEOF |
8991 | ||
8992 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8993 | # Split the substitutions into bite-sized pieces for seds with | |
8994 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
8995 | ac_max_sed_lines=48 | |
8996 | ac_sed_frag=1 # Number of current file. | |
8997 | ac_beg=1 # First line for current file. | |
8998 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
8999 | ac_more_lines=: | |
9000 | ac_sed_cmds= | |
9001 | while $ac_more_lines; do | |
9002 | if test $ac_beg -gt 1; then | |
9003 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
252b5132 | 9004 | else |
6bf9431b | 9005 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
252b5132 | 9006 | fi |
6bf9431b BE |
9007 | if test ! -s $tmp/subs.frag; then |
9008 | ac_more_lines=false | |
9009 | else | |
9010 | # The purpose of the label and of the branching condition is to | |
9011 | # speed up the sed processing (if there are no `@' at all, there | |
9012 | # is no need to browse any of the substitutions). | |
9013 | # These are the two extra sed commands mentioned above. | |
9014 | (echo ':t | |
9015 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
9016 | if test -z "$ac_sed_cmds"; then | |
9017 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
9018 | else | |
9019 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
9020 | fi | |
9021 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
9022 | ac_beg=$ac_end | |
9023 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
9024 | fi | |
9025 | done | |
9026 | if test -z "$ac_sed_cmds"; then | |
9027 | ac_sed_cmds=cat | |
252b5132 | 9028 | fi |
6bf9431b | 9029 | fi # test -n "$CONFIG_FILES" |
252b5132 | 9030 | |
6bf9431b BE |
9031 | _ACEOF |
9032 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9033 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
252b5132 | 9034 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
6bf9431b BE |
9035 | case $ac_file in |
9036 | - | *:- | *:-:* ) # input from stdin | |
9037 | cat >$tmp/stdin | |
9038 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9039 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9040 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9041 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9042 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
9043 | esac |
9044 | ||
6bf9431b BE |
9045 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
9046 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
9047 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9048 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
9049 | X"$ac_file" : 'X\(//\)$' \| \ | |
9050 | X"$ac_file" : 'X\(/\)' \| \ | |
9051 | . : '\(.\)' 2>/dev/null || | |
9052 | echo X"$ac_file" | | |
9053 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9054 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9055 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9056 | /^X\(\/\).*/{ s//\1/; q; } | |
9057 | s/.*/./; q'` | |
9058 | { if $as_mkdir_p; then | |
9059 | mkdir -p "$ac_dir" | |
252b5132 | 9060 | else |
6bf9431b BE |
9061 | as_dir="$ac_dir" |
9062 | as_dirs= | |
9063 | while test ! -d "$as_dir"; do | |
9064 | as_dirs="$as_dir $as_dirs" | |
9065 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
9066 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9067 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9068 | X"$as_dir" : 'X\(//\)$' \| \ | |
9069 | X"$as_dir" : 'X\(/\)' \| \ | |
9070 | . : '\(.\)' 2>/dev/null || | |
9071 | echo X"$as_dir" | | |
9072 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9073 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9074 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9075 | /^X\(\/\).*/{ s//\1/; q; } | |
9076 | s/.*/./; q'` | |
9077 | done | |
9078 | test ! -n "$as_dirs" || mkdir $as_dirs | |
9079 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
9080 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
9081 | { (exit 1); exit 1; }; }; } | |
9082 | ||
9083 | ac_builddir=. | |
9084 | ||
9085 | if test "$ac_dir" != .; then | |
9086 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
9087 | # A "../" for each directory in $ac_dir_suffix. | |
9088 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
9089 | else | |
9090 | ac_dir_suffix= ac_top_builddir= | |
9091 | fi | |
252b5132 | 9092 | |
6bf9431b BE |
9093 | case $srcdir in |
9094 | .) # No --srcdir option. We are building in place. | |
9095 | ac_srcdir=. | |
9096 | if test -z "$ac_top_builddir"; then | |
9097 | ac_top_srcdir=. | |
9098 | else | |
9099 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
9100 | fi ;; | |
9101 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
9102 | ac_srcdir=$srcdir$ac_dir_suffix; | |
9103 | ac_top_srcdir=$srcdir ;; | |
252b5132 | 9104 | *) # Relative path. |
6bf9431b BE |
9105 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
9106 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
9107 | esac | |
252b5132 | 9108 | |
6bf9431b BE |
9109 | # Do not use `cd foo && pwd` to compute absolute paths, because |
9110 | # the directories may not exist. | |
9111 | case `pwd` in | |
9112 | .) ac_abs_builddir="$ac_dir";; | |
9113 | *) | |
9114 | case "$ac_dir" in | |
9115 | .) ac_abs_builddir=`pwd`;; | |
9116 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
9117 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
9118 | esac;; | |
9119 | esac | |
9120 | case $ac_abs_builddir in | |
9121 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
9122 | *) | |
9123 | case ${ac_top_builddir}. in | |
9124 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
9125 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
9126 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
9127 | esac;; | |
9128 | esac | |
9129 | case $ac_abs_builddir in | |
9130 | .) ac_abs_srcdir=$ac_srcdir;; | |
9131 | *) | |
9132 | case $ac_srcdir in | |
9133 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
9134 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
9135 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
9136 | esac;; | |
9137 | esac | |
9138 | case $ac_abs_builddir in | |
9139 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
9140 | *) | |
9141 | case $ac_top_srcdir in | |
9142 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
9143 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
9144 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
9145 | esac;; | |
9146 | esac | |
252b5132 | 9147 | |
6bf9431b BE |
9148 | |
9149 | case $INSTALL in | |
9150 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
9151 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
252b5132 RH |
9152 | esac |
9153 | ||
6bf9431b BE |
9154 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
9155 | # use $as_me), people would be surprised to read: | |
9156 | # /* config.h. Generated by config.status. */ | |
9157 | if test x"$ac_file" = x-; then | |
9158 | configure_input= | |
9159 | else | |
9160 | configure_input="$ac_file. " | |
9161 | fi | |
9162 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
9163 | sed 's,.*/,,'` by configure." | |
9164 | ||
9165 | # First look for the input files in the build tree, otherwise in the | |
9166 | # src tree. | |
9167 | ac_file_inputs=`IFS=: | |
9168 | for f in $ac_file_in; do | |
9169 | case $f in | |
9170 | -) echo $tmp/stdin ;; | |
9171 | [\\/$]*) | |
9172 | # Absolute (can't be DOS-style, as IFS=:) | |
9173 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9174 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
9175 | { (exit 1); exit 1; }; } | |
9176 | echo "$f";; | |
9177 | *) # Relative | |
9178 | if test -f "$f"; then | |
9179 | # Build tree | |
9180 | echo "$f" | |
9181 | elif test -f "$srcdir/$f"; then | |
9182 | # Source tree | |
9183 | echo "$srcdir/$f" | |
9184 | else | |
9185 | # /dev/null tree | |
9186 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9187 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
9188 | { (exit 1); exit 1; }; } | |
9189 | fi;; | |
9190 | esac | |
9191 | done` || { (exit 1); exit 1; } | |
9192 | ||
9193 | if test x"$ac_file" != x-; then | |
9194 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
9195 | echo "$as_me: creating $ac_file" >&6;} | |
9196 | rm -f "$ac_file" | |
9197 | fi | |
9198 | _ACEOF | |
9199 | cat >>$CONFIG_STATUS <<_ACEOF | |
9200 | sed "$ac_vpsub | |
9201 | $extrasub | |
9202 | _ACEOF | |
9203 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9204 | :t | |
9205 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
9206 | s,@configure_input@,$configure_input,;t t | |
9207 | s,@srcdir@,$ac_srcdir,;t t | |
9208 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
9209 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
9210 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
9211 | s,@builddir@,$ac_builddir,;t t | |
9212 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
9213 | s,@top_builddir@,$ac_top_builddir,;t t | |
9214 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
9215 | s,@INSTALL@,$ac_INSTALL,;t t | |
9216 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
9217 | rm -f $tmp/stdin | |
9218 | if test x"$ac_file" != x-; then | |
9219 | mv $tmp/out $ac_file | |
9220 | else | |
9221 | cat $tmp/out | |
9222 | rm -f $tmp/out | |
9223 | fi | |
9224 | ||
9225 | done | |
9226 | _ACEOF | |
9227 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9228 | ||
9229 | # | |
9230 | # CONFIG_HEADER section. | |
9231 | # | |
252b5132 RH |
9232 | |
9233 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
9234 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
9235 | # | |
9236 | # ac_d sets the value in "#define NAME VALUE" lines. | |
6bf9431b BE |
9237 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
9238 | ac_dB='[ ].*$,\1#\2' | |
9239 | ac_dC=' ' | |
9240 | ac_dD=',;t' | |
9241 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
9242 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
9243 | ac_uB='$,\1#\2define\3' | |
252b5132 | 9244 | ac_uC=' ' |
6bf9431b BE |
9245 | ac_uD=',;t' |
9246 | ||
9247 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
252b5132 | 9248 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
6bf9431b BE |
9249 | case $ac_file in |
9250 | - | *:- | *:-:* ) # input from stdin | |
9251 | cat >$tmp/stdin | |
9252 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9253 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9254 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9255 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9256 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
9257 | esac |
9258 | ||
6bf9431b BE |
9259 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
9260 | echo "$as_me: creating $ac_file" >&6;} | |
9261 | ||
9262 | # First look for the input files in the build tree, otherwise in the | |
9263 | # src tree. | |
9264 | ac_file_inputs=`IFS=: | |
9265 | for f in $ac_file_in; do | |
9266 | case $f in | |
9267 | -) echo $tmp/stdin ;; | |
9268 | [\\/$]*) | |
9269 | # Absolute (can't be DOS-style, as IFS=:) | |
9270 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9271 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
9272 | { (exit 1); exit 1; }; } | |
9273 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
9274 | echo "$f";; | |
9275 | *) # Relative | |
9276 | if test -f "$f"; then | |
9277 | # Build tree | |
9278 | echo "$f" | |
9279 | elif test -f "$srcdir/$f"; then | |
9280 | # Source tree | |
9281 | echo "$srcdir/$f" | |
9282 | else | |
9283 | # /dev/null tree | |
9284 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9285 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
9286 | { (exit 1); exit 1; }; } | |
9287 | fi;; | |
9288 | esac | |
9289 | done` || { (exit 1); exit 1; } | |
9290 | # Remove the trailing spaces. | |
9291 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
9292 | ||
9293 | _ACEOF | |
9294 | ||
9295 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
9296 | # `conftest.undefs', that substitutes the proper values into | |
9297 | # config.h.in to produce config.h. The first handles `#define' | |
9298 | # templates, and the second `#undef' templates. | |
9299 | # And first: Protect against being on the right side of a sed subst in | |
9300 | # config.status. Protect against being in an unquoted here document | |
9301 | # in config.status. | |
9302 | rm -f conftest.defines conftest.undefs | |
9303 | # Using a here document instead of a string reduces the quoting nightmare. | |
9304 | # Putting comments in sed scripts is not portable. | |
9305 | # | |
9306 | # `end' is used to avoid that the second main sed command (meant for | |
9307 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
9308 | # See the Autoconf documentation for `clear'. | |
9309 | cat >confdef2sed.sed <<\_ACEOF | |
9310 | s/[\\&,]/\\&/g | |
9311 | s,[\\$`],\\&,g | |
9312 | t clear | |
9313 | : clear | |
9314 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
9315 | t end | |
9316 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
9317 | : end | |
9318 | _ACEOF | |
9319 | # If some macros were called several times there might be several times | |
9320 | # the same #defines, which is useless. Nevertheless, we may not want to | |
9321 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
9322 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
9323 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
9324 | rm -f confdef2sed.sed | |
252b5132 RH |
9325 | |
9326 | # This sed command replaces #undef with comments. This is necessary, for | |
9327 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
9328 | # on some systems where configure will not decide to define it. | |
6bf9431b BE |
9329 | cat >>conftest.undefs <<\_ACEOF |
9330 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
9331 | _ACEOF | |
9332 | ||
9333 | # Break up conftest.defines because some shells have a limit on the size | |
9334 | # of here documents, and old seds have small limits too (100 cmds). | |
9335 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
9336 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
9337 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
9338 | echo ' :' >>$CONFIG_STATUS | |
9339 | rm -f conftest.tail | |
9340 | while grep . conftest.defines >/dev/null | |
9341 | do | |
9342 | # Write a limited-size here document to $tmp/defines.sed. | |
9343 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
9344 | # Speed up: don't consider the non `#define' lines. | |
9345 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
9346 | # Work around the forget-to-reset-the-flag bug. | |
9347 | echo 't clr' >>$CONFIG_STATUS | |
9348 | echo ': clr' >>$CONFIG_STATUS | |
9349 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
9350 | echo 'CEOF | |
9351 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
9352 | rm -f $tmp/in | |
9353 | mv $tmp/out $tmp/in | |
9354 | ' >>$CONFIG_STATUS | |
9355 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
9356 | rm -f conftest.defines | |
9357 | mv conftest.tail conftest.defines | |
9358 | done | |
9359 | rm -f conftest.defines | |
9360 | echo ' fi # grep' >>$CONFIG_STATUS | |
9361 | echo >>$CONFIG_STATUS | |
252b5132 | 9362 | |
6bf9431b BE |
9363 | # Break up conftest.undefs because some shells have a limit on the size |
9364 | # of here documents, and old seds have small limits too (100 cmds). | |
9365 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
252b5132 | 9366 | rm -f conftest.tail |
6bf9431b | 9367 | while grep . conftest.undefs >/dev/null |
252b5132 | 9368 | do |
6bf9431b BE |
9369 | # Write a limited-size here document to $tmp/undefs.sed. |
9370 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
9371 | # Speed up: don't consider the non `#undef' | |
9372 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
9373 | # Work around the forget-to-reset-the-flag bug. | |
9374 | echo 't clr' >>$CONFIG_STATUS | |
9375 | echo ': clr' >>$CONFIG_STATUS | |
9376 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
252b5132 | 9377 | echo 'CEOF |
6bf9431b BE |
9378 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
9379 | rm -f $tmp/in | |
9380 | mv $tmp/out $tmp/in | |
9381 | ' >>$CONFIG_STATUS | |
9382 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
9383 | rm -f conftest.undefs | |
9384 | mv conftest.tail conftest.undefs | |
252b5132 | 9385 | done |
6bf9431b BE |
9386 | rm -f conftest.undefs |
9387 | ||
9388 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9389 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
9390 | # use $as_me), people would be surprised to read: | |
9391 | # /* config.h. Generated by config.status. */ | |
9392 | if test x"$ac_file" = x-; then | |
9393 | echo "/* Generated by configure. */" >$tmp/config.h | |
9394 | else | |
9395 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
9396 | fi | |
9397 | cat $tmp/in >>$tmp/config.h | |
9398 | rm -f $tmp/in | |
9399 | if test x"$ac_file" != x-; then | |
9400 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
9401 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
9402 | echo "$as_me: $ac_file is unchanged" >&6;} | |
9403 | else | |
9404 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
9405 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9406 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
9407 | X"$ac_file" : 'X\(//\)$' \| \ | |
9408 | X"$ac_file" : 'X\(/\)' \| \ | |
9409 | . : '\(.\)' 2>/dev/null || | |
9410 | echo X"$ac_file" | | |
9411 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9412 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9413 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9414 | /^X\(\/\).*/{ s//\1/; q; } | |
9415 | s/.*/./; q'` | |
9416 | { if $as_mkdir_p; then | |
9417 | mkdir -p "$ac_dir" | |
252b5132 | 9418 | else |
6bf9431b BE |
9419 | as_dir="$ac_dir" |
9420 | as_dirs= | |
9421 | while test ! -d "$as_dir"; do | |
9422 | as_dirs="$as_dir $as_dirs" | |
9423 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
9424 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9425 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9426 | X"$as_dir" : 'X\(//\)$' \| \ | |
9427 | X"$as_dir" : 'X\(/\)' \| \ | |
9428 | . : '\(.\)' 2>/dev/null || | |
9429 | echo X"$as_dir" | | |
9430 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9431 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9432 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9433 | /^X\(\/\).*/{ s//\1/; q; } | |
9434 | s/.*/./; q'` | |
9435 | done | |
9436 | test ! -n "$as_dirs" || mkdir $as_dirs | |
9437 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
9438 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
9439 | { (exit 1); exit 1; }; }; } | |
9440 | ||
9441 | rm -f $ac_file | |
9442 | mv $tmp/config.h $ac_file | |
252b5132 | 9443 | fi |
6bf9431b BE |
9444 | else |
9445 | cat $tmp/config.h | |
9446 | rm -f $tmp/config.h | |
252b5132 | 9447 | fi |
6bf9431b BE |
9448 | # Compute $ac_file's index in $config_headers. |
9449 | _am_stamp_count=1 | |
9450 | for _am_header in $config_headers :; do | |
9451 | case $_am_header in | |
9452 | $ac_file | $ac_file:* ) | |
9453 | break ;; | |
9454 | * ) | |
9455 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
9456 | esac | |
9457 | done | |
9458 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
9459 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9460 | X$ac_file : 'X\(//\)[^/]' \| \ | |
9461 | X$ac_file : 'X\(//\)$' \| \ | |
9462 | X$ac_file : 'X\(/\)' \| \ | |
9463 | . : '\(.\)' 2>/dev/null || | |
9464 | echo X$ac_file | | |
9465 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9466 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9467 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9468 | /^X\(\/\).*/{ s//\1/; q; } | |
9469 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
9470 | done | |
9471 | _ACEOF | |
9472 | cat >>$CONFIG_STATUS <<\_ACEOF | |
252b5132 | 9473 | |
6bf9431b BE |
9474 | # |
9475 | # CONFIG_COMMANDS section. | |
9476 | # | |
9477 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
9478 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
9479 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9480 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
9481 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9482 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
9483 | X"$ac_dest" : 'X\(//\)$' \| \ | |
9484 | X"$ac_dest" : 'X\(/\)' \| \ | |
9485 | . : '\(.\)' 2>/dev/null || | |
9486 | echo X"$ac_dest" | | |
9487 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9488 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9489 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9490 | /^X\(\/\).*/{ s//\1/; q; } | |
9491 | s/.*/./; q'` | |
9492 | { if $as_mkdir_p; then | |
9493 | mkdir -p "$ac_dir" | |
9494 | else | |
9495 | as_dir="$ac_dir" | |
9496 | as_dirs= | |
9497 | while test ! -d "$as_dir"; do | |
9498 | as_dirs="$as_dir $as_dirs" | |
9499 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
9500 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9501 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9502 | X"$as_dir" : 'X\(//\)$' \| \ | |
9503 | X"$as_dir" : 'X\(/\)' \| \ | |
9504 | . : '\(.\)' 2>/dev/null || | |
9505 | echo X"$as_dir" | | |
9506 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9507 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9508 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9509 | /^X\(\/\).*/{ s//\1/; q; } | |
9510 | s/.*/./; q'` | |
9511 | done | |
9512 | test ! -n "$as_dirs" || mkdir $as_dirs | |
9513 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
9514 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
9515 | { (exit 1); exit 1; }; }; } | |
252b5132 | 9516 | |
6bf9431b | 9517 | ac_builddir=. |
252b5132 | 9518 | |
6bf9431b BE |
9519 | if test "$ac_dir" != .; then |
9520 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
9521 | # A "../" for each directory in $ac_dir_suffix. | |
9522 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
9523 | else | |
9524 | ac_dir_suffix= ac_top_builddir= | |
9525 | fi | |
9526 | ||
9527 | case $srcdir in | |
9528 | .) # No --srcdir option. We are building in place. | |
9529 | ac_srcdir=. | |
9530 | if test -z "$ac_top_builddir"; then | |
9531 | ac_top_srcdir=. | |
9532 | else | |
9533 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
9534 | fi ;; | |
9535 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
9536 | ac_srcdir=$srcdir$ac_dir_suffix; | |
9537 | ac_top_srcdir=$srcdir ;; | |
9538 | *) # Relative path. | |
9539 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
9540 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
9541 | esac | |
9542 | ||
9543 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
9544 | # the directories may not exist. | |
9545 | case `pwd` in | |
9546 | .) ac_abs_builddir="$ac_dir";; | |
9547 | *) | |
9548 | case "$ac_dir" in | |
9549 | .) ac_abs_builddir=`pwd`;; | |
9550 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
9551 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
9552 | esac;; | |
9553 | esac | |
9554 | case $ac_abs_builddir in | |
9555 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
9556 | *) | |
9557 | case ${ac_top_builddir}. in | |
9558 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
9559 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
9560 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
9561 | esac;; | |
9562 | esac | |
9563 | case $ac_abs_builddir in | |
9564 | .) ac_abs_srcdir=$ac_srcdir;; | |
9565 | *) | |
9566 | case $ac_srcdir in | |
9567 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
9568 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
9569 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
9570 | esac;; | |
9571 | esac | |
9572 | case $ac_abs_builddir in | |
9573 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
9574 | *) | |
9575 | case $ac_top_srcdir in | |
9576 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
9577 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
9578 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
9579 | esac;; | |
9580 | esac | |
9581 | ||
9582 | ||
9583 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
9584 | echo "$as_me: executing $ac_dest commands" >&6;} | |
9585 | case $ac_dest in | |
9586 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
9587 | # Strip MF so we end up with the name of the file. | |
9588 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
9589 | # Check whether this is an Automake generated Makefile or not. | |
9590 | # We used to match only the files named `Makefile.in', but | |
9591 | # some people rename them; so instead we look at the file content. | |
9592 | # Grep'ing the first line is not enough: some people post-process | |
9593 | # each Makefile.in and add a new line on top of each file to say so. | |
9594 | # So let's grep whole file. | |
9595 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
9596 | dirpart=`(dirname "$mf") 2>/dev/null || | |
9597 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9598 | X"$mf" : 'X\(//\)[^/]' \| \ | |
9599 | X"$mf" : 'X\(//\)$' \| \ | |
9600 | X"$mf" : 'X\(/\)' \| \ | |
9601 | . : '\(.\)' 2>/dev/null || | |
9602 | echo X"$mf" | | |
9603 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9604 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9605 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9606 | /^X\(\/\).*/{ s//\1/; q; } | |
9607 | s/.*/./; q'` | |
9608 | else | |
9609 | continue | |
9610 | fi | |
9611 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue | |
9612 | # Extract the definition of DEP_FILES from the Makefile without | |
9613 | # running `make'. | |
9614 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
9615 | test -z "$DEPDIR" && continue | |
9616 | # When using ansi2knr, U may be empty or an underscore; expand it | |
9617 | U=`sed -n 's/^U = //p' < "$mf"` | |
9618 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" | |
9619 | # We invoke sed twice because it is the simplest approach to | |
9620 | # changing $(DEPDIR) to its actual value in the expansion. | |
9621 | for file in `sed -n ' | |
9622 | /^DEP_FILES = .*\\\\$/ { | |
9623 | s/^DEP_FILES = // | |
9624 | :loop | |
9625 | s/\\\\$// | |
9626 | p | |
9627 | n | |
9628 | /\\\\$/ b loop | |
9629 | p | |
9630 | } | |
9631 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ | |
9632 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
9633 | # Make sure the directory exists. | |
9634 | test -f "$dirpart/$file" && continue | |
9635 | fdir=`(dirname "$file") 2>/dev/null || | |
9636 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9637 | X"$file" : 'X\(//\)[^/]' \| \ | |
9638 | X"$file" : 'X\(//\)$' \| \ | |
9639 | X"$file" : 'X\(/\)' \| \ | |
9640 | . : '\(.\)' 2>/dev/null || | |
9641 | echo X"$file" | | |
9642 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9643 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9644 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9645 | /^X\(\/\).*/{ s//\1/; q; } | |
9646 | s/.*/./; q'` | |
9647 | { if $as_mkdir_p; then | |
9648 | mkdir -p $dirpart/$fdir | |
9649 | else | |
9650 | as_dir=$dirpart/$fdir | |
9651 | as_dirs= | |
9652 | while test ! -d "$as_dir"; do | |
9653 | as_dirs="$as_dir $as_dirs" | |
9654 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
9655 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9656 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9657 | X"$as_dir" : 'X\(//\)$' \| \ | |
9658 | X"$as_dir" : 'X\(/\)' \| \ | |
9659 | . : '\(.\)' 2>/dev/null || | |
9660 | echo X"$as_dir" | | |
9661 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9662 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9663 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9664 | /^X\(\/\).*/{ s//\1/; q; } | |
9665 | s/.*/./; q'` | |
9666 | done | |
9667 | test ! -n "$as_dirs" || mkdir $as_dirs | |
9668 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
9669 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
9670 | { (exit 1); exit 1; }; }; } | |
9671 | ||
9672 | # echo "creating $dirpart/$file" | |
9673 | echo '# dummy' > "$dirpart/$file" | |
9674 | done | |
9675 | done | |
9676 | ;; | |
9677 | default ) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;; | |
9678 | esac | |
9679 | done | |
9680 | _ACEOF | |
9681 | ||
9682 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9683 | ||
9684 | { (exit 0); exit 0; } | |
9685 | _ACEOF | |
252b5132 | 9686 | chmod +x $CONFIG_STATUS |
6bf9431b BE |
9687 | ac_clean_files=$ac_clean_files_save |
9688 | ||
9689 | ||
9690 | # configure is writing to config.log, and then calls config.status. | |
9691 | # config.status does its own redirection, appending to config.log. | |
9692 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
9693 | # by configure, so config.status won't be able to write to it; its | |
9694 | # output is simply discarded. So we exec the FD to /dev/null, | |
9695 | # effectively closing config.log, so it can be properly (re)opened and | |
9696 | # appended to by config.status. When coming back to configure, we | |
9697 | # need to make the FD available again. | |
9698 | if test "$no_create" != yes; then | |
9699 | ac_cs_success=: | |
9700 | ac_config_status_args= | |
9701 | test "$silent" = yes && | |
9702 | ac_config_status_args="$ac_config_status_args --quiet" | |
9703 | exec 5>/dev/null | |
9704 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
9705 | exec 5>>config.log | |
9706 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
9707 | # would make configure fail if this is the last instruction. | |
9708 | $ac_cs_success || { (exit 1); exit 1; } | |
9709 | fi | |
252b5132 | 9710 |