Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
42ecbf5e | 3 | # Generated by GNU Autoconf 2.59. |
252b5132 | 4 | # |
42ecbf5e | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
252b5132 RH |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
42ecbf5e DJ |
8 | ## --------------------- ## |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
11 | ||
12 | # Be Bourne compatible | |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14 | emulate sh | |
15 | NULLCMD=: | |
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
17 | # is contrary to our usage. Disable this feature. | |
18 | alias -g '${1+"$@"}'='"$@"' | |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20 | set -o posix | |
21 | fi | |
22 | DUALCASE=1; export DUALCASE # for MKS sh | |
23 | ||
24 | # Support unset when possible. | |
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26 | as_unset=unset | |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
31 | ||
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
33 | $as_unset ENV MAIL MAILPATH | |
34 | PS1='$ ' | |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
39 | for as_var in \ | |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 | LC_TELEPHONE LC_TIME | |
43 | do | |
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
45 | eval $as_var=C; export $as_var | |
46 | else | |
47 | $as_unset $as_var | |
48 | fi | |
49 | done | |
50 | ||
51 | # Required to use basename. | |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
66 | as_me=`$as_basename "$0" || | |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
68 | X"$0" : 'X\(//\)$' \| \ | |
69 | X"$0" : 'X\(/\)$' \| \ | |
70 | . : '\(.\)' 2>/dev/null || | |
71 | echo X/"$0" | | |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
76 | ||
77 | ||
78 | # PATH needs CR, and LINENO needs CR and PATH. | |
79 | # Avoid depending upon Character Ranges. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
85 | ||
86 | # The user is always right. | |
87 | if test "${PATH_SEPARATOR+set}" != set; then | |
88 | echo "#! /bin/sh" >conf$$.sh | |
89 | echo "exit 0" >>conf$$.sh | |
90 | chmod +x conf$$.sh | |
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
92 | PATH_SEPARATOR=';' | |
93 | else | |
94 | PATH_SEPARATOR=: | |
95 | fi | |
96 | rm -f conf$$.sh | |
97 | fi | |
98 | ||
99 | ||
100 | as_lineno_1=$LINENO | |
101 | as_lineno_2=$LINENO | |
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
105 | # Find who we are. Look in the path if we contain no path at all | |
106 | # relative or not. | |
107 | case $0 in | |
108 | *[\\/]* ) as_myself=$0 ;; | |
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
116 | ||
117 | ;; | |
118 | esac | |
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
120 | # in which case we are not to be found in the path. | |
121 | if test "x$as_myself" = x; then | |
122 | as_myself=$0 | |
123 | fi | |
124 | if test ! -f "$as_myself"; then | |
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
126 | { (exit 1); exit 1; }; } | |
127 | fi | |
128 | case $CONFIG_SHELL in | |
129 | '') | |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
135 | for as_base in sh bash ksh sh5; do | |
136 | case $as_dir in | |
137 | /*) | |
138 | if ("$as_dir/$as_base" -c ' | |
139 | as_lineno_1=$LINENO | |
140 | as_lineno_2=$LINENO | |
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
146 | CONFIG_SHELL=$as_dir/$as_base | |
147 | export CONFIG_SHELL | |
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
149 | fi;; | |
150 | esac | |
151 | done | |
152 | done | |
153 | ;; | |
154 | esac | |
155 | ||
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
157 | # uniformly replaced by the line number. The first 'sed' inserts a | |
158 | # line-number line before each line; the second 'sed' does the real | |
159 | # work. The second script uses 'N' to pair each line-number line | |
160 | # with the numbered line, and appends trailing '-' during | |
161 | # substitution so that $LINENO is not a special case at line end. | |
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
164 | sed '=' <$as_myself | | |
165 | sed ' | |
166 | N | |
167 | s,$,-, | |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
170 | t loop | |
171 | s,-$,, | |
172 | s,^['$as_cr_digits']*\n,, | |
173 | ' >$as_me.lineno && | |
174 | chmod +x $as_me.lineno || | |
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
176 | { (exit 1); exit 1; }; } | |
177 | ||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | |
179 | # (the dirname of $[0] is not the place where we might find the | |
180 | # original and so on. Autoconf is especially sensible to this). | |
181 | . ./$as_me.lineno | |
182 | # Exit status is that of the last command. | |
183 | exit | |
184 | } | |
185 | ||
186 | ||
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
188 | *c*,-n*) ECHO_N= ECHO_C=' | |
189 | ' ECHO_T=' ' ;; | |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
192 | esac | |
193 | ||
194 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
195 | as_expr=expr | |
196 | else | |
197 | as_expr=false | |
198 | fi | |
199 | ||
200 | rm -f conf$$ conf$$.exe conf$$.file | |
201 | echo >conf$$.file | |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
203 | # We could just check for DJGPP; but this test a) works b) is more generic | |
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
205 | if test -f conf$$.exe; then | |
206 | # Don't use ln at all; we don't have any links | |
207 | as_ln_s='cp -p' | |
208 | else | |
209 | as_ln_s='ln -s' | |
210 | fi | |
211 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
212 | as_ln_s=ln | |
213 | else | |
214 | as_ln_s='cp -p' | |
215 | fi | |
216 | rm -f conf$$ conf$$.exe conf$$.file | |
217 | ||
218 | if mkdir -p . 2>/dev/null; then | |
219 | as_mkdir_p=: | |
220 | else | |
221 | test -d ./-p && rmdir ./-p | |
222 | as_mkdir_p=false | |
223 | fi | |
224 | ||
225 | as_executable_p="test -f" | |
226 | ||
227 | # Sed expression to map a string onto a valid CPP name. | |
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
229 | ||
230 | # Sed expression to map a string onto a valid variable name. | |
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
232 | ||
233 | ||
234 | # IFS | |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
239 | ||
240 | # CDPATH. | |
241 | $as_unset CDPATH | |
242 | ||
243 | ||
d7040cdb SE |
244 | |
245 | # Check that we are running under the correct shell. | |
246 | SHELL=${CONFIG_SHELL-/bin/sh} | |
247 | ||
248 | case X$lt_ECHO in | |
249 | X*--fallback-echo) | |
250 | # Remove one level of quotation (which was required for Make). | |
251 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
252 | ;; | |
253 | esac | |
254 | ||
255 | ECHO=${lt_ECHO-echo} | |
256 | if test "X$1" = X--no-reexec; then | |
257 | # Discard the --no-reexec flag, and continue. | |
258 | shift | |
259 | elif test "X$1" = X--fallback-echo; then | |
260 | # Avoid inline document here, it may be left over | |
261 | : | |
262 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | |
263 | # Yippee, $ECHO works! | |
264 | : | |
265 | else | |
266 | # Restart under the correct shell. | |
267 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
268 | fi | |
269 | ||
270 | if test "X$1" = X--fallback-echo; then | |
271 | # used as fallback echo | |
272 | shift | |
273 | cat <<_LT_EOF | |
274 | $* | |
275 | _LT_EOF | |
276 | exit 0 | |
277 | fi | |
278 | ||
279 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
280 | # if CDPATH is set. | |
281 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
282 | ||
283 | if test -z "$lt_ECHO"; then | |
284 | if test "X${echo_test_string+set}" != Xset; then | |
285 | # find a string as large as possible, as long as the shell can cope with it | |
286 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
287 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
288 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
289 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
290 | then | |
291 | break | |
292 | fi | |
293 | done | |
294 | fi | |
295 | ||
296 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
297 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
298 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
299 | : | |
300 | else | |
301 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
302 | # backslashes. This makes it impossible to quote backslashes using | |
303 | # echo "$something" | sed 's/\\/\\\\/g' | |
304 | # | |
305 | # So, first we look for a working echo in the user's PATH. | |
306 | ||
307 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
308 | for dir in $PATH /usr/ucb; do | |
309 | IFS="$lt_save_ifs" | |
310 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
311 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
312 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
313 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
314 | ECHO="$dir/echo" | |
315 | break | |
316 | fi | |
317 | done | |
318 | IFS="$lt_save_ifs" | |
319 | ||
320 | if test "X$ECHO" = Xecho; then | |
321 | # We didn't find a better echo, so look for alternatives. | |
322 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
323 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
324 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
325 | # This shell has a builtin print -r that does the trick. | |
326 | ECHO='print -r' | |
327 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
328 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
329 | # If we have ksh, try running configure again with it. | |
330 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
331 | export ORIGINAL_CONFIG_SHELL | |
332 | CONFIG_SHELL=/bin/ksh | |
333 | export CONFIG_SHELL | |
334 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
335 | else | |
336 | # Try using printf. | |
337 | ECHO='printf %s\n' | |
338 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
339 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
340 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
341 | # Cool, printf works | |
342 | : | |
343 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
344 | test "X$echo_testing_string" = 'X\t' && | |
345 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
346 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
347 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
348 | export CONFIG_SHELL | |
349 | SHELL="$CONFIG_SHELL" | |
350 | export SHELL | |
351 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
352 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
353 | test "X$echo_testing_string" = 'X\t' && | |
354 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
355 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
356 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
357 | else | |
358 | # maybe with a smaller string... | |
359 | prev=: | |
360 | ||
361 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
362 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
363 | then | |
364 | break | |
365 | fi | |
366 | prev="$cmd" | |
367 | done | |
368 | ||
369 | if test "$prev" != 'sed 50q "$0"'; then | |
370 | echo_test_string=`eval $prev` | |
371 | export echo_test_string | |
372 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
373 | else | |
374 | # Oops. We lost completely, so just stick with echo. | |
375 | ECHO=echo | |
376 | fi | |
377 | fi | |
378 | fi | |
379 | fi | |
380 | fi | |
381 | fi | |
382 | ||
383 | # Copy echo and quote the copy suitably for passing to libtool from | |
384 | # the Makefile, instead of quoting the original, which is used later. | |
385 | lt_ECHO=$ECHO | |
386 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
387 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
388 | fi | |
389 | ||
390 | ||
391 | ||
392 | ||
42ecbf5e DJ |
393 | # Name of the host. |
394 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
395 | # so uname gets run too. | |
396 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
252b5132 | 397 | |
42ecbf5e DJ |
398 | exec 6>&1 |
399 | ||
400 | # | |
401 | # Initializations. | |
402 | # | |
252b5132 | 403 | ac_default_prefix=/usr/local |
42ecbf5e DJ |
404 | ac_config_libobj_dir=. |
405 | cross_compiling=no | |
406 | subdirs= | |
407 | MFLAGS= | |
408 | MAKEFLAGS= | |
409 | SHELL=${CONFIG_SHELL-/bin/sh} | |
410 | ||
411 | # Maximum number of lines to put in a shell here document. | |
412 | # This variable seems obsolete. It should probably be removed, and | |
413 | # only ac_max_sed_lines should be used. | |
414 | : ${ac_max_here_lines=38} | |
415 | ||
416 | # Identity of this package. | |
417 | PACKAGE_NAME= | |
418 | PACKAGE_TARNAME= | |
419 | PACKAGE_VERSION= | |
420 | PACKAGE_STRING= | |
421 | PACKAGE_BUGREPORT= | |
422 | ||
423 | ac_unique_file="ar.c" | |
424 | # Factoring default headers for most tests. | |
425 | ac_includes_default="\ | |
426 | #include <stdio.h> | |
427 | #if HAVE_SYS_TYPES_H | |
428 | # include <sys/types.h> | |
429 | #endif | |
430 | #if HAVE_SYS_STAT_H | |
431 | # include <sys/stat.h> | |
432 | #endif | |
433 | #if STDC_HEADERS | |
434 | # include <stdlib.h> | |
435 | # include <stddef.h> | |
436 | #else | |
437 | # if HAVE_STDLIB_H | |
438 | # include <stdlib.h> | |
439 | # endif | |
440 | #endif | |
441 | #if HAVE_STRING_H | |
442 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
443 | # include <memory.h> | |
444 | # endif | |
445 | # include <string.h> | |
446 | #endif | |
447 | #if HAVE_STRINGS_H | |
448 | # include <strings.h> | |
449 | #endif | |
450 | #if HAVE_INTTYPES_H | |
451 | # include <inttypes.h> | |
452 | #else | |
453 | # if HAVE_STDINT_H | |
454 | # include <stdint.h> | |
455 | # endif | |
456 | #endif | |
457 | #if HAVE_UNISTD_H | |
458 | # include <unistd.h> | |
459 | #endif" | |
460 | ||
31dd3154 | 461 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME ALLOCA LIBICONV LTLIBICONV NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_WINDMC BUILD_DLLWRAP BUILD_MISC BUILD_INSTALL_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR datarootdir docdir htmldir pdfdir LIBOBJS LTLIBOBJS' |
42ecbf5e | 462 | ac_subst_files='' |
7a283e07 | 463 | ac_pwd=`pwd` |
252b5132 RH |
464 | |
465 | # Initialize some variables set by options. | |
42ecbf5e DJ |
466 | ac_init_help= |
467 | ac_init_version=false | |
252b5132 RH |
468 | # The variables have the same names as the options, with |
469 | # dashes changed to underlines. | |
42ecbf5e | 470 | cache_file=/dev/null |
252b5132 | 471 | exec_prefix=NONE |
252b5132 | 472 | no_create= |
252b5132 RH |
473 | no_recursion= |
474 | prefix=NONE | |
475 | program_prefix=NONE | |
476 | program_suffix=NONE | |
477 | program_transform_name=s,x,x, | |
478 | silent= | |
479 | site= | |
480 | srcdir= | |
252b5132 RH |
481 | verbose= |
482 | x_includes=NONE | |
483 | x_libraries=NONE | |
42ecbf5e DJ |
484 | |
485 | # Installation directory options. | |
486 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
487 | # and all the variables that are supposed to be based on exec_prefix | |
488 | # by default will actually change. | |
489 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
252b5132 RH |
490 | bindir='${exec_prefix}/bin' |
491 | sbindir='${exec_prefix}/sbin' | |
492 | libexecdir='${exec_prefix}/libexec' | |
493 | datadir='${prefix}/share' | |
494 | sysconfdir='${prefix}/etc' | |
495 | sharedstatedir='${prefix}/com' | |
496 | localstatedir='${prefix}/var' | |
497 | libdir='${exec_prefix}/lib' | |
498 | includedir='${prefix}/include' | |
499 | oldincludedir='/usr/include' | |
500 | infodir='${prefix}/info' | |
501 | mandir='${prefix}/man' | |
502 | ||
252b5132 RH |
503 | ac_prev= |
504 | for ac_option | |
505 | do | |
252b5132 RH |
506 | # If the previous option needs an argument, assign it. |
507 | if test -n "$ac_prev"; then | |
508 | eval "$ac_prev=\$ac_option" | |
509 | ac_prev= | |
510 | continue | |
511 | fi | |
512 | ||
42ecbf5e | 513 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
252b5132 RH |
514 | |
515 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
516 | ||
42ecbf5e | 517 | case $ac_option in |
252b5132 RH |
518 | |
519 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
520 | ac_prev=bindir ;; | |
521 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
42ecbf5e | 522 | bindir=$ac_optarg ;; |
252b5132 RH |
523 | |
524 | -build | --build | --buil | --bui | --bu) | |
42ecbf5e | 525 | ac_prev=build_alias ;; |
252b5132 | 526 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
42ecbf5e | 527 | build_alias=$ac_optarg ;; |
252b5132 RH |
528 | |
529 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
530 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
531 | ac_prev=cache_file ;; | |
532 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
533 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
42ecbf5e DJ |
534 | cache_file=$ac_optarg ;; |
535 | ||
536 | --config-cache | -C) | |
537 | cache_file=config.cache ;; | |
252b5132 RH |
538 | |
539 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
540 | ac_prev=datadir ;; | |
541 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
542 | | --da=*) | |
42ecbf5e | 543 | datadir=$ac_optarg ;; |
252b5132 RH |
544 | |
545 | -disable-* | --disable-*) | |
42ecbf5e | 546 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 547 | # Reject names that are not valid shell variable names. |
42ecbf5e DJ |
548 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
549 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
550 | { (exit 1); exit 1; }; } | |
551 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
552 | eval "enable_$ac_feature=no" ;; | |
252b5132 RH |
553 | |
554 | -enable-* | --enable-*) | |
42ecbf5e | 555 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 556 | # Reject names that are not valid shell variable names. |
42ecbf5e DJ |
557 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
558 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
559 | { (exit 1); exit 1; }; } | |
560 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
561 | case $ac_option in | |
562 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
563 | *) ac_optarg=yes ;; |
564 | esac | |
42ecbf5e | 565 | eval "enable_$ac_feature='$ac_optarg'" ;; |
252b5132 RH |
566 | |
567 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
568 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
569 | | --exec | --exe | --ex) | |
570 | ac_prev=exec_prefix ;; | |
571 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
572 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
573 | | --exec=* | --exe=* | --ex=*) | |
42ecbf5e | 574 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
575 | |
576 | -gas | --gas | --ga | --g) | |
577 | # Obsolete; use --with-gas. | |
578 | with_gas=yes ;; | |
579 | ||
42ecbf5e DJ |
580 | -help | --help | --hel | --he | -h) |
581 | ac_init_help=long ;; | |
582 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
583 | ac_init_help=recursive ;; | |
584 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
585 | ac_init_help=short ;; | |
252b5132 RH |
586 | |
587 | -host | --host | --hos | --ho) | |
42ecbf5e | 588 | ac_prev=host_alias ;; |
252b5132 | 589 | -host=* | --host=* | --hos=* | --ho=*) |
42ecbf5e | 590 | host_alias=$ac_optarg ;; |
252b5132 RH |
591 | |
592 | -includedir | --includedir | --includedi | --included | --include \ | |
593 | | --includ | --inclu | --incl | --inc) | |
594 | ac_prev=includedir ;; | |
595 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
596 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
42ecbf5e | 597 | includedir=$ac_optarg ;; |
252b5132 RH |
598 | |
599 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
600 | ac_prev=infodir ;; | |
601 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
42ecbf5e | 602 | infodir=$ac_optarg ;; |
252b5132 RH |
603 | |
604 | -libdir | --libdir | --libdi | --libd) | |
605 | ac_prev=libdir ;; | |
606 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
42ecbf5e | 607 | libdir=$ac_optarg ;; |
252b5132 RH |
608 | |
609 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
610 | | --libexe | --libex | --libe) | |
611 | ac_prev=libexecdir ;; | |
612 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
613 | | --libexe=* | --libex=* | --libe=*) | |
42ecbf5e | 614 | libexecdir=$ac_optarg ;; |
252b5132 RH |
615 | |
616 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
617 | | --localstate | --localstat | --localsta | --localst \ | |
618 | | --locals | --local | --loca | --loc | --lo) | |
619 | ac_prev=localstatedir ;; | |
620 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
621 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
622 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
42ecbf5e | 623 | localstatedir=$ac_optarg ;; |
252b5132 RH |
624 | |
625 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
626 | ac_prev=mandir ;; | |
627 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
42ecbf5e | 628 | mandir=$ac_optarg ;; |
252b5132 RH |
629 | |
630 | -nfp | --nfp | --nf) | |
631 | # Obsolete; use --without-fp. | |
632 | with_fp=no ;; | |
633 | ||
634 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
42ecbf5e | 635 | | --no-cr | --no-c | -n) |
252b5132 RH |
636 | no_create=yes ;; |
637 | ||
638 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
639 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
640 | no_recursion=yes ;; | |
641 | ||
642 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
643 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
644 | | --oldin | --oldi | --old | --ol | --o) | |
645 | ac_prev=oldincludedir ;; | |
646 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
647 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
648 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
42ecbf5e | 649 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
650 | |
651 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
652 | ac_prev=prefix ;; | |
653 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
42ecbf5e | 654 | prefix=$ac_optarg ;; |
252b5132 RH |
655 | |
656 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
657 | | --program-pre | --program-pr | --program-p) | |
658 | ac_prev=program_prefix ;; | |
659 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
660 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
42ecbf5e | 661 | program_prefix=$ac_optarg ;; |
252b5132 RH |
662 | |
663 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
664 | | --program-suf | --program-su | --program-s) | |
665 | ac_prev=program_suffix ;; | |
666 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
667 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
42ecbf5e | 668 | program_suffix=$ac_optarg ;; |
252b5132 RH |
669 | |
670 | -program-transform-name | --program-transform-name \ | |
671 | | --program-transform-nam | --program-transform-na \ | |
672 | | --program-transform-n | --program-transform- \ | |
673 | | --program-transform | --program-transfor \ | |
674 | | --program-transfo | --program-transf \ | |
675 | | --program-trans | --program-tran \ | |
676 | | --progr-tra | --program-tr | --program-t) | |
677 | ac_prev=program_transform_name ;; | |
678 | -program-transform-name=* | --program-transform-name=* \ | |
679 | | --program-transform-nam=* | --program-transform-na=* \ | |
680 | | --program-transform-n=* | --program-transform-=* \ | |
681 | | --program-transform=* | --program-transfor=* \ | |
682 | | --program-transfo=* | --program-transf=* \ | |
683 | | --program-trans=* | --program-tran=* \ | |
684 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
42ecbf5e | 685 | program_transform_name=$ac_optarg ;; |
252b5132 RH |
686 | |
687 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
688 | | -silent | --silent | --silen | --sile | --sil) | |
689 | silent=yes ;; | |
690 | ||
691 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
692 | ac_prev=sbindir ;; | |
693 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
694 | | --sbi=* | --sb=*) | |
42ecbf5e | 695 | sbindir=$ac_optarg ;; |
252b5132 RH |
696 | |
697 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
698 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
699 | | --sharedst | --shareds | --shared | --share | --shar \ | |
700 | | --sha | --sh) | |
701 | ac_prev=sharedstatedir ;; | |
702 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
703 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
704 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
705 | | --sha=* | --sh=*) | |
42ecbf5e | 706 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
707 | |
708 | -site | --site | --sit) | |
709 | ac_prev=site ;; | |
710 | -site=* | --site=* | --sit=*) | |
42ecbf5e | 711 | site=$ac_optarg ;; |
252b5132 RH |
712 | |
713 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
714 | ac_prev=srcdir ;; | |
715 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
42ecbf5e | 716 | srcdir=$ac_optarg ;; |
252b5132 RH |
717 | |
718 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
719 | | --syscon | --sysco | --sysc | --sys | --sy) | |
720 | ac_prev=sysconfdir ;; | |
721 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
722 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
42ecbf5e | 723 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
724 | |
725 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
42ecbf5e | 726 | ac_prev=target_alias ;; |
252b5132 | 727 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
42ecbf5e | 728 | target_alias=$ac_optarg ;; |
252b5132 RH |
729 | |
730 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
731 | verbose=yes ;; | |
732 | ||
42ecbf5e DJ |
733 | -version | --version | --versio | --versi | --vers | -V) |
734 | ac_init_version=: ;; | |
252b5132 RH |
735 | |
736 | -with-* | --with-*) | |
42ecbf5e | 737 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 738 | # Reject names that are not valid shell variable names. |
42ecbf5e DJ |
739 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
740 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
741 | { (exit 1); exit 1; }; } | |
252b5132 | 742 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
42ecbf5e DJ |
743 | case $ac_option in |
744 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
745 | *) ac_optarg=yes ;; |
746 | esac | |
42ecbf5e | 747 | eval "with_$ac_package='$ac_optarg'" ;; |
252b5132 RH |
748 | |
749 | -without-* | --without-*) | |
42ecbf5e | 750 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 751 | # Reject names that are not valid shell variable names. |
42ecbf5e DJ |
752 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
753 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
754 | { (exit 1); exit 1; }; } | |
755 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
756 | eval "with_$ac_package=no" ;; | |
252b5132 RH |
757 | |
758 | --x) | |
759 | # Obsolete; use --with-x. | |
760 | with_x=yes ;; | |
761 | ||
762 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
763 | | --x-incl | --x-inc | --x-in | --x-i) | |
764 | ac_prev=x_includes ;; | |
765 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
766 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
42ecbf5e | 767 | x_includes=$ac_optarg ;; |
252b5132 RH |
768 | |
769 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
770 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
771 | ac_prev=x_libraries ;; | |
772 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
773 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
42ecbf5e | 774 | x_libraries=$ac_optarg ;; |
252b5132 | 775 | |
42ecbf5e DJ |
776 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
777 | Try \`$0 --help' for more information." >&2 | |
778 | { (exit 1); exit 1; }; } | |
252b5132 RH |
779 | ;; |
780 | ||
42ecbf5e DJ |
781 | *=*) |
782 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
783 | # Reject names that are not valid shell variable names. | |
784 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
785 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
786 | { (exit 1); exit 1; }; } | |
787 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
788 | eval "$ac_envvar='$ac_optarg'" | |
789 | export $ac_envvar ;; | |
790 | ||
252b5132 | 791 | *) |
42ecbf5e DJ |
792 | # FIXME: should be removed in autoconf 3.0. |
793 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
794 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
795 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
796 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
252b5132 RH |
797 | ;; |
798 | ||
799 | esac | |
800 | done | |
801 | ||
802 | if test -n "$ac_prev"; then | |
42ecbf5e DJ |
803 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
804 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
805 | { (exit 1); exit 1; }; } | |
252b5132 RH |
806 | fi |
807 | ||
42ecbf5e DJ |
808 | # Be sure to have absolute paths. |
809 | for ac_var in exec_prefix prefix | |
810 | do | |
811 | eval ac_val=$`echo $ac_var` | |
812 | case $ac_val in | |
813 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
814 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
815 | { (exit 1); exit 1; }; };; | |
816 | esac | |
817 | done | |
252b5132 | 818 | |
42ecbf5e DJ |
819 | # Be sure to have absolute paths. |
820 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
821 | localstatedir libdir includedir oldincludedir infodir mandir | |
252b5132 | 822 | do |
42ecbf5e DJ |
823 | eval ac_val=$`echo $ac_var` |
824 | case $ac_val in | |
825 | [\\/$]* | ?:[\\/]* ) ;; | |
826 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
827 | { (exit 1); exit 1; }; };; | |
252b5132 RH |
828 | esac |
829 | done | |
830 | ||
42ecbf5e DJ |
831 | # There might be people who depend on the old broken behavior: `$host' |
832 | # used to hold the argument of --host etc. | |
833 | # FIXME: To remove some day. | |
834 | build=$build_alias | |
835 | host=$host_alias | |
836 | target=$target_alias | |
837 | ||
838 | # FIXME: To remove some day. | |
839 | if test "x$host_alias" != x; then | |
840 | if test "x$build_alias" = x; then | |
841 | cross_compiling=maybe | |
842 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
843 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
844 | elif test "x$build_alias" != "x$host_alias"; then | |
845 | cross_compiling=yes | |
846 | fi | |
847 | fi | |
e5a52504 | 848 | |
42ecbf5e DJ |
849 | ac_tool_prefix= |
850 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
851 | ||
852 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 853 | |
252b5132 RH |
854 | |
855 | # Find the source files, if location was not specified. | |
856 | if test -z "$srcdir"; then | |
857 | ac_srcdir_defaulted=yes | |
858 | # Try the directory containing this script, then its parent. | |
42ecbf5e DJ |
859 | ac_confdir=`(dirname "$0") 2>/dev/null || |
860 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
861 | X"$0" : 'X\(//\)[^/]' \| \ | |
862 | X"$0" : 'X\(//\)$' \| \ | |
863 | X"$0" : 'X\(/\)' \| \ | |
864 | . : '\(.\)' 2>/dev/null || | |
865 | echo X"$0" | | |
866 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
867 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
868 | /^X\(\/\/\)$/{ s//\1/; q; } | |
869 | /^X\(\/\).*/{ s//\1/; q; } | |
870 | s/.*/./; q'` | |
252b5132 RH |
871 | srcdir=$ac_confdir |
872 | if test ! -r $srcdir/$ac_unique_file; then | |
873 | srcdir=.. | |
874 | fi | |
875 | else | |
876 | ac_srcdir_defaulted=no | |
877 | fi | |
878 | if test ! -r $srcdir/$ac_unique_file; then | |
879 | if test "$ac_srcdir_defaulted" = yes; then | |
42ecbf5e DJ |
880 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
881 | { (exit 1); exit 1; }; } | |
252b5132 | 882 | else |
42ecbf5e DJ |
883 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
884 | { (exit 1); exit 1; }; } | |
252b5132 RH |
885 | fi |
886 | fi | |
42ecbf5e DJ |
887 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
888 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
889 | { (exit 1); exit 1; }; } | |
890 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
891 | ac_env_build_alias_set=${build_alias+set} | |
892 | ac_env_build_alias_value=$build_alias | |
893 | ac_cv_env_build_alias_set=${build_alias+set} | |
894 | ac_cv_env_build_alias_value=$build_alias | |
895 | ac_env_host_alias_set=${host_alias+set} | |
896 | ac_env_host_alias_value=$host_alias | |
897 | ac_cv_env_host_alias_set=${host_alias+set} | |
898 | ac_cv_env_host_alias_value=$host_alias | |
899 | ac_env_target_alias_set=${target_alias+set} | |
900 | ac_env_target_alias_value=$target_alias | |
901 | ac_cv_env_target_alias_set=${target_alias+set} | |
902 | ac_cv_env_target_alias_value=$target_alias | |
903 | ac_env_CC_set=${CC+set} | |
904 | ac_env_CC_value=$CC | |
905 | ac_cv_env_CC_set=${CC+set} | |
906 | ac_cv_env_CC_value=$CC | |
907 | ac_env_CFLAGS_set=${CFLAGS+set} | |
908 | ac_env_CFLAGS_value=$CFLAGS | |
909 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
910 | ac_cv_env_CFLAGS_value=$CFLAGS | |
911 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
912 | ac_env_LDFLAGS_value=$LDFLAGS | |
913 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
914 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
915 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
916 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
917 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
918 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
919 | ac_env_CPP_set=${CPP+set} | |
920 | ac_env_CPP_value=$CPP | |
921 | ac_cv_env_CPP_set=${CPP+set} | |
922 | ac_cv_env_CPP_value=$CPP | |
252b5132 | 923 | |
42ecbf5e DJ |
924 | # |
925 | # Report the --help message. | |
926 | # | |
927 | if test "$ac_init_help" = "long"; then | |
928 | # Omit some internal or obsolete options to make the list less imposing. | |
929 | # This message is too long to be a string in the A/UX 3.1 sh. | |
930 | cat <<_ACEOF | |
931 | \`configure' configures this package to adapt to many kinds of systems. | |
252b5132 | 932 | |
42ecbf5e | 933 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 934 | |
42ecbf5e DJ |
935 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
936 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
252b5132 | 937 | |
42ecbf5e | 938 | Defaults for the options are specified in brackets. |
ac48eca1 | 939 | |
42ecbf5e DJ |
940 | Configuration: |
941 | -h, --help display this help and exit | |
942 | --help=short display options specific to this package | |
943 | --help=recursive display the short help of all the included packages | |
944 | -V, --version display version information and exit | |
945 | -q, --quiet, --silent do not print \`checking...' messages | |
946 | --cache-file=FILE cache test results in FILE [disabled] | |
947 | -C, --config-cache alias for \`--cache-file=config.cache' | |
948 | -n, --no-create do not create output files | |
949 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
950 | ||
951 | _ACEOF | |
952 | ||
953 | cat <<_ACEOF | |
954 | Installation directories: | |
955 | --prefix=PREFIX install architecture-independent files in PREFIX | |
956 | [$ac_default_prefix] | |
957 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
958 | [PREFIX] | |
ac48eca1 | 959 | |
42ecbf5e DJ |
960 | By default, \`make install' will install all the files in |
961 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
962 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
963 | for instance \`--prefix=\$HOME'. | |
ac48eca1 | 964 | |
42ecbf5e | 965 | For better control, use the options below. |
ac48eca1 | 966 | |
42ecbf5e DJ |
967 | Fine tuning of the installation directories: |
968 | --bindir=DIR user executables [EPREFIX/bin] | |
969 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
970 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
971 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
972 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
973 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
974 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
975 | --libdir=DIR object code libraries [EPREFIX/lib] | |
976 | --includedir=DIR C header files [PREFIX/include] | |
977 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
978 | --infodir=DIR info documentation [PREFIX/info] | |
979 | --mandir=DIR man documentation [PREFIX/man] | |
980 | _ACEOF | |
ac48eca1 | 981 | |
42ecbf5e | 982 | cat <<\_ACEOF |
252b5132 | 983 | |
42ecbf5e DJ |
984 | Program names: |
985 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
986 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
987 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
252b5132 | 988 | |
42ecbf5e DJ |
989 | System types: |
990 | --build=BUILD configure for building on BUILD [guessed] | |
991 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
992 | --target=TARGET configure for building compilers for TARGET [HOST] | |
993 | _ACEOF | |
252b5132 | 994 | fi |
252b5132 | 995 | |
42ecbf5e | 996 | if test -n "$ac_init_help"; then |
252b5132 | 997 | |
42ecbf5e | 998 | cat <<\_ACEOF |
252b5132 | 999 | |
42ecbf5e DJ |
1000 | Optional Features: |
1001 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1002 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1003 | --disable-dependency-tracking speeds up one-time build | |
1004 | --enable-dependency-tracking do not reject slow dependency extractors | |
d053aef8 | 1005 | --disable-largefile omit support for large files |
d7040cdb SE |
1006 | --enable-shared[=PKGS] |
1007 | build shared libraries [default=yes] | |
1008 | --enable-static[=PKGS] | |
1009 | build static libraries [default=yes] | |
1010 | --enable-fast-install[=PKGS] | |
1011 | optimize for fast installation [default=yes] | |
42ecbf5e DJ |
1012 | --disable-libtool-lock avoid locking (might break parallel builds) |
1013 | --enable-targets alternative target configurations | |
241a6c40 AM |
1014 | --enable-werror treat compile warnings as errors |
1015 | --enable-build-warnings enable build-time compiler warnings | |
42ecbf5e DJ |
1016 | --disable-nls do not use Native Language Support |
1017 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1018 | (and sometimes confusing) to the casual installer | |
5ba684e2 | 1019 | --disable-rpath do not hardcode runtime library paths |
42ecbf5e DJ |
1020 | |
1021 | Optional Packages: | |
1022 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1023 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d7040cdb SE |
1024 | --with-pic try to use only PIC/non-PIC objects [default=use |
1025 | both] | |
1026 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
5ba684e2 NC |
1027 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
1028 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib | |
1029 | --without-libiconv-prefix don't search for libiconv in includedir and libdir | |
252b5132 | 1030 | |
42ecbf5e DJ |
1031 | Some influential environment variables: |
1032 | CC C compiler command | |
1033 | CFLAGS C compiler flags | |
1034 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1035 | nonstandard directory <lib dir> | |
1036 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1037 | headers in a nonstandard directory <include dir> | |
1038 | CPP C preprocessor | |
e5a52504 | 1039 | |
42ecbf5e DJ |
1040 | Use these variables to override the choices made by `configure' or to help |
1041 | it to find libraries and programs with nonstandard names/locations. | |
1042 | ||
1043 | _ACEOF | |
252b5132 RH |
1044 | fi |
1045 | ||
42ecbf5e DJ |
1046 | if test "$ac_init_help" = "recursive"; then |
1047 | # If there are subdirs, report their specific --help. | |
1048 | ac_popdir=`pwd` | |
1049 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1050 | test -d $ac_dir || continue | |
1051 | ac_builddir=. | |
1052 | ||
1053 | if test "$ac_dir" != .; then | |
1054 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1055 | # A "../" for each directory in $ac_dir_suffix. | |
1056 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1057 | else | |
1058 | ac_dir_suffix= ac_top_builddir= | |
1059 | fi | |
252b5132 | 1060 | |
42ecbf5e DJ |
1061 | case $srcdir in |
1062 | .) # No --srcdir option. We are building in place. | |
1063 | ac_srcdir=. | |
1064 | if test -z "$ac_top_builddir"; then | |
1065 | ac_top_srcdir=. | |
1066 | else | |
1067 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
252b5132 | 1068 | fi ;; |
42ecbf5e DJ |
1069 | [\\/]* | ?:[\\/]* ) # Absolute path. |
1070 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1071 | ac_top_srcdir=$srcdir ;; | |
1072 | *) # Relative path. | |
1073 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1074 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
252b5132 RH |
1075 | esac |
1076 | ||
42ecbf5e DJ |
1077 | # Do not use `cd foo && pwd` to compute absolute paths, because |
1078 | # the directories may not exist. | |
1079 | case `pwd` in | |
1080 | .) ac_abs_builddir="$ac_dir";; | |
1081 | *) | |
1082 | case "$ac_dir" in | |
1083 | .) ac_abs_builddir=`pwd`;; | |
1084 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1085 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1086 | esac;; | |
252b5132 | 1087 | esac |
42ecbf5e DJ |
1088 | case $ac_abs_builddir in |
1089 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1090 | *) | |
1091 | case ${ac_top_builddir}. in | |
1092 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1093 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1094 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1095 | esac;; | |
1096 | esac | |
1097 | case $ac_abs_builddir in | |
1098 | .) ac_abs_srcdir=$ac_srcdir;; | |
1099 | *) | |
1100 | case $ac_srcdir in | |
1101 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1102 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1103 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1104 | esac;; | |
1105 | esac | |
1106 | case $ac_abs_builddir in | |
1107 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1108 | *) | |
1109 | case $ac_top_srcdir in | |
1110 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1111 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1112 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1113 | esac;; | |
d15b04bd | 1114 | esac |
5d64ca4e | 1115 | |
42ecbf5e DJ |
1116 | cd $ac_dir |
1117 | # Check for guested configure; otherwise get Cygnus style configure. | |
1118 | if test -f $ac_srcdir/configure.gnu; then | |
1119 | echo | |
1120 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1121 | elif test -f $ac_srcdir/configure; then | |
1122 | echo | |
1123 | $SHELL $ac_srcdir/configure --help=recursive | |
1124 | elif test -f $ac_srcdir/configure.ac || | |
1125 | test -f $ac_srcdir/configure.in; then | |
1126 | echo | |
1127 | $ac_configure --help | |
1128 | else | |
1129 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1130 | fi | |
7357c5b6 | 1131 | cd $ac_popdir |
42ecbf5e DJ |
1132 | done |
1133 | fi | |
5d64ca4e | 1134 | |
42ecbf5e DJ |
1135 | test -n "$ac_init_help" && exit 0 |
1136 | if $ac_init_version; then | |
1137 | cat <<\_ACEOF | |
5d64ca4e | 1138 | |
42ecbf5e DJ |
1139 | Copyright (C) 2003 Free Software Foundation, Inc. |
1140 | This configure script is free software; the Free Software Foundation | |
1141 | gives unlimited permission to copy, distribute and modify it. | |
1142 | _ACEOF | |
1143 | exit 0 | |
1144 | fi | |
1145 | exec 5>config.log | |
1146 | cat >&5 <<_ACEOF | |
1147 | This file contains any messages produced by compilers while | |
1148 | running configure, to aid debugging if configure makes a mistake. | |
429cc0ae | 1149 | |
42ecbf5e DJ |
1150 | It was created by $as_me, which was |
1151 | generated by GNU Autoconf 2.59. Invocation command line was | |
252b5132 | 1152 | |
42ecbf5e | 1153 | $ $0 $@ |
e5a52504 | 1154 | |
42ecbf5e DJ |
1155 | _ACEOF |
1156 | { | |
1157 | cat <<_ASUNAME | |
1158 | ## --------- ## | |
1159 | ## Platform. ## | |
1160 | ## --------- ## | |
1161 | ||
1162 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1163 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1164 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1165 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1166 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1167 | ||
1168 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1169 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1170 | ||
1171 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1172 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1173 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1174 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1175 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1176 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1177 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1178 | ||
1179 | _ASUNAME | |
1180 | ||
1181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1182 | for as_dir in $PATH | |
1183 | do | |
1184 | IFS=$as_save_IFS | |
1185 | test -z "$as_dir" && as_dir=. | |
1186 | echo "PATH: $as_dir" | |
1187 | done | |
e5a52504 | 1188 | |
42ecbf5e | 1189 | } >&5 |
ceae3e33 | 1190 | |
42ecbf5e | 1191 | cat >&5 <<_ACEOF |
e5a52504 | 1192 | |
42ecbf5e DJ |
1193 | |
1194 | ## ----------- ## | |
1195 | ## Core tests. ## | |
1196 | ## ----------- ## | |
1197 | ||
1198 | _ACEOF | |
1199 | ||
1200 | ||
1201 | # Keep a trace of the command line. | |
1202 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1203 | # Strip out --silent because we don't want to record it for future runs. | |
1204 | # Also quote any args containing shell meta-characters. | |
1205 | # Make two passes to allow for proper duplicate-argument suppression. | |
1206 | ac_configure_args= | |
1207 | ac_configure_args0= | |
1208 | ac_configure_args1= | |
1209 | ac_sep= | |
1210 | ac_must_keep_next=false | |
1211 | for ac_pass in 1 2 | |
1212 | do | |
1213 | for ac_arg | |
1214 | do | |
1215 | case $ac_arg in | |
1216 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1217 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1218 | | -silent | --silent | --silen | --sile | --sil) | |
1219 | continue ;; | |
1220 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1221 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1222 | esac | |
1223 | case $ac_pass in | |
1224 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1225 | 2) | |
1226 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1227 | if test $ac_must_keep_next = true; then | |
1228 | ac_must_keep_next=false # Got value, back to normal. | |
1229 | else | |
1230 | case $ac_arg in | |
1231 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1232 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1233 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1234 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1235 | case "$ac_configure_args0 " in | |
1236 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1237 | esac | |
1238 | ;; | |
1239 | -* ) ac_must_keep_next=true ;; | |
1240 | esac | |
1241 | fi | |
1242 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1243 | # Get rid of the leading space. | |
1244 | ac_sep=" " | |
1245 | ;; | |
1246 | esac | |
1247 | done | |
1248 | done | |
1249 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1250 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1251 | ||
1252 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1253 | # config.log. We remove comments because anyway the quotes in there | |
1254 | # would cause problems or look ugly. | |
1255 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1256 | # such as our DU 5.0 friend, will then `close' the trap. | |
1257 | trap 'exit_status=$? | |
1258 | # Save into config.log some information that might help in debugging. | |
1259 | { | |
1260 | echo | |
1261 | ||
1262 | cat <<\_ASBOX | |
1263 | ## ---------------- ## | |
1264 | ## Cache variables. ## | |
1265 | ## ---------------- ## | |
1266 | _ASBOX | |
1267 | echo | |
1268 | # The following way of writing the cache mishandles newlines in values, | |
1269 | { | |
1270 | (set) 2>&1 | | |
1271 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1272 | *ac_space=\ *) | |
1273 | sed -n \ | |
1274 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1275 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1276 | ;; | |
1277 | *) | |
1278 | sed -n \ | |
1279 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1280 | ;; | |
1281 | esac; | |
1282 | } | |
1283 | echo | |
1284 | ||
1285 | cat <<\_ASBOX | |
1286 | ## ----------------- ## | |
1287 | ## Output variables. ## | |
1288 | ## ----------------- ## | |
1289 | _ASBOX | |
1290 | echo | |
1291 | for ac_var in $ac_subst_vars | |
1292 | do | |
1293 | eval ac_val=$`echo $ac_var` | |
1294 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1295 | done | sort | |
1296 | echo | |
1297 | ||
1298 | if test -n "$ac_subst_files"; then | |
1299 | cat <<\_ASBOX | |
1300 | ## ------------- ## | |
1301 | ## Output files. ## | |
1302 | ## ------------- ## | |
1303 | _ASBOX | |
1304 | echo | |
1305 | for ac_var in $ac_subst_files | |
1306 | do | |
1307 | eval ac_val=$`echo $ac_var` | |
1308 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1309 | done | sort | |
1310 | echo | |
1311 | fi | |
1312 | ||
1313 | if test -s confdefs.h; then | |
1314 | cat <<\_ASBOX | |
1315 | ## ----------- ## | |
1316 | ## confdefs.h. ## | |
1317 | ## ----------- ## | |
1318 | _ASBOX | |
1319 | echo | |
1320 | sed "/^$/d" confdefs.h | sort | |
1321 | echo | |
1322 | fi | |
1323 | test "$ac_signal" != 0 && | |
1324 | echo "$as_me: caught signal $ac_signal" | |
1325 | echo "$as_me: exit $exit_status" | |
1326 | } >&5 | |
1327 | rm -f core *.core && | |
1328 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1329 | exit $exit_status | |
1330 | ' 0 | |
1331 | for ac_signal in 1 2 13 15; do | |
1332 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1333 | done | |
1334 | ac_signal=0 | |
1335 | ||
1336 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1337 | rm -rf conftest* confdefs.h | |
1338 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1339 | echo >confdefs.h | |
1340 | ||
1341 | # Predefined preprocessor variables. | |
1342 | ||
1343 | cat >>confdefs.h <<_ACEOF | |
1344 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1345 | _ACEOF | |
1346 | ||
1347 | ||
1348 | cat >>confdefs.h <<_ACEOF | |
1349 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1350 | _ACEOF | |
1351 | ||
1352 | ||
1353 | cat >>confdefs.h <<_ACEOF | |
1354 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1355 | _ACEOF | |
1356 | ||
1357 | ||
1358 | cat >>confdefs.h <<_ACEOF | |
1359 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1360 | _ACEOF | |
1361 | ||
1362 | ||
1363 | cat >>confdefs.h <<_ACEOF | |
1364 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1365 | _ACEOF | |
1366 | ||
1367 | ||
1368 | # Let the site file select an alternate cache file if it wants to. | |
1369 | # Prefer explicitly selected file to automatically selected ones. | |
1370 | if test -z "$CONFIG_SITE"; then | |
1371 | if test "x$prefix" != xNONE; then | |
1372 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1373 | else | |
1374 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1375 | fi | |
1376 | fi | |
1377 | for ac_site_file in $CONFIG_SITE; do | |
1378 | if test -r "$ac_site_file"; then | |
1379 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1380 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1381 | sed 's/^/| /' "$ac_site_file" >&5 | |
1382 | . "$ac_site_file" | |
1383 | fi | |
1384 | done | |
1385 | ||
1386 | if test -r "$cache_file"; then | |
1387 | # Some versions of bash will fail to source /dev/null (special | |
1388 | # files actually), so we avoid doing that. | |
1389 | if test -f "$cache_file"; then | |
1390 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1391 | echo "$as_me: loading cache $cache_file" >&6;} | |
1392 | case $cache_file in | |
1393 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1394 | *) . ./$cache_file;; | |
1395 | esac | |
1396 | fi | |
1397 | else | |
1398 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1399 | echo "$as_me: creating cache $cache_file" >&6;} | |
1400 | >$cache_file | |
1401 | fi | |
1402 | ||
1403 | # Check that the precious variables saved in the cache have kept the same | |
1404 | # value. | |
1405 | ac_cache_corrupted=false | |
1406 | for ac_var in `(set) 2>&1 | | |
1407 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1408 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1409 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1410 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1411 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1412 | case $ac_old_set,$ac_new_set in | |
1413 | set,) | |
1414 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1415 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1416 | ac_cache_corrupted=: ;; | |
1417 | ,set) | |
1418 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1419 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1420 | ac_cache_corrupted=: ;; | |
1421 | ,);; | |
1422 | *) | |
1423 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
6194aaab L |
1424 | # differences in whitespace do not lead to failure. |
1425 | ac_old_val_w=`echo x $ac_old_val` | |
1426 | ac_new_val_w=`echo x $ac_new_val` | |
1427 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1428 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
42ecbf5e | 1429 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
6194aaab L |
1430 | ac_cache_corrupted=: |
1431 | else | |
1432 | { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1433 | echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1434 | eval $ac_var=\$ac_old_val | |
1435 | fi | |
1436 | { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1437 | echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1438 | { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1439 | echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
42ecbf5e DJ |
1440 | fi;; |
1441 | esac | |
1442 | # Pass precious variables to config.status. | |
1443 | if test "$ac_new_set" = set; then | |
1444 | case $ac_new_val in | |
1445 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1446 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1447 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1448 | esac | |
1449 | case " $ac_configure_args " in | |
1450 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1451 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1452 | esac | |
1453 | fi | |
1454 | done | |
1455 | if $ac_cache_corrupted; then | |
7a283e07 RW |
1456 | { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1457 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
42ecbf5e DJ |
1458 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1459 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1460 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1461 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1462 | { (exit 1); exit 1; }; } | |
1463 | fi | |
1464 | ||
1465 | ac_ext=c | |
1466 | ac_cpp='$CPP $CPPFLAGS' | |
1467 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1468 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1469 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1470 | ||
1471 | ||
1472 | ||
1473 | ||
1474 | ||
1475 | ||
1476 | ||
1477 | ||
1478 | ||
1479 | ||
1480 | ||
1481 | ||
1482 | ||
1483 | ||
1484 | ||
1485 | ||
1486 | ||
7a283e07 RW |
1487 | |
1488 | ||
1489 | ||
42ecbf5e | 1490 | |
da594c4a | 1491 | |
42ecbf5e DJ |
1492 | |
1493 | ||
1494 | ac_aux_dir= | |
1495 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1496 | if test -f $ac_dir/install-sh; then | |
1497 | ac_aux_dir=$ac_dir | |
1498 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1499 | break | |
1500 | elif test -f $ac_dir/install.sh; then | |
1501 | ac_aux_dir=$ac_dir | |
1502 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1503 | break | |
1504 | elif test -f $ac_dir/shtool; then | |
1505 | ac_aux_dir=$ac_dir | |
1506 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1507 | break | |
1508 | fi | |
1509 | done | |
1510 | if test -z "$ac_aux_dir"; then | |
1511 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1512 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1513 | { (exit 1); exit 1; }; } | |
1514 | fi | |
1515 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1516 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1517 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1518 | ||
1519 | # Make sure we can run config.sub. | |
1520 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1521 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1522 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1523 | { (exit 1); exit 1; }; } | |
1524 | ||
1525 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1526 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1527 | if test "${ac_cv_build+set}" = set; then | |
1528 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1529 | else | |
1530 | ac_cv_build_alias=$build_alias | |
1531 | test -z "$ac_cv_build_alias" && | |
1532 | ac_cv_build_alias=`$ac_config_guess` | |
1533 | test -z "$ac_cv_build_alias" && | |
1534 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1535 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1536 | { (exit 1); exit 1; }; } | |
1537 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1538 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1539 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1540 | { (exit 1); exit 1; }; } | |
1541 | ||
1542 | fi | |
1543 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1544 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1545 | build=$ac_cv_build | |
1546 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1547 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1548 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1549 | ||
1550 | ||
1551 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1552 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1553 | if test "${ac_cv_host+set}" = set; then | |
1554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1555 | else | |
1556 | ac_cv_host_alias=$host_alias | |
1557 | test -z "$ac_cv_host_alias" && | |
1558 | ac_cv_host_alias=$ac_cv_build_alias | |
1559 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1560 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1561 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1562 | { (exit 1); exit 1; }; } | |
1563 | ||
1564 | fi | |
1565 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1566 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1567 | host=$ac_cv_host | |
1568 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1569 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1570 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1571 | ||
1572 | ||
1573 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1574 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1575 | if test "${ac_cv_target+set}" = set; then | |
1576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1577 | else | |
1578 | ac_cv_target_alias=$target_alias | |
1579 | test "x$ac_cv_target_alias" = "x" && | |
1580 | ac_cv_target_alias=$ac_cv_host_alias | |
1581 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1582 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1583 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1584 | { (exit 1); exit 1; }; } | |
1585 | ||
1586 | fi | |
1587 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1588 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1589 | target=$ac_cv_target | |
1590 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1591 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1592 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1593 | ||
1594 | ||
1595 | # The aliases save the names the user supplied, while $host etc. | |
1596 | # will get canonicalized. | |
1597 | test -n "$target_alias" && | |
1598 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1599 | NONENONEs,x,x, && | |
1600 | program_prefix=${target_alias}- | |
1601 | ac_ext=c | |
1602 | ac_cpp='$CPP $CPPFLAGS' | |
1603 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1604 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1605 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1606 | if test -n "$ac_tool_prefix"; then | |
1607 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1608 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1609 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1610 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1611 | if test "${ac_cv_prog_CC+set}" = set; then | |
1612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1613 | else | |
1614 | if test -n "$CC"; then | |
1615 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1616 | else | |
1617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1618 | for as_dir in $PATH | |
1619 | do | |
1620 | IFS=$as_save_IFS | |
1621 | test -z "$as_dir" && as_dir=. | |
1622 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1623 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1624 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1625 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1626 | break 2 | |
1627 | fi | |
1628 | done | |
1629 | done | |
1630 | ||
1631 | fi | |
1632 | fi | |
1633 | CC=$ac_cv_prog_CC | |
1634 | if test -n "$CC"; then | |
1635 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1636 | echo "${ECHO_T}$CC" >&6 | |
1637 | else | |
1638 | echo "$as_me:$LINENO: result: no" >&5 | |
1639 | echo "${ECHO_T}no" >&6 | |
1640 | fi | |
1641 | ||
1642 | fi | |
1643 | if test -z "$ac_cv_prog_CC"; then | |
1644 | ac_ct_CC=$CC | |
1645 | # Extract the first word of "gcc", so it can be a program name with args. | |
1646 | set dummy gcc; ac_word=$2 | |
1647 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1648 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1649 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1651 | else | |
1652 | if test -n "$ac_ct_CC"; then | |
1653 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1654 | else | |
1655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1656 | for as_dir in $PATH | |
1657 | do | |
1658 | IFS=$as_save_IFS | |
1659 | test -z "$as_dir" && as_dir=. | |
1660 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1661 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1662 | ac_cv_prog_ac_ct_CC="gcc" | |
1663 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1664 | break 2 | |
1665 | fi | |
1666 | done | |
1667 | done | |
1668 | ||
1669 | fi | |
1670 | fi | |
1671 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1672 | if test -n "$ac_ct_CC"; then | |
1673 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1674 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1675 | else | |
1676 | echo "$as_me:$LINENO: result: no" >&5 | |
1677 | echo "${ECHO_T}no" >&6 | |
1678 | fi | |
1679 | ||
1680 | CC=$ac_ct_CC | |
1681 | else | |
1682 | CC="$ac_cv_prog_CC" | |
1683 | fi | |
1684 | ||
1685 | if test -z "$CC"; then | |
1686 | if test -n "$ac_tool_prefix"; then | |
1687 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1688 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1689 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1690 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1691 | if test "${ac_cv_prog_CC+set}" = set; then | |
1692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1693 | else | |
1694 | if test -n "$CC"; then | |
1695 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1696 | else | |
1697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1698 | for as_dir in $PATH | |
1699 | do | |
1700 | IFS=$as_save_IFS | |
1701 | test -z "$as_dir" && as_dir=. | |
1702 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1703 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1704 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1705 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1706 | break 2 | |
1707 | fi | |
1708 | done | |
1709 | done | |
1710 | ||
1711 | fi | |
1712 | fi | |
1713 | CC=$ac_cv_prog_CC | |
1714 | if test -n "$CC"; then | |
1715 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1716 | echo "${ECHO_T}$CC" >&6 | |
1717 | else | |
1718 | echo "$as_me:$LINENO: result: no" >&5 | |
1719 | echo "${ECHO_T}no" >&6 | |
1720 | fi | |
1721 | ||
1722 | fi | |
1723 | if test -z "$ac_cv_prog_CC"; then | |
1724 | ac_ct_CC=$CC | |
1725 | # Extract the first word of "cc", so it can be a program name with args. | |
1726 | set dummy cc; ac_word=$2 | |
1727 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1728 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1729 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1731 | else | |
1732 | if test -n "$ac_ct_CC"; then | |
1733 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1734 | else | |
1735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1736 | for as_dir in $PATH | |
1737 | do | |
1738 | IFS=$as_save_IFS | |
1739 | test -z "$as_dir" && as_dir=. | |
1740 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1741 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1742 | ac_cv_prog_ac_ct_CC="cc" | |
1743 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1744 | break 2 | |
1745 | fi | |
1746 | done | |
1747 | done | |
1748 | ||
1749 | fi | |
1750 | fi | |
1751 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1752 | if test -n "$ac_ct_CC"; then | |
1753 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1754 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1755 | else | |
1756 | echo "$as_me:$LINENO: result: no" >&5 | |
1757 | echo "${ECHO_T}no" >&6 | |
1758 | fi | |
1759 | ||
1760 | CC=$ac_ct_CC | |
1761 | else | |
1762 | CC="$ac_cv_prog_CC" | |
1763 | fi | |
1764 | ||
1765 | fi | |
1766 | if test -z "$CC"; then | |
1767 | # Extract the first word of "cc", so it can be a program name with args. | |
1768 | set dummy cc; ac_word=$2 | |
1769 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1770 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1771 | if test "${ac_cv_prog_CC+set}" = set; then | |
1772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1773 | else | |
1774 | if test -n "$CC"; then | |
1775 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1776 | else | |
1777 | ac_prog_rejected=no | |
1778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1779 | for as_dir in $PATH | |
1780 | do | |
1781 | IFS=$as_save_IFS | |
1782 | test -z "$as_dir" && as_dir=. | |
1783 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1784 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1785 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1786 | ac_prog_rejected=yes | |
1787 | continue | |
1788 | fi | |
1789 | ac_cv_prog_CC="cc" | |
1790 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1791 | break 2 | |
1792 | fi | |
1793 | done | |
1794 | done | |
1795 | ||
1796 | if test $ac_prog_rejected = yes; then | |
1797 | # We found a bogon in the path, so make sure we never use it. | |
1798 | set dummy $ac_cv_prog_CC | |
1799 | shift | |
1800 | if test $# != 0; then | |
1801 | # We chose a different compiler from the bogus one. | |
1802 | # However, it has the same basename, so the bogon will be chosen | |
1803 | # first if we set CC to just the basename; use the full file name. | |
1804 | shift | |
1805 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1806 | fi | |
1807 | fi | |
1808 | fi | |
1809 | fi | |
1810 | CC=$ac_cv_prog_CC | |
1811 | if test -n "$CC"; then | |
1812 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1813 | echo "${ECHO_T}$CC" >&6 | |
1814 | else | |
1815 | echo "$as_me:$LINENO: result: no" >&5 | |
1816 | echo "${ECHO_T}no" >&6 | |
1817 | fi | |
1818 | ||
1819 | fi | |
1820 | if test -z "$CC"; then | |
1821 | if test -n "$ac_tool_prefix"; then | |
1822 | for ac_prog in cl | |
1823 | do | |
1824 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1825 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1826 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1827 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1828 | if test "${ac_cv_prog_CC+set}" = set; then | |
1829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1830 | else | |
1831 | if test -n "$CC"; then | |
1832 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1833 | else | |
1834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1835 | for as_dir in $PATH | |
1836 | do | |
1837 | IFS=$as_save_IFS | |
1838 | test -z "$as_dir" && as_dir=. | |
1839 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1840 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1841 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1842 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1843 | break 2 | |
1844 | fi | |
1845 | done | |
1846 | done | |
1847 | ||
1848 | fi | |
1849 | fi | |
1850 | CC=$ac_cv_prog_CC | |
1851 | if test -n "$CC"; then | |
1852 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1853 | echo "${ECHO_T}$CC" >&6 | |
1854 | else | |
1855 | echo "$as_me:$LINENO: result: no" >&5 | |
1856 | echo "${ECHO_T}no" >&6 | |
1857 | fi | |
1858 | ||
1859 | test -n "$CC" && break | |
1860 | done | |
1861 | fi | |
1862 | if test -z "$CC"; then | |
1863 | ac_ct_CC=$CC | |
1864 | for ac_prog in cl | |
1865 | do | |
1866 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1867 | set dummy $ac_prog; ac_word=$2 | |
1868 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1869 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1870 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1872 | else | |
1873 | if test -n "$ac_ct_CC"; then | |
1874 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1875 | else | |
1876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1877 | for as_dir in $PATH | |
1878 | do | |
1879 | IFS=$as_save_IFS | |
1880 | test -z "$as_dir" && as_dir=. | |
1881 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1882 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1883 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1884 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1885 | break 2 | |
1886 | fi | |
1887 | done | |
1888 | done | |
1889 | ||
1890 | fi | |
1891 | fi | |
1892 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1893 | if test -n "$ac_ct_CC"; then | |
1894 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1895 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1896 | else | |
1897 | echo "$as_me:$LINENO: result: no" >&5 | |
1898 | echo "${ECHO_T}no" >&6 | |
1899 | fi | |
1900 | ||
1901 | test -n "$ac_ct_CC" && break | |
1902 | done | |
1903 | ||
1904 | CC=$ac_ct_CC | |
1905 | fi | |
1906 | ||
1907 | fi | |
1908 | ||
1909 | ||
7a283e07 RW |
1910 | test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1911 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1912 | { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
42ecbf5e DJ |
1913 | See \`config.log' for more details." >&5 |
1914 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1915 | See \`config.log' for more details." >&2;} | |
7a283e07 | 1916 | { (exit 1); exit 1; }; }; } |
42ecbf5e DJ |
1917 | |
1918 | # Provide some information about the compiler. | |
1919 | echo "$as_me:$LINENO:" \ | |
1920 | "checking for C compiler version" >&5 | |
1921 | ac_compiler=`set X $ac_compile; echo $2` | |
1922 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1923 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1924 | ac_status=$? | |
1925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1926 | (exit $ac_status); } | |
1927 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1928 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1929 | ac_status=$? | |
1930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1931 | (exit $ac_status); } | |
1932 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1933 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1934 | ac_status=$? | |
1935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1936 | (exit $ac_status); } | |
1937 | ||
1938 | cat >conftest.$ac_ext <<_ACEOF | |
1939 | /* confdefs.h. */ | |
1940 | _ACEOF | |
1941 | cat confdefs.h >>conftest.$ac_ext | |
1942 | cat >>conftest.$ac_ext <<_ACEOF | |
1943 | /* end confdefs.h. */ | |
1944 | ||
1945 | int | |
1946 | main () | |
1947 | { | |
1948 | ||
1949 | ; | |
1950 | return 0; | |
1951 | } | |
1952 | _ACEOF | |
1953 | ac_clean_files_save=$ac_clean_files | |
1954 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1955 | # Try to create an executable without -o first, disregard a.out. | |
1956 | # It will help us diagnose broken compilers, and finding out an intuition | |
1957 | # of exeext. | |
1958 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1959 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1960 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1961 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1962 | (eval $ac_link_default) 2>&5 | |
1963 | ac_status=$? | |
1964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1965 | (exit $ac_status); }; then | |
1966 | # Find the output, starting from the most likely. This scheme is | |
1967 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1968 | # resort. | |
1969 | ||
1970 | # Be careful to initialize this variable, since it used to be cached. | |
1971 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1972 | ac_cv_exeext= | |
1973 | # b.out is created by i960 compilers. | |
1974 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1975 | do | |
1976 | test -f "$ac_file" || continue | |
1977 | case $ac_file in | |
1978 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1979 | ;; | |
1980 | conftest.$ac_ext ) | |
1981 | # This is the source file. | |
1982 | ;; | |
1983 | [ab].out ) | |
1984 | # We found the default executable, but exeext='' is most | |
1985 | # certainly right. | |
1986 | break;; | |
1987 | *.* ) | |
1988 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1989 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1990 | # but it would be cool to find out if it's true. Does anybody | |
1991 | # maintain Libtool? --akim. | |
1992 | export ac_cv_exeext | |
1993 | break;; | |
1994 | * ) | |
1995 | break;; | |
1996 | esac | |
1997 | done | |
1998 | else | |
1999 | echo "$as_me: failed program was:" >&5 | |
2000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2001 | ||
7a283e07 RW |
2002 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2003 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
42ecbf5e DJ |
2004 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2005 | See \`config.log' for more details." >&5 | |
2006 | echo "$as_me: error: C compiler cannot create executables | |
2007 | See \`config.log' for more details." >&2;} | |
7a283e07 | 2008 | { (exit 77); exit 77; }; }; } |
42ecbf5e DJ |
2009 | fi |
2010 | ||
2011 | ac_exeext=$ac_cv_exeext | |
2012 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2013 | echo "${ECHO_T}$ac_file" >&6 | |
2014 | ||
2015 | # Check the compiler produces executables we can run. If not, either | |
2016 | # the compiler is broken, or we cross compile. | |
2017 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2018 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2019 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2020 | # If not cross compiling, check that we can run a simple program. | |
2021 | if test "$cross_compiling" != yes; then | |
2022 | if { ac_try='./$ac_file' | |
2023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2024 | (eval $ac_try) 2>&5 | |
2025 | ac_status=$? | |
2026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2027 | (exit $ac_status); }; }; then | |
2028 | cross_compiling=no | |
2029 | else | |
2030 | if test "$cross_compiling" = maybe; then | |
2031 | cross_compiling=yes | |
2032 | else | |
7a283e07 RW |
2033 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2034 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2035 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
42ecbf5e DJ |
2036 | If you meant to cross compile, use \`--host'. |
2037 | See \`config.log' for more details." >&5 | |
2038 | echo "$as_me: error: cannot run C compiled programs. | |
2039 | If you meant to cross compile, use \`--host'. | |
2040 | See \`config.log' for more details." >&2;} | |
7a283e07 | 2041 | { (exit 1); exit 1; }; }; } |
42ecbf5e DJ |
2042 | fi |
2043 | fi | |
2044 | fi | |
2045 | echo "$as_me:$LINENO: result: yes" >&5 | |
2046 | echo "${ECHO_T}yes" >&6 | |
2047 | ||
2048 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2049 | ac_clean_files=$ac_clean_files_save | |
2050 | # Check the compiler produces executables we can run. If not, either | |
2051 | # the compiler is broken, or we cross compile. | |
2052 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2053 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2054 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2055 | echo "${ECHO_T}$cross_compiling" >&6 | |
2056 | ||
2057 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2058 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2059 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2060 | (eval $ac_link) 2>&5 | |
2061 | ac_status=$? | |
2062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2063 | (exit $ac_status); }; then | |
2064 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2065 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2066 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2067 | # `rm'. | |
2068 | for ac_file in conftest.exe conftest conftest.*; do | |
2069 | test -f "$ac_file" || continue | |
2070 | case $ac_file in | |
2071 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2072 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2073 | export ac_cv_exeext | |
2074 | break;; | |
2075 | * ) break;; | |
2076 | esac | |
2077 | done | |
2078 | else | |
7a283e07 RW |
2079 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2080 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2081 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
42ecbf5e DJ |
2082 | See \`config.log' for more details." >&5 |
2083 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2084 | See \`config.log' for more details." >&2;} | |
7a283e07 | 2085 | { (exit 1); exit 1; }; }; } |
42ecbf5e DJ |
2086 | fi |
2087 | ||
2088 | rm -f conftest$ac_cv_exeext | |
2089 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2090 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2091 | ||
2092 | rm -f conftest.$ac_ext | |
2093 | EXEEXT=$ac_cv_exeext | |
2094 | ac_exeext=$EXEEXT | |
2095 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2096 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2097 | if test "${ac_cv_objext+set}" = set; then | |
2098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2099 | else | |
2100 | cat >conftest.$ac_ext <<_ACEOF | |
2101 | /* confdefs.h. */ | |
2102 | _ACEOF | |
2103 | cat confdefs.h >>conftest.$ac_ext | |
2104 | cat >>conftest.$ac_ext <<_ACEOF | |
2105 | /* end confdefs.h. */ | |
2106 | ||
2107 | int | |
2108 | main () | |
2109 | { | |
2110 | ||
2111 | ; | |
2112 | return 0; | |
2113 | } | |
2114 | _ACEOF | |
2115 | rm -f conftest.o conftest.obj | |
2116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2117 | (eval $ac_compile) 2>&5 | |
2118 | ac_status=$? | |
2119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2120 | (exit $ac_status); }; then | |
2121 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2122 | case $ac_file in | |
2123 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2124 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2125 | break;; | |
2126 | esac | |
2127 | done | |
2128 | else | |
2129 | echo "$as_me: failed program was:" >&5 | |
2130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2131 | ||
7a283e07 RW |
2132 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2133 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
42ecbf5e DJ |
2134 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2135 | See \`config.log' for more details." >&5 | |
2136 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2137 | See \`config.log' for more details." >&2;} | |
7a283e07 | 2138 | { (exit 1); exit 1; }; }; } |
42ecbf5e DJ |
2139 | fi |
2140 | ||
2141 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2142 | fi | |
2143 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2144 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2145 | OBJEXT=$ac_cv_objext | |
2146 | ac_objext=$OBJEXT | |
2147 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2148 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2149 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2151 | else | |
2152 | cat >conftest.$ac_ext <<_ACEOF | |
2153 | /* confdefs.h. */ | |
2154 | _ACEOF | |
2155 | cat confdefs.h >>conftest.$ac_ext | |
2156 | cat >>conftest.$ac_ext <<_ACEOF | |
2157 | /* end confdefs.h. */ | |
2158 | ||
2159 | int | |
2160 | main () | |
2161 | { | |
2162 | #ifndef __GNUC__ | |
2163 | choke me | |
2164 | #endif | |
2165 | ||
2166 | ; | |
2167 | return 0; | |
2168 | } | |
2169 | _ACEOF | |
2170 | rm -f conftest.$ac_objext | |
2171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2172 | (eval $ac_compile) 2>conftest.er1 | |
2173 | ac_status=$? | |
2174 | grep -v '^ *+' conftest.er1 >conftest.err | |
2175 | rm -f conftest.er1 | |
2176 | cat conftest.err >&5 | |
2177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2178 | (exit $ac_status); } && | |
7357c5b6 AM |
2179 | { ac_try='test -z "$ac_c_werror_flag" |
2180 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2182 | (eval $ac_try) 2>&5 | |
2183 | ac_status=$? | |
2184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2185 | (exit $ac_status); }; } && | |
2186 | { ac_try='test -s conftest.$ac_objext' | |
2187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2188 | (eval $ac_try) 2>&5 | |
2189 | ac_status=$? | |
2190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2191 | (exit $ac_status); }; }; then | |
2192 | ac_compiler_gnu=yes | |
2193 | else | |
2194 | echo "$as_me: failed program was:" >&5 | |
2195 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2196 | ||
2197 | ac_compiler_gnu=no | |
2198 | fi | |
2199 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2200 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2201 | ||
2202 | fi | |
2203 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2204 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2205 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2206 | ac_test_CFLAGS=${CFLAGS+set} | |
2207 | ac_save_CFLAGS=$CFLAGS | |
2208 | CFLAGS="-g" | |
2209 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2210 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2211 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2213 | else | |
2214 | cat >conftest.$ac_ext <<_ACEOF | |
2215 | /* confdefs.h. */ | |
2216 | _ACEOF | |
2217 | cat confdefs.h >>conftest.$ac_ext | |
2218 | cat >>conftest.$ac_ext <<_ACEOF | |
2219 | /* end confdefs.h. */ | |
2220 | ||
2221 | int | |
2222 | main () | |
2223 | { | |
2224 | ||
2225 | ; | |
2226 | return 0; | |
2227 | } | |
2228 | _ACEOF | |
2229 | rm -f conftest.$ac_objext | |
2230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2231 | (eval $ac_compile) 2>conftest.er1 | |
2232 | ac_status=$? | |
2233 | grep -v '^ *+' conftest.er1 >conftest.err | |
2234 | rm -f conftest.er1 | |
2235 | cat conftest.err >&5 | |
2236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2237 | (exit $ac_status); } && | |
7357c5b6 AM |
2238 | { ac_try='test -z "$ac_c_werror_flag" |
2239 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2241 | (eval $ac_try) 2>&5 | |
2242 | ac_status=$? | |
2243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2244 | (exit $ac_status); }; } && | |
2245 | { ac_try='test -s conftest.$ac_objext' | |
2246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2247 | (eval $ac_try) 2>&5 | |
2248 | ac_status=$? | |
2249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2250 | (exit $ac_status); }; }; then | |
2251 | ac_cv_prog_cc_g=yes | |
2252 | else | |
2253 | echo "$as_me: failed program was:" >&5 | |
2254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2255 | ||
2256 | ac_cv_prog_cc_g=no | |
2257 | fi | |
2258 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2259 | fi | |
2260 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2261 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2262 | if test "$ac_test_CFLAGS" = set; then | |
2263 | CFLAGS=$ac_save_CFLAGS | |
2264 | elif test $ac_cv_prog_cc_g = yes; then | |
2265 | if test "$GCC" = yes; then | |
2266 | CFLAGS="-g -O2" | |
2267 | else | |
2268 | CFLAGS="-g" | |
2269 | fi | |
2270 | else | |
2271 | if test "$GCC" = yes; then | |
2272 | CFLAGS="-O2" | |
2273 | else | |
2274 | CFLAGS= | |
2275 | fi | |
2276 | fi | |
2277 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2278 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2279 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2281 | else | |
2282 | ac_cv_prog_cc_stdc=no | |
2283 | ac_save_CC=$CC | |
2284 | cat >conftest.$ac_ext <<_ACEOF | |
2285 | /* confdefs.h. */ | |
2286 | _ACEOF | |
2287 | cat confdefs.h >>conftest.$ac_ext | |
2288 | cat >>conftest.$ac_ext <<_ACEOF | |
2289 | /* end confdefs.h. */ | |
2290 | #include <stdarg.h> | |
2291 | #include <stdio.h> | |
2292 | #include <sys/types.h> | |
2293 | #include <sys/stat.h> | |
2294 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2295 | struct buf { int x; }; | |
2296 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2297 | static char *e (p, i) | |
2298 | char **p; | |
2299 | int i; | |
2300 | { | |
2301 | return p[i]; | |
2302 | } | |
2303 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2304 | { | |
2305 | char *s; | |
2306 | va_list v; | |
2307 | va_start (v,p); | |
2308 | s = g (p, va_arg (v,int)); | |
2309 | va_end (v); | |
2310 | return s; | |
2311 | } | |
2312 | ||
2313 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2314 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2315 | These don't provoke an error unfortunately, instead are silently treated | |
2316 | as 'x'. The following induces an error, until -std1 is added to get | |
2317 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2318 | array size at least. It's necessary to write '\x00'==0 to get something | |
2319 | that's true only with -std1. */ | |
2320 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2321 | ||
2322 | int test (int i, double x); | |
2323 | struct s1 {int (*f) (int a);}; | |
2324 | struct s2 {int (*f) (double a);}; | |
2325 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2326 | int argc; | |
2327 | char **argv; | |
2328 | int | |
2329 | main () | |
2330 | { | |
2331 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2332 | ; | |
2333 | return 0; | |
2334 | } | |
2335 | _ACEOF | |
2336 | # Don't try gcc -ansi; that turns off useful extensions and | |
2337 | # breaks some systems' header files. | |
2338 | # AIX -qlanglvl=ansi | |
2339 | # Ultrix and OSF/1 -std1 | |
2340 | # HP-UX 10.20 and later -Ae | |
2341 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2342 | # SVR4 -Xc -D__EXTENSIONS__ | |
2343 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2344 | do | |
2345 | CC="$ac_save_CC $ac_arg" | |
2346 | rm -f conftest.$ac_objext | |
2347 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2348 | (eval $ac_compile) 2>conftest.er1 | |
2349 | ac_status=$? | |
2350 | grep -v '^ *+' conftest.er1 >conftest.err | |
2351 | rm -f conftest.er1 | |
2352 | cat conftest.err >&5 | |
2353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2354 | (exit $ac_status); } && | |
7357c5b6 AM |
2355 | { ac_try='test -z "$ac_c_werror_flag" |
2356 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2358 | (eval $ac_try) 2>&5 | |
2359 | ac_status=$? | |
2360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2361 | (exit $ac_status); }; } && | |
2362 | { ac_try='test -s conftest.$ac_objext' | |
2363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2364 | (eval $ac_try) 2>&5 | |
2365 | ac_status=$? | |
2366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2367 | (exit $ac_status); }; }; then | |
2368 | ac_cv_prog_cc_stdc=$ac_arg | |
2369 | break | |
2370 | else | |
2371 | echo "$as_me: failed program was:" >&5 | |
2372 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2373 | ||
2374 | fi | |
2375 | rm -f conftest.err conftest.$ac_objext | |
2376 | done | |
2377 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2378 | CC=$ac_save_CC | |
2379 | ||
2380 | fi | |
2381 | ||
2382 | case "x$ac_cv_prog_cc_stdc" in | |
2383 | x|xno) | |
2384 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2385 | echo "${ECHO_T}none needed" >&6 ;; | |
2386 | *) | |
2387 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2388 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2389 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2390 | esac | |
2391 | ||
2392 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2393 | # in C++ we need to declare it. In case someone uses the same compiler | |
2394 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2395 | # the declaration of exit, since it's the most demanding environment. | |
2396 | cat >conftest.$ac_ext <<_ACEOF | |
2397 | #ifndef __cplusplus | |
2398 | choke me | |
2399 | #endif | |
2400 | _ACEOF | |
2401 | rm -f conftest.$ac_objext | |
2402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2403 | (eval $ac_compile) 2>conftest.er1 | |
2404 | ac_status=$? | |
2405 | grep -v '^ *+' conftest.er1 >conftest.err | |
2406 | rm -f conftest.er1 | |
2407 | cat conftest.err >&5 | |
2408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2409 | (exit $ac_status); } && | |
7357c5b6 AM |
2410 | { ac_try='test -z "$ac_c_werror_flag" |
2411 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2413 | (eval $ac_try) 2>&5 | |
2414 | ac_status=$? | |
2415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2416 | (exit $ac_status); }; } && | |
2417 | { ac_try='test -s conftest.$ac_objext' | |
2418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2419 | (eval $ac_try) 2>&5 | |
2420 | ac_status=$? | |
2421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2422 | (exit $ac_status); }; }; then | |
2423 | for ac_declaration in \ | |
2424 | '' \ | |
2425 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2426 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2427 | 'extern "C" void exit (int) throw ();' \ | |
2428 | 'extern "C" void exit (int);' \ | |
2429 | 'void exit (int);' | |
2430 | do | |
2431 | cat >conftest.$ac_ext <<_ACEOF | |
2432 | /* confdefs.h. */ | |
2433 | _ACEOF | |
2434 | cat confdefs.h >>conftest.$ac_ext | |
2435 | cat >>conftest.$ac_ext <<_ACEOF | |
2436 | /* end confdefs.h. */ | |
2437 | $ac_declaration | |
2438 | #include <stdlib.h> | |
2439 | int | |
2440 | main () | |
2441 | { | |
2442 | exit (42); | |
2443 | ; | |
2444 | return 0; | |
2445 | } | |
2446 | _ACEOF | |
2447 | rm -f conftest.$ac_objext | |
2448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2449 | (eval $ac_compile) 2>conftest.er1 | |
2450 | ac_status=$? | |
2451 | grep -v '^ *+' conftest.er1 >conftest.err | |
2452 | rm -f conftest.er1 | |
2453 | cat conftest.err >&5 | |
2454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2455 | (exit $ac_status); } && | |
7357c5b6 AM |
2456 | { ac_try='test -z "$ac_c_werror_flag" |
2457 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2459 | (eval $ac_try) 2>&5 | |
2460 | ac_status=$? | |
2461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2462 | (exit $ac_status); }; } && | |
2463 | { ac_try='test -s conftest.$ac_objext' | |
2464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2465 | (eval $ac_try) 2>&5 | |
2466 | ac_status=$? | |
2467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2468 | (exit $ac_status); }; }; then | |
2469 | : | |
2470 | else | |
2471 | echo "$as_me: failed program was:" >&5 | |
2472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2473 | ||
2474 | continue | |
2475 | fi | |
2476 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2477 | cat >conftest.$ac_ext <<_ACEOF | |
2478 | /* confdefs.h. */ | |
2479 | _ACEOF | |
2480 | cat confdefs.h >>conftest.$ac_ext | |
2481 | cat >>conftest.$ac_ext <<_ACEOF | |
2482 | /* end confdefs.h. */ | |
2483 | $ac_declaration | |
2484 | int | |
2485 | main () | |
2486 | { | |
2487 | exit (42); | |
2488 | ; | |
2489 | return 0; | |
2490 | } | |
2491 | _ACEOF | |
2492 | rm -f conftest.$ac_objext | |
2493 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2494 | (eval $ac_compile) 2>conftest.er1 | |
2495 | ac_status=$? | |
2496 | grep -v '^ *+' conftest.er1 >conftest.err | |
2497 | rm -f conftest.er1 | |
2498 | cat conftest.err >&5 | |
2499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2500 | (exit $ac_status); } && | |
7357c5b6 AM |
2501 | { ac_try='test -z "$ac_c_werror_flag" |
2502 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2504 | (eval $ac_try) 2>&5 | |
2505 | ac_status=$? | |
2506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2507 | (exit $ac_status); }; } && | |
2508 | { ac_try='test -s conftest.$ac_objext' | |
2509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2510 | (eval $ac_try) 2>&5 | |
2511 | ac_status=$? | |
2512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2513 | (exit $ac_status); }; }; then | |
2514 | break | |
2515 | else | |
2516 | echo "$as_me: failed program was:" >&5 | |
2517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2518 | ||
2519 | fi | |
2520 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2521 | done | |
2522 | rm -f conftest* | |
2523 | if test -n "$ac_declaration"; then | |
2524 | echo '#ifdef __cplusplus' >>confdefs.h | |
2525 | echo $ac_declaration >>confdefs.h | |
2526 | echo '#endif' >>confdefs.h | |
2527 | fi | |
2528 | ||
2529 | else | |
2530 | echo "$as_me: failed program was:" >&5 | |
2531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2532 | ||
2533 | fi | |
2534 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2535 | ac_ext=c | |
2536 | ac_cpp='$CPP $CPPFLAGS' | |
2537 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2538 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2539 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2540 | ||
2541 | ||
2542 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 | |
2543 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
2544 | if test "${ac_cv_search_strerror+set}" = set; then | |
2545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2546 | else | |
2547 | ac_func_search_save_LIBS=$LIBS | |
2548 | ac_cv_search_strerror=no | |
2549 | cat >conftest.$ac_ext <<_ACEOF | |
2550 | /* confdefs.h. */ | |
2551 | _ACEOF | |
2552 | cat confdefs.h >>conftest.$ac_ext | |
2553 | cat >>conftest.$ac_ext <<_ACEOF | |
2554 | /* end confdefs.h. */ | |
2555 | ||
2556 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2557 | #ifdef __cplusplus | |
2558 | extern "C" | |
2559 | #endif | |
2560 | /* We use char because int might match the return type of a gcc2 | |
2561 | builtin and then its argument prototype would still apply. */ | |
2562 | char strerror (); | |
2563 | int | |
2564 | main () | |
2565 | { | |
2566 | strerror (); | |
2567 | ; | |
2568 | return 0; | |
2569 | } | |
2570 | _ACEOF | |
2571 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2572 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2573 | (eval $ac_link) 2>conftest.er1 | |
2574 | ac_status=$? | |
2575 | grep -v '^ *+' conftest.er1 >conftest.err | |
2576 | rm -f conftest.er1 | |
2577 | cat conftest.err >&5 | |
2578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2579 | (exit $ac_status); } && | |
7357c5b6 AM |
2580 | { ac_try='test -z "$ac_c_werror_flag" |
2581 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2583 | (eval $ac_try) 2>&5 | |
2584 | ac_status=$? | |
2585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2586 | (exit $ac_status); }; } && | |
2587 | { ac_try='test -s conftest$ac_exeext' | |
2588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2589 | (eval $ac_try) 2>&5 | |
2590 | ac_status=$? | |
2591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2592 | (exit $ac_status); }; }; then | |
2593 | ac_cv_search_strerror="none required" | |
2594 | else | |
2595 | echo "$as_me: failed program was:" >&5 | |
2596 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2597 | ||
2598 | fi | |
2599 | rm -f conftest.err conftest.$ac_objext \ | |
2600 | conftest$ac_exeext conftest.$ac_ext | |
2601 | if test "$ac_cv_search_strerror" = no; then | |
2602 | for ac_lib in cposix; do | |
2603 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2604 | cat >conftest.$ac_ext <<_ACEOF | |
2605 | /* confdefs.h. */ | |
2606 | _ACEOF | |
2607 | cat confdefs.h >>conftest.$ac_ext | |
2608 | cat >>conftest.$ac_ext <<_ACEOF | |
2609 | /* end confdefs.h. */ | |
2610 | ||
2611 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2612 | #ifdef __cplusplus | |
2613 | extern "C" | |
2614 | #endif | |
2615 | /* We use char because int might match the return type of a gcc2 | |
2616 | builtin and then its argument prototype would still apply. */ | |
2617 | char strerror (); | |
2618 | int | |
2619 | main () | |
2620 | { | |
2621 | strerror (); | |
2622 | ; | |
2623 | return 0; | |
2624 | } | |
2625 | _ACEOF | |
2626 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2627 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2628 | (eval $ac_link) 2>conftest.er1 | |
2629 | ac_status=$? | |
2630 | grep -v '^ *+' conftest.er1 >conftest.err | |
2631 | rm -f conftest.er1 | |
2632 | cat conftest.err >&5 | |
2633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2634 | (exit $ac_status); } && | |
7357c5b6 AM |
2635 | { ac_try='test -z "$ac_c_werror_flag" |
2636 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2638 | (eval $ac_try) 2>&5 | |
2639 | ac_status=$? | |
2640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2641 | (exit $ac_status); }; } && | |
2642 | { ac_try='test -s conftest$ac_exeext' | |
2643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2644 | (eval $ac_try) 2>&5 | |
2645 | ac_status=$? | |
2646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2647 | (exit $ac_status); }; }; then | |
2648 | ac_cv_search_strerror="-l$ac_lib" | |
2649 | break | |
2650 | else | |
2651 | echo "$as_me: failed program was:" >&5 | |
2652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2653 | ||
2654 | fi | |
2655 | rm -f conftest.err conftest.$ac_objext \ | |
2656 | conftest$ac_exeext conftest.$ac_ext | |
2657 | done | |
2658 | fi | |
2659 | LIBS=$ac_func_search_save_LIBS | |
2660 | fi | |
2661 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
2662 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2663 | if test "$ac_cv_search_strerror" != no; then | |
2664 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
2665 | ||
2666 | fi | |
2667 | ||
2668 | ||
2669 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` | |
2670 | am__api_version="1.9" | |
2671 | # Find a good install program. We prefer a C program (faster), | |
2672 | # so one script is as good as another. But avoid the broken or | |
2673 | # incompatible versions: | |
2674 | # SysV /etc/install, /usr/sbin/install | |
2675 | # SunOS /usr/etc/install | |
2676 | # IRIX /sbin/install | |
2677 | # AIX /bin/install | |
2678 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2679 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2680 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2681 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2682 | # OS/2's system install, which has a completely different semantic | |
2683 | # ./install, which can be erroneously created by make from ./install.sh. | |
58c85be7 | 2684 | # Reject install programs that cannot install multiple files. |
42ecbf5e DJ |
2685 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2686 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
2687 | if test -z "$INSTALL"; then | |
2688 | if test "${ac_cv_path_install+set}" = set; then | |
2689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2690 | else | |
2691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2692 | for as_dir in $PATH | |
2693 | do | |
2694 | IFS=$as_save_IFS | |
2695 | test -z "$as_dir" && as_dir=. | |
2696 | # Account for people who put trailing slashes in PATH elements. | |
2697 | case $as_dir/ in | |
2698 | ./ | .// | /cC/* | \ | |
2699 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2700 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2701 | /usr/ucb/* ) ;; | |
2702 | *) | |
2703 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2704 | # Don't use installbsd from OSF since it installs stuff as root | |
2705 | # by default. | |
2706 | for ac_prog in ginstall scoinst install; do | |
2707 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2708 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2709 | if test $ac_prog = install && | |
2710 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
252b5132 RH |
2711 | # AIX install. It has an incompatible calling convention. |
2712 | : | |
42ecbf5e DJ |
2713 | elif test $ac_prog = install && |
2714 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2715 | # program-specific install script used by HP pwplus--don't use. | |
2716 | : | |
252b5132 | 2717 | else |
58c85be7 RW |
2718 | rm -rf conftest.one conftest.two conftest.dir |
2719 | echo one > conftest.one | |
2720 | echo two > conftest.two | |
2721 | mkdir conftest.dir | |
2722 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2723 | test -s conftest.one && test -s conftest.two && | |
2724 | test -s conftest.dir/conftest.one && | |
2725 | test -s conftest.dir/conftest.two | |
2726 | then | |
2727 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2728 | break 3 | |
2729 | fi | |
252b5132 RH |
2730 | fi |
2731 | fi | |
d15b04bd | 2732 | done |
42ecbf5e DJ |
2733 | done |
2734 | ;; | |
2735 | esac | |
2736 | done | |
2737 | ||
58c85be7 | 2738 | rm -rf conftest.one conftest.two conftest.dir |
252b5132 RH |
2739 | |
2740 | fi | |
2741 | if test "${ac_cv_path_install+set}" = set; then | |
42ecbf5e | 2742 | INSTALL=$ac_cv_path_install |
252b5132 | 2743 | else |
58c85be7 RW |
2744 | # As a last resort, use the slow shell script. Don't cache a |
2745 | # value for INSTALL within a source directory, because that will | |
252b5132 | 2746 | # break other packages using the cache if that directory is |
58c85be7 | 2747 | # removed, or if the value is a relative name. |
42ecbf5e | 2748 | INSTALL=$ac_install_sh |
252b5132 RH |
2749 | fi |
2750 | fi | |
42ecbf5e DJ |
2751 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2752 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
2753 | |
2754 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2755 | # It thinks the first close brace ends the variable substitution. | |
2756 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2757 | ||
42ecbf5e | 2758 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
2759 | |
2760 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2761 | ||
42ecbf5e DJ |
2762 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2763 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
252b5132 RH |
2764 | # Just in case |
2765 | sleep 1 | |
42ecbf5e | 2766 | echo timestamp > conftest.file |
252b5132 RH |
2767 | # Do `set' in a subshell so we don't clobber the current shell's |
2768 | # arguments. Must try -L first in case configure is actually a | |
2769 | # symlink; some systems play weird games with the mod time of symlinks | |
2770 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2771 | # directory). | |
2772 | if ( | |
42ecbf5e | 2773 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
252b5132 RH |
2774 | if test "$*" = "X"; then |
2775 | # -L didn't work. | |
42ecbf5e | 2776 | set X `ls -t $srcdir/configure conftest.file` |
252b5132 | 2777 | fi |
42ecbf5e DJ |
2778 | rm -f conftest.file |
2779 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2780 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
2781 | |
2782 | # If neither matched, then we have a broken ls. This can happen | |
2783 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2784 | # broken ls alias from the environment. This has actually | |
2785 | # happened. Such a system could not be considered "sane". | |
42ecbf5e DJ |
2786 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2787 | alias in your environment" >&5 | |
2788 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2789 | alias in your environment" >&2;} | |
2790 | { (exit 1); exit 1; }; } | |
252b5132 RH |
2791 | fi |
2792 | ||
42ecbf5e | 2793 | test "$2" = conftest.file |
252b5132 RH |
2794 | ) |
2795 | then | |
2796 | # Ok. | |
2797 | : | |
2798 | else | |
42ecbf5e DJ |
2799 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2800 | Check your system clock" >&5 | |
2801 | echo "$as_me: error: newly created file is older than distributed files! | |
2802 | Check your system clock" >&2;} | |
2803 | { (exit 1); exit 1; }; } | |
2804 | fi | |
2805 | echo "$as_me:$LINENO: result: yes" >&5 | |
2806 | echo "${ECHO_T}yes" >&6 | |
2807 | test "$program_prefix" != NONE && | |
2808 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
2809 | # Use a double $ so make ignores it. | |
2810 | test "$program_suffix" != NONE && | |
2811 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
2812 | # Double any \ or $. echo might interpret backslashes. | |
2813 | # By default was `s,x,x', remove it if useless. | |
2814 | cat <<\_ACEOF >conftest.sed | |
2815 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2816 | _ACEOF | |
2817 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
2818 | rm conftest.sed | |
2819 | ||
2820 | # expand $ac_aux_dir to an absolute path | |
2821 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2822 | ||
2823 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2824 | # Use eval to expand $SHELL | |
2825 | if eval "$MISSING --run true"; then | |
2826 | am_missing_run="$MISSING --run " | |
2827 | else | |
2828 | am_missing_run= | |
2829 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2830 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2831 | fi | |
2832 | ||
2833 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
2834 | # We used to keeping the `.' as first argument, in order to | |
2835 | # allow $(mkdir_p) to be used without argument. As in | |
2836 | # $(mkdir_p) $(somedir) | |
2837 | # where $(somedir) is conditionally defined. However this is wrong | |
2838 | # for two reasons: | |
2839 | # 1. if the package is installed by a user who cannot write `.' | |
2840 | # make install will fail, | |
2841 | # 2. the above comment should most certainly read | |
2842 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
2843 | # so it does not work when $(somedir) is undefined and | |
2844 | # $(DESTDIR) is not. | |
2845 | # To support the latter case, we have to write | |
2846 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
2847 | # so the `.' trick is pointless. | |
2848 | mkdir_p='mkdir -p --' | |
2849 | else | |
2850 | # On NextStep and OpenStep, the `mkdir' command does not | |
2851 | # recognize any option. It will interpret all options as | |
2852 | # directories to create, and then abort because `.' already | |
2853 | # exists. | |
2854 | for d in ./-p ./--version; | |
2855 | do | |
2856 | test -d $d && rmdir $d | |
2857 | done | |
2858 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
2859 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
2860 | mkdir_p='$(mkinstalldirs)' | |
2861 | else | |
2862 | mkdir_p='$(install_sh) -d' | |
2863 | fi | |
2864 | fi | |
2865 | ||
2866 | for ac_prog in gawk mawk nawk awk | |
2867 | do | |
2868 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2869 | set dummy $ac_prog; ac_word=$2 | |
2870 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2871 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2872 | if test "${ac_cv_prog_AWK+set}" = set; then | |
2873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2874 | else | |
2875 | if test -n "$AWK"; then | |
2876 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2877 | else | |
2878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2879 | for as_dir in $PATH | |
2880 | do | |
2881 | IFS=$as_save_IFS | |
2882 | test -z "$as_dir" && as_dir=. | |
2883 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2884 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2885 | ac_cv_prog_AWK="$ac_prog" | |
2886 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2887 | break 2 | |
2888 | fi | |
2889 | done | |
2890 | done | |
2891 | ||
2892 | fi | |
2893 | fi | |
2894 | AWK=$ac_cv_prog_AWK | |
2895 | if test -n "$AWK"; then | |
2896 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
2897 | echo "${ECHO_T}$AWK" >&6 | |
2898 | else | |
2899 | echo "$as_me:$LINENO: result: no" >&5 | |
2900 | echo "${ECHO_T}no" >&6 | |
2901 | fi | |
2902 | ||
2903 | test -n "$AWK" && break | |
2904 | done | |
2905 | ||
2906 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2907 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
2908 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
2909 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
2910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2911 | else | |
2912 | cat >conftest.make <<\_ACEOF | |
2913 | all: | |
2914 | @echo 'ac_maketemp="$(MAKE)"' | |
2915 | _ACEOF | |
2916 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2917 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
2918 | if test -n "$ac_maketemp"; then | |
2919 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2920 | else | |
2921 | eval ac_cv_prog_make_${ac_make}_set=no | |
2922 | fi | |
2923 | rm -f conftest.make | |
2924 | fi | |
2925 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
2926 | echo "$as_me:$LINENO: result: yes" >&5 | |
2927 | echo "${ECHO_T}yes" >&6 | |
2928 | SET_MAKE= | |
2929 | else | |
2930 | echo "$as_me:$LINENO: result: no" >&5 | |
2931 | echo "${ECHO_T}no" >&6 | |
2932 | SET_MAKE="MAKE=${MAKE-make}" | |
2933 | fi | |
2934 | ||
2935 | rm -rf .tst 2>/dev/null | |
2936 | mkdir .tst 2>/dev/null | |
2937 | if test -d .tst; then | |
2938 | am__leading_dot=. | |
2939 | else | |
2940 | am__leading_dot=_ | |
2941 | fi | |
2942 | rmdir .tst 2>/dev/null | |
2943 | ||
2944 | DEPDIR="${am__leading_dot}deps" | |
2945 | ||
2946 | ac_config_commands="$ac_config_commands depfiles" | |
2947 | ||
2948 | ||
2949 | am_make=${MAKE-make} | |
2950 | cat > confinc << 'END' | |
2951 | am__doit: | |
2952 | @echo done | |
2953 | .PHONY: am__doit | |
2954 | END | |
2955 | # If we don't find an include directive, just comment out the code. | |
2956 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2957 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2958 | am__include="#" | |
2959 | am__quote= | |
2960 | _am_result=none | |
2961 | # First try GNU make style include. | |
2962 | echo "include confinc" > confmf | |
2963 | # We grep out `Entering directory' and `Leaving directory' | |
2964 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2965 | # In particular we don't look at `^make:' because GNU make might | |
2966 | # be invoked under some other name (usually "gmake"), in which | |
2967 | # case it prints its new name instead of `make'. | |
2968 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2969 | am__include=include | |
2970 | am__quote= | |
2971 | _am_result=GNU | |
2972 | fi | |
2973 | # Now try BSD make style include. | |
2974 | if test "$am__include" = "#"; then | |
2975 | echo '.include "confinc"' > confmf | |
2976 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2977 | am__include=.include | |
2978 | am__quote="\"" | |
2979 | _am_result=BSD | |
2980 | fi | |
2981 | fi | |
2982 | ||
2983 | ||
2984 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2985 | echo "${ECHO_T}$_am_result" >&6 | |
2986 | rm -f confinc confmf | |
2987 | ||
2988 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
2989 | if test "${enable_dependency_tracking+set}" = set; then | |
2990 | enableval="$enable_dependency_tracking" | |
2991 | ||
2992 | fi; | |
2993 | if test "x$enable_dependency_tracking" != xno; then | |
2994 | am_depcomp="$ac_aux_dir/depcomp" | |
2995 | AMDEPBACKSLASH='\' | |
2996 | fi | |
2997 | ||
2998 | ||
2999 | if test "x$enable_dependency_tracking" != xno; then | |
3000 | AMDEP_TRUE= | |
3001 | AMDEP_FALSE='#' | |
3002 | else | |
3003 | AMDEP_TRUE='#' | |
3004 | AMDEP_FALSE= | |
3005 | fi | |
3006 | ||
3007 | ||
3008 | ||
3009 | # test to see if srcdir already configured | |
3010 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
3011 | test -f $srcdir/config.status; then | |
3012 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
3013 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
3014 | { (exit 1); exit 1; }; } | |
3015 | fi | |
3016 | ||
3017 | # test whether we have cygpath | |
3018 | if test -z "$CYGPATH_W"; then | |
3019 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3020 | CYGPATH_W='cygpath -w' | |
3021 | else | |
3022 | CYGPATH_W=echo | |
3023 | fi | |
3024 | fi | |
3025 | ||
3026 | ||
3027 | # Define the identity of the package. | |
3028 | PACKAGE=binutils | |
3029 | VERSION=${BFD_VERSION} | |
3030 | ||
3031 | ||
3032 | cat >>confdefs.h <<_ACEOF | |
3033 | #define PACKAGE "$PACKAGE" | |
3034 | _ACEOF | |
3035 | ||
3036 | ||
3037 | cat >>confdefs.h <<_ACEOF | |
3038 | #define VERSION "$VERSION" | |
3039 | _ACEOF | |
3040 | ||
3041 | # Some tools Automake needs. | |
3042 | ||
3043 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3044 | ||
3045 | ||
3046 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3047 | ||
3048 | ||
3049 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3050 | ||
3051 | ||
3052 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3053 | ||
3054 | ||
3055 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3056 | ||
3057 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
3058 | ||
3059 | # Installed binaries are usually stripped using `strip' when the user | |
3060 | # run `make install-strip'. However `strip' might not be the right | |
3061 | # tool to use in cross-compilation environments, therefore Automake | |
3062 | # will honor the `STRIP' environment variable to overrule this program. | |
3063 | if test "$cross_compiling" != no; then | |
3064 | if test -n "$ac_tool_prefix"; then | |
3065 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3066 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3067 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3068 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3069 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
3070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3071 | else | |
3072 | if test -n "$STRIP"; then | |
3073 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3074 | else | |
3075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3076 | for as_dir in $PATH | |
3077 | do | |
3078 | IFS=$as_save_IFS | |
3079 | test -z "$as_dir" && as_dir=. | |
3080 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3081 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3082 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3083 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3084 | break 2 | |
3085 | fi | |
3086 | done | |
3087 | done | |
3088 | ||
252b5132 | 3089 | fi |
42ecbf5e DJ |
3090 | fi |
3091 | STRIP=$ac_cv_prog_STRIP | |
3092 | if test -n "$STRIP"; then | |
3093 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
3094 | echo "${ECHO_T}$STRIP" >&6 | |
d15b04bd | 3095 | else |
42ecbf5e DJ |
3096 | echo "$as_me:$LINENO: result: no" >&5 |
3097 | echo "${ECHO_T}no" >&6 | |
d15b04bd | 3098 | fi |
d15b04bd | 3099 | |
42ecbf5e DJ |
3100 | fi |
3101 | if test -z "$ac_cv_prog_STRIP"; then | |
3102 | ac_ct_STRIP=$STRIP | |
3103 | # Extract the first word of "strip", so it can be a program name with args. | |
3104 | set dummy strip; ac_word=$2 | |
3105 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3106 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3107 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
3108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d15b04bd | 3109 | else |
42ecbf5e DJ |
3110 | if test -n "$ac_ct_STRIP"; then |
3111 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
252b5132 | 3112 | else |
42ecbf5e DJ |
3113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3114 | for as_dir in $PATH | |
3115 | do | |
3116 | IFS=$as_save_IFS | |
3117 | test -z "$as_dir" && as_dir=. | |
3118 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3119 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3120 | ac_cv_prog_ac_ct_STRIP="strip" | |
3121 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3122 | break 2 | |
3123 | fi | |
3124 | done | |
3125 | done | |
3126 | ||
3127 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
252b5132 | 3128 | fi |
252b5132 | 3129 | fi |
42ecbf5e DJ |
3130 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3131 | if test -n "$ac_ct_STRIP"; then | |
3132 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
3133 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
252b5132 | 3134 | else |
42ecbf5e DJ |
3135 | echo "$as_me:$LINENO: result: no" >&5 |
3136 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3137 | fi |
3138 | ||
42ecbf5e DJ |
3139 | STRIP=$ac_ct_STRIP |
3140 | else | |
3141 | STRIP="$ac_cv_prog_STRIP" | |
3142 | fi | |
252b5132 | 3143 | |
42ecbf5e DJ |
3144 | fi |
3145 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
252b5132 | 3146 | |
42ecbf5e DJ |
3147 | # We need awk for the "check" target. The system "awk" is bad on |
3148 | # some platforms. | |
3149 | # Always define AMTAR for backward compatibility. | |
252b5132 | 3150 | |
42ecbf5e | 3151 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
252b5132 | 3152 | |
42ecbf5e | 3153 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
252b5132 RH |
3154 | |
3155 | ||
3156 | ||
252b5132 | 3157 | |
42ecbf5e DJ |
3158 | depcc="$CC" am_compiler_list= |
3159 | ||
3160 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
3161 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
3162 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 3164 | else |
42ecbf5e DJ |
3165 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3166 | # We make a subdir and do the tests there. Otherwise we can end up | |
3167 | # making bogus files that we don't know about and never remove. For | |
3168 | # instance it was reported that on HP-UX the gcc test will end up | |
3169 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3170 | # in D'. | |
3171 | mkdir conftest.dir | |
3172 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3173 | # using a relative directory. | |
3174 | cp "$am_depcomp" conftest.dir | |
3175 | cd conftest.dir | |
3176 | # We will build objects and dependencies in a subdirectory because | |
3177 | # it helps to detect inapplicable dependency modes. For instance | |
3178 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3179 | # side effect of compilation, but ICC will put the dependencies in | |
3180 | # the current directory while Tru64 will put them in the object | |
3181 | # directory. | |
3182 | mkdir sub | |
252b5132 | 3183 | |
42ecbf5e DJ |
3184 | am_cv_CC_dependencies_compiler_type=none |
3185 | if test "$am_compiler_list" = ""; then | |
3186 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3187 | fi | |
3188 | for depmode in $am_compiler_list; do | |
3189 | # Setup a source with many dependencies, because some compilers | |
3190 | # like to wrap large dependency lists on column 80 (with \), and | |
3191 | # we should not choose a depcomp mode which is confused by this. | |
3192 | # | |
3193 | # We need to recreate these files for each test, as the compiler may | |
3194 | # overwrite some of them when testing with obscure command lines. | |
3195 | # This happens at least with the AIX C compiler. | |
3196 | : > sub/conftest.c | |
3197 | for i in 1 2 3 4 5 6; do | |
3198 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3199 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3200 | # Solaris 8's {/usr,}/bin/sh. | |
3201 | touch sub/conftst$i.h | |
3202 | done | |
3203 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3204 | ||
3205 | case $depmode in | |
3206 | nosideeffect) | |
3207 | # after this tag, mechanisms are not by side-effect, so they'll | |
3208 | # only be used when explicitly requested | |
3209 | if test "x$enable_dependency_tracking" = xyes; then | |
3210 | continue | |
3211 | else | |
3212 | break | |
3213 | fi | |
3214 | ;; | |
3215 | none) break ;; | |
3216 | esac | |
3217 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3218 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3219 | # handle `-M -o', and we need to detect this. | |
3220 | if depmode=$depmode \ | |
3221 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3222 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3223 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3224 | >/dev/null 2>conftest.err && | |
3225 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3226 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3227 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3228 | # icc doesn't choke on unknown options, it will just issue warnings | |
3229 | # or remarks (even with -Werror). So we grep stderr for any message | |
3230 | # that says an option was ignored or not supported. | |
3231 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3232 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3233 | # The diagnosis changed in icc 8.0: | |
3234 | # icc: Command line remark: option '-MP' not supported | |
3235 | if (grep 'ignoring option' conftest.err || | |
3236 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3237 | am_cv_CC_dependencies_compiler_type=$depmode | |
3238 | break | |
3239 | fi | |
3240 | fi | |
3241 | done | |
3242 | ||
3243 | cd .. | |
3244 | rm -rf conftest.dir | |
252b5132 | 3245 | else |
42ecbf5e | 3246 | am_cv_CC_dependencies_compiler_type=none |
252b5132 RH |
3247 | fi |
3248 | ||
252b5132 | 3249 | fi |
42ecbf5e DJ |
3250 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3251 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3252 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3253 | ||
3254 | ||
252b5132 | 3255 | |
42ecbf5e DJ |
3256 | if |
3257 | test "x$enable_dependency_tracking" != xno \ | |
3258 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3259 | am__fastdepCC_TRUE= | |
3260 | am__fastdepCC_FALSE='#' | |
252b5132 | 3261 | else |
42ecbf5e DJ |
3262 | am__fastdepCC_TRUE='#' |
3263 | am__fastdepCC_FALSE= | |
252b5132 RH |
3264 | fi |
3265 | ||
3266 | ||
3267 | ||
42ecbf5e | 3268 | |
d45dc31f SE |
3269 | ac_ext=c |
3270 | ac_cpp='$CPP $CPPFLAGS' | |
3271 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3272 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3273 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3274 | if test -n "$ac_tool_prefix"; then | |
3275 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3276 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3277 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3278 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3279 | if test "${ac_cv_prog_CC+set}" = set; then | |
3280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 3281 | else |
d45dc31f SE |
3282 | if test -n "$CC"; then |
3283 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1a09a22c | 3284 | else |
d45dc31f SE |
3285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3286 | for as_dir in $PATH | |
3287 | do | |
3288 | IFS=$as_save_IFS | |
3289 | test -z "$as_dir" && as_dir=. | |
3290 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3291 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3292 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3293 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3294 | break 2 | |
3295 | fi | |
3296 | done | |
3297 | done | |
ceae3e33 | 3298 | |
d45dc31f SE |
3299 | fi |
3300 | fi | |
3301 | CC=$ac_cv_prog_CC | |
3302 | if test -n "$CC"; then | |
3303 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3304 | echo "${ECHO_T}$CC" >&6 | |
252b5132 | 3305 | else |
d45dc31f SE |
3306 | echo "$as_me:$LINENO: result: no" >&5 |
3307 | echo "${ECHO_T}no" >&6 | |
252b5132 | 3308 | fi |
d45dc31f SE |
3309 | |
3310 | fi | |
3311 | if test -z "$ac_cv_prog_CC"; then | |
3312 | ac_ct_CC=$CC | |
3313 | # Extract the first word of "gcc", so it can be a program name with args. | |
3314 | set dummy gcc; ac_word=$2 | |
3315 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3316 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3317 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
42ecbf5e | 3318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 3319 | else |
d45dc31f SE |
3320 | if test -n "$ac_ct_CC"; then |
3321 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
252b5132 | 3322 | else |
d45dc31f SE |
3323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3324 | for as_dir in $PATH | |
3325 | do | |
3326 | IFS=$as_save_IFS | |
3327 | test -z "$as_dir" && as_dir=. | |
3328 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3329 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3330 | ac_cv_prog_ac_ct_CC="gcc" | |
3331 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3332 | break 2 | |
3333 | fi | |
3334 | done | |
3335 | done | |
3336 | ||
252b5132 RH |
3337 | fi |
3338 | fi | |
d45dc31f SE |
3339 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3340 | if test -n "$ac_ct_CC"; then | |
3341 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3342 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
252b5132 | 3343 | else |
42ecbf5e DJ |
3344 | echo "$as_me:$LINENO: result: no" >&5 |
3345 | echo "${ECHO_T}no" >&6 | |
252b5132 | 3346 | fi |
d45dc31f SE |
3347 | |
3348 | CC=$ac_ct_CC | |
3349 | else | |
3350 | CC="$ac_cv_prog_CC" | |
3351 | fi | |
3352 | ||
3353 | if test -z "$CC"; then | |
3354 | if test -n "$ac_tool_prefix"; then | |
3355 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3356 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3357 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3358 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3359 | if test "${ac_cv_prog_CC+set}" = set; then | |
42ecbf5e | 3360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 3361 | else |
d45dc31f SE |
3362 | if test -n "$CC"; then |
3363 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
252b5132 | 3364 | else |
d45dc31f SE |
3365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3366 | for as_dir in $PATH | |
3367 | do | |
3368 | IFS=$as_save_IFS | |
3369 | test -z "$as_dir" && as_dir=. | |
3370 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3371 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3372 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3373 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3374 | break 2 | |
3375 | fi | |
3376 | done | |
3377 | done | |
3378 | ||
252b5132 RH |
3379 | fi |
3380 | fi | |
d45dc31f SE |
3381 | CC=$ac_cv_prog_CC |
3382 | if test -n "$CC"; then | |
3383 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3384 | echo "${ECHO_T}$CC" >&6 | |
ac48eca1 | 3385 | else |
d45dc31f SE |
3386 | echo "$as_me:$LINENO: result: no" >&5 |
3387 | echo "${ECHO_T}no" >&6 | |
ac48eca1 | 3388 | fi |
ac48eca1 | 3389 | |
d45dc31f SE |
3390 | fi |
3391 | if test -z "$ac_cv_prog_CC"; then | |
3392 | ac_ct_CC=$CC | |
3393 | # Extract the first word of "cc", so it can be a program name with args. | |
3394 | set dummy cc; ac_word=$2 | |
3395 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3396 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3397 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
42ecbf5e | 3398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 3399 | else |
d45dc31f SE |
3400 | if test -n "$ac_ct_CC"; then |
3401 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
252b5132 | 3402 | else |
d45dc31f SE |
3403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3404 | for as_dir in $PATH | |
3405 | do | |
3406 | IFS=$as_save_IFS | |
3407 | test -z "$as_dir" && as_dir=. | |
3408 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3409 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3410 | ac_cv_prog_ac_ct_CC="cc" | |
3411 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3412 | break 2 | |
3413 | fi | |
3414 | done | |
3415 | done | |
3416 | ||
252b5132 | 3417 | fi |
d45dc31f SE |
3418 | fi |
3419 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3420 | if test -n "$ac_ct_CC"; then | |
3421 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3422 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3423 | else | |
3424 | echo "$as_me:$LINENO: result: no" >&5 | |
3425 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3426 | fi |
3427 | ||
d45dc31f SE |
3428 | CC=$ac_ct_CC |
3429 | else | |
3430 | CC="$ac_cv_prog_CC" | |
3431 | fi | |
252b5132 | 3432 | |
d45dc31f SE |
3433 | fi |
3434 | if test -z "$CC"; then | |
3435 | # Extract the first word of "cc", so it can be a program name with args. | |
3436 | set dummy cc; ac_word=$2 | |
3437 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3438 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3439 | if test "${ac_cv_prog_CC+set}" = set; then | |
3440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 3441 | else |
d45dc31f SE |
3442 | if test -n "$CC"; then |
3443 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3444 | else | |
3445 | ac_prog_rejected=no | |
3446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3447 | for as_dir in $PATH | |
3448 | do | |
3449 | IFS=$as_save_IFS | |
3450 | test -z "$as_dir" && as_dir=. | |
3451 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3452 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3453 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3454 | ac_prog_rejected=yes | |
3455 | continue | |
3456 | fi | |
3457 | ac_cv_prog_CC="cc" | |
3458 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3459 | break 2 | |
3460 | fi | |
3461 | done | |
3462 | done | |
3463 | ||
3464 | if test $ac_prog_rejected = yes; then | |
3465 | # We found a bogon in the path, so make sure we never use it. | |
3466 | set dummy $ac_cv_prog_CC | |
3467 | shift | |
3468 | if test $# != 0; then | |
3469 | # We chose a different compiler from the bogus one. | |
3470 | # However, it has the same basename, so the bogon will be chosen | |
3471 | # first if we set CC to just the basename; use the full file name. | |
3472 | shift | |
3473 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3474 | fi | |
3475 | fi | |
3476 | fi | |
3477 | fi | |
3478 | CC=$ac_cv_prog_CC | |
3479 | if test -n "$CC"; then | |
3480 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3481 | echo "${ECHO_T}$CC" >&6 | |
3482 | else | |
3483 | echo "$as_me:$LINENO: result: no" >&5 | |
3484 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3485 | fi |
3486 | ||
d45dc31f SE |
3487 | fi |
3488 | if test -z "$CC"; then | |
3489 | if test -n "$ac_tool_prefix"; then | |
3490 | for ac_prog in cl | |
3491 | do | |
3492 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3493 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3494 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3495 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3496 | if test "${ac_cv_prog_CC+set}" = set; then | |
42ecbf5e | 3497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac48eca1 | 3498 | else |
d45dc31f SE |
3499 | if test -n "$CC"; then |
3500 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3501 | else | |
3502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3503 | for as_dir in $PATH | |
3504 | do | |
3505 | IFS=$as_save_IFS | |
3506 | test -z "$as_dir" && as_dir=. | |
3507 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3508 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3509 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3510 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3511 | break 2 | |
3512 | fi | |
3513 | done | |
3514 | done | |
ac48eca1 | 3515 | |
d45dc31f SE |
3516 | fi |
3517 | fi | |
3518 | CC=$ac_cv_prog_CC | |
3519 | if test -n "$CC"; then | |
3520 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3521 | echo "${ECHO_T}$CC" >&6 | |
3522 | else | |
3523 | echo "$as_me:$LINENO: result: no" >&5 | |
3524 | echo "${ECHO_T}no" >&6 | |
3525 | fi | |
ac48eca1 | 3526 | |
d45dc31f SE |
3527 | test -n "$CC" && break |
3528 | done | |
3529 | fi | |
3530 | if test -z "$CC"; then | |
3531 | ac_ct_CC=$CC | |
3532 | for ac_prog in cl | |
3533 | do | |
3534 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3535 | set dummy $ac_prog; ac_word=$2 | |
3536 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3537 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3538 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
3539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3540 | else | |
3541 | if test -n "$ac_ct_CC"; then | |
3542 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3543 | else | |
3544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3545 | for as_dir in $PATH | |
3546 | do | |
3547 | IFS=$as_save_IFS | |
3548 | test -z "$as_dir" && as_dir=. | |
3549 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3550 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3551 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3552 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3553 | break 2 | |
3554 | fi | |
3555 | done | |
3556 | done | |
ac48eca1 | 3557 | |
d45dc31f SE |
3558 | fi |
3559 | fi | |
3560 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3561 | if test -n "$ac_ct_CC"; then | |
3562 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3563 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3564 | else | |
3565 | echo "$as_me:$LINENO: result: no" >&5 | |
3566 | echo "${ECHO_T}no" >&6 | |
3567 | fi | |
ac48eca1 | 3568 | |
d45dc31f SE |
3569 | test -n "$ac_ct_CC" && break |
3570 | done | |
ac48eca1 | 3571 | |
d45dc31f SE |
3572 | CC=$ac_ct_CC |
3573 | fi | |
ac48eca1 AO |
3574 | |
3575 | fi | |
ac48eca1 | 3576 | |
ac48eca1 | 3577 | |
7a283e07 RW |
3578 | test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3579 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3580 | { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
d45dc31f SE |
3581 | See \`config.log' for more details." >&5 |
3582 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
3583 | See \`config.log' for more details." >&2;} | |
7a283e07 | 3584 | { (exit 1); exit 1; }; }; } |
ac48eca1 | 3585 | |
d45dc31f SE |
3586 | # Provide some information about the compiler. |
3587 | echo "$as_me:$LINENO:" \ | |
3588 | "checking for C compiler version" >&5 | |
3589 | ac_compiler=`set X $ac_compile; echo $2` | |
3590 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
3591 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
3592 | ac_status=$? | |
3593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3594 | (exit $ac_status); } | |
3595 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
3596 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
3597 | ac_status=$? | |
3598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3599 | (exit $ac_status); } | |
3600 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
3601 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
3602 | ac_status=$? | |
3603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3604 | (exit $ac_status); } | |
ac48eca1 | 3605 | |
d45dc31f SE |
3606 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3607 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
3608 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
bdcfeba5 NC |
3609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3610 | else | |
d45dc31f SE |
3611 | cat >conftest.$ac_ext <<_ACEOF |
3612 | /* confdefs.h. */ | |
3613 | _ACEOF | |
3614 | cat confdefs.h >>conftest.$ac_ext | |
3615 | cat >>conftest.$ac_ext <<_ACEOF | |
3616 | /* end confdefs.h. */ | |
bdcfeba5 | 3617 | |
d45dc31f SE |
3618 | int |
3619 | main () | |
3620 | { | |
3621 | #ifndef __GNUC__ | |
3622 | choke me | |
3623 | #endif | |
bdcfeba5 | 3624 | |
d45dc31f SE |
3625 | ; |
3626 | return 0; | |
3627 | } | |
3628 | _ACEOF | |
3629 | rm -f conftest.$ac_objext | |
3630 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3631 | (eval $ac_compile) 2>conftest.er1 | |
3632 | ac_status=$? | |
3633 | grep -v '^ *+' conftest.er1 >conftest.err | |
3634 | rm -f conftest.er1 | |
3635 | cat conftest.err >&5 | |
3636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3637 | (exit $ac_status); } && | |
7357c5b6 AM |
3638 | { ac_try='test -z "$ac_c_werror_flag" |
3639 | || test ! -s conftest.err' | |
d45dc31f SE |
3640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3641 | (eval $ac_try) 2>&5 | |
3642 | ac_status=$? | |
3643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3644 | (exit $ac_status); }; } && | |
3645 | { ac_try='test -s conftest.$ac_objext' | |
3646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3647 | (eval $ac_try) 2>&5 | |
3648 | ac_status=$? | |
3649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3650 | (exit $ac_status); }; }; then | |
3651 | ac_compiler_gnu=yes | |
3652 | else | |
3653 | echo "$as_me: failed program was:" >&5 | |
3654 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bdcfeba5 | 3655 | |
d45dc31f | 3656 | ac_compiler_gnu=no |
bdcfeba5 | 3657 | fi |
d45dc31f SE |
3658 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3659 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
bdcfeba5 | 3660 | |
bdcfeba5 | 3661 | fi |
d45dc31f SE |
3662 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3663 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
3664 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3665 | ac_test_CFLAGS=${CFLAGS+set} | |
3666 | ac_save_CFLAGS=$CFLAGS | |
3667 | CFLAGS="-g" | |
3668 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
3669 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
3670 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
42ecbf5e | 3671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac48eca1 | 3672 | else |
d45dc31f SE |
3673 | cat >conftest.$ac_ext <<_ACEOF |
3674 | /* confdefs.h. */ | |
3675 | _ACEOF | |
3676 | cat confdefs.h >>conftest.$ac_ext | |
3677 | cat >>conftest.$ac_ext <<_ACEOF | |
3678 | /* end confdefs.h. */ | |
ac48eca1 | 3679 | |
d45dc31f SE |
3680 | int |
3681 | main () | |
3682 | { | |
ac48eca1 | 3683 | |
d45dc31f SE |
3684 | ; |
3685 | return 0; | |
3686 | } | |
3687 | _ACEOF | |
3688 | rm -f conftest.$ac_objext | |
3689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3690 | (eval $ac_compile) 2>conftest.er1 | |
3691 | ac_status=$? | |
3692 | grep -v '^ *+' conftest.er1 >conftest.err | |
3693 | rm -f conftest.er1 | |
3694 | cat conftest.err >&5 | |
3695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3696 | (exit $ac_status); } && | |
7357c5b6 AM |
3697 | { ac_try='test -z "$ac_c_werror_flag" |
3698 | || test ! -s conftest.err' | |
d45dc31f SE |
3699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3700 | (eval $ac_try) 2>&5 | |
3701 | ac_status=$? | |
3702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3703 | (exit $ac_status); }; } && | |
3704 | { ac_try='test -s conftest.$ac_objext' | |
3705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3706 | (eval $ac_try) 2>&5 | |
3707 | ac_status=$? | |
3708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3709 | (exit $ac_status); }; }; then | |
3710 | ac_cv_prog_cc_g=yes | |
ac48eca1 | 3711 | else |
d45dc31f SE |
3712 | echo "$as_me: failed program was:" >&5 |
3713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ac48eca1 | 3714 | |
d45dc31f | 3715 | ac_cv_prog_cc_g=no |
ac48eca1 | 3716 | fi |
d45dc31f | 3717 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ac48eca1 | 3718 | fi |
d45dc31f SE |
3719 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3720 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
3721 | if test "$ac_test_CFLAGS" = set; then | |
3722 | CFLAGS=$ac_save_CFLAGS | |
3723 | elif test $ac_cv_prog_cc_g = yes; then | |
3724 | if test "$GCC" = yes; then | |
3725 | CFLAGS="-g -O2" | |
ac48eca1 | 3726 | else |
d45dc31f | 3727 | CFLAGS="-g" |
42ecbf5e | 3728 | fi |
ac48eca1 | 3729 | else |
d45dc31f SE |
3730 | if test "$GCC" = yes; then |
3731 | CFLAGS="-O2" | |
3732 | else | |
3733 | CFLAGS= | |
42ecbf5e | 3734 | fi |
ac48eca1 | 3735 | fi |
d45dc31f SE |
3736 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
3737 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
3738 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
3739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3740 | else | |
3741 | ac_cv_prog_cc_stdc=no | |
3742 | ac_save_CC=$CC | |
3743 | cat >conftest.$ac_ext <<_ACEOF | |
42ecbf5e DJ |
3744 | /* confdefs.h. */ |
3745 | _ACEOF | |
3746 | cat confdefs.h >>conftest.$ac_ext | |
3747 | cat >>conftest.$ac_ext <<_ACEOF | |
3748 | /* end confdefs.h. */ | |
d45dc31f SE |
3749 | #include <stdarg.h> |
3750 | #include <stdio.h> | |
3751 | #include <sys/types.h> | |
3752 | #include <sys/stat.h> | |
3753 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3754 | struct buf { int x; }; | |
3755 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3756 | static char *e (p, i) | |
3757 | char **p; | |
3758 | int i; | |
3759 | { | |
3760 | return p[i]; | |
3761 | } | |
3762 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3763 | { | |
3764 | char *s; | |
3765 | va_list v; | |
3766 | va_start (v,p); | |
3767 | s = g (p, va_arg (v,int)); | |
3768 | va_end (v); | |
3769 | return s; | |
3770 | } | |
3771 | ||
3772 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3773 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3774 | These don't provoke an error unfortunately, instead are silently treated | |
3775 | as 'x'. The following induces an error, until -std1 is added to get | |
3776 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3777 | array size at least. It's necessary to write '\x00'==0 to get something | |
3778 | that's true only with -std1. */ | |
3779 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
252b5132 | 3780 | |
d45dc31f SE |
3781 | int test (int i, double x); |
3782 | struct s1 {int (*f) (int a);}; | |
3783 | struct s2 {int (*f) (double a);}; | |
3784 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3785 | int argc; | |
3786 | char **argv; | |
42ecbf5e DJ |
3787 | int |
3788 | main () | |
3789 | { | |
d45dc31f | 3790 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
42ecbf5e DJ |
3791 | ; |
3792 | return 0; | |
3793 | } | |
3794 | _ACEOF | |
d45dc31f SE |
3795 | # Don't try gcc -ansi; that turns off useful extensions and |
3796 | # breaks some systems' header files. | |
3797 | # AIX -qlanglvl=ansi | |
3798 | # Ultrix and OSF/1 -std1 | |
3799 | # HP-UX 10.20 and later -Ae | |
3800 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3801 | # SVR4 -Xc -D__EXTENSIONS__ | |
3802 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3803 | do | |
3804 | CC="$ac_save_CC $ac_arg" | |
3805 | rm -f conftest.$ac_objext | |
3806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3807 | (eval $ac_compile) 2>conftest.er1 | |
42ecbf5e DJ |
3808 | ac_status=$? |
3809 | grep -v '^ *+' conftest.er1 >conftest.err | |
3810 | rm -f conftest.er1 | |
3811 | cat conftest.err >&5 | |
3812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3813 | (exit $ac_status); } && | |
7357c5b6 AM |
3814 | { ac_try='test -z "$ac_c_werror_flag" |
3815 | || test ! -s conftest.err' | |
42ecbf5e DJ |
3816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3817 | (eval $ac_try) 2>&5 | |
3818 | ac_status=$? | |
3819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3820 | (exit $ac_status); }; } && | |
d45dc31f | 3821 | { ac_try='test -s conftest.$ac_objext' |
42ecbf5e DJ |
3822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3823 | (eval $ac_try) 2>&5 | |
3824 | ac_status=$? | |
3825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3826 | (exit $ac_status); }; }; then | |
d45dc31f SE |
3827 | ac_cv_prog_cc_stdc=$ac_arg |
3828 | break | |
252b5132 | 3829 | else |
42ecbf5e DJ |
3830 | echo "$as_me: failed program was:" >&5 |
3831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3832 | ||
252b5132 | 3833 | fi |
d45dc31f SE |
3834 | rm -f conftest.err conftest.$ac_objext |
3835 | done | |
3836 | rm -f conftest.$ac_ext conftest.$ac_objext | |
3837 | CC=$ac_save_CC | |
ac48eca1 | 3838 | |
252b5132 | 3839 | fi |
252b5132 | 3840 | |
d45dc31f SE |
3841 | case "x$ac_cv_prog_cc_stdc" in |
3842 | x|xno) | |
3843 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3844 | echo "${ECHO_T}none needed" >&6 ;; | |
3845 | *) | |
3846 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
3847 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3848 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
252b5132 RH |
3849 | esac |
3850 | ||
d45dc31f SE |
3851 | # Some people use a C++ compiler to compile C. Since we use `exit', |
3852 | # in C++ we need to declare it. In case someone uses the same compiler | |
3853 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3854 | # the declaration of exit, since it's the most demanding environment. | |
3855 | cat >conftest.$ac_ext <<_ACEOF | |
3856 | #ifndef __cplusplus | |
3857 | choke me | |
3858 | #endif | |
42ecbf5e | 3859 | _ACEOF |
d45dc31f SE |
3860 | rm -f conftest.$ac_objext |
3861 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3862 | (eval $ac_compile) 2>conftest.er1 | |
3863 | ac_status=$? | |
3864 | grep -v '^ *+' conftest.er1 >conftest.err | |
3865 | rm -f conftest.er1 | |
3866 | cat conftest.err >&5 | |
3867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3868 | (exit $ac_status); } && | |
7357c5b6 AM |
3869 | { ac_try='test -z "$ac_c_werror_flag" |
3870 | || test ! -s conftest.err' | |
d45dc31f SE |
3871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3872 | (eval $ac_try) 2>&5 | |
3873 | ac_status=$? | |
3874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3875 | (exit $ac_status); }; } && | |
3876 | { ac_try='test -s conftest.$ac_objext' | |
3877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3878 | (eval $ac_try) 2>&5 | |
3879 | ac_status=$? | |
3880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3881 | (exit $ac_status); }; }; then | |
3882 | for ac_declaration in \ | |
3883 | '' \ | |
3884 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
3885 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3886 | 'extern "C" void exit (int) throw ();' \ | |
3887 | 'extern "C" void exit (int);' \ | |
3888 | 'void exit (int);' | |
3889 | do | |
3890 | cat >conftest.$ac_ext <<_ACEOF | |
3891 | /* confdefs.h. */ | |
3892 | _ACEOF | |
3893 | cat confdefs.h >>conftest.$ac_ext | |
3894 | cat >>conftest.$ac_ext <<_ACEOF | |
3895 | /* end confdefs.h. */ | |
3896 | $ac_declaration | |
3897 | #include <stdlib.h> | |
3898 | int | |
3899 | main () | |
42ecbf5e | 3900 | { |
d45dc31f SE |
3901 | exit (42); |
3902 | ; | |
3903 | return 0; | |
3904 | } | |
3905 | _ACEOF | |
3906 | rm -f conftest.$ac_objext | |
3907 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3908 | (eval $ac_compile) 2>conftest.er1 | |
3909 | ac_status=$? | |
3910 | grep -v '^ *+' conftest.er1 >conftest.err | |
3911 | rm -f conftest.er1 | |
3912 | cat conftest.err >&5 | |
3913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3914 | (exit $ac_status); } && | |
7357c5b6 AM |
3915 | { ac_try='test -z "$ac_c_werror_flag" |
3916 | || test ! -s conftest.err' | |
d45dc31f SE |
3917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3918 | (eval $ac_try) 2>&5 | |
3919 | ac_status=$? | |
3920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3921 | (exit $ac_status); }; } && | |
3922 | { ac_try='test -s conftest.$ac_objext' | |
3923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3924 | (eval $ac_try) 2>&5 | |
3925 | ac_status=$? | |
3926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3927 | (exit $ac_status); }; }; then | |
3928 | : | |
3929 | else | |
3930 | echo "$as_me: failed program was:" >&5 | |
3931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
252b5132 | 3932 | |
d45dc31f SE |
3933 | continue |
3934 | fi | |
3935 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3936 | cat >conftest.$ac_ext <<_ACEOF | |
3937 | /* confdefs.h. */ | |
3938 | _ACEOF | |
3939 | cat confdefs.h >>conftest.$ac_ext | |
3940 | cat >>conftest.$ac_ext <<_ACEOF | |
3941 | /* end confdefs.h. */ | |
3942 | $ac_declaration | |
3943 | int | |
3944 | main () | |
3945 | { | |
3946 | exit (42); | |
3947 | ; | |
3948 | return 0; | |
3949 | } | |
3950 | _ACEOF | |
3951 | rm -f conftest.$ac_objext | |
3952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3953 | (eval $ac_compile) 2>conftest.er1 | |
3954 | ac_status=$? | |
3955 | grep -v '^ *+' conftest.er1 >conftest.err | |
3956 | rm -f conftest.er1 | |
3957 | cat conftest.err >&5 | |
3958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3959 | (exit $ac_status); } && | |
7357c5b6 AM |
3960 | { ac_try='test -z "$ac_c_werror_flag" |
3961 | || test ! -s conftest.err' | |
d45dc31f SE |
3962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3963 | (eval $ac_try) 2>&5 | |
3964 | ac_status=$? | |
3965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3966 | (exit $ac_status); }; } && | |
3967 | { ac_try='test -s conftest.$ac_objext' | |
3968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3969 | (eval $ac_try) 2>&5 | |
3970 | ac_status=$? | |
3971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3972 | (exit $ac_status); }; }; then | |
3973 | break | |
3974 | else | |
3975 | echo "$as_me: failed program was:" >&5 | |
3976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
252b5132 | 3977 | |
d45dc31f SE |
3978 | fi |
3979 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3980 | done | |
3981 | rm -f conftest* | |
3982 | if test -n "$ac_declaration"; then | |
3983 | echo '#ifdef __cplusplus' >>confdefs.h | |
3984 | echo $ac_declaration >>confdefs.h | |
3985 | echo '#endif' >>confdefs.h | |
3986 | fi | |
ac48eca1 | 3987 | |
d45dc31f SE |
3988 | else |
3989 | echo "$as_me: failed program was:" >&5 | |
3990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42ecbf5e | 3991 | |
d45dc31f SE |
3992 | fi |
3993 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3994 | ac_ext=c | |
3995 | ac_cpp='$CPP $CPPFLAGS' | |
3996 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3997 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3998 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
42ecbf5e DJ |
3999 | |
4000 | ||
d45dc31f SE |
4001 | cat >>confdefs.h <<\_ACEOF |
4002 | #define _GNU_SOURCE 1 | |
4003 | _ACEOF | |
42ecbf5e | 4004 | |
ac48eca1 | 4005 | |
7357c5b6 AM |
4006 | ac_ext=c |
4007 | ac_cpp='$CPP $CPPFLAGS' | |
4008 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4009 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4010 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4011 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
4012 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
4013 | # On Suns, sometimes $CPP names a directory. | |
4014 | if test -n "$CPP" && test -d "$CPP"; then | |
4015 | CPP= | |
4016 | fi | |
4017 | if test -z "$CPP"; then | |
4018 | if test "${ac_cv_prog_CPP+set}" = set; then | |
4019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4020 | else | |
4021 | # Double quotes because CPP needs to be expanded | |
4022 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4023 | do | |
4024 | ac_preproc_ok=false | |
4025 | for ac_c_preproc_warn_flag in '' yes | |
4026 | do | |
4027 | # Use a header file that comes with gcc, so configuring glibc | |
4028 | # with a fresh cross-compiler works. | |
4029 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4030 | # <limits.h> exists even on freestanding compilers. | |
4031 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4032 | # not just through cpp. "Syntax error" is here to catch this case. | |
4033 | cat >conftest.$ac_ext <<_ACEOF | |
4034 | /* confdefs.h. */ | |
4035 | _ACEOF | |
4036 | cat confdefs.h >>conftest.$ac_ext | |
4037 | cat >>conftest.$ac_ext <<_ACEOF | |
4038 | /* end confdefs.h. */ | |
4039 | #ifdef __STDC__ | |
4040 | # include <limits.h> | |
4041 | #else | |
4042 | # include <assert.h> | |
4043 | #endif | |
4044 | Syntax error | |
4045 | _ACEOF | |
4046 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4047 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4048 | ac_status=$? | |
4049 | grep -v '^ *+' conftest.er1 >conftest.err | |
4050 | rm -f conftest.er1 | |
4051 | cat conftest.err >&5 | |
4052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4053 | (exit $ac_status); } >/dev/null; then | |
4054 | if test -s conftest.err; then | |
4055 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4056 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4057 | else | |
4058 | ac_cpp_err= | |
4059 | fi | |
4060 | else | |
4061 | ac_cpp_err=yes | |
4062 | fi | |
4063 | if test -z "$ac_cpp_err"; then | |
4064 | : | |
4065 | else | |
4066 | echo "$as_me: failed program was:" >&5 | |
4067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4068 | |
7357c5b6 AM |
4069 | # Broken: fails on valid input. |
4070 | continue | |
4071 | fi | |
4072 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4073 | |
7357c5b6 AM |
4074 | # OK, works on sane cases. Now check whether non-existent headers |
4075 | # can be detected and how. | |
4076 | cat >conftest.$ac_ext <<_ACEOF | |
4077 | /* confdefs.h. */ | |
4078 | _ACEOF | |
4079 | cat confdefs.h >>conftest.$ac_ext | |
4080 | cat >>conftest.$ac_ext <<_ACEOF | |
4081 | /* end confdefs.h. */ | |
4082 | #include <ac_nonexistent.h> | |
4083 | _ACEOF | |
4084 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4085 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4086 | ac_status=$? | |
4087 | grep -v '^ *+' conftest.er1 >conftest.err | |
4088 | rm -f conftest.er1 | |
4089 | cat conftest.err >&5 | |
4090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4091 | (exit $ac_status); } >/dev/null; then | |
4092 | if test -s conftest.err; then | |
4093 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4094 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4095 | else | |
4096 | ac_cpp_err= | |
4097 | fi | |
4098 | else | |
4099 | ac_cpp_err=yes | |
4100 | fi | |
4101 | if test -z "$ac_cpp_err"; then | |
4102 | # Broken: success on invalid input. | |
4103 | continue | |
4104 | else | |
4105 | echo "$as_me: failed program was:" >&5 | |
4106 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4107 | |
7357c5b6 AM |
4108 | # Passes both tests. |
4109 | ac_preproc_ok=: | |
4110 | break | |
4111 | fi | |
4112 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4113 | |
7357c5b6 AM |
4114 | done |
4115 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4116 | rm -f conftest.err conftest.$ac_ext | |
4117 | if $ac_preproc_ok; then | |
4118 | break | |
4119 | fi | |
d7040cdb | 4120 | |
7357c5b6 AM |
4121 | done |
4122 | ac_cv_prog_CPP=$CPP | |
d7040cdb | 4123 | |
7357c5b6 AM |
4124 | fi |
4125 | CPP=$ac_cv_prog_CPP | |
4126 | else | |
4127 | ac_cv_prog_CPP=$CPP | |
4128 | fi | |
4129 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
4130 | echo "${ECHO_T}$CPP" >&6 | |
4131 | ac_preproc_ok=false | |
4132 | for ac_c_preproc_warn_flag in '' yes | |
4133 | do | |
4134 | # Use a header file that comes with gcc, so configuring glibc | |
4135 | # with a fresh cross-compiler works. | |
4136 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4137 | # <limits.h> exists even on freestanding compilers. | |
4138 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4139 | # not just through cpp. "Syntax error" is here to catch this case. | |
4140 | cat >conftest.$ac_ext <<_ACEOF | |
4141 | /* confdefs.h. */ | |
4142 | _ACEOF | |
4143 | cat confdefs.h >>conftest.$ac_ext | |
4144 | cat >>conftest.$ac_ext <<_ACEOF | |
4145 | /* end confdefs.h. */ | |
4146 | #ifdef __STDC__ | |
4147 | # include <limits.h> | |
4148 | #else | |
4149 | # include <assert.h> | |
4150 | #endif | |
4151 | Syntax error | |
4152 | _ACEOF | |
4153 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4154 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4155 | ac_status=$? | |
4156 | grep -v '^ *+' conftest.er1 >conftest.err | |
4157 | rm -f conftest.er1 | |
4158 | cat conftest.err >&5 | |
4159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4160 | (exit $ac_status); } >/dev/null; then | |
4161 | if test -s conftest.err; then | |
4162 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4163 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4164 | else | |
4165 | ac_cpp_err= | |
4166 | fi | |
4167 | else | |
4168 | ac_cpp_err=yes | |
4169 | fi | |
4170 | if test -z "$ac_cpp_err"; then | |
4171 | : | |
4172 | else | |
4173 | echo "$as_me: failed program was:" >&5 | |
4174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4175 | |
7357c5b6 AM |
4176 | # Broken: fails on valid input. |
4177 | continue | |
4178 | fi | |
4179 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4180 | |
7357c5b6 AM |
4181 | # OK, works on sane cases. Now check whether non-existent headers |
4182 | # can be detected and how. | |
4183 | cat >conftest.$ac_ext <<_ACEOF | |
4184 | /* confdefs.h. */ | |
4185 | _ACEOF | |
4186 | cat confdefs.h >>conftest.$ac_ext | |
4187 | cat >>conftest.$ac_ext <<_ACEOF | |
4188 | /* end confdefs.h. */ | |
4189 | #include <ac_nonexistent.h> | |
4190 | _ACEOF | |
4191 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4192 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4193 | ac_status=$? | |
4194 | grep -v '^ *+' conftest.er1 >conftest.err | |
4195 | rm -f conftest.er1 | |
4196 | cat conftest.err >&5 | |
4197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4198 | (exit $ac_status); } >/dev/null; then | |
4199 | if test -s conftest.err; then | |
4200 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4201 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4202 | else | |
4203 | ac_cpp_err= | |
4204 | fi | |
4205 | else | |
4206 | ac_cpp_err=yes | |
4207 | fi | |
4208 | if test -z "$ac_cpp_err"; then | |
4209 | # Broken: success on invalid input. | |
4210 | continue | |
4211 | else | |
4212 | echo "$as_me: failed program was:" >&5 | |
4213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4214 | |
7357c5b6 AM |
4215 | # Passes both tests. |
4216 | ac_preproc_ok=: | |
4217 | break | |
4218 | fi | |
4219 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4220 | |
7357c5b6 AM |
4221 | done |
4222 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4223 | rm -f conftest.err conftest.$ac_ext | |
4224 | if $ac_preproc_ok; then | |
4225 | : | |
4226 | else | |
4227 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
4228 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4229 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
4230 | See \`config.log' for more details." >&5 | |
4231 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4232 | See \`config.log' for more details." >&2;} | |
4233 | { (exit 1); exit 1; }; }; } | |
4234 | fi | |
d7040cdb | 4235 | |
7357c5b6 AM |
4236 | ac_ext=c |
4237 | ac_cpp='$CPP $CPPFLAGS' | |
4238 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4239 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4240 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb SE |
4241 | |
4242 | ||
7357c5b6 AM |
4243 | echo "$as_me:$LINENO: checking for egrep" >&5 |
4244 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
4245 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4247 | else | |
4248 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
4249 | then ac_cv_prog_egrep='grep -E' | |
4250 | else ac_cv_prog_egrep='egrep' | |
4251 | fi | |
4252 | fi | |
4253 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
4254 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
4255 | EGREP=$ac_cv_prog_egrep | |
d7040cdb | 4256 | |
d7040cdb | 4257 | |
7357c5b6 AM |
4258 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4259 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4260 | if test "${ac_cv_header_stdc+set}" = set; then | |
4261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4262 | else | |
4263 | cat >conftest.$ac_ext <<_ACEOF | |
4264 | /* confdefs.h. */ | |
4265 | _ACEOF | |
4266 | cat confdefs.h >>conftest.$ac_ext | |
4267 | cat >>conftest.$ac_ext <<_ACEOF | |
4268 | /* end confdefs.h. */ | |
4269 | #include <stdlib.h> | |
4270 | #include <stdarg.h> | |
4271 | #include <string.h> | |
4272 | #include <float.h> | |
d7040cdb | 4273 | |
7357c5b6 AM |
4274 | int |
4275 | main () | |
4276 | { | |
d7040cdb | 4277 | |
7357c5b6 AM |
4278 | ; |
4279 | return 0; | |
4280 | } | |
4281 | _ACEOF | |
4282 | rm -f conftest.$ac_objext | |
4283 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4284 | (eval $ac_compile) 2>conftest.er1 | |
4285 | ac_status=$? | |
4286 | grep -v '^ *+' conftest.er1 >conftest.err | |
4287 | rm -f conftest.er1 | |
4288 | cat conftest.err >&5 | |
4289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4290 | (exit $ac_status); } && | |
4291 | { ac_try='test -z "$ac_c_werror_flag" | |
4292 | || test ! -s conftest.err' | |
4293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4294 | (eval $ac_try) 2>&5 | |
4295 | ac_status=$? | |
4296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4297 | (exit $ac_status); }; } && | |
4298 | { ac_try='test -s conftest.$ac_objext' | |
4299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4300 | (eval $ac_try) 2>&5 | |
4301 | ac_status=$? | |
4302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4303 | (exit $ac_status); }; }; then | |
4304 | ac_cv_header_stdc=yes | |
4305 | else | |
4306 | echo "$as_me: failed program was:" >&5 | |
4307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4308 | |
7357c5b6 AM |
4309 | ac_cv_header_stdc=no |
4310 | fi | |
4311 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
d7040cdb | 4312 | |
7357c5b6 AM |
4313 | if test $ac_cv_header_stdc = yes; then |
4314 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4315 | cat >conftest.$ac_ext <<_ACEOF | |
4316 | /* confdefs.h. */ | |
4317 | _ACEOF | |
4318 | cat confdefs.h >>conftest.$ac_ext | |
4319 | cat >>conftest.$ac_ext <<_ACEOF | |
4320 | /* end confdefs.h. */ | |
4321 | #include <string.h> | |
d7040cdb | 4322 | |
7357c5b6 AM |
4323 | _ACEOF |
4324 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4325 | $EGREP "memchr" >/dev/null 2>&1; then | |
4326 | : | |
d45dc31f | 4327 | else |
7357c5b6 AM |
4328 | ac_cv_header_stdc=no |
4329 | fi | |
4330 | rm -f conftest* | |
d7040cdb | 4331 | |
7357c5b6 | 4332 | fi |
d7040cdb | 4333 | |
7357c5b6 AM |
4334 | if test $ac_cv_header_stdc = yes; then |
4335 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4336 | cat >conftest.$ac_ext <<_ACEOF | |
4337 | /* confdefs.h. */ | |
4338 | _ACEOF | |
4339 | cat confdefs.h >>conftest.$ac_ext | |
4340 | cat >>conftest.$ac_ext <<_ACEOF | |
4341 | /* end confdefs.h. */ | |
4342 | #include <stdlib.h> | |
d7040cdb | 4343 | |
7357c5b6 AM |
4344 | _ACEOF |
4345 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4346 | $EGREP "free" >/dev/null 2>&1; then | |
4347 | : | |
4348 | else | |
4349 | ac_cv_header_stdc=no | |
4350 | fi | |
4351 | rm -f conftest* | |
d7040cdb | 4352 | |
7357c5b6 | 4353 | fi |
d7040cdb | 4354 | |
7357c5b6 AM |
4355 | if test $ac_cv_header_stdc = yes; then |
4356 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4357 | if test "$cross_compiling" = yes; then | |
4358 | : | |
4359 | else | |
4360 | cat >conftest.$ac_ext <<_ACEOF | |
4361 | /* confdefs.h. */ | |
4362 | _ACEOF | |
4363 | cat confdefs.h >>conftest.$ac_ext | |
4364 | cat >>conftest.$ac_ext <<_ACEOF | |
4365 | /* end confdefs.h. */ | |
4366 | #include <ctype.h> | |
4367 | #if ((' ' & 0x0FF) == 0x020) | |
4368 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4369 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4370 | #else | |
4371 | # define ISLOWER(c) \ | |
4372 | (('a' <= (c) && (c) <= 'i') \ | |
4373 | || ('j' <= (c) && (c) <= 'r') \ | |
4374 | || ('s' <= (c) && (c) <= 'z')) | |
4375 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4376 | #endif | |
d7040cdb | 4377 | |
7357c5b6 AM |
4378 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4379 | int | |
4380 | main () | |
4381 | { | |
4382 | int i; | |
4383 | for (i = 0; i < 256; i++) | |
4384 | if (XOR (islower (i), ISLOWER (i)) | |
4385 | || toupper (i) != TOUPPER (i)) | |
4386 | exit(2); | |
4387 | exit (0); | |
4388 | } | |
4389 | _ACEOF | |
4390 | rm -f conftest$ac_exeext | |
4391 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4392 | (eval $ac_link) 2>&5 | |
4393 | ac_status=$? | |
4394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4395 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4397 | (eval $ac_try) 2>&5 | |
4398 | ac_status=$? | |
4399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4400 | (exit $ac_status); }; }; then | |
4401 | : | |
4402 | else | |
4403 | echo "$as_me: program exited with status $ac_status" >&5 | |
4404 | echo "$as_me: failed program was:" >&5 | |
4405 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4406 | |
7357c5b6 AM |
4407 | ( exit $ac_status ) |
4408 | ac_cv_header_stdc=no | |
4409 | fi | |
4410 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4411 | fi | |
4412 | fi | |
4413 | fi | |
4414 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4415 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4416 | if test $ac_cv_header_stdc = yes; then | |
d7040cdb | 4417 | |
7357c5b6 AM |
4418 | cat >>confdefs.h <<\_ACEOF |
4419 | #define STDC_HEADERS 1 | |
4420 | _ACEOF | |
d7040cdb | 4421 | |
7357c5b6 | 4422 | fi |
d7040cdb | 4423 | |
7357c5b6 | 4424 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
d7040cdb SE |
4425 | |
4426 | ||
4427 | ||
4428 | ||
4429 | ||
4430 | ||
4431 | ||
d7040cdb | 4432 | |
d7040cdb | 4433 | |
7357c5b6 AM |
4434 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4435 | inttypes.h stdint.h unistd.h | |
4436 | do | |
4437 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4438 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4439 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4440 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4442 | else | |
4443 | cat >conftest.$ac_ext <<_ACEOF | |
4444 | /* confdefs.h. */ | |
4445 | _ACEOF | |
4446 | cat confdefs.h >>conftest.$ac_ext | |
4447 | cat >>conftest.$ac_ext <<_ACEOF | |
4448 | /* end confdefs.h. */ | |
4449 | $ac_includes_default | |
d7040cdb | 4450 | |
7357c5b6 AM |
4451 | #include <$ac_header> |
4452 | _ACEOF | |
4453 | rm -f conftest.$ac_objext | |
4454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4455 | (eval $ac_compile) 2>conftest.er1 | |
4456 | ac_status=$? | |
4457 | grep -v '^ *+' conftest.er1 >conftest.err | |
4458 | rm -f conftest.er1 | |
4459 | cat conftest.err >&5 | |
4460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4461 | (exit $ac_status); } && | |
4462 | { ac_try='test -z "$ac_c_werror_flag" | |
4463 | || test ! -s conftest.err' | |
4464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4465 | (eval $ac_try) 2>&5 | |
4466 | ac_status=$? | |
4467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4468 | (exit $ac_status); }; } && | |
4469 | { ac_try='test -s conftest.$ac_objext' | |
4470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4471 | (eval $ac_try) 2>&5 | |
4472 | ac_status=$? | |
4473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4474 | (exit $ac_status); }; }; then | |
4475 | eval "$as_ac_Header=yes" | |
4476 | else | |
4477 | echo "$as_me: failed program was:" >&5 | |
4478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4479 | |
7357c5b6 AM |
4480 | eval "$as_ac_Header=no" |
4481 | fi | |
4482 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4483 | fi | |
4484 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4485 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4486 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4487 | cat >>confdefs.h <<_ACEOF | |
4488 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4489 | _ACEOF | |
d7040cdb | 4490 | |
7357c5b6 | 4491 | fi |
d7040cdb | 4492 | |
7357c5b6 | 4493 | done |
d7040cdb SE |
4494 | |
4495 | ||
4496 | ||
7357c5b6 AM |
4497 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
4498 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
4499 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 | |
4500 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
4501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4502 | fi | |
4503 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 | |
4504 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 | |
4505 | else | |
4506 | # Is the header compilable? | |
4507 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 | |
4508 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 | |
4509 | cat >conftest.$ac_ext <<_ACEOF | |
4510 | /* confdefs.h. */ | |
4511 | _ACEOF | |
4512 | cat confdefs.h >>conftest.$ac_ext | |
4513 | cat >>conftest.$ac_ext <<_ACEOF | |
4514 | /* end confdefs.h. */ | |
4515 | $ac_includes_default | |
4516 | #include <minix/config.h> | |
4517 | _ACEOF | |
4518 | rm -f conftest.$ac_objext | |
4519 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4520 | (eval $ac_compile) 2>conftest.er1 | |
4521 | ac_status=$? | |
4522 | grep -v '^ *+' conftest.er1 >conftest.err | |
4523 | rm -f conftest.er1 | |
4524 | cat conftest.err >&5 | |
4525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4526 | (exit $ac_status); } && | |
4527 | { ac_try='test -z "$ac_c_werror_flag" | |
4528 | || test ! -s conftest.err' | |
4529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4530 | (eval $ac_try) 2>&5 | |
4531 | ac_status=$? | |
4532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4533 | (exit $ac_status); }; } && | |
4534 | { ac_try='test -s conftest.$ac_objext' | |
4535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4536 | (eval $ac_try) 2>&5 | |
4537 | ac_status=$? | |
4538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4539 | (exit $ac_status); }; }; then | |
4540 | ac_header_compiler=yes | |
4541 | else | |
4542 | echo "$as_me: failed program was:" >&5 | |
4543 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4544 | |
7357c5b6 AM |
4545 | ac_header_compiler=no |
4546 | fi | |
4547 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4548 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4549 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
d7040cdb | 4550 | |
7357c5b6 AM |
4551 | # Is the header present? |
4552 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 | |
4553 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 | |
4554 | cat >conftest.$ac_ext <<_ACEOF | |
4555 | /* confdefs.h. */ | |
4556 | _ACEOF | |
4557 | cat confdefs.h >>conftest.$ac_ext | |
4558 | cat >>conftest.$ac_ext <<_ACEOF | |
4559 | /* end confdefs.h. */ | |
4560 | #include <minix/config.h> | |
4561 | _ACEOF | |
4562 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4563 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4564 | ac_status=$? | |
4565 | grep -v '^ *+' conftest.er1 >conftest.err | |
4566 | rm -f conftest.er1 | |
4567 | cat conftest.err >&5 | |
4568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4569 | (exit $ac_status); } >/dev/null; then | |
4570 | if test -s conftest.err; then | |
4571 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4572 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4573 | else | |
4574 | ac_cpp_err= | |
4575 | fi | |
4576 | else | |
4577 | ac_cpp_err=yes | |
4578 | fi | |
4579 | if test -z "$ac_cpp_err"; then | |
4580 | ac_header_preproc=yes | |
4581 | else | |
4582 | echo "$as_me: failed program was:" >&5 | |
4583 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4584 | |
7357c5b6 AM |
4585 | ac_header_preproc=no |
4586 | fi | |
4587 | rm -f conftest.err conftest.$ac_ext | |
4588 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4589 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
d7040cdb | 4590 | |
7357c5b6 AM |
4591 | # So? What about this header? |
4592 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4593 | yes:no: ) | |
4594 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4595 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4596 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 | |
4597 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} | |
4598 | ac_header_preproc=yes | |
4599 | ;; | |
4600 | no:yes:* ) | |
4601 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 | |
4602 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} | |
4603 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 | |
4604 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} | |
4605 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 | |
4606 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} | |
4607 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4608 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4609 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 | |
4610 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} | |
4611 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 | |
4612 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} | |
4613 | ( | |
4614 | cat <<\_ASBOX | |
4615 | ## ------------------------------------------ ## | |
4616 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4617 | ## ------------------------------------------ ## | |
4618 | _ASBOX | |
4619 | ) | | |
4620 | sed "s/^/$as_me: WARNING: /" >&2 | |
4621 | ;; | |
4622 | esac | |
4623 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
4624 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 | |
4625 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
d7040cdb SE |
4626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4627 | else | |
7357c5b6 | 4628 | ac_cv_header_minix_config_h=$ac_header_preproc |
d7040cdb | 4629 | fi |
7357c5b6 AM |
4630 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
4631 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 | |
d7040cdb | 4632 | |
7357c5b6 AM |
4633 | fi |
4634 | if test $ac_cv_header_minix_config_h = yes; then | |
4635 | MINIX=yes | |
4636 | else | |
4637 | MINIX= | |
4638 | fi | |
d7040cdb SE |
4639 | |
4640 | ||
7357c5b6 | 4641 | if test "$MINIX" = yes; then |
d7040cdb | 4642 | |
7357c5b6 AM |
4643 | cat >>confdefs.h <<\_ACEOF |
4644 | #define _POSIX_SOURCE 1 | |
4645 | _ACEOF | |
d7040cdb SE |
4646 | |
4647 | ||
7357c5b6 AM |
4648 | cat >>confdefs.h <<\_ACEOF |
4649 | #define _POSIX_1_SOURCE 2 | |
4650 | _ACEOF | |
d7040cdb SE |
4651 | |
4652 | ||
7357c5b6 AM |
4653 | cat >>confdefs.h <<\_ACEOF |
4654 | #define _MINIX 1 | |
4655 | _ACEOF | |
d7040cdb | 4656 | |
7357c5b6 | 4657 | fi |
d7040cdb SE |
4658 | |
4659 | ||
4660 | ||
7357c5b6 AM |
4661 | echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 |
4662 | echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6 | |
4663 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then | |
d7040cdb SE |
4664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4665 | else | |
7357c5b6 AM |
4666 | cat >conftest.$ac_ext <<_ACEOF |
4667 | /* confdefs.h. */ | |
4668 | _ACEOF | |
4669 | cat confdefs.h >>conftest.$ac_ext | |
4670 | cat >>conftest.$ac_ext <<_ACEOF | |
4671 | /* end confdefs.h. */ | |
d7040cdb | 4672 | |
7357c5b6 AM |
4673 | # define __EXTENSIONS__ 1 |
4674 | $ac_includes_default | |
4675 | int | |
4676 | main () | |
4677 | { | |
d7040cdb | 4678 | |
7357c5b6 AM |
4679 | ; |
4680 | return 0; | |
4681 | } | |
4682 | _ACEOF | |
4683 | rm -f conftest.$ac_objext | |
4684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4685 | (eval $ac_compile) 2>conftest.er1 | |
4686 | ac_status=$? | |
4687 | grep -v '^ *+' conftest.er1 >conftest.err | |
4688 | rm -f conftest.er1 | |
4689 | cat conftest.err >&5 | |
4690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4691 | (exit $ac_status); } && | |
4692 | { ac_try='test -z "$ac_c_werror_flag" | |
4693 | || test ! -s conftest.err' | |
4694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4695 | (eval $ac_try) 2>&5 | |
4696 | ac_status=$? | |
4697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4698 | (exit $ac_status); }; } && | |
4699 | { ac_try='test -s conftest.$ac_objext' | |
4700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4701 | (eval $ac_try) 2>&5 | |
4702 | ac_status=$? | |
4703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4704 | (exit $ac_status); }; }; then | |
4705 | ac_cv_safe_to_define___extensions__=yes | |
d7040cdb | 4706 | else |
7357c5b6 AM |
4707 | echo "$as_me: failed program was:" >&5 |
4708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4709 | ||
4710 | ac_cv_safe_to_define___extensions__=no | |
d7040cdb | 4711 | fi |
7357c5b6 AM |
4712 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4713 | fi | |
4714 | echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 | |
4715 | echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6 | |
4716 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4717 | cat >>confdefs.h <<\_ACEOF | |
4718 | #define __EXTENSIONS__ 1 | |
4719 | _ACEOF | |
d7040cdb | 4720 | |
7357c5b6 AM |
4721 | cat >>confdefs.h <<\_ACEOF |
4722 | #define _ALL_SOURCE 1 | |
4723 | _ACEOF | |
d7040cdb | 4724 | |
7357c5b6 AM |
4725 | cat >>confdefs.h <<\_ACEOF |
4726 | #define _GNU_SOURCE 1 | |
4727 | _ACEOF | |
d7040cdb | 4728 | |
7357c5b6 AM |
4729 | cat >>confdefs.h <<\_ACEOF |
4730 | #define _POSIX_PTHREAD_SEMANTICS 1 | |
4731 | _ACEOF | |
d7040cdb | 4732 | |
7357c5b6 AM |
4733 | cat >>confdefs.h <<\_ACEOF |
4734 | #define _TANDEM_SOURCE 1 | |
4735 | _ACEOF | |
d7040cdb SE |
4736 | |
4737 | ||
d053aef8 JK |
4738 | # Check whether --enable-largefile or --disable-largefile was given. |
4739 | if test "${enable_largefile+set}" = set; then | |
4740 | enableval="$enable_largefile" | |
4741 | ||
4742 | fi; | |
4743 | if test "$enable_largefile" != no; then | |
4744 | ||
4745 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | |
4746 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 | |
4747 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
4748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4749 | else | |
4750 | ac_cv_sys_largefile_CC=no | |
4751 | if test "$GCC" != yes; then | |
4752 | ac_save_CC=$CC | |
4753 | while :; do | |
4754 | # IRIX 6.2 and later do not support large files by default, | |
4755 | # so use the C compiler's -n32 option if that helps. | |
4756 | cat >conftest.$ac_ext <<_ACEOF | |
4757 | /* confdefs.h. */ | |
4758 | _ACEOF | |
4759 | cat confdefs.h >>conftest.$ac_ext | |
4760 | cat >>conftest.$ac_ext <<_ACEOF | |
4761 | /* end confdefs.h. */ | |
4762 | #include <sys/types.h> | |
4763 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4764 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4765 | since some C++ compilers masquerading as C compilers | |
4766 | incorrectly reject 9223372036854775807. */ | |
4767 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4768 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4769 | && LARGE_OFF_T % 2147483647 == 1) | |
4770 | ? 1 : -1]; | |
4771 | int | |
4772 | main () | |
4773 | { | |
4774 | ||
4775 | ; | |
4776 | return 0; | |
4777 | } | |
4778 | _ACEOF | |
4779 | rm -f conftest.$ac_objext | |
4780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4781 | (eval $ac_compile) 2>conftest.er1 | |
4782 | ac_status=$? | |
4783 | grep -v '^ *+' conftest.er1 >conftest.err | |
4784 | rm -f conftest.er1 | |
4785 | cat conftest.err >&5 | |
4786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4787 | (exit $ac_status); } && | |
4788 | { ac_try='test -z "$ac_c_werror_flag" | |
4789 | || test ! -s conftest.err' | |
4790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4791 | (eval $ac_try) 2>&5 | |
4792 | ac_status=$? | |
4793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4794 | (exit $ac_status); }; } && | |
4795 | { ac_try='test -s conftest.$ac_objext' | |
4796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4797 | (eval $ac_try) 2>&5 | |
4798 | ac_status=$? | |
4799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4800 | (exit $ac_status); }; }; then | |
4801 | break | |
4802 | else | |
4803 | echo "$as_me: failed program was:" >&5 | |
4804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4805 | ||
4806 | fi | |
4807 | rm -f conftest.err conftest.$ac_objext | |
4808 | CC="$CC -n32" | |
4809 | rm -f conftest.$ac_objext | |
4810 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4811 | (eval $ac_compile) 2>conftest.er1 | |
4812 | ac_status=$? | |
4813 | grep -v '^ *+' conftest.er1 >conftest.err | |
4814 | rm -f conftest.er1 | |
4815 | cat conftest.err >&5 | |
4816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4817 | (exit $ac_status); } && | |
4818 | { ac_try='test -z "$ac_c_werror_flag" | |
4819 | || test ! -s conftest.err' | |
4820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4821 | (eval $ac_try) 2>&5 | |
4822 | ac_status=$? | |
4823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4824 | (exit $ac_status); }; } && | |
4825 | { ac_try='test -s conftest.$ac_objext' | |
4826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4827 | (eval $ac_try) 2>&5 | |
4828 | ac_status=$? | |
4829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4830 | (exit $ac_status); }; }; then | |
4831 | ac_cv_sys_largefile_CC=' -n32'; break | |
4832 | else | |
4833 | echo "$as_me: failed program was:" >&5 | |
4834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4835 | ||
4836 | fi | |
4837 | rm -f conftest.err conftest.$ac_objext | |
4838 | break | |
4839 | done | |
4840 | CC=$ac_save_CC | |
4841 | rm -f conftest.$ac_ext | |
4842 | fi | |
4843 | fi | |
4844 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | |
4845 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 | |
4846 | if test "$ac_cv_sys_largefile_CC" != no; then | |
4847 | CC=$CC$ac_cv_sys_largefile_CC | |
4848 | fi | |
4849 | ||
4850 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
4851 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
4852 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
4853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4854 | else | |
4855 | while :; do | |
4856 | ac_cv_sys_file_offset_bits=no | |
4857 | cat >conftest.$ac_ext <<_ACEOF | |
4858 | /* confdefs.h. */ | |
4859 | _ACEOF | |
4860 | cat confdefs.h >>conftest.$ac_ext | |
4861 | cat >>conftest.$ac_ext <<_ACEOF | |
4862 | /* end confdefs.h. */ | |
4863 | #include <sys/types.h> | |
4864 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4865 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4866 | since some C++ compilers masquerading as C compilers | |
4867 | incorrectly reject 9223372036854775807. */ | |
4868 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4869 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4870 | && LARGE_OFF_T % 2147483647 == 1) | |
4871 | ? 1 : -1]; | |
4872 | int | |
4873 | main () | |
4874 | { | |
4875 | ||
4876 | ; | |
4877 | return 0; | |
4878 | } | |
4879 | _ACEOF | |
4880 | rm -f conftest.$ac_objext | |
4881 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4882 | (eval $ac_compile) 2>conftest.er1 | |
4883 | ac_status=$? | |
4884 | grep -v '^ *+' conftest.er1 >conftest.err | |
4885 | rm -f conftest.er1 | |
4886 | cat conftest.err >&5 | |
4887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4888 | (exit $ac_status); } && | |
4889 | { ac_try='test -z "$ac_c_werror_flag" | |
4890 | || test ! -s conftest.err' | |
4891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4892 | (eval $ac_try) 2>&5 | |
4893 | ac_status=$? | |
4894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4895 | (exit $ac_status); }; } && | |
4896 | { ac_try='test -s conftest.$ac_objext' | |
4897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4898 | (eval $ac_try) 2>&5 | |
4899 | ac_status=$? | |
4900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4901 | (exit $ac_status); }; }; then | |
4902 | break | |
4903 | else | |
4904 | echo "$as_me: failed program was:" >&5 | |
4905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4906 | ||
4907 | fi | |
4908 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4909 | cat >conftest.$ac_ext <<_ACEOF | |
4910 | /* confdefs.h. */ | |
4911 | _ACEOF | |
4912 | cat confdefs.h >>conftest.$ac_ext | |
4913 | cat >>conftest.$ac_ext <<_ACEOF | |
4914 | /* end confdefs.h. */ | |
4915 | #define _FILE_OFFSET_BITS 64 | |
4916 | #include <sys/types.h> | |
4917 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4918 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4919 | since some C++ compilers masquerading as C compilers | |
4920 | incorrectly reject 9223372036854775807. */ | |
4921 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4922 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4923 | && LARGE_OFF_T % 2147483647 == 1) | |
4924 | ? 1 : -1]; | |
4925 | int | |
4926 | main () | |
4927 | { | |
4928 | ||
4929 | ; | |
4930 | return 0; | |
4931 | } | |
4932 | _ACEOF | |
4933 | rm -f conftest.$ac_objext | |
4934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4935 | (eval $ac_compile) 2>conftest.er1 | |
4936 | ac_status=$? | |
4937 | grep -v '^ *+' conftest.er1 >conftest.err | |
4938 | rm -f conftest.er1 | |
4939 | cat conftest.err >&5 | |
4940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4941 | (exit $ac_status); } && | |
4942 | { ac_try='test -z "$ac_c_werror_flag" | |
4943 | || test ! -s conftest.err' | |
4944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4945 | (eval $ac_try) 2>&5 | |
4946 | ac_status=$? | |
4947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4948 | (exit $ac_status); }; } && | |
4949 | { ac_try='test -s conftest.$ac_objext' | |
4950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4951 | (eval $ac_try) 2>&5 | |
4952 | ac_status=$? | |
4953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4954 | (exit $ac_status); }; }; then | |
4955 | ac_cv_sys_file_offset_bits=64; break | |
4956 | else | |
4957 | echo "$as_me: failed program was:" >&5 | |
4958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4959 | ||
4960 | fi | |
4961 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4962 | break | |
4963 | done | |
4964 | fi | |
4965 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
4966 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
4967 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
4968 | ||
4969 | cat >>confdefs.h <<_ACEOF | |
4970 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
4971 | _ACEOF | |
4972 | ||
4973 | fi | |
4974 | rm -f conftest* | |
4975 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
4976 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
4977 | if test "${ac_cv_sys_large_files+set}" = set; then | |
4978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4979 | else | |
4980 | while :; do | |
4981 | ac_cv_sys_large_files=no | |
4982 | cat >conftest.$ac_ext <<_ACEOF | |
4983 | /* confdefs.h. */ | |
4984 | _ACEOF | |
4985 | cat confdefs.h >>conftest.$ac_ext | |
4986 | cat >>conftest.$ac_ext <<_ACEOF | |
4987 | /* end confdefs.h. */ | |
4988 | #include <sys/types.h> | |
4989 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4990 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4991 | since some C++ compilers masquerading as C compilers | |
4992 | incorrectly reject 9223372036854775807. */ | |
4993 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4994 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4995 | && LARGE_OFF_T % 2147483647 == 1) | |
4996 | ? 1 : -1]; | |
4997 | int | |
4998 | main () | |
4999 | { | |
5000 | ||
5001 | ; | |
5002 | return 0; | |
5003 | } | |
5004 | _ACEOF | |
5005 | rm -f conftest.$ac_objext | |
5006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5007 | (eval $ac_compile) 2>conftest.er1 | |
5008 | ac_status=$? | |
5009 | grep -v '^ *+' conftest.er1 >conftest.err | |
5010 | rm -f conftest.er1 | |
5011 | cat conftest.err >&5 | |
5012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5013 | (exit $ac_status); } && | |
5014 | { ac_try='test -z "$ac_c_werror_flag" | |
5015 | || test ! -s conftest.err' | |
5016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5017 | (eval $ac_try) 2>&5 | |
5018 | ac_status=$? | |
5019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5020 | (exit $ac_status); }; } && | |
5021 | { ac_try='test -s conftest.$ac_objext' | |
5022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5023 | (eval $ac_try) 2>&5 | |
5024 | ac_status=$? | |
5025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5026 | (exit $ac_status); }; }; then | |
5027 | break | |
5028 | else | |
5029 | echo "$as_me: failed program was:" >&5 | |
5030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5031 | ||
5032 | fi | |
5033 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5034 | cat >conftest.$ac_ext <<_ACEOF | |
5035 | /* confdefs.h. */ | |
5036 | _ACEOF | |
5037 | cat confdefs.h >>conftest.$ac_ext | |
5038 | cat >>conftest.$ac_ext <<_ACEOF | |
5039 | /* end confdefs.h. */ | |
5040 | #define _LARGE_FILES 1 | |
5041 | #include <sys/types.h> | |
5042 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5043 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5044 | since some C++ compilers masquerading as C compilers | |
5045 | incorrectly reject 9223372036854775807. */ | |
5046 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5047 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5048 | && LARGE_OFF_T % 2147483647 == 1) | |
5049 | ? 1 : -1]; | |
5050 | int | |
5051 | main () | |
5052 | { | |
5053 | ||
5054 | ; | |
5055 | return 0; | |
5056 | } | |
5057 | _ACEOF | |
5058 | rm -f conftest.$ac_objext | |
5059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5060 | (eval $ac_compile) 2>conftest.er1 | |
5061 | ac_status=$? | |
5062 | grep -v '^ *+' conftest.er1 >conftest.err | |
5063 | rm -f conftest.er1 | |
5064 | cat conftest.err >&5 | |
5065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5066 | (exit $ac_status); } && | |
5067 | { ac_try='test -z "$ac_c_werror_flag" | |
5068 | || test ! -s conftest.err' | |
5069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5070 | (eval $ac_try) 2>&5 | |
5071 | ac_status=$? | |
5072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5073 | (exit $ac_status); }; } && | |
5074 | { ac_try='test -s conftest.$ac_objext' | |
5075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5076 | (eval $ac_try) 2>&5 | |
5077 | ac_status=$? | |
5078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5079 | (exit $ac_status); }; }; then | |
5080 | ac_cv_sys_large_files=1; break | |
5081 | else | |
5082 | echo "$as_me: failed program was:" >&5 | |
5083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5084 | ||
5085 | fi | |
5086 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5087 | break | |
5088 | done | |
5089 | fi | |
5090 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
5091 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
5092 | if test "$ac_cv_sys_large_files" != no; then | |
5093 | ||
5094 | cat >>confdefs.h <<_ACEOF | |
5095 | #define _LARGE_FILES $ac_cv_sys_large_files | |
5096 | _ACEOF | |
5097 | ||
5098 | fi | |
5099 | rm -f conftest* | |
5100 | fi | |
5101 | ||
718a6fd8 SE |
5102 | case `pwd` in |
5103 | *\ * | *\ *) | |
5104 | { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5105 | echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5106 | esac | |
d7040cdb SE |
5107 | |
5108 | ||
7357c5b6 | 5109 | |
718a6fd8 SE |
5110 | macro_version='2.2.6' |
5111 | macro_revision='1.3012' | |
7357c5b6 AM |
5112 | |
5113 | ||
5114 | ||
5115 | ||
5116 | ||
5117 | ||
7357c5b6 AM |
5118 | |
5119 | ||
5120 | ||
5121 | ||
5122 | ||
5123 | ||
5124 | ||
718a6fd8 | 5125 | ltmain="$ac_aux_dir/ltmain.sh" |
7357c5b6 AM |
5126 | |
5127 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
5128 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | |
5129 | if test "${lt_cv_path_SED+set}" = set; then | |
5130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5131 | else | |
5132 | # Loop through the user's path and test for sed and gsed. | |
5133 | # Then use that list of sed's as ones to test for truncation. | |
5134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5135 | for as_dir in $PATH | |
5136 | do | |
5137 | IFS=$as_save_IFS | |
5138 | test -z "$as_dir" && as_dir=. | |
5139 | for lt_ac_prog in sed gsed; do | |
5140 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5141 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | |
5142 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | |
5143 | fi | |
5144 | done | |
5145 | done | |
5146 | done | |
5147 | IFS=$as_save_IFS | |
5148 | lt_ac_max=0 | |
5149 | lt_ac_count=0 | |
5150 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
5151 | # along with /bin/sed that truncates output. | |
5152 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
5153 | test ! -f $lt_ac_sed && continue | |
5154 | cat /dev/null > conftest.in | |
5155 | lt_ac_count=0 | |
5156 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
5157 | # Check for GNU sed and select it if it is found. | |
5158 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
5159 | lt_cv_path_SED=$lt_ac_sed | |
5160 | break | |
5161 | fi | |
5162 | while true; do | |
5163 | cat conftest.in conftest.in >conftest.tmp | |
5164 | mv conftest.tmp conftest.in | |
5165 | cp conftest.in conftest.nl | |
5166 | echo >>conftest.nl | |
5167 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
5168 | cmp -s conftest.out conftest.nl || break | |
5169 | # 10000 chars as input seems more than enough | |
5170 | test $lt_ac_count -gt 10 && break | |
5171 | lt_ac_count=`expr $lt_ac_count + 1` | |
5172 | if test $lt_ac_count -gt $lt_ac_max; then | |
5173 | lt_ac_max=$lt_ac_count | |
5174 | lt_cv_path_SED=$lt_ac_sed | |
5175 | fi | |
5176 | done | |
5177 | done | |
5178 | ||
5179 | fi | |
5180 | ||
5181 | SED=$lt_cv_path_SED | |
5182 | ||
5183 | echo "$as_me:$LINENO: result: $SED" >&5 | |
5184 | echo "${ECHO_T}$SED" >&6 | |
5185 | ||
5186 | test -z "$SED" && SED=sed | |
5187 | Xsed="$SED -e 1s/^X//" | |
5188 | ||
5189 | ||
5190 | ||
5191 | ||
5192 | ||
5193 | ||
5194 | ||
5195 | ||
5196 | ||
5197 | ||
5198 | ||
5199 | echo "$as_me:$LINENO: checking for fgrep" >&5 | |
5200 | echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 | |
5201 | if test "${ac_cv_prog_fgrep+set}" = set; then | |
5202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5203 | else | |
5204 | if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1 | |
5205 | then ac_cv_prog_fgrep='grep -F' | |
5206 | else ac_cv_prog_fgrep='fgrep' | |
5207 | fi | |
5208 | fi | |
5209 | echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5 | |
5210 | echo "${ECHO_T}$ac_cv_prog_fgrep" >&6 | |
5211 | FGREP=$ac_cv_prog_fgrep | |
5212 | ||
5213 | ||
5214 | test -z "$GREP" && GREP=grep | |
5215 | ||
5216 | ||
5217 | ||
5218 | ||
5219 | ||
5220 | ||
5221 | ||
5222 | ||
5223 | ||
5224 | ||
5225 | ||
5226 | ||
5227 | ||
5228 | ||
5229 | ||
5230 | ||
5231 | ||
5232 | ||
5233 | ||
5234 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
5235 | if test "${with_gnu_ld+set}" = set; then | |
5236 | withval="$with_gnu_ld" | |
5237 | test "$withval" = no || with_gnu_ld=yes | |
5238 | else | |
5239 | with_gnu_ld=no | |
5240 | fi; | |
5241 | ac_prog=ld | |
5242 | if test "$GCC" = yes; then | |
5243 | # Check if gcc -print-prog-name=ld gives a path. | |
5244 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
5245 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
5246 | case $host in | |
5247 | *-*-mingw*) | |
d45dc31f SE |
5248 | # gcc leaves a trailing carriage return which upsets mingw |
5249 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5250 | *) | |
5251 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5252 | esac | |
5253 | case $ac_prog in | |
5254 | # Accept absolute paths. | |
d7040cdb | 5255 | [\\/]* | ?:[\\/]*) |
d45dc31f | 5256 | re_direlt='/[^/][^/]*/\.\./' |
d7040cdb SE |
5257 | # Canonicalize the pathname of ld |
5258 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5259 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5260 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
d45dc31f SE |
5261 | done |
5262 | test -z "$LD" && LD="$ac_prog" | |
5263 | ;; | |
5264 | "") | |
5265 | # If it fails, then pretend we aren't using GCC. | |
5266 | ac_prog=ld | |
5267 | ;; | |
5268 | *) | |
5269 | # If it is relative, then search for the first ld in PATH. | |
5270 | with_gnu_ld=unknown | |
5271 | ;; | |
5272 | esac | |
5273 | elif test "$with_gnu_ld" = yes; then | |
5274 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
5275 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
5276 | else | |
5277 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
5278 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
5279 | fi | |
5280 | if test "${lt_cv_path_LD+set}" = set; then | |
5281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5282 | else | |
5283 | if test -z "$LD"; then | |
d7040cdb | 5284 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
d45dc31f | 5285 | for ac_dir in $PATH; do |
d7040cdb | 5286 | IFS="$lt_save_ifs" |
d45dc31f SE |
5287 | test -z "$ac_dir" && ac_dir=. |
5288 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5289 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5290 | # Check to see if the program is GNU ld. I'd rather use --version, | |
d7040cdb | 5291 | # but apparently some variants of GNU ld only accept -v. |
d45dc31f | 5292 | # Break only if it was the GNU/non-GNU ld that we prefer. |
d7040cdb SE |
5293 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
5294 | *GNU* | *'with BFD'*) | |
d45dc31f | 5295 | test "$with_gnu_ld" != no && break |
d7040cdb SE |
5296 | ;; |
5297 | *) | |
d45dc31f | 5298 | test "$with_gnu_ld" != yes && break |
d7040cdb SE |
5299 | ;; |
5300 | esac | |
d45dc31f SE |
5301 | fi |
5302 | done | |
d7040cdb | 5303 | IFS="$lt_save_ifs" |
d45dc31f SE |
5304 | else |
5305 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5306 | fi | |
5307 | fi | |
1ad12f97 | 5308 | |
d45dc31f SE |
5309 | LD="$lt_cv_path_LD" |
5310 | if test -n "$LD"; then | |
5311 | echo "$as_me:$LINENO: result: $LD" >&5 | |
5312 | echo "${ECHO_T}$LD" >&6 | |
5313 | else | |
5314 | echo "$as_me:$LINENO: result: no" >&5 | |
5315 | echo "${ECHO_T}no" >&6 | |
5316 | fi | |
5317 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
5318 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
5319 | { (exit 1); exit 1; }; } | |
5320 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
5321 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
5322 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
5323 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5324 | else | |
d7040cdb SE |
5325 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
5326 | case `$LD -v 2>&1 </dev/null` in | |
5327 | *GNU* | *'with BFD'*) | |
d45dc31f | 5328 | lt_cv_prog_gnu_ld=yes |
d7040cdb SE |
5329 | ;; |
5330 | *) | |
d45dc31f | 5331 | lt_cv_prog_gnu_ld=no |
d7040cdb SE |
5332 | ;; |
5333 | esac | |
d45dc31f SE |
5334 | fi |
5335 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
5336 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
5337 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
569acd2c | 5338 | |
d45dc31f | 5339 | |
42ecbf5e | 5340 | |
d7040cdb SE |
5341 | |
5342 | ||
5343 | ||
5344 | ||
5345 | ||
5346 | ||
d7040cdb SE |
5347 | echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 |
5348 | echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6 | |
d45dc31f SE |
5349 | if test "${lt_cv_path_NM+set}" = set; then |
5350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5351 | else | |
5352 | if test -n "$NM"; then | |
5353 | # Let the user override the test. | |
5354 | lt_cv_path_NM="$NM" | |
5355 | else | |
d7040cdb SE |
5356 | lt_nm_to_check="${ac_tool_prefix}nm" |
5357 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5358 | lt_nm_to_check="$lt_nm_to_check nm" | |
5359 | fi | |
5360 | for lt_tmp_nm in $lt_nm_to_check; do | |
5361 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5362 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5363 | IFS="$lt_save_ifs" | |
5364 | test -z "$ac_dir" && ac_dir=. | |
5365 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5366 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5367 | # Check to see if the nm accepts a BSD-compat flag. | |
5368 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5369 | # nm: unknown option "B" ignored | |
5370 | # Tru64's nm complains that /dev/null is an invalid object file | |
5371 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5372 | */dev/null* | *'Invalid file or object type'*) | |
5373 | lt_cv_path_NM="$tmp_nm -B" | |
5374 | break | |
5375 | ;; | |
5376 | *) | |
5377 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5378 | */dev/null*) | |
5379 | lt_cv_path_NM="$tmp_nm -p" | |
5380 | break | |
5381 | ;; | |
5382 | *) | |
5383 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5384 | continue # so that we can try to find one that supports BSD flags | |
5385 | ;; | |
5386 | esac | |
5387 | ;; | |
5388 | esac | |
d45dc31f | 5389 | fi |
d7040cdb SE |
5390 | done |
5391 | IFS="$lt_save_ifs" | |
d45dc31f | 5392 | done |
d7040cdb | 5393 | : ${lt_cv_path_NM=no} |
d45dc31f | 5394 | fi |
a541e3ce | 5395 | fi |
d7040cdb SE |
5396 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
5397 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | |
5398 | if test "$lt_cv_path_NM" != "no"; then | |
5399 | NM="$lt_cv_path_NM" | |
d45dc31f | 5400 | else |
d7040cdb SE |
5401 | # Didn't find any BSD compatible name lister, look for dumpbin. |
5402 | if test -n "$ac_tool_prefix"; then | |
5403 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
5404 | do | |
5405 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5406 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5407 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5408 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5409 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then | |
d45dc31f SE |
5410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5411 | else | |
d7040cdb SE |
5412 | if test -n "$DUMPBIN"; then |
5413 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
5414 | else | |
5415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5416 | for as_dir in $PATH | |
5417 | do | |
5418 | IFS=$as_save_IFS | |
5419 | test -z "$as_dir" && as_dir=. | |
5420 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5421 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5422 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
5423 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5424 | break 2 | |
5425 | fi | |
5426 | done | |
5427 | done | |
398ee8f1 | 5428 | |
d7040cdb SE |
5429 | fi |
5430 | fi | |
5431 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
5432 | if test -n "$DUMPBIN"; then | |
5433 | echo "$as_me:$LINENO: result: $DUMPBIN" >&5 | |
5434 | echo "${ECHO_T}$DUMPBIN" >&6 | |
5435 | else | |
5436 | echo "$as_me:$LINENO: result: no" >&5 | |
5437 | echo "${ECHO_T}no" >&6 | |
5438 | fi | |
d15b04bd | 5439 | |
d7040cdb SE |
5440 | test -n "$DUMPBIN" && break |
5441 | done | |
5442 | fi | |
5443 | if test -z "$DUMPBIN"; then | |
5444 | ac_ct_DUMPBIN=$DUMPBIN | |
5445 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
5446 | do | |
5447 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5448 | set dummy $ac_prog; ac_word=$2 | |
5449 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5450 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5451 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then | |
5452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5453 | else | |
5454 | if test -n "$ac_ct_DUMPBIN"; then | |
5455 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5456 | else | |
5457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5458 | for as_dir in $PATH | |
5459 | do | |
5460 | IFS=$as_save_IFS | |
5461 | test -z "$as_dir" && as_dir=. | |
5462 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5463 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5464 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
5465 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5466 | break 2 | |
d45dc31f | 5467 | fi |
d7040cdb SE |
5468 | done |
5469 | done | |
d15b04bd | 5470 | |
d7040cdb SE |
5471 | fi |
5472 | fi | |
5473 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5474 | if test -n "$ac_ct_DUMPBIN"; then | |
5475 | echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 | |
5476 | echo "${ECHO_T}$ac_ct_DUMPBIN" >&6 | |
5477 | else | |
5478 | echo "$as_me:$LINENO: result: no" >&5 | |
5479 | echo "${ECHO_T}no" >&6 | |
5480 | fi | |
42ecbf5e | 5481 | |
d7040cdb SE |
5482 | test -n "$ac_ct_DUMPBIN" && break |
5483 | done | |
5484 | test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":" | |
d45dc31f | 5485 | |
d7040cdb SE |
5486 | DUMPBIN=$ac_ct_DUMPBIN |
5487 | fi | |
d45dc31f | 5488 | |
d45dc31f | 5489 | |
d7040cdb SE |
5490 | if test "$DUMPBIN" != ":"; then |
5491 | NM="$DUMPBIN" | |
42ecbf5e | 5492 | fi |
d7040cdb SE |
5493 | fi |
5494 | test -z "$NM" && NM=nm | |
d45dc31f | 5495 | |
42ecbf5e | 5496 | |
d15b04bd | 5497 | |
42ecbf5e | 5498 | |
d45dc31f | 5499 | |
42ecbf5e | 5500 | |
d7040cdb SE |
5501 | echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 |
5502 | echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6 | |
5503 | if test "${lt_cv_nm_interface+set}" = set; then | |
5504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5505 | else | |
5506 | lt_cv_nm_interface="BSD nm" | |
5507 | echo "int some_variable = 0;" > conftest.$ac_ext | |
29670fb9 | 5508 | (eval echo "\"\$as_me:5508: $ac_compile\"" >&5) |
d7040cdb SE |
5509 | (eval "$ac_compile" 2>conftest.err) |
5510 | cat conftest.err >&5 | |
29670fb9 | 5511 | (eval echo "\"\$as_me:5511: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
d7040cdb SE |
5512 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5513 | cat conftest.err >&5 | |
29670fb9 | 5514 | (eval echo "\"\$as_me:5514: output\"" >&5) |
d7040cdb SE |
5515 | cat conftest.out >&5 |
5516 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5517 | lt_cv_nm_interface="MS dumpbin" | |
5518 | fi | |
5519 | rm -f conftest* | |
42ecbf5e | 5520 | fi |
d7040cdb SE |
5521 | echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 |
5522 | echo "${ECHO_T}$lt_cv_nm_interface" >&6 | |
42ecbf5e | 5523 | |
d7040cdb SE |
5524 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
5525 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
5526 | LN_S=$as_ln_s | |
5527 | if test "$LN_S" = "ln -s"; then | |
5528 | echo "$as_me:$LINENO: result: yes" >&5 | |
5529 | echo "${ECHO_T}yes" >&6 | |
5530 | else | |
5531 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
5532 | echo "${ECHO_T}no, using $LN_S" >&6 | |
5533 | fi | |
d45dc31f SE |
5534 | |
5535 | # find the maximum length of command line arguments | |
5536 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
5537 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
5538 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
42ecbf5e DJ |
5539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5540 | else | |
d45dc31f SE |
5541 | i=0 |
5542 | teststring="ABCD" | |
5543 | ||
5544 | case $build_os in | |
5545 | msdosdjgpp*) | |
5546 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5547 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5548 | # during glob expansion). Even if it were fixed, the result of this | |
5549 | # check would be larger than it should be. | |
5550 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5551 | ;; | |
5552 | ||
d7040cdb SE |
5553 | gnu*) |
5554 | # Under GNU Hurd, this test is not required because there is | |
5555 | # no limit to the length of command line arguments. | |
5556 | # Libtool will interpret -1 as no limit whatsoever | |
5557 | lt_cv_sys_max_cmd_len=-1; | |
5558 | ;; | |
5559 | ||
718a6fd8 | 5560 | cygwin* | mingw* | cegcc*) |
d45dc31f SE |
5561 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5562 | # about 5 minutes as the teststring grows exponentially. | |
5563 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5564 | # you end up with a "frozen" computer, even though with patience | |
5565 | # the test eventually succeeds (with a max line length of 256k). | |
5566 | # Instead, let's just punt: use the minimum linelength reported by | |
5567 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5568 | lt_cv_sys_max_cmd_len=8192; | |
5569 | ;; | |
5570 | ||
5571 | amigaos*) | |
5572 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5573 | # So we just punt and use a minimum line length of 8192. | |
5574 | lt_cv_sys_max_cmd_len=8192; | |
5575 | ;; | |
5576 | ||
5577 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5578 | # This has been around since 386BSD, at least. Likely further. | |
5579 | if test -x /sbin/sysctl; then | |
5580 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5581 | elif test -x /usr/sbin/sysctl; then | |
5582 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5583 | else | |
d7040cdb | 5584 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
d45dc31f SE |
5585 | fi |
5586 | # And add a safety zone | |
5587 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5588 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5589 | ;; | |
d7040cdb SE |
5590 | |
5591 | interix*) | |
5592 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5593 | lt_cv_sys_max_cmd_len=196608 | |
5594 | ;; | |
5595 | ||
5596 | osf*) | |
5597 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5598 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5599 | # nice to cause kernel panics so lets avoid the loop below. | |
5600 | # First set a reasonable default. | |
5601 | lt_cv_sys_max_cmd_len=16384 | |
5602 | # | |
5603 | if test -x /sbin/sysconfig; then | |
5604 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5605 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5606 | esac | |
5607 | fi | |
5608 | ;; | |
5609 | sco3.2v5*) | |
5610 | lt_cv_sys_max_cmd_len=102400 | |
5611 | ;; | |
5612 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5613 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5614 | if test -n "$kargmax"; then | |
5615 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5616 | else | |
5617 | lt_cv_sys_max_cmd_len=32768 | |
5618 | fi | |
5619 | ;; | |
5620 | *) | |
718a6fd8 SE |
5621 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
5622 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
5ba684e2 NC |
5623 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5624 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5625 | else | |
5626 | # Make teststring a little bigger before we do anything with it. | |
5627 | # a 1K string should be a reasonable start. | |
5628 | for i in 1 2 3 4 5 6 7 8 ; do | |
5629 | teststring=$teststring$teststring | |
5630 | done | |
5631 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5632 | # If test is not a shell built-in, we'll probably end up computing a | |
5633 | # maximum length that is only half of the actual maximum length, but | |
5634 | # we can't tell. | |
5635 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
5636 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
5637 | test $i != 17 # 1/2 MB should be enough | |
5638 | do | |
5639 | i=`expr $i + 1` | |
5640 | teststring=$teststring$teststring | |
5641 | done | |
5642 | # Only check the string length outside the loop. | |
5643 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5644 | teststring= | |
5645 | # Add a significant safety factor because C++ compilers can tack on | |
5646 | # massive amounts of additional arguments before passing them to the | |
5647 | # linker. It appears as though 1/2 is a usable value. | |
5648 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5649 | fi | |
d7040cdb | 5650 | ;; |
d45dc31f | 5651 | esac |
42ecbf5e | 5652 | |
42ecbf5e DJ |
5653 | fi |
5654 | ||
d7040cdb | 5655 | if test -n $lt_cv_sys_max_cmd_len ; then |
d45dc31f SE |
5656 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
5657 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
252b5132 | 5658 | else |
d45dc31f SE |
5659 | echo "$as_me:$LINENO: result: none" >&5 |
5660 | echo "${ECHO_T}none" >&6 | |
252b5132 | 5661 | fi |
d7040cdb | 5662 | max_cmd_len=$lt_cv_sys_max_cmd_len |
e5a52504 | 5663 | |
d45dc31f | 5664 | |
42ecbf5e | 5665 | |
d45dc31f | 5666 | |
d45dc31f | 5667 | |
d7040cdb | 5668 | |
d7040cdb SE |
5669 | : ${CP="cp -f"} |
5670 | : ${MV="mv -f"} | |
5671 | : ${RM="rm -f"} | |
5672 | ||
5673 | echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 | |
5674 | echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6 | |
5675 | # Try some XSI features | |
5676 | xsi_shell=no | |
5677 | ( _lt_dummy="a/b/c" | |
5678 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
718a6fd8 SE |
5679 | = c,a/b,, \ |
5680 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5681 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
d7040cdb SE |
5682 | && xsi_shell=yes |
5683 | echo "$as_me:$LINENO: result: $xsi_shell" >&5 | |
5684 | echo "${ECHO_T}$xsi_shell" >&6 | |
5685 | ||
5686 | ||
5687 | echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 | |
5688 | echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6 | |
5689 | lt_shell_append=no | |
5690 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5691 | >/dev/null 2>&1 \ | |
5692 | && lt_shell_append=yes | |
5693 | echo "$as_me:$LINENO: result: $lt_shell_append" >&5 | |
5694 | echo "${ECHO_T}$lt_shell_append" >&6 | |
5695 | ||
5696 | ||
5697 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5698 | lt_unset=unset | |
252b5132 | 5699 | else |
d7040cdb | 5700 | lt_unset=false |
252b5132 RH |
5701 | fi |
5702 | ||
d7040cdb SE |
5703 | |
5704 | ||
5705 | ||
5706 | ||
5707 | # test EBCDIC or ASCII | |
5708 | case `echo X|tr X '\101'` in | |
5709 | A) # ASCII based system | |
5710 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5711 | lt_SP2NL='tr \040 \012' | |
5712 | lt_NL2SP='tr \015\012 \040\040' | |
5713 | ;; | |
5714 | *) # EBCDIC based system | |
5715 | lt_SP2NL='tr \100 \n' | |
5716 | lt_NL2SP='tr \r\n \100\100' | |
5717 | ;; | |
5718 | esac | |
5719 | ||
5720 | ||
5721 | ||
5722 | ||
5723 | ||
5724 | ||
5725 | ||
5726 | ||
5727 | ||
5728 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
5729 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
5730 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
42ecbf5e | 5731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 5732 | else |
d7040cdb SE |
5733 | lt_cv_ld_reload_flag='-r' |
5734 | fi | |
5735 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
5736 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
5737 | reload_flag=$lt_cv_ld_reload_flag | |
5738 | case $reload_flag in | |
5739 | "" | " "*) ;; | |
5740 | *) reload_flag=" $reload_flag" ;; | |
5741 | esac | |
5742 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5743 | case $host_os in | |
5744 | darwin*) | |
5745 | if test "$GCC" = yes; then | |
5746 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5747 | else | |
5748 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5749 | fi | |
5750 | ;; | |
5751 | esac | |
5752 | ||
5753 | ||
5754 | ||
5755 | ||
5756 | ||
5757 | ||
5758 | ||
5759 | ||
5760 | ||
718a6fd8 SE |
5761 | if test -n "$ac_tool_prefix"; then |
5762 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5763 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5764 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5765 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5766 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then | |
5767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5768 | else | |
5769 | if test -n "$OBJDUMP"; then | |
5770 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5771 | else | |
5772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5773 | for as_dir in $PATH | |
5774 | do | |
5775 | IFS=$as_save_IFS | |
5776 | test -z "$as_dir" && as_dir=. | |
5777 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5778 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5779 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
5780 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5781 | break 2 | |
5782 | fi | |
5783 | done | |
5784 | done | |
5785 | ||
5786 | fi | |
5787 | fi | |
5788 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5789 | if test -n "$OBJDUMP"; then | |
5790 | echo "$as_me:$LINENO: result: $OBJDUMP" >&5 | |
5791 | echo "${ECHO_T}$OBJDUMP" >&6 | |
5792 | else | |
5793 | echo "$as_me:$LINENO: result: no" >&5 | |
5794 | echo "${ECHO_T}no" >&6 | |
5795 | fi | |
5796 | ||
5797 | fi | |
5798 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5799 | ac_ct_OBJDUMP=$OBJDUMP | |
5800 | # Extract the first word of "objdump", so it can be a program name with args. | |
5801 | set dummy objdump; ac_word=$2 | |
5802 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5803 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5804 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then | |
5805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5806 | else | |
5807 | if test -n "$ac_ct_OBJDUMP"; then | |
5808 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5809 | else | |
5810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5811 | for as_dir in $PATH | |
5812 | do | |
5813 | IFS=$as_save_IFS | |
5814 | test -z "$as_dir" && as_dir=. | |
5815 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5816 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5817 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
5818 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5819 | break 2 | |
5820 | fi | |
5821 | done | |
5822 | done | |
5823 | ||
5824 | test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false" | |
5825 | fi | |
5826 | fi | |
5827 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5828 | if test -n "$ac_ct_OBJDUMP"; then | |
5829 | echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 | |
5830 | echo "${ECHO_T}$ac_ct_OBJDUMP" >&6 | |
5831 | else | |
5832 | echo "$as_me:$LINENO: result: no" >&5 | |
5833 | echo "${ECHO_T}no" >&6 | |
5834 | fi | |
5835 | ||
5836 | OBJDUMP=$ac_ct_OBJDUMP | |
5837 | else | |
5838 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5839 | fi | |
5840 | ||
5841 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5842 | ||
5843 | ||
5844 | ||
5845 | ||
5846 | ||
5847 | ||
5848 | ||
5849 | ||
d7040cdb SE |
5850 | |
5851 | echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 | |
5852 | echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6 | |
5853 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
5854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5855 | else | |
5856 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5857 | lt_cv_file_magic_test_file= | |
5858 | lt_cv_deplibs_check_method='unknown' | |
5859 | # Need to set the preceding variable on all platforms that support | |
5860 | # interlibrary dependencies. | |
5861 | # 'none' -- dependencies not supported. | |
5862 | # `unknown' -- same as none, but documents that we really don't know. | |
5863 | # 'pass_all' -- all dependencies passed with no checks. | |
5864 | # 'test_compile' -- check by making test program. | |
5865 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5866 | # which responds to the $file_magic_cmd with a given extended regex. | |
5867 | # If you have `file' or equivalent on your system and you're not sure | |
5868 | # whether `pass_all' will *always* work, you probably want this one. | |
5869 | ||
5870 | case $host_os in | |
50e7d84b | 5871 | aix[4-9]*) |
d7040cdb SE |
5872 | lt_cv_deplibs_check_method=pass_all |
5873 | ;; | |
5874 | ||
5875 | beos*) | |
5876 | lt_cv_deplibs_check_method=pass_all | |
5877 | ;; | |
5878 | ||
5879 | bsdi[45]*) | |
5880 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5881 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5882 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5883 | ;; | |
5884 | ||
5885 | cygwin*) | |
5886 | # func_win32_libid is a shell function defined in ltmain.sh | |
5887 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5888 | lt_cv_file_magic_cmd='func_win32_libid' | |
5889 | ;; | |
5890 | ||
5891 | mingw* | pw32*) | |
5892 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5893 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5894 | # unless we find 'file', for example because we are cross-compiling. | |
5895 | if ( file / ) >/dev/null 2>&1; then | |
5896 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5897 | lt_cv_file_magic_cmd='func_win32_libid' | |
5898 | else | |
5899 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
5900 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5901 | fi | |
5902 | ;; | |
5903 | ||
718a6fd8 SE |
5904 | cegcc) |
5905 | # use the weaker test based on 'objdump'. See mingw*. | |
5906 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5907 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5908 | ;; | |
5909 | ||
d7040cdb SE |
5910 | darwin* | rhapsody*) |
5911 | lt_cv_deplibs_check_method=pass_all | |
d45dc31f | 5912 | ;; |
d7040cdb SE |
5913 | |
5914 | freebsd* | dragonfly*) | |
5915 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5916 | case $host_cpu in | |
5917 | i*86 ) | |
5918 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5919 | # Let's accept both of them until this is cleared up. | |
5920 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5921 | lt_cv_file_magic_cmd=/usr/bin/file | |
5922 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5923 | ;; | |
5924 | esac | |
5925 | else | |
5926 | lt_cv_deplibs_check_method=pass_all | |
5927 | fi | |
5928 | ;; | |
5929 | ||
5930 | gnu*) | |
5931 | lt_cv_deplibs_check_method=pass_all | |
d45dc31f | 5932 | ;; |
d7040cdb SE |
5933 | |
5934 | hpux10.20* | hpux11*) | |
5935 | lt_cv_file_magic_cmd=/usr/bin/file | |
5936 | case $host_cpu in | |
5937 | ia64*) | |
5938 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5939 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5940 | ;; | |
5941 | hppa*64*) | |
5942 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | |
5943 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
5944 | ;; | |
d45dc31f | 5945 | *) |
d7040cdb SE |
5946 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
5947 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5948 | ;; | |
5949 | esac | |
5950 | ;; | |
42ecbf5e | 5951 | |
d7040cdb SE |
5952 | interix[3-9]*) |
5953 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5954 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5955 | ;; | |
42ecbf5e | 5956 | |
d7040cdb SE |
5957 | irix5* | irix6* | nonstopux*) |
5958 | case $LD in | |
5959 | *-32|*"-32 ") libmagic=32-bit;; | |
5960 | *-n32|*"-n32 ") libmagic=N32;; | |
5961 | *-64|*"-64 ") libmagic=64-bit;; | |
5962 | *) libmagic=never-match;; | |
5963 | esac | |
5964 | lt_cv_deplibs_check_method=pass_all | |
d45dc31f | 5965 | ;; |
42ecbf5e | 5966 | |
d7040cdb | 5967 | # This must be Linux ELF. |
58e24671 | 5968 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
d7040cdb SE |
5969 | lt_cv_deplibs_check_method=pass_all |
5970 | ;; | |
252b5132 | 5971 | |
d7040cdb SE |
5972 | netbsd*) |
5973 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5974 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
d45dc31f | 5975 | else |
d7040cdb | 5976 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
d45dc31f | 5977 | fi |
d7040cdb SE |
5978 | ;; |
5979 | ||
5980 | newos6*) | |
5981 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5982 | lt_cv_file_magic_cmd=/usr/bin/file | |
5983 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5984 | ;; | |
5985 | ||
5986 | *nto* | *qnx*) | |
5987 | lt_cv_deplibs_check_method=pass_all | |
5988 | ;; | |
42ecbf5e | 5989 | |
d7040cdb SE |
5990 | openbsd*) |
5991 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5992 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5993 | else | |
5994 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
d45dc31f SE |
5995 | fi |
5996 | ;; | |
d7040cdb SE |
5997 | |
5998 | osf3* | osf4* | osf5*) | |
5999 | lt_cv_deplibs_check_method=pass_all | |
6000 | ;; | |
6001 | ||
6002 | rdos*) | |
6003 | lt_cv_deplibs_check_method=pass_all | |
6004 | ;; | |
6005 | ||
6006 | solaris*) | |
6007 | lt_cv_deplibs_check_method=pass_all | |
6008 | ;; | |
6009 | ||
6010 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6011 | lt_cv_deplibs_check_method=pass_all | |
6012 | ;; | |
6013 | ||
6014 | sysv4 | sysv4.3*) | |
6015 | case $host_vendor in | |
6016 | motorola) | |
6017 | 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]' | |
6018 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6019 | ;; | |
6020 | ncr) | |
6021 | lt_cv_deplibs_check_method=pass_all | |
6022 | ;; | |
6023 | sequent) | |
6024 | lt_cv_file_magic_cmd='/bin/file' | |
6025 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6026 | ;; | |
6027 | sni) | |
6028 | lt_cv_file_magic_cmd='/bin/file' | |
6029 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6030 | lt_cv_file_magic_test_file=/lib/libc.so | |
6031 | ;; | |
6032 | siemens) | |
6033 | lt_cv_deplibs_check_method=pass_all | |
6034 | ;; | |
6035 | pc) | |
6036 | lt_cv_deplibs_check_method=pass_all | |
6037 | ;; | |
6038 | esac | |
6039 | ;; | |
6040 | ||
6041 | tpf*) | |
6042 | lt_cv_deplibs_check_method=pass_all | |
6043 | ;; | |
d45dc31f | 6044 | esac |
42ecbf5e | 6045 | |
d7040cdb SE |
6046 | fi |
6047 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
6048 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
6049 | file_magic_cmd=$lt_cv_file_magic_cmd | |
6050 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6051 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6052 | ||
6053 | ||
6054 | ||
6055 | ||
6056 | ||
6057 | ||
6058 | ||
6059 | ||
6060 | ||
6061 | ||
6062 | ||
6063 | ||
d45dc31f | 6064 | if test -n "$ac_tool_prefix"; then |
d7040cdb SE |
6065 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
6066 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
d45dc31f SE |
6067 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6068 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
d7040cdb | 6069 | if test "${ac_cv_prog_AR+set}" = set; then |
d45dc31f | 6070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
42ecbf5e | 6071 | else |
d7040cdb SE |
6072 | if test -n "$AR"; then |
6073 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
d45dc31f SE |
6074 | else |
6075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6076 | for as_dir in $PATH | |
6077 | do | |
6078 | IFS=$as_save_IFS | |
6079 | test -z "$as_dir" && as_dir=. | |
6080 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6081 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d7040cdb | 6082 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
d45dc31f SE |
6083 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6084 | break 2 | |
6085 | fi | |
6086 | done | |
6087 | done | |
42ecbf5e | 6088 | |
42ecbf5e | 6089 | fi |
d45dc31f | 6090 | fi |
d7040cdb SE |
6091 | AR=$ac_cv_prog_AR |
6092 | if test -n "$AR"; then | |
6093 | echo "$as_me:$LINENO: result: $AR" >&5 | |
6094 | echo "${ECHO_T}$AR" >&6 | |
d45dc31f SE |
6095 | else |
6096 | echo "$as_me:$LINENO: result: no" >&5 | |
6097 | echo "${ECHO_T}no" >&6 | |
6098 | fi | |
42ecbf5e DJ |
6099 | |
6100 | fi | |
d7040cdb SE |
6101 | if test -z "$ac_cv_prog_AR"; then |
6102 | ac_ct_AR=$AR | |
6103 | # Extract the first word of "ar", so it can be a program name with args. | |
6104 | set dummy ar; ac_word=$2 | |
d45dc31f SE |
6105 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6106 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
d7040cdb | 6107 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
42ecbf5e DJ |
6108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6109 | else | |
d7040cdb SE |
6110 | if test -n "$ac_ct_AR"; then |
6111 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
42ecbf5e | 6112 | else |
d45dc31f SE |
6113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6114 | for as_dir in $PATH | |
6115 | do | |
6116 | IFS=$as_save_IFS | |
6117 | test -z "$as_dir" && as_dir=. | |
6118 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6119 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d7040cdb | 6120 | ac_cv_prog_ac_ct_AR="ar" |
d45dc31f SE |
6121 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6122 | break 2 | |
6123 | fi | |
6124 | done | |
6125 | done | |
42ecbf5e | 6126 | |
d7040cdb | 6127 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
42ecbf5e | 6128 | fi |
42ecbf5e | 6129 | fi |
d7040cdb SE |
6130 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6131 | if test -n "$ac_ct_AR"; then | |
6132 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
6133 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
252b5132 | 6134 | else |
d45dc31f SE |
6135 | echo "$as_me:$LINENO: result: no" >&5 |
6136 | echo "${ECHO_T}no" >&6 | |
252b5132 | 6137 | fi |
252b5132 | 6138 | |
d7040cdb | 6139 | AR=$ac_ct_AR |
d45dc31f | 6140 | else |
d7040cdb | 6141 | AR="$ac_cv_prog_AR" |
d45dc31f | 6142 | fi |
42ecbf5e | 6143 | |
d7040cdb SE |
6144 | test -z "$AR" && AR=ar |
6145 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
6146 | ||
6147 | ||
6148 | ||
6149 | ||
6150 | ||
6151 | ||
6152 | ||
6153 | ||
6154 | ||
6155 | ||
6156 | ||
d45dc31f SE |
6157 | if test -n "$ac_tool_prefix"; then |
6158 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6159 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6160 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6161 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6162 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
6163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6164 | else | |
6165 | if test -n "$STRIP"; then | |
6166 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6167 | else | |
6168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6169 | for as_dir in $PATH | |
42ecbf5e | 6170 | do |
d45dc31f SE |
6171 | IFS=$as_save_IFS |
6172 | test -z "$as_dir" && as_dir=. | |
6173 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6174 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6175 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6176 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6177 | break 2 | |
6178 | fi | |
6179 | done | |
6180 | done | |
6181 | ||
6182 | fi | |
6183 | fi | |
6184 | STRIP=$ac_cv_prog_STRIP | |
6185 | if test -n "$STRIP"; then | |
6186 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
6187 | echo "${ECHO_T}$STRIP" >&6 | |
252b5132 | 6188 | else |
d45dc31f SE |
6189 | echo "$as_me:$LINENO: result: no" >&5 |
6190 | echo "${ECHO_T}no" >&6 | |
6191 | fi | |
42ecbf5e | 6192 | |
252b5132 | 6193 | fi |
d45dc31f SE |
6194 | if test -z "$ac_cv_prog_STRIP"; then |
6195 | ac_ct_STRIP=$STRIP | |
6196 | # Extract the first word of "strip", so it can be a program name with args. | |
6197 | set dummy strip; ac_word=$2 | |
6198 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6199 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6200 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
6201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6202 | else | |
6203 | if test -n "$ac_ct_STRIP"; then | |
6204 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6205 | else | |
6206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6207 | for as_dir in $PATH | |
6208 | do | |
6209 | IFS=$as_save_IFS | |
6210 | test -z "$as_dir" && as_dir=. | |
6211 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6212 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6213 | ac_cv_prog_ac_ct_STRIP="strip" | |
6214 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6215 | break 2 | |
6216 | fi | |
6217 | done | |
42ecbf5e | 6218 | done |
42ecbf5e | 6219 | |
d45dc31f SE |
6220 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
6221 | fi | |
6222 | fi | |
6223 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6224 | if test -n "$ac_ct_STRIP"; then | |
6225 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
6226 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
6227 | else | |
6228 | echo "$as_me:$LINENO: result: no" >&5 | |
6229 | echo "${ECHO_T}no" >&6 | |
252b5132 | 6230 | fi |
e5a52504 | 6231 | |
d45dc31f SE |
6232 | STRIP=$ac_ct_STRIP |
6233 | else | |
6234 | STRIP="$ac_cv_prog_STRIP" | |
6235 | fi | |
e5a52504 | 6236 | |
d7040cdb | 6237 | test -z "$STRIP" && STRIP=: |
d45dc31f | 6238 | |
d45dc31f SE |
6239 | |
6240 | ||
d45dc31f | 6241 | |
d45dc31f SE |
6242 | |
6243 | ||
d7040cdb SE |
6244 | if test -n "$ac_tool_prefix"; then |
6245 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6246 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6247 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6248 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6249 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
6250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45dc31f | 6251 | else |
d7040cdb SE |
6252 | if test -n "$RANLIB"; then |
6253 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6254 | else | |
6255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6256 | for as_dir in $PATH | |
6257 | do | |
6258 | IFS=$as_save_IFS | |
6259 | test -z "$as_dir" && as_dir=. | |
6260 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6261 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6262 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6263 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6264 | break 2 | |
d45dc31f | 6265 | fi |
d7040cdb SE |
6266 | done |
6267 | done | |
d45dc31f | 6268 | |
d7040cdb SE |
6269 | fi |
6270 | fi | |
6271 | RANLIB=$ac_cv_prog_RANLIB | |
6272 | if test -n "$RANLIB"; then | |
6273 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
6274 | echo "${ECHO_T}$RANLIB" >&6 | |
6275 | else | |
6276 | echo "$as_me:$LINENO: result: no" >&5 | |
6277 | echo "${ECHO_T}no" >&6 | |
6278 | fi | |
d45dc31f | 6279 | |
d7040cdb SE |
6280 | fi |
6281 | if test -z "$ac_cv_prog_RANLIB"; then | |
6282 | ac_ct_RANLIB=$RANLIB | |
6283 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6284 | set dummy ranlib; ac_word=$2 | |
6285 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6286 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6287 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
6288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6289 | else | |
6290 | if test -n "$ac_ct_RANLIB"; then | |
6291 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6292 | else | |
6293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6294 | for as_dir in $PATH | |
6295 | do | |
6296 | IFS=$as_save_IFS | |
6297 | test -z "$as_dir" && as_dir=. | |
6298 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6299 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6300 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6301 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6302 | break 2 | |
d45dc31f | 6303 | fi |
d7040cdb SE |
6304 | done |
6305 | done | |
d45dc31f | 6306 | |
d7040cdb SE |
6307 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
6308 | fi | |
6309 | fi | |
6310 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6311 | if test -n "$ac_ct_RANLIB"; then | |
6312 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
6313 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
d15b04bd | 6314 | else |
d7040cdb SE |
6315 | echo "$as_me:$LINENO: result: no" >&5 |
6316 | echo "${ECHO_T}no" >&6 | |
6317 | fi | |
252b5132 | 6318 | |
d7040cdb SE |
6319 | RANLIB=$ac_ct_RANLIB |
6320 | else | |
6321 | RANLIB="$ac_cv_prog_RANLIB" | |
6322 | fi | |
d45dc31f | 6323 | |
d7040cdb | 6324 | test -z "$RANLIB" && RANLIB=: |
d45dc31f | 6325 | |
d45dc31f | 6326 | |
d45dc31f | 6327 | |
42ecbf5e | 6328 | |
e5a52504 | 6329 | |
d7040cdb SE |
6330 | |
6331 | # Determine commands to create old-style static archives. | |
718a6fd8 | 6332 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
d7040cdb SE |
6333 | old_postinstall_cmds='chmod 644 $oldlib' |
6334 | old_postuninstall_cmds= | |
6335 | ||
6336 | if test -n "$RANLIB"; then | |
6337 | case $host_os in | |
6338 | openbsd*) | |
6339 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6340 | ;; | |
6341 | *) | |
6342 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6343 | ;; | |
6344 | esac | |
6345 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
d45dc31f | 6346 | fi |
d45dc31f SE |
6347 | |
6348 | ||
d45dc31f SE |
6349 | |
6350 | ||
d15b04bd | 6351 | |
3e321448 | 6352 | |
d45dc31f | 6353 | |
d45dc31f | 6354 | |
d45dc31f SE |
6355 | |
6356 | ||
d45dc31f | 6357 | |
d45dc31f | 6358 | |
d45dc31f SE |
6359 | |
6360 | ||
6361 | ||
6362 | ||
6363 | ||
6364 | ||
6365 | ||
d45dc31f | 6366 | |
d45dc31f | 6367 | |
d45dc31f | 6368 | |
d45dc31f | 6369 | |
d45dc31f | 6370 | |
d45dc31f | 6371 | |
d45dc31f | 6372 | |
d45dc31f | 6373 | |
3e321448 L |
6374 | |
6375 | ||
d45dc31f SE |
6376 | |
6377 | ||
d45dc31f SE |
6378 | |
6379 | ||
d45dc31f | 6380 | |
d7040cdb SE |
6381 | # If no C compiler was specified, use CC. |
6382 | LTCC=${LTCC-"$CC"} | |
42ecbf5e | 6383 | |
d7040cdb SE |
6384 | # If no C compiler flags were specified, use CFLAGS. |
6385 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
e5a52504 | 6386 | |
d7040cdb SE |
6387 | # Allow CC to be a program name with arguments. |
6388 | compiler=$CC | |
d15b04bd | 6389 | |
d7040cdb SE |
6390 | |
6391 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
6392 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
6393 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | |
6394 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
42ecbf5e | 6395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d15b04bd | 6396 | else |
d7040cdb SE |
6397 | |
6398 | # These are sane defaults that work on at least a few old systems. | |
6399 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6400 | ||
6401 | # Character class describing NM global symbol codes. | |
6402 | symcode='[BCDEGRST]' | |
6403 | ||
6404 | # Regexp to match symbols that can be accessed directly from C. | |
6405 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6406 | ||
6407 | # Define system-specific variables. | |
6408 | case $host_os in | |
6409 | aix*) | |
6410 | symcode='[BCDT]' | |
6411 | ;; | |
718a6fd8 | 6412 | cygwin* | mingw* | pw32* | cegcc*) |
d7040cdb SE |
6413 | symcode='[ABCDGISTW]' |
6414 | ;; | |
6415 | hpux*) | |
6416 | if test "$host_cpu" = ia64; then | |
6417 | symcode='[ABCDEGRST]' | |
42ecbf5e | 6418 | fi |
d7040cdb SE |
6419 | ;; |
6420 | irix* | nonstopux*) | |
6421 | symcode='[BCDEGRST]' | |
6422 | ;; | |
6423 | osf*) | |
6424 | symcode='[BCDEGQRST]' | |
6425 | ;; | |
6426 | solaris*) | |
6427 | symcode='[BDRT]' | |
6428 | ;; | |
6429 | sco3.2v5*) | |
6430 | symcode='[DT]' | |
6431 | ;; | |
6432 | sysv4.2uw2*) | |
6433 | symcode='[DT]' | |
6434 | ;; | |
6435 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6436 | symcode='[ABDT]' | |
6437 | ;; | |
6438 | sysv4) | |
6439 | symcode='[DFNSTU]' | |
6440 | ;; | |
6441 | esac | |
d15b04bd | 6442 | |
d7040cdb SE |
6443 | # If we're using GNU nm, then use its standard symbol codes. |
6444 | case `$NM -V 2>&1` in | |
6445 | *GNU* | *'with BFD'*) | |
6446 | symcode='[ABCDGIRSTW]' ;; | |
6447 | esac | |
e5a52504 | 6448 | |
d7040cdb SE |
6449 | # Transform an extracted symbol line into a proper C declaration. |
6450 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7357c5b6 AM |
6451 | # so use this general approach. |
6452 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
d7040cdb | 6453 | |
7357c5b6 AM |
6454 | # Transform an extracted symbol line into symbol name and symbol address |
6455 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
718a6fd8 | 6456 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" |
d7040cdb | 6457 | |
7357c5b6 AM |
6458 | # Handle CRLF in mingw tool chain |
6459 | opt_cr= | |
6460 | case $build_os in | |
6461 | mingw*) | |
6462 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6463 | ;; | |
6464 | esac | |
d7040cdb | 6465 | |
7357c5b6 AM |
6466 | # Try without a prefix underscore, then with it. |
6467 | for ac_symprfx in "" "_"; do | |
d7040cdb | 6468 | |
7357c5b6 AM |
6469 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6470 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
d7040cdb | 6471 | |
7357c5b6 AM |
6472 | # Write the raw and C identifiers. |
6473 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6474 | # Fake it for dumpbin and say T for any non-static function | |
6475 | # and D for any global variable. | |
6476 | # Also find C++ and __fastcall symbols from MSVC++, | |
6477 | # which start with @ or ?. | |
6478 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6479 | " {last_section=section; section=\$ 3};"\ | |
6480 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6481 | " \$ 0!~/External *\|/{next};"\ | |
6482 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6483 | " {if(hide[section]) next};"\ | |
6484 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6485 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6486 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6487 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6488 | " ' prfx=^$ac_symprfx" | |
6489 | else | |
6490 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6491 | fi | |
6492 | ||
6493 | # Check to see that the pipe works correctly. | |
6494 | pipe_works=no | |
6495 | ||
6496 | rm -f conftest* | |
6497 | cat > conftest.$ac_ext <<_LT_EOF | |
6498 | #ifdef __cplusplus | |
6499 | extern "C" { | |
6500 | #endif | |
6501 | char nm_test_var; | |
6502 | void nm_test_func(void); | |
6503 | void nm_test_func(void){} | |
6504 | #ifdef __cplusplus | |
d7040cdb | 6505 | } |
7357c5b6 AM |
6506 | #endif |
6507 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6508 | _LT_EOF | |
6509 | ||
6510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6511 | (eval $ac_compile) 2>&5 | |
42ecbf5e DJ |
6512 | ac_status=$? |
6513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7357c5b6 AM |
6514 | (exit $ac_status); }; then |
6515 | # Now try to grab the symbols. | |
6516 | nlist=conftest.nm | |
6517 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
6518 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
42ecbf5e DJ |
6519 | ac_status=$? |
6520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7357c5b6 AM |
6521 | (exit $ac_status); } && test -s "$nlist"; then |
6522 | # Try sorting and uniquifying the output. | |
6523 | if sort "$nlist" | uniq > "$nlist"T; then | |
6524 | mv -f "$nlist"T "$nlist" | |
6525 | else | |
6526 | rm -f "$nlist"T | |
6527 | fi | |
d7040cdb | 6528 | |
7357c5b6 AM |
6529 | # Make sure that we snagged all the symbols we need. |
6530 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6531 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6532 | cat <<_LT_EOF > conftest.$ac_ext | |
6533 | #ifdef __cplusplus | |
6534 | extern "C" { | |
6535 | #endif | |
e5a52504 | 6536 | |
7357c5b6 AM |
6537 | _LT_EOF |
6538 | # Now generate the symbol file. | |
6539 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
7148cc28 | 6540 | |
7357c5b6 | 6541 | cat <<_LT_EOF >> conftest.$ac_ext |
d7040cdb | 6542 | |
7357c5b6 AM |
6543 | /* The mapping between symbol names and symbols. */ |
6544 | const struct { | |
6545 | const char *name; | |
6546 | void *address; | |
6547 | } | |
6548 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6549 | { | |
6550 | { "@PROGRAM@", (void *) 0 }, | |
6551 | _LT_EOF | |
6552 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6553 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6554 | {0, (void *) 0} | |
6555 | }; | |
d7040cdb | 6556 | |
7357c5b6 AM |
6557 | /* This works around a problem in FreeBSD linker */ |
6558 | #ifdef FREEBSD_WORKAROUND | |
6559 | static const void *lt_preloaded_setup() { | |
6560 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6561 | } | |
d7040cdb SE |
6562 | #endif |
6563 | ||
7357c5b6 | 6564 | #ifdef __cplusplus |
d7040cdb | 6565 | } |
7357c5b6 AM |
6566 | #endif |
6567 | _LT_EOF | |
6568 | # Now try linking the two files. | |
6569 | mv conftest.$ac_objext conftstm.$ac_objext | |
6570 | lt_save_LIBS="$LIBS" | |
6571 | lt_save_CFLAGS="$CFLAGS" | |
6572 | LIBS="conftstm.$ac_objext" | |
6573 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
6574 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
d7040cdb SE |
6575 | (eval $ac_link) 2>&5 |
6576 | ac_status=$? | |
6577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7357c5b6 AM |
6578 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
6579 | pipe_works=yes | |
6580 | fi | |
6581 | LIBS="$lt_save_LIBS" | |
6582 | CFLAGS="$lt_save_CFLAGS" | |
6583 | else | |
6584 | echo "cannot find nm_test_func in $nlist" >&5 | |
6585 | fi | |
6586 | else | |
6587 | echo "cannot find nm_test_var in $nlist" >&5 | |
6588 | fi | |
6589 | else | |
6590 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6591 | fi | |
6592 | else | |
6593 | echo "$progname: failed program was:" >&5 | |
6594 | cat conftest.$ac_ext >&5 | |
6595 | fi | |
718a6fd8 | 6596 | rm -rf conftest* conftst* |
7357c5b6 AM |
6597 | |
6598 | # Do not use the global_symbol_pipe unless it works. | |
6599 | if test "$pipe_works" = yes; then | |
6600 | break | |
6601 | else | |
6602 | lt_cv_sys_global_symbol_pipe= | |
6603 | fi | |
6604 | done | |
d7040cdb | 6605 | |
d7040cdb | 6606 | fi |
7357c5b6 AM |
6607 | |
6608 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6609 | lt_cv_sys_global_symbol_to_cdecl= | |
d7040cdb | 6610 | fi |
7357c5b6 AM |
6611 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
6612 | echo "$as_me:$LINENO: result: failed" >&5 | |
6613 | echo "${ECHO_T}failed" >&6 | |
6614 | else | |
6615 | echo "$as_me:$LINENO: result: ok" >&5 | |
6616 | echo "${ECHO_T}ok" >&6 | |
d7040cdb | 6617 | fi |
20e95c23 | 6618 | |
20e95c23 DJ |
6619 | |
6620 | ||
20e95c23 DJ |
6621 | |
6622 | ||
20e95c23 | 6623 | |
20e95c23 | 6624 | |
20e95c23 | 6625 | |
20e95c23 | 6626 | |
20e95c23 | 6627 | |
20e95c23 DJ |
6628 | |
6629 | ||
7357c5b6 AM |
6630 | |
6631 | ||
6632 | ||
718a6fd8 SE |
6633 | |
6634 | ||
6635 | ||
6636 | ||
6637 | ||
7357c5b6 AM |
6638 | |
6639 | ||
6640 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
6641 | if test "${enable_libtool_lock+set}" = set; then | |
6642 | enableval="$enable_libtool_lock" | |
6643 | ||
6644 | fi; | |
6645 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
6646 | ||
6647 | # Some flags need to be propagated to the compiler or linker for good | |
6648 | # libtool support. | |
6649 | case $host in | |
6650 | ia64-*-hpux*) | |
6651 | # Find out which ABI we are using. | |
6652 | echo 'int i;' > conftest.$ac_ext | |
6653 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6654 | (eval $ac_compile) 2>&5 | |
6655 | ac_status=$? | |
6656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6657 | (exit $ac_status); }; then | |
6658 | case `/usr/bin/file conftest.$ac_objext` in | |
6659 | *ELF-32*) | |
6660 | HPUX_IA64_MODE="32" | |
6661 | ;; | |
6662 | *ELF-64*) | |
6663 | HPUX_IA64_MODE="64" | |
6664 | ;; | |
6665 | esac | |
6666 | fi | |
6667 | rm -rf conftest* | |
6668 | ;; | |
6669 | *-*-irix6*) | |
6670 | # Find out which ABI we are using. | |
29670fb9 | 6671 | echo '#line 6671 "configure"' > conftest.$ac_ext |
7357c5b6 AM |
6672 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6673 | (eval $ac_compile) 2>&5 | |
6674 | ac_status=$? | |
6675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6676 | (exit $ac_status); }; then | |
6677 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
6678 | case `/usr/bin/file conftest.$ac_objext` in | |
6679 | *32-bit*) | |
6680 | LD="${LD-ld} -melf32bsmip" | |
6681 | ;; | |
6682 | *N32*) | |
6683 | LD="${LD-ld} -melf32bmipn32" | |
6684 | ;; | |
6685 | *64-bit*) | |
6686 | LD="${LD-ld} -melf64bmip" | |
6687 | ;; | |
6688 | esac | |
6689 | else | |
6690 | case `/usr/bin/file conftest.$ac_objext` in | |
6691 | *32-bit*) | |
6692 | LD="${LD-ld} -32" | |
6693 | ;; | |
6694 | *N32*) | |
6695 | LD="${LD-ld} -n32" | |
6696 | ;; | |
6697 | *64-bit*) | |
6698 | LD="${LD-ld} -64" | |
6699 | ;; | |
6700 | esac | |
6701 | fi | |
6702 | fi | |
6703 | rm -rf conftest* | |
6704 | ;; | |
6705 | ||
6706 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
6707 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6708 | # Find out which ABI we are using. | |
6709 | echo 'int i;' > conftest.$ac_ext | |
6710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6711 | (eval $ac_compile) 2>&5 | |
6712 | ac_status=$? | |
6713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6714 | (exit $ac_status); }; then | |
6715 | case `/usr/bin/file conftest.o` in | |
6716 | *32-bit*) | |
6717 | case $host in | |
6718 | x86_64-*kfreebsd*-gnu) | |
6719 | LD="${LD-ld} -m elf_i386_fbsd" | |
6720 | ;; | |
6721 | x86_64-*linux*) | |
6722 | LD="${LD-ld} -m elf_i386" | |
6723 | ;; | |
6724 | ppc64-*linux*|powerpc64-*linux*) | |
6725 | LD="${LD-ld} -m elf32ppclinux" | |
6726 | ;; | |
6727 | s390x-*linux*) | |
6728 | LD="${LD-ld} -m elf_s390" | |
6729 | ;; | |
6730 | sparc64-*linux*) | |
6731 | LD="${LD-ld} -m elf32_sparc" | |
6732 | ;; | |
6733 | esac | |
6734 | ;; | |
6735 | *64-bit*) | |
6736 | case $host in | |
6737 | x86_64-*kfreebsd*-gnu) | |
6738 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6739 | ;; | |
6740 | x86_64-*linux*) | |
6741 | LD="${LD-ld} -m elf_x86_64" | |
6742 | ;; | |
6743 | ppc*-*linux*|powerpc*-*linux*) | |
6744 | LD="${LD-ld} -m elf64ppc" | |
6745 | ;; | |
6746 | s390*-*linux*|s390*-*tpf*) | |
6747 | LD="${LD-ld} -m elf64_s390" | |
6748 | ;; | |
6749 | sparc*-*linux*) | |
6750 | LD="${LD-ld} -m elf64_sparc" | |
6751 | ;; | |
6752 | esac | |
6753 | ;; | |
6754 | esac | |
6755 | fi | |
6756 | rm -rf conftest* | |
6757 | ;; | |
6758 | ||
6759 | *-*-sco3.2v5*) | |
6760 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6761 | SAVE_CFLAGS="$CFLAGS" | |
6762 | CFLAGS="$CFLAGS -belf" | |
6763 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
6764 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
6765 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
d7040cdb SE |
6766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6767 | else | |
7357c5b6 AM |
6768 | ac_ext=c |
6769 | ac_cpp='$CPP $CPPFLAGS' | |
6770 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6771 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6772 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6773 | ||
6774 | cat >conftest.$ac_ext <<_ACEOF | |
d7040cdb SE |
6775 | /* confdefs.h. */ |
6776 | _ACEOF | |
6777 | cat confdefs.h >>conftest.$ac_ext | |
6778 | cat >>conftest.$ac_ext <<_ACEOF | |
6779 | /* end confdefs.h. */ | |
20e95c23 | 6780 | |
7357c5b6 AM |
6781 | int |
6782 | main () | |
6783 | { | |
6784 | ||
6785 | ; | |
6786 | return 0; | |
6787 | } | |
d7040cdb | 6788 | _ACEOF |
7357c5b6 AM |
6789 | rm -f conftest.$ac_objext conftest$ac_exeext |
6790 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6791 | (eval $ac_link) 2>conftest.er1 | |
d7040cdb SE |
6792 | ac_status=$? |
6793 | grep -v '^ *+' conftest.er1 >conftest.err | |
6794 | rm -f conftest.er1 | |
6795 | cat conftest.err >&5 | |
6796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6797 | (exit $ac_status); } && | |
7357c5b6 AM |
6798 | { ac_try='test -z "$ac_c_werror_flag" |
6799 | || test ! -s conftest.err' | |
d7040cdb SE |
6800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6801 | (eval $ac_try) 2>&5 | |
6802 | ac_status=$? | |
6803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6804 | (exit $ac_status); }; } && | |
7357c5b6 | 6805 | { ac_try='test -s conftest$ac_exeext' |
d7040cdb SE |
6806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6807 | (eval $ac_try) 2>&5 | |
6808 | ac_status=$? | |
6809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6810 | (exit $ac_status); }; }; then | |
7357c5b6 | 6811 | lt_cv_cc_needs_belf=yes |
d15b04bd | 6812 | else |
d7040cdb SE |
6813 | echo "$as_me: failed program was:" >&5 |
6814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20e95c23 | 6815 | |
7357c5b6 | 6816 | lt_cv_cc_needs_belf=no |
d7040cdb | 6817 | fi |
7357c5b6 AM |
6818 | rm -f conftest.err conftest.$ac_objext \ |
6819 | conftest$ac_exeext conftest.$ac_ext | |
6820 | ac_ext=c | |
6821 | ac_cpp='$CPP $CPPFLAGS' | |
6822 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6823 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6824 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20e95c23 | 6825 | |
718a6fd8 SE |
6826 | fi |
6827 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
6828 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
6829 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
6830 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6831 | CFLAGS="$SAVE_CFLAGS" | |
6832 | fi | |
6833 | ;; | |
6834 | sparc*-*solaris*) | |
6835 | # Find out which ABI we are using. | |
6836 | echo 'int i;' > conftest.$ac_ext | |
6837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6838 | (eval $ac_compile) 2>&5 | |
6839 | ac_status=$? | |
6840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6841 | (exit $ac_status); }; then | |
6842 | case `/usr/bin/file conftest.o` in | |
6843 | *64-bit*) | |
6844 | case $lt_cv_prog_gnu_ld in | |
6845 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
6846 | *) | |
6847 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6848 | LD="${LD-ld} -64" | |
6849 | fi | |
6850 | ;; | |
6851 | esac | |
6852 | ;; | |
6853 | esac | |
6854 | fi | |
6855 | rm -rf conftest* | |
6856 | ;; | |
6857 | esac | |
6858 | ||
6859 | need_locks="$enable_libtool_lock" | |
6860 | ||
6861 | ||
6862 | case $host_os in | |
6863 | rhapsody* | darwin*) | |
6864 | if test -n "$ac_tool_prefix"; then | |
6865 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6866 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
6867 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6868 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6869 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then | |
6870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6871 | else | |
6872 | if test -n "$DSYMUTIL"; then | |
6873 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
6874 | else | |
6875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6876 | for as_dir in $PATH | |
6877 | do | |
6878 | IFS=$as_save_IFS | |
6879 | test -z "$as_dir" && as_dir=. | |
6880 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6881 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6882 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
6883 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6884 | break 2 | |
6885 | fi | |
6886 | done | |
6887 | done | |
6888 | ||
6889 | fi | |
6890 | fi | |
6891 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
6892 | if test -n "$DSYMUTIL"; then | |
6893 | echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 | |
6894 | echo "${ECHO_T}$DSYMUTIL" >&6 | |
6895 | else | |
6896 | echo "$as_me:$LINENO: result: no" >&5 | |
6897 | echo "${ECHO_T}no" >&6 | |
6898 | fi | |
6899 | ||
6900 | fi | |
6901 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
6902 | ac_ct_DSYMUTIL=$DSYMUTIL | |
6903 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
6904 | set dummy dsymutil; ac_word=$2 | |
6905 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6906 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6907 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then | |
6908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6909 | else | |
6910 | if test -n "$ac_ct_DSYMUTIL"; then | |
6911 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
6912 | else | |
6913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6914 | for as_dir in $PATH | |
6915 | do | |
6916 | IFS=$as_save_IFS | |
6917 | test -z "$as_dir" && as_dir=. | |
6918 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6919 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6920 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
6921 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6922 | break 2 | |
6923 | fi | |
6924 | done | |
6925 | done | |
6926 | ||
6927 | test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":" | |
6928 | fi | |
6929 | fi | |
6930 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
6931 | if test -n "$ac_ct_DSYMUTIL"; then | |
6932 | echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 | |
6933 | echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6 | |
6934 | else | |
6935 | echo "$as_me:$LINENO: result: no" >&5 | |
6936 | echo "${ECHO_T}no" >&6 | |
6937 | fi | |
6938 | ||
6939 | DSYMUTIL=$ac_ct_DSYMUTIL | |
6940 | else | |
6941 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
6942 | fi | |
6943 | ||
6944 | if test -n "$ac_tool_prefix"; then | |
6945 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6946 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
6947 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6948 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6949 | if test "${ac_cv_prog_NMEDIT+set}" = set; then | |
6950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6951 | else | |
6952 | if test -n "$NMEDIT"; then | |
6953 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
6954 | else | |
6955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6956 | for as_dir in $PATH | |
6957 | do | |
6958 | IFS=$as_save_IFS | |
6959 | test -z "$as_dir" && as_dir=. | |
6960 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6961 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6962 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
6963 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6964 | break 2 | |
6965 | fi | |
6966 | done | |
6967 | done | |
6968 | ||
6969 | fi | |
6970 | fi | |
6971 | NMEDIT=$ac_cv_prog_NMEDIT | |
6972 | if test -n "$NMEDIT"; then | |
6973 | echo "$as_me:$LINENO: result: $NMEDIT" >&5 | |
6974 | echo "${ECHO_T}$NMEDIT" >&6 | |
6975 | else | |
6976 | echo "$as_me:$LINENO: result: no" >&5 | |
6977 | echo "${ECHO_T}no" >&6 | |
6978 | fi | |
6979 | ||
6980 | fi | |
6981 | if test -z "$ac_cv_prog_NMEDIT"; then | |
6982 | ac_ct_NMEDIT=$NMEDIT | |
6983 | # Extract the first word of "nmedit", so it can be a program name with args. | |
6984 | set dummy nmedit; ac_word=$2 | |
6985 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6986 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6987 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then | |
6988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6989 | else | |
6990 | if test -n "$ac_ct_NMEDIT"; then | |
6991 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
6992 | else | |
6993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6994 | for as_dir in $PATH | |
6995 | do | |
6996 | IFS=$as_save_IFS | |
6997 | test -z "$as_dir" && as_dir=. | |
6998 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6999 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7000 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
7001 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7002 | break 2 | |
7003 | fi | |
7004 | done | |
7005 | done | |
7006 | ||
7007 | test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":" | |
7008 | fi | |
7009 | fi | |
7010 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7011 | if test -n "$ac_ct_NMEDIT"; then | |
7012 | echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 | |
7013 | echo "${ECHO_T}$ac_ct_NMEDIT" >&6 | |
7014 | else | |
7015 | echo "$as_me:$LINENO: result: no" >&5 | |
7016 | echo "${ECHO_T}no" >&6 | |
7017 | fi | |
7018 | ||
7019 | NMEDIT=$ac_ct_NMEDIT | |
7020 | else | |
7021 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7022 | fi | |
7023 | ||
7024 | if test -n "$ac_tool_prefix"; then | |
7025 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7026 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7027 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7028 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7029 | if test "${ac_cv_prog_LIPO+set}" = set; then | |
7030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7031 | else | |
7032 | if test -n "$LIPO"; then | |
7033 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7034 | else | |
7035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7036 | for as_dir in $PATH | |
7037 | do | |
7038 | IFS=$as_save_IFS | |
7039 | test -z "$as_dir" && as_dir=. | |
7040 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7041 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7042 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
7043 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7044 | break 2 | |
7045 | fi | |
7046 | done | |
7047 | done | |
7048 | ||
7049 | fi | |
7050 | fi | |
7051 | LIPO=$ac_cv_prog_LIPO | |
7052 | if test -n "$LIPO"; then | |
7053 | echo "$as_me:$LINENO: result: $LIPO" >&5 | |
7054 | echo "${ECHO_T}$LIPO" >&6 | |
7055 | else | |
7056 | echo "$as_me:$LINENO: result: no" >&5 | |
7057 | echo "${ECHO_T}no" >&6 | |
7058 | fi | |
7059 | ||
7060 | fi | |
7061 | if test -z "$ac_cv_prog_LIPO"; then | |
7062 | ac_ct_LIPO=$LIPO | |
7063 | # Extract the first word of "lipo", so it can be a program name with args. | |
7064 | set dummy lipo; ac_word=$2 | |
7065 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7066 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7067 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then | |
7068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7069 | else | |
7070 | if test -n "$ac_ct_LIPO"; then | |
7071 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7072 | else | |
7073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7074 | for as_dir in $PATH | |
7075 | do | |
7076 | IFS=$as_save_IFS | |
7077 | test -z "$as_dir" && as_dir=. | |
7078 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7079 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7080 | ac_cv_prog_ac_ct_LIPO="lipo" | |
7081 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7082 | break 2 | |
7083 | fi | |
7084 | done | |
7085 | done | |
7086 | ||
7087 | test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":" | |
7088 | fi | |
7089 | fi | |
7090 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7091 | if test -n "$ac_ct_LIPO"; then | |
7092 | echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 | |
7093 | echo "${ECHO_T}$ac_ct_LIPO" >&6 | |
7094 | else | |
7095 | echo "$as_me:$LINENO: result: no" >&5 | |
7096 | echo "${ECHO_T}no" >&6 | |
7097 | fi | |
7098 | ||
7099 | LIPO=$ac_ct_LIPO | |
7100 | else | |
7101 | LIPO="$ac_cv_prog_LIPO" | |
7102 | fi | |
7103 | ||
7104 | if test -n "$ac_tool_prefix"; then | |
7105 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7106 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7107 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7108 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7109 | if test "${ac_cv_prog_OTOOL+set}" = set; then | |
7110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7111 | else | |
7112 | if test -n "$OTOOL"; then | |
7113 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7114 | else | |
7115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7116 | for as_dir in $PATH | |
7117 | do | |
7118 | IFS=$as_save_IFS | |
7119 | test -z "$as_dir" && as_dir=. | |
7120 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7121 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7122 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
7123 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7124 | break 2 | |
7125 | fi | |
7126 | done | |
7127 | done | |
7128 | ||
7129 | fi | |
7130 | fi | |
7131 | OTOOL=$ac_cv_prog_OTOOL | |
7132 | if test -n "$OTOOL"; then | |
7133 | echo "$as_me:$LINENO: result: $OTOOL" >&5 | |
7134 | echo "${ECHO_T}$OTOOL" >&6 | |
7135 | else | |
7136 | echo "$as_me:$LINENO: result: no" >&5 | |
7137 | echo "${ECHO_T}no" >&6 | |
7138 | fi | |
7139 | ||
7140 | fi | |
7141 | if test -z "$ac_cv_prog_OTOOL"; then | |
7142 | ac_ct_OTOOL=$OTOOL | |
7143 | # Extract the first word of "otool", so it can be a program name with args. | |
7144 | set dummy otool; ac_word=$2 | |
7145 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7146 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7147 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then | |
7148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7149 | else | |
7150 | if test -n "$ac_ct_OTOOL"; then | |
7151 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7152 | else | |
7153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7154 | for as_dir in $PATH | |
7155 | do | |
7156 | IFS=$as_save_IFS | |
7157 | test -z "$as_dir" && as_dir=. | |
7158 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7159 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7160 | ac_cv_prog_ac_ct_OTOOL="otool" | |
7161 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7162 | break 2 | |
7163 | fi | |
7164 | done | |
7165 | done | |
7166 | ||
7167 | test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":" | |
7168 | fi | |
7169 | fi | |
7170 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7171 | if test -n "$ac_ct_OTOOL"; then | |
7172 | echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 | |
7173 | echo "${ECHO_T}$ac_ct_OTOOL" >&6 | |
7174 | else | |
7175 | echo "$as_me:$LINENO: result: no" >&5 | |
7176 | echo "${ECHO_T}no" >&6 | |
7177 | fi | |
7178 | ||
7179 | OTOOL=$ac_ct_OTOOL | |
7180 | else | |
7181 | OTOOL="$ac_cv_prog_OTOOL" | |
7182 | fi | |
7183 | ||
7184 | if test -n "$ac_tool_prefix"; then | |
7185 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7186 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
7187 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7188 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7189 | if test "${ac_cv_prog_OTOOL64+set}" = set; then | |
7190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7191 | else | |
7192 | if test -n "$OTOOL64"; then | |
7193 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7194 | else | |
7195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7196 | for as_dir in $PATH | |
7197 | do | |
7198 | IFS=$as_save_IFS | |
7199 | test -z "$as_dir" && as_dir=. | |
7200 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7201 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7202 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
7203 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7204 | break 2 | |
7205 | fi | |
7206 | done | |
7207 | done | |
7208 | ||
7209 | fi | |
7210 | fi | |
7211 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7212 | if test -n "$OTOOL64"; then | |
7213 | echo "$as_me:$LINENO: result: $OTOOL64" >&5 | |
7214 | echo "${ECHO_T}$OTOOL64" >&6 | |
7215 | else | |
7216 | echo "$as_me:$LINENO: result: no" >&5 | |
7217 | echo "${ECHO_T}no" >&6 | |
7218 | fi | |
7219 | ||
7220 | fi | |
7221 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7222 | ac_ct_OTOOL64=$OTOOL64 | |
7223 | # Extract the first word of "otool64", so it can be a program name with args. | |
7224 | set dummy otool64; ac_word=$2 | |
7225 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7226 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7227 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then | |
7228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7229 | else | |
7230 | if test -n "$ac_ct_OTOOL64"; then | |
7231 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7232 | else | |
7233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7234 | for as_dir in $PATH | |
7235 | do | |
7236 | IFS=$as_save_IFS | |
7237 | test -z "$as_dir" && as_dir=. | |
7238 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7239 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7240 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
7241 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7242 | break 2 | |
7243 | fi | |
7244 | done | |
7245 | done | |
7246 | ||
7247 | test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":" | |
7248 | fi | |
7249 | fi | |
7250 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7251 | if test -n "$ac_ct_OTOOL64"; then | |
7252 | echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 | |
7253 | echo "${ECHO_T}$ac_ct_OTOOL64" >&6 | |
7254 | else | |
7255 | echo "$as_me:$LINENO: result: no" >&5 | |
7256 | echo "${ECHO_T}no" >&6 | |
7257 | fi | |
7258 | ||
7259 | OTOOL64=$ac_ct_OTOOL64 | |
7260 | else | |
7261 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7262 | fi | |
7263 | ||
7264 | ||
7265 | ||
7266 | ||
7267 | ||
7268 | ||
7269 | ||
7270 | ||
7271 | ||
7272 | ||
7273 | ||
7274 | ||
7275 | ||
7276 | ||
7277 | ||
7278 | ||
7279 | ||
7280 | ||
7281 | ||
7282 | ||
7283 | ||
7284 | ||
7285 | ||
7286 | ||
7287 | ||
7288 | ||
7289 | ||
7290 | echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 | |
7291 | echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6 | |
7292 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
7293 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7294 | else | |
7295 | lt_cv_apple_cc_single_mod=no | |
7296 | if test -z "${LT_MULTI_MODULE}"; then | |
7297 | # By default we will add the -single_module flag. You can override | |
7298 | # by either setting the environment variable LT_MULTI_MODULE | |
7299 | # non-empty at configure time, or by adding -multi_module to the | |
7300 | # link flags. | |
7301 | rm -rf libconftest.dylib* | |
7302 | echo "int foo(void){return 1;}" > conftest.c | |
7303 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7304 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7305 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7306 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7307 | _lt_result=$? | |
7308 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7309 | lt_cv_apple_cc_single_mod=yes | |
7310 | else | |
7311 | cat conftest.err >&5 | |
7312 | fi | |
7313 | rm -rf libconftest.dylib* | |
7314 | rm -f conftest.* | |
7315 | fi | |
7316 | fi | |
7317 | echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 | |
7318 | echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6 | |
7319 | echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 | |
7320 | echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6 | |
7321 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then | |
7322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7323 | else | |
7324 | lt_cv_ld_exported_symbols_list=no | |
7325 | save_LDFLAGS=$LDFLAGS | |
7326 | echo "_main" > conftest.sym | |
7327 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
7328 | cat >conftest.$ac_ext <<_ACEOF | |
7329 | /* confdefs.h. */ | |
7330 | _ACEOF | |
7331 | cat confdefs.h >>conftest.$ac_ext | |
7332 | cat >>conftest.$ac_ext <<_ACEOF | |
7333 | /* end confdefs.h. */ | |
7334 | ||
7335 | int | |
7336 | main () | |
7337 | { | |
7338 | ||
7339 | ; | |
7340 | return 0; | |
7341 | } | |
7342 | _ACEOF | |
7343 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7344 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7345 | (eval $ac_link) 2>conftest.er1 | |
7346 | ac_status=$? | |
7347 | grep -v '^ *+' conftest.er1 >conftest.err | |
7348 | rm -f conftest.er1 | |
7349 | cat conftest.err >&5 | |
7350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7351 | (exit $ac_status); } && | |
7352 | { ac_try='test -z "$ac_c_werror_flag" | |
7353 | || test ! -s conftest.err' | |
7354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7355 | (eval $ac_try) 2>&5 | |
7356 | ac_status=$? | |
7357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7358 | (exit $ac_status); }; } && | |
7359 | { ac_try='test -s conftest$ac_exeext' | |
7360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7361 | (eval $ac_try) 2>&5 | |
7362 | ac_status=$? | |
7363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7364 | (exit $ac_status); }; }; then | |
7365 | lt_cv_ld_exported_symbols_list=yes | |
7366 | else | |
7367 | echo "$as_me: failed program was:" >&5 | |
7368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7369 | ||
7370 | lt_cv_ld_exported_symbols_list=no | |
7371 | fi | |
7372 | rm -f conftest.err conftest.$ac_objext \ | |
7373 | conftest$ac_exeext conftest.$ac_ext | |
7374 | LDFLAGS="$save_LDFLAGS" | |
7375 | ||
7376 | fi | |
7377 | echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 | |
7378 | echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6 | |
7379 | case $host_os in | |
7380 | rhapsody* | darwin1.[012]) | |
7381 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7382 | darwin1.*) | |
7383 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7384 | darwin*) # darwin 5.x on | |
7385 | # if running on 10.5 or later, the deployment target defaults | |
7386 | # to the OS version, if on x86, and 10.4, the deployment | |
7387 | # target defaults to 10.4. Don't you love it? | |
7388 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7389 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7390 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7391 | 10.[012]*) | |
7392 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7393 | 10.*) | |
7394 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7395 | esac | |
7396 | ;; | |
7397 | esac | |
7398 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7399 | _lt_dar_single_mod='$single_module' | |
7400 | fi | |
7401 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7402 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7403 | else | |
7404 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7405 | fi | |
7406 | if test "$DSYMUTIL" != ":"; then | |
7407 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
7408 | else | |
7409 | _lt_dsymutil= | |
7410 | fi | |
7411 | ;; | |
7412 | esac | |
7413 | ||
7414 | ||
7415 | for ac_header in dlfcn.h | |
7416 | do | |
7417 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7418 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7419 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7420 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7422 | else | |
7423 | cat >conftest.$ac_ext <<_ACEOF | |
7424 | /* confdefs.h. */ | |
7425 | _ACEOF | |
7426 | cat confdefs.h >>conftest.$ac_ext | |
7427 | cat >>conftest.$ac_ext <<_ACEOF | |
7428 | /* end confdefs.h. */ | |
7429 | $ac_includes_default | |
7430 | ||
7431 | #include <$ac_header> | |
7432 | _ACEOF | |
7433 | rm -f conftest.$ac_objext | |
7434 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7435 | (eval $ac_compile) 2>conftest.er1 | |
7436 | ac_status=$? | |
7437 | grep -v '^ *+' conftest.er1 >conftest.err | |
7438 | rm -f conftest.er1 | |
7439 | cat conftest.err >&5 | |
7440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7441 | (exit $ac_status); } && | |
7442 | { ac_try='test -z "$ac_c_werror_flag" | |
7443 | || test ! -s conftest.err' | |
7444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7445 | (eval $ac_try) 2>&5 | |
7446 | ac_status=$? | |
7447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7448 | (exit $ac_status); }; } && | |
7449 | { ac_try='test -s conftest.$ac_objext' | |
7450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7451 | (eval $ac_try) 2>&5 | |
7452 | ac_status=$? | |
7453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7454 | (exit $ac_status); }; }; then | |
7455 | eval "$as_ac_Header=yes" | |
7456 | else | |
7457 | echo "$as_me: failed program was:" >&5 | |
7458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7459 | ||
7460 | eval "$as_ac_Header=no" | |
7461 | fi | |
7462 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7463 | fi | |
7464 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7465 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7466 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7467 | cat >>confdefs.h <<_ACEOF | |
7468 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7469 | _ACEOF | |
7470 | ||
7471 | fi | |
7472 | ||
7473 | done | |
7474 | ||
7475 | ||
7476 | ||
7477 | # Set options | |
7478 | ||
7479 | ||
7480 | ||
7481 | enable_dlopen=no | |
7482 | ||
7483 | ||
7484 | enable_win32_dll=no | |
7485 | ||
7486 | ||
7487 | # Check whether --enable-shared or --disable-shared was given. | |
7488 | if test "${enable_shared+set}" = set; then | |
7489 | enableval="$enable_shared" | |
7490 | p=${PACKAGE-default} | |
7491 | case $enableval in | |
7492 | yes) enable_shared=yes ;; | |
7493 | no) enable_shared=no ;; | |
7494 | *) | |
7495 | enable_shared=no | |
7496 | # Look at the argument we got. We use all the common list separators. | |
7497 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7498 | for pkg in $enableval; do | |
7499 | IFS="$lt_save_ifs" | |
7500 | if test "X$pkg" = "X$p"; then | |
7501 | enable_shared=yes | |
7502 | fi | |
7503 | done | |
7504 | IFS="$lt_save_ifs" | |
7505 | ;; | |
7506 | esac | |
7507 | else | |
7508 | enable_shared=yes | |
7509 | fi; | |
7510 | ||
7511 | ||
7512 | ||
7513 | ||
7514 | ||
7515 | ||
7516 | ||
7517 | ||
7518 | # Check whether --enable-static or --disable-static was given. | |
7519 | if test "${enable_static+set}" = set; then | |
7520 | enableval="$enable_static" | |
7521 | p=${PACKAGE-default} | |
7522 | case $enableval in | |
7523 | yes) enable_static=yes ;; | |
7524 | no) enable_static=no ;; | |
7525 | *) | |
7526 | enable_static=no | |
7527 | # Look at the argument we got. We use all the common list separators. | |
7528 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7529 | for pkg in $enableval; do | |
7530 | IFS="$lt_save_ifs" | |
7531 | if test "X$pkg" = "X$p"; then | |
7532 | enable_static=yes | |
7533 | fi | |
7534 | done | |
7535 | IFS="$lt_save_ifs" | |
7536 | ;; | |
7537 | esac | |
7538 | else | |
7539 | enable_static=yes | |
7540 | fi; | |
7541 | ||
7542 | ||
7543 | ||
7544 | ||
7545 | ||
7546 | ||
7547 | ||
7548 | ||
7549 | ||
7550 | # Check whether --with-pic or --without-pic was given. | |
7551 | if test "${with_pic+set}" = set; then | |
7552 | withval="$with_pic" | |
7553 | pic_mode="$withval" | |
7554 | else | |
7555 | pic_mode=default | |
7556 | fi; | |
7557 | ||
7558 | test -z "$pic_mode" && pic_mode=default | |
7559 | ||
7560 | ||
7561 | ||
7562 | ||
7563 | ||
7564 | ||
7565 | ||
7566 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
7567 | if test "${enable_fast_install+set}" = set; then | |
7568 | enableval="$enable_fast_install" | |
7569 | p=${PACKAGE-default} | |
7570 | case $enableval in | |
7571 | yes) enable_fast_install=yes ;; | |
7572 | no) enable_fast_install=no ;; | |
7573 | *) | |
7574 | enable_fast_install=no | |
7575 | # Look at the argument we got. We use all the common list separators. | |
7576 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7577 | for pkg in $enableval; do | |
7578 | IFS="$lt_save_ifs" | |
7579 | if test "X$pkg" = "X$p"; then | |
7580 | enable_fast_install=yes | |
7581 | fi | |
7582 | done | |
7583 | IFS="$lt_save_ifs" | |
7357c5b6 AM |
7584 | ;; |
7585 | esac | |
718a6fd8 SE |
7586 | else |
7587 | enable_fast_install=yes | |
7588 | fi; | |
20e95c23 | 7589 | |
20e95c23 DJ |
7590 | |
7591 | ||
42ecbf5e | 7592 | |
d7040cdb | 7593 | |
20e95c23 | 7594 | |
d7040cdb | 7595 | |
d7040cdb SE |
7596 | |
7597 | ||
7598 | ||
7599 | # This can be used to rebuild libtool when needed | |
7600 | LIBTOOL_DEPS="$ltmain" | |
7601 | ||
7602 | # Always use our own libtool. | |
7603 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
7604 | ||
7605 | ||
7606 | ||
7607 | ||
7608 | ||
7609 | ||
7610 | ||
7611 | ||
7612 | ||
7613 | ||
7614 | ||
7615 | ||
7616 | ||
7617 | ||
7618 | ||
7619 | ||
7620 | ||
7621 | ||
7622 | ||
7623 | ||
7624 | ||
7625 | ||
7626 | ||
7627 | ||
7628 | ||
7629 | test -z "$LN_S" && LN_S="ln -s" | |
7630 | ||
7631 | ||
7632 | ||
7633 | ||
7634 | ||
7635 | ||
7636 | ||
7637 | ||
7638 | ||
7639 | ||
7640 | ||
7641 | ||
7642 | ||
7643 | ||
7644 | if test -n "${ZSH_VERSION+set}" ; then | |
7645 | setopt NO_GLOB_SUBST | |
7646 | fi | |
7647 | ||
7648 | echo "$as_me:$LINENO: checking for objdir" >&5 | |
7649 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | |
7650 | if test "${lt_cv_objdir+set}" = set; then | |
20e95c23 DJ |
7651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7652 | else | |
d7040cdb SE |
7653 | rm -f .libs 2>/dev/null |
7654 | mkdir .libs 2>/dev/null | |
7655 | if test -d .libs; then | |
7656 | lt_cv_objdir=.libs | |
42ecbf5e | 7657 | else |
d7040cdb SE |
7658 | # MS-DOS does not allow filenames that begin with a dot. |
7659 | lt_cv_objdir=_libs | |
7660 | fi | |
7661 | rmdir .libs 2>/dev/null | |
42ecbf5e | 7662 | fi |
d7040cdb SE |
7663 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
7664 | echo "${ECHO_T}$lt_cv_objdir" >&6 | |
7665 | objdir=$lt_cv_objdir | |
42ecbf5e | 7666 | |
d7040cdb SE |
7667 | |
7668 | ||
7669 | ||
7670 | ||
7671 | cat >>confdefs.h <<_ACEOF | |
7672 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7673 | _ACEOF | |
7674 | ||
7675 | ||
7676 | ||
7677 | ||
7678 | ||
7679 | ||
7680 | ||
7681 | ||
7682 | ||
7683 | ||
7684 | ||
7685 | ||
7686 | ||
7687 | ||
7688 | ||
7689 | ||
7690 | ||
7691 | case $host_os in | |
7692 | aix3*) | |
7693 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7694 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7695 | # vanish in a puff of smoke. | |
7696 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7697 | COLLECT_NAMES= | |
7698 | export COLLECT_NAMES | |
7699 | fi | |
7700 | ;; | |
7701 | esac | |
7702 | ||
7703 | # Sed substitution that helps us do robust quoting. It backslashifies | |
7704 | # metacharacters that are still active within double-quoted strings. | |
7705 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
7706 | ||
7707 | # Same as above, but do not quote variable references. | |
7708 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
7709 | ||
7710 | # Sed substitution to delay expansion of an escaped shell variable in a | |
7711 | # double_quote_subst'ed string. | |
7712 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
7713 | ||
7714 | # Sed substitution to delay expansion of an escaped single quote. | |
7715 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
7716 | ||
7717 | # Sed substitution to avoid accidental globbing in evaled expressions | |
7718 | no_glob_subst='s/\*/\\\*/g' | |
7719 | ||
7720 | # Global variables: | |
7721 | ofile=libtool | |
7722 | can_build_shared=yes | |
7723 | ||
7724 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
7725 | # which needs '.lib'). | |
7726 | libext=a | |
7727 | ||
7728 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
7729 | ||
7730 | old_CC="$CC" | |
7731 | old_CFLAGS="$CFLAGS" | |
7732 | ||
7733 | # Set sane defaults for various variables | |
7734 | test -z "$CC" && CC=cc | |
7735 | test -z "$LTCC" && LTCC=$CC | |
7736 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7737 | test -z "$LD" && LD=ld | |
7738 | test -z "$ac_objext" && ac_objext=o | |
7739 | ||
7740 | for cc_temp in $compiler""; do | |
7741 | case $cc_temp in | |
7742 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7743 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7744 | \-*) ;; | |
7745 | *) break;; | |
7746 | esac | |
7747 | done | |
7748 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
7749 | ||
7750 | ||
7751 | # Only perform the check for file, if the check method requires it | |
7752 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7753 | case $deplibs_check_method in | |
7754 | file_magic*) | |
7755 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
7756 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
7757 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
7758 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
42ecbf5e DJ |
7759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7760 | else | |
d7040cdb SE |
7761 | case $MAGIC_CMD in |
7762 | [\\/*] | ?:[\\/]*) | |
7763 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
20e95c23 | 7764 | ;; |
d7040cdb SE |
7765 | *) |
7766 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7767 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7768 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7769 | for ac_dir in $ac_dummy; do | |
7770 | IFS="$lt_save_ifs" | |
7771 | test -z "$ac_dir" && ac_dir=. | |
7772 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7773 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7774 | if test -n "$file_magic_test_file"; then | |
7775 | case $deplibs_check_method in | |
7776 | "file_magic "*) | |
7777 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7778 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7779 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7780 | $EGREP "$file_magic_regex" > /dev/null; then | |
7781 | : | |
7782 | else | |
7783 | cat <<_LT_EOF 1>&2 | |
42ecbf5e | 7784 | |
d7040cdb SE |
7785 | *** Warning: the command libtool uses to detect shared libraries, |
7786 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7787 | *** The result is that libtool may fail to recognize shared libraries | |
7788 | *** as such. This will affect the creation of libtool libraries that | |
7789 | *** depend on shared libraries, but programs linked with such libtool | |
7790 | *** libraries will work regardless of this problem. Nevertheless, you | |
7791 | *** may want to report the problem to your system manager and/or to | |
7792 | *** bug-libtool@gnu.org | |
7793 | ||
7794 | _LT_EOF | |
7795 | fi ;; | |
7796 | esac | |
7797 | fi | |
7798 | break | |
7799 | fi | |
7800 | done | |
7801 | IFS="$lt_save_ifs" | |
7802 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
20e95c23 DJ |
7803 | ;; |
7804 | esac | |
42ecbf5e | 7805 | fi |
20e95c23 | 7806 | |
d7040cdb SE |
7807 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7808 | if test -n "$MAGIC_CMD"; then | |
7809 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7810 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
42ecbf5e DJ |
7811 | else |
7812 | echo "$as_me:$LINENO: result: no" >&5 | |
7813 | echo "${ECHO_T}no" >&6 | |
7814 | fi | |
7815 | ||
20e95c23 DJ |
7816 | |
7817 | ||
42ecbf5e | 7818 | |
20e95c23 | 7819 | |
d7040cdb SE |
7820 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
7821 | if test -n "$ac_tool_prefix"; then | |
7822 | echo "$as_me:$LINENO: checking for file" >&5 | |
7823 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
7824 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
42ecbf5e DJ |
7825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7826 | else | |
d7040cdb SE |
7827 | case $MAGIC_CMD in |
7828 | [\\/*] | ?:[\\/]*) | |
7829 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7830 | ;; | |
7831 | *) | |
7832 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7833 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7834 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7835 | for ac_dir in $ac_dummy; do | |
7836 | IFS="$lt_save_ifs" | |
7837 | test -z "$ac_dir" && ac_dir=. | |
7838 | if test -f $ac_dir/file; then | |
7839 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7840 | if test -n "$file_magic_test_file"; then | |
7841 | case $deplibs_check_method in | |
7842 | "file_magic "*) | |
7843 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7844 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7845 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7846 | $EGREP "$file_magic_regex" > /dev/null; then | |
7847 | : | |
7848 | else | |
7849 | cat <<_LT_EOF 1>&2 | |
7850 | ||
7851 | *** Warning: the command libtool uses to detect shared libraries, | |
7852 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7853 | *** The result is that libtool may fail to recognize shared libraries | |
7854 | *** as such. This will affect the creation of libtool libraries that | |
7855 | *** depend on shared libraries, but programs linked with such libtool | |
7856 | *** libraries will work regardless of this problem. Nevertheless, you | |
7857 | *** may want to report the problem to your system manager and/or to | |
7858 | *** bug-libtool@gnu.org | |
7859 | ||
7860 | _LT_EOF | |
7861 | fi ;; | |
7862 | esac | |
7863 | fi | |
7864 | break | |
7865 | fi | |
7866 | done | |
7867 | IFS="$lt_save_ifs" | |
7868 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7869 | ;; | |
20e95c23 DJ |
7870 | esac |
7871 | fi | |
d7040cdb SE |
7872 | |
7873 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7874 | if test -n "$MAGIC_CMD"; then | |
7875 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7876 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
20e95c23 DJ |
7877 | else |
7878 | echo "$as_me:$LINENO: result: no" >&5 | |
7879 | echo "${ECHO_T}no" >&6 | |
7880 | fi | |
7881 | ||
20e95c23 | 7882 | |
42ecbf5e | 7883 | else |
d7040cdb | 7884 | MAGIC_CMD=: |
42ecbf5e | 7885 | fi |
42ecbf5e | 7886 | fi |
42ecbf5e | 7887 | |
20e95c23 | 7888 | fi |
d7040cdb SE |
7889 | ;; |
7890 | esac | |
42ecbf5e | 7891 | |
d7040cdb | 7892 | # Use C for the default configuration in the libtool script |
42ecbf5e | 7893 | |
d7040cdb SE |
7894 | lt_save_CC="$CC" |
7895 | ac_ext=c | |
7896 | ac_cpp='$CPP $CPPFLAGS' | |
7897 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7898 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7899 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
42ecbf5e | 7900 | |
42ecbf5e | 7901 | |
d7040cdb SE |
7902 | # Source file extension for C test sources. |
7903 | ac_ext=c | |
42ecbf5e | 7904 | |
d7040cdb SE |
7905 | # Object file extension for compiled C test sources. |
7906 | objext=o | |
7907 | objext=$objext | |
42ecbf5e | 7908 | |
d7040cdb SE |
7909 | # Code to be used in simple compile tests |
7910 | lt_simple_compile_test_code="int some_variable = 0;" | |
42ecbf5e | 7911 | |
d7040cdb SE |
7912 | # Code to be used in simple link tests |
7913 | lt_simple_link_test_code='int main(){return(0);}' | |
42ecbf5e | 7914 | |
ac48eca1 | 7915 | |
42ecbf5e | 7916 | |
42ecbf5e | 7917 | |
d5fbea21 | 7918 | |
d5fbea21 DJ |
7919 | |
7920 | ||
d7040cdb SE |
7921 | # If no C compiler was specified, use CC. |
7922 | LTCC=${LTCC-"$CC"} | |
20e95c23 | 7923 | |
d7040cdb SE |
7924 | # If no C compiler flags were specified, use CFLAGS. |
7925 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
42ecbf5e | 7926 | |
d7040cdb SE |
7927 | # Allow CC to be a program name with arguments. |
7928 | compiler=$CC | |
252b5132 | 7929 | |
d7040cdb SE |
7930 | # Save the default compiler, since it gets overwritten when the other |
7931 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
7932 | compiler_DEFAULT=$CC | |
42ecbf5e | 7933 | |
d7040cdb SE |
7934 | # save warnings/boilerplate of simple test code |
7935 | ac_outfile=conftest.$ac_objext | |
7936 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
7937 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7938 | _lt_compiler_boilerplate=`cat conftest.err` | |
7939 | $RM conftest* | |
252b5132 | 7940 | |
d7040cdb SE |
7941 | ac_outfile=conftest.$ac_objext |
7942 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
7943 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7944 | _lt_linker_boilerplate=`cat conftest.err` | |
718a6fd8 | 7945 | $RM -r conftest* |
252b5132 | 7946 | |
42ecbf5e | 7947 | |
d7040cdb SE |
7948 | ## CAVEAT EMPTOR: |
7949 | ## There is no encapsulation within the following macros, do not change | |
7950 | ## the running order or otherwise move them around unless you know exactly | |
7951 | ## what you are doing... | |
7952 | if test -n "$compiler"; then | |
252b5132 | 7953 | |
d7040cdb | 7954 | lt_prog_compiler_no_builtin_flag= |
252b5132 | 7955 | |
d7040cdb SE |
7956 | if test "$GCC" = yes; then |
7957 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
d15b04bd | 7958 | |
d7040cdb SE |
7959 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7960 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
7961 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
20e95c23 | 7962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 7963 | else |
d7040cdb SE |
7964 | lt_cv_prog_compiler_rtti_exceptions=no |
7965 | ac_outfile=conftest.$ac_objext | |
7966 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7967 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
7968 | # Insert the option either (1) after the last *FLAGS variable, or | |
7969 | # (2) before a word containing "conftest.", or (3) at the end. | |
7970 | # Note that $ac_compile itself does not contain backslashes and begins | |
7971 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7972 | # The option is referenced via a variable to avoid confusing sed. | |
7973 | lt_compile=`echo "$ac_compile" | $SED \ | |
7974 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7975 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7976 | -e 's:$: $lt_compiler_flag:'` | |
29670fb9 | 7977 | (eval echo "\"\$as_me:7977: $lt_compile\"" >&5) |
d7040cdb SE |
7978 | (eval "$lt_compile" 2>conftest.err) |
7979 | ac_status=$? | |
7980 | cat conftest.err >&5 | |
29670fb9 | 7981 | echo "$as_me:7981: \$? = $ac_status" >&5 |
d7040cdb SE |
7982 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7983 | # The compiler can only warn and ignore the option if not recognized | |
7984 | # So say no if there are warnings other than the usual output. | |
7985 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7986 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7987 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7988 | lt_cv_prog_compiler_rtti_exceptions=yes | |
7989 | fi | |
7990 | fi | |
7991 | $RM conftest* | |
42ecbf5e | 7992 | |
252b5132 | 7993 | fi |
d7040cdb SE |
7994 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
7995 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
7996 | ||
7997 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
7998 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
20e95c23 | 7999 | else |
d7040cdb | 8000 | : |
252b5132 | 8001 | fi |
252b5132 RH |
8002 | |
8003 | fi | |
d7040cdb SE |
8004 | |
8005 | ||
8006 | ||
8007 | ||
8008 | ||
8009 | ||
8010 | lt_prog_compiler_wl= | |
8011 | lt_prog_compiler_pic= | |
8012 | lt_prog_compiler_static= | |
8013 | ||
8014 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
8015 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
8016 | ||
8017 | if test "$GCC" = yes; then | |
8018 | lt_prog_compiler_wl='-Wl,' | |
8019 | lt_prog_compiler_static='-static' | |
8020 | ||
8021 | case $host_os in | |
8022 | aix*) | |
8023 | # All AIX code is PIC. | |
8024 | if test "$host_cpu" = ia64; then | |
8025 | # AIX 5 now supports IA64 processor | |
8026 | lt_prog_compiler_static='-Bstatic' | |
8027 | fi | |
8028 | ;; | |
8029 | ||
8030 | amigaos*) | |
718a6fd8 SE |
8031 | case $host_cpu in |
8032 | powerpc) | |
8033 | # see comment about AmigaOS4 .so support | |
8034 | lt_prog_compiler_pic='-fPIC' | |
8035 | ;; | |
8036 | m68k) | |
8037 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8038 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8039 | # like `-m68040'. | |
8040 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8041 | ;; | |
8042 | esac | |
d7040cdb SE |
8043 | ;; |
8044 | ||
8045 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8046 | # PIC is the default for these OSes. | |
8047 | ;; | |
8048 | ||
718a6fd8 | 8049 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
d7040cdb SE |
8050 | # This hack is so that the source file can tell whether it is being |
8051 | # built for inclusion in a dll (and should export symbols for example). | |
8052 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8053 | # (--disable-auto-import) libraries | |
8054 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8055 | ;; | |
8056 | ||
8057 | darwin* | rhapsody*) | |
8058 | # PIC is the default on this platform | |
8059 | # Common symbols not allowed in MH_DYLIB files | |
8060 | lt_prog_compiler_pic='-fno-common' | |
8061 | ;; | |
8062 | ||
8063 | hpux*) | |
718a6fd8 SE |
8064 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
8065 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8066 | # sets the default TLS model and affects inlining. | |
d7040cdb | 8067 | case $host_cpu in |
718a6fd8 | 8068 | hppa*64*) |
d7040cdb SE |
8069 | # +Z the default |
8070 | ;; | |
8071 | *) | |
8072 | lt_prog_compiler_pic='-fPIC' | |
8073 | ;; | |
8074 | esac | |
8075 | ;; | |
8076 | ||
8077 | interix[3-9]*) | |
8078 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8079 | # Instead, we relocate shared libraries at runtime. | |
8080 | ;; | |
8081 | ||
8082 | msdosdjgpp*) | |
8083 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8084 | # on systems that don't support them. | |
8085 | lt_prog_compiler_can_build_shared=no | |
8086 | enable_shared=no | |
8087 | ;; | |
8088 | ||
8089 | *nto* | *qnx*) | |
8090 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8091 | # it will coredump. | |
8092 | lt_prog_compiler_pic='-fPIC -shared' | |
8093 | ;; | |
8094 | ||
8095 | sysv4*MP*) | |
8096 | if test -d /usr/nec; then | |
8097 | lt_prog_compiler_pic=-Kconform_pic | |
8098 | fi | |
8099 | ;; | |
8100 | ||
8101 | *) | |
8102 | lt_prog_compiler_pic='-fPIC' | |
8103 | ;; | |
8104 | esac | |
8105 | else | |
8106 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8107 | case $host_os in | |
8108 | aix*) | |
8109 | lt_prog_compiler_wl='-Wl,' | |
8110 | if test "$host_cpu" = ia64; then | |
8111 | # AIX 5 now supports IA64 processor | |
8112 | lt_prog_compiler_static='-Bstatic' | |
8113 | else | |
8114 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8115 | fi | |
8116 | ;; | |
d7040cdb | 8117 | |
718a6fd8 | 8118 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
d7040cdb SE |
8119 | # This hack is so that the source file can tell whether it is being |
8120 | # built for inclusion in a dll (and should export symbols for example). | |
8121 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8122 | ;; | |
8123 | ||
8124 | hpux9* | hpux10* | hpux11*) | |
8125 | lt_prog_compiler_wl='-Wl,' | |
8126 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8127 | # not for PA HP-UX. | |
8128 | case $host_cpu in | |
8129 | hppa*64*|ia64*) | |
8130 | # +Z the default | |
8131 | ;; | |
8132 | *) | |
8133 | lt_prog_compiler_pic='+Z' | |
8134 | ;; | |
8135 | esac | |
8136 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8137 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8138 | ;; | |
8139 | ||
8140 | irix5* | irix6* | nonstopux*) | |
8141 | lt_prog_compiler_wl='-Wl,' | |
8142 | # PIC (with -KPIC) is the default. | |
8143 | lt_prog_compiler_static='-non_shared' | |
8144 | ;; | |
8145 | ||
58e24671 | 8146 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
d7040cdb | 8147 | case $cc_basename in |
718a6fd8 SE |
8148 | # old Intel for x86_64 which still supported -KPIC. |
8149 | ecc*) | |
d7040cdb SE |
8150 | lt_prog_compiler_wl='-Wl,' |
8151 | lt_prog_compiler_pic='-KPIC' | |
8152 | lt_prog_compiler_static='-static' | |
8153 | ;; | |
718a6fd8 SE |
8154 | # icc used to be incompatible with GCC. |
8155 | # ICC 10 doesn't accept -KPIC any more. | |
8156 | icc* | ifort*) | |
8157 | lt_prog_compiler_wl='-Wl,' | |
8158 | lt_prog_compiler_pic='-fPIC' | |
8159 | lt_prog_compiler_static='-static' | |
8160 | ;; | |
8161 | # Lahey Fortran 8.1. | |
8162 | lf95*) | |
8163 | lt_prog_compiler_wl='-Wl,' | |
8164 | lt_prog_compiler_pic='--shared' | |
8165 | lt_prog_compiler_static='--static' | |
8166 | ;; | |
d7040cdb SE |
8167 | pgcc* | pgf77* | pgf90* | pgf95*) |
8168 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8169 | # which looks to be a dead project) | |
8170 | lt_prog_compiler_wl='-Wl,' | |
8171 | lt_prog_compiler_pic='-fpic' | |
8172 | lt_prog_compiler_static='-Bstatic' | |
8173 | ;; | |
8174 | ccc*) | |
8175 | lt_prog_compiler_wl='-Wl,' | |
8176 | # All Alpha code is PIC. | |
8177 | lt_prog_compiler_static='-non_shared' | |
8178 | ;; | |
718a6fd8 SE |
8179 | xl*) |
8180 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
8181 | lt_prog_compiler_wl='-Wl,' | |
8182 | lt_prog_compiler_pic='-qpic' | |
8183 | lt_prog_compiler_static='-qstaticlink' | |
8184 | ;; | |
d7040cdb SE |
8185 | *) |
8186 | case `$CC -V 2>&1 | sed 5q` in | |
8187 | *Sun\ C*) | |
8188 | # Sun C 5.9 | |
8189 | lt_prog_compiler_pic='-KPIC' | |
8190 | lt_prog_compiler_static='-Bstatic' | |
8191 | lt_prog_compiler_wl='-Wl,' | |
8192 | ;; | |
8193 | *Sun\ F*) | |
8194 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8195 | lt_prog_compiler_pic='-KPIC' | |
8196 | lt_prog_compiler_static='-Bstatic' | |
8197 | lt_prog_compiler_wl='' | |
8198 | ;; | |
8199 | esac | |
8200 | ;; | |
8201 | esac | |
8202 | ;; | |
8203 | ||
8204 | newsos6) | |
8205 | lt_prog_compiler_pic='-KPIC' | |
8206 | lt_prog_compiler_static='-Bstatic' | |
8207 | ;; | |
8208 | ||
8209 | *nto* | *qnx*) | |
8210 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8211 | # it will coredump. | |
8212 | lt_prog_compiler_pic='-fPIC -shared' | |
8213 | ;; | |
8214 | ||
8215 | osf3* | osf4* | osf5*) | |
8216 | lt_prog_compiler_wl='-Wl,' | |
8217 | # All OSF/1 code is PIC. | |
8218 | lt_prog_compiler_static='-non_shared' | |
8219 | ;; | |
8220 | ||
8221 | rdos*) | |
8222 | lt_prog_compiler_static='-non_shared' | |
8223 | ;; | |
8224 | ||
8225 | solaris*) | |
8226 | lt_prog_compiler_pic='-KPIC' | |
8227 | lt_prog_compiler_static='-Bstatic' | |
8228 | case $cc_basename in | |
8229 | f77* | f90* | f95*) | |
8230 | lt_prog_compiler_wl='-Qoption ld ';; | |
8231 | *) | |
8232 | lt_prog_compiler_wl='-Wl,';; | |
8233 | esac | |
8234 | ;; | |
8235 | ||
8236 | sunos4*) | |
8237 | lt_prog_compiler_wl='-Qoption ld ' | |
8238 | lt_prog_compiler_pic='-PIC' | |
8239 | lt_prog_compiler_static='-Bstatic' | |
8240 | ;; | |
8241 | ||
8242 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8243 | lt_prog_compiler_wl='-Wl,' | |
8244 | lt_prog_compiler_pic='-KPIC' | |
8245 | lt_prog_compiler_static='-Bstatic' | |
8246 | ;; | |
8247 | ||
8248 | sysv4*MP*) | |
8249 | if test -d /usr/nec ;then | |
8250 | lt_prog_compiler_pic='-Kconform_pic' | |
8251 | lt_prog_compiler_static='-Bstatic' | |
8252 | fi | |
8253 | ;; | |
8254 | ||
8255 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8256 | lt_prog_compiler_wl='-Wl,' | |
8257 | lt_prog_compiler_pic='-KPIC' | |
8258 | lt_prog_compiler_static='-Bstatic' | |
8259 | ;; | |
8260 | ||
8261 | unicos*) | |
8262 | lt_prog_compiler_wl='-Wl,' | |
8263 | lt_prog_compiler_can_build_shared=no | |
8264 | ;; | |
8265 | ||
8266 | uts4*) | |
8267 | lt_prog_compiler_pic='-pic' | |
8268 | lt_prog_compiler_static='-Bstatic' | |
8269 | ;; | |
8270 | ||
8271 | *) | |
8272 | lt_prog_compiler_can_build_shared=no | |
8273 | ;; | |
8274 | esac | |
8275 | fi | |
8276 | ||
8277 | case $host_os in | |
8278 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8279 | *djgpp*) | |
8280 | lt_prog_compiler_pic= | |
8281 | ;; | |
8282 | *) | |
8283 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8284 | ;; | |
8285 | esac | |
8286 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
8287 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | |
8288 | ||
8289 | ||
8290 | ||
8291 | ||
8292 | ||
8293 | ||
8294 | # | |
8295 | # Check to make sure the PIC flag actually works. | |
8296 | # | |
8297 | if test -n "$lt_prog_compiler_pic"; then | |
8298 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8299 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | |
718a6fd8 | 8300 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then |
42ecbf5e DJ |
8301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8302 | else | |
718a6fd8 | 8303 | lt_cv_prog_compiler_pic_works=no |
d7040cdb SE |
8304 | ac_outfile=conftest.$ac_objext |
8305 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8306 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8307 | # Insert the option either (1) after the last *FLAGS variable, or | |
8308 | # (2) before a word containing "conftest.", or (3) at the end. | |
8309 | # Note that $ac_compile itself does not contain backslashes and begins | |
8310 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8311 | # The option is referenced via a variable to avoid confusing sed. | |
8312 | lt_compile=`echo "$ac_compile" | $SED \ | |
8313 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8314 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8315 | -e 's:$: $lt_compiler_flag:'` | |
29670fb9 | 8316 | (eval echo "\"\$as_me:8316: $lt_compile\"" >&5) |
d7040cdb SE |
8317 | (eval "$lt_compile" 2>conftest.err) |
8318 | ac_status=$? | |
8319 | cat conftest.err >&5 | |
29670fb9 | 8320 | echo "$as_me:8320: \$? = $ac_status" >&5 |
d7040cdb SE |
8321 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8322 | # The compiler can only warn and ignore the option if not recognized | |
8323 | # So say no if there are warnings other than the usual output. | |
8324 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
8325 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8326 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
718a6fd8 | 8327 | lt_cv_prog_compiler_pic_works=yes |
d7040cdb SE |
8328 | fi |
8329 | fi | |
8330 | $RM conftest* | |
42ecbf5e | 8331 | |
252b5132 | 8332 | fi |
718a6fd8 SE |
8333 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 |
8334 | echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6 | |
d7040cdb | 8335 | |
718a6fd8 | 8336 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
d7040cdb SE |
8337 | case $lt_prog_compiler_pic in |
8338 | "" | " "*) ;; | |
8339 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8340 | esac | |
252b5132 | 8341 | else |
d7040cdb SE |
8342 | lt_prog_compiler_pic= |
8343 | lt_prog_compiler_can_build_shared=no | |
252b5132 | 8344 | fi |
252b5132 RH |
8345 | |
8346 | fi | |
42ecbf5e | 8347 | |
d7040cdb SE |
8348 | |
8349 | ||
8350 | ||
8351 | ||
8352 | ||
8353 | # | |
8354 | # Check to make sure the static flag actually works. | |
8355 | # | |
8356 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
8357 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
8358 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
718a6fd8 | 8359 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then |
20e95c23 | 8360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
42ecbf5e | 8361 | else |
718a6fd8 | 8362 | lt_cv_prog_compiler_static_works=no |
d7040cdb SE |
8363 | save_LDFLAGS="$LDFLAGS" |
8364 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8365 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8366 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8367 | # The linker can only warn and ignore the option if not recognized | |
8368 | # So say no if there are warnings | |
8369 | if test -s conftest.err; then | |
8370 | # Append any errors to the config.log. | |
8371 | cat conftest.err 1>&5 | |
8372 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
8373 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8374 | if diff conftest.exp conftest.er2 >/dev/null; then | |
718a6fd8 | 8375 | lt_cv_prog_compiler_static_works=yes |
d7040cdb SE |
8376 | fi |
8377 | else | |
718a6fd8 | 8378 | lt_cv_prog_compiler_static_works=yes |
d7040cdb SE |
8379 | fi |
8380 | fi | |
718a6fd8 | 8381 | $RM -r conftest* |
d7040cdb | 8382 | LDFLAGS="$save_LDFLAGS" |
42ecbf5e | 8383 | |
42ecbf5e | 8384 | fi |
718a6fd8 SE |
8385 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 |
8386 | echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6 | |
d7040cdb | 8387 | |
718a6fd8 | 8388 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
d7040cdb SE |
8389 | : |
8390 | else | |
8391 | lt_prog_compiler_static= | |
42ecbf5e | 8392 | fi |
42ecbf5e | 8393 | |
252b5132 | 8394 | |
252b5132 | 8395 | |
42ecbf5e | 8396 | |
252b5132 | 8397 | |
20e95c23 | 8398 | |
d7040cdb SE |
8399 | |
8400 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8401 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
8402 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
42ecbf5e | 8403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 8404 | else |
d7040cdb SE |
8405 | lt_cv_prog_compiler_c_o=no |
8406 | $RM -r conftest 2>/dev/null | |
8407 | mkdir conftest | |
8408 | cd conftest | |
8409 | mkdir out | |
8410 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8411 | ||
8412 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8413 | # Insert the option either (1) after the last *FLAGS variable, or | |
8414 | # (2) before a word containing "conftest.", or (3) at the end. | |
8415 | # Note that $ac_compile itself does not contain backslashes and begins | |
8416 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8417 | lt_compile=`echo "$ac_compile" | $SED \ | |
8418 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8419 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8420 | -e 's:$: $lt_compiler_flag:'` | |
29670fb9 | 8421 | (eval echo "\"\$as_me:8421: $lt_compile\"" >&5) |
d7040cdb SE |
8422 | (eval "$lt_compile" 2>out/conftest.err) |
8423 | ac_status=$? | |
8424 | cat out/conftest.err >&5 | |
29670fb9 | 8425 | echo "$as_me:8425: \$? = $ac_status" >&5 |
d7040cdb SE |
8426 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8427 | then | |
8428 | # The compiler can only warn and ignore the option if not recognized | |
8429 | # So say no if there are warnings | |
8430 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8431 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8432 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8433 | lt_cv_prog_compiler_c_o=yes | |
8434 | fi | |
8435 | fi | |
8436 | chmod u+w . 2>&5 | |
8437 | $RM conftest* | |
8438 | # SGI C++ compiler will create directory out/ii_files/ for | |
8439 | # template instantiation | |
8440 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8441 | $RM out/* && rmdir out | |
8442 | cd .. | |
8443 | $RM -r conftest | |
8444 | $RM conftest* | |
8445 | ||
252b5132 | 8446 | fi |
d7040cdb SE |
8447 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
8448 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
42ecbf5e | 8449 | |
20e95c23 | 8450 | |
20e95c23 DJ |
8451 | |
8452 | ||
d7040cdb SE |
8453 | |
8454 | ||
8455 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8456 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
8457 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
42ecbf5e DJ |
8458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8459 | else | |
d7040cdb SE |
8460 | lt_cv_prog_compiler_c_o=no |
8461 | $RM -r conftest 2>/dev/null | |
8462 | mkdir conftest | |
8463 | cd conftest | |
8464 | mkdir out | |
8465 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8466 | ||
8467 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8468 | # Insert the option either (1) after the last *FLAGS variable, or | |
8469 | # (2) before a word containing "conftest.", or (3) at the end. | |
8470 | # Note that $ac_compile itself does not contain backslashes and begins | |
8471 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8472 | lt_compile=`echo "$ac_compile" | $SED \ | |
8473 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8474 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8475 | -e 's:$: $lt_compiler_flag:'` | |
29670fb9 | 8476 | (eval echo "\"\$as_me:8476: $lt_compile\"" >&5) |
d7040cdb SE |
8477 | (eval "$lt_compile" 2>out/conftest.err) |
8478 | ac_status=$? | |
8479 | cat out/conftest.err >&5 | |
29670fb9 | 8480 | echo "$as_me:8480: \$? = $ac_status" >&5 |
d7040cdb SE |
8481 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8482 | then | |
8483 | # The compiler can only warn and ignore the option if not recognized | |
8484 | # So say no if there are warnings | |
8485 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8486 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8487 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8488 | lt_cv_prog_compiler_c_o=yes | |
8489 | fi | |
8490 | fi | |
8491 | chmod u+w . 2>&5 | |
8492 | $RM conftest* | |
8493 | # SGI C++ compiler will create directory out/ii_files/ for | |
8494 | # template instantiation | |
8495 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8496 | $RM out/* && rmdir out | |
8497 | cd .. | |
8498 | $RM -r conftest | |
8499 | $RM conftest* | |
8500 | ||
8501 | fi | |
8502 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
8503 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
8504 | ||
8505 | ||
8506 | ||
8507 | ||
8508 | hard_links="nottested" | |
8509 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8510 | # do not overwrite the value of need_locks provided by the user | |
8511 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
8512 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
8513 | hard_links=yes | |
8514 | $RM conftest* | |
8515 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8516 | touch conftest.a | |
8517 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8518 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8519 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
8520 | echo "${ECHO_T}$hard_links" >&6 | |
8521 | if test "$hard_links" = no; then | |
8522 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
8523 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
8524 | need_locks=warn | |
8525 | fi | |
8526 | else | |
8527 | need_locks=no | |
8528 | fi | |
8529 | ||
8530 | ||
8531 | ||
8532 | ||
8533 | ||
8534 | ||
8535 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
8536 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
8537 | ||
8538 | runpath_var= | |
8539 | allow_undefined_flag= | |
8540 | always_export_symbols=no | |
8541 | archive_cmds= | |
8542 | archive_expsym_cmds= | |
8543 | compiler_needs_object=no | |
8544 | enable_shared_with_static_runtimes=no | |
8545 | export_dynamic_flag_spec= | |
8546 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8547 | hardcode_automatic=no | |
8548 | hardcode_direct=no | |
8549 | hardcode_direct_absolute=no | |
8550 | hardcode_libdir_flag_spec= | |
8551 | hardcode_libdir_flag_spec_ld= | |
8552 | hardcode_libdir_separator= | |
8553 | hardcode_minus_L=no | |
8554 | hardcode_shlibpath_var=unsupported | |
8555 | inherit_rpath=no | |
8556 | link_all_deplibs=unknown | |
8557 | module_cmds= | |
8558 | module_expsym_cmds= | |
8559 | old_archive_from_new_cmds= | |
8560 | old_archive_from_expsyms_cmds= | |
8561 | thread_safe_flag_spec= | |
8562 | whole_archive_flag_spec= | |
8563 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8564 | # included in the symbol list | |
8565 | include_expsyms= | |
8566 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8567 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8568 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8569 | # as well as any symbol that contains `d'. | |
718a6fd8 | 8570 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
d7040cdb SE |
8571 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
8572 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8573 | # the symbol is explicitly referenced. Since portable code cannot | |
8574 | # rely on this symbol name, it's probably fine to never include it in | |
8575 | # preloaded symbol tables. | |
718a6fd8 | 8576 | # Exclude shared library initialization/finalization symbols. |
d7040cdb SE |
8577 | extract_expsyms_cmds= |
8578 | ||
8579 | case $host_os in | |
718a6fd8 | 8580 | cygwin* | mingw* | pw32* | cegcc*) |
d7040cdb SE |
8581 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
8582 | # When not using gcc, we currently assume that we are using | |
8583 | # Microsoft Visual C++. | |
8584 | if test "$GCC" != yes; then | |
8585 | with_gnu_ld=no | |
8586 | fi | |
8587 | ;; | |
8588 | interix*) | |
8589 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8590 | with_gnu_ld=yes | |
8591 | ;; | |
8592 | openbsd*) | |
8593 | with_gnu_ld=no | |
8594 | ;; | |
8595 | esac | |
8596 | ||
8597 | ld_shlibs=yes | |
8598 | if test "$with_gnu_ld" = yes; then | |
8599 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
8600 | wlarc='${wl}' | |
8601 | ||
8602 | # Set some defaults for GNU ld with shared library support. These | |
8603 | # are reset later if shared libraries are not supported. Putting them | |
8604 | # here allows them to be overridden if necessary. | |
8605 | runpath_var=LD_RUN_PATH | |
8606 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8607 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8608 | # ancient GNU ld didn't support --whole-archive et. al. | |
8609 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8610 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8611 | else | |
8612 | whole_archive_flag_spec= | |
8613 | fi | |
8614 | supports_anon_versioning=no | |
8615 | case `$LD -v 2>&1` in | |
8616 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
8617 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8618 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8619 | *\ 2.11.*) ;; # other 2.11 versions | |
8620 | *) supports_anon_versioning=yes ;; | |
8621 | esac | |
8622 | ||
8623 | # See if GNU ld supports shared libraries. | |
8624 | case $host_os in | |
50e7d84b | 8625 | aix[3-9]*) |
d7040cdb SE |
8626 | # On AIX/PPC, the GNU linker is very broken |
8627 | if test "$host_cpu" != ia64; then | |
8628 | ld_shlibs=no | |
8629 | cat <<_LT_EOF 1>&2 | |
8630 | ||
8631 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
8632 | *** to be unable to reliably create shared libraries on AIX. | |
8633 | *** Therefore, libtool is disabling shared libraries support. If you | |
8634 | *** really care for shared libraries, you may want to modify your PATH | |
8635 | *** so that a non-GNU linker is found, and then restart. | |
8636 | ||
8637 | _LT_EOF | |
8638 | fi | |
8639 | ;; | |
8640 | ||
8641 | amigaos*) | |
718a6fd8 SE |
8642 | case $host_cpu in |
8643 | powerpc) | |
8644 | # see comment about AmigaOS4 .so support | |
8645 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8646 | archive_expsym_cmds='' | |
8647 | ;; | |
8648 | m68k) | |
8649 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
8650 | hardcode_libdir_flag_spec='-L$libdir' | |
8651 | hardcode_minus_L=yes | |
8652 | ;; | |
8653 | esac | |
d7040cdb SE |
8654 | ;; |
8655 | ||
8656 | beos*) | |
8657 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8658 | allow_undefined_flag=unsupported | |
8659 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8660 | # support --undefined. This deserves some investigation. FIXME | |
8661 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8662 | else | |
8663 | ld_shlibs=no | |
8664 | fi | |
8665 | ;; | |
8666 | ||
718a6fd8 | 8667 | cygwin* | mingw* | pw32* | cegcc*) |
d7040cdb SE |
8668 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
8669 | # as there is no search path for DLLs. | |
8670 | hardcode_libdir_flag_spec='-L$libdir' | |
8671 | allow_undefined_flag=unsupported | |
8672 | always_export_symbols=no | |
8673 | enable_shared_with_static_runtimes=yes | |
8674 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
8675 | ||
8676 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
8677 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8678 | # If the export-symbols file already is a .def file (1st line | |
8679 | # is EXPORTS), use it as is; otherwise, prepend... | |
8680 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8681 | cp $export_symbols $output_objdir/$soname.def; | |
8682 | else | |
8683 | echo EXPORTS > $output_objdir/$soname.def; | |
8684 | cat $export_symbols >> $output_objdir/$soname.def; | |
8685 | fi~ | |
8686 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8687 | else | |
8688 | ld_shlibs=no | |
8689 | fi | |
8690 | ;; | |
8691 | ||
8692 | interix[3-9]*) | |
8693 | hardcode_direct=no | |
8694 | hardcode_shlibpath_var=no | |
8695 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8696 | export_dynamic_flag_spec='${wl}-E' | |
8697 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8698 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8699 | # default) and relocated if they conflict, which is a slow very memory | |
8700 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8701 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8702 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8703 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8704 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8705 | ;; | |
8706 | ||
58e24671 | 8707 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
d7040cdb SE |
8708 | tmp_diet=no |
8709 | if test "$host_os" = linux-dietlibc; then | |
8710 | case $cc_basename in | |
8711 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8712 | esac | |
8713 | fi | |
8714 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8715 | && test "$tmp_diet" = no | |
8716 | then | |
8717 | tmp_addflag= | |
718a6fd8 | 8718 | tmp_sharedflag='-shared' |
d7040cdb SE |
8719 | case $cc_basename,$host_cpu in |
8720 | pgcc*) # Portland Group C compiler | |
8721 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
8722 | tmp_addflag=' $pic_flag' | |
8723 | ;; | |
8724 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
8725 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
8726 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
8727 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8728 | tmp_addflag=' -i_dynamic' ;; | |
8729 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8730 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8731 | ifc* | ifort*) # Intel Fortran compiler | |
8732 | tmp_addflag=' -nofor_main' ;; | |
718a6fd8 SE |
8733 | lf95*) # Lahey Fortran 8.1 |
8734 | whole_archive_flag_spec= | |
8735 | tmp_sharedflag='--shared' ;; | |
8736 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
8737 | tmp_sharedflag='-qmkshrobj' | |
8738 | tmp_addflag= ;; | |
d7040cdb SE |
8739 | esac |
8740 | case `$CC -V 2>&1 | sed 5q` in | |
8741 | *Sun\ C*) # Sun C 5.9 | |
8742 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
8743 | compiler_needs_object=yes | |
8744 | tmp_sharedflag='-G' ;; | |
8745 | *Sun\ F*) # Sun Fortran 8.3 | |
8746 | tmp_sharedflag='-G' ;; | |
d7040cdb SE |
8747 | esac |
8748 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8749 | ||
8750 | if test "x$supports_anon_versioning" = xyes; then | |
8751 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8752 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8753 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8754 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8755 | fi | |
718a6fd8 SE |
8756 | |
8757 | case $cc_basename in | |
8758 | xlf*) | |
8759 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
8760 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8761 | hardcode_libdir_flag_spec= | |
8762 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8763 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
8764 | if test "x$supports_anon_versioning" = xyes; then | |
8765 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8766 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8767 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8768 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8769 | fi | |
8770 | ;; | |
8771 | esac | |
d7040cdb SE |
8772 | else |
8773 | ld_shlibs=no | |
8774 | fi | |
8775 | ;; | |
8776 | ||
8777 | netbsd*) | |
8778 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8779 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8780 | wlarc= | |
8781 | else | |
8782 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8783 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8784 | fi | |
8785 | ;; | |
8786 | ||
8787 | solaris*) | |
8788 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8789 | ld_shlibs=no | |
8790 | cat <<_LT_EOF 1>&2 | |
8791 | ||
8792 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
8793 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8794 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8795 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8796 | *** your PATH or compiler configuration so that the native linker is | |
8797 | *** used, and then restart. | |
8798 | ||
8799 | _LT_EOF | |
8800 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8801 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8802 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8803 | else | |
8804 | ld_shlibs=no | |
8805 | fi | |
8806 | ;; | |
8807 | ||
8808 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
8809 | case `$LD -v 2>&1` in | |
8810 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8811 | ld_shlibs=no | |
8812 | cat <<_LT_EOF 1>&2 | |
8813 | ||
8814 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
8815 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8816 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8817 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8818 | *** your PATH or compiler configuration so that the native linker is | |
8819 | *** used, and then restart. | |
8820 | ||
8821 | _LT_EOF | |
8822 | ;; | |
8823 | *) | |
8824 | # For security reasons, it is highly recommended that you always | |
8825 | # use absolute paths for naming shared libraries, and exclude the | |
8826 | # DT_RUNPATH tag from executables and libraries. But doing so | |
8827 | # requires that you compile everything twice, which is a pain. | |
8828 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8829 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8830 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8831 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8832 | else | |
8833 | ld_shlibs=no | |
8834 | fi | |
8835 | ;; | |
8836 | esac | |
8837 | ;; | |
8838 | ||
8839 | sunos4*) | |
8840 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8841 | wlarc= | |
8842 | hardcode_direct=yes | |
8843 | hardcode_shlibpath_var=no | |
8844 | ;; | |
8845 | ||
8846 | *) | |
8847 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8848 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8849 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8850 | else | |
8851 | ld_shlibs=no | |
8852 | fi | |
8853 | ;; | |
8854 | esac | |
8855 | ||
8856 | if test "$ld_shlibs" = no; then | |
8857 | runpath_var= | |
8858 | hardcode_libdir_flag_spec= | |
8859 | export_dynamic_flag_spec= | |
8860 | whole_archive_flag_spec= | |
8861 | fi | |
8862 | else | |
8863 | # PORTME fill in a description of your system's linker (not GNU ld) | |
8864 | case $host_os in | |
8865 | aix3*) | |
8866 | allow_undefined_flag=unsupported | |
8867 | always_export_symbols=yes | |
8868 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
8869 | # Note: this linker hardcodes the directories in LIBPATH if there | |
8870 | # are no directories specified by -L. | |
8871 | hardcode_minus_L=yes | |
8872 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
8873 | # Neither direct hardcoding nor static linking is supported with a | |
8874 | # broken collect2. | |
8875 | hardcode_direct=unsupported | |
8876 | fi | |
8877 | ;; | |
8878 | ||
50e7d84b | 8879 | aix[4-9]*) |
d7040cdb SE |
8880 | if test "$host_cpu" = ia64; then |
8881 | # On IA64, the linker does run time linking by default, so we don't | |
8882 | # have to do anything special. | |
8883 | aix_use_runtimelinking=no | |
8884 | exp_sym_flag='-Bexport' | |
8885 | no_entry_flag="" | |
8886 | else | |
8887 | # If we're using GNU nm, then we don't want the "-C" option. | |
8888 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
8889 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
8890 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
8891 | else | |
8892 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
8893 | fi | |
8894 | aix_use_runtimelinking=no | |
8895 | ||
8896 | # Test if we are trying to use run time linking or normal | |
8897 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
8898 | # need to do runtime linking. | |
50e7d84b | 8899 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
d7040cdb SE |
8900 | for ld_flag in $LDFLAGS; do |
8901 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
8902 | aix_use_runtimelinking=yes | |
8903 | break | |
8904 | fi | |
8905 | done | |
8906 | ;; | |
8907 | esac | |
8908 | ||
8909 | exp_sym_flag='-bexport' | |
8910 | no_entry_flag='-bnoentry' | |
8911 | fi | |
8912 | ||
8913 | # When large executables or shared objects are built, AIX ld can | |
8914 | # have problems creating the table of contents. If linking a library | |
8915 | # or program results in "error TOC overflow" add -mminimal-toc to | |
8916 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8917 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
8918 | ||
8919 | archive_cmds='' | |
8920 | hardcode_direct=yes | |
8921 | hardcode_direct_absolute=yes | |
8922 | hardcode_libdir_separator=':' | |
8923 | link_all_deplibs=yes | |
8924 | file_list_spec='${wl}-f,' | |
8925 | ||
8926 | if test "$GCC" = yes; then | |
8927 | case $host_os in aix4.[012]|aix4.[012].*) | |
8928 | # We only want to do this on AIX 4.2 and lower, the check | |
8929 | # below for broken collect2 doesn't work under 4.3+ | |
8930 | collect2name=`${CC} -print-prog-name=collect2` | |
8931 | if test -f "$collect2name" && | |
8932 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
8933 | then | |
8934 | # We have reworked collect2 | |
8935 | : | |
8936 | else | |
8937 | # We have old collect2 | |
8938 | hardcode_direct=unsupported | |
8939 | # It fails to find uninstalled libraries when the uninstalled | |
8940 | # path is not listed in the libpath. Setting hardcode_minus_L | |
8941 | # to unsupported forces relinking | |
8942 | hardcode_minus_L=yes | |
8943 | hardcode_libdir_flag_spec='-L$libdir' | |
8944 | hardcode_libdir_separator= | |
8945 | fi | |
8946 | ;; | |
8947 | esac | |
8948 | shared_flag='-shared' | |
8949 | if test "$aix_use_runtimelinking" = yes; then | |
8950 | shared_flag="$shared_flag "'${wl}-G' | |
8951 | fi | |
8952 | else | |
8953 | # not using gcc | |
8954 | if test "$host_cpu" = ia64; then | |
8955 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
8956 | # chokes on -Wl,-G. The following line is correct: | |
8957 | shared_flag='-G' | |
8958 | else | |
8959 | if test "$aix_use_runtimelinking" = yes; then | |
8960 | shared_flag='${wl}-G' | |
8961 | else | |
8962 | shared_flag='${wl}-bM:SRE' | |
8963 | fi | |
8964 | fi | |
8965 | fi | |
8966 | ||
718a6fd8 | 8967 | export_dynamic_flag_spec='${wl}-bexpall' |
d7040cdb SE |
8968 | # It seems that -bexpall does not export symbols beginning with |
8969 | # underscore (_), so it is better to generate a list of symbols to export. | |
8970 | always_export_symbols=yes | |
8971 | if test "$aix_use_runtimelinking" = yes; then | |
8972 | # Warning - without using the other runtime loading flags (-brtl), | |
8973 | # -berok will link without error, but may produce a broken library. | |
8974 | allow_undefined_flag='-berok' | |
8975 | # Determine the default libpath from the value encoded in an | |
8976 | # empty executable. | |
8977 | cat >conftest.$ac_ext <<_ACEOF | |
42ecbf5e DJ |
8978 | /* confdefs.h. */ |
8979 | _ACEOF | |
8980 | cat confdefs.h >>conftest.$ac_ext | |
8981 | cat >>conftest.$ac_ext <<_ACEOF | |
8982 | /* end confdefs.h. */ | |
d7040cdb SE |
8983 | |
8984 | int | |
8985 | main () | |
8986 | { | |
8987 | ||
8988 | ; | |
8989 | return 0; | |
8990 | } | |
42ecbf5e | 8991 | _ACEOF |
d7040cdb SE |
8992 | rm -f conftest.$ac_objext conftest$ac_exeext |
8993 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8994 | (eval $ac_link) 2>conftest.er1 | |
42ecbf5e DJ |
8995 | ac_status=$? |
8996 | grep -v '^ *+' conftest.er1 >conftest.err | |
8997 | rm -f conftest.er1 | |
8998 | cat conftest.err >&5 | |
8999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d7040cdb | 9000 | (exit $ac_status); } && |
7357c5b6 AM |
9001 | { ac_try='test -z "$ac_c_werror_flag" |
9002 | || test ! -s conftest.err' | |
d7040cdb SE |
9003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9004 | (eval $ac_try) 2>&5 | |
9005 | ac_status=$? | |
9006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9007 | (exit $ac_status); }; } && | |
9008 | { ac_try='test -s conftest$ac_exeext' | |
9009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9010 | (eval $ac_try) 2>&5 | |
9011 | ac_status=$? | |
9012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9013 | (exit $ac_status); }; }; then | |
9014 | ||
9015 | lt_aix_libpath_sed=' | |
9016 | /Import File Strings/,/^$/ { | |
9017 | /^0/ { | |
9018 | s/^0 *\(.*\)$/\1/ | |
9019 | p | |
9020 | } | |
9021 | }' | |
9022 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9023 | # Check for a 64-bit object if we didn't find anything. | |
9024 | if test -z "$aix_libpath"; then | |
9025 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
252b5132 | 9026 | fi |
252b5132 | 9027 | else |
20e95c23 DJ |
9028 | echo "$as_me: failed program was:" >&5 |
9029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9030 | ||
252b5132 | 9031 | fi |
d7040cdb SE |
9032 | rm -f conftest.err conftest.$ac_objext \ |
9033 | conftest$ac_exeext conftest.$ac_ext | |
9034 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
252b5132 | 9035 | |
d7040cdb SE |
9036 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9037 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
9038 | else | |
9039 | if test "$host_cpu" = ia64; then | |
9040 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9041 | allow_undefined_flag="-z nodefs" | |
9042 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
9043 | else | |
9044 | # Determine the default libpath from the value encoded in an | |
9045 | # empty executable. | |
9046 | cat >conftest.$ac_ext <<_ACEOF | |
42ecbf5e DJ |
9047 | /* confdefs.h. */ |
9048 | _ACEOF | |
9049 | cat confdefs.h >>conftest.$ac_ext | |
9050 | cat >>conftest.$ac_ext <<_ACEOF | |
9051 | /* end confdefs.h. */ | |
d7040cdb SE |
9052 | |
9053 | int | |
9054 | main () | |
9055 | { | |
9056 | ||
9057 | ; | |
9058 | return 0; | |
9059 | } | |
42ecbf5e | 9060 | _ACEOF |
d7040cdb SE |
9061 | rm -f conftest.$ac_objext conftest$ac_exeext |
9062 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9063 | (eval $ac_link) 2>conftest.er1 | |
42ecbf5e DJ |
9064 | ac_status=$? |
9065 | grep -v '^ *+' conftest.er1 >conftest.err | |
9066 | rm -f conftest.er1 | |
9067 | cat conftest.err >&5 | |
9068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d7040cdb | 9069 | (exit $ac_status); } && |
7357c5b6 AM |
9070 | { ac_try='test -z "$ac_c_werror_flag" |
9071 | || test ! -s conftest.err' | |
d7040cdb SE |
9072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9073 | (eval $ac_try) 2>&5 | |
9074 | ac_status=$? | |
9075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9076 | (exit $ac_status); }; } && | |
9077 | { ac_try='test -s conftest$ac_exeext' | |
9078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9079 | (eval $ac_try) 2>&5 | |
9080 | ac_status=$? | |
9081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9082 | (exit $ac_status); }; }; then | |
9083 | ||
9084 | lt_aix_libpath_sed=' | |
9085 | /Import File Strings/,/^$/ { | |
9086 | /^0/ { | |
9087 | s/^0 *\(.*\)$/\1/ | |
9088 | p | |
9089 | } | |
9090 | }' | |
9091 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9092 | # Check for a 64-bit object if we didn't find anything. | |
9093 | if test -z "$aix_libpath"; then | |
9094 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
20e95c23 | 9095 | fi |
252b5132 | 9096 | else |
42ecbf5e DJ |
9097 | echo "$as_me: failed program was:" >&5 |
9098 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9099 | ||
252b5132 | 9100 | fi |
d7040cdb SE |
9101 | rm -f conftest.err conftest.$ac_objext \ |
9102 | conftest$ac_exeext conftest.$ac_ext | |
9103 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9104 | ||
9105 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9106 | # Warning - without using the other run time loading flags, | |
9107 | # -berok will link without error, but may produce a broken library. | |
9108 | no_undefined_flag=' ${wl}-bernotok' | |
9109 | allow_undefined_flag=' ${wl}-berok' | |
9110 | # Exported symbols can be pulled into shared objects from archives | |
9111 | whole_archive_flag_spec='$convenience' | |
9112 | archive_cmds_need_lc=yes | |
9113 | # This is similar to how AIX traditionally builds its shared libraries. | |
9114 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
9115 | fi | |
9116 | fi | |
9117 | ;; | |
42ecbf5e | 9118 | |
d7040cdb | 9119 | amigaos*) |
718a6fd8 SE |
9120 | case $host_cpu in |
9121 | powerpc) | |
9122 | # see comment about AmigaOS4 .so support | |
9123 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9124 | archive_expsym_cmds='' | |
9125 | ;; | |
9126 | m68k) | |
9127 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
9128 | hardcode_libdir_flag_spec='-L$libdir' | |
9129 | hardcode_minus_L=yes | |
9130 | ;; | |
9131 | esac | |
d7040cdb | 9132 | ;; |
252b5132 | 9133 | |
d7040cdb SE |
9134 | bsdi[45]*) |
9135 | export_dynamic_flag_spec=-rdynamic | |
9136 | ;; | |
252b5132 | 9137 | |
718a6fd8 | 9138 | cygwin* | mingw* | pw32* | cegcc*) |
d7040cdb SE |
9139 | # When not using gcc, we currently assume that we are using |
9140 | # Microsoft Visual C++. | |
9141 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9142 | # no search path for DLLs. | |
9143 | hardcode_libdir_flag_spec=' ' | |
9144 | allow_undefined_flag=unsupported | |
9145 | # Tell ltmain to make .lib files, not .a files. | |
9146 | libext=lib | |
9147 | # Tell ltmain to make .dll files, not .so files. | |
9148 | shrext_cmds=".dll" | |
9149 | # FIXME: Setting linknames here is a bad hack. | |
9150 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9151 | # The linker will automatically build a .lib file if we build a DLL. | |
9152 | old_archive_from_new_cmds='true' | |
9153 | # FIXME: Should let the user specify the lib program. | |
9154 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9155 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9156 | enable_shared_with_static_runtimes=yes | |
9157 | ;; | |
252b5132 | 9158 | |
d7040cdb | 9159 | darwin* | rhapsody*) |
c46f8c51 | 9160 | |
718a6fd8 SE |
9161 | |
9162 | archive_cmds_need_lc=no | |
9163 | hardcode_direct=no | |
9164 | hardcode_automatic=yes | |
9165 | hardcode_shlibpath_var=unsupported | |
9166 | whole_archive_flag_spec='' | |
9167 | link_all_deplibs=yes | |
9168 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9169 | case $cc_basename in | |
9170 | ifort*) _lt_dar_can_shared=yes ;; | |
9171 | *) _lt_dar_can_shared=$GCC ;; | |
9172 | esac | |
9173 | if test "$_lt_dar_can_shared" = "yes"; then | |
9174 | output_verbose_link_cmd=echo | |
9175 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
9176 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9177 | archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | |
9178 | module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" | |
9179 | ||
9180 | else | |
9181 | ld_shlibs=no | |
9182 | fi | |
9183 | ||
d7040cdb | 9184 | ;; |
42ecbf5e | 9185 | |
d7040cdb SE |
9186 | dgux*) |
9187 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9188 | hardcode_libdir_flag_spec='-L$libdir' | |
9189 | hardcode_shlibpath_var=no | |
9190 | ;; | |
252b5132 | 9191 | |
d7040cdb SE |
9192 | freebsd1*) |
9193 | ld_shlibs=no | |
9194 | ;; | |
252b5132 | 9195 | |
d7040cdb SE |
9196 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9197 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9198 | # does not break anything, and helps significantly (at the cost of a little | |
9199 | # extra space). | |
9200 | freebsd2.2*) | |
9201 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9202 | hardcode_libdir_flag_spec='-R$libdir' | |
9203 | hardcode_direct=yes | |
9204 | hardcode_shlibpath_var=no | |
9205 | ;; | |
252b5132 | 9206 | |
d7040cdb SE |
9207 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
9208 | freebsd2*) | |
9209 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9210 | hardcode_direct=yes | |
9211 | hardcode_minus_L=yes | |
9212 | hardcode_shlibpath_var=no | |
9213 | ;; | |
42ecbf5e | 9214 | |
d7040cdb SE |
9215 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
9216 | freebsd* | dragonfly*) | |
9217 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9218 | hardcode_libdir_flag_spec='-R$libdir' | |
9219 | hardcode_direct=yes | |
9220 | hardcode_shlibpath_var=no | |
9221 | ;; | |
252b5132 | 9222 | |
d7040cdb SE |
9223 | hpux9*) |
9224 | if test "$GCC" = yes; then | |
9225 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
9226 | else | |
9227 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
9228 | fi | |
9229 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9230 | hardcode_libdir_separator=: | |
9231 | hardcode_direct=yes | |
9232 | ||
9233 | # hardcode_minus_L: Not really in the search PATH, | |
9234 | # but as the default location of the library. | |
9235 | hardcode_minus_L=yes | |
9236 | export_dynamic_flag_spec='${wl}-E' | |
9237 | ;; | |
20e95c23 | 9238 | |
d7040cdb SE |
9239 | hpux10*) |
9240 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9241 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9242 | else | |
9243 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9244 | fi | |
9245 | if test "$with_gnu_ld" = no; then | |
9246 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9247 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9248 | hardcode_libdir_separator=: | |
9249 | hardcode_direct=yes | |
9250 | hardcode_direct_absolute=yes | |
9251 | export_dynamic_flag_spec='${wl}-E' | |
9252 | # hardcode_minus_L: Not really in the search PATH, | |
9253 | # but as the default location of the library. | |
9254 | hardcode_minus_L=yes | |
9255 | fi | |
9256 | ;; | |
20e95c23 | 9257 | |
d7040cdb SE |
9258 | hpux11*) |
9259 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9260 | case $host_cpu in | |
9261 | hppa*64*) | |
9262 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9263 | ;; | |
9264 | ia64*) | |
718a6fd8 | 9265 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
d7040cdb SE |
9266 | ;; |
9267 | *) | |
9268 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9269 | ;; | |
9270 | esac | |
9271 | else | |
9272 | case $host_cpu in | |
9273 | hppa*64*) | |
9274 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9275 | ;; | |
9276 | ia64*) | |
9277 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9278 | ;; | |
9279 | *) | |
9280 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9281 | ;; | |
9282 | esac | |
9283 | fi | |
9284 | if test "$with_gnu_ld" = no; then | |
9285 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9286 | hardcode_libdir_separator=: | |
9287 | ||
9288 | case $host_cpu in | |
9289 | hppa*64*|ia64*) | |
9290 | hardcode_direct=no | |
9291 | hardcode_shlibpath_var=no | |
9292 | ;; | |
9293 | *) | |
9294 | hardcode_direct=yes | |
9295 | hardcode_direct_absolute=yes | |
9296 | export_dynamic_flag_spec='${wl}-E' | |
9297 | ||
9298 | # hardcode_minus_L: Not really in the search PATH, | |
9299 | # but as the default location of the library. | |
9300 | hardcode_minus_L=yes | |
9301 | ;; | |
9302 | esac | |
9303 | fi | |
9304 | ;; | |
9305 | ||
9306 | irix5* | irix6* | nonstopux*) | |
9307 | if test "$GCC" = yes; then | |
9308 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9309 | # Try to use the -exported_symbol ld option, if it does not | |
9310 | # work, assume that -exports_file does not work either and | |
9311 | # implicitly export all symbols. | |
9312 | save_LDFLAGS="$LDFLAGS" | |
9313 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9314 | cat >conftest.$ac_ext <<_ACEOF | |
9315 | int foo(void) {} | |
42ecbf5e | 9316 | _ACEOF |
d7040cdb SE |
9317 | rm -f conftest.$ac_objext conftest$ac_exeext |
9318 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9319 | (eval $ac_link) 2>conftest.er1 | |
42ecbf5e DJ |
9320 | ac_status=$? |
9321 | grep -v '^ *+' conftest.er1 >conftest.err | |
9322 | rm -f conftest.er1 | |
9323 | cat conftest.err >&5 | |
9324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9325 | (exit $ac_status); } && | |
7357c5b6 AM |
9326 | { ac_try='test -z "$ac_c_werror_flag" |
9327 | || test ! -s conftest.err' | |
42ecbf5e DJ |
9328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9329 | (eval $ac_try) 2>&5 | |
9330 | ac_status=$? | |
9331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9332 | (exit $ac_status); }; } && | |
d7040cdb | 9333 | { ac_try='test -s conftest$ac_exeext' |
42ecbf5e DJ |
9334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9335 | (eval $ac_try) 2>&5 | |
9336 | ac_status=$? | |
9337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9338 | (exit $ac_status); }; }; then | |
d7040cdb SE |
9339 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
9340 | ||
42ecbf5e DJ |
9341 | else |
9342 | echo "$as_me: failed program was:" >&5 | |
9343 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9344 | ||
42ecbf5e | 9345 | fi |
d7040cdb SE |
9346 | rm -f conftest.err conftest.$ac_objext \ |
9347 | conftest$ac_exeext conftest.$ac_ext | |
9348 | LDFLAGS="$save_LDFLAGS" | |
9349 | else | |
9350 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
9351 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
9352 | fi | |
9353 | archive_cmds_need_lc='no' | |
9354 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9355 | hardcode_libdir_separator=: | |
9356 | inherit_rpath=yes | |
9357 | link_all_deplibs=yes | |
9358 | ;; | |
42ecbf5e | 9359 | |
d7040cdb SE |
9360 | netbsd*) |
9361 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9362 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9363 | else | |
9364 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9365 | fi | |
9366 | hardcode_libdir_flag_spec='-R$libdir' | |
9367 | hardcode_direct=yes | |
9368 | hardcode_shlibpath_var=no | |
9369 | ;; | |
42ecbf5e | 9370 | |
d7040cdb SE |
9371 | newsos6) |
9372 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9373 | hardcode_direct=yes | |
9374 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9375 | hardcode_libdir_separator=: | |
9376 | hardcode_shlibpath_var=no | |
9377 | ;; | |
42ecbf5e | 9378 | |
d7040cdb SE |
9379 | *nto* | *qnx*) |
9380 | ;; | |
252b5132 | 9381 | |
d7040cdb | 9382 | openbsd*) |
718a6fd8 SE |
9383 | if test -f /usr/libexec/ld.so; then |
9384 | hardcode_direct=yes | |
9385 | hardcode_shlibpath_var=no | |
9386 | hardcode_direct_absolute=yes | |
9387 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
d7040cdb | 9388 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
718a6fd8 | 9389 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
d7040cdb | 9390 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
718a6fd8 SE |
9391 | export_dynamic_flag_spec='${wl}-E' |
9392 | else | |
9393 | case $host_os in | |
9394 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9395 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9396 | hardcode_libdir_flag_spec='-R$libdir' | |
9397 | ;; | |
9398 | *) | |
9399 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9400 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9401 | ;; | |
9402 | esac | |
9403 | fi | |
9404 | else | |
9405 | ld_shlibs=no | |
d7040cdb SE |
9406 | fi |
9407 | ;; | |
252b5132 | 9408 | |
d7040cdb SE |
9409 | os2*) |
9410 | hardcode_libdir_flag_spec='-L$libdir' | |
9411 | hardcode_minus_L=yes | |
9412 | allow_undefined_flag=unsupported | |
9413 | archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
9414 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
9415 | ;; | |
2481e6a2 | 9416 | |
d7040cdb SE |
9417 | osf3*) |
9418 | if test "$GCC" = yes; then | |
9419 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9420 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9421 | else | |
9422 | allow_undefined_flag=' -expect_unresolved \*' | |
9423 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
9424 | fi | |
9425 | archive_cmds_need_lc='no' | |
9426 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9427 | hardcode_libdir_separator=: | |
9428 | ;; | |
42ecbf5e | 9429 | |
d7040cdb SE |
9430 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
9431 | if test "$GCC" = yes; then | |
9432 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9433 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
9434 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9435 | else | |
9436 | allow_undefined_flag=' -expect_unresolved \*' | |
9437 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
9438 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | |
9439 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
42ecbf5e | 9440 | |
d7040cdb SE |
9441 | # Both c and cxx compiler support -rpath directly |
9442 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9443 | fi | |
9444 | archive_cmds_need_lc='no' | |
9445 | hardcode_libdir_separator=: | |
9446 | ;; | |
9447 | ||
9448 | solaris*) | |
9449 | no_undefined_flag=' -z defs' | |
9450 | if test "$GCC" = yes; then | |
9451 | wlarc='${wl}' | |
9452 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9453 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9454 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9455 | else | |
9456 | case `$CC -V 2>&1` in | |
9457 | *"Compilers 5.0"*) | |
9458 | wlarc='' | |
9459 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9460 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9461 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9462 | ;; | |
9463 | *) | |
9464 | wlarc='${wl}' | |
9465 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9466 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9467 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9468 | ;; | |
9469 | esac | |
9470 | fi | |
9471 | hardcode_libdir_flag_spec='-R$libdir' | |
9472 | hardcode_shlibpath_var=no | |
9473 | case $host_os in | |
9474 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9475 | *) | |
9476 | # The compiler driver will combine and reorder linker options, | |
9477 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9478 | # but is careful enough not to reorder. | |
9479 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9480 | if test "$GCC" = yes; then | |
9481 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9482 | else | |
9483 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9484 | fi | |
9485 | ;; | |
9486 | esac | |
9487 | link_all_deplibs=yes | |
9488 | ;; | |
9489 | ||
9490 | sunos4*) | |
9491 | if test "x$host_vendor" = xsequent; then | |
9492 | # Use $CC to link under sequent, because it throws in some extra .o | |
9493 | # files that make .init and .fini sections work. | |
9494 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9495 | else | |
9496 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9497 | fi | |
9498 | hardcode_libdir_flag_spec='-L$libdir' | |
9499 | hardcode_direct=yes | |
9500 | hardcode_minus_L=yes | |
9501 | hardcode_shlibpath_var=no | |
9502 | ;; | |
9503 | ||
9504 | sysv4) | |
9505 | case $host_vendor in | |
9506 | sni) | |
9507 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9508 | hardcode_direct=yes # is this really true??? | |
9509 | ;; | |
9510 | siemens) | |
9511 | ## LD is ld it makes a PLAMLIB | |
9512 | ## CC just makes a GrossModule. | |
9513 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9514 | reload_cmds='$CC -r -o $output$reload_objs' | |
9515 | hardcode_direct=no | |
9516 | ;; | |
9517 | motorola) | |
9518 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9519 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9520 | ;; | |
9521 | esac | |
9522 | runpath_var='LD_RUN_PATH' | |
9523 | hardcode_shlibpath_var=no | |
9524 | ;; | |
9525 | ||
9526 | sysv4.3*) | |
9527 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9528 | hardcode_shlibpath_var=no | |
9529 | export_dynamic_flag_spec='-Bexport' | |
9530 | ;; | |
9531 | ||
9532 | sysv4*MP*) | |
9533 | if test -d /usr/nec; then | |
9534 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9535 | hardcode_shlibpath_var=no | |
9536 | runpath_var=LD_RUN_PATH | |
9537 | hardcode_runpath_var=yes | |
9538 | ld_shlibs=yes | |
9539 | fi | |
9540 | ;; | |
9541 | ||
9542 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
9543 | no_undefined_flag='${wl}-z,text' | |
9544 | archive_cmds_need_lc=no | |
9545 | hardcode_shlibpath_var=no | |
9546 | runpath_var='LD_RUN_PATH' | |
9547 | ||
9548 | if test "$GCC" = yes; then | |
9549 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9550 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9551 | else | |
9552 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9553 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9554 | fi | |
9555 | ;; | |
9556 | ||
9557 | sysv5* | sco3.2v5* | sco5v6*) | |
9558 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9559 | # link with -lc, and that would cause any symbols used from libc to | |
9560 | # always be unresolved, which means just about no library would | |
9561 | # ever link correctly. If we're not using GNU ld we use -z text | |
9562 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9563 | # as -z defs. | |
9564 | no_undefined_flag='${wl}-z,text' | |
9565 | allow_undefined_flag='${wl}-z,nodefs' | |
9566 | archive_cmds_need_lc=no | |
9567 | hardcode_shlibpath_var=no | |
9568 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9569 | hardcode_libdir_separator=':' | |
9570 | link_all_deplibs=yes | |
9571 | export_dynamic_flag_spec='${wl}-Bexport' | |
9572 | runpath_var='LD_RUN_PATH' | |
9573 | ||
9574 | if test "$GCC" = yes; then | |
9575 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9576 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9577 | else | |
9578 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9579 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9580 | fi | |
9581 | ;; | |
9582 | ||
9583 | uts4*) | |
9584 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9585 | hardcode_libdir_flag_spec='-L$libdir' | |
9586 | hardcode_shlibpath_var=no | |
9587 | ;; | |
9588 | ||
9589 | *) | |
9590 | ld_shlibs=no | |
9591 | ;; | |
9592 | esac | |
9593 | ||
9594 | if test x$host_vendor = xsni; then | |
9595 | case $host in | |
9596 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9597 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9598 | ;; | |
9599 | esac | |
9600 | fi | |
9601 | fi | |
9602 | ||
9603 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
9604 | echo "${ECHO_T}$ld_shlibs" >&6 | |
9605 | test "$ld_shlibs" = no && can_build_shared=no | |
9606 | ||
9607 | with_gnu_ld=$with_gnu_ld | |
9608 | ||
9609 | ||
9610 | ||
9611 | ||
9612 | ||
9613 | ||
9614 | ||
9615 | ||
9616 | ||
9617 | ||
9618 | ||
9619 | ||
9620 | ||
9621 | ||
9622 | ||
9623 | # | |
9624 | # Do we need to explicitly link libc? | |
9625 | # | |
9626 | case "x$archive_cmds_need_lc" in | |
9627 | x|xyes) | |
9628 | # Assume -lc should be added | |
9629 | archive_cmds_need_lc=yes | |
9630 | ||
9631 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
9632 | case $archive_cmds in | |
9633 | *'~'*) | |
9634 | # FIXME: we may have to deal with multi-command sequences. | |
9635 | ;; | |
9636 | '$CC '*) | |
9637 | # Test whether the compiler implicitly links with -lc since on some | |
9638 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9639 | # to ld, don't add -lc before -lgcc. | |
9640 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
9641 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
39144654 RW |
9642 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then |
9643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9644 | else | |
9645 | $RM conftest* | |
9646 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 9647 | |
39144654 | 9648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
d7040cdb | 9649 | (eval $ac_compile) 2>&5 |
20e95c23 DJ |
9650 | ac_status=$? |
9651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d7040cdb | 9652 | (exit $ac_status); } 2>conftest.err; then |
39144654 RW |
9653 | soname=conftest |
9654 | lib=conftest | |
9655 | libobjs=conftest.$ac_objext | |
9656 | deplibs= | |
9657 | wl=$lt_prog_compiler_wl | |
9658 | pic_flag=$lt_prog_compiler_pic | |
9659 | compiler_flags=-v | |
9660 | linker_flags=-v | |
9661 | verstring= | |
9662 | output_objdir=. | |
9663 | libname=conftest | |
9664 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9665 | allow_undefined_flag= | |
9666 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
d7040cdb | 9667 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
20e95c23 DJ |
9668 | ac_status=$? |
9669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d7040cdb | 9670 | (exit $ac_status); } |
39144654 RW |
9671 | then |
9672 | lt_cv_archive_cmds_need_lc=no | |
9673 | else | |
9674 | lt_cv_archive_cmds_need_lc=yes | |
9675 | fi | |
9676 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9677 | else | |
9678 | cat conftest.err 1>&5 | |
9679 | fi | |
9680 | $RM conftest* | |
9681 | ||
9682 | fi | |
9683 | echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 | |
9684 | echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 | |
9685 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
d7040cdb SE |
9686 | ;; |
9687 | esac | |
9688 | fi | |
9689 | ;; | |
9690 | esac | |
9691 | ||
9692 | ||
9693 | ||
9694 | ||
9695 | ||
9696 | ||
9697 | ||
9698 | ||
9699 | ||
9700 | ||
9701 | ||
9702 | ||
9703 | ||
9704 | ||
9705 | ||
9706 | ||
9707 | ||
9708 | ||
9709 | ||
9710 | ||
9711 | ||
9712 | ||
9713 | ||
9714 | ||
9715 | ||
9716 | ||
9717 | ||
9718 | ||
9719 | ||
9720 | ||
9721 | ||
9722 | ||
9723 | ||
9724 | ||
9725 | ||
9726 | ||
9727 | ||
9728 | ||
9729 | ||
9730 | ||
9731 | ||
9732 | ||
9733 | ||
9734 | ||
9735 | ||
9736 | ||
9737 | ||
9738 | ||
9739 | ||
9740 | ||
9741 | ||
9742 | ||
9743 | ||
9744 | ||
9745 | ||
9746 | ||
9747 | ||
9748 | ||
9749 | ||
9750 | ||
9751 | ||
9752 | ||
9753 | ||
9754 | ||
9755 | ||
9756 | ||
9757 | ||
9758 | ||
9759 | ||
9760 | ||
9761 | ||
9762 | ||
9763 | ||
9764 | ||
9765 | ||
9766 | ||
9767 | ||
9768 | ||
9769 | ||
9770 | ||
9771 | ||
9772 | ||
9773 | ||
9774 | ||
9775 | ||
9776 | ||
9777 | ||
9778 | ||
9779 | ||
9780 | ||
9781 | ||
9782 | ||
9783 | ||
9784 | ||
9785 | ||
9786 | ||
9787 | ||
9788 | ||
9789 | ||
9790 | ||
9791 | ||
9792 | ||
9793 | ||
9794 | ||
9795 | ||
9796 | ||
9797 | ||
9798 | ||
9799 | ||
9800 | ||
9801 | ||
9802 | ||
9803 | ||
9804 | ||
9805 | ||
9806 | ||
9807 | ||
9808 | ||
9809 | ||
9810 | ||
9811 | ||
9812 | ||
9813 | ||
9814 | ||
9815 | ||
9816 | ||
9817 | ||
9818 | ||
9819 | ||
9820 | ||
9821 | ||
9822 | ||
9823 | ||
9824 | ||
9825 | ||
9826 | ||
9827 | ||
9828 | ||
9829 | ||
9830 | ||
9831 | ||
9832 | ||
9833 | ||
9834 | ||
9835 | ||
9836 | ||
9837 | ||
9838 | ||
9839 | ||
9840 | ||
9841 | ||
9842 | ||
9843 | ||
9844 | ||
9845 | ||
9846 | ||
9847 | ||
9848 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
9849 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
718a6fd8 SE |
9850 | |
9851 | if test "$GCC" = yes; then | |
d7040cdb SE |
9852 | case $host_os in |
9853 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9854 | *) lt_awk_arg="/^libraries:/" ;; | |
9855 | esac | |
9856 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9857 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
9858 | # if the path contains ";" then we assume it to be the separator | |
9859 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9860 | # assumed that no part of a normal pathname contains ";" but that should | |
9861 | # okay in the real world where ";" in dirpaths is itself problematic. | |
9862 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
9863 | else | |
9864 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9865 | fi | |
9866 | # Ok, now we have the path, separated by spaces, we can step through it | |
9867 | # and add multilib dir if necessary. | |
9868 | lt_tmp_lt_search_path_spec= | |
9869 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9870 | for lt_sys_path in $lt_search_path_spec; do | |
9871 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9872 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9873 | else | |
9874 | test -d "$lt_sys_path" && \ | |
9875 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9876 | fi | |
9877 | done | |
9878 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
9879 | BEGIN {RS=" "; FS="/|\n";} { | |
9880 | lt_foo=""; | |
9881 | lt_count=0; | |
9882 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
9883 | if ($lt_i != "" && $lt_i != ".") { | |
9884 | if ($lt_i == "..") { | |
9885 | lt_count++; | |
9886 | } else { | |
9887 | if (lt_count == 0) { | |
9888 | lt_foo="/" $lt_i lt_foo; | |
9889 | } else { | |
9890 | lt_count--; | |
9891 | } | |
9892 | } | |
9893 | } | |
9894 | } | |
9895 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9896 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9897 | }'` | |
9898 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
9899 | else | |
9900 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
9901 | fi | |
9902 | library_names_spec= | |
9903 | libname_spec='lib$name' | |
9904 | soname_spec= | |
9905 | shrext_cmds=".so" | |
9906 | postinstall_cmds= | |
9907 | postuninstall_cmds= | |
9908 | finish_cmds= | |
9909 | finish_eval= | |
9910 | shlibpath_var= | |
9911 | shlibpath_overrides_runpath=unknown | |
9912 | version_type=none | |
9913 | dynamic_linker="$host_os ld.so" | |
9914 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
9915 | need_lib_prefix=unknown | |
9916 | hardcode_into_libs=no | |
9917 | ||
9918 | # when you set need_version to no, make sure it does not cause -set_version | |
9919 | # flags to be left without arguments | |
9920 | need_version=unknown | |
9921 | ||
9922 | case $host_os in | |
9923 | aix3*) | |
9924 | version_type=linux | |
9925 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
9926 | shlibpath_var=LIBPATH | |
9927 | ||
9928 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9929 | soname_spec='${libname}${release}${shared_ext}$major' | |
9930 | ;; | |
9931 | ||
50e7d84b | 9932 | aix[4-9]*) |
d7040cdb SE |
9933 | version_type=linux |
9934 | need_lib_prefix=no | |
9935 | need_version=no | |
9936 | hardcode_into_libs=yes | |
9937 | if test "$host_cpu" = ia64; then | |
9938 | # AIX 5 supports IA64 | |
9939 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
9940 | shlibpath_var=LD_LIBRARY_PATH | |
9941 | else | |
9942 | # With GCC up to 2.95.x, collect2 would create an import file | |
9943 | # for dependence libraries. The import file would start with | |
9944 | # the line `#! .'. This would cause the generated library to | |
9945 | # depend on `.', always an invalid library. This was fixed in | |
9946 | # development snapshots of GCC prior to 3.0. | |
9947 | case $host_os in | |
9948 | aix4 | aix4.[01] | aix4.[01].*) | |
9949 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
9950 | echo ' yes ' | |
9951 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
9952 | : | |
9953 | else | |
9954 | can_build_shared=no | |
9955 | fi | |
9956 | ;; | |
9957 | esac | |
9958 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
9959 | # soname into executable. Probably we can add versioning support to | |
9960 | # collect2, so additional links can be useful in future. | |
9961 | if test "$aix_use_runtimelinking" = yes; then | |
9962 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
9963 | # instead of lib<name>.a to let people know that these are not | |
9964 | # typical AIX shared libraries. | |
9965 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9966 | else | |
9967 | # We preserve .a as extension for shared libraries through AIX4.2 | |
9968 | # and later when we are not doing run time linking. | |
9969 | library_names_spec='${libname}${release}.a $libname.a' | |
9970 | soname_spec='${libname}${release}${shared_ext}$major' | |
9971 | fi | |
9972 | shlibpath_var=LIBPATH | |
9973 | fi | |
9974 | ;; | |
9975 | ||
9976 | amigaos*) | |
718a6fd8 SE |
9977 | case $host_cpu in |
9978 | powerpc) | |
9979 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
9980 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9981 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9982 | ;; | |
9983 | m68k) | |
d7040cdb SE |
9984 | library_names_spec='$libname.ixlibrary $libname.a' |
9985 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
9986 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
718a6fd8 SE |
9987 | ;; |
9988 | esac | |
d7040cdb SE |
9989 | ;; |
9990 | ||
9991 | beos*) | |
9992 | library_names_spec='${libname}${shared_ext}' | |
9993 | dynamic_linker="$host_os ld.so" | |
9994 | shlibpath_var=LIBRARY_PATH | |
9995 | ;; | |
9996 | ||
9997 | bsdi[45]*) | |
9998 | version_type=linux | |
9999 | need_version=no | |
10000 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10001 | soname_spec='${libname}${release}${shared_ext}$major' | |
10002 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10003 | shlibpath_var=LD_LIBRARY_PATH | |
10004 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10005 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10006 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10007 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10008 | # libtool to hard-code these into programs | |
10009 | ;; | |
10010 | ||
718a6fd8 | 10011 | cygwin* | mingw* | pw32* | cegcc*) |
d7040cdb SE |
10012 | version_type=windows |
10013 | shrext_cmds=".dll" | |
10014 | need_version=no | |
10015 | need_lib_prefix=no | |
10016 | ||
718a6fd8 SE |
10017 | case $GCC,$host_os in |
10018 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
d7040cdb SE |
10019 | library_names_spec='$libname.dll.a' |
10020 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10021 | postinstall_cmds='base_file=`basename \${file}`~ | |
10022 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10023 | dldir=$destdir/`dirname \$dlpath`~ | |
10024 | test -d \$dldir || mkdir -p \$dldir~ | |
10025 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10026 | chmod a+x \$dldir/$dlname~ | |
10027 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10028 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10029 | fi' | |
10030 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10031 | dlpath=$dir/\$dldll~ | |
10032 | $RM \$dlpath' | |
10033 | shlibpath_overrides_runpath=yes | |
10034 | ||
10035 | case $host_os in | |
10036 | cygwin*) | |
10037 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10038 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10039 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
10040 | ;; | |
718a6fd8 | 10041 | mingw* | cegcc*) |
d7040cdb SE |
10042 | # MinGW DLLs use traditional 'lib' prefix |
10043 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10044 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
10045 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
10046 | # It is most probably a Windows format PATH printed by | |
10047 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
10048 | # path with ; separators, and with drive letters. We can handle the | |
10049 | # drive letters (cygwin fileutils understands them), so leave them, | |
10050 | # especially as we might pass files found there to a mingw objdump, | |
10051 | # which wouldn't understand a cygwinified path. Ahh. | |
10052 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10053 | else | |
10054 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10055 | fi | |
10056 | ;; | |
10057 | pw32*) | |
10058 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10059 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10060 | ;; | |
10061 | esac | |
10062 | ;; | |
10063 | ||
10064 | *) | |
10065 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10066 | ;; | |
10067 | esac | |
10068 | dynamic_linker='Win32 ld.exe' | |
10069 | # FIXME: first we should search . and the directory the executable is in | |
10070 | shlibpath_var=PATH | |
10071 | ;; | |
10072 | ||
10073 | darwin* | rhapsody*) | |
10074 | dynamic_linker="$host_os dyld" | |
10075 | version_type=darwin | |
10076 | need_lib_prefix=no | |
10077 | need_version=no | |
10078 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10079 | soname_spec='${libname}${release}${major}$shared_ext' | |
10080 | shlibpath_overrides_runpath=yes | |
10081 | shlibpath_var=DYLD_LIBRARY_PATH | |
10082 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10083 | ||
10084 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10085 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10086 | ;; | |
10087 | ||
10088 | dgux*) | |
10089 | version_type=linux | |
10090 | need_lib_prefix=no | |
10091 | need_version=no | |
10092 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10093 | soname_spec='${libname}${release}${shared_ext}$major' | |
10094 | shlibpath_var=LD_LIBRARY_PATH | |
10095 | ;; | |
10096 | ||
10097 | freebsd1*) | |
10098 | dynamic_linker=no | |
10099 | ;; | |
10100 | ||
10101 | freebsd* | dragonfly*) | |
10102 | # DragonFly does not have aout. When/if they implement a new | |
10103 | # versioning mechanism, adjust this. | |
10104 | if test -x /usr/bin/objformat; then | |
10105 | objformat=`/usr/bin/objformat` | |
10106 | else | |
10107 | case $host_os in | |
10108 | freebsd[123]*) objformat=aout ;; | |
10109 | *) objformat=elf ;; | |
10110 | esac | |
10111 | fi | |
10112 | version_type=freebsd-$objformat | |
10113 | case $version_type in | |
10114 | freebsd-elf*) | |
10115 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10116 | need_version=no | |
10117 | need_lib_prefix=no | |
10118 | ;; | |
10119 | freebsd-*) | |
10120 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10121 | need_version=yes | |
10122 | ;; | |
10123 | esac | |
10124 | shlibpath_var=LD_LIBRARY_PATH | |
10125 | case $host_os in | |
10126 | freebsd2*) | |
10127 | shlibpath_overrides_runpath=yes | |
10128 | ;; | |
10129 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10130 | shlibpath_overrides_runpath=yes | |
10131 | hardcode_into_libs=yes | |
10132 | ;; | |
10133 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10134 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10135 | shlibpath_overrides_runpath=no | |
10136 | hardcode_into_libs=yes | |
10137 | ;; | |
10138 | *) # from 4.6 on, and DragonFly | |
10139 | shlibpath_overrides_runpath=yes | |
10140 | hardcode_into_libs=yes | |
10141 | ;; | |
10142 | esac | |
10143 | ;; | |
10144 | ||
10145 | gnu*) | |
10146 | version_type=linux | |
10147 | need_lib_prefix=no | |
10148 | need_version=no | |
10149 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10150 | soname_spec='${libname}${release}${shared_ext}$major' | |
10151 | shlibpath_var=LD_LIBRARY_PATH | |
10152 | hardcode_into_libs=yes | |
10153 | ;; | |
10154 | ||
10155 | hpux9* | hpux10* | hpux11*) | |
10156 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10157 | # link against other versions. | |
10158 | version_type=sunos | |
10159 | need_lib_prefix=no | |
10160 | need_version=no | |
10161 | case $host_cpu in | |
10162 | ia64*) | |
10163 | shrext_cmds='.so' | |
10164 | hardcode_into_libs=yes | |
10165 | dynamic_linker="$host_os dld.so" | |
10166 | shlibpath_var=LD_LIBRARY_PATH | |
10167 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10168 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10169 | soname_spec='${libname}${release}${shared_ext}$major' | |
10170 | if test "X$HPUX_IA64_MODE" = X32; then | |
10171 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10172 | else | |
10173 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10174 | fi | |
10175 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10176 | ;; | |
10177 | hppa*64*) | |
10178 | shrext_cmds='.sl' | |
10179 | hardcode_into_libs=yes | |
10180 | dynamic_linker="$host_os dld.sl" | |
10181 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10182 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10183 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10184 | soname_spec='${libname}${release}${shared_ext}$major' | |
10185 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10186 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10187 | ;; | |
10188 | *) | |
10189 | shrext_cmds='.sl' | |
10190 | dynamic_linker="$host_os dld.sl" | |
10191 | shlibpath_var=SHLIB_PATH | |
10192 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10193 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10194 | soname_spec='${libname}${release}${shared_ext}$major' | |
10195 | ;; | |
10196 | esac | |
10197 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
10198 | postinstall_cmds='chmod 555 $lib' | |
10199 | ;; | |
10200 | ||
10201 | interix[3-9]*) | |
10202 | version_type=linux | |
10203 | need_lib_prefix=no | |
10204 | need_version=no | |
10205 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10206 | soname_spec='${libname}${release}${shared_ext}$major' | |
10207 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10208 | shlibpath_var=LD_LIBRARY_PATH | |
10209 | shlibpath_overrides_runpath=no | |
10210 | hardcode_into_libs=yes | |
10211 | ;; | |
10212 | ||
10213 | irix5* | irix6* | nonstopux*) | |
10214 | case $host_os in | |
10215 | nonstopux*) version_type=nonstopux ;; | |
10216 | *) | |
10217 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10218 | version_type=linux | |
10219 | else | |
10220 | version_type=irix | |
10221 | fi ;; | |
10222 | esac | |
10223 | need_lib_prefix=no | |
10224 | need_version=no | |
10225 | soname_spec='${libname}${release}${shared_ext}$major' | |
10226 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10227 | case $host_os in | |
10228 | irix5* | nonstopux*) | |
10229 | libsuff= shlibsuff= | |
10230 | ;; | |
10231 | *) | |
10232 | case $LD in # libtool.m4 will add one of these switches to LD | |
10233 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10234 | libsuff= shlibsuff= libmagic=32-bit;; | |
10235 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10236 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10237 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10238 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10239 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10240 | esac | |
10241 | ;; | |
10242 | esac | |
10243 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10244 | shlibpath_overrides_runpath=no | |
10245 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10246 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10247 | hardcode_into_libs=yes | |
10248 | ;; | |
10249 | ||
10250 | # No shared lib support for Linux oldld, aout, or coff. | |
10251 | linux*oldld* | linux*aout* | linux*coff*) | |
10252 | dynamic_linker=no | |
10253 | ;; | |
10254 | ||
10255 | # This must be Linux ELF. | |
58e24671 | 10256 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
d7040cdb SE |
10257 | version_type=linux |
10258 | need_lib_prefix=no | |
10259 | need_version=no | |
10260 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10261 | soname_spec='${libname}${release}${shared_ext}$major' | |
10262 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10263 | shlibpath_var=LD_LIBRARY_PATH | |
10264 | shlibpath_overrides_runpath=no | |
39144654 | 10265 | |
d7040cdb | 10266 | # Some binutils ld are patched to set DT_RUNPATH |
39144654 RW |
10267 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then |
10268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10269 | else | |
10270 | lt_cv_shlibpath_overrides_runpath=no | |
10271 | save_LDFLAGS=$LDFLAGS | |
10272 | save_libdir=$libdir | |
10273 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10274 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10275 | cat >conftest.$ac_ext <<_ACEOF | |
d7040cdb SE |
10276 | /* confdefs.h. */ |
10277 | _ACEOF | |
10278 | cat confdefs.h >>conftest.$ac_ext | |
10279 | cat >>conftest.$ac_ext <<_ACEOF | |
10280 | /* end confdefs.h. */ | |
10281 | ||
10282 | int | |
10283 | main () | |
10284 | { | |
10285 | ||
10286 | ; | |
10287 | return 0; | |
10288 | } | |
10289 | _ACEOF | |
10290 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10292 | (eval $ac_link) 2>conftest.er1 | |
10293 | ac_status=$? | |
10294 | grep -v '^ *+' conftest.er1 >conftest.err | |
10295 | rm -f conftest.er1 | |
10296 | cat conftest.err >&5 | |
10297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10298 | (exit $ac_status); } && | |
7357c5b6 AM |
10299 | { ac_try='test -z "$ac_c_werror_flag" |
10300 | || test ! -s conftest.err' | |
d7040cdb SE |
10301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10302 | (eval $ac_try) 2>&5 | |
10303 | ac_status=$? | |
10304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10305 | (exit $ac_status); }; } && | |
10306 | { ac_try='test -s conftest$ac_exeext' | |
10307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10308 | (eval $ac_try) 2>&5 | |
10309 | ac_status=$? | |
10310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10311 | (exit $ac_status); }; }; then | |
718a6fd8 | 10312 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then |
39144654 | 10313 | lt_cv_shlibpath_overrides_runpath=yes |
d7040cdb SE |
10314 | fi |
10315 | ||
10316 | else | |
10317 | echo "$as_me: failed program was:" >&5 | |
10318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10319 | ||
10320 | fi | |
10321 | rm -f conftest.err conftest.$ac_objext \ | |
10322 | conftest$ac_exeext conftest.$ac_ext | |
39144654 RW |
10323 | LDFLAGS=$save_LDFLAGS |
10324 | libdir=$save_libdir | |
10325 | ||
10326 | fi | |
10327 | ||
10328 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
d7040cdb SE |
10329 | |
10330 | # This implies no fast_install, which is unacceptable. | |
10331 | # Some rework will be needed to allow for fast_install | |
10332 | # before this can be enabled. | |
10333 | hardcode_into_libs=yes | |
10334 | ||
10335 | # Append ld.so.conf contents to the search path | |
10336 | if test -f /etc/ld.so.conf; then | |
718a6fd8 | 10337 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
d7040cdb SE |
10338 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
10339 | fi | |
10340 | ||
10341 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10342 | # powerpc, because MkLinux only supported shared libraries with the | |
10343 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10344 | # most powerpc-linux boxes support dynamic linking these days and | |
10345 | # people can always --disable-shared, the test was removed, and we | |
10346 | # assume the GNU/Linux dynamic linker is in use. | |
10347 | dynamic_linker='GNU/Linux ld.so' | |
10348 | ;; | |
10349 | ||
10350 | netbsd*) | |
10351 | version_type=sunos | |
10352 | need_lib_prefix=no | |
10353 | need_version=no | |
10354 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10355 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10356 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10357 | dynamic_linker='NetBSD (a.out) ld.so' | |
10358 | else | |
10359 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10360 | soname_spec='${libname}${release}${shared_ext}$major' | |
10361 | dynamic_linker='NetBSD ld.elf_so' | |
10362 | fi | |
10363 | shlibpath_var=LD_LIBRARY_PATH | |
10364 | shlibpath_overrides_runpath=yes | |
10365 | hardcode_into_libs=yes | |
10366 | ;; | |
10367 | ||
10368 | newsos6) | |
10369 | version_type=linux | |
10370 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10371 | shlibpath_var=LD_LIBRARY_PATH | |
10372 | shlibpath_overrides_runpath=yes | |
10373 | ;; | |
10374 | ||
10375 | *nto* | *qnx*) | |
10376 | version_type=qnx | |
10377 | need_lib_prefix=no | |
10378 | need_version=no | |
10379 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10380 | soname_spec='${libname}${release}${shared_ext}$major' | |
10381 | shlibpath_var=LD_LIBRARY_PATH | |
10382 | shlibpath_overrides_runpath=no | |
10383 | hardcode_into_libs=yes | |
10384 | dynamic_linker='ldqnx.so' | |
10385 | ;; | |
10386 | ||
10387 | openbsd*) | |
10388 | version_type=sunos | |
10389 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10390 | need_lib_prefix=no | |
10391 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10392 | case $host_os in | |
10393 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10394 | *) need_version=no ;; | |
10395 | esac | |
10396 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10397 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10398 | shlibpath_var=LD_LIBRARY_PATH | |
10399 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10400 | case $host_os in | |
10401 | openbsd2.[89] | openbsd2.[89].*) | |
10402 | shlibpath_overrides_runpath=no | |
10403 | ;; | |
10404 | *) | |
10405 | shlibpath_overrides_runpath=yes | |
10406 | ;; | |
10407 | esac | |
10408 | else | |
10409 | shlibpath_overrides_runpath=yes | |
10410 | fi | |
10411 | ;; | |
10412 | ||
10413 | os2*) | |
10414 | libname_spec='$name' | |
10415 | shrext_cmds=".dll" | |
10416 | need_lib_prefix=no | |
10417 | library_names_spec='$libname${shared_ext} $libname.a' | |
10418 | dynamic_linker='OS/2 ld.exe' | |
10419 | shlibpath_var=LIBPATH | |
10420 | ;; | |
10421 | ||
10422 | osf3* | osf4* | osf5*) | |
10423 | version_type=osf | |
10424 | need_lib_prefix=no | |
10425 | need_version=no | |
10426 | soname_spec='${libname}${release}${shared_ext}$major' | |
10427 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10428 | shlibpath_var=LD_LIBRARY_PATH | |
10429 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10430 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10431 | ;; | |
10432 | ||
10433 | rdos*) | |
10434 | dynamic_linker=no | |
10435 | ;; | |
10436 | ||
10437 | solaris*) | |
10438 | version_type=linux | |
10439 | need_lib_prefix=no | |
10440 | need_version=no | |
10441 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10442 | soname_spec='${libname}${release}${shared_ext}$major' | |
10443 | shlibpath_var=LD_LIBRARY_PATH | |
10444 | shlibpath_overrides_runpath=yes | |
10445 | hardcode_into_libs=yes | |
10446 | # ldd complains unless libraries are executable | |
10447 | postinstall_cmds='chmod +x $lib' | |
10448 | ;; | |
10449 | ||
10450 | sunos4*) | |
10451 | version_type=sunos | |
10452 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10453 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10454 | shlibpath_var=LD_LIBRARY_PATH | |
10455 | shlibpath_overrides_runpath=yes | |
10456 | if test "$with_gnu_ld" = yes; then | |
10457 | need_lib_prefix=no | |
10458 | fi | |
10459 | need_version=yes | |
10460 | ;; | |
10461 | ||
10462 | sysv4 | sysv4.3*) | |
10463 | version_type=linux | |
10464 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10465 | soname_spec='${libname}${release}${shared_ext}$major' | |
10466 | shlibpath_var=LD_LIBRARY_PATH | |
10467 | case $host_vendor in | |
10468 | sni) | |
10469 | shlibpath_overrides_runpath=no | |
10470 | need_lib_prefix=no | |
10471 | runpath_var=LD_RUN_PATH | |
10472 | ;; | |
10473 | siemens) | |
10474 | need_lib_prefix=no | |
10475 | ;; | |
10476 | motorola) | |
10477 | need_lib_prefix=no | |
10478 | need_version=no | |
10479 | shlibpath_overrides_runpath=no | |
10480 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10481 | ;; | |
10482 | esac | |
10483 | ;; | |
10484 | ||
10485 | sysv4*MP*) | |
10486 | if test -d /usr/nec ;then | |
10487 | version_type=linux | |
10488 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10489 | soname_spec='$libname${shared_ext}.$major' | |
10490 | shlibpath_var=LD_LIBRARY_PATH | |
10491 | fi | |
10492 | ;; | |
10493 | ||
10494 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10495 | version_type=freebsd-elf | |
10496 | need_lib_prefix=no | |
10497 | need_version=no | |
10498 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10499 | soname_spec='${libname}${release}${shared_ext}$major' | |
10500 | shlibpath_var=LD_LIBRARY_PATH | |
10501 | shlibpath_overrides_runpath=yes | |
10502 | hardcode_into_libs=yes | |
10503 | if test "$with_gnu_ld" = yes; then | |
10504 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10505 | else | |
10506 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10507 | case $host_os in | |
10508 | sco3.2v5*) | |
10509 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10510 | ;; | |
10511 | esac | |
10512 | fi | |
10513 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10514 | ;; | |
10515 | ||
10516 | tpf*) | |
10517 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10518 | version_type=linux | |
10519 | need_lib_prefix=no | |
10520 | need_version=no | |
718a6fd8 | 10521 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
d7040cdb SE |
10522 | shlibpath_var=LD_LIBRARY_PATH |
10523 | shlibpath_overrides_runpath=no | |
10524 | hardcode_into_libs=yes | |
10525 | ;; | |
10526 | ||
10527 | uts4*) | |
10528 | version_type=linux | |
10529 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10530 | soname_spec='${libname}${release}${shared_ext}$major' | |
10531 | shlibpath_var=LD_LIBRARY_PATH | |
10532 | ;; | |
10533 | ||
10534 | *) | |
10535 | dynamic_linker=no | |
10536 | ;; | |
10537 | esac | |
10538 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
10539 | echo "${ECHO_T}$dynamic_linker" >&6 | |
10540 | test "$dynamic_linker" = no && can_build_shared=no | |
10541 | ||
10542 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10543 | if test "$GCC" = yes; then | |
10544 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10545 | fi | |
10546 | ||
718a6fd8 SE |
10547 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10548 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10549 | fi | |
10550 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10551 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10552 | fi | |
10553 | ||
d7040cdb SE |
10554 | |
10555 | ||
10556 | ||
10557 | ||
10558 | ||
10559 | ||
10560 | ||
10561 | ||
10562 | ||
10563 | ||
10564 | ||
10565 | ||
10566 | ||
10567 | ||
10568 | ||
10569 | ||
10570 | ||
10571 | ||
10572 | ||
10573 | ||
10574 | ||
10575 | ||
10576 | ||
10577 | ||
10578 | ||
10579 | ||
10580 | ||
10581 | ||
10582 | ||
10583 | ||
10584 | ||
10585 | ||
10586 | ||
10587 | ||
10588 | ||
10589 | ||
10590 | ||
10591 | ||
10592 | ||
10593 | ||
10594 | ||
10595 | ||
10596 | ||
10597 | ||
10598 | ||
10599 | ||
10600 | ||
10601 | ||
10602 | ||
10603 | ||
10604 | ||
10605 | ||
10606 | ||
10607 | ||
10608 | ||
10609 | ||
10610 | ||
10611 | ||
10612 | ||
10613 | ||
10614 | ||
10615 | ||
10616 | ||
10617 | ||
10618 | ||
10619 | ||
10620 | ||
10621 | ||
10622 | ||
10623 | ||
10624 | ||
10625 | ||
10626 | ||
10627 | ||
10628 | ||
10629 | ||
10630 | ||
10631 | ||
10632 | ||
10633 | ||
10634 | ||
10635 | ||
10636 | ||
10637 | ||
10638 | ||
10639 | ||
10640 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
10641 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
10642 | hardcode_action= | |
10643 | if test -n "$hardcode_libdir_flag_spec" || | |
10644 | test -n "$runpath_var" || | |
10645 | test "X$hardcode_automatic" = "Xyes" ; then | |
10646 | ||
10647 | # We can hardcode non-existent directories. | |
10648 | if test "$hardcode_direct" != no && | |
10649 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10650 | # have to relink, otherwise we might link with an installed library | |
10651 | # when we should be linking with a yet-to-be-installed one | |
10652 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10653 | test "$hardcode_minus_L" != no; then | |
10654 | # Linking always hardcodes the temporary library directory. | |
10655 | hardcode_action=relink | |
10656 | else | |
10657 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10658 | hardcode_action=immediate | |
10659 | fi | |
10660 | else | |
10661 | # We cannot hardcode anything, or else we can only hardcode existing | |
10662 | # directories. | |
10663 | hardcode_action=unsupported | |
10664 | fi | |
10665 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
10666 | echo "${ECHO_T}$hardcode_action" >&6 | |
10667 | ||
10668 | if test "$hardcode_action" = relink || | |
10669 | test "$inherit_rpath" = yes; then | |
10670 | # Fast installation is not supported | |
10671 | enable_fast_install=no | |
10672 | elif test "$shlibpath_overrides_runpath" = yes || | |
10673 | test "$enable_shared" = no; then | |
10674 | # Fast installation is not necessary | |
10675 | enable_fast_install=needless | |
10676 | fi | |
10677 | ||
10678 | ||
10679 | ||
10680 | ||
10681 | ||
10682 | ||
10683 | if test "x$enable_dlopen" != xyes; then | |
10684 | enable_dlopen=unknown | |
10685 | enable_dlopen_self=unknown | |
10686 | enable_dlopen_self_static=unknown | |
10687 | else | |
10688 | lt_cv_dlopen=no | |
10689 | lt_cv_dlopen_libs= | |
10690 | ||
10691 | case $host_os in | |
10692 | beos*) | |
10693 | lt_cv_dlopen="load_add_on" | |
10694 | lt_cv_dlopen_libs= | |
10695 | lt_cv_dlopen_self=yes | |
10696 | ;; | |
10697 | ||
718a6fd8 | 10698 | mingw* | pw32* | cegcc*) |
d7040cdb SE |
10699 | lt_cv_dlopen="LoadLibrary" |
10700 | lt_cv_dlopen_libs= | |
10701 | ;; | |
10702 | ||
10703 | cygwin*) | |
10704 | lt_cv_dlopen="dlopen" | |
10705 | lt_cv_dlopen_libs= | |
10706 | ;; | |
10707 | ||
10708 | darwin*) | |
10709 | # if libdl is installed we need to link against it | |
10710 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
10711 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
10712 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
10713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10714 | else | |
10715 | ac_check_lib_save_LIBS=$LIBS | |
10716 | LIBS="-ldl $LIBS" | |
10717 | cat >conftest.$ac_ext <<_ACEOF | |
10718 | /* confdefs.h. */ | |
10719 | _ACEOF | |
10720 | cat confdefs.h >>conftest.$ac_ext | |
10721 | cat >>conftest.$ac_ext <<_ACEOF | |
10722 | /* end confdefs.h. */ | |
10723 | ||
10724 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10725 | #ifdef __cplusplus | |
10726 | extern "C" | |
10727 | #endif | |
10728 | /* We use char because int might match the return type of a gcc2 | |
10729 | builtin and then its argument prototype would still apply. */ | |
10730 | char dlopen (); | |
10731 | int | |
10732 | main () | |
10733 | { | |
10734 | dlopen (); | |
10735 | ; | |
10736 | return 0; | |
10737 | } | |
10738 | _ACEOF | |
10739 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10740 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10741 | (eval $ac_link) 2>conftest.er1 | |
10742 | ac_status=$? | |
10743 | grep -v '^ *+' conftest.er1 >conftest.err | |
10744 | rm -f conftest.er1 | |
10745 | cat conftest.err >&5 | |
10746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10747 | (exit $ac_status); } && | |
7357c5b6 AM |
10748 | { ac_try='test -z "$ac_c_werror_flag" |
10749 | || test ! -s conftest.err' | |
d7040cdb SE |
10750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10751 | (eval $ac_try) 2>&5 | |
10752 | ac_status=$? | |
10753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10754 | (exit $ac_status); }; } && | |
10755 | { ac_try='test -s conftest$ac_exeext' | |
10756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10757 | (eval $ac_try) 2>&5 | |
10758 | ac_status=$? | |
10759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10760 | (exit $ac_status); }; }; then | |
10761 | ac_cv_lib_dl_dlopen=yes | |
10762 | else | |
10763 | echo "$as_me: failed program was:" >&5 | |
10764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10765 | ||
10766 | ac_cv_lib_dl_dlopen=no | |
10767 | fi | |
10768 | rm -f conftest.err conftest.$ac_objext \ | |
10769 | conftest$ac_exeext conftest.$ac_ext | |
10770 | LIBS=$ac_check_lib_save_LIBS | |
10771 | fi | |
10772 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
10773 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
10774 | if test $ac_cv_lib_dl_dlopen = yes; then | |
10775 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10776 | else | |
10777 | ||
10778 | lt_cv_dlopen="dyld" | |
10779 | lt_cv_dlopen_libs= | |
10780 | lt_cv_dlopen_self=yes | |
10781 | ||
10782 | fi | |
10783 | ||
10784 | ;; | |
10785 | ||
10786 | *) | |
10787 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
10788 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
10789 | if test "${ac_cv_func_shl_load+set}" = set; then | |
10790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10791 | else | |
10792 | cat >conftest.$ac_ext <<_ACEOF | |
10793 | /* confdefs.h. */ | |
10794 | _ACEOF | |
10795 | cat confdefs.h >>conftest.$ac_ext | |
10796 | cat >>conftest.$ac_ext <<_ACEOF | |
10797 | /* end confdefs.h. */ | |
10798 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
10799 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10800 | #define shl_load innocuous_shl_load | |
10801 | ||
10802 | /* System header to define __stub macros and hopefully few prototypes, | |
10803 | which can conflict with char shl_load (); below. | |
10804 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10805 | <limits.h> exists even on freestanding compilers. */ | |
10806 | ||
10807 | #ifdef __STDC__ | |
10808 | # include <limits.h> | |
10809 | #else | |
10810 | # include <assert.h> | |
10811 | #endif | |
10812 | ||
10813 | #undef shl_load | |
10814 | ||
10815 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10816 | #ifdef __cplusplus | |
10817 | extern "C" | |
10818 | { | |
10819 | #endif | |
10820 | /* We use char because int might match the return type of a gcc2 | |
10821 | builtin and then its argument prototype would still apply. */ | |
10822 | char shl_load (); | |
10823 | /* The GNU C library defines this for functions which it implements | |
10824 | to always fail with ENOSYS. Some functions are actually named | |
10825 | something starting with __ and the normal name is an alias. */ | |
10826 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
10827 | choke me | |
10828 | #else | |
10829 | char (*f) () = shl_load; | |
10830 | #endif | |
10831 | #ifdef __cplusplus | |
10832 | } | |
10833 | #endif | |
10834 | ||
10835 | int | |
10836 | main () | |
10837 | { | |
10838 | return f != shl_load; | |
10839 | ; | |
10840 | return 0; | |
10841 | } | |
10842 | _ACEOF | |
10843 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10844 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10845 | (eval $ac_link) 2>conftest.er1 | |
10846 | ac_status=$? | |
10847 | grep -v '^ *+' conftest.er1 >conftest.err | |
10848 | rm -f conftest.er1 | |
10849 | cat conftest.err >&5 | |
10850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10851 | (exit $ac_status); } && | |
7357c5b6 AM |
10852 | { ac_try='test -z "$ac_c_werror_flag" |
10853 | || test ! -s conftest.err' | |
d7040cdb SE |
10854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10855 | (eval $ac_try) 2>&5 | |
10856 | ac_status=$? | |
10857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10858 | (exit $ac_status); }; } && | |
10859 | { ac_try='test -s conftest$ac_exeext' | |
10860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10861 | (eval $ac_try) 2>&5 | |
10862 | ac_status=$? | |
10863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10864 | (exit $ac_status); }; }; then | |
10865 | ac_cv_func_shl_load=yes | |
10866 | else | |
10867 | echo "$as_me: failed program was:" >&5 | |
10868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10869 | ||
10870 | ac_cv_func_shl_load=no | |
10871 | fi | |
10872 | rm -f conftest.err conftest.$ac_objext \ | |
10873 | conftest$ac_exeext conftest.$ac_ext | |
10874 | fi | |
10875 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
10876 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
10877 | if test $ac_cv_func_shl_load = yes; then | |
10878 | lt_cv_dlopen="shl_load" | |
10879 | else | |
10880 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
10881 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
10882 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
10883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10884 | else | |
10885 | ac_check_lib_save_LIBS=$LIBS | |
10886 | LIBS="-ldld $LIBS" | |
10887 | cat >conftest.$ac_ext <<_ACEOF | |
10888 | /* confdefs.h. */ | |
10889 | _ACEOF | |
10890 | cat confdefs.h >>conftest.$ac_ext | |
10891 | cat >>conftest.$ac_ext <<_ACEOF | |
10892 | /* end confdefs.h. */ | |
10893 | ||
10894 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10895 | #ifdef __cplusplus | |
10896 | extern "C" | |
10897 | #endif | |
10898 | /* We use char because int might match the return type of a gcc2 | |
10899 | builtin and then its argument prototype would still apply. */ | |
10900 | char shl_load (); | |
10901 | int | |
10902 | main () | |
10903 | { | |
10904 | shl_load (); | |
10905 | ; | |
10906 | return 0; | |
10907 | } | |
10908 | _ACEOF | |
10909 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10910 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10911 | (eval $ac_link) 2>conftest.er1 | |
10912 | ac_status=$? | |
10913 | grep -v '^ *+' conftest.er1 >conftest.err | |
10914 | rm -f conftest.er1 | |
10915 | cat conftest.err >&5 | |
10916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10917 | (exit $ac_status); } && | |
7357c5b6 AM |
10918 | { ac_try='test -z "$ac_c_werror_flag" |
10919 | || test ! -s conftest.err' | |
d7040cdb SE |
10920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10921 | (eval $ac_try) 2>&5 | |
10922 | ac_status=$? | |
10923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10924 | (exit $ac_status); }; } && | |
10925 | { ac_try='test -s conftest$ac_exeext' | |
10926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10927 | (eval $ac_try) 2>&5 | |
10928 | ac_status=$? | |
10929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10930 | (exit $ac_status); }; }; then | |
10931 | ac_cv_lib_dld_shl_load=yes | |
10932 | else | |
10933 | echo "$as_me: failed program was:" >&5 | |
10934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10935 | ||
10936 | ac_cv_lib_dld_shl_load=no | |
10937 | fi | |
10938 | rm -f conftest.err conftest.$ac_objext \ | |
10939 | conftest$ac_exeext conftest.$ac_ext | |
10940 | LIBS=$ac_check_lib_save_LIBS | |
10941 | fi | |
10942 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
10943 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
10944 | if test $ac_cv_lib_dld_shl_load = yes; then | |
718a6fd8 | 10945 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
d7040cdb SE |
10946 | else |
10947 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
10948 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
10949 | if test "${ac_cv_func_dlopen+set}" = set; then | |
10950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10951 | else | |
10952 | cat >conftest.$ac_ext <<_ACEOF | |
10953 | /* confdefs.h. */ | |
10954 | _ACEOF | |
10955 | cat confdefs.h >>conftest.$ac_ext | |
10956 | cat >>conftest.$ac_ext <<_ACEOF | |
10957 | /* end confdefs.h. */ | |
10958 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
10959 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10960 | #define dlopen innocuous_dlopen | |
10961 | ||
10962 | /* System header to define __stub macros and hopefully few prototypes, | |
10963 | which can conflict with char dlopen (); below. | |
10964 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10965 | <limits.h> exists even on freestanding compilers. */ | |
10966 | ||
10967 | #ifdef __STDC__ | |
10968 | # include <limits.h> | |
10969 | #else | |
10970 | # include <assert.h> | |
10971 | #endif | |
10972 | ||
10973 | #undef dlopen | |
10974 | ||
10975 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10976 | #ifdef __cplusplus | |
10977 | extern "C" | |
10978 | { | |
10979 | #endif | |
10980 | /* We use char because int might match the return type of a gcc2 | |
10981 | builtin and then its argument prototype would still apply. */ | |
10982 | char dlopen (); | |
10983 | /* The GNU C library defines this for functions which it implements | |
10984 | to always fail with ENOSYS. Some functions are actually named | |
10985 | something starting with __ and the normal name is an alias. */ | |
10986 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
10987 | choke me | |
10988 | #else | |
10989 | char (*f) () = dlopen; | |
10990 | #endif | |
10991 | #ifdef __cplusplus | |
10992 | } | |
10993 | #endif | |
10994 | ||
10995 | int | |
10996 | main () | |
10997 | { | |
10998 | return f != dlopen; | |
10999 | ; | |
11000 | return 0; | |
11001 | } | |
11002 | _ACEOF | |
11003 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11004 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11005 | (eval $ac_link) 2>conftest.er1 | |
11006 | ac_status=$? | |
11007 | grep -v '^ *+' conftest.er1 >conftest.err | |
11008 | rm -f conftest.er1 | |
11009 | cat conftest.err >&5 | |
11010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11011 | (exit $ac_status); } && | |
7357c5b6 AM |
11012 | { ac_try='test -z "$ac_c_werror_flag" |
11013 | || test ! -s conftest.err' | |
d7040cdb SE |
11014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11015 | (eval $ac_try) 2>&5 | |
11016 | ac_status=$? | |
11017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11018 | (exit $ac_status); }; } && | |
11019 | { ac_try='test -s conftest$ac_exeext' | |
11020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11021 | (eval $ac_try) 2>&5 | |
11022 | ac_status=$? | |
11023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11024 | (exit $ac_status); }; }; then | |
11025 | ac_cv_func_dlopen=yes | |
11026 | else | |
11027 | echo "$as_me: failed program was:" >&5 | |
11028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11029 | ||
11030 | ac_cv_func_dlopen=no | |
11031 | fi | |
11032 | rm -f conftest.err conftest.$ac_objext \ | |
11033 | conftest$ac_exeext conftest.$ac_ext | |
11034 | fi | |
11035 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
11036 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
11037 | if test $ac_cv_func_dlopen = yes; then | |
11038 | lt_cv_dlopen="dlopen" | |
11039 | else | |
11040 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
11041 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
11042 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
11043 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11044 | else | |
11045 | ac_check_lib_save_LIBS=$LIBS | |
11046 | LIBS="-ldl $LIBS" | |
11047 | cat >conftest.$ac_ext <<_ACEOF | |
11048 | /* confdefs.h. */ | |
11049 | _ACEOF | |
11050 | cat confdefs.h >>conftest.$ac_ext | |
11051 | cat >>conftest.$ac_ext <<_ACEOF | |
11052 | /* end confdefs.h. */ | |
11053 | ||
11054 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11055 | #ifdef __cplusplus | |
11056 | extern "C" | |
11057 | #endif | |
11058 | /* We use char because int might match the return type of a gcc2 | |
11059 | builtin and then its argument prototype would still apply. */ | |
11060 | char dlopen (); | |
11061 | int | |
11062 | main () | |
11063 | { | |
11064 | dlopen (); | |
11065 | ; | |
11066 | return 0; | |
11067 | } | |
11068 | _ACEOF | |
11069 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11070 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11071 | (eval $ac_link) 2>conftest.er1 | |
11072 | ac_status=$? | |
11073 | grep -v '^ *+' conftest.er1 >conftest.err | |
11074 | rm -f conftest.er1 | |
11075 | cat conftest.err >&5 | |
11076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11077 | (exit $ac_status); } && | |
7357c5b6 AM |
11078 | { ac_try='test -z "$ac_c_werror_flag" |
11079 | || test ! -s conftest.err' | |
d7040cdb SE |
11080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11081 | (eval $ac_try) 2>&5 | |
11082 | ac_status=$? | |
11083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11084 | (exit $ac_status); }; } && | |
11085 | { ac_try='test -s conftest$ac_exeext' | |
11086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11087 | (eval $ac_try) 2>&5 | |
11088 | ac_status=$? | |
11089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11090 | (exit $ac_status); }; }; then | |
11091 | ac_cv_lib_dl_dlopen=yes | |
11092 | else | |
11093 | echo "$as_me: failed program was:" >&5 | |
11094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11095 | ||
11096 | ac_cv_lib_dl_dlopen=no | |
11097 | fi | |
11098 | rm -f conftest.err conftest.$ac_objext \ | |
11099 | conftest$ac_exeext conftest.$ac_ext | |
11100 | LIBS=$ac_check_lib_save_LIBS | |
11101 | fi | |
11102 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
11103 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
11104 | if test $ac_cv_lib_dl_dlopen = yes; then | |
11105 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11106 | else | |
11107 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
11108 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
11109 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
11110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11111 | else | |
11112 | ac_check_lib_save_LIBS=$LIBS | |
11113 | LIBS="-lsvld $LIBS" | |
11114 | cat >conftest.$ac_ext <<_ACEOF | |
11115 | /* confdefs.h. */ | |
11116 | _ACEOF | |
11117 | cat confdefs.h >>conftest.$ac_ext | |
11118 | cat >>conftest.$ac_ext <<_ACEOF | |
11119 | /* end confdefs.h. */ | |
11120 | ||
11121 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11122 | #ifdef __cplusplus | |
11123 | extern "C" | |
11124 | #endif | |
11125 | /* We use char because int might match the return type of a gcc2 | |
11126 | builtin and then its argument prototype would still apply. */ | |
11127 | char dlopen (); | |
11128 | int | |
11129 | main () | |
11130 | { | |
11131 | dlopen (); | |
11132 | ; | |
11133 | return 0; | |
11134 | } | |
11135 | _ACEOF | |
11136 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11137 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11138 | (eval $ac_link) 2>conftest.er1 | |
11139 | ac_status=$? | |
11140 | grep -v '^ *+' conftest.er1 >conftest.err | |
11141 | rm -f conftest.er1 | |
11142 | cat conftest.err >&5 | |
11143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11144 | (exit $ac_status); } && | |
7357c5b6 AM |
11145 | { ac_try='test -z "$ac_c_werror_flag" |
11146 | || test ! -s conftest.err' | |
d7040cdb SE |
11147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11148 | (eval $ac_try) 2>&5 | |
11149 | ac_status=$? | |
11150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11151 | (exit $ac_status); }; } && | |
11152 | { ac_try='test -s conftest$ac_exeext' | |
11153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11154 | (eval $ac_try) 2>&5 | |
11155 | ac_status=$? | |
11156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11157 | (exit $ac_status); }; }; then | |
11158 | ac_cv_lib_svld_dlopen=yes | |
11159 | else | |
11160 | echo "$as_me: failed program was:" >&5 | |
11161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11162 | ||
11163 | ac_cv_lib_svld_dlopen=no | |
11164 | fi | |
11165 | rm -f conftest.err conftest.$ac_objext \ | |
11166 | conftest$ac_exeext conftest.$ac_ext | |
11167 | LIBS=$ac_check_lib_save_LIBS | |
11168 | fi | |
11169 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
11170 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
11171 | if test $ac_cv_lib_svld_dlopen = yes; then | |
11172 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
11173 | else | |
11174 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
11175 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
11176 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
11177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11178 | else | |
11179 | ac_check_lib_save_LIBS=$LIBS | |
11180 | LIBS="-ldld $LIBS" | |
11181 | cat >conftest.$ac_ext <<_ACEOF | |
11182 | /* confdefs.h. */ | |
11183 | _ACEOF | |
11184 | cat confdefs.h >>conftest.$ac_ext | |
11185 | cat >>conftest.$ac_ext <<_ACEOF | |
11186 | /* end confdefs.h. */ | |
11187 | ||
11188 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11189 | #ifdef __cplusplus | |
11190 | extern "C" | |
11191 | #endif | |
11192 | /* We use char because int might match the return type of a gcc2 | |
11193 | builtin and then its argument prototype would still apply. */ | |
11194 | char dld_link (); | |
11195 | int | |
11196 | main () | |
11197 | { | |
11198 | dld_link (); | |
11199 | ; | |
11200 | return 0; | |
11201 | } | |
11202 | _ACEOF | |
11203 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11204 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11205 | (eval $ac_link) 2>conftest.er1 | |
11206 | ac_status=$? | |
11207 | grep -v '^ *+' conftest.er1 >conftest.err | |
11208 | rm -f conftest.er1 | |
11209 | cat conftest.err >&5 | |
11210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11211 | (exit $ac_status); } && | |
7357c5b6 AM |
11212 | { ac_try='test -z "$ac_c_werror_flag" |
11213 | || test ! -s conftest.err' | |
d7040cdb SE |
11214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11215 | (eval $ac_try) 2>&5 | |
11216 | ac_status=$? | |
11217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11218 | (exit $ac_status); }; } && | |
11219 | { ac_try='test -s conftest$ac_exeext' | |
11220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11221 | (eval $ac_try) 2>&5 | |
11222 | ac_status=$? | |
11223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11224 | (exit $ac_status); }; }; then | |
11225 | ac_cv_lib_dld_dld_link=yes | |
11226 | else | |
11227 | echo "$as_me: failed program was:" >&5 | |
11228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11229 | ||
11230 | ac_cv_lib_dld_dld_link=no | |
11231 | fi | |
11232 | rm -f conftest.err conftest.$ac_objext \ | |
11233 | conftest$ac_exeext conftest.$ac_ext | |
11234 | LIBS=$ac_check_lib_save_LIBS | |
11235 | fi | |
11236 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
11237 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
11238 | if test $ac_cv_lib_dld_dld_link = yes; then | |
718a6fd8 | 11239 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
d7040cdb SE |
11240 | fi |
11241 | ||
11242 | ||
11243 | fi | |
11244 | ||
11245 | ||
11246 | fi | |
11247 | ||
11248 | ||
11249 | fi | |
11250 | ||
11251 | ||
11252 | fi | |
11253 | ||
11254 | ||
11255 | fi | |
11256 | ||
11257 | ;; | |
11258 | esac | |
11259 | ||
11260 | if test "x$lt_cv_dlopen" != xno; then | |
11261 | enable_dlopen=yes | |
11262 | else | |
11263 | enable_dlopen=no | |
11264 | fi | |
11265 | ||
11266 | case $lt_cv_dlopen in | |
11267 | dlopen) | |
11268 | save_CPPFLAGS="$CPPFLAGS" | |
11269 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11270 | ||
11271 | save_LDFLAGS="$LDFLAGS" | |
11272 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11273 | ||
11274 | save_LIBS="$LIBS" | |
11275 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11276 | ||
11277 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
11278 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
11279 | if test "${lt_cv_dlopen_self+set}" = set; then | |
11280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11281 | else | |
11282 | if test "$cross_compiling" = yes; then : | |
11283 | lt_cv_dlopen_self=cross | |
11284 | else | |
11285 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11286 | lt_status=$lt_dlunknown | |
11287 | cat > conftest.$ac_ext <<_LT_EOF | |
29670fb9 | 11288 | #line 11288 "configure" |
d7040cdb SE |
11289 | #include "confdefs.h" |
11290 | ||
11291 | #if HAVE_DLFCN_H | |
11292 | #include <dlfcn.h> | |
11293 | #endif | |
11294 | ||
11295 | #include <stdio.h> | |
11296 | ||
11297 | #ifdef RTLD_GLOBAL | |
11298 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11299 | #else | |
11300 | # ifdef DL_GLOBAL | |
11301 | # define LT_DLGLOBAL DL_GLOBAL | |
11302 | # else | |
11303 | # define LT_DLGLOBAL 0 | |
11304 | # endif | |
11305 | #endif | |
11306 | ||
11307 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11308 | find out it does not work in some platform. */ | |
11309 | #ifndef LT_DLLAZY_OR_NOW | |
11310 | # ifdef RTLD_LAZY | |
11311 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11312 | # else | |
11313 | # ifdef DL_LAZY | |
11314 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11315 | # else | |
11316 | # ifdef RTLD_NOW | |
11317 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11318 | # else | |
11319 | # ifdef DL_NOW | |
11320 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11321 | # else | |
11322 | # define LT_DLLAZY_OR_NOW 0 | |
11323 | # endif | |
11324 | # endif | |
11325 | # endif | |
11326 | # endif | |
11327 | #endif | |
11328 | ||
d7040cdb SE |
11329 | void fnord() { int i=42;} |
11330 | int main () | |
11331 | { | |
11332 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11333 | int status = $lt_dlunknown; | |
11334 | ||
11335 | if (self) | |
11336 | { | |
11337 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11338 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11339 | /* dlclose (self); */ | |
11340 | } | |
11341 | else | |
11342 | puts (dlerror ()); | |
11343 | ||
718a6fd8 | 11344 | return status; |
d7040cdb SE |
11345 | } |
11346 | _LT_EOF | |
11347 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11348 | (eval $ac_link) 2>&5 | |
11349 | ac_status=$? | |
11350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11351 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11352 | (./conftest; exit; ) >&5 2>/dev/null | |
11353 | lt_status=$? | |
11354 | case x$lt_status in | |
11355 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11356 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11357 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11358 | esac | |
11359 | else : | |
11360 | # compilation failed | |
11361 | lt_cv_dlopen_self=no | |
11362 | fi | |
11363 | fi | |
11364 | rm -fr conftest* | |
11365 | ||
11366 | ||
11367 | fi | |
11368 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
11369 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
11370 | ||
11371 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11372 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11373 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
11374 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
11375 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
11376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11377 | else | |
11378 | if test "$cross_compiling" = yes; then : | |
11379 | lt_cv_dlopen_self_static=cross | |
11380 | else | |
11381 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11382 | lt_status=$lt_dlunknown | |
11383 | cat > conftest.$ac_ext <<_LT_EOF | |
29670fb9 | 11384 | #line 11384 "configure" |
d7040cdb SE |
11385 | #include "confdefs.h" |
11386 | ||
11387 | #if HAVE_DLFCN_H | |
11388 | #include <dlfcn.h> | |
11389 | #endif | |
11390 | ||
11391 | #include <stdio.h> | |
11392 | ||
11393 | #ifdef RTLD_GLOBAL | |
11394 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11395 | #else | |
11396 | # ifdef DL_GLOBAL | |
11397 | # define LT_DLGLOBAL DL_GLOBAL | |
11398 | # else | |
11399 | # define LT_DLGLOBAL 0 | |
11400 | # endif | |
11401 | #endif | |
11402 | ||
11403 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11404 | find out it does not work in some platform. */ | |
11405 | #ifndef LT_DLLAZY_OR_NOW | |
11406 | # ifdef RTLD_LAZY | |
11407 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11408 | # else | |
11409 | # ifdef DL_LAZY | |
11410 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11411 | # else | |
11412 | # ifdef RTLD_NOW | |
11413 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11414 | # else | |
11415 | # ifdef DL_NOW | |
11416 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11417 | # else | |
11418 | # define LT_DLLAZY_OR_NOW 0 | |
11419 | # endif | |
11420 | # endif | |
11421 | # endif | |
11422 | # endif | |
11423 | #endif | |
11424 | ||
d7040cdb SE |
11425 | void fnord() { int i=42;} |
11426 | int main () | |
11427 | { | |
11428 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11429 | int status = $lt_dlunknown; | |
11430 | ||
11431 | if (self) | |
11432 | { | |
11433 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11434 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11435 | /* dlclose (self); */ | |
11436 | } | |
11437 | else | |
11438 | puts (dlerror ()); | |
11439 | ||
718a6fd8 | 11440 | return status; |
d7040cdb SE |
11441 | } |
11442 | _LT_EOF | |
11443 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11444 | (eval $ac_link) 2>&5 | |
11445 | ac_status=$? | |
11446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11447 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11448 | (./conftest; exit; ) >&5 2>/dev/null | |
11449 | lt_status=$? | |
11450 | case x$lt_status in | |
11451 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11452 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11453 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11454 | esac | |
11455 | else : | |
11456 | # compilation failed | |
11457 | lt_cv_dlopen_self_static=no | |
11458 | fi | |
11459 | fi | |
11460 | rm -fr conftest* | |
11461 | ||
11462 | ||
11463 | fi | |
11464 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
11465 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
11466 | fi | |
11467 | ||
11468 | CPPFLAGS="$save_CPPFLAGS" | |
11469 | LDFLAGS="$save_LDFLAGS" | |
11470 | LIBS="$save_LIBS" | |
11471 | ;; | |
11472 | esac | |
11473 | ||
11474 | case $lt_cv_dlopen_self in | |
11475 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11476 | *) enable_dlopen_self=unknown ;; | |
11477 | esac | |
11478 | ||
11479 | case $lt_cv_dlopen_self_static in | |
11480 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11481 | *) enable_dlopen_self_static=unknown ;; | |
11482 | esac | |
11483 | fi | |
11484 | ||
11485 | ||
11486 | ||
11487 | ||
11488 | ||
11489 | ||
11490 | ||
11491 | ||
11492 | ||
11493 | ||
11494 | ||
11495 | ||
11496 | ||
11497 | ||
11498 | ||
11499 | ||
11500 | ||
11501 | striplib= | |
11502 | old_striplib= | |
11503 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
11504 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
11505 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11506 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11507 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11508 | echo "$as_me:$LINENO: result: yes" >&5 | |
11509 | echo "${ECHO_T}yes" >&6 | |
11510 | else | |
11511 | # FIXME - insert some real tests, host_os isn't really good enough | |
11512 | case $host_os in | |
11513 | darwin*) | |
11514 | if test -n "$STRIP" ; then | |
11515 | striplib="$STRIP -x" | |
11516 | old_striplib="$STRIP -S" | |
11517 | echo "$as_me:$LINENO: result: yes" >&5 | |
11518 | echo "${ECHO_T}yes" >&6 | |
11519 | else | |
11520 | echo "$as_me:$LINENO: result: no" >&5 | |
11521 | echo "${ECHO_T}no" >&6 | |
11522 | fi | |
11523 | ;; | |
11524 | *) | |
11525 | echo "$as_me:$LINENO: result: no" >&5 | |
11526 | echo "${ECHO_T}no" >&6 | |
11527 | ;; | |
11528 | esac | |
11529 | fi | |
11530 | ||
11531 | ||
11532 | ||
11533 | ||
11534 | ||
11535 | ||
11536 | ||
11537 | ||
11538 | ||
11539 | ||
11540 | ||
11541 | ||
11542 | # Report which library types will actually be built | |
11543 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
11544 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
11545 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
11546 | echo "${ECHO_T}$can_build_shared" >&6 | |
11547 | ||
11548 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
11549 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
11550 | test "$can_build_shared" = "no" && enable_shared=no | |
11551 | ||
11552 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11553 | # are all built from PIC. | |
11554 | case $host_os in | |
11555 | aix3*) | |
11556 | test "$enable_shared" = yes && enable_static=no | |
11557 | if test -n "$RANLIB"; then | |
11558 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11559 | postinstall_cmds='$RANLIB $lib' | |
11560 | fi | |
11561 | ;; | |
11562 | ||
50e7d84b | 11563 | aix[4-9]*) |
d7040cdb SE |
11564 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
11565 | test "$enable_shared" = yes && enable_static=no | |
11566 | fi | |
11567 | ;; | |
11568 | esac | |
11569 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
11570 | echo "${ECHO_T}$enable_shared" >&6 | |
11571 | ||
11572 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
11573 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
11574 | # Make sure either enable_shared or enable_static is yes. | |
11575 | test "$enable_shared" = yes || enable_static=yes | |
11576 | echo "$as_me:$LINENO: result: $enable_static" >&5 | |
11577 | echo "${ECHO_T}$enable_static" >&6 | |
11578 | ||
11579 | ||
11580 | ||
11581 | ||
11582 | fi | |
11583 | ac_ext=c | |
11584 | ac_cpp='$CPP $CPPFLAGS' | |
11585 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11586 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11587 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11588 | ||
11589 | CC="$lt_save_CC" | |
11590 | ||
11591 | ||
11592 | ||
11593 | ||
11594 | ||
11595 | ||
11596 | ||
11597 | ||
11598 | ||
11599 | ||
11600 | ||
11601 | ||
11602 | ||
11603 | ac_config_commands="$ac_config_commands libtool" | |
11604 | ||
11605 | ||
11606 | ||
11607 | ||
11608 | # Only expand once: | |
11609 | ||
11610 | ||
11611 | ||
11612 | # Check whether --enable-targets or --disable-targets was given. | |
11613 | if test "${enable_targets+set}" = set; then | |
11614 | enableval="$enable_targets" | |
11615 | case "${enableval}" in | |
11616 | yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5 | |
11617 | echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;} | |
11618 | { (exit 1); exit 1; }; } | |
11619 | ;; | |
11620 | no) enable_targets= ;; | |
11621 | *) enable_targets=$enableval ;; | |
11622 | esac | |
d7040cdb SE |
11623 | fi; |
11624 | ||
11625 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" | |
11626 | ||
11627 | # Check whether --enable-werror or --disable-werror was given. | |
11628 | if test "${enable_werror+set}" = set; then | |
11629 | enableval="$enable_werror" | |
11630 | case "${enableval}" in | |
11631 | yes | y) ERROR_ON_WARNING="yes" ;; | |
11632 | no | n) ERROR_ON_WARNING="no" ;; | |
11633 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 | |
11634 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} | |
11635 | { (exit 1); exit 1; }; } ;; | |
11636 | esac | |
11637 | fi; | |
11638 | ||
bb8541b9 L |
11639 | # Enable -Wno-format by default when using gcc on mingw |
11640 | case "${host}" in | |
11641 | *-*-mingw32*) | |
11642 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
11643 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
11644 | fi | |
11645 | ;; | |
11646 | *) ;; | |
11647 | esac | |
11648 | ||
d7040cdb SE |
11649 | # Enable -Werror by default when using gcc |
11650 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
11651 | ERROR_ON_WARNING=yes | |
11652 | fi | |
11653 | ||
11654 | NO_WERROR= | |
11655 | if test "${ERROR_ON_WARNING}" = yes ; then | |
11656 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" | |
11657 | NO_WERROR="-Wno-error" | |
11658 | fi | |
11659 | ||
11660 | if test "${GCC}" = yes ; then | |
11661 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
11662 | fi | |
11663 | ||
11664 | # Check whether --enable-build-warnings or --disable-build-warnings was given. | |
11665 | if test "${enable_build_warnings+set}" = set; then | |
11666 | enableval="$enable_build_warnings" | |
11667 | case "${enableval}" in | |
11668 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; | |
11669 | no) if test "${GCC}" = yes ; then | |
11670 | WARN_CFLAGS="-w" | |
11671 | fi;; | |
11672 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
11673 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; | |
11674 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
11675 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; | |
11676 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
11677 | esac | |
11678 | fi; | |
11679 | ||
11680 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then | |
11681 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
11682 | fi | |
11683 | ||
11684 | ||
11685 | ||
11686 | ||
11687 | ||
11688 | ac_config_headers="$ac_config_headers config.h:config.in" | |
11689 | ||
11690 | ||
11691 | if test -z "$target" ; then | |
11692 | { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5 | |
11693 | echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;} | |
11694 | { (exit 1); exit 1; }; } | |
11695 | fi | |
11696 | if test -z "$host" ; then | |
11697 | { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5 | |
11698 | echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;} | |
11699 | { (exit 1); exit 1; }; } | |
11700 | fi | |
11701 | ||
11702 | for ac_prog in 'bison -y' byacc | |
11703 | do | |
11704 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11705 | set dummy $ac_prog; ac_word=$2 | |
11706 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11707 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11708 | if test "${ac_cv_prog_YACC+set}" = set; then | |
11709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11710 | else | |
11711 | if test -n "$YACC"; then | |
11712 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
11713 | else | |
11714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11715 | for as_dir in $PATH | |
11716 | do | |
11717 | IFS=$as_save_IFS | |
11718 | test -z "$as_dir" && as_dir=. | |
11719 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11720 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11721 | ac_cv_prog_YACC="$ac_prog" | |
11722 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11723 | break 2 | |
11724 | fi | |
11725 | done | |
11726 | done | |
11727 | ||
11728 | fi | |
11729 | fi | |
11730 | YACC=$ac_cv_prog_YACC | |
11731 | if test -n "$YACC"; then | |
11732 | echo "$as_me:$LINENO: result: $YACC" >&5 | |
11733 | echo "${ECHO_T}$YACC" >&6 | |
11734 | else | |
11735 | echo "$as_me:$LINENO: result: no" >&5 | |
11736 | echo "${ECHO_T}no" >&6 | |
11737 | fi | |
11738 | ||
11739 | test -n "$YACC" && break | |
11740 | done | |
11741 | test -n "$YACC" || YACC="yacc" | |
11742 | ||
11743 | for ac_prog in flex lex | |
11744 | do | |
11745 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11746 | set dummy $ac_prog; ac_word=$2 | |
11747 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11748 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11749 | if test "${ac_cv_prog_LEX+set}" = set; then | |
11750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11751 | else | |
11752 | if test -n "$LEX"; then | |
11753 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
11754 | else | |
11755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11756 | for as_dir in $PATH | |
11757 | do | |
11758 | IFS=$as_save_IFS | |
11759 | test -z "$as_dir" && as_dir=. | |
11760 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11761 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11762 | ac_cv_prog_LEX="$ac_prog" | |
11763 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11764 | break 2 | |
11765 | fi | |
11766 | done | |
11767 | done | |
11768 | ||
11769 | fi | |
11770 | fi | |
11771 | LEX=$ac_cv_prog_LEX | |
11772 | if test -n "$LEX"; then | |
11773 | echo "$as_me:$LINENO: result: $LEX" >&5 | |
11774 | echo "${ECHO_T}$LEX" >&6 | |
11775 | else | |
11776 | echo "$as_me:$LINENO: result: no" >&5 | |
11777 | echo "${ECHO_T}no" >&6 | |
11778 | fi | |
11779 | ||
11780 | test -n "$LEX" && break | |
11781 | done | |
11782 | test -n "$LEX" || LEX=":" | |
11783 | ||
11784 | if test -z "$LEXLIB" | |
11785 | then | |
11786 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 | |
11787 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 | |
11788 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | |
11789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11790 | else | |
11791 | ac_check_lib_save_LIBS=$LIBS | |
11792 | LIBS="-lfl $LIBS" | |
11793 | cat >conftest.$ac_ext <<_ACEOF | |
11794 | /* confdefs.h. */ | |
11795 | _ACEOF | |
11796 | cat confdefs.h >>conftest.$ac_ext | |
11797 | cat >>conftest.$ac_ext <<_ACEOF | |
11798 | /* end confdefs.h. */ | |
11799 | ||
11800 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11801 | #ifdef __cplusplus | |
11802 | extern "C" | |
11803 | #endif | |
11804 | /* We use char because int might match the return type of a gcc2 | |
11805 | builtin and then its argument prototype would still apply. */ | |
11806 | char yywrap (); | |
11807 | int | |
11808 | main () | |
11809 | { | |
11810 | yywrap (); | |
11811 | ; | |
11812 | return 0; | |
11813 | } | |
11814 | _ACEOF | |
11815 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11816 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11817 | (eval $ac_link) 2>conftest.er1 | |
11818 | ac_status=$? | |
11819 | grep -v '^ *+' conftest.er1 >conftest.err | |
11820 | rm -f conftest.er1 | |
11821 | cat conftest.err >&5 | |
11822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11823 | (exit $ac_status); } && | |
7357c5b6 AM |
11824 | { ac_try='test -z "$ac_c_werror_flag" |
11825 | || test ! -s conftest.err' | |
d7040cdb SE |
11826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11827 | (eval $ac_try) 2>&5 | |
11828 | ac_status=$? | |
11829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11830 | (exit $ac_status); }; } && | |
11831 | { ac_try='test -s conftest$ac_exeext' | |
11832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11833 | (eval $ac_try) 2>&5 | |
11834 | ac_status=$? | |
11835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11836 | (exit $ac_status); }; }; then | |
11837 | ac_cv_lib_fl_yywrap=yes | |
11838 | else | |
11839 | echo "$as_me: failed program was:" >&5 | |
11840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11841 | ||
11842 | ac_cv_lib_fl_yywrap=no | |
11843 | fi | |
11844 | rm -f conftest.err conftest.$ac_objext \ | |
11845 | conftest$ac_exeext conftest.$ac_ext | |
11846 | LIBS=$ac_check_lib_save_LIBS | |
11847 | fi | |
11848 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 | |
11849 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 | |
11850 | if test $ac_cv_lib_fl_yywrap = yes; then | |
11851 | LEXLIB="-lfl" | |
11852 | else | |
11853 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 | |
11854 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 | |
11855 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | |
11856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11857 | else | |
11858 | ac_check_lib_save_LIBS=$LIBS | |
11859 | LIBS="-ll $LIBS" | |
11860 | cat >conftest.$ac_ext <<_ACEOF | |
11861 | /* confdefs.h. */ | |
11862 | _ACEOF | |
11863 | cat confdefs.h >>conftest.$ac_ext | |
11864 | cat >>conftest.$ac_ext <<_ACEOF | |
11865 | /* end confdefs.h. */ | |
11866 | ||
11867 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11868 | #ifdef __cplusplus | |
11869 | extern "C" | |
11870 | #endif | |
11871 | /* We use char because int might match the return type of a gcc2 | |
11872 | builtin and then its argument prototype would still apply. */ | |
11873 | char yywrap (); | |
11874 | int | |
11875 | main () | |
11876 | { | |
11877 | yywrap (); | |
11878 | ; | |
11879 | return 0; | |
11880 | } | |
11881 | _ACEOF | |
11882 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11883 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11884 | (eval $ac_link) 2>conftest.er1 | |
11885 | ac_status=$? | |
11886 | grep -v '^ *+' conftest.er1 >conftest.err | |
11887 | rm -f conftest.er1 | |
11888 | cat conftest.err >&5 | |
11889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11890 | (exit $ac_status); } && | |
7357c5b6 AM |
11891 | { ac_try='test -z "$ac_c_werror_flag" |
11892 | || test ! -s conftest.err' | |
d7040cdb SE |
11893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11894 | (eval $ac_try) 2>&5 | |
11895 | ac_status=$? | |
11896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11897 | (exit $ac_status); }; } && | |
11898 | { ac_try='test -s conftest$ac_exeext' | |
11899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11900 | (eval $ac_try) 2>&5 | |
11901 | ac_status=$? | |
11902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11903 | (exit $ac_status); }; }; then | |
11904 | ac_cv_lib_l_yywrap=yes | |
11905 | else | |
11906 | echo "$as_me: failed program was:" >&5 | |
11907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11908 | ||
11909 | ac_cv_lib_l_yywrap=no | |
11910 | fi | |
11911 | rm -f conftest.err conftest.$ac_objext \ | |
11912 | conftest$ac_exeext conftest.$ac_ext | |
11913 | LIBS=$ac_check_lib_save_LIBS | |
11914 | fi | |
11915 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 | |
11916 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 | |
11917 | if test $ac_cv_lib_l_yywrap = yes; then | |
11918 | LEXLIB="-ll" | |
11919 | fi | |
11920 | ||
11921 | fi | |
11922 | ||
11923 | fi | |
11924 | ||
11925 | if test "x$LEX" != "x:"; then | |
11926 | echo "$as_me:$LINENO: checking lex output file root" >&5 | |
11927 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 | |
11928 | if test "${ac_cv_prog_lex_root+set}" = set; then | |
11929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11930 | else | |
11931 | # The minimal lex program is just a single line: %%. But some broken lexes | |
11932 | # (Solaris, I think it was) want two %% lines, so accommodate them. | |
11933 | cat >conftest.l <<_ACEOF | |
11934 | %% | |
11935 | %% | |
11936 | _ACEOF | |
11937 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 | |
11938 | (eval $LEX conftest.l) 2>&5 | |
11939 | ac_status=$? | |
11940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11941 | (exit $ac_status); } | |
11942 | if test -f lex.yy.c; then | |
11943 | ac_cv_prog_lex_root=lex.yy | |
11944 | elif test -f lexyy.c; then | |
11945 | ac_cv_prog_lex_root=lexyy | |
11946 | else | |
11947 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 | |
11948 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | |
11949 | { (exit 1); exit 1; }; } | |
11950 | fi | |
11951 | fi | |
11952 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 | |
11953 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 | |
11954 | rm -f conftest.l | |
11955 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
11956 | ||
11957 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 | |
11958 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 | |
11959 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | |
11960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11961 | else | |
11962 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
11963 | # default is implementation-dependent. Figure out which it is, since | |
11964 | # not all implementations provide the %pointer and %array declarations. | |
11965 | ac_cv_prog_lex_yytext_pointer=no | |
11966 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | |
11967 | ac_save_LIBS=$LIBS | |
11968 | LIBS="$LIBS $LEXLIB" | |
11969 | cat >conftest.$ac_ext <<_ACEOF | |
11970 | `cat $LEX_OUTPUT_ROOT.c` | |
11971 | _ACEOF | |
11972 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11973 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11974 | (eval $ac_link) 2>conftest.er1 | |
11975 | ac_status=$? | |
11976 | grep -v '^ *+' conftest.er1 >conftest.err | |
11977 | rm -f conftest.er1 | |
11978 | cat conftest.err >&5 | |
11979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11980 | (exit $ac_status); } && | |
7357c5b6 AM |
11981 | { ac_try='test -z "$ac_c_werror_flag" |
11982 | || test ! -s conftest.err' | |
d7040cdb SE |
11983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11984 | (eval $ac_try) 2>&5 | |
11985 | ac_status=$? | |
11986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11987 | (exit $ac_status); }; } && | |
11988 | { ac_try='test -s conftest$ac_exeext' | |
11989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11990 | (eval $ac_try) 2>&5 | |
11991 | ac_status=$? | |
11992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11993 | (exit $ac_status); }; }; then | |
11994 | ac_cv_prog_lex_yytext_pointer=yes | |
11995 | else | |
11996 | echo "$as_me: failed program was:" >&5 | |
11997 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11998 | ||
11999 | fi | |
12000 | rm -f conftest.err conftest.$ac_objext \ | |
12001 | conftest$ac_exeext conftest.$ac_ext | |
12002 | LIBS=$ac_save_LIBS | |
12003 | rm -f "${LEX_OUTPUT_ROOT}.c" | |
12004 | ||
12005 | fi | |
12006 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 | |
12007 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 | |
12008 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
12009 | ||
12010 | cat >>confdefs.h <<\_ACEOF | |
12011 | #define YYTEXT_POINTER 1 | |
12012 | _ACEOF | |
12013 | ||
12014 | fi | |
12015 | ||
12016 | fi | |
12017 | if test "$LEX" = :; then | |
12018 | LEX=${am_missing_run}flex | |
12019 | fi | |
12020 | ||
ac5d747e | 12021 | ALL_LINGUAS="da es fi fr id ja ro ru rw sk sv tr uk vi zh_CN zh_TW" |
d7040cdb SE |
12022 | # If we haven't got the data from the intl directory, |
12023 | # assume NLS is disabled. | |
12024 | USE_NLS=no | |
12025 | LIBINTL= | |
12026 | LIBINTL_DEP= | |
12027 | INCINTL= | |
12028 | XGETTEXT= | |
12029 | GMSGFMT= | |
12030 | POSUB= | |
12031 | ||
12032 | if test -f ../intl/config.intl; then | |
12033 | . ../intl/config.intl | |
12034 | fi | |
12035 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
12036 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
12037 | if test x"$USE_NLS" != xyes; then | |
12038 | echo "$as_me:$LINENO: result: no" >&5 | |
12039 | echo "${ECHO_T}no" >&6 | |
12040 | else | |
12041 | echo "$as_me:$LINENO: result: yes" >&5 | |
12042 | echo "${ECHO_T}yes" >&6 | |
12043 | ||
12044 | cat >>confdefs.h <<\_ACEOF | |
12045 | #define ENABLE_NLS 1 | |
12046 | _ACEOF | |
12047 | ||
12048 | ||
12049 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 | |
12050 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
12051 | # Look for .po and .gmo files in the source directory. | |
12052 | CATALOGS= | |
12053 | XLINGUAS= | |
12054 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
12055 | # If there aren't any .gmo files the shell will give us the | |
12056 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
12057 | # weeded out. | |
12058 | case "$cat" in *\**) | |
12059 | continue;; | |
12060 | esac | |
12061 | # The quadruple backslash is collapsed to a double backslash | |
12062 | # by the backticks, then collapsed again by the double quotes, | |
12063 | # leaving us with one backslash in the sed expression (right | |
12064 | # before the dot that mustn't act as a wildcard). | |
12065 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
12066 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
12067 | # The user is allowed to set LINGUAS to a list of languages to | |
12068 | # install catalogs for. If it's empty that means "all of them." | |
12069 | if test "x$LINGUAS" = x; then | |
12070 | CATALOGS="$CATALOGS $cat" | |
12071 | XLINGUAS="$XLINGUAS $lang" | |
12072 | else | |
12073 | case "$LINGUAS" in *$lang*) | |
12074 | CATALOGS="$CATALOGS $cat" | |
12075 | XLINGUAS="$XLINGUAS $lang" | |
12076 | ;; | |
12077 | esac | |
12078 | fi | |
12079 | done | |
12080 | LINGUAS="$XLINGUAS" | |
12081 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 | |
12082 | echo "${ECHO_T}$LINGUAS" >&6 | |
12083 | ||
12084 | ||
12085 | DATADIRNAME=share | |
12086 | ||
12087 | INSTOBJEXT=.mo | |
12088 | ||
12089 | GENCAT=gencat | |
12090 | ||
12091 | CATOBJEXT=.gmo | |
12092 | ||
12093 | fi | |
12094 | ||
12095 | MKINSTALLDIRS= | |
12096 | if test -n "$ac_aux_dir"; then | |
12097 | case "$ac_aux_dir" in | |
12098 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
12099 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
12100 | esac | |
12101 | fi | |
12102 | if test -z "$MKINSTALLDIRS"; then | |
12103 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
12104 | fi | |
12105 | ||
12106 | ||
12107 | ||
12108 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
12109 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
12110 | # Check whether --enable-nls or --disable-nls was given. | |
12111 | if test "${enable_nls+set}" = set; then | |
12112 | enableval="$enable_nls" | |
12113 | USE_NLS=$enableval | |
12114 | else | |
12115 | USE_NLS=yes | |
12116 | fi; | |
12117 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
12118 | echo "${ECHO_T}$USE_NLS" >&6 | |
12119 | ||
12120 | ||
12121 | ||
12122 | ||
12123 | ||
12124 | ||
12125 | # Prepare PATH_SEPARATOR. | |
12126 | # The user is always right. | |
12127 | if test "${PATH_SEPARATOR+set}" != set; then | |
12128 | echo "#! /bin/sh" >conf$$.sh | |
12129 | echo "exit 0" >>conf$$.sh | |
12130 | chmod +x conf$$.sh | |
12131 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12132 | PATH_SEPARATOR=';' | |
12133 | else | |
12134 | PATH_SEPARATOR=: | |
12135 | fi | |
12136 | rm -f conf$$.sh | |
12137 | fi | |
12138 | ||
12139 | # Find out how to test for executable files. Don't use a zero-byte file, | |
12140 | # as systems may use methods other than mode bits to determine executability. | |
12141 | cat >conf$$.file <<_ASEOF | |
12142 | #! /bin/sh | |
12143 | exit 0 | |
12144 | _ASEOF | |
12145 | chmod +x conf$$.file | |
12146 | if test -x conf$$.file >/dev/null 2>&1; then | |
12147 | ac_executable_p="test -x" | |
12148 | else | |
12149 | ac_executable_p="test -f" | |
12150 | fi | |
12151 | rm -f conf$$.file | |
12152 | ||
12153 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
12154 | set dummy msgfmt; ac_word=$2 | |
12155 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12156 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12157 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
12158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12159 | else | |
12160 | case "$MSGFMT" in | |
12161 | [\\/]* | ?:[\\/]*) | |
12162 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
12163 | ;; | |
12164 | *) | |
12165 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
12166 | for ac_dir in $PATH; do | |
12167 | IFS="$ac_save_IFS" | |
12168 | test -z "$ac_dir" && ac_dir=. | |
12169 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12170 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
12171 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
12172 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
12173 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
12174 | break 2 | |
12175 | fi | |
12176 | fi | |
12177 | done | |
12178 | done | |
12179 | IFS="$ac_save_IFS" | |
12180 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
12181 | ;; | |
12182 | esac | |
12183 | fi | |
12184 | MSGFMT="$ac_cv_path_MSGFMT" | |
12185 | if test "$MSGFMT" != ":"; then | |
12186 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
12187 | echo "${ECHO_T}$MSGFMT" >&6 | |
12188 | else | |
12189 | echo "$as_me:$LINENO: result: no" >&5 | |
12190 | echo "${ECHO_T}no" >&6 | |
12191 | fi | |
12192 | ||
12193 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
12194 | set dummy gmsgfmt; ac_word=$2 | |
12195 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12196 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12197 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
12198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12199 | else | |
12200 | case $GMSGFMT in | |
12201 | [\\/]* | ?:[\\/]*) | |
12202 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
12203 | ;; | |
12204 | *) | |
12205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12206 | for as_dir in $PATH | |
12207 | do | |
12208 | IFS=$as_save_IFS | |
12209 | test -z "$as_dir" && as_dir=. | |
12210 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12211 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12212 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
12213 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12214 | break 2 | |
12215 | fi | |
12216 | done | |
12217 | done | |
12218 | ||
12219 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
12220 | ;; | |
12221 | esac | |
12222 | fi | |
12223 | GMSGFMT=$ac_cv_path_GMSGFMT | |
12224 | ||
12225 | if test -n "$GMSGFMT"; then | |
12226 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 | |
12227 | echo "${ECHO_T}$GMSGFMT" >&6 | |
12228 | else | |
12229 | echo "$as_me:$LINENO: result: no" >&5 | |
12230 | echo "${ECHO_T}no" >&6 | |
12231 | fi | |
12232 | ||
12233 | ||
12234 | ||
12235 | # Prepare PATH_SEPARATOR. | |
12236 | # The user is always right. | |
12237 | if test "${PATH_SEPARATOR+set}" != set; then | |
12238 | echo "#! /bin/sh" >conf$$.sh | |
12239 | echo "exit 0" >>conf$$.sh | |
12240 | chmod +x conf$$.sh | |
12241 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12242 | PATH_SEPARATOR=';' | |
12243 | else | |
12244 | PATH_SEPARATOR=: | |
12245 | fi | |
12246 | rm -f conf$$.sh | |
12247 | fi | |
12248 | ||
12249 | # Find out how to test for executable files. Don't use a zero-byte file, | |
12250 | # as systems may use methods other than mode bits to determine executability. | |
12251 | cat >conf$$.file <<_ASEOF | |
12252 | #! /bin/sh | |
12253 | exit 0 | |
12254 | _ASEOF | |
12255 | chmod +x conf$$.file | |
12256 | if test -x conf$$.file >/dev/null 2>&1; then | |
12257 | ac_executable_p="test -x" | |
12258 | else | |
12259 | ac_executable_p="test -f" | |
12260 | fi | |
12261 | rm -f conf$$.file | |
12262 | ||
12263 | # Extract the first word of "xgettext", so it can be a program name with args. | |
12264 | set dummy xgettext; ac_word=$2 | |
12265 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12266 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12267 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
12268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12269 | else | |
12270 | case "$XGETTEXT" in | |
12271 | [\\/]* | ?:[\\/]*) | |
12272 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
12273 | ;; | |
12274 | *) | |
12275 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
12276 | for ac_dir in $PATH; do | |
12277 | IFS="$ac_save_IFS" | |
12278 | test -z "$ac_dir" && ac_dir=. | |
12279 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12280 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
12281 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
12282 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
12283 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
12284 | break 2 | |
12285 | fi | |
12286 | fi | |
12287 | done | |
12288 | done | |
12289 | IFS="$ac_save_IFS" | |
12290 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
12291 | ;; | |
12292 | esac | |
12293 | fi | |
12294 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
12295 | if test "$XGETTEXT" != ":"; then | |
12296 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 | |
12297 | echo "${ECHO_T}$XGETTEXT" >&6 | |
12298 | else | |
12299 | echo "$as_me:$LINENO: result: no" >&5 | |
12300 | echo "${ECHO_T}no" >&6 | |
12301 | fi | |
12302 | ||
12303 | rm -f messages.po | |
12304 | ||
12305 | ||
12306 | # Prepare PATH_SEPARATOR. | |
12307 | # The user is always right. | |
12308 | if test "${PATH_SEPARATOR+set}" != set; then | |
12309 | echo "#! /bin/sh" >conf$$.sh | |
12310 | echo "exit 0" >>conf$$.sh | |
12311 | chmod +x conf$$.sh | |
12312 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12313 | PATH_SEPARATOR=';' | |
12314 | else | |
12315 | PATH_SEPARATOR=: | |
12316 | fi | |
12317 | rm -f conf$$.sh | |
12318 | fi | |
12319 | ||
12320 | # Find out how to test for executable files. Don't use a zero-byte file, | |
12321 | # as systems may use methods other than mode bits to determine executability. | |
12322 | cat >conf$$.file <<_ASEOF | |
12323 | #! /bin/sh | |
12324 | exit 0 | |
12325 | _ASEOF | |
12326 | chmod +x conf$$.file | |
12327 | if test -x conf$$.file >/dev/null 2>&1; then | |
12328 | ac_executable_p="test -x" | |
12329 | else | |
12330 | ac_executable_p="test -f" | |
12331 | fi | |
12332 | rm -f conf$$.file | |
12333 | ||
12334 | # Extract the first word of "msgmerge", so it can be a program name with args. | |
12335 | set dummy msgmerge; ac_word=$2 | |
12336 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12337 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12338 | if test "${ac_cv_path_MSGMERGE+set}" = set; then | |
12339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12340 | else | |
12341 | case "$MSGMERGE" in | |
12342 | [\\/]* | ?:[\\/]*) | |
12343 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
12344 | ;; | |
12345 | *) | |
12346 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
12347 | for ac_dir in $PATH; do | |
12348 | IFS="$ac_save_IFS" | |
12349 | test -z "$ac_dir" && ac_dir=. | |
12350 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12351 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
12352 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
12353 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
12354 | break 2 | |
12355 | fi | |
12356 | fi | |
12357 | done | |
12358 | done | |
12359 | IFS="$ac_save_IFS" | |
12360 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
12361 | ;; | |
12362 | esac | |
12363 | fi | |
12364 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
12365 | if test "$MSGMERGE" != ":"; then | |
12366 | echo "$as_me:$LINENO: result: $MSGMERGE" >&5 | |
12367 | echo "${ECHO_T}$MSGMERGE" >&6 | |
12368 | else | |
12369 | echo "$as_me:$LINENO: result: no" >&5 | |
12370 | echo "${ECHO_T}no" >&6 | |
12371 | fi | |
12372 | ||
12373 | ||
12374 | if test "$GMSGFMT" != ":"; then | |
12375 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
12376 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
12377 | : ; | |
12378 | else | |
12379 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
12380 | echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 | |
12381 | echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 | |
12382 | GMSGFMT=":" | |
12383 | fi | |
12384 | fi | |
12385 | ||
12386 | if test "$XGETTEXT" != ":"; then | |
12387 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
12388 | (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
12389 | : ; | |
12390 | else | |
12391 | echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 | |
12392 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 | |
12393 | XGETTEXT=":" | |
12394 | fi | |
12395 | rm -f messages.po | |
12396 | fi | |
12397 | ||
12398 | ac_config_commands="$ac_config_commands default-1" | |
12399 | ||
12400 | ||
12401 | ||
12402 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
12403 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
12404 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
12405 | if test "${enable_maintainer_mode+set}" = set; then | |
12406 | enableval="$enable_maintainer_mode" | |
12407 | USE_MAINTAINER_MODE=$enableval | |
42ecbf5e | 12408 | else |
d7040cdb SE |
12409 | USE_MAINTAINER_MODE=no |
12410 | fi; | |
12411 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
12412 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
42ecbf5e | 12413 | |
d7040cdb SE |
12414 | |
12415 | if test $USE_MAINTAINER_MODE = yes; then | |
12416 | MAINTAINER_MODE_TRUE= | |
12417 | MAINTAINER_MODE_FALSE='#' | |
12418 | else | |
12419 | MAINTAINER_MODE_TRUE='#' | |
12420 | MAINTAINER_MODE_FALSE= | |
42ecbf5e | 12421 | fi |
d7040cdb SE |
12422 | |
12423 | MAINT=$MAINTAINER_MODE_TRUE | |
12424 | ||
12425 | ||
12426 | ||
12427 | ||
12428 | if false; then | |
12429 | GENINSRC_NEVER_TRUE= | |
12430 | GENINSRC_NEVER_FALSE='#' | |
12431 | else | |
12432 | GENINSRC_NEVER_TRUE='#' | |
12433 | GENINSRC_NEVER_FALSE= | |
42ecbf5e | 12434 | fi |
d7040cdb SE |
12435 | |
12436 | ||
12437 | if test -n "$EXEEXT"; then | |
20e95c23 DJ |
12438 | |
12439 | cat >>confdefs.h <<\_ACEOF | |
d7040cdb | 12440 | #define HAVE_EXECUTABLE_SUFFIX 1 |
20e95c23 | 12441 | _ACEOF |
42ecbf5e | 12442 | |
252b5132 RH |
12443 | fi |
12444 | ||
d7040cdb SE |
12445 | cat >>confdefs.h <<_ACEOF |
12446 | #define EXECUTABLE_SUFFIX "${EXEEXT}" | |
12447 | _ACEOF | |
42ecbf5e | 12448 | |
252b5132 | 12449 | |
d7040cdb | 12450 | # host-specific stuff: |
252b5132 | 12451 | |
d7040cdb | 12452 | HDEFINES= |
252b5132 | 12453 | |
d7040cdb | 12454 | . ${srcdir}/../bfd/configure.host |
252b5132 | 12455 | |
252b5132 | 12456 | |
d7040cdb | 12457 | AR=${AR-ar} |
252b5132 | 12458 | |
d7040cdb SE |
12459 | if test -n "$ac_tool_prefix"; then |
12460 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
12461 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
12462 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12463 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12464 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
12465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12466 | else | |
12467 | if test -n "$RANLIB"; then | |
12468 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
12469 | else | |
12470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12471 | for as_dir in $PATH | |
12472 | do | |
12473 | IFS=$as_save_IFS | |
12474 | test -z "$as_dir" && as_dir=. | |
12475 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12476 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12477 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
12478 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12479 | break 2 | |
12480 | fi | |
12481 | done | |
12482 | done | |
252b5132 | 12483 | |
d7040cdb SE |
12484 | fi |
12485 | fi | |
12486 | RANLIB=$ac_cv_prog_RANLIB | |
12487 | if test -n "$RANLIB"; then | |
12488 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
12489 | echo "${ECHO_T}$RANLIB" >&6 | |
12490 | else | |
12491 | echo "$as_me:$LINENO: result: no" >&5 | |
12492 | echo "${ECHO_T}no" >&6 | |
12493 | fi | |
20e95c23 | 12494 | |
d7040cdb SE |
12495 | fi |
12496 | if test -z "$ac_cv_prog_RANLIB"; then | |
12497 | ac_ct_RANLIB=$RANLIB | |
12498 | # Extract the first word of "ranlib", so it can be a program name with args. | |
12499 | set dummy ranlib; ac_word=$2 | |
12500 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12501 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12502 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
42ecbf5e | 12503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 12504 | else |
d7040cdb SE |
12505 | if test -n "$ac_ct_RANLIB"; then |
12506 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
12507 | else | |
12508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12509 | for as_dir in $PATH | |
12510 | do | |
12511 | IFS=$as_save_IFS | |
12512 | test -z "$as_dir" && as_dir=. | |
12513 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12514 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12515 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
12516 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12517 | break 2 | |
12518 | fi | |
12519 | done | |
12520 | done | |
20e95c23 | 12521 | |
d7040cdb SE |
12522 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
12523 | fi | |
12524 | fi | |
12525 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
12526 | if test -n "$ac_ct_RANLIB"; then | |
12527 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
12528 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
20e95c23 | 12529 | else |
d7040cdb SE |
12530 | echo "$as_me:$LINENO: result: no" >&5 |
12531 | echo "${ECHO_T}no" >&6 | |
12532 | fi | |
12533 | ||
12534 | RANLIB=$ac_ct_RANLIB | |
12535 | else | |
12536 | RANLIB="$ac_cv_prog_RANLIB" | |
12537 | fi | |
12538 | ||
12539 | # Find a good install program. We prefer a C program (faster), | |
12540 | # so one script is as good as another. But avoid the broken or | |
12541 | # incompatible versions: | |
12542 | # SysV /etc/install, /usr/sbin/install | |
12543 | # SunOS /usr/etc/install | |
12544 | # IRIX /sbin/install | |
12545 | # AIX /bin/install | |
12546 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
12547 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
12548 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
12549 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
12550 | # OS/2's system install, which has a completely different semantic | |
12551 | # ./install, which can be erroneously created by make from ./install.sh. | |
58c85be7 | 12552 | # Reject install programs that cannot install multiple files. |
d7040cdb SE |
12553 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
12554 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
12555 | if test -z "$INSTALL"; then | |
12556 | if test "${ac_cv_path_install+set}" = set; then | |
12557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12558 | else | |
12559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12560 | for as_dir in $PATH | |
12561 | do | |
12562 | IFS=$as_save_IFS | |
12563 | test -z "$as_dir" && as_dir=. | |
12564 | # Account for people who put trailing slashes in PATH elements. | |
12565 | case $as_dir/ in | |
12566 | ./ | .// | /cC/* | \ | |
12567 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
12568 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
12569 | /usr/ucb/* ) ;; | |
12570 | *) | |
12571 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
12572 | # Don't use installbsd from OSF since it installs stuff as root | |
12573 | # by default. | |
12574 | for ac_prog in ginstall scoinst install; do | |
12575 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12576 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
12577 | if test $ac_prog = install && | |
12578 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12579 | # AIX install. It has an incompatible calling convention. | |
12580 | : | |
12581 | elif test $ac_prog = install && | |
12582 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12583 | # program-specific install script used by HP pwplus--don't use. | |
12584 | : | |
12585 | else | |
58c85be7 RW |
12586 | rm -rf conftest.one conftest.two conftest.dir |
12587 | echo one > conftest.one | |
12588 | echo two > conftest.two | |
12589 | mkdir conftest.dir | |
12590 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
12591 | test -s conftest.one && test -s conftest.two && | |
12592 | test -s conftest.dir/conftest.one && | |
12593 | test -s conftest.dir/conftest.two | |
12594 | then | |
12595 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
12596 | break 3 | |
12597 | fi | |
d7040cdb SE |
12598 | fi |
12599 | fi | |
12600 | done | |
12601 | done | |
12602 | ;; | |
12603 | esac | |
12604 | done | |
12605 | ||
58c85be7 | 12606 | rm -rf conftest.one conftest.two conftest.dir |
d7040cdb SE |
12607 | |
12608 | fi | |
12609 | if test "${ac_cv_path_install+set}" = set; then | |
12610 | INSTALL=$ac_cv_path_install | |
12611 | else | |
58c85be7 RW |
12612 | # As a last resort, use the slow shell script. Don't cache a |
12613 | # value for INSTALL within a source directory, because that will | |
d7040cdb | 12614 | # break other packages using the cache if that directory is |
58c85be7 | 12615 | # removed, or if the value is a relative name. |
d7040cdb SE |
12616 | INSTALL=$ac_install_sh |
12617 | fi | |
12618 | fi | |
12619 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
12620 | echo "${ECHO_T}$INSTALL" >&6 | |
12621 | ||
12622 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
12623 | # It thinks the first close brace ends the variable substitution. | |
12624 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
12625 | ||
12626 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
12627 | ||
12628 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
12629 | ||
12630 | ||
12631 | # Put a plausible default for CC_FOR_BUILD in Makefile. | |
12632 | if test -z "$CC_FOR_BUILD"; then | |
12633 | if test "x$cross_compiling" = "xno"; then | |
12634 | CC_FOR_BUILD='$(CC)' | |
12635 | else | |
12636 | CC_FOR_BUILD=gcc | |
12637 | fi | |
12638 | fi | |
20e95c23 | 12639 | |
d7040cdb SE |
12640 | # Also set EXEEXT_FOR_BUILD. |
12641 | if test "x$cross_compiling" = "xno"; then | |
12642 | EXEEXT_FOR_BUILD='$(EXEEXT)' | |
12643 | else | |
12644 | echo "$as_me:$LINENO: checking for build system executable suffix" >&5 | |
12645 | echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6 | |
12646 | if test "${bfd_cv_build_exeext+set}" = set; then | |
12647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12648 | else | |
12649 | rm -f conftest* | |
12650 | echo 'int main () { return 0; }' > conftest.c | |
12651 | bfd_cv_build_exeext= | |
12652 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 | |
12653 | for file in conftest.*; do | |
12654 | case $file in | |
12655 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; | |
12656 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; | |
12657 | esac | |
12658 | done | |
12659 | rm -f conftest* | |
12660 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no | |
252b5132 | 12661 | fi |
d7040cdb SE |
12662 | echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5 |
12663 | echo "${ECHO_T}$bfd_cv_build_exeext" >&6 | |
12664 | EXEEXT_FOR_BUILD="" | |
12665 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} | |
252b5132 RH |
12666 | fi |
12667 | ||
12668 | ||
d7040cdb SE |
12669 | DEMANGLER_NAME=c++filt |
12670 | case "${host}" in | |
12671 | *-*-go32* | *-*-msdos*) | |
12672 | DEMANGLER_NAME=cxxfilt | |
12673 | esac | |
8a965946 ILT |
12674 | |
12675 | ||
42ecbf5e DJ |
12676 | |
12677 | ||
12678 | ||
12679 | ||
12680 | ||
12681 | ||
f8eae8b2 L |
12682 | |
12683 | ||
12684 | for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h sys/param.h | |
252b5132 | 12685 | do |
42ecbf5e DJ |
12686 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12687 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12688 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12689 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12690 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12692 | fi | |
12693 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12694 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12695 | else | |
12696 | # Is the header compilable? | |
12697 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12698 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12699 | cat >conftest.$ac_ext <<_ACEOF | |
12700 | /* confdefs.h. */ | |
12701 | _ACEOF | |
12702 | cat confdefs.h >>conftest.$ac_ext | |
12703 | cat >>conftest.$ac_ext <<_ACEOF | |
12704 | /* end confdefs.h. */ | |
12705 | $ac_includes_default | |
12706 | #include <$ac_header> | |
12707 | _ACEOF | |
12708 | rm -f conftest.$ac_objext | |
12709 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12710 | (eval $ac_compile) 2>conftest.er1 | |
12711 | ac_status=$? | |
12712 | grep -v '^ *+' conftest.er1 >conftest.err | |
12713 | rm -f conftest.er1 | |
12714 | cat conftest.err >&5 | |
12715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12716 | (exit $ac_status); } && | |
7357c5b6 AM |
12717 | { ac_try='test -z "$ac_c_werror_flag" |
12718 | || test ! -s conftest.err' | |
42ecbf5e DJ |
12719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12720 | (eval $ac_try) 2>&5 | |
12721 | ac_status=$? | |
12722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12723 | (exit $ac_status); }; } && | |
12724 | { ac_try='test -s conftest.$ac_objext' | |
12725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12726 | (eval $ac_try) 2>&5 | |
12727 | ac_status=$? | |
12728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12729 | (exit $ac_status); }; }; then | |
12730 | ac_header_compiler=yes | |
12731 | else | |
12732 | echo "$as_me: failed program was:" >&5 | |
12733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12734 | ||
12735 | ac_header_compiler=no | |
12736 | fi | |
12737 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12738 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12739 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12740 | ||
12741 | # Is the header present? | |
12742 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12743 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12744 | cat >conftest.$ac_ext <<_ACEOF | |
12745 | /* confdefs.h. */ | |
12746 | _ACEOF | |
12747 | cat confdefs.h >>conftest.$ac_ext | |
12748 | cat >>conftest.$ac_ext <<_ACEOF | |
12749 | /* end confdefs.h. */ | |
12750 | #include <$ac_header> | |
12751 | _ACEOF | |
12752 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12753 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12754 | ac_status=$? | |
12755 | grep -v '^ *+' conftest.er1 >conftest.err | |
12756 | rm -f conftest.er1 | |
12757 | cat conftest.err >&5 | |
12758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12759 | (exit $ac_status); } >/dev/null; then | |
12760 | if test -s conftest.err; then | |
12761 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12762 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12763 | else | |
12764 | ac_cpp_err= | |
12765 | fi | |
252b5132 | 12766 | else |
42ecbf5e | 12767 | ac_cpp_err=yes |
252b5132 | 12768 | fi |
42ecbf5e DJ |
12769 | if test -z "$ac_cpp_err"; then |
12770 | ac_header_preproc=yes | |
12771 | else | |
12772 | echo "$as_me: failed program was:" >&5 | |
12773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12774 | ||
12775 | ac_header_preproc=no | |
252b5132 | 12776 | fi |
42ecbf5e DJ |
12777 | rm -f conftest.err conftest.$ac_ext |
12778 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12779 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12780 | ||
12781 | # So? What about this header? | |
12782 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12783 | yes:no: ) | |
12784 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12785 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12786 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12787 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12788 | ac_header_preproc=yes | |
12789 | ;; | |
12790 | no:yes:* ) | |
12791 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12792 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12793 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12794 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12795 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12796 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12797 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12798 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12799 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12800 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12801 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12802 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12803 | ( | |
12804 | cat <<\_ASBOX | |
12805 | ## ------------------------------------------ ## | |
12806 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12807 | ## ------------------------------------------ ## | |
12808 | _ASBOX | |
12809 | ) | | |
12810 | sed "s/^/$as_me: WARNING: /" >&2 | |
12811 | ;; | |
12812 | esac | |
12813 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12814 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12815 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 12817 | else |
42ecbf5e DJ |
12818 | eval "$as_ac_Header=\$ac_header_preproc" |
12819 | fi | |
12820 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12821 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12822 | ||
252b5132 | 12823 | fi |
42ecbf5e DJ |
12824 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12825 | cat >>confdefs.h <<_ACEOF | |
12826 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12827 | _ACEOF | |
12828 | ||
12829 | fi | |
12830 | ||
252b5132 RH |
12831 | done |
12832 | ||
42ecbf5e DJ |
12833 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
12834 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 | |
12835 | if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
12836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12837 | else | |
12838 | cat >conftest.$ac_ext <<_ACEOF | |
12839 | /* confdefs.h. */ | |
12840 | _ACEOF | |
12841 | cat confdefs.h >>conftest.$ac_ext | |
12842 | cat >>conftest.$ac_ext <<_ACEOF | |
12843 | /* end confdefs.h. */ | |
252b5132 RH |
12844 | #include <sys/types.h> |
12845 | #include <sys/wait.h> | |
12846 | #ifndef WEXITSTATUS | |
42ecbf5e | 12847 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
252b5132 RH |
12848 | #endif |
12849 | #ifndef WIFEXITED | |
42ecbf5e | 12850 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
252b5132 | 12851 | #endif |
42ecbf5e DJ |
12852 | |
12853 | int | |
12854 | main () | |
12855 | { | |
12856 | int s; | |
12857 | wait (&s); | |
12858 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
12859 | ; | |
12860 | return 0; | |
12861 | } | |
12862 | _ACEOF | |
12863 | rm -f conftest.$ac_objext | |
12864 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12865 | (eval $ac_compile) 2>conftest.er1 | |
12866 | ac_status=$? | |
12867 | grep -v '^ *+' conftest.er1 >conftest.err | |
12868 | rm -f conftest.er1 | |
12869 | cat conftest.err >&5 | |
12870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12871 | (exit $ac_status); } && | |
7357c5b6 AM |
12872 | { ac_try='test -z "$ac_c_werror_flag" |
12873 | || test ! -s conftest.err' | |
42ecbf5e DJ |
12874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12875 | (eval $ac_try) 2>&5 | |
12876 | ac_status=$? | |
12877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12878 | (exit $ac_status); }; } && | |
12879 | { ac_try='test -s conftest.$ac_objext' | |
12880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12881 | (eval $ac_try) 2>&5 | |
12882 | ac_status=$? | |
12883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12884 | (exit $ac_status); }; }; then | |
252b5132 RH |
12885 | ac_cv_header_sys_wait_h=yes |
12886 | else | |
42ecbf5e DJ |
12887 | echo "$as_me: failed program was:" >&5 |
12888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12889 | ||
12890 | ac_cv_header_sys_wait_h=no | |
252b5132 | 12891 | fi |
42ecbf5e | 12892 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 12893 | fi |
42ecbf5e DJ |
12894 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
12895 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 | |
d15b04bd | 12896 | if test $ac_cv_header_sys_wait_h = yes; then |
42ecbf5e DJ |
12897 | |
12898 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 12899 | #define HAVE_SYS_WAIT_H 1 |
42ecbf5e | 12900 | _ACEOF |
252b5132 RH |
12901 | |
12902 | fi | |
12903 | ||
12904 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
12905 | # for constant arguments. Useless! | |
42ecbf5e DJ |
12906 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
12907 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
12908 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
12909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12910 | else | |
12911 | cat >conftest.$ac_ext <<_ACEOF | |
12912 | /* confdefs.h. */ | |
12913 | _ACEOF | |
12914 | cat confdefs.h >>conftest.$ac_ext | |
12915 | cat >>conftest.$ac_ext <<_ACEOF | |
12916 | /* end confdefs.h. */ | |
252b5132 | 12917 | #include <alloca.h> |
42ecbf5e DJ |
12918 | int |
12919 | main () | |
12920 | { | |
12921 | char *p = (char *) alloca (2 * sizeof (int)); | |
12922 | ; | |
12923 | return 0; | |
12924 | } | |
12925 | _ACEOF | |
12926 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12927 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12928 | (eval $ac_link) 2>conftest.er1 | |
12929 | ac_status=$? | |
12930 | grep -v '^ *+' conftest.er1 >conftest.err | |
12931 | rm -f conftest.er1 | |
12932 | cat conftest.err >&5 | |
12933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12934 | (exit $ac_status); } && | |
7357c5b6 AM |
12935 | { ac_try='test -z "$ac_c_werror_flag" |
12936 | || test ! -s conftest.err' | |
42ecbf5e DJ |
12937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12938 | (eval $ac_try) 2>&5 | |
12939 | ac_status=$? | |
12940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12941 | (exit $ac_status); }; } && | |
12942 | { ac_try='test -s conftest$ac_exeext' | |
12943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12944 | (eval $ac_try) 2>&5 | |
12945 | ac_status=$? | |
12946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12947 | (exit $ac_status); }; }; then | |
12948 | ac_cv_working_alloca_h=yes | |
12949 | else | |
12950 | echo "$as_me: failed program was:" >&5 | |
12951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12952 | ||
12953 | ac_cv_working_alloca_h=no | |
12954 | fi | |
12955 | rm -f conftest.err conftest.$ac_objext \ | |
12956 | conftest$ac_exeext conftest.$ac_ext | |
12957 | fi | |
12958 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
12959 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
12960 | if test $ac_cv_working_alloca_h = yes; then | |
12961 | ||
12962 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 12963 | #define HAVE_ALLOCA_H 1 |
42ecbf5e | 12964 | _ACEOF |
252b5132 RH |
12965 | |
12966 | fi | |
12967 | ||
42ecbf5e DJ |
12968 | echo "$as_me:$LINENO: checking for alloca" >&5 |
12969 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
12970 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
12971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 12972 | else |
42ecbf5e DJ |
12973 | cat >conftest.$ac_ext <<_ACEOF |
12974 | /* confdefs.h. */ | |
12975 | _ACEOF | |
12976 | cat confdefs.h >>conftest.$ac_ext | |
12977 | cat >>conftest.$ac_ext <<_ACEOF | |
12978 | /* end confdefs.h. */ | |
252b5132 RH |
12979 | #ifdef __GNUC__ |
12980 | # define alloca __builtin_alloca | |
12981 | #else | |
12982 | # ifdef _MSC_VER | |
12983 | # include <malloc.h> | |
12984 | # define alloca _alloca | |
12985 | # else | |
12986 | # if HAVE_ALLOCA_H | |
12987 | # include <alloca.h> | |
12988 | # else | |
12989 | # ifdef _AIX | |
12990 | #pragma alloca | |
12991 | # else | |
12992 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
12993 | char *alloca (); | |
12994 | # endif | |
12995 | # endif | |
12996 | # endif | |
12997 | # endif | |
12998 | #endif | |
12999 | ||
42ecbf5e DJ |
13000 | int |
13001 | main () | |
13002 | { | |
13003 | char *p = (char *) alloca (1); | |
13004 | ; | |
13005 | return 0; | |
13006 | } | |
13007 | _ACEOF | |
13008 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13009 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13010 | (eval $ac_link) 2>conftest.er1 | |
13011 | ac_status=$? | |
13012 | grep -v '^ *+' conftest.er1 >conftest.err | |
13013 | rm -f conftest.er1 | |
13014 | cat conftest.err >&5 | |
13015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13016 | (exit $ac_status); } && | |
7357c5b6 AM |
13017 | { ac_try='test -z "$ac_c_werror_flag" |
13018 | || test ! -s conftest.err' | |
42ecbf5e DJ |
13019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13020 | (eval $ac_try) 2>&5 | |
13021 | ac_status=$? | |
13022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13023 | (exit $ac_status); }; } && | |
13024 | { ac_try='test -s conftest$ac_exeext' | |
13025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13026 | (eval $ac_try) 2>&5 | |
13027 | ac_status=$? | |
13028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13029 | (exit $ac_status); }; }; then | |
252b5132 RH |
13030 | ac_cv_func_alloca_works=yes |
13031 | else | |
42ecbf5e DJ |
13032 | echo "$as_me: failed program was:" >&5 |
13033 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13034 | ||
13035 | ac_cv_func_alloca_works=no | |
252b5132 | 13036 | fi |
42ecbf5e DJ |
13037 | rm -f conftest.err conftest.$ac_objext \ |
13038 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 13039 | fi |
42ecbf5e DJ |
13040 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
13041 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
252b5132 | 13042 | |
252b5132 | 13043 | if test $ac_cv_func_alloca_works = yes; then |
e5a52504 | 13044 | |
42ecbf5e DJ |
13045 | cat >>confdefs.h <<\_ACEOF |
13046 | #define HAVE_ALLOCA 1 | |
13047 | _ACEOF | |
e5a52504 | 13048 | |
42ecbf5e | 13049 | else |
d15b04bd | 13050 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
42ecbf5e DJ |
13051 | # that cause trouble. Some versions do not even contain alloca or |
13052 | # contain a buggy version. If you still want to use their alloca, | |
13053 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
13054 | ||
13055 | ALLOCA=alloca.$ac_objext | |
13056 | ||
13057 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 13058 | #define C_ALLOCA 1 |
42ecbf5e | 13059 | _ACEOF |
252b5132 RH |
13060 | |
13061 | ||
42ecbf5e DJ |
13062 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
13063 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
13064 | if test "${ac_cv_os_cray+set}" = set; then | |
13065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 13066 | else |
42ecbf5e DJ |
13067 | cat >conftest.$ac_ext <<_ACEOF |
13068 | /* confdefs.h. */ | |
13069 | _ACEOF | |
13070 | cat confdefs.h >>conftest.$ac_ext | |
13071 | cat >>conftest.$ac_ext <<_ACEOF | |
13072 | /* end confdefs.h. */ | |
252b5132 RH |
13073 | #if defined(CRAY) && ! defined(CRAY2) |
13074 | webecray | |
13075 | #else | |
13076 | wenotbecray | |
13077 | #endif | |
13078 | ||
42ecbf5e | 13079 | _ACEOF |
252b5132 | 13080 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
42ecbf5e | 13081 | $EGREP "webecray" >/dev/null 2>&1; then |
252b5132 RH |
13082 | ac_cv_os_cray=yes |
13083 | else | |
252b5132 RH |
13084 | ac_cv_os_cray=no |
13085 | fi | |
13086 | rm -f conftest* | |
13087 | ||
13088 | fi | |
42ecbf5e DJ |
13089 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
13090 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
d15b04bd | 13091 | if test $ac_cv_os_cray = yes; then |
42ecbf5e DJ |
13092 | for ac_func in _getb67 GETB67 getb67; do |
13093 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13094 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13095 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13096 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13098 | else | |
13099 | cat >conftest.$ac_ext <<_ACEOF | |
13100 | /* confdefs.h. */ | |
13101 | _ACEOF | |
13102 | cat confdefs.h >>conftest.$ac_ext | |
13103 | cat >>conftest.$ac_ext <<_ACEOF | |
13104 | /* end confdefs.h. */ | |
13105 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13106 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13107 | #define $ac_func innocuous_$ac_func | |
13108 | ||
252b5132 | 13109 | /* System header to define __stub macros and hopefully few prototypes, |
42ecbf5e DJ |
13110 | which can conflict with char $ac_func (); below. |
13111 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13112 | <limits.h> exists even on freestanding compilers. */ | |
13113 | ||
13114 | #ifdef __STDC__ | |
13115 | # include <limits.h> | |
13116 | #else | |
13117 | # include <assert.h> | |
13118 | #endif | |
d15b04bd | 13119 | |
42ecbf5e | 13120 | #undef $ac_func |
d15b04bd | 13121 | |
42ecbf5e DJ |
13122 | /* Override any gcc2 internal prototype to avoid an error. */ |
13123 | #ifdef __cplusplus | |
13124 | extern "C" | |
13125 | { | |
13126 | #endif | |
13127 | /* We use char because int might match the return type of a gcc2 | |
13128 | builtin and then its argument prototype would still apply. */ | |
13129 | char $ac_func (); | |
252b5132 RH |
13130 | /* The GNU C library defines this for functions which it implements |
13131 | to always fail with ENOSYS. Some functions are actually named | |
13132 | something starting with __ and the normal name is an alias. */ | |
13133 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13134 | choke me | |
13135 | #else | |
42ecbf5e DJ |
13136 | char (*f) () = $ac_func; |
13137 | #endif | |
13138 | #ifdef __cplusplus | |
13139 | } | |
252b5132 RH |
13140 | #endif |
13141 | ||
42ecbf5e DJ |
13142 | int |
13143 | main () | |
13144 | { | |
13145 | return f != $ac_func; | |
13146 | ; | |
13147 | return 0; | |
13148 | } | |
13149 | _ACEOF | |
13150 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13151 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13152 | (eval $ac_link) 2>conftest.er1 | |
13153 | ac_status=$? | |
13154 | grep -v '^ *+' conftest.er1 >conftest.err | |
13155 | rm -f conftest.er1 | |
13156 | cat conftest.err >&5 | |
13157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13158 | (exit $ac_status); } && | |
7357c5b6 AM |
13159 | { ac_try='test -z "$ac_c_werror_flag" |
13160 | || test ! -s conftest.err' | |
42ecbf5e DJ |
13161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13162 | (eval $ac_try) 2>&5 | |
13163 | ac_status=$? | |
13164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13165 | (exit $ac_status); }; } && | |
13166 | { ac_try='test -s conftest$ac_exeext' | |
13167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13168 | (eval $ac_try) 2>&5 | |
13169 | ac_status=$? | |
13170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13171 | (exit $ac_status); }; }; then | |
13172 | eval "$as_ac_var=yes" | |
13173 | else | |
13174 | echo "$as_me: failed program was:" >&5 | |
13175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13176 | ||
13177 | eval "$as_ac_var=no" | |
13178 | fi | |
13179 | rm -f conftest.err conftest.$ac_objext \ | |
13180 | conftest$ac_exeext conftest.$ac_ext | |
13181 | fi | |
13182 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13183 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13184 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13185 | ||
13186 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 13187 | #define CRAY_STACKSEG_END $ac_func |
42ecbf5e | 13188 | _ACEOF |
252b5132 | 13189 | |
42ecbf5e | 13190 | break |
252b5132 RH |
13191 | fi |
13192 | ||
42ecbf5e | 13193 | done |
252b5132 RH |
13194 | fi |
13195 | ||
42ecbf5e DJ |
13196 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
13197 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
13198 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
13199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
13200 | else |
13201 | if test "$cross_compiling" = yes; then | |
13202 | ac_cv_c_stack_direction=0 | |
13203 | else | |
42ecbf5e DJ |
13204 | cat >conftest.$ac_ext <<_ACEOF |
13205 | /* confdefs.h. */ | |
13206 | _ACEOF | |
13207 | cat confdefs.h >>conftest.$ac_ext | |
13208 | cat >>conftest.$ac_ext <<_ACEOF | |
13209 | /* end confdefs.h. */ | |
13210 | int | |
252b5132 RH |
13211 | find_stack_direction () |
13212 | { | |
13213 | static char *addr = 0; | |
13214 | auto char dummy; | |
13215 | if (addr == 0) | |
13216 | { | |
13217 | addr = &dummy; | |
13218 | return find_stack_direction (); | |
13219 | } | |
13220 | else | |
13221 | return (&dummy > addr) ? 1 : -1; | |
13222 | } | |
42ecbf5e DJ |
13223 | |
13224 | int | |
252b5132 RH |
13225 | main () |
13226 | { | |
42ecbf5e | 13227 | exit (find_stack_direction () < 0); |
252b5132 | 13228 | } |
42ecbf5e DJ |
13229 | _ACEOF |
13230 | rm -f conftest$ac_exeext | |
13231 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13232 | (eval $ac_link) 2>&5 | |
13233 | ac_status=$? | |
13234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13235 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13237 | (eval $ac_try) 2>&5 | |
13238 | ac_status=$? | |
13239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13240 | (exit $ac_status); }; }; then | |
252b5132 RH |
13241 | ac_cv_c_stack_direction=1 |
13242 | else | |
42ecbf5e DJ |
13243 | echo "$as_me: program exited with status $ac_status" >&5 |
13244 | echo "$as_me: failed program was:" >&5 | |
13245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13246 | ||
13247 | ( exit $ac_status ) | |
13248 | ac_cv_c_stack_direction=-1 | |
252b5132 | 13249 | fi |
42ecbf5e | 13250 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 13251 | fi |
252b5132 | 13252 | fi |
42ecbf5e DJ |
13253 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
13254 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
252b5132 | 13255 | |
42ecbf5e | 13256 | cat >>confdefs.h <<_ACEOF |
252b5132 | 13257 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
42ecbf5e DJ |
13258 | _ACEOF |
13259 | ||
252b5132 RH |
13260 | |
13261 | fi | |
13262 | ||
42ecbf5e DJ |
13263 | |
13264 | ||
13265 | ||
13266 | ||
13267 | ||
9710509e | 13268 | for ac_func in sbrk utimes setmode getc_unlocked strcoll |
252b5132 | 13269 | do |
42ecbf5e DJ |
13270 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13271 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13272 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13273 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13275 | else | |
13276 | cat >conftest.$ac_ext <<_ACEOF | |
13277 | /* confdefs.h. */ | |
13278 | _ACEOF | |
13279 | cat confdefs.h >>conftest.$ac_ext | |
13280 | cat >>conftest.$ac_ext <<_ACEOF | |
13281 | /* end confdefs.h. */ | |
13282 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13283 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13284 | #define $ac_func innocuous_$ac_func | |
13285 | ||
252b5132 | 13286 | /* System header to define __stub macros and hopefully few prototypes, |
42ecbf5e DJ |
13287 | which can conflict with char $ac_func (); below. |
13288 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13289 | <limits.h> exists even on freestanding compilers. */ | |
13290 | ||
13291 | #ifdef __STDC__ | |
13292 | # include <limits.h> | |
13293 | #else | |
13294 | # include <assert.h> | |
13295 | #endif | |
d15b04bd | 13296 | |
42ecbf5e | 13297 | #undef $ac_func |
d15b04bd | 13298 | |
42ecbf5e DJ |
13299 | /* Override any gcc2 internal prototype to avoid an error. */ |
13300 | #ifdef __cplusplus | |
13301 | extern "C" | |
13302 | { | |
13303 | #endif | |
13304 | /* We use char because int might match the return type of a gcc2 | |
13305 | builtin and then its argument prototype would still apply. */ | |
13306 | char $ac_func (); | |
252b5132 RH |
13307 | /* The GNU C library defines this for functions which it implements |
13308 | to always fail with ENOSYS. Some functions are actually named | |
13309 | something starting with __ and the normal name is an alias. */ | |
13310 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13311 | choke me | |
13312 | #else | |
42ecbf5e DJ |
13313 | char (*f) () = $ac_func; |
13314 | #endif | |
13315 | #ifdef __cplusplus | |
13316 | } | |
252b5132 RH |
13317 | #endif |
13318 | ||
42ecbf5e DJ |
13319 | int |
13320 | main () | |
13321 | { | |
13322 | return f != $ac_func; | |
13323 | ; | |
13324 | return 0; | |
13325 | } | |
13326 | _ACEOF | |
13327 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13328 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13329 | (eval $ac_link) 2>conftest.er1 | |
13330 | ac_status=$? | |
13331 | grep -v '^ *+' conftest.er1 >conftest.err | |
13332 | rm -f conftest.er1 | |
13333 | cat conftest.err >&5 | |
13334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13335 | (exit $ac_status); } && | |
7357c5b6 AM |
13336 | { ac_try='test -z "$ac_c_werror_flag" |
13337 | || test ! -s conftest.err' | |
42ecbf5e DJ |
13338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13339 | (eval $ac_try) 2>&5 | |
13340 | ac_status=$? | |
13341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13342 | (exit $ac_status); }; } && | |
13343 | { ac_try='test -s conftest$ac_exeext' | |
13344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13345 | (eval $ac_try) 2>&5 | |
13346 | ac_status=$? | |
13347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13348 | (exit $ac_status); }; }; then | |
13349 | eval "$as_ac_var=yes" | |
13350 | else | |
13351 | echo "$as_me: failed program was:" >&5 | |
13352 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13353 | ||
13354 | eval "$as_ac_var=no" | |
13355 | fi | |
13356 | rm -f conftest.err conftest.$ac_objext \ | |
13357 | conftest$ac_exeext conftest.$ac_ext | |
13358 | fi | |
13359 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13360 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13361 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13362 | cat >>confdefs.h <<_ACEOF | |
13363 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13364 | _ACEOF | |
252b5132 | 13365 | |
252b5132 RH |
13366 | fi |
13367 | done | |
13368 | ||
f9c026a8 NC |
13369 | echo "$as_me:$LINENO: checking for mkstemp" >&5 |
13370 | echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6 | |
13371 | if test "${ac_cv_func_mkstemp+set}" = set; then | |
13372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13373 | else | |
13374 | cat >conftest.$ac_ext <<_ACEOF | |
13375 | /* confdefs.h. */ | |
13376 | _ACEOF | |
13377 | cat confdefs.h >>conftest.$ac_ext | |
13378 | cat >>conftest.$ac_ext <<_ACEOF | |
13379 | /* end confdefs.h. */ | |
13380 | /* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp. | |
13381 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13382 | #define mkstemp innocuous_mkstemp | |
13383 | ||
13384 | /* System header to define __stub macros and hopefully few prototypes, | |
13385 | which can conflict with char mkstemp (); below. | |
13386 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13387 | <limits.h> exists even on freestanding compilers. */ | |
13388 | ||
13389 | #ifdef __STDC__ | |
13390 | # include <limits.h> | |
13391 | #else | |
13392 | # include <assert.h> | |
13393 | #endif | |
13394 | ||
13395 | #undef mkstemp | |
13396 | ||
13397 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13398 | #ifdef __cplusplus | |
13399 | extern "C" | |
13400 | { | |
13401 | #endif | |
13402 | /* We use char because int might match the return type of a gcc2 | |
13403 | builtin and then its argument prototype would still apply. */ | |
13404 | char mkstemp (); | |
13405 | /* The GNU C library defines this for functions which it implements | |
13406 | to always fail with ENOSYS. Some functions are actually named | |
13407 | something starting with __ and the normal name is an alias. */ | |
13408 | #if defined (__stub_mkstemp) || defined (__stub___mkstemp) | |
13409 | choke me | |
13410 | #else | |
13411 | char (*f) () = mkstemp; | |
13412 | #endif | |
13413 | #ifdef __cplusplus | |
13414 | } | |
13415 | #endif | |
13416 | ||
13417 | int | |
13418 | main () | |
13419 | { | |
13420 | return f != mkstemp; | |
13421 | ; | |
13422 | return 0; | |
13423 | } | |
13424 | _ACEOF | |
13425 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13426 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13427 | (eval $ac_link) 2>conftest.er1 | |
13428 | ac_status=$? | |
13429 | grep -v '^ *+' conftest.er1 >conftest.err | |
13430 | rm -f conftest.er1 | |
13431 | cat conftest.err >&5 | |
13432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13433 | (exit $ac_status); } && | |
7357c5b6 AM |
13434 | { ac_try='test -z "$ac_c_werror_flag" |
13435 | || test ! -s conftest.err' | |
f9c026a8 NC |
13436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13437 | (eval $ac_try) 2>&5 | |
13438 | ac_status=$? | |
13439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13440 | (exit $ac_status); }; } && | |
13441 | { ac_try='test -s conftest$ac_exeext' | |
13442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13443 | (eval $ac_try) 2>&5 | |
13444 | ac_status=$? | |
13445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13446 | (exit $ac_status); }; }; then | |
13447 | ac_cv_func_mkstemp=yes | |
13448 | else | |
13449 | echo "$as_me: failed program was:" >&5 | |
13450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13451 | ||
13452 | ac_cv_func_mkstemp=no | |
13453 | fi | |
13454 | rm -f conftest.err conftest.$ac_objext \ | |
13455 | conftest$ac_exeext conftest.$ac_ext | |
13456 | fi | |
13457 | echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5 | |
13458 | echo "${ECHO_T}$ac_cv_func_mkstemp" >&6 | |
13459 | if test $ac_cv_func_mkstemp = yes; then | |
13460 | ||
13461 | cat >>confdefs.h <<\_ACEOF | |
13462 | #define HAVE_MKSTEMP 1 | |
13463 | _ACEOF | |
13464 | ||
13465 | fi | |
13466 | ||
13467 | echo "$as_me:$LINENO: checking for mkdtemp" >&5 | |
13468 | echo $ECHO_N "checking for mkdtemp... $ECHO_C" >&6 | |
13469 | if test "${ac_cv_func_mkdtemp+set}" = set; then | |
13470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13471 | else | |
13472 | cat >conftest.$ac_ext <<_ACEOF | |
13473 | /* confdefs.h. */ | |
13474 | _ACEOF | |
13475 | cat confdefs.h >>conftest.$ac_ext | |
13476 | cat >>conftest.$ac_ext <<_ACEOF | |
13477 | /* end confdefs.h. */ | |
13478 | /* Define mkdtemp to an innocuous variant, in case <limits.h> declares mkdtemp. | |
13479 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13480 | #define mkdtemp innocuous_mkdtemp | |
13481 | ||
13482 | /* System header to define __stub macros and hopefully few prototypes, | |
13483 | which can conflict with char mkdtemp (); below. | |
13484 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13485 | <limits.h> exists even on freestanding compilers. */ | |
13486 | ||
13487 | #ifdef __STDC__ | |
13488 | # include <limits.h> | |
13489 | #else | |
13490 | # include <assert.h> | |
13491 | #endif | |
13492 | ||
13493 | #undef mkdtemp | |
13494 | ||
13495 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13496 | #ifdef __cplusplus | |
13497 | extern "C" | |
13498 | { | |
13499 | #endif | |
13500 | /* We use char because int might match the return type of a gcc2 | |
13501 | builtin and then its argument prototype would still apply. */ | |
13502 | char mkdtemp (); | |
13503 | /* The GNU C library defines this for functions which it implements | |
13504 | to always fail with ENOSYS. Some functions are actually named | |
13505 | something starting with __ and the normal name is an alias. */ | |
13506 | #if defined (__stub_mkdtemp) || defined (__stub___mkdtemp) | |
13507 | choke me | |
13508 | #else | |
13509 | char (*f) () = mkdtemp; | |
13510 | #endif | |
13511 | #ifdef __cplusplus | |
13512 | } | |
13513 | #endif | |
13514 | ||
13515 | int | |
13516 | main () | |
13517 | { | |
13518 | return f != mkdtemp; | |
13519 | ; | |
13520 | return 0; | |
13521 | } | |
13522 | _ACEOF | |
13523 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13524 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13525 | (eval $ac_link) 2>conftest.er1 | |
13526 | ac_status=$? | |
13527 | grep -v '^ *+' conftest.er1 >conftest.err | |
13528 | rm -f conftest.er1 | |
13529 | cat conftest.err >&5 | |
13530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13531 | (exit $ac_status); } && | |
7357c5b6 AM |
13532 | { ac_try='test -z "$ac_c_werror_flag" |
13533 | || test ! -s conftest.err' | |
f9c026a8 NC |
13534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13535 | (eval $ac_try) 2>&5 | |
13536 | ac_status=$? | |
13537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13538 | (exit $ac_status); }; } && | |
13539 | { ac_try='test -s conftest$ac_exeext' | |
13540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13541 | (eval $ac_try) 2>&5 | |
13542 | ac_status=$? | |
13543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13544 | (exit $ac_status); }; }; then | |
13545 | ac_cv_func_mkdtemp=yes | |
13546 | else | |
13547 | echo "$as_me: failed program was:" >&5 | |
13548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13549 | ||
13550 | ac_cv_func_mkdtemp=no | |
13551 | fi | |
13552 | rm -f conftest.err conftest.$ac_objext \ | |
13553 | conftest$ac_exeext conftest.$ac_ext | |
13554 | fi | |
13555 | echo "$as_me:$LINENO: result: $ac_cv_func_mkdtemp" >&5 | |
13556 | echo "${ECHO_T}$ac_cv_func_mkdtemp" >&6 | |
13557 | if test $ac_cv_func_mkdtemp = yes; then | |
13558 | ||
13559 | cat >>confdefs.h <<\_ACEOF | |
13560 | #define HAVE_MKDTEMP 1 | |
13561 | _ACEOF | |
13562 | ||
13563 | fi | |
13564 | ||
252b5132 | 13565 | |
cedd9a58 JJ |
13566 | # Check whether fopen64 is available and whether _LARGEFILE64_SOURCE |
13567 | # needs to be defined for it | |
42ecbf5e DJ |
13568 | echo "$as_me:$LINENO: checking for fopen64" >&5 |
13569 | echo $ECHO_N "checking for fopen64... $ECHO_C" >&6 | |
13570 | if test "${bu_cv_have_fopen64+set}" = set; then | |
13571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13572 | else | |
13573 | cat >conftest.$ac_ext <<_ACEOF | |
13574 | /* confdefs.h. */ | |
13575 | _ACEOF | |
13576 | cat confdefs.h >>conftest.$ac_ext | |
13577 | cat >>conftest.$ac_ext <<_ACEOF | |
13578 | /* end confdefs.h. */ | |
cedd9a58 | 13579 | #include <stdio.h> |
42ecbf5e DJ |
13580 | int |
13581 | main () | |
13582 | { | |
cedd9a58 | 13583 | FILE *f = fopen64 ("/tmp/foo","r"); |
42ecbf5e DJ |
13584 | ; |
13585 | return 0; | |
13586 | } | |
13587 | _ACEOF | |
13588 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13589 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13590 | (eval $ac_link) 2>conftest.er1 | |
13591 | ac_status=$? | |
13592 | grep -v '^ *+' conftest.er1 >conftest.err | |
13593 | rm -f conftest.er1 | |
13594 | cat conftest.err >&5 | |
13595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13596 | (exit $ac_status); } && | |
7357c5b6 AM |
13597 | { ac_try='test -z "$ac_c_werror_flag" |
13598 | || test ! -s conftest.err' | |
42ecbf5e DJ |
13599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13600 | (eval $ac_try) 2>&5 | |
13601 | ac_status=$? | |
13602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13603 | (exit $ac_status); }; } && | |
13604 | { ac_try='test -s conftest$ac_exeext' | |
13605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13606 | (eval $ac_try) 2>&5 | |
13607 | ac_status=$? | |
13608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13609 | (exit $ac_status); }; }; then | |
cedd9a58 JJ |
13610 | bu_cv_have_fopen64=yes |
13611 | else | |
42ecbf5e DJ |
13612 | echo "$as_me: failed program was:" >&5 |
13613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13614 | ||
13615 | saved_CPPFLAGS=$CPPFLAGS | |
cedd9a58 | 13616 | CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE" |
42ecbf5e DJ |
13617 | cat >conftest.$ac_ext <<_ACEOF |
13618 | /* confdefs.h. */ | |
13619 | _ACEOF | |
13620 | cat confdefs.h >>conftest.$ac_ext | |
13621 | cat >>conftest.$ac_ext <<_ACEOF | |
13622 | /* end confdefs.h. */ | |
cedd9a58 | 13623 | #include <stdio.h> |
42ecbf5e DJ |
13624 | int |
13625 | main () | |
13626 | { | |
cedd9a58 | 13627 | FILE *f = fopen64 ("/tmp/foo","r"); |
42ecbf5e DJ |
13628 | ; |
13629 | return 0; | |
13630 | } | |
13631 | _ACEOF | |
13632 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13633 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13634 | (eval $ac_link) 2>conftest.er1 | |
13635 | ac_status=$? | |
13636 | grep -v '^ *+' conftest.er1 >conftest.err | |
13637 | rm -f conftest.er1 | |
13638 | cat conftest.err >&5 | |
13639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13640 | (exit $ac_status); } && | |
7357c5b6 AM |
13641 | { ac_try='test -z "$ac_c_werror_flag" |
13642 | || test ! -s conftest.err' | |
42ecbf5e DJ |
13643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13644 | (eval $ac_try) 2>&5 | |
13645 | ac_status=$? | |
13646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13647 | (exit $ac_status); }; } && | |
13648 | { ac_try='test -s conftest$ac_exeext' | |
13649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13650 | (eval $ac_try) 2>&5 | |
13651 | ac_status=$? | |
13652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13653 | (exit $ac_status); }; }; then | |
cedd9a58 JJ |
13654 | bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE" |
13655 | else | |
42ecbf5e DJ |
13656 | echo "$as_me: failed program was:" >&5 |
13657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13658 | ||
13659 | bu_cv_have_fopen64=no | |
cedd9a58 | 13660 | fi |
42ecbf5e DJ |
13661 | rm -f conftest.err conftest.$ac_objext \ |
13662 | conftest$ac_exeext conftest.$ac_ext | |
17a5a5c3 | 13663 | CPPFLAGS=$saved_CPPFLAGS |
cedd9a58 | 13664 | fi |
42ecbf5e DJ |
13665 | rm -f conftest.err conftest.$ac_objext \ |
13666 | conftest$ac_exeext conftest.$ac_ext | |
cedd9a58 | 13667 | fi |
cedd9a58 | 13668 | |
42ecbf5e DJ |
13669 | echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5 |
13670 | echo "${ECHO_T}$bu_cv_have_fopen64" >&6 | |
6db7a086 | 13671 | if test "$bu_cv_have_fopen64" != no; then |
42ecbf5e DJ |
13672 | |
13673 | cat >>confdefs.h <<\_ACEOF | |
cedd9a58 | 13674 | #define HAVE_FOPEN64 1 |
42ecbf5e | 13675 | _ACEOF |
cedd9a58 | 13676 | |
fb5b5478 | 13677 | fi |
42ecbf5e DJ |
13678 | echo "$as_me:$LINENO: checking for stat64" >&5 |
13679 | echo $ECHO_N "checking for stat64... $ECHO_C" >&6 | |
13680 | if test "${bu_cv_have_stat64+set}" = set; then | |
13681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fb5b5478 | 13682 | else |
42ecbf5e DJ |
13683 | cat >conftest.$ac_ext <<_ACEOF |
13684 | /* confdefs.h. */ | |
13685 | _ACEOF | |
13686 | cat confdefs.h >>conftest.$ac_ext | |
13687 | cat >>conftest.$ac_ext <<_ACEOF | |
13688 | /* end confdefs.h. */ | |
fb5b5478 | 13689 | #include <sys/stat.h> |
42ecbf5e DJ |
13690 | int |
13691 | main () | |
13692 | { | |
fb5b5478 | 13693 | struct stat64 st; stat64 ("/tmp/foo", &st); |
42ecbf5e DJ |
13694 | ; |
13695 | return 0; | |
13696 | } | |
13697 | _ACEOF | |
13698 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13699 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13700 | (eval $ac_link) 2>conftest.er1 | |
13701 | ac_status=$? | |
13702 | grep -v '^ *+' conftest.er1 >conftest.err | |
13703 | rm -f conftest.er1 | |
13704 | cat conftest.err >&5 | |
13705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13706 | (exit $ac_status); } && | |
7357c5b6 AM |
13707 | { ac_try='test -z "$ac_c_werror_flag" |
13708 | || test ! -s conftest.err' | |
42ecbf5e DJ |
13709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13710 | (eval $ac_try) 2>&5 | |
13711 | ac_status=$? | |
13712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13713 | (exit $ac_status); }; } && | |
13714 | { ac_try='test -s conftest$ac_exeext' | |
13715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13716 | (eval $ac_try) 2>&5 | |
13717 | ac_status=$? | |
13718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13719 | (exit $ac_status); }; }; then | |
fb5b5478 JJ |
13720 | bu_cv_have_stat64=yes |
13721 | else | |
42ecbf5e DJ |
13722 | echo "$as_me: failed program was:" >&5 |
13723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13724 | ||
13725 | saved_CPPFLAGS=$CPPFLAGS | |
fb5b5478 | 13726 | CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE" |
42ecbf5e DJ |
13727 | cat >conftest.$ac_ext <<_ACEOF |
13728 | /* confdefs.h. */ | |
13729 | _ACEOF | |
13730 | cat confdefs.h >>conftest.$ac_ext | |
13731 | cat >>conftest.$ac_ext <<_ACEOF | |
13732 | /* end confdefs.h. */ | |
fb5b5478 | 13733 | #include <sys/stat.h> |
42ecbf5e DJ |
13734 | int |
13735 | main () | |
13736 | { | |
fb5b5478 | 13737 | struct stat64 st; stat64 ("/tmp/foo", &st); |
42ecbf5e DJ |
13738 | ; |
13739 | return 0; | |
13740 | } | |
13741 | _ACEOF | |
13742 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13743 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13744 | (eval $ac_link) 2>conftest.er1 | |
13745 | ac_status=$? | |
13746 | grep -v '^ *+' conftest.er1 >conftest.err | |
13747 | rm -f conftest.er1 | |
13748 | cat conftest.err >&5 | |
13749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13750 | (exit $ac_status); } && | |
7357c5b6 AM |
13751 | { ac_try='test -z "$ac_c_werror_flag" |
13752 | || test ! -s conftest.err' | |
42ecbf5e DJ |
13753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13754 | (eval $ac_try) 2>&5 | |
13755 | ac_status=$? | |
13756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13757 | (exit $ac_status); }; } && | |
13758 | { ac_try='test -s conftest$ac_exeext' | |
13759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13760 | (eval $ac_try) 2>&5 | |
13761 | ac_status=$? | |
13762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13763 | (exit $ac_status); }; }; then | |
fb5b5478 JJ |
13764 | bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE" |
13765 | else | |
42ecbf5e DJ |
13766 | echo "$as_me: failed program was:" >&5 |
13767 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13768 | ||
13769 | bu_cv_have_stat64=no | |
fb5b5478 | 13770 | fi |
42ecbf5e DJ |
13771 | rm -f conftest.err conftest.$ac_objext \ |
13772 | conftest$ac_exeext conftest.$ac_ext | |
fb5b5478 JJ |
13773 | CPPFLAGS=$saved_CPPFLAGS |
13774 | fi | |
42ecbf5e DJ |
13775 | rm -f conftest.err conftest.$ac_objext \ |
13776 | conftest$ac_exeext conftest.$ac_ext | |
fb5b5478 JJ |
13777 | fi |
13778 | ||
42ecbf5e DJ |
13779 | echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5 |
13780 | echo "${ECHO_T}$bu_cv_have_stat64" >&6 | |
fb5b5478 | 13781 | if test "$bu_cv_have_stat64" != no; then |
42ecbf5e DJ |
13782 | |
13783 | cat >>confdefs.h <<\_ACEOF | |
fb5b5478 | 13784 | #define HAVE_STAT64 1 |
42ecbf5e | 13785 | _ACEOF |
fb5b5478 JJ |
13786 | |
13787 | fi | |
13788 | if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \ | |
13789 | || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then | |
42ecbf5e DJ |
13790 | |
13791 | cat >>confdefs.h <<\_ACEOF | |
cedd9a58 | 13792 | #define _LARGEFILE64_SOURCE 1 |
42ecbf5e | 13793 | _ACEOF |
cedd9a58 | 13794 | |
fb5b5478 | 13795 | CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE" |
cedd9a58 JJ |
13796 | fi |
13797 | ||
f353eb8a | 13798 | # Some systems have frexp only in -lm, not in -lc. |
42ecbf5e DJ |
13799 | echo "$as_me:$LINENO: checking for library containing frexp" >&5 |
13800 | echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6 | |
13801 | if test "${ac_cv_search_frexp+set}" = set; then | |
13802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13803 | else | |
13804 | ac_func_search_save_LIBS=$LIBS | |
13805 | ac_cv_search_frexp=no | |
13806 | cat >conftest.$ac_ext <<_ACEOF | |
13807 | /* confdefs.h. */ | |
13808 | _ACEOF | |
13809 | cat confdefs.h >>conftest.$ac_ext | |
13810 | cat >>conftest.$ac_ext <<_ACEOF | |
13811 | /* end confdefs.h. */ | |
f353eb8a | 13812 | |
f353eb8a | 13813 | /* Override any gcc2 internal prototype to avoid an error. */ |
42ecbf5e DJ |
13814 | #ifdef __cplusplus |
13815 | extern "C" | |
13816 | #endif | |
f353eb8a | 13817 | /* We use char because int might match the return type of a gcc2 |
42ecbf5e DJ |
13818 | builtin and then its argument prototype would still apply. */ |
13819 | char frexp (); | |
13820 | int | |
13821 | main () | |
13822 | { | |
13823 | frexp (); | |
13824 | ; | |
13825 | return 0; | |
13826 | } | |
13827 | _ACEOF | |
13828 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13829 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13830 | (eval $ac_link) 2>conftest.er1 | |
13831 | ac_status=$? | |
13832 | grep -v '^ *+' conftest.er1 >conftest.err | |
13833 | rm -f conftest.er1 | |
13834 | cat conftest.err >&5 | |
13835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13836 | (exit $ac_status); } && | |
7357c5b6 AM |
13837 | { ac_try='test -z "$ac_c_werror_flag" |
13838 | || test ! -s conftest.err' | |
42ecbf5e DJ |
13839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13840 | (eval $ac_try) 2>&5 | |
13841 | ac_status=$? | |
13842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13843 | (exit $ac_status); }; } && | |
13844 | { ac_try='test -s conftest$ac_exeext' | |
13845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13846 | (eval $ac_try) 2>&5 | |
13847 | ac_status=$? | |
13848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13849 | (exit $ac_status); }; }; then | |
f353eb8a ILT |
13850 | ac_cv_search_frexp="none required" |
13851 | else | |
42ecbf5e DJ |
13852 | echo "$as_me: failed program was:" >&5 |
13853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13854 | ||
f353eb8a | 13855 | fi |
42ecbf5e DJ |
13856 | rm -f conftest.err conftest.$ac_objext \ |
13857 | conftest$ac_exeext conftest.$ac_ext | |
13858 | if test "$ac_cv_search_frexp" = no; then | |
13859 | for ac_lib in m; do | |
13860 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13861 | cat >conftest.$ac_ext <<_ACEOF | |
13862 | /* confdefs.h. */ | |
13863 | _ACEOF | |
13864 | cat confdefs.h >>conftest.$ac_ext | |
13865 | cat >>conftest.$ac_ext <<_ACEOF | |
13866 | /* end confdefs.h. */ | |
13867 | ||
f353eb8a | 13868 | /* Override any gcc2 internal prototype to avoid an error. */ |
42ecbf5e DJ |
13869 | #ifdef __cplusplus |
13870 | extern "C" | |
13871 | #endif | |
f353eb8a | 13872 | /* We use char because int might match the return type of a gcc2 |
42ecbf5e DJ |
13873 | builtin and then its argument prototype would still apply. */ |
13874 | char frexp (); | |
13875 | int | |
13876 | main () | |
13877 | { | |
13878 | frexp (); | |
13879 | ; | |
13880 | return 0; | |
13881 | } | |
13882 | _ACEOF | |
13883 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13884 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13885 | (eval $ac_link) 2>conftest.er1 | |
13886 | ac_status=$? | |
13887 | grep -v '^ *+' conftest.er1 >conftest.err | |
13888 | rm -f conftest.er1 | |
13889 | cat conftest.err >&5 | |
13890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13891 | (exit $ac_status); } && | |
7357c5b6 AM |
13892 | { ac_try='test -z "$ac_c_werror_flag" |
13893 | || test ! -s conftest.err' | |
42ecbf5e DJ |
13894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13895 | (eval $ac_try) 2>&5 | |
13896 | ac_status=$? | |
13897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13898 | (exit $ac_status); }; } && | |
13899 | { ac_try='test -s conftest$ac_exeext' | |
13900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13901 | (eval $ac_try) 2>&5 | |
13902 | ac_status=$? | |
13903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13904 | (exit $ac_status); }; }; then | |
13905 | ac_cv_search_frexp="-l$ac_lib" | |
f353eb8a ILT |
13906 | break |
13907 | else | |
42ecbf5e DJ |
13908 | echo "$as_me: failed program was:" >&5 |
13909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13910 | ||
f353eb8a | 13911 | fi |
42ecbf5e DJ |
13912 | rm -f conftest.err conftest.$ac_objext \ |
13913 | conftest$ac_exeext conftest.$ac_ext | |
13914 | done | |
e5a52504 | 13915 | fi |
42ecbf5e DJ |
13916 | LIBS=$ac_func_search_save_LIBS |
13917 | fi | |
13918 | echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5 | |
13919 | echo "${ECHO_T}$ac_cv_search_frexp" >&6 | |
13920 | if test "$ac_cv_search_frexp" != no; then | |
d15b04bd | 13921 | test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS" |
42ecbf5e | 13922 | |
f353eb8a ILT |
13923 | fi |
13924 | ||
42ecbf5e DJ |
13925 | |
13926 | echo "$as_me:$LINENO: checking for time_t in time.h" >&5 | |
13927 | echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6 | |
13928 | if test "${bu_cv_decl_time_t_time_h+set}" = set; then | |
13929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 13930 | else |
42ecbf5e DJ |
13931 | cat >conftest.$ac_ext <<_ACEOF |
13932 | /* confdefs.h. */ | |
13933 | _ACEOF | |
13934 | cat confdefs.h >>conftest.$ac_ext | |
13935 | cat >>conftest.$ac_ext <<_ACEOF | |
13936 | /* end confdefs.h. */ | |
252b5132 | 13937 | #include <time.h> |
42ecbf5e DJ |
13938 | int |
13939 | main () | |
13940 | { | |
252b5132 | 13941 | time_t i; |
42ecbf5e DJ |
13942 | ; |
13943 | return 0; | |
13944 | } | |
13945 | _ACEOF | |
13946 | rm -f conftest.$ac_objext | |
13947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13948 | (eval $ac_compile) 2>conftest.er1 | |
13949 | ac_status=$? | |
13950 | grep -v '^ *+' conftest.er1 >conftest.err | |
13951 | rm -f conftest.er1 | |
13952 | cat conftest.err >&5 | |
13953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13954 | (exit $ac_status); } && | |
7357c5b6 AM |
13955 | { ac_try='test -z "$ac_c_werror_flag" |
13956 | || test ! -s conftest.err' | |
42ecbf5e DJ |
13957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13958 | (eval $ac_try) 2>&5 | |
13959 | ac_status=$? | |
13960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13961 | (exit $ac_status); }; } && | |
13962 | { ac_try='test -s conftest.$ac_objext' | |
13963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13964 | (eval $ac_try) 2>&5 | |
13965 | ac_status=$? | |
13966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13967 | (exit $ac_status); }; }; then | |
252b5132 RH |
13968 | bu_cv_decl_time_t_time_h=yes |
13969 | else | |
42ecbf5e DJ |
13970 | echo "$as_me: failed program was:" >&5 |
13971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13972 | ||
13973 | bu_cv_decl_time_t_time_h=no | |
252b5132 | 13974 | fi |
42ecbf5e | 13975 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
13976 | fi |
13977 | ||
42ecbf5e DJ |
13978 | echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5 |
13979 | echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6 | |
252b5132 | 13980 | if test $bu_cv_decl_time_t_time_h = yes; then |
42ecbf5e DJ |
13981 | |
13982 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 13983 | #define HAVE_TIME_T_IN_TIME_H 1 |
42ecbf5e | 13984 | _ACEOF |
252b5132 RH |
13985 | |
13986 | fi | |
13987 | ||
42ecbf5e DJ |
13988 | echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5 |
13989 | echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6 | |
13990 | if test "${bu_cv_decl_time_t_types_h+set}" = set; then | |
13991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 13992 | else |
42ecbf5e DJ |
13993 | cat >conftest.$ac_ext <<_ACEOF |
13994 | /* confdefs.h. */ | |
13995 | _ACEOF | |
13996 | cat confdefs.h >>conftest.$ac_ext | |
13997 | cat >>conftest.$ac_ext <<_ACEOF | |
13998 | /* end confdefs.h. */ | |
252b5132 | 13999 | #include <sys/types.h> |
42ecbf5e DJ |
14000 | int |
14001 | main () | |
14002 | { | |
252b5132 | 14003 | time_t i; |
42ecbf5e DJ |
14004 | ; |
14005 | return 0; | |
14006 | } | |
14007 | _ACEOF | |
14008 | rm -f conftest.$ac_objext | |
14009 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14010 | (eval $ac_compile) 2>conftest.er1 | |
14011 | ac_status=$? | |
14012 | grep -v '^ *+' conftest.er1 >conftest.err | |
14013 | rm -f conftest.er1 | |
14014 | cat conftest.err >&5 | |
14015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14016 | (exit $ac_status); } && | |
7357c5b6 AM |
14017 | { ac_try='test -z "$ac_c_werror_flag" |
14018 | || test ! -s conftest.err' | |
42ecbf5e DJ |
14019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14020 | (eval $ac_try) 2>&5 | |
14021 | ac_status=$? | |
14022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14023 | (exit $ac_status); }; } && | |
14024 | { ac_try='test -s conftest.$ac_objext' | |
14025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14026 | (eval $ac_try) 2>&5 | |
14027 | ac_status=$? | |
14028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14029 | (exit $ac_status); }; }; then | |
252b5132 RH |
14030 | bu_cv_decl_time_t_types_h=yes |
14031 | else | |
42ecbf5e DJ |
14032 | echo "$as_me: failed program was:" >&5 |
14033 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14034 | ||
14035 | bu_cv_decl_time_t_types_h=no | |
252b5132 | 14036 | fi |
42ecbf5e | 14037 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
14038 | fi |
14039 | ||
42ecbf5e DJ |
14040 | echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5 |
14041 | echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6 | |
252b5132 | 14042 | if test $bu_cv_decl_time_t_types_h = yes; then |
42ecbf5e DJ |
14043 | |
14044 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 14045 | #define HAVE_TIME_T_IN_TYPES_H 1 |
42ecbf5e | 14046 | _ACEOF |
252b5132 RH |
14047 | |
14048 | fi | |
14049 | ||
42ecbf5e DJ |
14050 | echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5 |
14051 | echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6 | |
14052 | if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then | |
14053 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e46eba98 | 14054 | else |
42ecbf5e DJ |
14055 | cat >conftest.$ac_ext <<_ACEOF |
14056 | /* confdefs.h. */ | |
14057 | _ACEOF | |
14058 | cat confdefs.h >>conftest.$ac_ext | |
14059 | cat >>conftest.$ac_ext <<_ACEOF | |
14060 | /* end confdefs.h. */ | |
e46eba98 | 14061 | #include <unistd.h> |
42ecbf5e DJ |
14062 | int |
14063 | main () | |
14064 | { | |
e46eba98 | 14065 | extern int getopt (int, char *const*, const char *); |
42ecbf5e DJ |
14066 | ; |
14067 | return 0; | |
14068 | } | |
14069 | _ACEOF | |
14070 | rm -f conftest.$ac_objext | |
14071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14072 | (eval $ac_compile) 2>conftest.er1 | |
14073 | ac_status=$? | |
14074 | grep -v '^ *+' conftest.er1 >conftest.err | |
14075 | rm -f conftest.er1 | |
14076 | cat conftest.err >&5 | |
14077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14078 | (exit $ac_status); } && | |
7357c5b6 AM |
14079 | { ac_try='test -z "$ac_c_werror_flag" |
14080 | || test ! -s conftest.err' | |
42ecbf5e DJ |
14081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14082 | (eval $ac_try) 2>&5 | |
14083 | ac_status=$? | |
14084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14085 | (exit $ac_status); }; } && | |
14086 | { ac_try='test -s conftest.$ac_objext' | |
14087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14088 | (eval $ac_try) 2>&5 | |
14089 | ac_status=$? | |
14090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14091 | (exit $ac_status); }; }; then | |
e46eba98 NC |
14092 | bu_cv_decl_getopt_unistd_h=yes |
14093 | else | |
42ecbf5e DJ |
14094 | echo "$as_me: failed program was:" >&5 |
14095 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14096 | ||
14097 | bu_cv_decl_getopt_unistd_h=no | |
e46eba98 | 14098 | fi |
42ecbf5e | 14099 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e46eba98 NC |
14100 | fi |
14101 | ||
42ecbf5e DJ |
14102 | echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5 |
14103 | echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6 | |
e46eba98 | 14104 | if test $bu_cv_decl_getopt_unistd_h = yes; then |
42ecbf5e DJ |
14105 | |
14106 | cat >>confdefs.h <<\_ACEOF | |
e46eba98 | 14107 | #define HAVE_DECL_GETOPT 1 |
42ecbf5e | 14108 | _ACEOF |
e46eba98 NC |
14109 | |
14110 | fi | |
14111 | ||
252b5132 RH |
14112 | # Under Next 3.2 <utime.h> apparently does not define struct utimbuf |
14113 | # by default. | |
42ecbf5e DJ |
14114 | echo "$as_me:$LINENO: checking for utime.h" >&5 |
14115 | echo $ECHO_N "checking for utime.h... $ECHO_C" >&6 | |
14116 | if test "${bu_cv_header_utime_h+set}" = set; then | |
14117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14118 | else | |
14119 | cat >conftest.$ac_ext <<_ACEOF | |
14120 | /* confdefs.h. */ | |
14121 | _ACEOF | |
14122 | cat confdefs.h >>conftest.$ac_ext | |
14123 | cat >>conftest.$ac_ext <<_ACEOF | |
14124 | /* end confdefs.h. */ | |
252b5132 RH |
14125 | #include <sys/types.h> |
14126 | #ifdef HAVE_TIME_H | |
14127 | #include <time.h> | |
14128 | #endif | |
14129 | #include <utime.h> | |
42ecbf5e DJ |
14130 | int |
14131 | main () | |
14132 | { | |
252b5132 | 14133 | struct utimbuf s; |
42ecbf5e DJ |
14134 | ; |
14135 | return 0; | |
14136 | } | |
14137 | _ACEOF | |
14138 | rm -f conftest.$ac_objext | |
14139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14140 | (eval $ac_compile) 2>conftest.er1 | |
14141 | ac_status=$? | |
14142 | grep -v '^ *+' conftest.er1 >conftest.err | |
14143 | rm -f conftest.er1 | |
14144 | cat conftest.err >&5 | |
14145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14146 | (exit $ac_status); } && | |
7357c5b6 AM |
14147 | { ac_try='test -z "$ac_c_werror_flag" |
14148 | || test ! -s conftest.err' | |
42ecbf5e DJ |
14149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14150 | (eval $ac_try) 2>&5 | |
14151 | ac_status=$? | |
14152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14153 | (exit $ac_status); }; } && | |
14154 | { ac_try='test -s conftest.$ac_objext' | |
14155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14156 | (eval $ac_try) 2>&5 | |
14157 | ac_status=$? | |
14158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14159 | (exit $ac_status); }; }; then | |
252b5132 RH |
14160 | bu_cv_header_utime_h=yes |
14161 | else | |
42ecbf5e DJ |
14162 | echo "$as_me: failed program was:" >&5 |
14163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14164 | ||
14165 | bu_cv_header_utime_h=no | |
252b5132 | 14166 | fi |
42ecbf5e | 14167 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
14168 | fi |
14169 | ||
42ecbf5e DJ |
14170 | echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5 |
14171 | echo "${ECHO_T}$bu_cv_header_utime_h" >&6 | |
252b5132 | 14172 | if test $bu_cv_header_utime_h = yes; then |
42ecbf5e DJ |
14173 | |
14174 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 14175 | #define HAVE_GOOD_UTIME_H 1 |
42ecbf5e | 14176 | _ACEOF |
252b5132 RH |
14177 | |
14178 | fi | |
14179 | ||
398ee8f1 SE |
14180 | echo "$as_me:$LINENO: checking whether fprintf is declared" >&5 |
14181 | echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6 | |
14182 | if test "${ac_cv_have_decl_fprintf+set}" = set; then | |
42ecbf5e | 14183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 14184 | else |
42ecbf5e DJ |
14185 | cat >conftest.$ac_ext <<_ACEOF |
14186 | /* confdefs.h. */ | |
14187 | _ACEOF | |
14188 | cat confdefs.h >>conftest.$ac_ext | |
14189 | cat >>conftest.$ac_ext <<_ACEOF | |
14190 | /* end confdefs.h. */ | |
398ee8f1 | 14191 | $ac_includes_default |
42ecbf5e DJ |
14192 | int |
14193 | main () | |
14194 | { | |
398ee8f1 SE |
14195 | #ifndef fprintf |
14196 | char *p = (char *) fprintf; | |
14197 | #endif | |
14198 | ||
42ecbf5e DJ |
14199 | ; |
14200 | return 0; | |
14201 | } | |
14202 | _ACEOF | |
14203 | rm -f conftest.$ac_objext | |
14204 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14205 | (eval $ac_compile) 2>conftest.er1 | |
14206 | ac_status=$? | |
14207 | grep -v '^ *+' conftest.er1 >conftest.err | |
14208 | rm -f conftest.er1 | |
14209 | cat conftest.err >&5 | |
14210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14211 | (exit $ac_status); } && | |
7357c5b6 AM |
14212 | { ac_try='test -z "$ac_c_werror_flag" |
14213 | || test ! -s conftest.err' | |
42ecbf5e DJ |
14214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14215 | (eval $ac_try) 2>&5 | |
14216 | ac_status=$? | |
14217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14218 | (exit $ac_status); }; } && | |
14219 | { ac_try='test -s conftest.$ac_objext' | |
14220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14221 | (eval $ac_try) 2>&5 | |
14222 | ac_status=$? | |
14223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14224 | (exit $ac_status); }; }; then | |
398ee8f1 | 14225 | ac_cv_have_decl_fprintf=yes |
252b5132 | 14226 | else |
42ecbf5e DJ |
14227 | echo "$as_me: failed program was:" >&5 |
14228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14229 | ||
398ee8f1 | 14230 | ac_cv_have_decl_fprintf=no |
252b5132 | 14231 | fi |
42ecbf5e | 14232 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 14233 | fi |
398ee8f1 SE |
14234 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5 |
14235 | echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6 | |
14236 | if test $ac_cv_have_decl_fprintf = yes; then | |
252b5132 | 14237 | |
398ee8f1 SE |
14238 | cat >>confdefs.h <<_ACEOF |
14239 | #define HAVE_DECL_FPRINTF 1 | |
14240 | _ACEOF | |
42ecbf5e | 14241 | |
398ee8f1 SE |
14242 | |
14243 | else | |
14244 | cat >>confdefs.h <<_ACEOF | |
14245 | #define HAVE_DECL_FPRINTF 0 | |
42ecbf5e | 14246 | _ACEOF |
252b5132 | 14247 | |
252b5132 | 14248 | |
3e321448 L |
14249 | fi |
14250 | echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5 | |
14251 | echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6 | |
14252 | if test "${ac_cv_have_decl_stpcpy+set}" = set; then | |
14253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14254 | else | |
14255 | cat >conftest.$ac_ext <<_ACEOF | |
14256 | /* confdefs.h. */ | |
14257 | _ACEOF | |
14258 | cat confdefs.h >>conftest.$ac_ext | |
14259 | cat >>conftest.$ac_ext <<_ACEOF | |
14260 | /* end confdefs.h. */ | |
14261 | $ac_includes_default | |
14262 | int | |
14263 | main () | |
14264 | { | |
14265 | #ifndef stpcpy | |
14266 | char *p = (char *) stpcpy; | |
14267 | #endif | |
14268 | ||
14269 | ; | |
14270 | return 0; | |
14271 | } | |
14272 | _ACEOF | |
14273 | rm -f conftest.$ac_objext | |
14274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14275 | (eval $ac_compile) 2>conftest.er1 | |
14276 | ac_status=$? | |
14277 | grep -v '^ *+' conftest.er1 >conftest.err | |
14278 | rm -f conftest.er1 | |
14279 | cat conftest.err >&5 | |
14280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14281 | (exit $ac_status); } && | |
7357c5b6 AM |
14282 | { ac_try='test -z "$ac_c_werror_flag" |
14283 | || test ! -s conftest.err' | |
3e321448 L |
14284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14285 | (eval $ac_try) 2>&5 | |
14286 | ac_status=$? | |
14287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14288 | (exit $ac_status); }; } && | |
14289 | { ac_try='test -s conftest.$ac_objext' | |
14290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14291 | (eval $ac_try) 2>&5 | |
14292 | ac_status=$? | |
14293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14294 | (exit $ac_status); }; }; then | |
14295 | ac_cv_have_decl_stpcpy=yes | |
14296 | else | |
14297 | echo "$as_me: failed program was:" >&5 | |
14298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14299 | ||
14300 | ac_cv_have_decl_stpcpy=no | |
14301 | fi | |
14302 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14303 | fi | |
14304 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5 | |
14305 | echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6 | |
14306 | if test $ac_cv_have_decl_stpcpy = yes; then | |
14307 | ||
14308 | cat >>confdefs.h <<_ACEOF | |
14309 | #define HAVE_DECL_STPCPY 1 | |
14310 | _ACEOF | |
14311 | ||
14312 | ||
14313 | else | |
14314 | cat >>confdefs.h <<_ACEOF | |
14315 | #define HAVE_DECL_STPCPY 0 | |
14316 | _ACEOF | |
14317 | ||
14318 | ||
398ee8f1 SE |
14319 | fi |
14320 | echo "$as_me:$LINENO: checking whether strstr is declared" >&5 | |
14321 | echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6 | |
14322 | if test "${ac_cv_have_decl_strstr+set}" = set; then | |
42ecbf5e | 14323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 14324 | else |
42ecbf5e DJ |
14325 | cat >conftest.$ac_ext <<_ACEOF |
14326 | /* confdefs.h. */ | |
14327 | _ACEOF | |
14328 | cat confdefs.h >>conftest.$ac_ext | |
14329 | cat >>conftest.$ac_ext <<_ACEOF | |
14330 | /* end confdefs.h. */ | |
398ee8f1 | 14331 | $ac_includes_default |
42ecbf5e DJ |
14332 | int |
14333 | main () | |
14334 | { | |
398ee8f1 SE |
14335 | #ifndef strstr |
14336 | char *p = (char *) strstr; | |
14337 | #endif | |
14338 | ||
42ecbf5e DJ |
14339 | ; |
14340 | return 0; | |
14341 | } | |
14342 | _ACEOF | |
14343 | rm -f conftest.$ac_objext | |
14344 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14345 | (eval $ac_compile) 2>conftest.er1 | |
14346 | ac_status=$? | |
14347 | grep -v '^ *+' conftest.er1 >conftest.err | |
14348 | rm -f conftest.er1 | |
14349 | cat conftest.err >&5 | |
14350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14351 | (exit $ac_status); } && | |
7357c5b6 AM |
14352 | { ac_try='test -z "$ac_c_werror_flag" |
14353 | || test ! -s conftest.err' | |
42ecbf5e DJ |
14354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14355 | (eval $ac_try) 2>&5 | |
14356 | ac_status=$? | |
14357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14358 | (exit $ac_status); }; } && | |
14359 | { ac_try='test -s conftest.$ac_objext' | |
14360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14361 | (eval $ac_try) 2>&5 | |
14362 | ac_status=$? | |
14363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14364 | (exit $ac_status); }; }; then | |
398ee8f1 | 14365 | ac_cv_have_decl_strstr=yes |
252b5132 | 14366 | else |
42ecbf5e DJ |
14367 | echo "$as_me: failed program was:" >&5 |
14368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14369 | ||
398ee8f1 | 14370 | ac_cv_have_decl_strstr=no |
252b5132 | 14371 | fi |
42ecbf5e | 14372 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 14373 | fi |
398ee8f1 SE |
14374 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5 |
14375 | echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6 | |
14376 | if test $ac_cv_have_decl_strstr = yes; then | |
252b5132 | 14377 | |
398ee8f1 SE |
14378 | cat >>confdefs.h <<_ACEOF |
14379 | #define HAVE_DECL_STRSTR 1 | |
14380 | _ACEOF | |
42ecbf5e | 14381 | |
398ee8f1 SE |
14382 | |
14383 | else | |
14384 | cat >>confdefs.h <<_ACEOF | |
14385 | #define HAVE_DECL_STRSTR 0 | |
42ecbf5e | 14386 | _ACEOF |
252b5132 | 14387 | |
252b5132 | 14388 | |
398ee8f1 SE |
14389 | fi |
14390 | echo "$as_me:$LINENO: checking whether sbrk is declared" >&5 | |
14391 | echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6 | |
14392 | if test "${ac_cv_have_decl_sbrk+set}" = set; then | |
42ecbf5e | 14393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 14394 | else |
42ecbf5e DJ |
14395 | cat >conftest.$ac_ext <<_ACEOF |
14396 | /* confdefs.h. */ | |
14397 | _ACEOF | |
14398 | cat confdefs.h >>conftest.$ac_ext | |
14399 | cat >>conftest.$ac_ext <<_ACEOF | |
14400 | /* end confdefs.h. */ | |
398ee8f1 | 14401 | $ac_includes_default |
42ecbf5e DJ |
14402 | int |
14403 | main () | |
14404 | { | |
398ee8f1 SE |
14405 | #ifndef sbrk |
14406 | char *p = (char *) sbrk; | |
14407 | #endif | |
14408 | ||
42ecbf5e DJ |
14409 | ; |
14410 | return 0; | |
14411 | } | |
14412 | _ACEOF | |
14413 | rm -f conftest.$ac_objext | |
14414 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14415 | (eval $ac_compile) 2>conftest.er1 | |
14416 | ac_status=$? | |
14417 | grep -v '^ *+' conftest.er1 >conftest.err | |
14418 | rm -f conftest.er1 | |
14419 | cat conftest.err >&5 | |
14420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14421 | (exit $ac_status); } && | |
7357c5b6 AM |
14422 | { ac_try='test -z "$ac_c_werror_flag" |
14423 | || test ! -s conftest.err' | |
42ecbf5e DJ |
14424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14425 | (eval $ac_try) 2>&5 | |
14426 | ac_status=$? | |
14427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14428 | (exit $ac_status); }; } && | |
14429 | { ac_try='test -s conftest.$ac_objext' | |
14430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14431 | (eval $ac_try) 2>&5 | |
14432 | ac_status=$? | |
14433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14434 | (exit $ac_status); }; }; then | |
398ee8f1 | 14435 | ac_cv_have_decl_sbrk=yes |
252b5132 | 14436 | else |
42ecbf5e DJ |
14437 | echo "$as_me: failed program was:" >&5 |
14438 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14439 | ||
398ee8f1 | 14440 | ac_cv_have_decl_sbrk=no |
252b5132 | 14441 | fi |
42ecbf5e | 14442 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 14443 | fi |
398ee8f1 SE |
14444 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5 |
14445 | echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6 | |
14446 | if test $ac_cv_have_decl_sbrk = yes; then | |
252b5132 | 14447 | |
398ee8f1 SE |
14448 | cat >>confdefs.h <<_ACEOF |
14449 | #define HAVE_DECL_SBRK 1 | |
14450 | _ACEOF | |
42ecbf5e | 14451 | |
398ee8f1 SE |
14452 | |
14453 | else | |
14454 | cat >>confdefs.h <<_ACEOF | |
14455 | #define HAVE_DECL_SBRK 0 | |
42ecbf5e | 14456 | _ACEOF |
252b5132 | 14457 | |
252b5132 | 14458 | |
398ee8f1 SE |
14459 | fi |
14460 | echo "$as_me:$LINENO: checking whether getenv is declared" >&5 | |
14461 | echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6 | |
14462 | if test "${ac_cv_have_decl_getenv+set}" = set; then | |
42ecbf5e | 14463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 14464 | else |
42ecbf5e DJ |
14465 | cat >conftest.$ac_ext <<_ACEOF |
14466 | /* confdefs.h. */ | |
14467 | _ACEOF | |
14468 | cat confdefs.h >>conftest.$ac_ext | |
14469 | cat >>conftest.$ac_ext <<_ACEOF | |
14470 | /* end confdefs.h. */ | |
398ee8f1 | 14471 | $ac_includes_default |
42ecbf5e DJ |
14472 | int |
14473 | main () | |
14474 | { | |
398ee8f1 SE |
14475 | #ifndef getenv |
14476 | char *p = (char *) getenv; | |
14477 | #endif | |
14478 | ||
42ecbf5e DJ |
14479 | ; |
14480 | return 0; | |
14481 | } | |
14482 | _ACEOF | |
14483 | rm -f conftest.$ac_objext | |
14484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14485 | (eval $ac_compile) 2>conftest.er1 | |
14486 | ac_status=$? | |
14487 | grep -v '^ *+' conftest.er1 >conftest.err | |
14488 | rm -f conftest.er1 | |
14489 | cat conftest.err >&5 | |
14490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14491 | (exit $ac_status); } && | |
7357c5b6 AM |
14492 | { ac_try='test -z "$ac_c_werror_flag" |
14493 | || test ! -s conftest.err' | |
42ecbf5e DJ |
14494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14495 | (eval $ac_try) 2>&5 | |
14496 | ac_status=$? | |
14497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14498 | (exit $ac_status); }; } && | |
14499 | { ac_try='test -s conftest.$ac_objext' | |
14500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14501 | (eval $ac_try) 2>&5 | |
14502 | ac_status=$? | |
14503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14504 | (exit $ac_status); }; }; then | |
398ee8f1 | 14505 | ac_cv_have_decl_getenv=yes |
252b5132 | 14506 | else |
42ecbf5e DJ |
14507 | echo "$as_me: failed program was:" >&5 |
14508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14509 | ||
398ee8f1 | 14510 | ac_cv_have_decl_getenv=no |
252b5132 | 14511 | fi |
42ecbf5e | 14512 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 14513 | fi |
398ee8f1 SE |
14514 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5 |
14515 | echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6 | |
14516 | if test $ac_cv_have_decl_getenv = yes; then | |
252b5132 | 14517 | |
398ee8f1 SE |
14518 | cat >>confdefs.h <<_ACEOF |
14519 | #define HAVE_DECL_GETENV 1 | |
14520 | _ACEOF | |
42ecbf5e | 14521 | |
398ee8f1 SE |
14522 | |
14523 | else | |
14524 | cat >>confdefs.h <<_ACEOF | |
14525 | #define HAVE_DECL_GETENV 0 | |
42ecbf5e | 14526 | _ACEOF |
252b5132 | 14527 | |
252b5132 | 14528 | |
398ee8f1 SE |
14529 | fi |
14530 | echo "$as_me:$LINENO: checking whether environ is declared" >&5 | |
14531 | echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6 | |
14532 | if test "${ac_cv_have_decl_environ+set}" = set; then | |
42ecbf5e | 14533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 14534 | else |
42ecbf5e DJ |
14535 | cat >conftest.$ac_ext <<_ACEOF |
14536 | /* confdefs.h. */ | |
14537 | _ACEOF | |
14538 | cat confdefs.h >>conftest.$ac_ext | |
14539 | cat >>conftest.$ac_ext <<_ACEOF | |
14540 | /* end confdefs.h. */ | |
398ee8f1 | 14541 | $ac_includes_default |
42ecbf5e DJ |
14542 | int |
14543 | main () | |
14544 | { | |
398ee8f1 SE |
14545 | #ifndef environ |
14546 | char *p = (char *) environ; | |
14547 | #endif | |
14548 | ||
42ecbf5e DJ |
14549 | ; |
14550 | return 0; | |
14551 | } | |
14552 | _ACEOF | |
14553 | rm -f conftest.$ac_objext | |
14554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14555 | (eval $ac_compile) 2>conftest.er1 | |
14556 | ac_status=$? | |
14557 | grep -v '^ *+' conftest.er1 >conftest.err | |
14558 | rm -f conftest.er1 | |
14559 | cat conftest.err >&5 | |
14560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14561 | (exit $ac_status); } && | |
7357c5b6 AM |
14562 | { ac_try='test -z "$ac_c_werror_flag" |
14563 | || test ! -s conftest.err' | |
42ecbf5e DJ |
14564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14565 | (eval $ac_try) 2>&5 | |
14566 | ac_status=$? | |
14567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14568 | (exit $ac_status); }; } && | |
14569 | { ac_try='test -s conftest.$ac_objext' | |
14570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14571 | (eval $ac_try) 2>&5 | |
14572 | ac_status=$? | |
14573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14574 | (exit $ac_status); }; }; then | |
398ee8f1 | 14575 | ac_cv_have_decl_environ=yes |
252b5132 | 14576 | else |
42ecbf5e DJ |
14577 | echo "$as_me: failed program was:" >&5 |
14578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14579 | ||
398ee8f1 | 14580 | ac_cv_have_decl_environ=no |
252b5132 | 14581 | fi |
42ecbf5e | 14582 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 14583 | fi |
398ee8f1 SE |
14584 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5 |
14585 | echo "${ECHO_T}$ac_cv_have_decl_environ" >&6 | |
14586 | if test $ac_cv_have_decl_environ = yes; then | |
252b5132 | 14587 | |
398ee8f1 SE |
14588 | cat >>confdefs.h <<_ACEOF |
14589 | #define HAVE_DECL_ENVIRON 1 | |
14590 | _ACEOF | |
42ecbf5e | 14591 | |
398ee8f1 SE |
14592 | |
14593 | else | |
14594 | cat >>confdefs.h <<_ACEOF | |
14595 | #define HAVE_DECL_ENVIRON 0 | |
42ecbf5e | 14596 | _ACEOF |
252b5132 | 14597 | |
252b5132 | 14598 | |
398ee8f1 | 14599 | fi |
b7d4af3a JW |
14600 | echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 |
14601 | echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6 | |
14602 | if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then | |
14603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14604 | else | |
14605 | cat >conftest.$ac_ext <<_ACEOF | |
14606 | /* confdefs.h. */ | |
14607 | _ACEOF | |
14608 | cat confdefs.h >>conftest.$ac_ext | |
14609 | cat >>conftest.$ac_ext <<_ACEOF | |
14610 | /* end confdefs.h. */ | |
14611 | $ac_includes_default | |
14612 | int | |
14613 | main () | |
14614 | { | |
14615 | #ifndef getc_unlocked | |
14616 | char *p = (char *) getc_unlocked; | |
14617 | #endif | |
14618 | ||
14619 | ; | |
14620 | return 0; | |
14621 | } | |
14622 | _ACEOF | |
14623 | rm -f conftest.$ac_objext | |
14624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14625 | (eval $ac_compile) 2>conftest.er1 | |
14626 | ac_status=$? | |
14627 | grep -v '^ *+' conftest.er1 >conftest.err | |
14628 | rm -f conftest.er1 | |
14629 | cat conftest.err >&5 | |
14630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14631 | (exit $ac_status); } && | |
7357c5b6 AM |
14632 | { ac_try='test -z "$ac_c_werror_flag" |
14633 | || test ! -s conftest.err' | |
b7d4af3a JW |
14634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14635 | (eval $ac_try) 2>&5 | |
14636 | ac_status=$? | |
14637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14638 | (exit $ac_status); }; } && | |
14639 | { ac_try='test -s conftest.$ac_objext' | |
14640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14641 | (eval $ac_try) 2>&5 | |
14642 | ac_status=$? | |
14643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14644 | (exit $ac_status); }; }; then | |
14645 | ac_cv_have_decl_getc_unlocked=yes | |
14646 | else | |
14647 | echo "$as_me: failed program was:" >&5 | |
14648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14649 | ||
14650 | ac_cv_have_decl_getc_unlocked=no | |
14651 | fi | |
14652 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14653 | fi | |
14654 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 | |
14655 | echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6 | |
14656 | if test $ac_cv_have_decl_getc_unlocked = yes; then | |
14657 | ||
14658 | cat >>confdefs.h <<_ACEOF | |
14659 | #define HAVE_DECL_GETC_UNLOCKED 1 | |
14660 | _ACEOF | |
14661 | ||
14662 | ||
14663 | else | |
14664 | cat >>confdefs.h <<_ACEOF | |
14665 | #define HAVE_DECL_GETC_UNLOCKED 0 | |
14666 | _ACEOF | |
14667 | ||
14668 | ||
db50c840 EB |
14669 | fi |
14670 | echo "$as_me:$LINENO: checking whether snprintf is declared" >&5 | |
14671 | echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6 | |
14672 | if test "${ac_cv_have_decl_snprintf+set}" = set; then | |
14673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14674 | else | |
14675 | cat >conftest.$ac_ext <<_ACEOF | |
14676 | /* confdefs.h. */ | |
14677 | _ACEOF | |
14678 | cat confdefs.h >>conftest.$ac_ext | |
14679 | cat >>conftest.$ac_ext <<_ACEOF | |
14680 | /* end confdefs.h. */ | |
14681 | $ac_includes_default | |
14682 | int | |
14683 | main () | |
14684 | { | |
14685 | #ifndef snprintf | |
14686 | char *p = (char *) snprintf; | |
14687 | #endif | |
14688 | ||
14689 | ; | |
14690 | return 0; | |
14691 | } | |
14692 | _ACEOF | |
14693 | rm -f conftest.$ac_objext | |
14694 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14695 | (eval $ac_compile) 2>conftest.er1 | |
14696 | ac_status=$? | |
14697 | grep -v '^ *+' conftest.er1 >conftest.err | |
14698 | rm -f conftest.er1 | |
14699 | cat conftest.err >&5 | |
14700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14701 | (exit $ac_status); } && | |
7357c5b6 AM |
14702 | { ac_try='test -z "$ac_c_werror_flag" |
14703 | || test ! -s conftest.err' | |
db50c840 EB |
14704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14705 | (eval $ac_try) 2>&5 | |
14706 | ac_status=$? | |
14707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14708 | (exit $ac_status); }; } && | |
14709 | { ac_try='test -s conftest.$ac_objext' | |
14710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14711 | (eval $ac_try) 2>&5 | |
14712 | ac_status=$? | |
14713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14714 | (exit $ac_status); }; }; then | |
14715 | ac_cv_have_decl_snprintf=yes | |
14716 | else | |
14717 | echo "$as_me: failed program was:" >&5 | |
14718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14719 | ||
14720 | ac_cv_have_decl_snprintf=no | |
14721 | fi | |
14722 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14723 | fi | |
14724 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5 | |
14725 | echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6 | |
14726 | if test $ac_cv_have_decl_snprintf = yes; then | |
14727 | ||
14728 | cat >>confdefs.h <<_ACEOF | |
14729 | #define HAVE_DECL_SNPRINTF 1 | |
14730 | _ACEOF | |
14731 | ||
14732 | ||
14733 | else | |
14734 | cat >>confdefs.h <<_ACEOF | |
14735 | #define HAVE_DECL_SNPRINTF 0 | |
14736 | _ACEOF | |
14737 | ||
14738 | ||
14739 | fi | |
14740 | echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5 | |
14741 | echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6 | |
14742 | if test "${ac_cv_have_decl_vsnprintf+set}" = set; then | |
14743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14744 | else | |
14745 | cat >conftest.$ac_ext <<_ACEOF | |
14746 | /* confdefs.h. */ | |
14747 | _ACEOF | |
14748 | cat confdefs.h >>conftest.$ac_ext | |
14749 | cat >>conftest.$ac_ext <<_ACEOF | |
14750 | /* end confdefs.h. */ | |
14751 | $ac_includes_default | |
14752 | int | |
14753 | main () | |
14754 | { | |
14755 | #ifndef vsnprintf | |
14756 | char *p = (char *) vsnprintf; | |
14757 | #endif | |
14758 | ||
14759 | ; | |
14760 | return 0; | |
14761 | } | |
14762 | _ACEOF | |
14763 | rm -f conftest.$ac_objext | |
14764 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14765 | (eval $ac_compile) 2>conftest.er1 | |
14766 | ac_status=$? | |
14767 | grep -v '^ *+' conftest.er1 >conftest.err | |
14768 | rm -f conftest.er1 | |
14769 | cat conftest.err >&5 | |
14770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14771 | (exit $ac_status); } && | |
7357c5b6 AM |
14772 | { ac_try='test -z "$ac_c_werror_flag" |
14773 | || test ! -s conftest.err' | |
db50c840 EB |
14774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14775 | (eval $ac_try) 2>&5 | |
14776 | ac_status=$? | |
14777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14778 | (exit $ac_status); }; } && | |
14779 | { ac_try='test -s conftest.$ac_objext' | |
14780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14781 | (eval $ac_try) 2>&5 | |
14782 | ac_status=$? | |
14783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14784 | (exit $ac_status); }; }; then | |
14785 | ac_cv_have_decl_vsnprintf=yes | |
14786 | else | |
14787 | echo "$as_me: failed program was:" >&5 | |
14788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14789 | ||
14790 | ac_cv_have_decl_vsnprintf=no | |
14791 | fi | |
14792 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14793 | fi | |
14794 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5 | |
14795 | echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6 | |
14796 | if test $ac_cv_have_decl_vsnprintf = yes; then | |
14797 | ||
14798 | cat >>confdefs.h <<_ACEOF | |
14799 | #define HAVE_DECL_VSNPRINTF 1 | |
14800 | _ACEOF | |
14801 | ||
14802 | ||
14803 | else | |
14804 | cat >>confdefs.h <<_ACEOF | |
14805 | #define HAVE_DECL_VSNPRINTF 0 | |
14806 | _ACEOF | |
14807 | ||
14808 | ||
b7d4af3a JW |
14809 | fi |
14810 | ||
14811 | ||
252b5132 | 14812 | |
1b315056 CS |
14813 | # Link in zlib if we can. This allows us to read compressed debug |
14814 | # sections. This is used only by readelf.c (objdump uses bfd for | |
14815 | # reading compressed sections). | |
14816 | echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5 | |
14817 | echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6 | |
14818 | if test "${ac_cv_search_zlibVersion+set}" = set; then | |
14819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14820 | else | |
14821 | ac_func_search_save_LIBS=$LIBS | |
14822 | ac_cv_search_zlibVersion=no | |
14823 | cat >conftest.$ac_ext <<_ACEOF | |
14824 | /* confdefs.h. */ | |
14825 | _ACEOF | |
14826 | cat confdefs.h >>conftest.$ac_ext | |
14827 | cat >>conftest.$ac_ext <<_ACEOF | |
14828 | /* end confdefs.h. */ | |
14829 | ||
14830 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14831 | #ifdef __cplusplus | |
14832 | extern "C" | |
14833 | #endif | |
14834 | /* We use char because int might match the return type of a gcc2 | |
14835 | builtin and then its argument prototype would still apply. */ | |
14836 | char zlibVersion (); | |
14837 | int | |
14838 | main () | |
14839 | { | |
14840 | zlibVersion (); | |
14841 | ; | |
14842 | return 0; | |
14843 | } | |
14844 | _ACEOF | |
14845 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14846 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14847 | (eval $ac_link) 2>conftest.er1 | |
14848 | ac_status=$? | |
14849 | grep -v '^ *+' conftest.er1 >conftest.err | |
14850 | rm -f conftest.er1 | |
14851 | cat conftest.err >&5 | |
14852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14853 | (exit $ac_status); } && | |
7357c5b6 AM |
14854 | { ac_try='test -z "$ac_c_werror_flag" |
14855 | || test ! -s conftest.err' | |
1b315056 CS |
14856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14857 | (eval $ac_try) 2>&5 | |
14858 | ac_status=$? | |
14859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14860 | (exit $ac_status); }; } && | |
14861 | { ac_try='test -s conftest$ac_exeext' | |
14862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14863 | (eval $ac_try) 2>&5 | |
14864 | ac_status=$? | |
14865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14866 | (exit $ac_status); }; }; then | |
14867 | ac_cv_search_zlibVersion="none required" | |
14868 | else | |
14869 | echo "$as_me: failed program was:" >&5 | |
14870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14871 | ||
14872 | fi | |
14873 | rm -f conftest.err conftest.$ac_objext \ | |
14874 | conftest$ac_exeext conftest.$ac_ext | |
14875 | if test "$ac_cv_search_zlibVersion" = no; then | |
14876 | for ac_lib in z; do | |
14877 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14878 | cat >conftest.$ac_ext <<_ACEOF | |
14879 | /* confdefs.h. */ | |
14880 | _ACEOF | |
14881 | cat confdefs.h >>conftest.$ac_ext | |
14882 | cat >>conftest.$ac_ext <<_ACEOF | |
14883 | /* end confdefs.h. */ | |
14884 | ||
14885 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14886 | #ifdef __cplusplus | |
14887 | extern "C" | |
14888 | #endif | |
14889 | /* We use char because int might match the return type of a gcc2 | |
14890 | builtin and then its argument prototype would still apply. */ | |
14891 | char zlibVersion (); | |
14892 | int | |
14893 | main () | |
14894 | { | |
14895 | zlibVersion (); | |
14896 | ; | |
14897 | return 0; | |
14898 | } | |
14899 | _ACEOF | |
14900 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14901 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14902 | (eval $ac_link) 2>conftest.er1 | |
14903 | ac_status=$? | |
14904 | grep -v '^ *+' conftest.er1 >conftest.err | |
14905 | rm -f conftest.er1 | |
14906 | cat conftest.err >&5 | |
14907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14908 | (exit $ac_status); } && | |
7357c5b6 AM |
14909 | { ac_try='test -z "$ac_c_werror_flag" |
14910 | || test ! -s conftest.err' | |
1b315056 CS |
14911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14912 | (eval $ac_try) 2>&5 | |
14913 | ac_status=$? | |
14914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14915 | (exit $ac_status); }; } && | |
14916 | { ac_try='test -s conftest$ac_exeext' | |
14917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14918 | (eval $ac_try) 2>&5 | |
14919 | ac_status=$? | |
14920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14921 | (exit $ac_status); }; }; then | |
14922 | ac_cv_search_zlibVersion="-l$ac_lib" | |
14923 | break | |
14924 | else | |
14925 | echo "$as_me: failed program was:" >&5 | |
14926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14927 | ||
14928 | fi | |
14929 | rm -f conftest.err conftest.$ac_objext \ | |
14930 | conftest$ac_exeext conftest.$ac_ext | |
14931 | done | |
14932 | fi | |
14933 | LIBS=$ac_func_search_save_LIBS | |
14934 | fi | |
14935 | echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5 | |
14936 | echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6 | |
14937 | if test "$ac_cv_search_zlibVersion" != no; then | |
14938 | test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS" | |
14939 | ||
14940 | for ac_header in zlib.h | |
14941 | do | |
14942 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14943 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14944 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14945 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14946 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14948 | fi | |
14949 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14950 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14951 | else | |
14952 | # Is the header compilable? | |
14953 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14954 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14955 | cat >conftest.$ac_ext <<_ACEOF | |
14956 | /* confdefs.h. */ | |
14957 | _ACEOF | |
14958 | cat confdefs.h >>conftest.$ac_ext | |
14959 | cat >>conftest.$ac_ext <<_ACEOF | |
14960 | /* end confdefs.h. */ | |
14961 | $ac_includes_default | |
14962 | #include <$ac_header> | |
14963 | _ACEOF | |
14964 | rm -f conftest.$ac_objext | |
14965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14966 | (eval $ac_compile) 2>conftest.er1 | |
14967 | ac_status=$? | |
14968 | grep -v '^ *+' conftest.er1 >conftest.err | |
14969 | rm -f conftest.er1 | |
14970 | cat conftest.err >&5 | |
14971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14972 | (exit $ac_status); } && | |
7357c5b6 AM |
14973 | { ac_try='test -z "$ac_c_werror_flag" |
14974 | || test ! -s conftest.err' | |
1b315056 CS |
14975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14976 | (eval $ac_try) 2>&5 | |
14977 | ac_status=$? | |
14978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14979 | (exit $ac_status); }; } && | |
14980 | { ac_try='test -s conftest.$ac_objext' | |
14981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14982 | (eval $ac_try) 2>&5 | |
14983 | ac_status=$? | |
14984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14985 | (exit $ac_status); }; }; then | |
14986 | ac_header_compiler=yes | |
14987 | else | |
14988 | echo "$as_me: failed program was:" >&5 | |
14989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14990 | ||
14991 | ac_header_compiler=no | |
14992 | fi | |
14993 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14994 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14995 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14996 | ||
14997 | # Is the header present? | |
14998 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14999 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15000 | cat >conftest.$ac_ext <<_ACEOF | |
15001 | /* confdefs.h. */ | |
15002 | _ACEOF | |
15003 | cat confdefs.h >>conftest.$ac_ext | |
15004 | cat >>conftest.$ac_ext <<_ACEOF | |
15005 | /* end confdefs.h. */ | |
15006 | #include <$ac_header> | |
15007 | _ACEOF | |
15008 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15009 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15010 | ac_status=$? | |
15011 | grep -v '^ *+' conftest.er1 >conftest.err | |
15012 | rm -f conftest.er1 | |
15013 | cat conftest.err >&5 | |
15014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15015 | (exit $ac_status); } >/dev/null; then | |
15016 | if test -s conftest.err; then | |
15017 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15018 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
15019 | else | |
15020 | ac_cpp_err= | |
15021 | fi | |
15022 | else | |
15023 | ac_cpp_err=yes | |
15024 | fi | |
15025 | if test -z "$ac_cpp_err"; then | |
15026 | ac_header_preproc=yes | |
15027 | else | |
15028 | echo "$as_me: failed program was:" >&5 | |
15029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15030 | ||
15031 | ac_header_preproc=no | |
15032 | fi | |
15033 | rm -f conftest.err conftest.$ac_ext | |
15034 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15035 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15036 | ||
15037 | # So? What about this header? | |
15038 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15039 | yes:no: ) | |
15040 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15041 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15042 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15043 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15044 | ac_header_preproc=yes | |
15045 | ;; | |
15046 | no:yes:* ) | |
15047 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15048 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15049 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15050 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15051 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15052 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15053 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15054 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15055 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15056 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15057 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15058 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
15059 | ( | |
15060 | cat <<\_ASBOX | |
15061 | ## ------------------------------------------ ## | |
15062 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15063 | ## ------------------------------------------ ## | |
15064 | _ASBOX | |
15065 | ) | | |
15066 | sed "s/^/$as_me: WARNING: /" >&2 | |
15067 | ;; | |
15068 | esac | |
15069 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15070 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15071 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15073 | else | |
15074 | eval "$as_ac_Header=\$ac_header_preproc" | |
15075 | fi | |
15076 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15077 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15078 | ||
15079 | fi | |
15080 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15081 | cat >>confdefs.h <<_ACEOF | |
15082 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15083 | _ACEOF | |
15084 | ||
15085 | fi | |
15086 | ||
15087 | done | |
15088 | ||
15089 | fi | |
15090 | ||
15091 | ||
252b5132 RH |
15092 | |
15093 | case "${host}" in | |
8a965946 | 15094 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) |
42ecbf5e DJ |
15095 | |
15096 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 15097 | #define USE_BINARY_FOPEN 1 |
42ecbf5e | 15098 | _ACEOF |
252b5132 RH |
15099 | ;; |
15100 | esac | |
15101 | ||
15102 | # target-specific stuff: | |
15103 | ||
15104 | # Canonicalize the secondary target names. | |
15105 | if test -n "$enable_targets"; then | |
15106 | for targ in `echo $enable_targets | sed 's/,/ /g'` | |
15107 | do | |
6d83c84b | 15108 | result=`$ac_config_sub $targ 2>/dev/null` |
252b5132 RH |
15109 | if test -n "$result"; then |
15110 | canon_targets="$canon_targets $result" | |
15111 | else | |
15112 | # Allow targets that config.sub doesn't recognize, like "all". | |
15113 | canon_targets="$canon_targets $targ" | |
15114 | fi | |
15115 | done | |
15116 | fi | |
15117 | ||
5ba684e2 NC |
15118 | if test "${ac_cv_header_iconv_h+set}" = set; then |
15119 | echo "$as_me:$LINENO: checking for iconv.h" >&5 | |
15120 | echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6 | |
15121 | if test "${ac_cv_header_iconv_h+set}" = set; then | |
15122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15123 | fi | |
15124 | echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5 | |
15125 | echo "${ECHO_T}$ac_cv_header_iconv_h" >&6 | |
15126 | else | |
15127 | # Is the header compilable? | |
15128 | echo "$as_me:$LINENO: checking iconv.h usability" >&5 | |
15129 | echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6 | |
15130 | cat >conftest.$ac_ext <<_ACEOF | |
15131 | /* confdefs.h. */ | |
15132 | _ACEOF | |
15133 | cat confdefs.h >>conftest.$ac_ext | |
15134 | cat >>conftest.$ac_ext <<_ACEOF | |
15135 | /* end confdefs.h. */ | |
15136 | $ac_includes_default | |
15137 | #include <iconv.h> | |
15138 | _ACEOF | |
15139 | rm -f conftest.$ac_objext | |
15140 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15141 | (eval $ac_compile) 2>conftest.er1 | |
15142 | ac_status=$? | |
15143 | grep -v '^ *+' conftest.er1 >conftest.err | |
15144 | rm -f conftest.er1 | |
15145 | cat conftest.err >&5 | |
15146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15147 | (exit $ac_status); } && | |
7357c5b6 AM |
15148 | { ac_try='test -z "$ac_c_werror_flag" |
15149 | || test ! -s conftest.err' | |
5ba684e2 NC |
15150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15151 | (eval $ac_try) 2>&5 | |
15152 | ac_status=$? | |
15153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15154 | (exit $ac_status); }; } && | |
15155 | { ac_try='test -s conftest.$ac_objext' | |
15156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15157 | (eval $ac_try) 2>&5 | |
15158 | ac_status=$? | |
15159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15160 | (exit $ac_status); }; }; then | |
15161 | ac_header_compiler=yes | |
15162 | else | |
15163 | echo "$as_me: failed program was:" >&5 | |
15164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15165 | ||
15166 | ac_header_compiler=no | |
15167 | fi | |
15168 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15169 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15170 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15171 | ||
15172 | # Is the header present? | |
15173 | echo "$as_me:$LINENO: checking iconv.h presence" >&5 | |
15174 | echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6 | |
15175 | cat >conftest.$ac_ext <<_ACEOF | |
15176 | /* confdefs.h. */ | |
15177 | _ACEOF | |
15178 | cat confdefs.h >>conftest.$ac_ext | |
15179 | cat >>conftest.$ac_ext <<_ACEOF | |
15180 | /* end confdefs.h. */ | |
15181 | #include <iconv.h> | |
15182 | _ACEOF | |
15183 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15184 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15185 | ac_status=$? | |
15186 | grep -v '^ *+' conftest.er1 >conftest.err | |
15187 | rm -f conftest.er1 | |
15188 | cat conftest.err >&5 | |
15189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15190 | (exit $ac_status); } >/dev/null; then | |
15191 | if test -s conftest.err; then | |
15192 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15193 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
15194 | else | |
15195 | ac_cpp_err= | |
15196 | fi | |
15197 | else | |
15198 | ac_cpp_err=yes | |
15199 | fi | |
15200 | if test -z "$ac_cpp_err"; then | |
15201 | ac_header_preproc=yes | |
15202 | else | |
15203 | echo "$as_me: failed program was:" >&5 | |
15204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15205 | ||
15206 | ac_header_preproc=no | |
15207 | fi | |
15208 | rm -f conftest.err conftest.$ac_ext | |
15209 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15210 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15211 | ||
15212 | # So? What about this header? | |
15213 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15214 | yes:no: ) | |
15215 | { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15216 | echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15217 | { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5 | |
15218 | echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;} | |
15219 | ac_header_preproc=yes | |
15220 | ;; | |
15221 | no:yes:* ) | |
15222 | { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5 | |
15223 | echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;} | |
15224 | { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5 | |
15225 | echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;} | |
15226 | { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5 | |
15227 | echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;} | |
15228 | { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5 | |
15229 | echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
15230 | { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5 | |
15231 | echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;} | |
15232 | { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5 | |
15233 | echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;} | |
15234 | ( | |
15235 | cat <<\_ASBOX | |
15236 | ## ------------------------------------------ ## | |
15237 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15238 | ## ------------------------------------------ ## | |
15239 | _ASBOX | |
15240 | ) | | |
15241 | sed "s/^/$as_me: WARNING: /" >&2 | |
15242 | ;; | |
15243 | esac | |
15244 | echo "$as_me:$LINENO: checking for iconv.h" >&5 | |
15245 | echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6 | |
15246 | if test "${ac_cv_header_iconv_h+set}" = set; then | |
15247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15248 | else | |
15249 | ac_cv_header_iconv_h=$ac_header_preproc | |
15250 | fi | |
15251 | echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5 | |
15252 | echo "${ECHO_T}$ac_cv_header_iconv_h" >&6 | |
15253 | ||
15254 | fi | |
15255 | ||
15256 | ||
15257 | ||
15258 | if test "X$prefix" = "XNONE"; then | |
15259 | acl_final_prefix="$ac_default_prefix" | |
15260 | else | |
15261 | acl_final_prefix="$prefix" | |
15262 | fi | |
15263 | if test "X$exec_prefix" = "XNONE"; then | |
15264 | acl_final_exec_prefix='${prefix}' | |
15265 | else | |
15266 | acl_final_exec_prefix="$exec_prefix" | |
15267 | fi | |
15268 | acl_save_prefix="$prefix" | |
15269 | prefix="$acl_final_prefix" | |
15270 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
15271 | prefix="$acl_save_prefix" | |
15272 | ||
15273 | ||
15274 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
15275 | if test "${with_gnu_ld+set}" = set; then | |
15276 | withval="$with_gnu_ld" | |
15277 | test "$withval" = no || with_gnu_ld=yes | |
15278 | else | |
15279 | with_gnu_ld=no | |
15280 | fi; | |
15281 | # Prepare PATH_SEPARATOR. | |
15282 | # The user is always right. | |
15283 | if test "${PATH_SEPARATOR+set}" != set; then | |
15284 | echo "#! /bin/sh" >conf$$.sh | |
15285 | echo "exit 0" >>conf$$.sh | |
15286 | chmod +x conf$$.sh | |
15287 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
15288 | PATH_SEPARATOR=';' | |
15289 | else | |
15290 | PATH_SEPARATOR=: | |
15291 | fi | |
15292 | rm -f conf$$.sh | |
15293 | fi | |
15294 | ac_prog=ld | |
15295 | if test "$GCC" = yes; then | |
15296 | # Check if gcc -print-prog-name=ld gives a path. | |
15297 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 | |
15298 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
15299 | case $host in | |
15300 | *-*-mingw*) | |
15301 | # gcc leaves a trailing carriage return which upsets mingw | |
15302 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
15303 | *) | |
15304 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
15305 | esac | |
15306 | case $ac_prog in | |
15307 | # Accept absolute paths. | |
15308 | [\\/]* | [A-Za-z]:[\\/]*) | |
15309 | re_direlt='/[^/][^/]*/\.\./' | |
15310 | # Canonicalize the path of ld | |
15311 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
15312 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
15313 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
15314 | done | |
15315 | test -z "$LD" && LD="$ac_prog" | |
15316 | ;; | |
15317 | "") | |
15318 | # If it fails, then pretend we aren't using GCC. | |
15319 | ac_prog=ld | |
15320 | ;; | |
15321 | *) | |
15322 | # If it is relative, then search for the first ld in PATH. | |
15323 | with_gnu_ld=unknown | |
15324 | ;; | |
15325 | esac | |
15326 | elif test "$with_gnu_ld" = yes; then | |
15327 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
15328 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
15329 | else | |
15330 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
15331 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
15332 | fi | |
15333 | if test "${acl_cv_path_LD+set}" = set; then | |
15334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15335 | else | |
15336 | if test -z "$LD"; then | |
15337 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
15338 | for ac_dir in $PATH; do | |
15339 | test -z "$ac_dir" && ac_dir=. | |
15340 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
15341 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
15342 | # Check to see if the program is GNU ld. I'd rather use --version, | |
15343 | # but apparently some GNU ld's only accept -v. | |
15344 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
15345 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
15346 | test "$with_gnu_ld" != no && break | |
15347 | else | |
15348 | test "$with_gnu_ld" != yes && break | |
15349 | fi | |
15350 | fi | |
15351 | done | |
15352 | IFS="$ac_save_ifs" | |
15353 | else | |
15354 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
15355 | fi | |
15356 | fi | |
15357 | ||
15358 | LD="$acl_cv_path_LD" | |
15359 | if test -n "$LD"; then | |
15360 | echo "$as_me:$LINENO: result: $LD" >&5 | |
15361 | echo "${ECHO_T}$LD" >&6 | |
15362 | else | |
15363 | echo "$as_me:$LINENO: result: no" >&5 | |
15364 | echo "${ECHO_T}no" >&6 | |
15365 | fi | |
15366 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
15367 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
15368 | { (exit 1); exit 1; }; } | |
15369 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
15370 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
15371 | if test "${acl_cv_prog_gnu_ld+set}" = set; then | |
15372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15373 | else | |
15374 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
15375 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
15376 | acl_cv_prog_gnu_ld=yes | |
15377 | else | |
15378 | acl_cv_prog_gnu_ld=no | |
15379 | fi | |
15380 | fi | |
15381 | echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 | |
15382 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 | |
15383 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
15384 | ||
15385 | ||
15386 | ||
15387 | echo "$as_me:$LINENO: checking for shared library run path origin" >&5 | |
15388 | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 | |
15389 | if test "${acl_cv_rpath+set}" = set; then | |
15390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15391 | else | |
15392 | ||
15393 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
15394 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
15395 | . ./conftest.sh | |
15396 | rm -f ./conftest.sh | |
15397 | acl_cv_rpath=done | |
15398 | ||
15399 | fi | |
15400 | echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 | |
15401 | echo "${ECHO_T}$acl_cv_rpath" >&6 | |
15402 | wl="$acl_cv_wl" | |
15403 | libext="$acl_cv_libext" | |
15404 | shlibext="$acl_cv_shlibext" | |
15405 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
15406 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
15407 | hardcode_direct="$acl_cv_hardcode_direct" | |
15408 | hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
15409 | # Check whether --enable-rpath or --disable-rpath was given. | |
15410 | if test "${enable_rpath+set}" = set; then | |
15411 | enableval="$enable_rpath" | |
15412 | : | |
15413 | else | |
15414 | enable_rpath=yes | |
15415 | fi; | |
15416 | ||
15417 | ||
15418 | ||
15419 | ||
15420 | ||
15421 | ||
15422 | ||
15423 | use_additional=yes | |
15424 | ||
15425 | acl_save_prefix="$prefix" | |
15426 | prefix="$acl_final_prefix" | |
15427 | acl_save_exec_prefix="$exec_prefix" | |
15428 | exec_prefix="$acl_final_exec_prefix" | |
15429 | ||
15430 | eval additional_includedir=\"$includedir\" | |
15431 | eval additional_libdir=\"$libdir\" | |
15432 | ||
15433 | exec_prefix="$acl_save_exec_prefix" | |
15434 | prefix="$acl_save_prefix" | |
15435 | ||
15436 | ||
15437 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
15438 | if test "${with_libiconv_prefix+set}" = set; then | |
15439 | withval="$with_libiconv_prefix" | |
15440 | ||
15441 | if test "X$withval" = "Xno"; then | |
15442 | use_additional=no | |
15443 | else | |
15444 | if test "X$withval" = "X"; then | |
15445 | ||
15446 | acl_save_prefix="$prefix" | |
15447 | prefix="$acl_final_prefix" | |
15448 | acl_save_exec_prefix="$exec_prefix" | |
15449 | exec_prefix="$acl_final_exec_prefix" | |
15450 | ||
15451 | eval additional_includedir=\"$includedir\" | |
15452 | eval additional_libdir=\"$libdir\" | |
15453 | ||
15454 | exec_prefix="$acl_save_exec_prefix" | |
15455 | prefix="$acl_save_prefix" | |
15456 | ||
15457 | else | |
15458 | additional_includedir="$withval/include" | |
15459 | additional_libdir="$withval/lib" | |
15460 | fi | |
15461 | fi | |
15462 | ||
15463 | fi; | |
15464 | LIBICONV= | |
15465 | LTLIBICONV= | |
15466 | INCICONV= | |
15467 | rpathdirs= | |
15468 | ltrpathdirs= | |
15469 | names_already_handled= | |
15470 | names_next_round='iconv ' | |
15471 | while test -n "$names_next_round"; do | |
15472 | names_this_round="$names_next_round" | |
15473 | names_next_round= | |
15474 | for name in $names_this_round; do | |
15475 | already_handled= | |
15476 | for n in $names_already_handled; do | |
15477 | if test "$n" = "$name"; then | |
15478 | already_handled=yes | |
15479 | break | |
15480 | fi | |
15481 | done | |
15482 | if test -z "$already_handled"; then | |
15483 | names_already_handled="$names_already_handled $name" | |
15484 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
15485 | eval value=\"\$HAVE_LIB$uppername\" | |
15486 | if test -n "$value"; then | |
15487 | if test "$value" = yes; then | |
15488 | eval value=\"\$LIB$uppername\" | |
15489 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | |
15490 | eval value=\"\$LTLIB$uppername\" | |
15491 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | |
15492 | else | |
15493 | : | |
15494 | fi | |
15495 | else | |
15496 | found_dir= | |
15497 | found_la= | |
15498 | found_so= | |
15499 | found_a= | |
15500 | if test $use_additional = yes; then | |
15501 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
15502 | found_dir="$additional_libdir" | |
15503 | found_so="$additional_libdir/lib$name.$shlibext" | |
15504 | if test -f "$additional_libdir/lib$name.la"; then | |
15505 | found_la="$additional_libdir/lib$name.la" | |
15506 | fi | |
15507 | else | |
15508 | if test -f "$additional_libdir/lib$name.$libext"; then | |
15509 | found_dir="$additional_libdir" | |
15510 | found_a="$additional_libdir/lib$name.$libext" | |
15511 | if test -f "$additional_libdir/lib$name.la"; then | |
15512 | found_la="$additional_libdir/lib$name.la" | |
15513 | fi | |
15514 | fi | |
15515 | fi | |
15516 | fi | |
15517 | if test "X$found_dir" = "X"; then | |
15518 | for x in $LDFLAGS $LTLIBICONV; do | |
15519 | ||
15520 | acl_save_prefix="$prefix" | |
15521 | prefix="$acl_final_prefix" | |
15522 | acl_save_exec_prefix="$exec_prefix" | |
15523 | exec_prefix="$acl_final_exec_prefix" | |
15524 | eval x=\"$x\" | |
15525 | exec_prefix="$acl_save_exec_prefix" | |
15526 | prefix="$acl_save_prefix" | |
15527 | ||
15528 | case "$x" in | |
15529 | -L*) | |
15530 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
15531 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
15532 | found_dir="$dir" | |
15533 | found_so="$dir/lib$name.$shlibext" | |
15534 | if test -f "$dir/lib$name.la"; then | |
15535 | found_la="$dir/lib$name.la" | |
15536 | fi | |
15537 | else | |
15538 | if test -f "$dir/lib$name.$libext"; then | |
15539 | found_dir="$dir" | |
15540 | found_a="$dir/lib$name.$libext" | |
15541 | if test -f "$dir/lib$name.la"; then | |
15542 | found_la="$dir/lib$name.la" | |
15543 | fi | |
15544 | fi | |
15545 | fi | |
15546 | ;; | |
15547 | esac | |
15548 | if test "X$found_dir" != "X"; then | |
15549 | break | |
15550 | fi | |
15551 | done | |
15552 | fi | |
15553 | if test "X$found_dir" != "X"; then | |
15554 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | |
15555 | if test "X$found_so" != "X"; then | |
15556 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
15557 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
15558 | else | |
15559 | haveit= | |
15560 | for x in $ltrpathdirs; do | |
15561 | if test "X$x" = "X$found_dir"; then | |
15562 | haveit=yes | |
15563 | break | |
15564 | fi | |
15565 | done | |
15566 | if test -z "$haveit"; then | |
15567 | ltrpathdirs="$ltrpathdirs $found_dir" | |
15568 | fi | |
15569 | if test "$hardcode_direct" = yes; then | |
15570 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
15571 | else | |
15572 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
15573 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
15574 | haveit= | |
15575 | for x in $rpathdirs; do | |
15576 | if test "X$x" = "X$found_dir"; then | |
15577 | haveit=yes | |
15578 | break | |
15579 | fi | |
15580 | done | |
15581 | if test -z "$haveit"; then | |
15582 | rpathdirs="$rpathdirs $found_dir" | |
15583 | fi | |
15584 | else | |
15585 | haveit= | |
15586 | for x in $LDFLAGS $LIBICONV; do | |
15587 | ||
15588 | acl_save_prefix="$prefix" | |
15589 | prefix="$acl_final_prefix" | |
15590 | acl_save_exec_prefix="$exec_prefix" | |
15591 | exec_prefix="$acl_final_exec_prefix" | |
15592 | eval x=\"$x\" | |
15593 | exec_prefix="$acl_save_exec_prefix" | |
15594 | prefix="$acl_save_prefix" | |
15595 | ||
15596 | if test "X$x" = "X-L$found_dir"; then | |
15597 | haveit=yes | |
15598 | break | |
15599 | fi | |
15600 | done | |
15601 | if test -z "$haveit"; then | |
15602 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | |
15603 | fi | |
15604 | if test "$hardcode_minus_L" != no; then | |
15605 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | |
15606 | else | |
15607 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
15608 | fi | |
15609 | fi | |
15610 | fi | |
15611 | fi | |
15612 | else | |
15613 | if test "X$found_a" != "X"; then | |
15614 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | |
15615 | else | |
15616 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | |
15617 | fi | |
15618 | fi | |
15619 | additional_includedir= | |
15620 | case "$found_dir" in | |
15621 | */lib | */lib/) | |
15622 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
15623 | additional_includedir="$basedir/include" | |
15624 | ;; | |
15625 | esac | |
15626 | if test "X$additional_includedir" != "X"; then | |
15627 | if test "X$additional_includedir" != "X/usr/include"; then | |
15628 | haveit= | |
15629 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
15630 | if test -n "$GCC"; then | |
15631 | case $host_os in | |
15632 | linux*) haveit=yes;; | |
15633 | esac | |
15634 | fi | |
15635 | fi | |
15636 | if test -z "$haveit"; then | |
15637 | for x in $CPPFLAGS $INCICONV; do | |
15638 | ||
15639 | acl_save_prefix="$prefix" | |
15640 | prefix="$acl_final_prefix" | |
15641 | acl_save_exec_prefix="$exec_prefix" | |
15642 | exec_prefix="$acl_final_exec_prefix" | |
15643 | eval x=\"$x\" | |
15644 | exec_prefix="$acl_save_exec_prefix" | |
15645 | prefix="$acl_save_prefix" | |
15646 | ||
15647 | if test "X$x" = "X-I$additional_includedir"; then | |
15648 | haveit=yes | |
15649 | break | |
15650 | fi | |
15651 | done | |
15652 | if test -z "$haveit"; then | |
15653 | if test -d "$additional_includedir"; then | |
15654 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | |
15655 | fi | |
15656 | fi | |
15657 | fi | |
15658 | fi | |
15659 | fi | |
15660 | if test -n "$found_la"; then | |
15661 | save_libdir="$libdir" | |
15662 | case "$found_la" in | |
15663 | */* | *\\*) . "$found_la" ;; | |
15664 | *) . "./$found_la" ;; | |
15665 | esac | |
15666 | libdir="$save_libdir" | |
15667 | for dep in $dependency_libs; do | |
15668 | case "$dep" in | |
15669 | -L*) | |
15670 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
15671 | if test "X$additional_libdir" != "X/usr/lib"; then | |
15672 | haveit= | |
15673 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
15674 | if test -n "$GCC"; then | |
15675 | case $host_os in | |
15676 | linux*) haveit=yes;; | |
15677 | esac | |
15678 | fi | |
15679 | fi | |
15680 | if test -z "$haveit"; then | |
15681 | haveit= | |
15682 | for x in $LDFLAGS $LIBICONV; do | |
15683 | ||
15684 | acl_save_prefix="$prefix" | |
15685 | prefix="$acl_final_prefix" | |
15686 | acl_save_exec_prefix="$exec_prefix" | |
15687 | exec_prefix="$acl_final_exec_prefix" | |
15688 | eval x=\"$x\" | |
15689 | exec_prefix="$acl_save_exec_prefix" | |
15690 | prefix="$acl_save_prefix" | |
15691 | ||
15692 | if test "X$x" = "X-L$additional_libdir"; then | |
15693 | haveit=yes | |
15694 | break | |
15695 | fi | |
15696 | done | |
15697 | if test -z "$haveit"; then | |
15698 | if test -d "$additional_libdir"; then | |
15699 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | |
15700 | fi | |
15701 | fi | |
15702 | haveit= | |
15703 | for x in $LDFLAGS $LTLIBICONV; do | |
15704 | ||
15705 | acl_save_prefix="$prefix" | |
15706 | prefix="$acl_final_prefix" | |
15707 | acl_save_exec_prefix="$exec_prefix" | |
15708 | exec_prefix="$acl_final_exec_prefix" | |
15709 | eval x=\"$x\" | |
15710 | exec_prefix="$acl_save_exec_prefix" | |
15711 | prefix="$acl_save_prefix" | |
15712 | ||
15713 | if test "X$x" = "X-L$additional_libdir"; then | |
15714 | haveit=yes | |
15715 | break | |
15716 | fi | |
15717 | done | |
15718 | if test -z "$haveit"; then | |
15719 | if test -d "$additional_libdir"; then | |
15720 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | |
15721 | fi | |
15722 | fi | |
15723 | fi | |
15724 | fi | |
15725 | ;; | |
15726 | -R*) | |
15727 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
15728 | if test "$enable_rpath" != no; then | |
15729 | haveit= | |
15730 | for x in $rpathdirs; do | |
15731 | if test "X$x" = "X$dir"; then | |
15732 | haveit=yes | |
15733 | break | |
15734 | fi | |
15735 | done | |
15736 | if test -z "$haveit"; then | |
15737 | rpathdirs="$rpathdirs $dir" | |
15738 | fi | |
15739 | haveit= | |
15740 | for x in $ltrpathdirs; do | |
15741 | if test "X$x" = "X$dir"; then | |
15742 | haveit=yes | |
15743 | break | |
15744 | fi | |
15745 | done | |
15746 | if test -z "$haveit"; then | |
15747 | ltrpathdirs="$ltrpathdirs $dir" | |
15748 | fi | |
15749 | fi | |
15750 | ;; | |
15751 | -l*) | |
15752 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
15753 | ;; | |
15754 | *.la) | |
15755 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
15756 | ;; | |
15757 | *) | |
15758 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | |
15759 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | |
15760 | ;; | |
15761 | esac | |
15762 | done | |
15763 | fi | |
15764 | else | |
15765 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | |
15766 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | |
15767 | fi | |
15768 | fi | |
15769 | fi | |
15770 | done | |
15771 | done | |
15772 | if test "X$rpathdirs" != "X"; then | |
15773 | if test -n "$hardcode_libdir_separator"; then | |
15774 | alldirs= | |
15775 | for found_dir in $rpathdirs; do | |
15776 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
15777 | done | |
15778 | acl_save_libdir="$libdir" | |
15779 | libdir="$alldirs" | |
15780 | eval flag=\"$hardcode_libdir_flag_spec\" | |
15781 | libdir="$acl_save_libdir" | |
15782 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
15783 | else | |
15784 | for found_dir in $rpathdirs; do | |
15785 | acl_save_libdir="$libdir" | |
15786 | libdir="$found_dir" | |
15787 | eval flag=\"$hardcode_libdir_flag_spec\" | |
15788 | libdir="$acl_save_libdir" | |
15789 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | |
15790 | done | |
15791 | fi | |
15792 | fi | |
15793 | if test "X$ltrpathdirs" != "X"; then | |
15794 | for found_dir in $ltrpathdirs; do | |
15795 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | |
15796 | done | |
15797 | fi | |
15798 | ||
15799 | ||
15800 | ||
15801 | ||
15802 | ||
15803 | ||
15804 | ||
15805 | am_save_CPPFLAGS="$CPPFLAGS" | |
15806 | ||
15807 | for element in $INCICONV; do | |
15808 | haveit= | |
15809 | for x in $CPPFLAGS; do | |
15810 | ||
15811 | acl_save_prefix="$prefix" | |
15812 | prefix="$acl_final_prefix" | |
15813 | acl_save_exec_prefix="$exec_prefix" | |
15814 | exec_prefix="$acl_final_exec_prefix" | |
15815 | eval x=\"$x\" | |
15816 | exec_prefix="$acl_save_exec_prefix" | |
15817 | prefix="$acl_save_prefix" | |
15818 | ||
15819 | if test "X$x" = "X$element"; then | |
15820 | haveit=yes | |
15821 | break | |
15822 | fi | |
15823 | done | |
15824 | if test -z "$haveit"; then | |
15825 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
15826 | fi | |
15827 | done | |
15828 | ||
15829 | ||
15830 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
15831 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
15832 | if test "${am_cv_func_iconv+set}" = set; then | |
15833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15834 | else | |
15835 | ||
15836 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
15837 | am_cv_lib_iconv=no | |
15838 | cat >conftest.$ac_ext <<_ACEOF | |
15839 | /* confdefs.h. */ | |
15840 | _ACEOF | |
15841 | cat confdefs.h >>conftest.$ac_ext | |
15842 | cat >>conftest.$ac_ext <<_ACEOF | |
15843 | /* end confdefs.h. */ | |
15844 | #include <stdlib.h> | |
15845 | #include <iconv.h> | |
15846 | int | |
15847 | main () | |
15848 | { | |
15849 | iconv_t cd = iconv_open("",""); | |
15850 | iconv(cd,NULL,NULL,NULL,NULL); | |
15851 | iconv_close(cd); | |
15852 | ; | |
15853 | return 0; | |
15854 | } | |
15855 | _ACEOF | |
15856 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15857 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15858 | (eval $ac_link) 2>conftest.er1 | |
15859 | ac_status=$? | |
15860 | grep -v '^ *+' conftest.er1 >conftest.err | |
15861 | rm -f conftest.er1 | |
15862 | cat conftest.err >&5 | |
15863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15864 | (exit $ac_status); } && | |
7357c5b6 AM |
15865 | { ac_try='test -z "$ac_c_werror_flag" |
15866 | || test ! -s conftest.err' | |
5ba684e2 NC |
15867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15868 | (eval $ac_try) 2>&5 | |
15869 | ac_status=$? | |
15870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15871 | (exit $ac_status); }; } && | |
15872 | { ac_try='test -s conftest$ac_exeext' | |
15873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15874 | (eval $ac_try) 2>&5 | |
15875 | ac_status=$? | |
15876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15877 | (exit $ac_status); }; }; then | |
15878 | am_cv_func_iconv=yes | |
15879 | else | |
15880 | echo "$as_me: failed program was:" >&5 | |
15881 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15882 | ||
15883 | fi | |
15884 | rm -f conftest.err conftest.$ac_objext \ | |
15885 | conftest$ac_exeext conftest.$ac_ext | |
15886 | if test "$am_cv_func_iconv" != yes; then | |
15887 | am_save_LIBS="$LIBS" | |
15888 | LIBS="$LIBS $LIBICONV" | |
15889 | cat >conftest.$ac_ext <<_ACEOF | |
15890 | /* confdefs.h. */ | |
15891 | _ACEOF | |
15892 | cat confdefs.h >>conftest.$ac_ext | |
15893 | cat >>conftest.$ac_ext <<_ACEOF | |
15894 | /* end confdefs.h. */ | |
15895 | #include <stdlib.h> | |
15896 | #include <iconv.h> | |
15897 | int | |
15898 | main () | |
15899 | { | |
15900 | iconv_t cd = iconv_open("",""); | |
15901 | iconv(cd,NULL,NULL,NULL,NULL); | |
15902 | iconv_close(cd); | |
15903 | ; | |
15904 | return 0; | |
15905 | } | |
15906 | _ACEOF | |
15907 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15908 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15909 | (eval $ac_link) 2>conftest.er1 | |
15910 | ac_status=$? | |
15911 | grep -v '^ *+' conftest.er1 >conftest.err | |
15912 | rm -f conftest.er1 | |
15913 | cat conftest.err >&5 | |
15914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15915 | (exit $ac_status); } && | |
7357c5b6 AM |
15916 | { ac_try='test -z "$ac_c_werror_flag" |
15917 | || test ! -s conftest.err' | |
5ba684e2 NC |
15918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15919 | (eval $ac_try) 2>&5 | |
15920 | ac_status=$? | |
15921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15922 | (exit $ac_status); }; } && | |
15923 | { ac_try='test -s conftest$ac_exeext' | |
15924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15925 | (eval $ac_try) 2>&5 | |
15926 | ac_status=$? | |
15927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15928 | (exit $ac_status); }; }; then | |
15929 | am_cv_lib_iconv=yes | |
15930 | am_cv_func_iconv=yes | |
15931 | else | |
15932 | echo "$as_me: failed program was:" >&5 | |
15933 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15934 | ||
15935 | fi | |
15936 | rm -f conftest.err conftest.$ac_objext \ | |
15937 | conftest$ac_exeext conftest.$ac_ext | |
15938 | LIBS="$am_save_LIBS" | |
15939 | fi | |
15940 | ||
15941 | fi | |
15942 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
15943 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
15944 | if test "$am_cv_func_iconv" = yes; then | |
15945 | ||
15946 | cat >>confdefs.h <<\_ACEOF | |
15947 | #define HAVE_ICONV 1 | |
15948 | _ACEOF | |
15949 | ||
15950 | fi | |
15951 | if test "$am_cv_lib_iconv" = yes; then | |
15952 | echo "$as_me:$LINENO: checking how to link with libiconv" >&5 | |
15953 | echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 | |
15954 | echo "$as_me:$LINENO: result: $LIBICONV" >&5 | |
15955 | echo "${ECHO_T}$LIBICONV" >&6 | |
15956 | else | |
15957 | CPPFLAGS="$am_save_CPPFLAGS" | |
15958 | LIBICONV= | |
15959 | LTLIBICONV= | |
15960 | fi | |
15961 | ||
15962 | ||
15963 | ||
15964 | if test "$am_cv_func_iconv" = yes; then | |
15965 | echo "$as_me:$LINENO: checking for iconv declaration" >&5 | |
15966 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 | |
15967 | if test "${am_cv_proto_iconv+set}" = set; then | |
15968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15969 | else | |
15970 | ||
15971 | cat >conftest.$ac_ext <<_ACEOF | |
15972 | /* confdefs.h. */ | |
15973 | _ACEOF | |
15974 | cat confdefs.h >>conftest.$ac_ext | |
15975 | cat >>conftest.$ac_ext <<_ACEOF | |
15976 | /* end confdefs.h. */ | |
15977 | ||
15978 | #include <stdlib.h> | |
15979 | #include <iconv.h> | |
15980 | extern | |
15981 | #ifdef __cplusplus | |
15982 | "C" | |
15983 | #endif | |
15984 | #if defined(__STDC__) || defined(__cplusplus) | |
15985 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
15986 | #else | |
15987 | size_t iconv(); | |
15988 | #endif | |
15989 | ||
15990 | int | |
15991 | main () | |
15992 | { | |
15993 | ||
15994 | ; | |
15995 | return 0; | |
15996 | } | |
15997 | _ACEOF | |
15998 | rm -f conftest.$ac_objext | |
15999 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16000 | (eval $ac_compile) 2>conftest.er1 | |
16001 | ac_status=$? | |
16002 | grep -v '^ *+' conftest.er1 >conftest.err | |
16003 | rm -f conftest.er1 | |
16004 | cat conftest.err >&5 | |
16005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16006 | (exit $ac_status); } && | |
7357c5b6 AM |
16007 | { ac_try='test -z "$ac_c_werror_flag" |
16008 | || test ! -s conftest.err' | |
5ba684e2 NC |
16009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16010 | (eval $ac_try) 2>&5 | |
16011 | ac_status=$? | |
16012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16013 | (exit $ac_status); }; } && | |
16014 | { ac_try='test -s conftest.$ac_objext' | |
16015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16016 | (eval $ac_try) 2>&5 | |
16017 | ac_status=$? | |
16018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16019 | (exit $ac_status); }; }; then | |
16020 | am_cv_proto_iconv_arg1="" | |
16021 | else | |
16022 | echo "$as_me: failed program was:" >&5 | |
16023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16024 | ||
16025 | am_cv_proto_iconv_arg1="const" | |
16026 | fi | |
16027 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16028 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" | |
16029 | fi | |
16030 | ||
16031 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
16032 | echo "$as_me:$LINENO: result: ${ac_t:- | |
16033 | }$am_cv_proto_iconv" >&5 | |
16034 | echo "${ECHO_T}${ac_t:- | |
16035 | }$am_cv_proto_iconv" >&6 | |
16036 | ||
16037 | cat >>confdefs.h <<_ACEOF | |
16038 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
16039 | _ACEOF | |
16040 | ||
16041 | fi | |
16042 | ||
16043 | ||
252b5132 RH |
16044 | all_targets=false |
16045 | BUILD_NLMCONV= | |
16046 | NLMCONV_DEFS= | |
16047 | BUILD_SRCONV= | |
16048 | BUILD_DLLTOOL= | |
16049 | DLLTOOL_DEFS= | |
7aad4c3d | 16050 | DLLTOOL_DEFAULT= |
252b5132 | 16051 | BUILD_WINDRES= |
692ed3e7 | 16052 | BUILD_WINDMC= |
252b5132 RH |
16053 | BUILD_DLLWRAP= |
16054 | BUILD_MISC= | |
1d97d67f | 16055 | BUILD_INSTALL_MISC= |
8b1e6df3 | 16056 | OBJDUMP_DEFS= |
252b5132 RH |
16057 | |
16058 | for targ in $target $canon_targets | |
16059 | do | |
16060 | if test "x$targ" = "xall"; then | |
16061 | all_targets=true | |
16062 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' | |
16063 | BUILD_SRCONV='$(SRCONV_PROG)' | |
16064 | NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC" | |
1d97d67f | 16065 | BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)' |
003bc0ba NC |
16066 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' |
16067 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' | |
16068 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' | |
16069 | if test -z "$DLLTOOL_DEFAULT"; then | |
16070 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386" | |
16071 | fi | |
16072 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386" | |
16073 | BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)' | |
252b5132 RH |
16074 | else |
16075 | case $targ in | |
42ecbf5e | 16076 | i[3-7]86*-*-netware*) |
252b5132 RH |
16077 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' |
16078 | NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386" | |
16079 | ;; | |
16080 | alpha*-*-netware*) | |
16081 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' | |
16082 | NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA" | |
16083 | ;; | |
16084 | powerpc*-*-netware*) | |
16085 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' | |
16086 | NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC" | |
16087 | ;; | |
16088 | sparc*-*-netware*) | |
16089 | BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)' | |
16090 | NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC" | |
16091 | ;; | |
16092 | esac | |
16093 | case $targ in | |
16094 | *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;; | |
16095 | esac | |
16096 | case $targ in | |
a8c548cb NC |
16097 | arm-epoc-pe*) |
16098 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' | |
7aad4c3d L |
16099 | if test -z "$DLLTOOL_DEFAULT"; then |
16100 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC" | |
16101 | fi | |
a8c548cb NC |
16102 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM" |
16103 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
692ed3e7 | 16104 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
a8c548cb | 16105 | ;; |
7148cc28 NC |
16106 | arm-wince-pe* | arm-*-wince) |
16107 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' | |
7aad4c3d L |
16108 | if test -z "$DLLTOOL_DEFAULT"; then |
16109 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE" | |
16110 | fi | |
7148cc28 NC |
16111 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM" |
16112 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
692ed3e7 | 16113 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
7148cc28 NC |
16114 | ;; |
16115 | arm-*-pe*) | |
252b5132 | 16116 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
7aad4c3d L |
16117 | if test -z "$DLLTOOL_DEFAULT"; then |
16118 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM" | |
16119 | fi | |
252b5132 RH |
16120 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM" |
16121 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
692ed3e7 | 16122 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
7a7b06ef | 16123 | ;; |
27a710e5 | 16124 | thumb-*-pe*) |
252b5132 | 16125 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
7aad4c3d L |
16126 | if test -z "$DLLTOOL_DEFAULT"; then |
16127 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM" | |
16128 | fi | |
252b5132 RH |
16129 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM" |
16130 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
692ed3e7 | 16131 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
7a7b06ef | 16132 | ;; |
42037fe5 | 16133 | x86_64-*-mingw*) |
99ad8390 | 16134 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
7aad4c3d L |
16135 | if test -z "$DLLTOOL_DEFAULT"; then |
16136 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64" | |
16137 | fi | |
99ad8390 NC |
16138 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64" |
16139 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
692ed3e7 | 16140 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
99ad8390 NC |
16141 | BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)' |
16142 | ;; | |
80c7c40a | 16143 | i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*) |
252b5132 | 16144 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
7aad4c3d L |
16145 | if test -z "$DLLTOOL_DEFAULT"; then |
16146 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386" | |
16147 | fi | |
252b5132 RH |
16148 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386" |
16149 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
692ed3e7 | 16150 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
252b5132 | 16151 | BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)' |
7a7b06ef | 16152 | ;; |
80c7c40a | 16153 | i[3-7]86-*-interix) |
7a7b06ef | 16154 | BUILD_DLLTOOL='$(DLLTOOL_PROG)' |
7aad4c3d L |
16155 | if test -z "$DLLTOOL_DEFAULT"; then |
16156 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386" | |
16157 | fi | |
7a7b06ef ILT |
16158 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386" |
16159 | ;; | |
f0660b73 NC |
16160 | powerpc*-aix5.[01]) |
16161 | ;; | |
e5231592 | 16162 | powerpc*-aix[5-9].*) |
f0660b73 NC |
16163 | OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT" |
16164 | ;; | |
e1d5b1e7 | 16165 | powerpc*-*-pe* | powerpc*-*-cygwin*) |
252b5132 | 16166 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
7aad4c3d L |
16167 | if test -z "$DLLTOOL_DEFAULT"; then |
16168 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC" | |
16169 | fi | |
252b5132 RH |
16170 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC" |
16171 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
692ed3e7 | 16172 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
8a0e0f38 | 16173 | ;; |
59678365 | 16174 | powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*) |
1d97d67f | 16175 | BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu" |
669a9a2a | 16176 | ;; |
e1d5b1e7 | 16177 | sh*-*-pe) |
8a0e0f38 | 16178 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
7aad4c3d L |
16179 | if test -z "$DLLTOOL_DEFAULT"; then |
16180 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH" | |
16181 | fi | |
8a0e0f38 NC |
16182 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH" |
16183 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
692ed3e7 | 16184 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
8a0e0f38 | 16185 | ;; |
cd14b966 | 16186 | spu-*-*) |
1d97d67f | 16187 | BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)' |
cd14b966 | 16188 | ;; |
e1d5b1e7 | 16189 | mips*-*-pe) |
8a0e0f38 | 16190 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
7aad4c3d L |
16191 | if test -z "$DLLTOOL_DEFAULT"; then |
16192 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS" | |
16193 | fi | |
8a0e0f38 NC |
16194 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS" |
16195 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
692ed3e7 | 16196 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
7a7b06ef | 16197 | ;; |
27a710e5 | 16198 | mcore-*-pe) |
661016bb | 16199 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
7aad4c3d L |
16200 | if test -z "$DLLTOOL_DEFAULT"; then |
16201 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE" | |
16202 | fi | |
661016bb NC |
16203 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE" |
16204 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
692ed3e7 | 16205 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' |
7a7b06ef | 16206 | ;; |
27a710e5 | 16207 | mcore-*-elf) |
661016bb | 16208 | BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' |
7aad4c3d L |
16209 | if test -z "$DLLTOOL_DEFAULT"; then |
16210 | DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF" | |
16211 | fi | |
661016bb | 16212 | DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF" |
7a7b06ef | 16213 | ;; |
15ab5209 DB |
16214 | mep-*) |
16215 | OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0" | |
16216 | ;; | |
252b5132 RH |
16217 | esac |
16218 | fi | |
16219 | done | |
16220 | ||
7aad4c3d L |
16221 | DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT" |
16222 | ||
42ecbf5e DJ |
16223 | if test "${with_windres+set}" = set; then |
16224 | BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' | |
16225 | fi | |
16226 | ||
692ed3e7 NC |
16227 | if test "${with_windmc+set}" = set; then |
16228 | BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' | |
16229 | fi | |
16230 | ||
16231 | ||
42ecbf5e DJ |
16232 | |
16233 | ||
16234 | ||
16235 | ||
16236 | ||
16237 | ||
16238 | ||
16239 | ||
16240 | ||
16241 | ||
16242 | ||
1d97d67f | 16243 | |
42ecbf5e DJ |
16244 | cat >>confdefs.h <<_ACEOF |
16245 | #define TARGET "${target}" | |
16246 | _ACEOF | |
16247 | ||
16248 | ||
16249 | targ=$target | |
16250 | . $srcdir/../bfd/config.bfd | |
16251 | if test "x$targ_underscore" = "xyes"; then | |
16252 | UNDERSCORE=1 | |
16253 | else | |
16254 | UNDERSCORE=0 | |
16255 | fi | |
16256 | ||
16257 | cat >>confdefs.h <<_ACEOF | |
16258 | #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE | |
16259 | _ACEOF | |
16260 | ||
16261 | ||
16262 | # Emulation | |
16263 | for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'` | |
16264 | do | |
16265 | # Canonicalize the secondary target names. | |
16266 | result=`$ac_config_sub $targ_alias 2>/dev/null` | |
16267 | if test -n "$result"; then | |
16268 | targ=$result | |
16269 | else | |
16270 | targ=$targ_alias | |
16271 | fi | |
16272 | ||
16273 | . ${srcdir}/configure.tgt | |
16274 | ||
16275 | EMULATION=$targ_emul | |
16276 | EMULATION_VECTOR=$targ_emul_vector | |
16277 | done | |
16278 | ||
16279 | ||
16280 | ||
16281 | ||
108a6f8e CD |
16282 | # Required for html and install-html |
16283 | ||
16284 | ||
16285 | ||
16286 | ||
31dd3154 | 16287 | |
42ecbf5e | 16288 | ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in" |
da594c4a | 16289 | |
42ecbf5e DJ |
16290 | cat >confcache <<\_ACEOF |
16291 | # This file is a shell script that caches the results of configure | |
16292 | # tests run on this system so they can be shared between configure | |
16293 | # scripts and configure runs, see configure's option --config-cache. | |
16294 | # It is not useful on other systems. If it contains results you don't | |
16295 | # want to keep, you may remove or edit it. | |
16296 | # | |
16297 | # config.status only pays attention to the cache file if you give it | |
16298 | # the --recheck option to rerun configure. | |
16299 | # | |
16300 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
16301 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
16302 | # following values. | |
16303 | ||
16304 | _ACEOF | |
16305 | ||
16306 | # The following way of writing the cache mishandles newlines in values, | |
16307 | # but we know of no workaround that is simple, portable, and efficient. | |
16308 | # So, don't put newlines in cache variables' values. | |
16309 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
16310 | # and sets the high bit in the cache file unless we assign to the vars. | |
16311 | { | |
16312 | (set) 2>&1 | | |
16313 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
16314 | *ac_space=\ *) | |
16315 | # `set' does not quote correctly, so add quotes (double-quote | |
16316 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
16317 | sed -n \ | |
16318 | "s/'/'\\\\''/g; | |
16319 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
16320 | ;; | |
16321 | *) | |
16322 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
16323 | sed -n \ | |
16324 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
16325 | ;; | |
16326 | esac; | |
16327 | } | | |
16328 | sed ' | |
16329 | t clear | |
16330 | : clear | |
16331 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
16332 | t end | |
16333 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
16334 | : end' >>confcache | |
16335 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
16336 | if test -w $cache_file; then | |
16337 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
16338 | cat confcache >$cache_file | |
16339 | else | |
16340 | echo "not updating unwritable cache $cache_file" | |
16341 | fi | |
16342 | fi | |
16343 | rm -f confcache | |
16344 | ||
16345 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
16346 | # Let make expand exec_prefix. | |
16347 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
16348 | ||
16349 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
16350 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
16351 | # trailing colons and then remove the whole line if VPATH becomes empty | |
16352 | # (actually we leave an empty line to preserve line numbers). | |
16353 | if test "x$srcdir" = x.; then | |
16354 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
16355 | s/:*\$(srcdir):*/:/; | |
16356 | s/:*\${srcdir}:*/:/; | |
16357 | s/:*@srcdir@:*/:/; | |
16358 | s/^\([^=]*=[ ]*\):*/\1/; | |
16359 | s/:*$//; | |
16360 | s/^[^=]*=[ ]*$//; | |
16361 | }' | |
16362 | fi | |
16363 | ||
16364 | DEFS=-DHAVE_CONFIG_H | |
16365 | ||
16366 | ac_libobjs= | |
16367 | ac_ltlibobjs= | |
16368 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
16369 | # 1. Remove the extension, and $U if already installed. | |
16370 | ac_i=`echo "$ac_i" | | |
16371 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
16372 | # 2. Add them. | |
16373 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
16374 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
16375 | done | |
16376 | LIBOBJS=$ac_libobjs | |
16377 | ||
16378 | LTLIBOBJS=$ac_ltlibobjs | |
16379 | ||
16380 | ||
16381 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
16382 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
16383 | Usually this means the macro was only invoked conditionally." >&5 | |
16384 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
16385 | Usually this means the macro was only invoked conditionally." >&2;} | |
16386 | { (exit 1); exit 1; }; } | |
16387 | fi | |
16388 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
16389 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
16390 | Usually this means the macro was only invoked conditionally." >&5 | |
16391 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
16392 | Usually this means the macro was only invoked conditionally." >&2;} | |
16393 | { (exit 1); exit 1; }; } | |
16394 | fi | |
16395 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
16396 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
16397 | Usually this means the macro was only invoked conditionally." >&5 | |
16398 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
16399 | Usually this means the macro was only invoked conditionally." >&2;} | |
16400 | { (exit 1); exit 1; }; } | |
16401 | fi | |
d5fbea21 DJ |
16402 | if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then |
16403 | { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined. | |
16404 | Usually this means the macro was only invoked conditionally." >&5 | |
16405 | echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined. | |
16406 | Usually this means the macro was only invoked conditionally." >&2;} | |
16407 | { (exit 1); exit 1; }; } | |
16408 | fi | |
42ecbf5e DJ |
16409 | |
16410 | : ${CONFIG_STATUS=./config.status} | |
16411 | ac_clean_files_save=$ac_clean_files | |
16412 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
16413 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
16414 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
16415 | cat >$CONFIG_STATUS <<_ACEOF | |
16416 | #! $SHELL | |
16417 | # Generated by $as_me. | |
16418 | # Run this file to recreate the current configuration. | |
16419 | # Compiler output produced by configure, useful for debugging | |
16420 | # configure, is in config.log if it exists. | |
16421 | ||
16422 | debug=false | |
16423 | ac_cs_recheck=false | |
16424 | ac_cs_silent=false | |
16425 | SHELL=\${CONFIG_SHELL-$SHELL} | |
16426 | _ACEOF | |
252b5132 | 16427 | |
42ecbf5e DJ |
16428 | cat >>$CONFIG_STATUS <<\_ACEOF |
16429 | ## --------------------- ## | |
16430 | ## M4sh Initialization. ## | |
16431 | ## --------------------- ## | |
252b5132 | 16432 | |
42ecbf5e DJ |
16433 | # Be Bourne compatible |
16434 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
16435 | emulate sh | |
16436 | NULLCMD=: | |
16437 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
16438 | # is contrary to our usage. Disable this feature. | |
16439 | alias -g '${1+"$@"}'='"$@"' | |
16440 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
16441 | set -o posix | |
16442 | fi | |
16443 | DUALCASE=1; export DUALCASE # for MKS sh | |
252b5132 | 16444 | |
42ecbf5e DJ |
16445 | # Support unset when possible. |
16446 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
16447 | as_unset=unset | |
16448 | else | |
16449 | as_unset=false | |
16450 | fi | |
252b5132 RH |
16451 | |
16452 | ||
42ecbf5e DJ |
16453 | # Work around bugs in pre-3.0 UWIN ksh. |
16454 | $as_unset ENV MAIL MAILPATH | |
16455 | PS1='$ ' | |
16456 | PS2='> ' | |
16457 | PS4='+ ' | |
252b5132 | 16458 | |
42ecbf5e DJ |
16459 | # NLS nuisances. |
16460 | for as_var in \ | |
16461 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
16462 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
16463 | LC_TELEPHONE LC_TIME | |
16464 | do | |
16465 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
16466 | eval $as_var=C; export $as_var | |
16467 | else | |
16468 | $as_unset $as_var | |
16469 | fi | |
16470 | done | |
252b5132 | 16471 | |
42ecbf5e DJ |
16472 | # Required to use basename. |
16473 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
16474 | as_expr=expr | |
16475 | else | |
16476 | as_expr=false | |
16477 | fi | |
252b5132 | 16478 | |
42ecbf5e DJ |
16479 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
16480 | as_basename=basename | |
16481 | else | |
16482 | as_basename=false | |
16483 | fi | |
252b5132 | 16484 | |
8b1e6df3 | 16485 | |
42ecbf5e DJ |
16486 | # Name of the executable. |
16487 | as_me=`$as_basename "$0" || | |
16488 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
16489 | X"$0" : 'X\(//\)$' \| \ | |
16490 | X"$0" : 'X\(/\)$' \| \ | |
16491 | . : '\(.\)' 2>/dev/null || | |
16492 | echo X/"$0" | | |
16493 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
16494 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
16495 | /^X\/\(\/\).*/{ s//\1/; q; } | |
16496 | s/.*/./; q'` | |
0218d1e4 | 16497 | |
252b5132 | 16498 | |
42ecbf5e DJ |
16499 | # PATH needs CR, and LINENO needs CR and PATH. |
16500 | # Avoid depending upon Character Ranges. | |
16501 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
16502 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
16503 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
16504 | as_cr_digits='0123456789' | |
16505 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
252b5132 | 16506 | |
42ecbf5e DJ |
16507 | # The user is always right. |
16508 | if test "${PATH_SEPARATOR+set}" != set; then | |
16509 | echo "#! /bin/sh" >conf$$.sh | |
16510 | echo "exit 0" >>conf$$.sh | |
16511 | chmod +x conf$$.sh | |
16512 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
16513 | PATH_SEPARATOR=';' | |
16514 | else | |
16515 | PATH_SEPARATOR=: | |
16516 | fi | |
16517 | rm -f conf$$.sh | |
252b5132 RH |
16518 | fi |
16519 | ||
16520 | ||
42ecbf5e DJ |
16521 | as_lineno_1=$LINENO |
16522 | as_lineno_2=$LINENO | |
16523 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
16524 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
16525 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
16526 | # Find who we are. Look in the path if we contain no path at all | |
16527 | # relative or not. | |
16528 | case $0 in | |
16529 | *[\\/]* ) as_myself=$0 ;; | |
16530 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16531 | for as_dir in $PATH | |
eb1e0e80 | 16532 | do |
42ecbf5e DJ |
16533 | IFS=$as_save_IFS |
16534 | test -z "$as_dir" && as_dir=. | |
16535 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
16536 | done | |
eb1e0e80 | 16537 | |
42ecbf5e DJ |
16538 | ;; |
16539 | esac | |
16540 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
16541 | # in which case we are not to be found in the path. | |
16542 | if test "x$as_myself" = x; then | |
16543 | as_myself=$0 | |
16544 | fi | |
16545 | if test ! -f "$as_myself"; then | |
16546 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
16547 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
16548 | { (exit 1); exit 1; }; } | |
16549 | fi | |
16550 | case $CONFIG_SHELL in | |
16551 | '') | |
16552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16553 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
16554 | do | |
16555 | IFS=$as_save_IFS | |
16556 | test -z "$as_dir" && as_dir=. | |
16557 | for as_base in sh bash ksh sh5; do | |
16558 | case $as_dir in | |
16559 | /*) | |
16560 | if ("$as_dir/$as_base" -c ' | |
16561 | as_lineno_1=$LINENO | |
16562 | as_lineno_2=$LINENO | |
16563 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
16564 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
16565 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
16566 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
16567 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
16568 | CONFIG_SHELL=$as_dir/$as_base | |
16569 | export CONFIG_SHELL | |
16570 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
16571 | fi;; | |
16572 | esac | |
16573 | done | |
eb1e0e80 | 16574 | done |
42ecbf5e DJ |
16575 | ;; |
16576 | esac | |
eb1e0e80 | 16577 | |
42ecbf5e DJ |
16578 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
16579 | # uniformly replaced by the line number. The first 'sed' inserts a | |
16580 | # line-number line before each line; the second 'sed' does the real | |
16581 | # work. The second script uses 'N' to pair each line-number line | |
16582 | # with the numbered line, and appends trailing '-' during | |
16583 | # substitution so that $LINENO is not a special case at line end. | |
16584 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
16585 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
16586 | sed '=' <$as_myself | | |
16587 | sed ' | |
16588 | N | |
16589 | s,$,-, | |
16590 | : loop | |
16591 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
16592 | t loop | |
16593 | s,-$,, | |
16594 | s,^['$as_cr_digits']*\n,, | |
16595 | ' >$as_me.lineno && | |
16596 | chmod +x $as_me.lineno || | |
16597 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
16598 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
16599 | { (exit 1); exit 1; }; } | |
16600 | ||
16601 | # Don't try to exec as it changes $[0], causing all sort of problems | |
16602 | # (the dirname of $[0] is not the place where we might find the | |
16603 | # original and so on. Autoconf is especially sensible to this). | |
16604 | . ./$as_me.lineno | |
16605 | # Exit status is that of the last command. | |
16606 | exit | |
16607 | } | |
eb1e0e80 NC |
16608 | |
16609 | ||
42ecbf5e DJ |
16610 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
16611 | *c*,-n*) ECHO_N= ECHO_C=' | |
16612 | ' ECHO_T=' ' ;; | |
16613 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
16614 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
16615 | esac | |
eb1e0e80 | 16616 | |
42ecbf5e DJ |
16617 | if expr a : '\(a\)' >/dev/null 2>&1; then |
16618 | as_expr=expr | |
d15b04bd | 16619 | else |
42ecbf5e DJ |
16620 | as_expr=false |
16621 | fi | |
16622 | ||
16623 | rm -f conf$$ conf$$.exe conf$$.file | |
16624 | echo >conf$$.file | |
16625 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
16626 | # We could just check for DJGPP; but this test a) works b) is more generic | |
16627 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
16628 | if test -f conf$$.exe; then | |
16629 | # Don't use ln at all; we don't have any links | |
16630 | as_ln_s='cp -p' | |
252b5132 | 16631 | else |
42ecbf5e | 16632 | as_ln_s='ln -s' |
252b5132 | 16633 | fi |
42ecbf5e DJ |
16634 | elif ln conf$$.file conf$$ 2>/dev/null; then |
16635 | as_ln_s=ln | |
16636 | else | |
16637 | as_ln_s='cp -p' | |
252b5132 | 16638 | fi |
42ecbf5e | 16639 | rm -f conf$$ conf$$.exe conf$$.file |
252b5132 | 16640 | |
42ecbf5e DJ |
16641 | if mkdir -p . 2>/dev/null; then |
16642 | as_mkdir_p=: | |
16643 | else | |
16644 | test -d ./-p && rmdir ./-p | |
16645 | as_mkdir_p=false | |
16646 | fi | |
d15b04bd | 16647 | |
42ecbf5e | 16648 | as_executable_p="test -f" |
252b5132 | 16649 | |
42ecbf5e DJ |
16650 | # Sed expression to map a string onto a valid CPP name. |
16651 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
16652 | ||
16653 | # Sed expression to map a string onto a valid variable name. | |
16654 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
16655 | ||
16656 | ||
16657 | # IFS | |
16658 | # We need space, tab and new line, in precisely that order. | |
16659 | as_nl=' | |
16660 | ' | |
16661 | IFS=" $as_nl" | |
16662 | ||
16663 | # CDPATH. | |
16664 | $as_unset CDPATH | |
16665 | ||
16666 | exec 6>&1 | |
16667 | ||
16668 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
16669 | # report actual input values of CONFIG_FILES etc. instead of their | |
16670 | # values after options handling. Logging --version etc. is OK. | |
16671 | exec 5>>config.log | |
16672 | { | |
16673 | echo | |
16674 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
16675 | ## Running $as_me. ## | |
16676 | _ASBOX | |
16677 | } >&5 | |
16678 | cat >&5 <<_CSEOF | |
16679 | ||
16680 | This file was extended by $as_me, which was | |
16681 | generated by GNU Autoconf 2.59. Invocation command line was | |
16682 | ||
16683 | CONFIG_FILES = $CONFIG_FILES | |
16684 | CONFIG_HEADERS = $CONFIG_HEADERS | |
16685 | CONFIG_LINKS = $CONFIG_LINKS | |
16686 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
16687 | $ $0 $@ | |
16688 | ||
16689 | _CSEOF | |
16690 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
16691 | echo >&5 | |
16692 | _ACEOF | |
16693 | ||
16694 | # Files that config.status was made for. | |
16695 | if test -n "$ac_config_files"; then | |
16696 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
252b5132 RH |
16697 | fi |
16698 | ||
42ecbf5e DJ |
16699 | if test -n "$ac_config_headers"; then |
16700 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
16701 | fi | |
e5a52504 | 16702 | |
42ecbf5e DJ |
16703 | if test -n "$ac_config_links"; then |
16704 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
16705 | fi | |
e5a52504 | 16706 | |
42ecbf5e DJ |
16707 | if test -n "$ac_config_commands"; then |
16708 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
16709 | fi | |
d15b04bd | 16710 | |
42ecbf5e DJ |
16711 | cat >>$CONFIG_STATUS <<\_ACEOF |
16712 | ||
16713 | ac_cs_usage="\ | |
16714 | \`$as_me' instantiates files from templates according to the | |
16715 | current configuration. | |
16716 | ||
16717 | Usage: $0 [OPTIONS] [FILE]... | |
16718 | ||
16719 | -h, --help print this help, then exit | |
16720 | -V, --version print version number, then exit | |
16721 | -q, --quiet do not print progress messages | |
16722 | -d, --debug don't remove temporary files | |
16723 | --recheck update $as_me by reconfiguring in the same conditions | |
16724 | --file=FILE[:TEMPLATE] | |
16725 | instantiate the configuration file FILE | |
16726 | --header=FILE[:TEMPLATE] | |
16727 | instantiate the configuration header FILE | |
16728 | ||
16729 | Configuration files: | |
16730 | $config_files | |
16731 | ||
16732 | Configuration headers: | |
16733 | $config_headers | |
16734 | ||
16735 | Configuration commands: | |
16736 | $config_commands | |
16737 | ||
16738 | Report bugs to <bug-autoconf@gnu.org>." | |
16739 | _ACEOF | |
16740 | ||
16741 | cat >>$CONFIG_STATUS <<_ACEOF | |
16742 | ac_cs_version="\\ | |
16743 | config.status | |
16744 | configured by $0, generated by GNU Autoconf 2.59, | |
16745 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
16746 | ||
16747 | Copyright (C) 2003 Free Software Foundation, Inc. | |
16748 | This config.status script is free software; the Free Software Foundation | |
16749 | gives unlimited permission to copy, distribute and modify it." | |
16750 | srcdir=$srcdir | |
16751 | INSTALL="$INSTALL" | |
16752 | _ACEOF | |
16753 | ||
16754 | cat >>$CONFIG_STATUS <<\_ACEOF | |
16755 | # If no file are specified by the user, then we need to provide default | |
16756 | # value. By we need to know if files were specified by the user. | |
16757 | ac_need_defaults=: | |
16758 | while test $# != 0 | |
16759 | do | |
16760 | case $1 in | |
16761 | --*=*) | |
16762 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
16763 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
16764 | ac_shift=: | |
16765 | ;; | |
16766 | -*) | |
16767 | ac_option=$1 | |
16768 | ac_optarg=$2 | |
16769 | ac_shift=shift | |
16770 | ;; | |
16771 | *) # This is not an option, so the user has probably given explicit | |
16772 | # arguments. | |
16773 | ac_option=$1 | |
16774 | ac_need_defaults=false;; | |
16775 | esac | |
16776 | ||
16777 | case $ac_option in | |
16778 | # Handling of the options. | |
16779 | _ACEOF | |
16780 | cat >>$CONFIG_STATUS <<\_ACEOF | |
16781 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
16782 | ac_cs_recheck=: ;; | |
16783 | --version | --vers* | -V ) | |
16784 | echo "$ac_cs_version"; exit 0 ;; | |
16785 | --he | --h) | |
16786 | # Conflict between --help and --header | |
16787 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
16788 | Try \`$0 --help' for more information." >&5 | |
16789 | echo "$as_me: error: ambiguous option: $1 | |
16790 | Try \`$0 --help' for more information." >&2;} | |
16791 | { (exit 1); exit 1; }; };; | |
16792 | --help | --hel | -h ) | |
16793 | echo "$ac_cs_usage"; exit 0 ;; | |
16794 | --debug | --d* | -d ) | |
16795 | debug=: ;; | |
16796 | --file | --fil | --fi | --f ) | |
16797 | $ac_shift | |
16798 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
16799 | ac_need_defaults=false;; | |
16800 | --header | --heade | --head | --hea ) | |
16801 | $ac_shift | |
16802 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
16803 | ac_need_defaults=false;; | |
16804 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
16805 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
16806 | ac_cs_silent=: ;; | |
16807 | ||
16808 | # This is an error. | |
16809 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
16810 | Try \`$0 --help' for more information." >&5 | |
16811 | echo "$as_me: error: unrecognized option: $1 | |
16812 | Try \`$0 --help' for more information." >&2;} | |
16813 | { (exit 1); exit 1; }; } ;; | |
16814 | ||
16815 | *) ac_config_targets="$ac_config_targets $1" ;; | |
16816 | ||
16817 | esac | |
16818 | shift | |
16819 | done | |
16820 | ||
16821 | ac_configure_extra_args= | |
16822 | ||
16823 | if $ac_cs_silent; then | |
16824 | exec 6>/dev/null | |
16825 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
16826 | fi | |
16827 | ||
16828 | _ACEOF | |
16829 | cat >>$CONFIG_STATUS <<_ACEOF | |
16830 | if \$ac_cs_recheck; then | |
16831 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
16832 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
16833 | fi | |
16834 | ||
16835 | _ACEOF | |
16836 | ||
16837 | cat >>$CONFIG_STATUS <<_ACEOF | |
d15b04bd | 16838 | # |
42ecbf5e | 16839 | # INIT-COMMANDS section. |
d15b04bd | 16840 | # |
e5a52504 | 16841 | |
42ecbf5e | 16842 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
d7040cdb SE |
16843 | |
16844 | ||
16845 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
16846 | # if CDPATH is set. | |
16847 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
16848 | ||
16849 | sed_quote_subst='$sed_quote_subst' | |
16850 | double_quote_subst='$double_quote_subst' | |
16851 | delay_variable_subst='$delay_variable_subst' | |
16852 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
16853 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
16854 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
16855 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
16856 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
16857 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
16858 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
16859 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
16860 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
16861 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
16862 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
16863 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
16864 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
16865 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
16866 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
16867 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
16868 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
16869 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
16870 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
16871 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
16872 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
16873 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
16874 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
16875 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
16876 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
16877 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
16878 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
16879 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
718a6fd8 | 16880 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' |
d7040cdb SE |
16881 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
16882 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
16883 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
16884 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
16885 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
16886 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
16887 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16888 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16889 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16890 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
16891 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
16892 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
16893 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
16894 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
16895 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
16896 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' | |
718a6fd8 | 16897 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
d7040cdb SE |
16898 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
16899 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
16900 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
16901 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
16902 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
16903 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
16904 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
16905 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
16906 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
16907 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
718a6fd8 SE |
16908 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
16909 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
16910 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
16911 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
16912 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
d7040cdb SE |
16913 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
16914 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16915 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16916 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
16917 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
16918 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
16919 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
16920 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
16921 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16922 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16923 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16924 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16925 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16926 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16927 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
16928 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
16929 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
16930 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
16931 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
16932 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
16933 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
16934 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
16935 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
16936 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
16937 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
16938 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
16939 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
16940 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
16941 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
16942 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16943 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
16944 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
16945 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16946 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
16947 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
16948 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
16949 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
16950 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
16951 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
16952 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
16953 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
16954 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
16955 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
16956 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
16957 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16958 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16959 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
16960 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
16961 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
16962 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
16963 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
16964 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
16965 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
16966 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
16967 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
16968 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
16969 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
16970 | ||
16971 | LTCC='$LTCC' | |
16972 | LTCFLAGS='$LTCFLAGS' | |
16973 | compiler='$compiler_DEFAULT' | |
16974 | ||
16975 | # Quote evaled strings. | |
16976 | for var in SED \ | |
16977 | GREP \ | |
16978 | EGREP \ | |
16979 | FGREP \ | |
16980 | LD \ | |
16981 | NM \ | |
16982 | LN_S \ | |
16983 | lt_SP2NL \ | |
16984 | lt_NL2SP \ | |
16985 | reload_flag \ | |
718a6fd8 | 16986 | OBJDUMP \ |
d7040cdb SE |
16987 | deplibs_check_method \ |
16988 | file_magic_cmd \ | |
16989 | AR \ | |
16990 | AR_FLAGS \ | |
16991 | STRIP \ | |
16992 | RANLIB \ | |
16993 | CC \ | |
16994 | CFLAGS \ | |
16995 | compiler \ | |
16996 | lt_cv_sys_global_symbol_pipe \ | |
16997 | lt_cv_sys_global_symbol_to_cdecl \ | |
16998 | lt_cv_sys_global_symbol_to_c_name_address \ | |
718a6fd8 | 16999 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
d7040cdb SE |
17000 | SHELL \ |
17001 | ECHO \ | |
17002 | lt_prog_compiler_no_builtin_flag \ | |
17003 | lt_prog_compiler_wl \ | |
17004 | lt_prog_compiler_pic \ | |
17005 | lt_prog_compiler_static \ | |
17006 | lt_cv_prog_compiler_c_o \ | |
17007 | need_locks \ | |
718a6fd8 SE |
17008 | DSYMUTIL \ |
17009 | NMEDIT \ | |
17010 | LIPO \ | |
17011 | OTOOL \ | |
17012 | OTOOL64 \ | |
d7040cdb SE |
17013 | shrext_cmds \ |
17014 | export_dynamic_flag_spec \ | |
17015 | whole_archive_flag_spec \ | |
17016 | compiler_needs_object \ | |
17017 | with_gnu_ld \ | |
17018 | allow_undefined_flag \ | |
17019 | no_undefined_flag \ | |
17020 | hardcode_libdir_flag_spec \ | |
17021 | hardcode_libdir_flag_spec_ld \ | |
17022 | hardcode_libdir_separator \ | |
17023 | fix_srcfile_path \ | |
17024 | exclude_expsyms \ | |
17025 | include_expsyms \ | |
17026 | file_list_spec \ | |
17027 | variables_saved_for_relink \ | |
17028 | libname_spec \ | |
17029 | library_names_spec \ | |
17030 | soname_spec \ | |
17031 | finish_eval \ | |
17032 | old_striplib \ | |
17033 | striplib; do | |
17034 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
17035 | *[\\\\\\\`\\"\\\$]*) | |
17036 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
17037 | ;; | |
17038 | *) | |
17039 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
17040 | ;; | |
17041 | esac | |
17042 | done | |
17043 | ||
17044 | # Double-quote double-evaled strings. | |
17045 | for var in reload_cmds \ | |
17046 | old_postinstall_cmds \ | |
17047 | old_postuninstall_cmds \ | |
17048 | old_archive_cmds \ | |
17049 | extract_expsyms_cmds \ | |
17050 | old_archive_from_new_cmds \ | |
17051 | old_archive_from_expsyms_cmds \ | |
17052 | archive_cmds \ | |
17053 | archive_expsym_cmds \ | |
17054 | module_cmds \ | |
17055 | module_expsym_cmds \ | |
17056 | export_symbols_cmds \ | |
17057 | prelink_cmds \ | |
17058 | postinstall_cmds \ | |
17059 | postuninstall_cmds \ | |
17060 | finish_cmds \ | |
17061 | sys_lib_search_path_spec \ | |
17062 | sys_lib_dlsearch_path_spec; do | |
17063 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
17064 | *[\\\\\\\`\\"\\\$]*) | |
17065 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
17066 | ;; | |
17067 | *) | |
17068 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
17069 | ;; | |
17070 | esac | |
17071 | done | |
17072 | ||
17073 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
17074 | case \$lt_ECHO in | |
17075 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
17076 | ;; | |
17077 | esac | |
17078 | ||
17079 | ac_aux_dir='$ac_aux_dir' | |
17080 | xsi_shell='$xsi_shell' | |
17081 | lt_shell_append='$lt_shell_append' | |
17082 | ||
17083 | # See if we are running on zsh, and set the options which allow our | |
17084 | # commands through without removal of \ escapes INIT. | |
17085 | if test -n "\${ZSH_VERSION+set}" ; then | |
17086 | setopt NO_GLOB_SUBST | |
17087 | fi | |
17088 | ||
17089 | ||
17090 | PACKAGE='$PACKAGE' | |
17091 | VERSION='$VERSION' | |
17092 | TIMESTAMP='$TIMESTAMP' | |
17093 | RM='$RM' | |
17094 | ofile='$ofile' | |
17095 | ||
17096 | ||
17097 | ||
20e95c23 DJ |
17098 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
17099 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
17100 | # from automake. | |
17101 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
17102 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
17103 | LINGUAS="${LINGUAS-%UNSET%}" | |
17104 | ||
42ecbf5e DJ |
17105 | |
17106 | _ACEOF | |
17107 | ||
17108 | ||
17109 | ||
17110 | cat >>$CONFIG_STATUS <<\_ACEOF | |
17111 | for ac_config_target in $ac_config_targets | |
252b5132 | 17112 | do |
42ecbf5e DJ |
17113 | case "$ac_config_target" in |
17114 | # Handling of arguments. | |
17115 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
17116 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
17117 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
17118 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
d7040cdb | 17119 | "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
20e95c23 | 17120 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
42ecbf5e DJ |
17121 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; |
17122 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
17123 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
17124 | { (exit 1); exit 1; }; };; | |
d15b04bd | 17125 | esac |
252b5132 RH |
17126 | done |
17127 | ||
42ecbf5e DJ |
17128 | # If the user did not use the arguments to specify the items to instantiate, |
17129 | # then the envvar interface is used. Set only those that are not. | |
17130 | # We use the long form for the default assignment because of an extremely | |
17131 | # bizarre bug on SunOS 4.1.3. | |
17132 | if $ac_need_defaults; then | |
17133 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
17134 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
17135 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
17136 | fi | |
17137 | ||
17138 | # Have a temporary directory for convenience. Make it in the build tree | |
17139 | # simply because there is no reason to put it here, and in addition, | |
17140 | # creating and moving files from /tmp can sometimes cause problems. | |
17141 | # Create a temporary directory, and hook for its removal unless debugging. | |
17142 | $debug || | |
17143 | { | |
17144 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
17145 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
17146 | } | |
252b5132 | 17147 | |
42ecbf5e | 17148 | # Create a (secure) tmp directory for tmp files. |
e5a52504 | 17149 | |
42ecbf5e DJ |
17150 | { |
17151 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
17152 | test -n "$tmp" && test -d "$tmp" | |
17153 | } || | |
17154 | { | |
17155 | tmp=./confstat$$-$RANDOM | |
17156 | (umask 077 && mkdir $tmp) | |
17157 | } || | |
17158 | { | |
17159 | echo "$me: cannot create a temporary directory in ." >&2 | |
17160 | { (exit 1); exit 1; } | |
17161 | } | |
17162 | ||
17163 | _ACEOF | |
17164 | ||
17165 | cat >>$CONFIG_STATUS <<_ACEOF | |
17166 | ||
17167 | # | |
17168 | # CONFIG_FILES section. | |
17169 | # | |
e5a52504 | 17170 | |
42ecbf5e DJ |
17171 | # No need to generate the scripts if there are no CONFIG_FILES. |
17172 | # This happens for instance when ./config.status config.h | |
17173 | if test -n "\$CONFIG_FILES"; then | |
17174 | # Protect against being on the right side of a sed subst in config.status. | |
17175 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
17176 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
17177 | s,@SHELL@,$SHELL,;t t | |
17178 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
17179 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
17180 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
17181 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
17182 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
17183 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
17184 | s,@exec_prefix@,$exec_prefix,;t t | |
17185 | s,@prefix@,$prefix,;t t | |
17186 | s,@program_transform_name@,$program_transform_name,;t t | |
17187 | s,@bindir@,$bindir,;t t | |
17188 | s,@sbindir@,$sbindir,;t t | |
17189 | s,@libexecdir@,$libexecdir,;t t | |
17190 | s,@datadir@,$datadir,;t t | |
17191 | s,@sysconfdir@,$sysconfdir,;t t | |
17192 | s,@sharedstatedir@,$sharedstatedir,;t t | |
17193 | s,@localstatedir@,$localstatedir,;t t | |
17194 | s,@libdir@,$libdir,;t t | |
17195 | s,@includedir@,$includedir,;t t | |
17196 | s,@oldincludedir@,$oldincludedir,;t t | |
17197 | s,@infodir@,$infodir,;t t | |
17198 | s,@mandir@,$mandir,;t t | |
17199 | s,@build_alias@,$build_alias,;t t | |
17200 | s,@host_alias@,$host_alias,;t t | |
17201 | s,@target_alias@,$target_alias,;t t | |
17202 | s,@DEFS@,$DEFS,;t t | |
17203 | s,@ECHO_C@,$ECHO_C,;t t | |
17204 | s,@ECHO_N@,$ECHO_N,;t t | |
17205 | s,@ECHO_T@,$ECHO_T,;t t | |
17206 | s,@LIBS@,$LIBS,;t t | |
17207 | s,@build@,$build,;t t | |
17208 | s,@build_cpu@,$build_cpu,;t t | |
17209 | s,@build_vendor@,$build_vendor,;t t | |
17210 | s,@build_os@,$build_os,;t t | |
17211 | s,@host@,$host,;t t | |
17212 | s,@host_cpu@,$host_cpu,;t t | |
17213 | s,@host_vendor@,$host_vendor,;t t | |
17214 | s,@host_os@,$host_os,;t t | |
17215 | s,@target@,$target,;t t | |
17216 | s,@target_cpu@,$target_cpu,;t t | |
17217 | s,@target_vendor@,$target_vendor,;t t | |
17218 | s,@target_os@,$target_os,;t t | |
17219 | s,@CC@,$CC,;t t | |
17220 | s,@CFLAGS@,$CFLAGS,;t t | |
17221 | s,@LDFLAGS@,$LDFLAGS,;t t | |
17222 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
17223 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
17224 | s,@EXEEXT@,$EXEEXT,;t t | |
17225 | s,@OBJEXT@,$OBJEXT,;t t | |
17226 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
17227 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
17228 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
17229 | s,@CYGPATH_W@,$CYGPATH_W,;t t | |
17230 | s,@PACKAGE@,$PACKAGE,;t t | |
17231 | s,@VERSION@,$VERSION,;t t | |
17232 | s,@ACLOCAL@,$ACLOCAL,;t t | |
17233 | s,@AUTOCONF@,$AUTOCONF,;t t | |
17234 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
17235 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
17236 | s,@MAKEINFO@,$MAKEINFO,;t t | |
17237 | s,@install_sh@,$install_sh,;t t | |
17238 | s,@STRIP@,$STRIP,;t t | |
17239 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
17240 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
17241 | s,@mkdir_p@,$mkdir_p,;t t | |
17242 | s,@AWK@,$AWK,;t t | |
17243 | s,@SET_MAKE@,$SET_MAKE,;t t | |
17244 | s,@am__leading_dot@,$am__leading_dot,;t t | |
17245 | s,@AMTAR@,$AMTAR,;t t | |
17246 | s,@am__tar@,$am__tar,;t t | |
17247 | s,@am__untar@,$am__untar,;t t | |
17248 | s,@DEPDIR@,$DEPDIR,;t t | |
17249 | s,@am__include@,$am__include,;t t | |
17250 | s,@am__quote@,$am__quote,;t t | |
17251 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
17252 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
17253 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
17254 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
17255 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
17256 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
7357c5b6 AM |
17257 | s,@CPP@,$CPP,;t t |
17258 | s,@EGREP@,$EGREP,;t t | |
d7040cdb SE |
17259 | s,@LIBTOOL@,$LIBTOOL,;t t |
17260 | s,@SED@,$SED,;t t | |
d7040cdb SE |
17261 | s,@FGREP@,$FGREP,;t t |
17262 | s,@GREP@,$GREP,;t t | |
17263 | s,@LD@,$LD,;t t | |
17264 | s,@DUMPBIN@,$DUMPBIN,;t t | |
17265 | s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t | |
17266 | s,@NM@,$NM,;t t | |
42ecbf5e | 17267 | s,@LN_S@,$LN_S,;t t |
718a6fd8 SE |
17268 | s,@OBJDUMP@,$OBJDUMP,;t t |
17269 | s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t | |
d7040cdb SE |
17270 | s,@AR@,$AR,;t t |
17271 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
42ecbf5e DJ |
17272 | s,@RANLIB@,$RANLIB,;t t |
17273 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
d7040cdb | 17274 | s,@lt_ECHO@,$lt_ECHO,;t t |
718a6fd8 SE |
17275 | s,@DSYMUTIL@,$DSYMUTIL,;t t |
17276 | s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t | |
17277 | s,@NMEDIT@,$NMEDIT,;t t | |
17278 | s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t | |
17279 | s,@LIPO@,$LIPO,;t t | |
17280 | s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t | |
17281 | s,@OTOOL@,$OTOOL,;t t | |
17282 | s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t | |
17283 | s,@OTOOL64@,$OTOOL64,;t t | |
17284 | s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t | |
42ecbf5e DJ |
17285 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t |
17286 | s,@NO_WERROR@,$NO_WERROR,;t t | |
17287 | s,@YACC@,$YACC,;t t | |
17288 | s,@LEX@,$LEX,;t t | |
17289 | s,@LEXLIB@,$LEXLIB,;t t | |
17290 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | |
42ecbf5e | 17291 | s,@USE_NLS@,$USE_NLS,;t t |
20e95c23 DJ |
17292 | s,@LIBINTL@,$LIBINTL,;t t |
17293 | s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t | |
17294 | s,@INCINTL@,$INCINTL,;t t | |
42ecbf5e | 17295 | s,@XGETTEXT@,$XGETTEXT,;t t |
20e95c23 DJ |
17296 | s,@GMSGFMT@,$GMSGFMT,;t t |
17297 | s,@POSUB@,$POSUB,;t t | |
42ecbf5e | 17298 | s,@CATALOGS@,$CATALOGS,;t t |
42ecbf5e | 17299 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
42ecbf5e | 17300 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t |
20e95c23 DJ |
17301 | s,@GENCAT@,$GENCAT,;t t |
17302 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
42ecbf5e | 17303 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
20e95c23 DJ |
17304 | s,@MSGFMT@,$MSGFMT,;t t |
17305 | s,@MSGMERGE@,$MSGMERGE,;t t | |
42ecbf5e DJ |
17306 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
17307 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
17308 | s,@MAINT@,$MAINT,;t t | |
d5fbea21 DJ |
17309 | s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t |
17310 | s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t | |
42ecbf5e | 17311 | s,@HDEFINES@,$HDEFINES,;t t |
42ecbf5e DJ |
17312 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t |
17313 | s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t | |
17314 | s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t | |
20e95c23 | 17315 | s,@ALLOCA@,$ALLOCA,;t t |
5ba684e2 NC |
17316 | s,@LIBICONV@,$LIBICONV,;t t |
17317 | s,@LTLIBICONV@,$LTLIBICONV,;t t | |
42ecbf5e DJ |
17318 | s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t |
17319 | s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t | |
17320 | s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t | |
17321 | s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t | |
17322 | s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t | |
17323 | s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t | |
692ed3e7 | 17324 | s,@BUILD_WINDMC@,$BUILD_WINDMC,;t t |
42ecbf5e DJ |
17325 | s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t |
17326 | s,@BUILD_MISC@,$BUILD_MISC,;t t | |
1d97d67f | 17327 | s,@BUILD_INSTALL_MISC@,$BUILD_INSTALL_MISC,;t t |
42ecbf5e DJ |
17328 | s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t |
17329 | s,@EMULATION@,$EMULATION,;t t | |
17330 | s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t | |
108a6f8e CD |
17331 | s,@datarootdir@,$datarootdir,;t t |
17332 | s,@docdir@,$docdir,;t t | |
17333 | s,@htmldir@,$htmldir,;t t | |
31dd3154 | 17334 | s,@pdfdir@,$pdfdir,;t t |
42ecbf5e DJ |
17335 | s,@LIBOBJS@,$LIBOBJS,;t t |
17336 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
d15b04bd | 17337 | CEOF |
252b5132 | 17338 | |
42ecbf5e DJ |
17339 | _ACEOF |
17340 | ||
17341 | cat >>$CONFIG_STATUS <<\_ACEOF | |
17342 | # Split the substitutions into bite-sized pieces for seds with | |
17343 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
17344 | ac_max_sed_lines=48 | |
17345 | ac_sed_frag=1 # Number of current file. | |
17346 | ac_beg=1 # First line for current file. | |
17347 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
17348 | ac_more_lines=: | |
17349 | ac_sed_cmds= | |
17350 | while $ac_more_lines; do | |
17351 | if test $ac_beg -gt 1; then | |
17352 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
17353 | else | |
17354 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
17355 | fi | |
17356 | if test ! -s $tmp/subs.frag; then | |
17357 | ac_more_lines=false | |
d15b04bd | 17358 | else |
42ecbf5e DJ |
17359 | # The purpose of the label and of the branching condition is to |
17360 | # speed up the sed processing (if there are no `@' at all, there | |
17361 | # is no need to browse any of the substitutions). | |
17362 | # These are the two extra sed commands mentioned above. | |
17363 | (echo ':t | |
17364 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
17365 | if test -z "$ac_sed_cmds"; then | |
17366 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
17367 | else | |
17368 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
17369 | fi | |
17370 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
17371 | ac_beg=$ac_end | |
17372 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
d15b04bd | 17373 | fi |
42ecbf5e DJ |
17374 | done |
17375 | if test -z "$ac_sed_cmds"; then | |
17376 | ac_sed_cmds=cat | |
252b5132 | 17377 | fi |
42ecbf5e | 17378 | fi # test -n "$CONFIG_FILES" |
252b5132 | 17379 | |
42ecbf5e DJ |
17380 | _ACEOF |
17381 | cat >>$CONFIG_STATUS <<\_ACEOF | |
17382 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
e5a52504 | 17383 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
42ecbf5e DJ |
17384 | case $ac_file in |
17385 | - | *:- | *:-:* ) # input from stdin | |
17386 | cat >$tmp/stdin | |
17387 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
17388 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
17389 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
17390 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
17391 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
17392 | esac |
17393 | ||
42ecbf5e DJ |
17394 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
17395 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
17396 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17397 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
17398 | X"$ac_file" : 'X\(//\)$' \| \ | |
17399 | X"$ac_file" : 'X\(/\)' \| \ | |
17400 | . : '\(.\)' 2>/dev/null || | |
17401 | echo X"$ac_file" | | |
17402 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
17403 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
17404 | /^X\(\/\/\)$/{ s//\1/; q; } | |
17405 | /^X\(\/\).*/{ s//\1/; q; } | |
17406 | s/.*/./; q'` | |
17407 | { if $as_mkdir_p; then | |
17408 | mkdir -p "$ac_dir" | |
d15b04bd | 17409 | else |
42ecbf5e DJ |
17410 | as_dir="$ac_dir" |
17411 | as_dirs= | |
17412 | while test ! -d "$as_dir"; do | |
17413 | as_dirs="$as_dir $as_dirs" | |
17414 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
17415 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17416 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
17417 | X"$as_dir" : 'X\(//\)$' \| \ | |
17418 | X"$as_dir" : 'X\(/\)' \| \ | |
17419 | . : '\(.\)' 2>/dev/null || | |
17420 | echo X"$as_dir" | | |
17421 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
17422 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
17423 | /^X\(\/\/\)$/{ s//\1/; q; } | |
17424 | /^X\(\/\).*/{ s//\1/; q; } | |
17425 | s/.*/./; q'` | |
17426 | done | |
17427 | test ! -n "$as_dirs" || mkdir $as_dirs | |
17428 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
17429 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
17430 | { (exit 1); exit 1; }; }; } | |
17431 | ||
17432 | ac_builddir=. | |
e5a52504 | 17433 | |
42ecbf5e DJ |
17434 | if test "$ac_dir" != .; then |
17435 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
17436 | # A "../" for each directory in $ac_dir_suffix. | |
17437 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
17438 | else | |
17439 | ac_dir_suffix= ac_top_builddir= | |
17440 | fi | |
17441 | ||
17442 | case $srcdir in | |
17443 | .) # No --srcdir option. We are building in place. | |
17444 | ac_srcdir=. | |
17445 | if test -z "$ac_top_builddir"; then | |
17446 | ac_top_srcdir=. | |
17447 | else | |
17448 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
17449 | fi ;; | |
17450 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
17451 | ac_srcdir=$srcdir$ac_dir_suffix; | |
17452 | ac_top_srcdir=$srcdir ;; | |
e5a52504 | 17453 | *) # Relative path. |
42ecbf5e DJ |
17454 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
17455 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
17456 | esac | |
252b5132 | 17457 | |
42ecbf5e DJ |
17458 | # Do not use `cd foo && pwd` to compute absolute paths, because |
17459 | # the directories may not exist. | |
17460 | case `pwd` in | |
17461 | .) ac_abs_builddir="$ac_dir";; | |
17462 | *) | |
17463 | case "$ac_dir" in | |
17464 | .) ac_abs_builddir=`pwd`;; | |
17465 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
17466 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
17467 | esac;; | |
17468 | esac | |
17469 | case $ac_abs_builddir in | |
17470 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
17471 | *) | |
17472 | case ${ac_top_builddir}. in | |
17473 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
17474 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
17475 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
17476 | esac;; | |
17477 | esac | |
17478 | case $ac_abs_builddir in | |
17479 | .) ac_abs_srcdir=$ac_srcdir;; | |
17480 | *) | |
17481 | case $ac_srcdir in | |
17482 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
17483 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
17484 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
17485 | esac;; | |
17486 | esac | |
17487 | case $ac_abs_builddir in | |
17488 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
17489 | *) | |
17490 | case $ac_top_srcdir in | |
17491 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
17492 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
17493 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
17494 | esac;; | |
17495 | esac | |
e5a52504 | 17496 | |
42ecbf5e DJ |
17497 | |
17498 | case $INSTALL in | |
17499 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
17500 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
d15b04bd | 17501 | esac |
e5a52504 | 17502 | |
7357c5b6 AM |
17503 | if test x"$ac_file" != x-; then |
17504 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
17505 | echo "$as_me: creating $ac_file" >&6;} | |
17506 | rm -f "$ac_file" | |
17507 | fi | |
42ecbf5e DJ |
17508 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
17509 | # use $as_me), people would be surprised to read: | |
17510 | # /* config.h. Generated by config.status. */ | |
17511 | if test x"$ac_file" = x-; then | |
17512 | configure_input= | |
17513 | else | |
17514 | configure_input="$ac_file. " | |
17515 | fi | |
17516 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
17517 | sed 's,.*/,,'` by configure." | |
17518 | ||
17519 | # First look for the input files in the build tree, otherwise in the | |
17520 | # src tree. | |
17521 | ac_file_inputs=`IFS=: | |
17522 | for f in $ac_file_in; do | |
17523 | case $f in | |
17524 | -) echo $tmp/stdin ;; | |
17525 | [\\/$]*) | |
17526 | # Absolute (can't be DOS-style, as IFS=:) | |
17527 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
17528 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
17529 | { (exit 1); exit 1; }; } | |
17530 | echo "$f";; | |
17531 | *) # Relative | |
17532 | if test -f "$f"; then | |
17533 | # Build tree | |
17534 | echo "$f" | |
17535 | elif test -f "$srcdir/$f"; then | |
17536 | # Source tree | |
17537 | echo "$srcdir/$f" | |
17538 | else | |
17539 | # /dev/null tree | |
17540 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
17541 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
17542 | { (exit 1); exit 1; }; } | |
17543 | fi;; | |
17544 | esac | |
17545 | done` || { (exit 1); exit 1; } | |
42ecbf5e DJ |
17546 | _ACEOF |
17547 | cat >>$CONFIG_STATUS <<_ACEOF | |
17548 | sed "$ac_vpsub | |
17549 | $extrasub | |
17550 | _ACEOF | |
17551 | cat >>$CONFIG_STATUS <<\_ACEOF | |
17552 | :t | |
17553 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
17554 | s,@configure_input@,$configure_input,;t t | |
17555 | s,@srcdir@,$ac_srcdir,;t t | |
17556 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
17557 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
17558 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
17559 | s,@builddir@,$ac_builddir,;t t | |
17560 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
17561 | s,@top_builddir@,$ac_top_builddir,;t t | |
17562 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
17563 | s,@INSTALL@,$ac_INSTALL,;t t | |
17564 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
17565 | rm -f $tmp/stdin | |
17566 | if test x"$ac_file" != x-; then | |
17567 | mv $tmp/out $ac_file | |
17568 | else | |
17569 | cat $tmp/out | |
17570 | rm -f $tmp/out | |
17571 | fi | |
17572 | ||
17573 | done | |
17574 | _ACEOF | |
17575 | cat >>$CONFIG_STATUS <<\_ACEOF | |
17576 | ||
17577 | # | |
17578 | # CONFIG_HEADER section. | |
17579 | # | |
252b5132 RH |
17580 | |
17581 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
17582 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
17583 | # | |
17584 | # ac_d sets the value in "#define NAME VALUE" lines. | |
42ecbf5e DJ |
17585 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
17586 | ac_dB='[ ].*$,\1#\2' | |
17587 | ac_dC=' ' | |
17588 | ac_dD=',;t' | |
17589 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
17590 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
17591 | ac_uB='$,\1#\2define\3' | |
252b5132 | 17592 | ac_uC=' ' |
42ecbf5e DJ |
17593 | ac_uD=',;t' |
17594 | ||
17595 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
252b5132 | 17596 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
42ecbf5e DJ |
17597 | case $ac_file in |
17598 | - | *:- | *:-:* ) # input from stdin | |
17599 | cat >$tmp/stdin | |
17600 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
17601 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
17602 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
17603 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
17604 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
17605 | esac |
17606 | ||
42ecbf5e DJ |
17607 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
17608 | echo "$as_me: creating $ac_file" >&6;} | |
17609 | ||
17610 | # First look for the input files in the build tree, otherwise in the | |
17611 | # src tree. | |
17612 | ac_file_inputs=`IFS=: | |
17613 | for f in $ac_file_in; do | |
17614 | case $f in | |
17615 | -) echo $tmp/stdin ;; | |
17616 | [\\/$]*) | |
17617 | # Absolute (can't be DOS-style, as IFS=:) | |
17618 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
17619 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
17620 | { (exit 1); exit 1; }; } | |
17621 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
17622 | echo "$f";; | |
17623 | *) # Relative | |
17624 | if test -f "$f"; then | |
17625 | # Build tree | |
17626 | echo "$f" | |
17627 | elif test -f "$srcdir/$f"; then | |
17628 | # Source tree | |
17629 | echo "$srcdir/$f" | |
17630 | else | |
17631 | # /dev/null tree | |
17632 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
17633 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
17634 | { (exit 1); exit 1; }; } | |
17635 | fi;; | |
17636 | esac | |
17637 | done` || { (exit 1); exit 1; } | |
17638 | # Remove the trailing spaces. | |
17639 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
17640 | ||
17641 | _ACEOF | |
17642 | ||
17643 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
17644 | # `conftest.undefs', that substitutes the proper values into | |
17645 | # config.h.in to produce config.h. The first handles `#define' | |
17646 | # templates, and the second `#undef' templates. | |
17647 | # And first: Protect against being on the right side of a sed subst in | |
17648 | # config.status. Protect against being in an unquoted here document | |
17649 | # in config.status. | |
17650 | rm -f conftest.defines conftest.undefs | |
17651 | # Using a here document instead of a string reduces the quoting nightmare. | |
17652 | # Putting comments in sed scripts is not portable. | |
17653 | # | |
17654 | # `end' is used to avoid that the second main sed command (meant for | |
17655 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
17656 | # See the Autoconf documentation for `clear'. | |
17657 | cat >confdef2sed.sed <<\_ACEOF | |
17658 | s/[\\&,]/\\&/g | |
17659 | s,[\\$`],\\&,g | |
17660 | t clear | |
17661 | : clear | |
17662 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
17663 | t end | |
17664 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
17665 | : end | |
17666 | _ACEOF | |
17667 | # If some macros were called several times there might be several times | |
17668 | # the same #defines, which is useless. Nevertheless, we may not want to | |
17669 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
17670 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
17671 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
17672 | rm -f confdef2sed.sed | |
252b5132 RH |
17673 | |
17674 | # This sed command replaces #undef with comments. This is necessary, for | |
17675 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
17676 | # on some systems where configure will not decide to define it. | |
42ecbf5e DJ |
17677 | cat >>conftest.undefs <<\_ACEOF |
17678 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
17679 | _ACEOF | |
17680 | ||
17681 | # Break up conftest.defines because some shells have a limit on the size | |
17682 | # of here documents, and old seds have small limits too (100 cmds). | |
17683 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
17684 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
17685 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
17686 | echo ' :' >>$CONFIG_STATUS | |
17687 | rm -f conftest.tail | |
17688 | while grep . conftest.defines >/dev/null | |
17689 | do | |
17690 | # Write a limited-size here document to $tmp/defines.sed. | |
17691 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
17692 | # Speed up: don't consider the non `#define' lines. | |
17693 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
17694 | # Work around the forget-to-reset-the-flag bug. | |
17695 | echo 't clr' >>$CONFIG_STATUS | |
17696 | echo ': clr' >>$CONFIG_STATUS | |
17697 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
17698 | echo 'CEOF | |
17699 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
17700 | rm -f $tmp/in | |
17701 | mv $tmp/out $tmp/in | |
17702 | ' >>$CONFIG_STATUS | |
17703 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
17704 | rm -f conftest.defines | |
17705 | mv conftest.tail conftest.defines | |
17706 | done | |
17707 | rm -f conftest.defines | |
17708 | echo ' fi # grep' >>$CONFIG_STATUS | |
17709 | echo >>$CONFIG_STATUS | |
252b5132 | 17710 | |
42ecbf5e DJ |
17711 | # Break up conftest.undefs because some shells have a limit on the size |
17712 | # of here documents, and old seds have small limits too (100 cmds). | |
17713 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
252b5132 | 17714 | rm -f conftest.tail |
42ecbf5e | 17715 | while grep . conftest.undefs >/dev/null |
252b5132 | 17716 | do |
42ecbf5e DJ |
17717 | # Write a limited-size here document to $tmp/undefs.sed. |
17718 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
17719 | # Speed up: don't consider the non `#undef' | |
17720 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
17721 | # Work around the forget-to-reset-the-flag bug. | |
17722 | echo 't clr' >>$CONFIG_STATUS | |
17723 | echo ': clr' >>$CONFIG_STATUS | |
17724 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
252b5132 | 17725 | echo 'CEOF |
42ecbf5e DJ |
17726 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
17727 | rm -f $tmp/in | |
17728 | mv $tmp/out $tmp/in | |
17729 | ' >>$CONFIG_STATUS | |
17730 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
17731 | rm -f conftest.undefs | |
17732 | mv conftest.tail conftest.undefs | |
252b5132 | 17733 | done |
42ecbf5e DJ |
17734 | rm -f conftest.undefs |
17735 | ||
17736 | cat >>$CONFIG_STATUS <<\_ACEOF | |
17737 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
17738 | # use $as_me), people would be surprised to read: | |
17739 | # /* config.h. Generated by config.status. */ | |
17740 | if test x"$ac_file" = x-; then | |
17741 | echo "/* Generated by configure. */" >$tmp/config.h | |
17742 | else | |
17743 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
17744 | fi | |
17745 | cat $tmp/in >>$tmp/config.h | |
17746 | rm -f $tmp/in | |
17747 | if test x"$ac_file" != x-; then | |
17748 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
17749 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
17750 | echo "$as_me: $ac_file is unchanged" >&6;} | |
17751 | else | |
17752 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
17753 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17754 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
17755 | X"$ac_file" : 'X\(//\)$' \| \ | |
17756 | X"$ac_file" : 'X\(/\)' \| \ | |
17757 | . : '\(.\)' 2>/dev/null || | |
17758 | echo X"$ac_file" | | |
17759 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
17760 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
17761 | /^X\(\/\/\)$/{ s//\1/; q; } | |
17762 | /^X\(\/\).*/{ s//\1/; q; } | |
17763 | s/.*/./; q'` | |
17764 | { if $as_mkdir_p; then | |
17765 | mkdir -p "$ac_dir" | |
252b5132 | 17766 | else |
42ecbf5e DJ |
17767 | as_dir="$ac_dir" |
17768 | as_dirs= | |
17769 | while test ! -d "$as_dir"; do | |
17770 | as_dirs="$as_dir $as_dirs" | |
17771 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
17772 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17773 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
17774 | X"$as_dir" : 'X\(//\)$' \| \ | |
17775 | X"$as_dir" : 'X\(/\)' \| \ | |
17776 | . : '\(.\)' 2>/dev/null || | |
17777 | echo X"$as_dir" | | |
17778 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
17779 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
17780 | /^X\(\/\/\)$/{ s//\1/; q; } | |
17781 | /^X\(\/\).*/{ s//\1/; q; } | |
17782 | s/.*/./; q'` | |
17783 | done | |
17784 | test ! -n "$as_dirs" || mkdir $as_dirs | |
17785 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
17786 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
17787 | { (exit 1); exit 1; }; }; } | |
17788 | ||
17789 | rm -f $ac_file | |
17790 | mv $tmp/config.h $ac_file | |
252b5132 | 17791 | fi |
42ecbf5e DJ |
17792 | else |
17793 | cat $tmp/config.h | |
17794 | rm -f $tmp/config.h | |
252b5132 | 17795 | fi |
42ecbf5e DJ |
17796 | # Compute $ac_file's index in $config_headers. |
17797 | _am_stamp_count=1 | |
17798 | for _am_header in $config_headers :; do | |
17799 | case $_am_header in | |
17800 | $ac_file | $ac_file:* ) | |
17801 | break ;; | |
17802 | * ) | |
17803 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
17804 | esac | |
17805 | done | |
17806 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
17807 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17808 | X$ac_file : 'X\(//\)[^/]' \| \ | |
17809 | X$ac_file : 'X\(//\)$' \| \ | |
17810 | X$ac_file : 'X\(/\)' \| \ | |
17811 | . : '\(.\)' 2>/dev/null || | |
17812 | echo X$ac_file | | |
17813 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
17814 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
17815 | /^X\(\/\/\)$/{ s//\1/; q; } | |
17816 | /^X\(\/\).*/{ s//\1/; q; } | |
17817 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
17818 | done | |
17819 | _ACEOF | |
17820 | cat >>$CONFIG_STATUS <<\_ACEOF | |
252b5132 | 17821 | |
42ecbf5e DJ |
17822 | # |
17823 | # CONFIG_COMMANDS section. | |
17824 | # | |
17825 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
17826 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
17827 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
17828 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
17829 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17830 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
17831 | X"$ac_dest" : 'X\(//\)$' \| \ | |
17832 | X"$ac_dest" : 'X\(/\)' \| \ | |
17833 | . : '\(.\)' 2>/dev/null || | |
17834 | echo X"$ac_dest" | | |
17835 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
17836 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
17837 | /^X\(\/\/\)$/{ s//\1/; q; } | |
17838 | /^X\(\/\).*/{ s//\1/; q; } | |
17839 | s/.*/./; q'` | |
17840 | { if $as_mkdir_p; then | |
17841 | mkdir -p "$ac_dir" | |
17842 | else | |
17843 | as_dir="$ac_dir" | |
17844 | as_dirs= | |
17845 | while test ! -d "$as_dir"; do | |
17846 | as_dirs="$as_dir $as_dirs" | |
17847 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
17848 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17849 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
17850 | X"$as_dir" : 'X\(//\)$' \| \ | |
17851 | X"$as_dir" : 'X\(/\)' \| \ | |
17852 | . : '\(.\)' 2>/dev/null || | |
17853 | echo X"$as_dir" | | |
17854 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
17855 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
17856 | /^X\(\/\/\)$/{ s//\1/; q; } | |
17857 | /^X\(\/\).*/{ s//\1/; q; } | |
17858 | s/.*/./; q'` | |
17859 | done | |
17860 | test ! -n "$as_dirs" || mkdir $as_dirs | |
17861 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
17862 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
17863 | { (exit 1); exit 1; }; }; } | |
252b5132 | 17864 | |
42ecbf5e | 17865 | ac_builddir=. |
e5a52504 | 17866 | |
42ecbf5e DJ |
17867 | if test "$ac_dir" != .; then |
17868 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
17869 | # A "../" for each directory in $ac_dir_suffix. | |
17870 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
17871 | else | |
17872 | ac_dir_suffix= ac_top_builddir= | |
17873 | fi | |
17874 | ||
17875 | case $srcdir in | |
17876 | .) # No --srcdir option. We are building in place. | |
17877 | ac_srcdir=. | |
17878 | if test -z "$ac_top_builddir"; then | |
17879 | ac_top_srcdir=. | |
17880 | else | |
17881 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
17882 | fi ;; | |
17883 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
17884 | ac_srcdir=$srcdir$ac_dir_suffix; | |
17885 | ac_top_srcdir=$srcdir ;; | |
17886 | *) # Relative path. | |
17887 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
17888 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
17889 | esac | |
17890 | ||
17891 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
17892 | # the directories may not exist. | |
17893 | case `pwd` in | |
17894 | .) ac_abs_builddir="$ac_dir";; | |
17895 | *) | |
17896 | case "$ac_dir" in | |
17897 | .) ac_abs_builddir=`pwd`;; | |
17898 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
17899 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
17900 | esac;; | |
17901 | esac | |
17902 | case $ac_abs_builddir in | |
17903 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
17904 | *) | |
17905 | case ${ac_top_builddir}. in | |
17906 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
17907 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
17908 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
17909 | esac;; | |
17910 | esac | |
17911 | case $ac_abs_builddir in | |
17912 | .) ac_abs_srcdir=$ac_srcdir;; | |
17913 | *) | |
17914 | case $ac_srcdir in | |
17915 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
17916 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
17917 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
17918 | esac;; | |
17919 | esac | |
17920 | case $ac_abs_builddir in | |
17921 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
17922 | *) | |
17923 | case $ac_top_srcdir in | |
17924 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
17925 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
17926 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
17927 | esac;; | |
17928 | esac | |
e5a52504 | 17929 | |
42ecbf5e DJ |
17930 | |
17931 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
17932 | echo "$as_me: executing $ac_dest commands" >&6;} | |
17933 | case $ac_dest in | |
17934 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
17935 | # Strip MF so we end up with the name of the file. | |
17936 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
17937 | # Check whether this is an Automake generated Makefile or not. | |
17938 | # We used to match only the files named `Makefile.in', but | |
17939 | # some people rename them; so instead we look at the file content. | |
17940 | # Grep'ing the first line is not enough: some people post-process | |
17941 | # each Makefile.in and add a new line on top of each file to say so. | |
17942 | # So let's grep whole file. | |
17943 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
17944 | dirpart=`(dirname "$mf") 2>/dev/null || | |
17945 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17946 | X"$mf" : 'X\(//\)[^/]' \| \ | |
17947 | X"$mf" : 'X\(//\)$' \| \ | |
17948 | X"$mf" : 'X\(/\)' \| \ | |
17949 | . : '\(.\)' 2>/dev/null || | |
17950 | echo X"$mf" | | |
17951 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
17952 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
17953 | /^X\(\/\/\)$/{ s//\1/; q; } | |
17954 | /^X\(\/\).*/{ s//\1/; q; } | |
17955 | s/.*/./; q'` | |
17956 | else | |
17957 | continue | |
17958 | fi | |
17959 | # Extract the definition of DEPDIR, am__include, and am__quote | |
17960 | # from the Makefile without running `make'. | |
17961 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
17962 | test -z "$DEPDIR" && continue | |
17963 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
17964 | test -z "am__include" && continue | |
17965 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
17966 | # When using ansi2knr, U may be empty or an underscore; expand it | |
17967 | U=`sed -n 's/^U = //p' < "$mf"` | |
17968 | # Find all dependency output files, they are included files with | |
17969 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
17970 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
17971 | # expansion. | |
17972 | for file in `sed -n " | |
17973 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
17974 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
17975 | # Make sure the directory exists. | |
17976 | test -f "$dirpart/$file" && continue | |
17977 | fdir=`(dirname "$file") 2>/dev/null || | |
17978 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17979 | X"$file" : 'X\(//\)[^/]' \| \ | |
17980 | X"$file" : 'X\(//\)$' \| \ | |
17981 | X"$file" : 'X\(/\)' \| \ | |
17982 | . : '\(.\)' 2>/dev/null || | |
17983 | echo X"$file" | | |
17984 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
17985 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
17986 | /^X\(\/\/\)$/{ s//\1/; q; } | |
17987 | /^X\(\/\).*/{ s//\1/; q; } | |
17988 | s/.*/./; q'` | |
17989 | { if $as_mkdir_p; then | |
17990 | mkdir -p $dirpart/$fdir | |
17991 | else | |
17992 | as_dir=$dirpart/$fdir | |
17993 | as_dirs= | |
17994 | while test ! -d "$as_dir"; do | |
17995 | as_dirs="$as_dir $as_dirs" | |
17996 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
17997 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17998 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
17999 | X"$as_dir" : 'X\(//\)$' \| \ | |
18000 | X"$as_dir" : 'X\(/\)' \| \ | |
18001 | . : '\(.\)' 2>/dev/null || | |
18002 | echo X"$as_dir" | | |
18003 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
18004 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
18005 | /^X\(\/\/\)$/{ s//\1/; q; } | |
18006 | /^X\(\/\).*/{ s//\1/; q; } | |
18007 | s/.*/./; q'` | |
18008 | done | |
18009 | test ! -n "$as_dirs" || mkdir $as_dirs | |
18010 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
18011 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
18012 | { (exit 1); exit 1; }; }; } | |
18013 | ||
18014 | # echo "creating $dirpart/$file" | |
18015 | echo '# dummy' > "$dirpart/$file" | |
18016 | done | |
18017 | done | |
d7040cdb SE |
18018 | ;; |
18019 | libtool ) | |
18020 | ||
18021 | # See if we are running on zsh, and set the options which allow our | |
18022 | # commands through without removal of \ escapes. | |
18023 | if test -n "${ZSH_VERSION+set}" ; then | |
18024 | setopt NO_GLOB_SUBST | |
18025 | fi | |
18026 | ||
18027 | cfgfile="${ofile}T" | |
18028 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
18029 | $RM "$cfgfile" | |
18030 | ||
18031 | cat <<_LT_EOF >> "$cfgfile" | |
18032 | #! $SHELL | |
18033 | ||
18034 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
718a6fd8 | 18035 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
d7040cdb SE |
18036 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18037 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
18038 | # | |
718a6fd8 SE |
18039 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
18040 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
18041 | # Written by Gordon Matzigkeit, 1996 | |
d7040cdb | 18042 | # |
718a6fd8 | 18043 | # This file is part of GNU Libtool. |
d7040cdb | 18044 | # |
718a6fd8 SE |
18045 | # GNU Libtool is free software; you can redistribute it and/or |
18046 | # modify it under the terms of the GNU General Public License as | |
18047 | # published by the Free Software Foundation; either version 2 of | |
18048 | # the License, or (at your option) any later version. | |
d7040cdb | 18049 | # |
718a6fd8 SE |
18050 | # As a special exception to the GNU General Public License, |
18051 | # if you distribute this file as part of a program or library that | |
18052 | # is built using GNU Libtool, you may include this file under the | |
18053 | # same distribution terms that you use for the rest of that program. | |
d7040cdb | 18054 | # |
718a6fd8 SE |
18055 | # GNU Libtool is distributed in the hope that it will be useful, |
18056 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18057 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18058 | # GNU General Public License for more details. | |
d7040cdb | 18059 | # |
718a6fd8 SE |
18060 | # You should have received a copy of the GNU General Public License |
18061 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
18062 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
18063 | # obtained by writing to the Free Software Foundation, Inc., | |
18064 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
d7040cdb SE |
18065 | |
18066 | ||
18067 | # The names of the tagged configurations supported by this script. | |
18068 | available_tags="" | |
18069 | ||
18070 | # ### BEGIN LIBTOOL CONFIG | |
18071 | ||
18072 | # Which release of libtool.m4 was used? | |
18073 | macro_version=$macro_version | |
18074 | macro_revision=$macro_revision | |
18075 | ||
18076 | # Whether or not to build shared libraries. | |
18077 | build_libtool_libs=$enable_shared | |
18078 | ||
18079 | # Whether or not to build static libraries. | |
18080 | build_old_libs=$enable_static | |
18081 | ||
18082 | # What type of objects to build. | |
18083 | pic_mode=$pic_mode | |
18084 | ||
18085 | # Whether or not to optimize for fast installation. | |
18086 | fast_install=$enable_fast_install | |
18087 | ||
18088 | # The host system. | |
18089 | host_alias=$host_alias | |
18090 | host=$host | |
18091 | host_os=$host_os | |
18092 | ||
18093 | # The build system. | |
18094 | build_alias=$build_alias | |
18095 | build=$build | |
18096 | build_os=$build_os | |
18097 | ||
18098 | # A sed program that does not truncate output. | |
18099 | SED=$lt_SED | |
18100 | ||
18101 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
18102 | Xsed="\$SED -e 1s/^X//" | |
18103 | ||
18104 | # A grep program that handles long lines. | |
18105 | GREP=$lt_GREP | |
18106 | ||
18107 | # An ERE matcher. | |
18108 | EGREP=$lt_EGREP | |
18109 | ||
18110 | # A literal string matcher. | |
18111 | FGREP=$lt_FGREP | |
18112 | ||
18113 | # A BSD- or MS-compatible name lister. | |
18114 | NM=$lt_NM | |
18115 | ||
18116 | # Whether we need soft or hard links. | |
18117 | LN_S=$lt_LN_S | |
18118 | ||
18119 | # What is the maximum length of a command? | |
18120 | max_cmd_len=$max_cmd_len | |
18121 | ||
18122 | # Object file suffix (normally "o"). | |
18123 | objext=$ac_objext | |
18124 | ||
18125 | # Executable file suffix (normally ""). | |
18126 | exeext=$exeext | |
18127 | ||
18128 | # whether the shell understands "unset". | |
18129 | lt_unset=$lt_unset | |
18130 | ||
18131 | # turn spaces into newlines. | |
18132 | SP2NL=$lt_lt_SP2NL | |
18133 | ||
18134 | # turn newlines into spaces. | |
18135 | NL2SP=$lt_lt_NL2SP | |
18136 | ||
18137 | # How to create reloadable object files. | |
18138 | reload_flag=$lt_reload_flag | |
18139 | reload_cmds=$lt_reload_cmds | |
18140 | ||
718a6fd8 SE |
18141 | # An object symbol dumper. |
18142 | OBJDUMP=$lt_OBJDUMP | |
18143 | ||
d7040cdb SE |
18144 | # Method to check whether dependent libraries are shared objects. |
18145 | deplibs_check_method=$lt_deplibs_check_method | |
18146 | ||
18147 | # Command to use when deplibs_check_method == "file_magic". | |
18148 | file_magic_cmd=$lt_file_magic_cmd | |
18149 | ||
18150 | # The archiver. | |
18151 | AR=$lt_AR | |
18152 | AR_FLAGS=$lt_AR_FLAGS | |
18153 | ||
18154 | # A symbol stripping program. | |
18155 | STRIP=$lt_STRIP | |
18156 | ||
18157 | # Commands used to install an old-style archive. | |
18158 | RANLIB=$lt_RANLIB | |
18159 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
18160 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
18161 | ||
18162 | # A C compiler. | |
18163 | LTCC=$lt_CC | |
18164 | ||
18165 | # LTCC compiler flags. | |
18166 | LTCFLAGS=$lt_CFLAGS | |
18167 | ||
18168 | # Take the output of nm and produce a listing of raw symbols and C names. | |
18169 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
18170 | ||
18171 | # Transform the output of nm in a proper C declaration. | |
18172 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
18173 | ||
18174 | # Transform the output of nm in a C name address pair. | |
18175 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
18176 | ||
718a6fd8 SE |
18177 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
18178 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
18179 | ||
d7040cdb SE |
18180 | # The name of the directory that contains temporary libtool files. |
18181 | objdir=$objdir | |
18182 | ||
18183 | # Shell to use when invoking shell scripts. | |
18184 | SHELL=$lt_SHELL | |
18185 | ||
18186 | # An echo program that does not interpret backslashes. | |
18187 | ECHO=$lt_ECHO | |
18188 | ||
18189 | # Used to examine libraries when file_magic_cmd begins with "file". | |
18190 | MAGIC_CMD=$MAGIC_CMD | |
18191 | ||
18192 | # Must we lock files when doing compilation? | |
18193 | need_locks=$lt_need_locks | |
18194 | ||
718a6fd8 SE |
18195 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
18196 | DSYMUTIL=$lt_DSYMUTIL | |
18197 | ||
18198 | # Tool to change global to local symbols on Mac OS X. | |
18199 | NMEDIT=$lt_NMEDIT | |
18200 | ||
18201 | # Tool to manipulate fat objects and archives on Mac OS X. | |
18202 | LIPO=$lt_LIPO | |
18203 | ||
18204 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
18205 | OTOOL=$lt_OTOOL | |
18206 | ||
18207 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
18208 | OTOOL64=$lt_OTOOL64 | |
18209 | ||
d7040cdb SE |
18210 | # Old archive suffix (normally "a"). |
18211 | libext=$libext | |
18212 | ||
18213 | # Shared library suffix (normally ".so"). | |
18214 | shrext_cmds=$lt_shrext_cmds | |
18215 | ||
18216 | # The commands to extract the exported symbol list from a shared archive. | |
18217 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
18218 | ||
18219 | # Variables whose values should be saved in libtool wrapper scripts and | |
18220 | # restored at link time. | |
18221 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
18222 | ||
18223 | # Do we need the "lib" prefix for modules? | |
18224 | need_lib_prefix=$need_lib_prefix | |
18225 | ||
18226 | # Do we need a version for libraries? | |
18227 | need_version=$need_version | |
18228 | ||
18229 | # Library versioning type. | |
18230 | version_type=$version_type | |
18231 | ||
18232 | # Shared library runtime path variable. | |
18233 | runpath_var=$runpath_var | |
18234 | ||
18235 | # Shared library path variable. | |
18236 | shlibpath_var=$shlibpath_var | |
18237 | ||
18238 | # Is shlibpath searched before the hard-coded library search path? | |
18239 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
18240 | ||
18241 | # Format of library name prefix. | |
18242 | libname_spec=$lt_libname_spec | |
18243 | ||
18244 | # List of archive names. First name is the real one, the rest are links. | |
18245 | # The last name is the one that the linker finds with -lNAME | |
18246 | library_names_spec=$lt_library_names_spec | |
18247 | ||
18248 | # The coded name of the library, if different from the real name. | |
18249 | soname_spec=$lt_soname_spec | |
18250 | ||
18251 | # Command to use after installation of a shared archive. | |
18252 | postinstall_cmds=$lt_postinstall_cmds | |
18253 | ||
18254 | # Command to use after uninstallation of a shared archive. | |
18255 | postuninstall_cmds=$lt_postuninstall_cmds | |
18256 | ||
18257 | # Commands used to finish a libtool library installation in a directory. | |
18258 | finish_cmds=$lt_finish_cmds | |
18259 | ||
18260 | # As "finish_cmds", except a single script fragment to be evaled but | |
18261 | # not shown. | |
18262 | finish_eval=$lt_finish_eval | |
18263 | ||
18264 | # Whether we should hardcode library paths into libraries. | |
18265 | hardcode_into_libs=$hardcode_into_libs | |
18266 | ||
18267 | # Compile-time system search path for libraries. | |
18268 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
18269 | ||
18270 | # Run-time system search path for libraries. | |
18271 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
18272 | ||
18273 | # Whether dlopen is supported. | |
18274 | dlopen_support=$enable_dlopen | |
18275 | ||
18276 | # Whether dlopen of programs is supported. | |
18277 | dlopen_self=$enable_dlopen_self | |
18278 | ||
18279 | # Whether dlopen of statically linked programs is supported. | |
18280 | dlopen_self_static=$enable_dlopen_self_static | |
18281 | ||
18282 | # Commands to strip libraries. | |
18283 | old_striplib=$lt_old_striplib | |
18284 | striplib=$lt_striplib | |
18285 | ||
18286 | ||
18287 | # The linker used to build libraries. | |
18288 | LD=$lt_LD | |
18289 | ||
18290 | # Commands used to build an old-style archive. | |
18291 | old_archive_cmds=$lt_old_archive_cmds | |
18292 | ||
18293 | # A language specific compiler. | |
18294 | CC=$lt_compiler | |
18295 | ||
18296 | # Is the compiler the GNU compiler? | |
18297 | with_gcc=$GCC | |
18298 | ||
18299 | # Compiler flag to turn off builtin functions. | |
18300 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
18301 | ||
18302 | # How to pass a linker flag through the compiler. | |
18303 | wl=$lt_lt_prog_compiler_wl | |
18304 | ||
18305 | # Additional compiler flags for building library objects. | |
18306 | pic_flag=$lt_lt_prog_compiler_pic | |
18307 | ||
18308 | # Compiler flag to prevent dynamic linking. | |
18309 | link_static_flag=$lt_lt_prog_compiler_static | |
18310 | ||
18311 | # Does compiler simultaneously support -c and -o options? | |
18312 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
18313 | ||
18314 | # Whether or not to add -lc for building shared libraries. | |
18315 | build_libtool_need_lc=$archive_cmds_need_lc | |
18316 | ||
18317 | # Whether or not to disallow shared libs when runtime libs are static. | |
18318 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
18319 | ||
18320 | # Compiler flag to allow reflexive dlopens. | |
18321 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
18322 | ||
18323 | # Compiler flag to generate shared objects directly from archives. | |
18324 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
18325 | ||
18326 | # Whether the compiler copes with passing no objects directly. | |
18327 | compiler_needs_object=$lt_compiler_needs_object | |
18328 | ||
18329 | # Create an old-style archive from a shared archive. | |
18330 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
18331 | ||
18332 | # Create a temporary old-style archive to link instead of a shared archive. | |
18333 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
18334 | ||
18335 | # Commands used to build a shared archive. | |
18336 | archive_cmds=$lt_archive_cmds | |
18337 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
18338 | ||
18339 | # Commands used to build a loadable module if different from building | |
18340 | # a shared archive. | |
18341 | module_cmds=$lt_module_cmds | |
18342 | module_expsym_cmds=$lt_module_expsym_cmds | |
18343 | ||
18344 | # Whether we are building with GNU ld or not. | |
18345 | with_gnu_ld=$lt_with_gnu_ld | |
18346 | ||
18347 | # Flag that allows shared libraries with undefined symbols to be built. | |
18348 | allow_undefined_flag=$lt_allow_undefined_flag | |
18349 | ||
18350 | # Flag that enforces no undefined symbols. | |
18351 | no_undefined_flag=$lt_no_undefined_flag | |
18352 | ||
18353 | # Flag to hardcode \$libdir into a binary during linking. | |
18354 | # This must work even if \$libdir does not exist | |
18355 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
18356 | ||
18357 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
18358 | # during linking. This must work even if \$libdir does not exist. | |
18359 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
18360 | ||
18361 | # Whether we need a single "-rpath" flag with a separated argument. | |
18362 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
18363 | ||
18364 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
18365 | # DIR into the resulting binary. | |
18366 | hardcode_direct=$hardcode_direct | |
18367 | ||
18368 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
18369 | # DIR into the resulting binary and the resulting library dependency is | |
18370 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
18371 | # library is relocated. | |
18372 | hardcode_direct_absolute=$hardcode_direct_absolute | |
18373 | ||
18374 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
18375 | # into the resulting binary. | |
18376 | hardcode_minus_L=$hardcode_minus_L | |
18377 | ||
18378 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
18379 | # into the resulting binary. | |
18380 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
18381 | ||
18382 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
18383 | # into the library and all subsequent libraries and executables linked | |
18384 | # against it. | |
18385 | hardcode_automatic=$hardcode_automatic | |
18386 | ||
18387 | # Set to yes if linker adds runtime paths of dependent libraries | |
18388 | # to runtime path list. | |
18389 | inherit_rpath=$inherit_rpath | |
18390 | ||
18391 | # Whether libtool must link a program against all its dependency libraries. | |
18392 | link_all_deplibs=$link_all_deplibs | |
18393 | ||
18394 | # Fix the shell variable \$srcfile for the compiler. | |
18395 | fix_srcfile_path=$lt_fix_srcfile_path | |
18396 | ||
18397 | # Set to "yes" if exported symbols are required. | |
18398 | always_export_symbols=$always_export_symbols | |
18399 | ||
18400 | # The commands to list exported symbols. | |
18401 | export_symbols_cmds=$lt_export_symbols_cmds | |
18402 | ||
18403 | # Symbols that should not be listed in the preloaded symbols. | |
18404 | exclude_expsyms=$lt_exclude_expsyms | |
18405 | ||
18406 | # Symbols that must always be exported. | |
18407 | include_expsyms=$lt_include_expsyms | |
18408 | ||
18409 | # Commands necessary for linking programs (against libraries) with templates. | |
18410 | prelink_cmds=$lt_prelink_cmds | |
18411 | ||
18412 | # Specify filename containing input files. | |
18413 | file_list_spec=$lt_file_list_spec | |
18414 | ||
18415 | # How to hardcode a shared library path into an executable. | |
18416 | hardcode_action=$hardcode_action | |
18417 | ||
18418 | # ### END LIBTOOL CONFIG | |
18419 | ||
18420 | _LT_EOF | |
18421 | ||
18422 | case $host_os in | |
18423 | aix3*) | |
18424 | cat <<\_LT_EOF >> "$cfgfile" | |
18425 | # AIX sometimes has problems with the GCC collect2 program. For some | |
18426 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
18427 | # vanish in a puff of smoke. | |
18428 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
18429 | COLLECT_NAMES= | |
18430 | export COLLECT_NAMES | |
18431 | fi | |
18432 | _LT_EOF | |
18433 | ;; | |
18434 | esac | |
18435 | ||
18436 | ||
18437 | ltmain="$ac_aux_dir/ltmain.sh" | |
18438 | ||
18439 | ||
18440 | # We use sed instead of cat because bash on DJGPP gets confused if | |
18441 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
18442 | # text mode, it properly converts lines to CR/LF. This bash problem | |
18443 | # is reportedly fixed, but why not run on old versions too? | |
18444 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
18445 | || (rm -f "$cfgfile"; exit 1) | |
18446 | ||
18447 | case $xsi_shell in | |
18448 | yes) | |
18449 | cat << \_LT_EOF >> "$cfgfile" | |
718a6fd8 | 18450 | |
d7040cdb SE |
18451 | # func_dirname file append nondir_replacement |
18452 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
18453 | # otherwise set result to NONDIR_REPLACEMENT. | |
18454 | func_dirname () | |
18455 | { | |
18456 | case ${1} in | |
18457 | */*) func_dirname_result="${1%/*}${2}" ;; | |
18458 | * ) func_dirname_result="${3}" ;; | |
18459 | esac | |
18460 | } | |
18461 | ||
18462 | # func_basename file | |
18463 | func_basename () | |
18464 | { | |
18465 | func_basename_result="${1##*/}" | |
18466 | } | |
18467 | ||
718a6fd8 SE |
18468 | # func_dirname_and_basename file append nondir_replacement |
18469 | # perform func_basename and func_dirname in a single function | |
18470 | # call: | |
18471 | # dirname: Compute the dirname of FILE. If nonempty, | |
18472 | # add APPEND to the result, otherwise set result | |
18473 | # to NONDIR_REPLACEMENT. | |
18474 | # value returned in "$func_dirname_result" | |
18475 | # basename: Compute filename of FILE. | |
18476 | # value retuned in "$func_basename_result" | |
18477 | # Implementation must be kept synchronized with func_dirname | |
18478 | # and func_basename. For efficiency, we do not delegate to | |
18479 | # those functions but instead duplicate the functionality here. | |
18480 | func_dirname_and_basename () | |
18481 | { | |
18482 | case ${1} in | |
18483 | */*) func_dirname_result="${1%/*}${2}" ;; | |
18484 | * ) func_dirname_result="${3}" ;; | |
18485 | esac | |
18486 | func_basename_result="${1##*/}" | |
18487 | } | |
18488 | ||
d7040cdb SE |
18489 | # func_stripname prefix suffix name |
18490 | # strip PREFIX and SUFFIX off of NAME. | |
18491 | # PREFIX and SUFFIX must not contain globbing or regex special | |
18492 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
18493 | # dot (in which case that matches only a dot). | |
18494 | func_stripname () | |
18495 | { | |
18496 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
18497 | # positional parameters, so assign one to ordinary parameter first. | |
18498 | func_stripname_result=${3} | |
18499 | func_stripname_result=${func_stripname_result#"${1}"} | |
18500 | func_stripname_result=${func_stripname_result%"${2}"} | |
18501 | } | |
18502 | ||
18503 | # func_opt_split | |
18504 | func_opt_split () | |
18505 | { | |
18506 | func_opt_split_opt=${1%%=*} | |
18507 | func_opt_split_arg=${1#*=} | |
18508 | } | |
18509 | ||
18510 | # func_lo2o object | |
18511 | func_lo2o () | |
18512 | { | |
18513 | case ${1} in | |
18514 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
18515 | *) func_lo2o_result=${1} ;; | |
18516 | esac | |
18517 | } | |
718a6fd8 SE |
18518 | |
18519 | # func_xform libobj-or-source | |
18520 | func_xform () | |
18521 | { | |
18522 | func_xform_result=${1%.*}.lo | |
18523 | } | |
18524 | ||
18525 | # func_arith arithmetic-term... | |
18526 | func_arith () | |
18527 | { | |
18528 | func_arith_result=$(( $* )) | |
18529 | } | |
18530 | ||
18531 | # func_len string | |
18532 | # STRING may not start with a hyphen. | |
18533 | func_len () | |
18534 | { | |
18535 | func_len_result=${#1} | |
18536 | } | |
18537 | ||
d7040cdb SE |
18538 | _LT_EOF |
18539 | ;; | |
18540 | *) # Bourne compatible functions. | |
18541 | cat << \_LT_EOF >> "$cfgfile" | |
718a6fd8 | 18542 | |
d7040cdb SE |
18543 | # func_dirname file append nondir_replacement |
18544 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
18545 | # otherwise set result to NONDIR_REPLACEMENT. | |
18546 | func_dirname () | |
18547 | { | |
18548 | # Extract subdirectory from the argument. | |
18549 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
18550 | if test "X$func_dirname_result" = "X${1}"; then | |
18551 | func_dirname_result="${3}" | |
18552 | else | |
18553 | func_dirname_result="$func_dirname_result${2}" | |
18554 | fi | |
18555 | } | |
18556 | ||
18557 | # func_basename file | |
18558 | func_basename () | |
18559 | { | |
18560 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
18561 | } | |
18562 | ||
718a6fd8 | 18563 | |
d7040cdb SE |
18564 | # func_stripname prefix suffix name |
18565 | # strip PREFIX and SUFFIX off of NAME. | |
18566 | # PREFIX and SUFFIX must not contain globbing or regex special | |
18567 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
18568 | # dot (in which case that matches only a dot). | |
18569 | # func_strip_suffix prefix name | |
18570 | func_stripname () | |
18571 | { | |
18572 | case ${2} in | |
18573 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
18574 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
18575 | *) func_stripname_result=`$ECHO "X${3}" \ | |
18576 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
18577 | esac | |
18578 | } | |
18579 | ||
18580 | # sed scripts: | |
18581 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
18582 | my_sed_long_arg='1s/^-[^=]*=//' | |
18583 | ||
18584 | # func_opt_split | |
18585 | func_opt_split () | |
18586 | { | |
18587 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
18588 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
18589 | } | |
18590 | ||
18591 | # func_lo2o object | |
18592 | func_lo2o () | |
18593 | { | |
18594 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
18595 | } | |
718a6fd8 SE |
18596 | |
18597 | # func_xform libobj-or-source | |
18598 | func_xform () | |
18599 | { | |
18600 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
18601 | } | |
18602 | ||
18603 | # func_arith arithmetic-term... | |
18604 | func_arith () | |
18605 | { | |
18606 | func_arith_result=`expr "$@"` | |
18607 | } | |
18608 | ||
18609 | # func_len string | |
18610 | # STRING may not start with a hyphen. | |
18611 | func_len () | |
18612 | { | |
18613 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
18614 | } | |
18615 | ||
d7040cdb SE |
18616 | _LT_EOF |
18617 | esac | |
18618 | ||
18619 | case $lt_shell_append in | |
18620 | yes) | |
18621 | cat << \_LT_EOF >> "$cfgfile" | |
18622 | ||
18623 | # func_append var value | |
18624 | # Append VALUE to the end of shell variable VAR. | |
18625 | func_append () | |
18626 | { | |
18627 | eval "$1+=\$2" | |
18628 | } | |
18629 | _LT_EOF | |
18630 | ;; | |
18631 | *) | |
18632 | cat << \_LT_EOF >> "$cfgfile" | |
18633 | ||
18634 | # func_append var value | |
18635 | # Append VALUE to the end of shell variable VAR. | |
18636 | func_append () | |
18637 | { | |
18638 | eval "$1=\$$1\$2" | |
18639 | } | |
718a6fd8 | 18640 | |
d7040cdb SE |
18641 | _LT_EOF |
18642 | ;; | |
18643 | esac | |
18644 | ||
18645 | ||
18646 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
18647 | || (rm -f "$cfgfile"; exit 1) | |
18648 | ||
18649 | mv -f "$cfgfile" "$ofile" || | |
18650 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
18651 | chmod +x "$ofile" | |
18652 | ||
42ecbf5e | 18653 | ;; |
20e95c23 DJ |
18654 | default-1 ) |
18655 | for ac_file in $CONFIG_FILES; do | |
18656 | # Support "outfile[:infile[:infile...]]" | |
18657 | case "$ac_file" in | |
18658 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
18659 | esac | |
18660 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
18661 | case "$ac_file" in */Makefile.in) | |
18662 | # Adjust a relative srcdir. | |
18663 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
18664 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
18665 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
18666 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
18667 | # In autoconf-2.50 it is called $srcdir. | |
18668 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
18669 | case "$ac_given_srcdir" in | |
18670 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
18671 | /*) top_srcdir="$ac_given_srcdir" ;; | |
18672 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
18673 | esac | |
18674 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
18675 | rm -f "$ac_dir/POTFILES" | |
18676 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
18677 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
18678 | POMAKEFILEDEPS="POTFILES.in" | |
18679 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
18680 | # on $ac_dir but don't depend on user-specified configuration | |
18681 | # parameters. | |
18682 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
18683 | # The LINGUAS file contains the set of available languages. | |
18684 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
18685 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
18686 | fi | |
18687 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
18688 | # Hide the ALL_LINGUAS assigment from automake. | |
18689 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
18690 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
18691 | else | |
18692 | # The set of available languages was given in configure.in. | |
18693 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
18694 | fi | |
18695 | case "$ac_given_srcdir" in | |
18696 | .) srcdirpre= ;; | |
18697 | *) srcdirpre='$(srcdir)/' ;; | |
18698 | esac | |
18699 | POFILES= | |
18700 | GMOFILES= | |
18701 | UPDATEPOFILES= | |
18702 | DUMMYPOFILES= | |
18703 | for lang in $ALL_LINGUAS; do | |
18704 | POFILES="$POFILES $srcdirpre$lang.po" | |
18705 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
18706 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
18707 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
18708 | done | |
18709 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
18710 | # environment variable. | |
18711 | INST_LINGUAS= | |
18712 | if test -n "$ALL_LINGUAS"; then | |
18713 | for presentlang in $ALL_LINGUAS; do | |
18714 | useit=no | |
18715 | if test "%UNSET%" != "$LINGUAS"; then | |
18716 | desiredlanguages="$LINGUAS" | |
18717 | else | |
18718 | desiredlanguages="$ALL_LINGUAS" | |
18719 | fi | |
18720 | for desiredlang in $desiredlanguages; do | |
18721 | # Use the presentlang catalog if desiredlang is | |
18722 | # a. equal to presentlang, or | |
18723 | # b. a variant of presentlang (because in this case, | |
18724 | # presentlang can be used as a fallback for messages | |
18725 | # which are not translated in the desiredlang catalog). | |
18726 | case "$desiredlang" in | |
18727 | "$presentlang"*) useit=yes;; | |
18728 | esac | |
18729 | done | |
18730 | if test $useit = yes; then | |
18731 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
18732 | fi | |
18733 | done | |
18734 | fi | |
18735 | CATALOGS= | |
18736 | if test -n "$INST_LINGUAS"; then | |
18737 | for lang in $INST_LINGUAS; do | |
18738 | CATALOGS="$CATALOGS $lang.gmo" | |
18739 | done | |
18740 | fi | |
18741 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
18742 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" | |
18743 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
18744 | if test -f "$f"; then | |
18745 | case "$f" in | |
18746 | *.orig | *.bak | *~) ;; | |
18747 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
18748 | esac | |
18749 | fi | |
18750 | done | |
18751 | fi | |
18752 | ;; | |
18753 | esac | |
18754 | done ;; | |
42ecbf5e DJ |
18755 | esac |
18756 | done | |
18757 | _ACEOF | |
e5a52504 | 18758 | |
42ecbf5e DJ |
18759 | cat >>$CONFIG_STATUS <<\_ACEOF |
18760 | ||
18761 | { (exit 0); exit 0; } | |
18762 | _ACEOF | |
252b5132 | 18763 | chmod +x $CONFIG_STATUS |
42ecbf5e DJ |
18764 | ac_clean_files=$ac_clean_files_save |
18765 | ||
18766 | ||
18767 | # configure is writing to config.log, and then calls config.status. | |
18768 | # config.status does its own redirection, appending to config.log. | |
18769 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
18770 | # by configure, so config.status won't be able to write to it; its | |
18771 | # output is simply discarded. So we exec the FD to /dev/null, | |
18772 | # effectively closing config.log, so it can be properly (re)opened and | |
18773 | # appended to by config.status. When coming back to configure, we | |
18774 | # need to make the FD available again. | |
18775 | if test "$no_create" != yes; then | |
18776 | ac_cs_success=: | |
18777 | ac_config_status_args= | |
18778 | test "$silent" = yes && | |
18779 | ac_config_status_args="$ac_config_status_args --quiet" | |
18780 | exec 5>/dev/null | |
18781 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
18782 | exec 5>>config.log | |
18783 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
18784 | # would make configure fail if this is the last instruction. | |
18785 | $ac_cs_success || { (exit 1); exit 1; } | |
18786 | fi | |
252b5132 | 18787 |