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="ldmain.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 | ||
ce2cded5 | 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 use_sysroot TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS NO_WERROR LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE YACC LEX LEXLIB LEX_OUTPUT_ROOT MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE HDEFINES HOSTING_CRT0 HOSTING_LIBS NATIVE_LIB_DIRS STRINGIFY EMUL EMULATION_OFILES EMUL_EXTRA_OFILES LIB_PATH EMULATION_LIBPATH TESTBFDLIB datarootdir docdir htmldir LIBOBJS LTLIBOBJS' |
42ecbf5e | 462 | ac_subst_files='TDIRS' |
252b5132 RH |
463 | |
464 | # Initialize some variables set by options. | |
42ecbf5e DJ |
465 | ac_init_help= |
466 | ac_init_version=false | |
252b5132 RH |
467 | # The variables have the same names as the options, with |
468 | # dashes changed to underlines. | |
42ecbf5e | 469 | cache_file=/dev/null |
252b5132 | 470 | exec_prefix=NONE |
252b5132 | 471 | no_create= |
252b5132 RH |
472 | no_recursion= |
473 | prefix=NONE | |
474 | program_prefix=NONE | |
475 | program_suffix=NONE | |
476 | program_transform_name=s,x,x, | |
477 | silent= | |
478 | site= | |
479 | srcdir= | |
252b5132 RH |
480 | verbose= |
481 | x_includes=NONE | |
482 | x_libraries=NONE | |
42ecbf5e DJ |
483 | |
484 | # Installation directory options. | |
485 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
486 | # and all the variables that are supposed to be based on exec_prefix | |
487 | # by default will actually change. | |
488 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
252b5132 RH |
489 | bindir='${exec_prefix}/bin' |
490 | sbindir='${exec_prefix}/sbin' | |
491 | libexecdir='${exec_prefix}/libexec' | |
492 | datadir='${prefix}/share' | |
493 | sysconfdir='${prefix}/etc' | |
494 | sharedstatedir='${prefix}/com' | |
495 | localstatedir='${prefix}/var' | |
496 | libdir='${exec_prefix}/lib' | |
497 | includedir='${prefix}/include' | |
498 | oldincludedir='/usr/include' | |
499 | infodir='${prefix}/info' | |
500 | mandir='${prefix}/man' | |
501 | ||
252b5132 RH |
502 | ac_prev= |
503 | for ac_option | |
504 | do | |
252b5132 RH |
505 | # If the previous option needs an argument, assign it. |
506 | if test -n "$ac_prev"; then | |
507 | eval "$ac_prev=\$ac_option" | |
508 | ac_prev= | |
509 | continue | |
510 | fi | |
511 | ||
42ecbf5e | 512 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
252b5132 RH |
513 | |
514 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
515 | ||
42ecbf5e | 516 | case $ac_option in |
252b5132 RH |
517 | |
518 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
519 | ac_prev=bindir ;; | |
520 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
42ecbf5e | 521 | bindir=$ac_optarg ;; |
252b5132 RH |
522 | |
523 | -build | --build | --buil | --bui | --bu) | |
42ecbf5e | 524 | ac_prev=build_alias ;; |
252b5132 | 525 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
42ecbf5e | 526 | build_alias=$ac_optarg ;; |
252b5132 RH |
527 | |
528 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
529 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
530 | ac_prev=cache_file ;; | |
531 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
532 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
42ecbf5e DJ |
533 | cache_file=$ac_optarg ;; |
534 | ||
535 | --config-cache | -C) | |
536 | cache_file=config.cache ;; | |
252b5132 RH |
537 | |
538 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
539 | ac_prev=datadir ;; | |
540 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
541 | | --da=*) | |
42ecbf5e | 542 | datadir=$ac_optarg ;; |
252b5132 RH |
543 | |
544 | -disable-* | --disable-*) | |
42ecbf5e | 545 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 546 | # Reject names that are not valid shell variable names. |
42ecbf5e DJ |
547 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
548 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
549 | { (exit 1); exit 1; }; } | |
550 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
551 | eval "enable_$ac_feature=no" ;; | |
252b5132 RH |
552 | |
553 | -enable-* | --enable-*) | |
42ecbf5e | 554 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 555 | # Reject names that are not valid shell variable names. |
42ecbf5e DJ |
556 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
557 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
558 | { (exit 1); exit 1; }; } | |
559 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
560 | case $ac_option in | |
561 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
562 | *) ac_optarg=yes ;; |
563 | esac | |
42ecbf5e | 564 | eval "enable_$ac_feature='$ac_optarg'" ;; |
252b5132 RH |
565 | |
566 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
567 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
568 | | --exec | --exe | --ex) | |
569 | ac_prev=exec_prefix ;; | |
570 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
571 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
572 | | --exec=* | --exe=* | --ex=*) | |
42ecbf5e | 573 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
574 | |
575 | -gas | --gas | --ga | --g) | |
576 | # Obsolete; use --with-gas. | |
577 | with_gas=yes ;; | |
578 | ||
42ecbf5e DJ |
579 | -help | --help | --hel | --he | -h) |
580 | ac_init_help=long ;; | |
581 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
582 | ac_init_help=recursive ;; | |
583 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
584 | ac_init_help=short ;; | |
252b5132 RH |
585 | |
586 | -host | --host | --hos | --ho) | |
42ecbf5e | 587 | ac_prev=host_alias ;; |
252b5132 | 588 | -host=* | --host=* | --hos=* | --ho=*) |
42ecbf5e | 589 | host_alias=$ac_optarg ;; |
252b5132 RH |
590 | |
591 | -includedir | --includedir | --includedi | --included | --include \ | |
592 | | --includ | --inclu | --incl | --inc) | |
593 | ac_prev=includedir ;; | |
594 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
595 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
42ecbf5e | 596 | includedir=$ac_optarg ;; |
252b5132 RH |
597 | |
598 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
599 | ac_prev=infodir ;; | |
600 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
42ecbf5e | 601 | infodir=$ac_optarg ;; |
252b5132 RH |
602 | |
603 | -libdir | --libdir | --libdi | --libd) | |
604 | ac_prev=libdir ;; | |
605 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
42ecbf5e | 606 | libdir=$ac_optarg ;; |
252b5132 RH |
607 | |
608 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
609 | | --libexe | --libex | --libe) | |
610 | ac_prev=libexecdir ;; | |
611 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
612 | | --libexe=* | --libex=* | --libe=*) | |
42ecbf5e | 613 | libexecdir=$ac_optarg ;; |
252b5132 RH |
614 | |
615 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
616 | | --localstate | --localstat | --localsta | --localst \ | |
617 | | --locals | --local | --loca | --loc | --lo) | |
618 | ac_prev=localstatedir ;; | |
619 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
620 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
621 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
42ecbf5e | 622 | localstatedir=$ac_optarg ;; |
252b5132 RH |
623 | |
624 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
625 | ac_prev=mandir ;; | |
626 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
42ecbf5e | 627 | mandir=$ac_optarg ;; |
252b5132 RH |
628 | |
629 | -nfp | --nfp | --nf) | |
630 | # Obsolete; use --without-fp. | |
631 | with_fp=no ;; | |
632 | ||
633 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
42ecbf5e | 634 | | --no-cr | --no-c | -n) |
252b5132 RH |
635 | no_create=yes ;; |
636 | ||
637 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
638 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
639 | no_recursion=yes ;; | |
640 | ||
641 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
642 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
643 | | --oldin | --oldi | --old | --ol | --o) | |
644 | ac_prev=oldincludedir ;; | |
645 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
646 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
647 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
42ecbf5e | 648 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
649 | |
650 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
651 | ac_prev=prefix ;; | |
652 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
42ecbf5e | 653 | prefix=$ac_optarg ;; |
252b5132 RH |
654 | |
655 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
656 | | --program-pre | --program-pr | --program-p) | |
657 | ac_prev=program_prefix ;; | |
658 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
659 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
42ecbf5e | 660 | program_prefix=$ac_optarg ;; |
252b5132 RH |
661 | |
662 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
663 | | --program-suf | --program-su | --program-s) | |
664 | ac_prev=program_suffix ;; | |
665 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
666 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
42ecbf5e | 667 | program_suffix=$ac_optarg ;; |
252b5132 RH |
668 | |
669 | -program-transform-name | --program-transform-name \ | |
670 | | --program-transform-nam | --program-transform-na \ | |
671 | | --program-transform-n | --program-transform- \ | |
672 | | --program-transform | --program-transfor \ | |
673 | | --program-transfo | --program-transf \ | |
674 | | --program-trans | --program-tran \ | |
675 | | --progr-tra | --program-tr | --program-t) | |
676 | ac_prev=program_transform_name ;; | |
677 | -program-transform-name=* | --program-transform-name=* \ | |
678 | | --program-transform-nam=* | --program-transform-na=* \ | |
679 | | --program-transform-n=* | --program-transform-=* \ | |
680 | | --program-transform=* | --program-transfor=* \ | |
681 | | --program-transfo=* | --program-transf=* \ | |
682 | | --program-trans=* | --program-tran=* \ | |
683 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
42ecbf5e | 684 | program_transform_name=$ac_optarg ;; |
252b5132 RH |
685 | |
686 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
687 | | -silent | --silent | --silen | --sile | --sil) | |
688 | silent=yes ;; | |
689 | ||
690 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
691 | ac_prev=sbindir ;; | |
692 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
693 | | --sbi=* | --sb=*) | |
42ecbf5e | 694 | sbindir=$ac_optarg ;; |
252b5132 RH |
695 | |
696 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
697 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
698 | | --sharedst | --shareds | --shared | --share | --shar \ | |
699 | | --sha | --sh) | |
700 | ac_prev=sharedstatedir ;; | |
701 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
702 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
703 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
704 | | --sha=* | --sh=*) | |
42ecbf5e | 705 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
706 | |
707 | -site | --site | --sit) | |
708 | ac_prev=site ;; | |
709 | -site=* | --site=* | --sit=*) | |
42ecbf5e | 710 | site=$ac_optarg ;; |
85fbca6a | 711 | |
252b5132 RH |
712 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
713 | ac_prev=srcdir ;; | |
714 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
42ecbf5e | 715 | srcdir=$ac_optarg ;; |
252b5132 RH |
716 | |
717 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
718 | | --syscon | --sysco | --sysc | --sys | --sy) | |
719 | ac_prev=sysconfdir ;; | |
720 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
721 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
42ecbf5e | 722 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
723 | |
724 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
42ecbf5e | 725 | ac_prev=target_alias ;; |
252b5132 | 726 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
42ecbf5e | 727 | target_alias=$ac_optarg ;; |
252b5132 RH |
728 | |
729 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
730 | verbose=yes ;; | |
731 | ||
42ecbf5e DJ |
732 | -version | --version | --versio | --versi | --vers | -V) |
733 | ac_init_version=: ;; | |
252b5132 RH |
734 | |
735 | -with-* | --with-*) | |
42ecbf5e | 736 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 737 | # Reject names that are not valid shell variable names. |
42ecbf5e DJ |
738 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
739 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
740 | { (exit 1); exit 1; }; } | |
252b5132 | 741 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
42ecbf5e DJ |
742 | case $ac_option in |
743 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
744 | *) ac_optarg=yes ;; |
745 | esac | |
42ecbf5e | 746 | eval "with_$ac_package='$ac_optarg'" ;; |
252b5132 RH |
747 | |
748 | -without-* | --without-*) | |
42ecbf5e | 749 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 750 | # Reject names that are not valid shell variable names. |
42ecbf5e DJ |
751 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
752 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
753 | { (exit 1); exit 1; }; } | |
754 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
755 | eval "with_$ac_package=no" ;; | |
252b5132 RH |
756 | |
757 | --x) | |
758 | # Obsolete; use --with-x. | |
759 | with_x=yes ;; | |
760 | ||
761 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
762 | | --x-incl | --x-inc | --x-in | --x-i) | |
763 | ac_prev=x_includes ;; | |
764 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
765 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
42ecbf5e | 766 | x_includes=$ac_optarg ;; |
252b5132 RH |
767 | |
768 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
769 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
770 | ac_prev=x_libraries ;; | |
771 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
772 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
42ecbf5e | 773 | x_libraries=$ac_optarg ;; |
252b5132 | 774 | |
42ecbf5e DJ |
775 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
776 | Try \`$0 --help' for more information." >&2 | |
777 | { (exit 1); exit 1; }; } | |
252b5132 RH |
778 | ;; |
779 | ||
42ecbf5e DJ |
780 | *=*) |
781 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
782 | # Reject names that are not valid shell variable names. | |
783 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
784 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
785 | { (exit 1); exit 1; }; } | |
786 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
787 | eval "$ac_envvar='$ac_optarg'" | |
788 | export $ac_envvar ;; | |
789 | ||
252b5132 | 790 | *) |
42ecbf5e DJ |
791 | # FIXME: should be removed in autoconf 3.0. |
792 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
793 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
794 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
795 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
252b5132 RH |
796 | ;; |
797 | ||
798 | esac | |
799 | done | |
800 | ||
801 | if test -n "$ac_prev"; then | |
42ecbf5e DJ |
802 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
803 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
804 | { (exit 1); exit 1; }; } | |
252b5132 | 805 | fi |
252b5132 | 806 | |
42ecbf5e DJ |
807 | # Be sure to have absolute paths. |
808 | for ac_var in exec_prefix prefix | |
809 | do | |
810 | eval ac_val=$`echo $ac_var` | |
811 | case $ac_val in | |
812 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
813 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
814 | { (exit 1); exit 1; }; };; | |
815 | esac | |
816 | done | |
252b5132 | 817 | |
42ecbf5e DJ |
818 | # Be sure to have absolute paths. |
819 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
820 | localstatedir libdir includedir oldincludedir infodir mandir | |
252b5132 | 821 | do |
42ecbf5e DJ |
822 | eval ac_val=$`echo $ac_var` |
823 | case $ac_val in | |
824 | [\\/$]* | ?:[\\/]* ) ;; | |
825 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
826 | { (exit 1); exit 1; }; };; | |
252b5132 RH |
827 | esac |
828 | done | |
829 | ||
42ecbf5e DJ |
830 | # There might be people who depend on the old broken behavior: `$host' |
831 | # used to hold the argument of --host etc. | |
832 | # FIXME: To remove some day. | |
833 | build=$build_alias | |
834 | host=$host_alias | |
835 | target=$target_alias | |
836 | ||
837 | # FIXME: To remove some day. | |
838 | if test "x$host_alias" != x; then | |
839 | if test "x$build_alias" = x; then | |
840 | cross_compiling=maybe | |
841 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
842 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
843 | elif test "x$build_alias" != "x$host_alias"; then | |
844 | cross_compiling=yes | |
845 | fi | |
846 | fi | |
e5a52504 | 847 | |
42ecbf5e DJ |
848 | ac_tool_prefix= |
849 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
850 | ||
851 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 852 | |
252b5132 RH |
853 | |
854 | # Find the source files, if location was not specified. | |
855 | if test -z "$srcdir"; then | |
856 | ac_srcdir_defaulted=yes | |
857 | # Try the directory containing this script, then its parent. | |
42ecbf5e DJ |
858 | ac_confdir=`(dirname "$0") 2>/dev/null || |
859 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
860 | X"$0" : 'X\(//\)[^/]' \| \ | |
861 | X"$0" : 'X\(//\)$' \| \ | |
862 | X"$0" : 'X\(/\)' \| \ | |
863 | . : '\(.\)' 2>/dev/null || | |
864 | echo X"$0" | | |
865 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
866 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
867 | /^X\(\/\/\)$/{ s//\1/; q; } | |
868 | /^X\(\/\).*/{ s//\1/; q; } | |
869 | s/.*/./; q'` | |
252b5132 RH |
870 | srcdir=$ac_confdir |
871 | if test ! -r $srcdir/$ac_unique_file; then | |
872 | srcdir=.. | |
873 | fi | |
874 | else | |
875 | ac_srcdir_defaulted=no | |
876 | fi | |
877 | if test ! -r $srcdir/$ac_unique_file; then | |
878 | if test "$ac_srcdir_defaulted" = yes; then | |
42ecbf5e DJ |
879 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
880 | { (exit 1); exit 1; }; } | |
252b5132 | 881 | else |
42ecbf5e DJ |
882 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
883 | { (exit 1); exit 1; }; } | |
252b5132 RH |
884 | fi |
885 | fi | |
42ecbf5e DJ |
886 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
887 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
888 | { (exit 1); exit 1; }; } | |
889 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
890 | ac_env_build_alias_set=${build_alias+set} | |
891 | ac_env_build_alias_value=$build_alias | |
892 | ac_cv_env_build_alias_set=${build_alias+set} | |
893 | ac_cv_env_build_alias_value=$build_alias | |
894 | ac_env_host_alias_set=${host_alias+set} | |
895 | ac_env_host_alias_value=$host_alias | |
896 | ac_cv_env_host_alias_set=${host_alias+set} | |
897 | ac_cv_env_host_alias_value=$host_alias | |
898 | ac_env_target_alias_set=${target_alias+set} | |
899 | ac_env_target_alias_value=$target_alias | |
900 | ac_cv_env_target_alias_set=${target_alias+set} | |
901 | ac_cv_env_target_alias_value=$target_alias | |
902 | ac_env_CC_set=${CC+set} | |
903 | ac_env_CC_value=$CC | |
904 | ac_cv_env_CC_set=${CC+set} | |
905 | ac_cv_env_CC_value=$CC | |
906 | ac_env_CFLAGS_set=${CFLAGS+set} | |
907 | ac_env_CFLAGS_value=$CFLAGS | |
908 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
909 | ac_cv_env_CFLAGS_value=$CFLAGS | |
910 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
911 | ac_env_LDFLAGS_value=$LDFLAGS | |
912 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
913 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
914 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
915 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
916 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
917 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
918 | ac_env_CPP_set=${CPP+set} | |
919 | ac_env_CPP_value=$CPP | |
920 | ac_cv_env_CPP_set=${CPP+set} | |
921 | ac_cv_env_CPP_value=$CPP | |
252b5132 | 922 | |
42ecbf5e DJ |
923 | # |
924 | # Report the --help message. | |
925 | # | |
926 | if test "$ac_init_help" = "long"; then | |
927 | # Omit some internal or obsolete options to make the list less imposing. | |
928 | # This message is too long to be a string in the A/UX 3.1 sh. | |
929 | cat <<_ACEOF | |
930 | \`configure' configures this package to adapt to many kinds of systems. | |
252b5132 | 931 | |
42ecbf5e | 932 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 933 | |
42ecbf5e DJ |
934 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
935 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
252b5132 | 936 | |
42ecbf5e | 937 | Defaults for the options are specified in brackets. |
ac48eca1 | 938 | |
42ecbf5e DJ |
939 | Configuration: |
940 | -h, --help display this help and exit | |
941 | --help=short display options specific to this package | |
942 | --help=recursive display the short help of all the included packages | |
943 | -V, --version display version information and exit | |
944 | -q, --quiet, --silent do not print \`checking...' messages | |
945 | --cache-file=FILE cache test results in FILE [disabled] | |
946 | -C, --config-cache alias for \`--cache-file=config.cache' | |
947 | -n, --no-create do not create output files | |
948 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
949 | ||
950 | _ACEOF | |
951 | ||
952 | cat <<_ACEOF | |
953 | Installation directories: | |
954 | --prefix=PREFIX install architecture-independent files in PREFIX | |
955 | [$ac_default_prefix] | |
956 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
957 | [PREFIX] | |
ac48eca1 | 958 | |
42ecbf5e DJ |
959 | By default, \`make install' will install all the files in |
960 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
961 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
962 | for instance \`--prefix=\$HOME'. | |
ac48eca1 | 963 | |
42ecbf5e | 964 | For better control, use the options below. |
ac48eca1 | 965 | |
42ecbf5e DJ |
966 | Fine tuning of the installation directories: |
967 | --bindir=DIR user executables [EPREFIX/bin] | |
968 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
969 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
970 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
971 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
972 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
973 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
974 | --libdir=DIR object code libraries [EPREFIX/lib] | |
975 | --includedir=DIR C header files [PREFIX/include] | |
976 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
977 | --infodir=DIR info documentation [PREFIX/info] | |
978 | --mandir=DIR man documentation [PREFIX/man] | |
979 | _ACEOF | |
ac48eca1 | 980 | |
42ecbf5e | 981 | cat <<\_ACEOF |
252b5132 | 982 | |
42ecbf5e DJ |
983 | Program names: |
984 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
985 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
986 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
252b5132 | 987 | |
42ecbf5e DJ |
988 | System types: |
989 | --build=BUILD configure for building on BUILD [guessed] | |
990 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
991 | --target=TARGET configure for building compilers for TARGET [HOST] | |
992 | _ACEOF | |
252b5132 | 993 | fi |
252b5132 | 994 | |
42ecbf5e | 995 | if test -n "$ac_init_help"; then |
252b5132 | 996 | |
42ecbf5e | 997 | cat <<\_ACEOF |
e5a52504 | 998 | |
42ecbf5e DJ |
999 | Optional Features: |
1000 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1001 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1002 | --disable-dependency-tracking speeds up one-time build | |
1003 | --enable-dependency-tracking do not reject slow dependency extractors | |
ce2cded5 L |
1004 | --enable-targets alternative target configurations |
1005 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) | |
1006 | --enable-werror treat compile warnings as errors | |
1007 | --enable-build-warnings enable build-time compiler warnings | |
d7040cdb SE |
1008 | --enable-shared[=PKGS] |
1009 | build shared libraries [default=yes] | |
1010 | --enable-static[=PKGS] | |
1011 | build static libraries [default=yes] | |
1012 | --enable-fast-install[=PKGS] | |
1013 | optimize for fast installation [default=yes] | |
42ecbf5e | 1014 | --disable-libtool-lock avoid locking (might break parallel builds) |
42ecbf5e DJ |
1015 | --disable-nls do not use Native Language Support |
1016 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1017 | (and sometimes confusing) to the casual installer | |
1018 | ||
1019 | Optional Packages: | |
1020 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1021 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
ce2cded5 L |
1022 | --with-lib-path=dir1:dir2... set default LIB_PATH |
1023 | --with-sysroot=DIR Search for usr/lib et al within DIR. | |
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] | |
42ecbf5e DJ |
1027 | |
1028 | Some influential environment variables: | |
1029 | CC C compiler command | |
1030 | CFLAGS C compiler flags | |
1031 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1032 | nonstandard directory <lib dir> | |
1033 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1034 | headers in a nonstandard directory <include dir> | |
1035 | CPP C preprocessor | |
1036 | ||
1037 | Use these variables to override the choices made by `configure' or to help | |
1038 | it to find libraries and programs with nonstandard names/locations. | |
1039 | ||
1040 | _ACEOF | |
1041 | fi | |
1042 | ||
1043 | if test "$ac_init_help" = "recursive"; then | |
1044 | # If there are subdirs, report their specific --help. | |
1045 | ac_popdir=`pwd` | |
1046 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1047 | test -d $ac_dir || continue | |
1048 | ac_builddir=. | |
1049 | ||
1050 | if test "$ac_dir" != .; then | |
1051 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1052 | # A "../" for each directory in $ac_dir_suffix. | |
1053 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1054 | else | |
1055 | ac_dir_suffix= ac_top_builddir= | |
1056 | fi | |
1057 | ||
1058 | case $srcdir in | |
1059 | .) # No --srcdir option. We are building in place. | |
1060 | ac_srcdir=. | |
1061 | if test -z "$ac_top_builddir"; then | |
1062 | ac_top_srcdir=. | |
1063 | else | |
1064 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1065 | fi ;; | |
1066 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1067 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1068 | ac_top_srcdir=$srcdir ;; | |
1069 | *) # Relative path. | |
1070 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1071 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
252b5132 RH |
1072 | esac |
1073 | ||
42ecbf5e DJ |
1074 | # Do not use `cd foo && pwd` to compute absolute paths, because |
1075 | # the directories may not exist. | |
1076 | case `pwd` in | |
1077 | .) ac_abs_builddir="$ac_dir";; | |
1078 | *) | |
1079 | case "$ac_dir" in | |
1080 | .) ac_abs_builddir=`pwd`;; | |
1081 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1082 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1083 | esac;; | |
1084 | esac | |
1085 | case $ac_abs_builddir in | |
1086 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1087 | *) | |
1088 | case ${ac_top_builddir}. in | |
1089 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1090 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1091 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1092 | esac;; | |
1093 | esac | |
1094 | case $ac_abs_builddir in | |
1095 | .) ac_abs_srcdir=$ac_srcdir;; | |
1096 | *) | |
1097 | case $ac_srcdir in | |
1098 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1099 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1100 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1101 | esac;; | |
1102 | esac | |
1103 | case $ac_abs_builddir in | |
1104 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1105 | *) | |
1106 | case $ac_top_srcdir in | |
1107 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1108 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1109 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1110 | esac;; | |
1111 | esac | |
a2d91340 | 1112 | |
42ecbf5e DJ |
1113 | cd $ac_dir |
1114 | # Check for guested configure; otherwise get Cygnus style configure. | |
1115 | if test -f $ac_srcdir/configure.gnu; then | |
1116 | echo | |
1117 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1118 | elif test -f $ac_srcdir/configure; then | |
1119 | echo | |
1120 | $SHELL $ac_srcdir/configure --help=recursive | |
1121 | elif test -f $ac_srcdir/configure.ac || | |
1122 | test -f $ac_srcdir/configure.in; then | |
1123 | echo | |
1124 | $ac_configure --help | |
1125 | else | |
1126 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1127 | fi | |
502bdb00 | 1128 | cd $ac_popdir |
42ecbf5e | 1129 | done |
a2d91340 AC |
1130 | fi |
1131 | ||
42ecbf5e DJ |
1132 | test -n "$ac_init_help" && exit 0 |
1133 | if $ac_init_version; then | |
1134 | cat <<\_ACEOF | |
a2d91340 | 1135 | |
42ecbf5e DJ |
1136 | Copyright (C) 2003 Free Software Foundation, Inc. |
1137 | This configure script is free software; the Free Software Foundation | |
1138 | gives unlimited permission to copy, distribute and modify it. | |
1139 | _ACEOF | |
1140 | exit 0 | |
1141 | fi | |
1142 | exec 5>config.log | |
1143 | cat >&5 <<_ACEOF | |
1144 | This file contains any messages produced by compilers while | |
1145 | running configure, to aid debugging if configure makes a mistake. | |
a2d91340 | 1146 | |
42ecbf5e DJ |
1147 | It was created by $as_me, which was |
1148 | generated by GNU Autoconf 2.59. Invocation command line was | |
a2d91340 | 1149 | |
42ecbf5e | 1150 | $ $0 $@ |
a2d91340 | 1151 | |
42ecbf5e DJ |
1152 | _ACEOF |
1153 | { | |
1154 | cat <<_ASUNAME | |
1155 | ## --------- ## | |
1156 | ## Platform. ## | |
1157 | ## --------- ## | |
1158 | ||
1159 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1160 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1161 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1162 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1163 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1164 | ||
1165 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1166 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1167 | ||
1168 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1169 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1170 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1171 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1172 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1173 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1174 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1175 | ||
1176 | _ASUNAME | |
1177 | ||
1178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1179 | for as_dir in $PATH | |
1180 | do | |
1181 | IFS=$as_save_IFS | |
1182 | test -z "$as_dir" && as_dir=. | |
1183 | echo "PATH: $as_dir" | |
1184 | done | |
252b5132 | 1185 | |
42ecbf5e | 1186 | } >&5 |
5d64ca4e | 1187 | |
42ecbf5e | 1188 | cat >&5 <<_ACEOF |
5d64ca4e | 1189 | |
5d64ca4e | 1190 | |
42ecbf5e DJ |
1191 | ## ----------- ## |
1192 | ## Core tests. ## | |
1193 | ## ----------- ## | |
5d64ca4e | 1194 | |
42ecbf5e | 1195 | _ACEOF |
2469cfa2 | 1196 | |
42ecbf5e DJ |
1197 | |
1198 | # Keep a trace of the command line. | |
1199 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1200 | # Strip out --silent because we don't want to record it for future runs. | |
1201 | # Also quote any args containing shell meta-characters. | |
1202 | # Make two passes to allow for proper duplicate-argument suppression. | |
1203 | ac_configure_args= | |
1204 | ac_configure_args0= | |
1205 | ac_configure_args1= | |
1206 | ac_sep= | |
1207 | ac_must_keep_next=false | |
1208 | for ac_pass in 1 2 | |
1209 | do | |
1210 | for ac_arg | |
1211 | do | |
1212 | case $ac_arg in | |
1213 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1214 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1215 | | -silent | --silent | --silen | --sile | --sil) | |
1216 | continue ;; | |
1217 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1218 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1219 | esac | |
1220 | case $ac_pass in | |
1221 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1222 | 2) | |
1223 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1224 | if test $ac_must_keep_next = true; then | |
1225 | ac_must_keep_next=false # Got value, back to normal. | |
1226 | else | |
1227 | case $ac_arg in | |
1228 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1229 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1230 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1231 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1232 | case "$ac_configure_args0 " in | |
1233 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1234 | esac | |
1235 | ;; | |
1236 | -* ) ac_must_keep_next=true ;; | |
1237 | esac | |
1238 | fi | |
1239 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1240 | # Get rid of the leading space. | |
1241 | ac_sep=" " | |
1242 | ;; | |
1243 | esac | |
1244 | done | |
1245 | done | |
1246 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1247 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1248 | ||
1249 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1250 | # config.log. We remove comments because anyway the quotes in there | |
1251 | # would cause problems or look ugly. | |
1252 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1253 | # such as our DU 5.0 friend, will then `close' the trap. | |
1254 | trap 'exit_status=$? | |
1255 | # Save into config.log some information that might help in debugging. | |
1256 | { | |
1257 | echo | |
1258 | ||
1259 | cat <<\_ASBOX | |
1260 | ## ---------------- ## | |
1261 | ## Cache variables. ## | |
1262 | ## ---------------- ## | |
1263 | _ASBOX | |
1264 | echo | |
1265 | # The following way of writing the cache mishandles newlines in values, | |
1266 | { | |
1267 | (set) 2>&1 | | |
1268 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1269 | *ac_space=\ *) | |
1270 | sed -n \ | |
1271 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1272 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1273 | ;; | |
1274 | *) | |
1275 | sed -n \ | |
1276 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1277 | ;; | |
1278 | esac; | |
1279 | } | |
1280 | echo | |
1281 | ||
1282 | cat <<\_ASBOX | |
1283 | ## ----------------- ## | |
1284 | ## Output variables. ## | |
1285 | ## ----------------- ## | |
1286 | _ASBOX | |
1287 | echo | |
1288 | for ac_var in $ac_subst_vars | |
1289 | do | |
1290 | eval ac_val=$`echo $ac_var` | |
1291 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1292 | done | sort | |
1293 | echo | |
1294 | ||
1295 | if test -n "$ac_subst_files"; then | |
1296 | cat <<\_ASBOX | |
1297 | ## ------------- ## | |
1298 | ## Output files. ## | |
1299 | ## ------------- ## | |
1300 | _ASBOX | |
1301 | echo | |
1302 | for ac_var in $ac_subst_files | |
1303 | do | |
1304 | eval ac_val=$`echo $ac_var` | |
1305 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1306 | done | sort | |
1307 | echo | |
1308 | fi | |
1309 | ||
1310 | if test -s confdefs.h; then | |
1311 | cat <<\_ASBOX | |
1312 | ## ----------- ## | |
1313 | ## confdefs.h. ## | |
1314 | ## ----------- ## | |
1315 | _ASBOX | |
1316 | echo | |
1317 | sed "/^$/d" confdefs.h | sort | |
1318 | echo | |
1319 | fi | |
1320 | test "$ac_signal" != 0 && | |
1321 | echo "$as_me: caught signal $ac_signal" | |
1322 | echo "$as_me: exit $exit_status" | |
1323 | } >&5 | |
1324 | rm -f core *.core && | |
1325 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1326 | exit $exit_status | |
1327 | ' 0 | |
1328 | for ac_signal in 1 2 13 15; do | |
1329 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1330 | done | |
1331 | ac_signal=0 | |
1332 | ||
1333 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1334 | rm -rf conftest* confdefs.h | |
1335 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1336 | echo >confdefs.h | |
1337 | ||
1338 | # Predefined preprocessor variables. | |
1339 | ||
1340 | cat >>confdefs.h <<_ACEOF | |
1341 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1342 | _ACEOF | |
1343 | ||
1344 | ||
1345 | cat >>confdefs.h <<_ACEOF | |
1346 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1347 | _ACEOF | |
1348 | ||
1349 | ||
1350 | cat >>confdefs.h <<_ACEOF | |
1351 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1352 | _ACEOF | |
1353 | ||
1354 | ||
1355 | cat >>confdefs.h <<_ACEOF | |
1356 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1357 | _ACEOF | |
1358 | ||
1359 | ||
1360 | cat >>confdefs.h <<_ACEOF | |
1361 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1362 | _ACEOF | |
1363 | ||
1364 | ||
1365 | # Let the site file select an alternate cache file if it wants to. | |
1366 | # Prefer explicitly selected file to automatically selected ones. | |
1367 | if test -z "$CONFIG_SITE"; then | |
1368 | if test "x$prefix" != xNONE; then | |
1369 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1370 | else | |
1371 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1372 | fi | |
1373 | fi | |
1374 | for ac_site_file in $CONFIG_SITE; do | |
1375 | if test -r "$ac_site_file"; then | |
1376 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1377 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1378 | sed 's/^/| /' "$ac_site_file" >&5 | |
1379 | . "$ac_site_file" | |
1380 | fi | |
1381 | done | |
1382 | ||
1383 | if test -r "$cache_file"; then | |
1384 | # Some versions of bash will fail to source /dev/null (special | |
1385 | # files actually), so we avoid doing that. | |
1386 | if test -f "$cache_file"; then | |
1387 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1388 | echo "$as_me: loading cache $cache_file" >&6;} | |
1389 | case $cache_file in | |
1390 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1391 | *) . ./$cache_file;; | |
1392 | esac | |
1393 | fi | |
1394 | else | |
1395 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1396 | echo "$as_me: creating cache $cache_file" >&6;} | |
1397 | >$cache_file | |
1398 | fi | |
1399 | ||
1400 | # Check that the precious variables saved in the cache have kept the same | |
1401 | # value. | |
1402 | ac_cache_corrupted=false | |
1403 | for ac_var in `(set) 2>&1 | | |
1404 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1405 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1406 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1407 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1408 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1409 | case $ac_old_set,$ac_new_set in | |
1410 | set,) | |
1411 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1412 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1413 | ac_cache_corrupted=: ;; | |
1414 | ,set) | |
1415 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1416 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1417 | ac_cache_corrupted=: ;; | |
1418 | ,);; | |
1419 | *) | |
1420 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1421 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1422 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1423 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1424 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1425 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1426 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1427 | ac_cache_corrupted=: | |
1428 | fi;; | |
1429 | esac | |
1430 | # Pass precious variables to config.status. | |
1431 | if test "$ac_new_set" = set; then | |
1432 | case $ac_new_val in | |
1433 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1434 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1435 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1436 | esac | |
1437 | case " $ac_configure_args " in | |
1438 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1439 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1440 | esac | |
1441 | fi | |
1442 | done | |
1443 | if $ac_cache_corrupted; then | |
1444 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1445 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1446 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1447 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1448 | { (exit 1); exit 1; }; } | |
1449 | fi | |
1450 | ||
1451 | ac_ext=c | |
1452 | ac_cpp='$CPP $CPPFLAGS' | |
1453 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1454 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1455 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1456 | ||
1457 | ||
1458 | ||
1459 | ||
1460 | ||
1461 | ||
1462 | ||
1463 | ||
1464 | ||
1465 | ||
1466 | ||
1467 | ||
1468 | ||
1469 | ||
1470 | ||
1471 | ||
1472 | ||
1473 | ||
1474 | ||
1475 | ||
1476 | ac_aux_dir= | |
1477 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1478 | if test -f $ac_dir/install-sh; then | |
1479 | ac_aux_dir=$ac_dir | |
1480 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1481 | break | |
1482 | elif test -f $ac_dir/install.sh; then | |
1483 | ac_aux_dir=$ac_dir | |
1484 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1485 | break | |
1486 | elif test -f $ac_dir/shtool; then | |
1487 | ac_aux_dir=$ac_dir | |
1488 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1489 | break | |
1490 | fi | |
1491 | done | |
1492 | if test -z "$ac_aux_dir"; then | |
1493 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1494 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1495 | { (exit 1); exit 1; }; } | |
1496 | fi | |
1497 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1498 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1499 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1500 | ||
1501 | # Make sure we can run config.sub. | |
1502 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1503 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1504 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1505 | { (exit 1); exit 1; }; } | |
1506 | ||
1507 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1508 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1509 | if test "${ac_cv_build+set}" = set; then | |
1510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1511 | else | |
1512 | ac_cv_build_alias=$build_alias | |
1513 | test -z "$ac_cv_build_alias" && | |
1514 | ac_cv_build_alias=`$ac_config_guess` | |
1515 | test -z "$ac_cv_build_alias" && | |
1516 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1517 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1518 | { (exit 1); exit 1; }; } | |
1519 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1520 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1521 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1522 | { (exit 1); exit 1; }; } | |
1523 | ||
1524 | fi | |
1525 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1526 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1527 | build=$ac_cv_build | |
1528 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1529 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1530 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1531 | ||
1532 | ||
1533 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1534 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1535 | if test "${ac_cv_host+set}" = set; then | |
1536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1537 | else | |
1538 | ac_cv_host_alias=$host_alias | |
1539 | test -z "$ac_cv_host_alias" && | |
1540 | ac_cv_host_alias=$ac_cv_build_alias | |
1541 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1542 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1543 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1544 | { (exit 1); exit 1; }; } | |
1545 | ||
1546 | fi | |
1547 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1548 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1549 | host=$ac_cv_host | |
1550 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1551 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1552 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1553 | ||
1554 | ||
1555 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1556 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1557 | if test "${ac_cv_target+set}" = set; then | |
1558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1559 | else | |
1560 | ac_cv_target_alias=$target_alias | |
1561 | test "x$ac_cv_target_alias" = "x" && | |
1562 | ac_cv_target_alias=$ac_cv_host_alias | |
1563 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1564 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1565 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1566 | { (exit 1); exit 1; }; } | |
1567 | ||
1568 | fi | |
1569 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1570 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1571 | target=$ac_cv_target | |
1572 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1573 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1574 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1575 | ||
1576 | ||
1577 | # The aliases save the names the user supplied, while $host etc. | |
1578 | # will get canonicalized. | |
1579 | test -n "$target_alias" && | |
1580 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1581 | NONENONEs,x,x, && | |
1582 | program_prefix=${target_alias}- | |
1583 | ac_ext=c | |
1584 | ac_cpp='$CPP $CPPFLAGS' | |
1585 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1586 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1587 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1588 | if test -n "$ac_tool_prefix"; then | |
1589 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1590 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1591 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1592 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1593 | if test "${ac_cv_prog_CC+set}" = set; then | |
1594 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1595 | else | |
1596 | if test -n "$CC"; then | |
1597 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1598 | else | |
1599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1600 | for as_dir in $PATH | |
1601 | do | |
1602 | IFS=$as_save_IFS | |
1603 | test -z "$as_dir" && as_dir=. | |
1604 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1605 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1606 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1607 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1608 | break 2 | |
1609 | fi | |
1610 | done | |
1611 | done | |
1612 | ||
1613 | fi | |
1614 | fi | |
1615 | CC=$ac_cv_prog_CC | |
1616 | if test -n "$CC"; then | |
1617 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1618 | echo "${ECHO_T}$CC" >&6 | |
1619 | else | |
1620 | echo "$as_me:$LINENO: result: no" >&5 | |
1621 | echo "${ECHO_T}no" >&6 | |
1622 | fi | |
1623 | ||
1624 | fi | |
1625 | if test -z "$ac_cv_prog_CC"; then | |
1626 | ac_ct_CC=$CC | |
1627 | # Extract the first word of "gcc", so it can be a program name with args. | |
1628 | set dummy gcc; ac_word=$2 | |
1629 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1630 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1631 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1633 | else | |
1634 | if test -n "$ac_ct_CC"; then | |
1635 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1636 | else | |
1637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1638 | for as_dir in $PATH | |
1639 | do | |
1640 | IFS=$as_save_IFS | |
1641 | test -z "$as_dir" && as_dir=. | |
1642 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1643 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1644 | ac_cv_prog_ac_ct_CC="gcc" | |
1645 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1646 | break 2 | |
1647 | fi | |
1648 | done | |
1649 | done | |
1650 | ||
1651 | fi | |
1652 | fi | |
1653 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1654 | if test -n "$ac_ct_CC"; then | |
1655 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1656 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1657 | else | |
1658 | echo "$as_me:$LINENO: result: no" >&5 | |
1659 | echo "${ECHO_T}no" >&6 | |
1660 | fi | |
1661 | ||
1662 | CC=$ac_ct_CC | |
1663 | else | |
1664 | CC="$ac_cv_prog_CC" | |
1665 | fi | |
1666 | ||
1667 | if test -z "$CC"; then | |
1668 | if test -n "$ac_tool_prefix"; then | |
1669 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1670 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1671 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1672 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1673 | if test "${ac_cv_prog_CC+set}" = set; then | |
1674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1675 | else | |
1676 | if test -n "$CC"; then | |
1677 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1678 | else | |
1679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1680 | for as_dir in $PATH | |
1681 | do | |
1682 | IFS=$as_save_IFS | |
1683 | test -z "$as_dir" && as_dir=. | |
1684 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1685 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1686 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1687 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1688 | break 2 | |
1689 | fi | |
1690 | done | |
1691 | done | |
1692 | ||
1693 | fi | |
1694 | fi | |
1695 | CC=$ac_cv_prog_CC | |
1696 | if test -n "$CC"; then | |
1697 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1698 | echo "${ECHO_T}$CC" >&6 | |
1699 | else | |
1700 | echo "$as_me:$LINENO: result: no" >&5 | |
1701 | echo "${ECHO_T}no" >&6 | |
1702 | fi | |
1703 | ||
1704 | fi | |
1705 | if test -z "$ac_cv_prog_CC"; then | |
1706 | ac_ct_CC=$CC | |
1707 | # Extract the first word of "cc", so it can be a program name with args. | |
1708 | set dummy cc; ac_word=$2 | |
1709 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1710 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1711 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1713 | else | |
1714 | if test -n "$ac_ct_CC"; then | |
1715 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1716 | else | |
1717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1718 | for as_dir in $PATH | |
1719 | do | |
1720 | IFS=$as_save_IFS | |
1721 | test -z "$as_dir" && as_dir=. | |
1722 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1723 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1724 | ac_cv_prog_ac_ct_CC="cc" | |
1725 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1726 | break 2 | |
1727 | fi | |
1728 | done | |
1729 | done | |
1730 | ||
1731 | fi | |
1732 | fi | |
1733 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1734 | if test -n "$ac_ct_CC"; then | |
1735 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1736 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1737 | else | |
1738 | echo "$as_me:$LINENO: result: no" >&5 | |
1739 | echo "${ECHO_T}no" >&6 | |
1740 | fi | |
1741 | ||
1742 | CC=$ac_ct_CC | |
1743 | else | |
1744 | CC="$ac_cv_prog_CC" | |
1745 | fi | |
1746 | ||
1747 | fi | |
1748 | if test -z "$CC"; then | |
1749 | # Extract the first word of "cc", so it can be a program name with args. | |
1750 | set dummy cc; ac_word=$2 | |
1751 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1752 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1753 | if test "${ac_cv_prog_CC+set}" = set; then | |
1754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1755 | else | |
1756 | if test -n "$CC"; then | |
1757 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1758 | else | |
1759 | ac_prog_rejected=no | |
1760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1761 | for as_dir in $PATH | |
1762 | do | |
1763 | IFS=$as_save_IFS | |
1764 | test -z "$as_dir" && as_dir=. | |
1765 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1766 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1767 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1768 | ac_prog_rejected=yes | |
1769 | continue | |
1770 | fi | |
1771 | ac_cv_prog_CC="cc" | |
1772 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1773 | break 2 | |
1774 | fi | |
1775 | done | |
1776 | done | |
1777 | ||
1778 | if test $ac_prog_rejected = yes; then | |
1779 | # We found a bogon in the path, so make sure we never use it. | |
1780 | set dummy $ac_cv_prog_CC | |
1781 | shift | |
1782 | if test $# != 0; then | |
1783 | # We chose a different compiler from the bogus one. | |
1784 | # However, it has the same basename, so the bogon will be chosen | |
1785 | # first if we set CC to just the basename; use the full file name. | |
1786 | shift | |
1787 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1788 | fi | |
1789 | fi | |
1790 | fi | |
1791 | fi | |
1792 | CC=$ac_cv_prog_CC | |
1793 | if test -n "$CC"; then | |
1794 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1795 | echo "${ECHO_T}$CC" >&6 | |
1796 | else | |
1797 | echo "$as_me:$LINENO: result: no" >&5 | |
1798 | echo "${ECHO_T}no" >&6 | |
1799 | fi | |
1800 | ||
1801 | fi | |
1802 | if test -z "$CC"; then | |
1803 | if test -n "$ac_tool_prefix"; then | |
1804 | for ac_prog in cl | |
1805 | do | |
1806 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1807 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1808 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1809 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1810 | if test "${ac_cv_prog_CC+set}" = set; then | |
1811 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1812 | else | |
1813 | if test -n "$CC"; then | |
1814 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1815 | else | |
1816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1817 | for as_dir in $PATH | |
1818 | do | |
1819 | IFS=$as_save_IFS | |
1820 | test -z "$as_dir" && as_dir=. | |
1821 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1822 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1823 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1824 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1825 | break 2 | |
1826 | fi | |
1827 | done | |
1828 | done | |
1829 | ||
1830 | fi | |
1831 | fi | |
1832 | CC=$ac_cv_prog_CC | |
1833 | if test -n "$CC"; then | |
1834 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1835 | echo "${ECHO_T}$CC" >&6 | |
1836 | else | |
1837 | echo "$as_me:$LINENO: result: no" >&5 | |
1838 | echo "${ECHO_T}no" >&6 | |
1839 | fi | |
1840 | ||
1841 | test -n "$CC" && break | |
1842 | done | |
1843 | fi | |
1844 | if test -z "$CC"; then | |
1845 | ac_ct_CC=$CC | |
1846 | for ac_prog in cl | |
1847 | do | |
1848 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1849 | set dummy $ac_prog; ac_word=$2 | |
1850 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1851 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1852 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1854 | else | |
1855 | if test -n "$ac_ct_CC"; then | |
1856 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1857 | else | |
1858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1859 | for as_dir in $PATH | |
1860 | do | |
1861 | IFS=$as_save_IFS | |
1862 | test -z "$as_dir" && as_dir=. | |
1863 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1864 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1865 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1866 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1867 | break 2 | |
1868 | fi | |
1869 | done | |
1870 | done | |
1871 | ||
1872 | fi | |
1873 | fi | |
1874 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1875 | if test -n "$ac_ct_CC"; then | |
1876 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1877 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1878 | else | |
1879 | echo "$as_me:$LINENO: result: no" >&5 | |
1880 | echo "${ECHO_T}no" >&6 | |
1881 | fi | |
1882 | ||
1883 | test -n "$ac_ct_CC" && break | |
1884 | done | |
1885 | ||
1886 | CC=$ac_ct_CC | |
1887 | fi | |
1888 | ||
1889 | fi | |
1890 | ||
1891 | ||
1892 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1893 | See \`config.log' for more details." >&5 | |
1894 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1895 | See \`config.log' for more details." >&2;} | |
1896 | { (exit 1); exit 1; }; } | |
1897 | ||
1898 | # Provide some information about the compiler. | |
1899 | echo "$as_me:$LINENO:" \ | |
1900 | "checking for C compiler version" >&5 | |
1901 | ac_compiler=`set X $ac_compile; echo $2` | |
1902 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1903 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1904 | ac_status=$? | |
1905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1906 | (exit $ac_status); } | |
1907 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1908 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1909 | ac_status=$? | |
1910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1911 | (exit $ac_status); } | |
1912 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1913 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1914 | ac_status=$? | |
1915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1916 | (exit $ac_status); } | |
1917 | ||
1918 | cat >conftest.$ac_ext <<_ACEOF | |
1919 | /* confdefs.h. */ | |
1920 | _ACEOF | |
1921 | cat confdefs.h >>conftest.$ac_ext | |
1922 | cat >>conftest.$ac_ext <<_ACEOF | |
1923 | /* end confdefs.h. */ | |
1924 | ||
1925 | int | |
1926 | main () | |
1927 | { | |
1928 | ||
1929 | ; | |
1930 | return 0; | |
1931 | } | |
1932 | _ACEOF | |
1933 | ac_clean_files_save=$ac_clean_files | |
1934 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1935 | # Try to create an executable without -o first, disregard a.out. | |
1936 | # It will help us diagnose broken compilers, and finding out an intuition | |
1937 | # of exeext. | |
1938 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1939 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1940 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1941 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1942 | (eval $ac_link_default) 2>&5 | |
1943 | ac_status=$? | |
1944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1945 | (exit $ac_status); }; then | |
1946 | # Find the output, starting from the most likely. This scheme is | |
1947 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1948 | # resort. | |
1949 | ||
1950 | # Be careful to initialize this variable, since it used to be cached. | |
1951 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1952 | ac_cv_exeext= | |
1953 | # b.out is created by i960 compilers. | |
1954 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1955 | do | |
1956 | test -f "$ac_file" || continue | |
1957 | case $ac_file in | |
1958 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1959 | ;; | |
1960 | conftest.$ac_ext ) | |
1961 | # This is the source file. | |
1962 | ;; | |
1963 | [ab].out ) | |
1964 | # We found the default executable, but exeext='' is most | |
1965 | # certainly right. | |
1966 | break;; | |
1967 | *.* ) | |
1968 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1969 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1970 | # but it would be cool to find out if it's true. Does anybody | |
1971 | # maintain Libtool? --akim. | |
1972 | export ac_cv_exeext | |
1973 | break;; | |
1974 | * ) | |
1975 | break;; | |
1976 | esac | |
1977 | done | |
1978 | else | |
1979 | echo "$as_me: failed program was:" >&5 | |
1980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1981 | ||
1982 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1983 | See \`config.log' for more details." >&5 | |
1984 | echo "$as_me: error: C compiler cannot create executables | |
1985 | See \`config.log' for more details." >&2;} | |
1986 | { (exit 77); exit 77; }; } | |
1987 | fi | |
1988 | ||
1989 | ac_exeext=$ac_cv_exeext | |
1990 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1991 | echo "${ECHO_T}$ac_file" >&6 | |
1992 | ||
1993 | # Check the compiler produces executables we can run. If not, either | |
1994 | # the compiler is broken, or we cross compile. | |
1995 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1996 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1997 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1998 | # If not cross compiling, check that we can run a simple program. | |
1999 | if test "$cross_compiling" != yes; then | |
2000 | if { ac_try='./$ac_file' | |
2001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2002 | (eval $ac_try) 2>&5 | |
2003 | ac_status=$? | |
2004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2005 | (exit $ac_status); }; }; then | |
2006 | cross_compiling=no | |
2007 | else | |
2008 | if test "$cross_compiling" = maybe; then | |
2009 | cross_compiling=yes | |
2010 | else | |
2011 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2012 | If you meant to cross compile, use \`--host'. | |
2013 | See \`config.log' for more details." >&5 | |
2014 | echo "$as_me: error: cannot run C compiled programs. | |
2015 | If you meant to cross compile, use \`--host'. | |
2016 | See \`config.log' for more details." >&2;} | |
2017 | { (exit 1); exit 1; }; } | |
2018 | fi | |
2019 | fi | |
2020 | fi | |
2021 | echo "$as_me:$LINENO: result: yes" >&5 | |
2022 | echo "${ECHO_T}yes" >&6 | |
2023 | ||
2024 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2025 | ac_clean_files=$ac_clean_files_save | |
2026 | # Check the compiler produces executables we can run. If not, either | |
2027 | # the compiler is broken, or we cross compile. | |
2028 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2029 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2030 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2031 | echo "${ECHO_T}$cross_compiling" >&6 | |
2032 | ||
2033 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2034 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2035 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2036 | (eval $ac_link) 2>&5 | |
2037 | ac_status=$? | |
2038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2039 | (exit $ac_status); }; then | |
2040 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2041 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2042 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2043 | # `rm'. | |
2044 | for ac_file in conftest.exe conftest conftest.*; do | |
2045 | test -f "$ac_file" || continue | |
2046 | case $ac_file in | |
2047 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2048 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2049 | export ac_cv_exeext | |
2050 | break;; | |
2051 | * ) break;; | |
2052 | esac | |
2053 | done | |
2054 | else | |
2055 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2056 | See \`config.log' for more details." >&5 | |
2057 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2058 | See \`config.log' for more details." >&2;} | |
2059 | { (exit 1); exit 1; }; } | |
2060 | fi | |
2061 | ||
2062 | rm -f conftest$ac_cv_exeext | |
2063 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2064 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2065 | ||
2066 | rm -f conftest.$ac_ext | |
2067 | EXEEXT=$ac_cv_exeext | |
2068 | ac_exeext=$EXEEXT | |
2069 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2070 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2071 | if test "${ac_cv_objext+set}" = set; then | |
2072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2073 | else | |
2074 | cat >conftest.$ac_ext <<_ACEOF | |
2075 | /* confdefs.h. */ | |
2076 | _ACEOF | |
2077 | cat confdefs.h >>conftest.$ac_ext | |
2078 | cat >>conftest.$ac_ext <<_ACEOF | |
2079 | /* end confdefs.h. */ | |
2080 | ||
2081 | int | |
2082 | main () | |
2083 | { | |
2084 | ||
2085 | ; | |
2086 | return 0; | |
2087 | } | |
2088 | _ACEOF | |
2089 | rm -f conftest.o conftest.obj | |
2090 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2091 | (eval $ac_compile) 2>&5 | |
2092 | ac_status=$? | |
2093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2094 | (exit $ac_status); }; then | |
2095 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2096 | case $ac_file in | |
2097 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2098 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2099 | break;; | |
2100 | esac | |
2101 | done | |
2102 | else | |
2103 | echo "$as_me: failed program was:" >&5 | |
2104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2105 | ||
2106 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2107 | See \`config.log' for more details." >&5 | |
2108 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2109 | See \`config.log' for more details." >&2;} | |
2110 | { (exit 1); exit 1; }; } | |
2111 | fi | |
2112 | ||
2113 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2114 | fi | |
2115 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2116 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2117 | OBJEXT=$ac_cv_objext | |
2118 | ac_objext=$OBJEXT | |
2119 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2120 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2121 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2123 | else | |
2124 | cat >conftest.$ac_ext <<_ACEOF | |
2125 | /* confdefs.h. */ | |
2126 | _ACEOF | |
2127 | cat confdefs.h >>conftest.$ac_ext | |
2128 | cat >>conftest.$ac_ext <<_ACEOF | |
2129 | /* end confdefs.h. */ | |
2130 | ||
2131 | int | |
2132 | main () | |
2133 | { | |
2134 | #ifndef __GNUC__ | |
2135 | choke me | |
2136 | #endif | |
2137 | ||
2138 | ; | |
2139 | return 0; | |
2140 | } | |
2141 | _ACEOF | |
2142 | rm -f conftest.$ac_objext | |
2143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2144 | (eval $ac_compile) 2>conftest.er1 | |
2145 | ac_status=$? | |
2146 | grep -v '^ *+' conftest.er1 >conftest.err | |
2147 | rm -f conftest.er1 | |
2148 | cat conftest.err >&5 | |
2149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2150 | (exit $ac_status); } && | |
502bdb00 JW |
2151 | { ac_try='test -z "$ac_c_werror_flag" |
2152 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2154 | (eval $ac_try) 2>&5 | |
2155 | ac_status=$? | |
2156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2157 | (exit $ac_status); }; } && | |
2158 | { ac_try='test -s conftest.$ac_objext' | |
2159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2160 | (eval $ac_try) 2>&5 | |
2161 | ac_status=$? | |
2162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2163 | (exit $ac_status); }; }; then | |
2164 | ac_compiler_gnu=yes | |
2165 | else | |
2166 | echo "$as_me: failed program was:" >&5 | |
2167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2168 | ||
2169 | ac_compiler_gnu=no | |
2170 | fi | |
2171 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2172 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2173 | ||
2174 | fi | |
2175 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2176 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2177 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2178 | ac_test_CFLAGS=${CFLAGS+set} | |
2179 | ac_save_CFLAGS=$CFLAGS | |
2180 | CFLAGS="-g" | |
2181 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2182 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2183 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2185 | else | |
2186 | cat >conftest.$ac_ext <<_ACEOF | |
2187 | /* confdefs.h. */ | |
2188 | _ACEOF | |
2189 | cat confdefs.h >>conftest.$ac_ext | |
2190 | cat >>conftest.$ac_ext <<_ACEOF | |
2191 | /* end confdefs.h. */ | |
2192 | ||
2193 | int | |
2194 | main () | |
2195 | { | |
2196 | ||
2197 | ; | |
2198 | return 0; | |
2199 | } | |
2200 | _ACEOF | |
2201 | rm -f conftest.$ac_objext | |
2202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2203 | (eval $ac_compile) 2>conftest.er1 | |
2204 | ac_status=$? | |
2205 | grep -v '^ *+' conftest.er1 >conftest.err | |
2206 | rm -f conftest.er1 | |
2207 | cat conftest.err >&5 | |
2208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2209 | (exit $ac_status); } && | |
502bdb00 JW |
2210 | { ac_try='test -z "$ac_c_werror_flag" |
2211 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2213 | (eval $ac_try) 2>&5 | |
2214 | ac_status=$? | |
2215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2216 | (exit $ac_status); }; } && | |
2217 | { ac_try='test -s conftest.$ac_objext' | |
2218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2219 | (eval $ac_try) 2>&5 | |
2220 | ac_status=$? | |
2221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2222 | (exit $ac_status); }; }; then | |
2223 | ac_cv_prog_cc_g=yes | |
2224 | else | |
2225 | echo "$as_me: failed program was:" >&5 | |
2226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2227 | ||
2228 | ac_cv_prog_cc_g=no | |
2229 | fi | |
2230 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2231 | fi | |
2232 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2233 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2234 | if test "$ac_test_CFLAGS" = set; then | |
2235 | CFLAGS=$ac_save_CFLAGS | |
2236 | elif test $ac_cv_prog_cc_g = yes; then | |
2237 | if test "$GCC" = yes; then | |
2238 | CFLAGS="-g -O2" | |
2239 | else | |
2240 | CFLAGS="-g" | |
2241 | fi | |
2242 | else | |
2243 | if test "$GCC" = yes; then | |
2244 | CFLAGS="-O2" | |
2245 | else | |
2246 | CFLAGS= | |
2247 | fi | |
2248 | fi | |
2249 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2250 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2251 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2253 | else | |
2254 | ac_cv_prog_cc_stdc=no | |
2255 | ac_save_CC=$CC | |
2256 | cat >conftest.$ac_ext <<_ACEOF | |
2257 | /* confdefs.h. */ | |
2258 | _ACEOF | |
2259 | cat confdefs.h >>conftest.$ac_ext | |
2260 | cat >>conftest.$ac_ext <<_ACEOF | |
2261 | /* end confdefs.h. */ | |
2262 | #include <stdarg.h> | |
2263 | #include <stdio.h> | |
2264 | #include <sys/types.h> | |
2265 | #include <sys/stat.h> | |
2266 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2267 | struct buf { int x; }; | |
2268 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2269 | static char *e (p, i) | |
2270 | char **p; | |
2271 | int i; | |
2272 | { | |
2273 | return p[i]; | |
2274 | } | |
2275 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2276 | { | |
2277 | char *s; | |
2278 | va_list v; | |
2279 | va_start (v,p); | |
2280 | s = g (p, va_arg (v,int)); | |
2281 | va_end (v); | |
2282 | return s; | |
2283 | } | |
2284 | ||
2285 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2286 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2287 | These don't provoke an error unfortunately, instead are silently treated | |
2288 | as 'x'. The following induces an error, until -std1 is added to get | |
2289 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2290 | array size at least. It's necessary to write '\x00'==0 to get something | |
2291 | that's true only with -std1. */ | |
2292 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2293 | ||
2294 | int test (int i, double x); | |
2295 | struct s1 {int (*f) (int a);}; | |
2296 | struct s2 {int (*f) (double a);}; | |
2297 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2298 | int argc; | |
2299 | char **argv; | |
2300 | int | |
2301 | main () | |
2302 | { | |
2303 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2304 | ; | |
2305 | return 0; | |
2306 | } | |
2307 | _ACEOF | |
2308 | # Don't try gcc -ansi; that turns off useful extensions and | |
2309 | # breaks some systems' header files. | |
2310 | # AIX -qlanglvl=ansi | |
2311 | # Ultrix and OSF/1 -std1 | |
2312 | # HP-UX 10.20 and later -Ae | |
2313 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2314 | # SVR4 -Xc -D__EXTENSIONS__ | |
2315 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2316 | do | |
2317 | CC="$ac_save_CC $ac_arg" | |
2318 | rm -f conftest.$ac_objext | |
2319 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2320 | (eval $ac_compile) 2>conftest.er1 | |
2321 | ac_status=$? | |
2322 | grep -v '^ *+' conftest.er1 >conftest.err | |
2323 | rm -f conftest.er1 | |
2324 | cat conftest.err >&5 | |
2325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2326 | (exit $ac_status); } && | |
502bdb00 JW |
2327 | { ac_try='test -z "$ac_c_werror_flag" |
2328 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2330 | (eval $ac_try) 2>&5 | |
2331 | ac_status=$? | |
2332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2333 | (exit $ac_status); }; } && | |
2334 | { ac_try='test -s conftest.$ac_objext' | |
2335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2336 | (eval $ac_try) 2>&5 | |
2337 | ac_status=$? | |
2338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2339 | (exit $ac_status); }; }; then | |
2340 | ac_cv_prog_cc_stdc=$ac_arg | |
2341 | break | |
2342 | else | |
2343 | echo "$as_me: failed program was:" >&5 | |
2344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2345 | ||
2346 | fi | |
2347 | rm -f conftest.err conftest.$ac_objext | |
2348 | done | |
2349 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2350 | CC=$ac_save_CC | |
2351 | ||
2352 | fi | |
2353 | ||
2354 | case "x$ac_cv_prog_cc_stdc" in | |
2355 | x|xno) | |
2356 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2357 | echo "${ECHO_T}none needed" >&6 ;; | |
2358 | *) | |
2359 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2360 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2361 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2362 | esac | |
2363 | ||
2364 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2365 | # in C++ we need to declare it. In case someone uses the same compiler | |
2366 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2367 | # the declaration of exit, since it's the most demanding environment. | |
2368 | cat >conftest.$ac_ext <<_ACEOF | |
2369 | #ifndef __cplusplus | |
2370 | choke me | |
2371 | #endif | |
2372 | _ACEOF | |
2373 | rm -f conftest.$ac_objext | |
2374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2375 | (eval $ac_compile) 2>conftest.er1 | |
2376 | ac_status=$? | |
2377 | grep -v '^ *+' conftest.er1 >conftest.err | |
2378 | rm -f conftest.er1 | |
2379 | cat conftest.err >&5 | |
2380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2381 | (exit $ac_status); } && | |
502bdb00 JW |
2382 | { ac_try='test -z "$ac_c_werror_flag" |
2383 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2385 | (eval $ac_try) 2>&5 | |
2386 | ac_status=$? | |
2387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2388 | (exit $ac_status); }; } && | |
2389 | { ac_try='test -s conftest.$ac_objext' | |
2390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2391 | (eval $ac_try) 2>&5 | |
2392 | ac_status=$? | |
2393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2394 | (exit $ac_status); }; }; then | |
2395 | for ac_declaration in \ | |
2396 | '' \ | |
2397 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2398 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2399 | 'extern "C" void exit (int) throw ();' \ | |
2400 | 'extern "C" void exit (int);' \ | |
2401 | 'void exit (int);' | |
2402 | do | |
2403 | cat >conftest.$ac_ext <<_ACEOF | |
2404 | /* confdefs.h. */ | |
2405 | _ACEOF | |
2406 | cat confdefs.h >>conftest.$ac_ext | |
2407 | cat >>conftest.$ac_ext <<_ACEOF | |
2408 | /* end confdefs.h. */ | |
2409 | $ac_declaration | |
2410 | #include <stdlib.h> | |
2411 | int | |
2412 | main () | |
2413 | { | |
2414 | exit (42); | |
2415 | ; | |
2416 | return 0; | |
2417 | } | |
2418 | _ACEOF | |
2419 | rm -f conftest.$ac_objext | |
2420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2421 | (eval $ac_compile) 2>conftest.er1 | |
2422 | ac_status=$? | |
2423 | grep -v '^ *+' conftest.er1 >conftest.err | |
2424 | rm -f conftest.er1 | |
2425 | cat conftest.err >&5 | |
2426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2427 | (exit $ac_status); } && | |
502bdb00 JW |
2428 | { ac_try='test -z "$ac_c_werror_flag" |
2429 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2431 | (eval $ac_try) 2>&5 | |
2432 | ac_status=$? | |
2433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2434 | (exit $ac_status); }; } && | |
2435 | { ac_try='test -s conftest.$ac_objext' | |
2436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2437 | (eval $ac_try) 2>&5 | |
2438 | ac_status=$? | |
2439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2440 | (exit $ac_status); }; }; then | |
2441 | : | |
2442 | else | |
2443 | echo "$as_me: failed program was:" >&5 | |
2444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2445 | ||
2446 | continue | |
2447 | fi | |
2448 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2449 | cat >conftest.$ac_ext <<_ACEOF | |
2450 | /* confdefs.h. */ | |
2451 | _ACEOF | |
2452 | cat confdefs.h >>conftest.$ac_ext | |
2453 | cat >>conftest.$ac_ext <<_ACEOF | |
2454 | /* end confdefs.h. */ | |
2455 | $ac_declaration | |
2456 | int | |
2457 | main () | |
2458 | { | |
2459 | exit (42); | |
2460 | ; | |
2461 | return 0; | |
2462 | } | |
2463 | _ACEOF | |
2464 | rm -f conftest.$ac_objext | |
2465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2466 | (eval $ac_compile) 2>conftest.er1 | |
2467 | ac_status=$? | |
2468 | grep -v '^ *+' conftest.er1 >conftest.err | |
2469 | rm -f conftest.er1 | |
2470 | cat conftest.err >&5 | |
2471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2472 | (exit $ac_status); } && | |
502bdb00 JW |
2473 | { ac_try='test -z "$ac_c_werror_flag" |
2474 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2476 | (eval $ac_try) 2>&5 | |
2477 | ac_status=$? | |
2478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2479 | (exit $ac_status); }; } && | |
2480 | { ac_try='test -s conftest.$ac_objext' | |
2481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2482 | (eval $ac_try) 2>&5 | |
2483 | ac_status=$? | |
2484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2485 | (exit $ac_status); }; }; then | |
2486 | break | |
2487 | else | |
2488 | echo "$as_me: failed program was:" >&5 | |
2489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2490 | ||
2491 | fi | |
2492 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2493 | done | |
2494 | rm -f conftest* | |
2495 | if test -n "$ac_declaration"; then | |
2496 | echo '#ifdef __cplusplus' >>confdefs.h | |
2497 | echo $ac_declaration >>confdefs.h | |
2498 | echo '#endif' >>confdefs.h | |
2499 | fi | |
2500 | ||
2501 | else | |
2502 | echo "$as_me: failed program was:" >&5 | |
2503 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2504 | ||
2505 | fi | |
2506 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2507 | ac_ext=c | |
2508 | ac_cpp='$CPP $CPPFLAGS' | |
2509 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2510 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2511 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2512 | ||
2513 | ||
2514 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 | |
2515 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
2516 | if test "${ac_cv_search_strerror+set}" = set; then | |
2517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2518 | else | |
2519 | ac_func_search_save_LIBS=$LIBS | |
2520 | ac_cv_search_strerror=no | |
2521 | cat >conftest.$ac_ext <<_ACEOF | |
2522 | /* confdefs.h. */ | |
2523 | _ACEOF | |
2524 | cat confdefs.h >>conftest.$ac_ext | |
2525 | cat >>conftest.$ac_ext <<_ACEOF | |
2526 | /* end confdefs.h. */ | |
2527 | ||
2528 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2529 | #ifdef __cplusplus | |
2530 | extern "C" | |
2531 | #endif | |
2532 | /* We use char because int might match the return type of a gcc2 | |
2533 | builtin and then its argument prototype would still apply. */ | |
2534 | char strerror (); | |
2535 | int | |
2536 | main () | |
2537 | { | |
2538 | strerror (); | |
2539 | ; | |
2540 | return 0; | |
2541 | } | |
2542 | _ACEOF | |
2543 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2544 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2545 | (eval $ac_link) 2>conftest.er1 | |
2546 | ac_status=$? | |
2547 | grep -v '^ *+' conftest.er1 >conftest.err | |
2548 | rm -f conftest.er1 | |
2549 | cat conftest.err >&5 | |
2550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2551 | (exit $ac_status); } && | |
502bdb00 JW |
2552 | { ac_try='test -z "$ac_c_werror_flag" |
2553 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2555 | (eval $ac_try) 2>&5 | |
2556 | ac_status=$? | |
2557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2558 | (exit $ac_status); }; } && | |
2559 | { ac_try='test -s conftest$ac_exeext' | |
2560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2561 | (eval $ac_try) 2>&5 | |
2562 | ac_status=$? | |
2563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2564 | (exit $ac_status); }; }; then | |
2565 | ac_cv_search_strerror="none required" | |
2566 | else | |
2567 | echo "$as_me: failed program was:" >&5 | |
2568 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2569 | ||
2570 | fi | |
2571 | rm -f conftest.err conftest.$ac_objext \ | |
2572 | conftest$ac_exeext conftest.$ac_ext | |
2573 | if test "$ac_cv_search_strerror" = no; then | |
2574 | for ac_lib in cposix; do | |
2575 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2576 | cat >conftest.$ac_ext <<_ACEOF | |
2577 | /* confdefs.h. */ | |
2578 | _ACEOF | |
2579 | cat confdefs.h >>conftest.$ac_ext | |
2580 | cat >>conftest.$ac_ext <<_ACEOF | |
2581 | /* end confdefs.h. */ | |
2582 | ||
2583 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2584 | #ifdef __cplusplus | |
2585 | extern "C" | |
2586 | #endif | |
2587 | /* We use char because int might match the return type of a gcc2 | |
2588 | builtin and then its argument prototype would still apply. */ | |
2589 | char strerror (); | |
2590 | int | |
2591 | main () | |
2592 | { | |
2593 | strerror (); | |
2594 | ; | |
2595 | return 0; | |
2596 | } | |
2597 | _ACEOF | |
2598 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2599 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2600 | (eval $ac_link) 2>conftest.er1 | |
2601 | ac_status=$? | |
2602 | grep -v '^ *+' conftest.er1 >conftest.err | |
2603 | rm -f conftest.er1 | |
2604 | cat conftest.err >&5 | |
2605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2606 | (exit $ac_status); } && | |
502bdb00 JW |
2607 | { ac_try='test -z "$ac_c_werror_flag" |
2608 | || test ! -s conftest.err' | |
42ecbf5e DJ |
2609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2610 | (eval $ac_try) 2>&5 | |
2611 | ac_status=$? | |
2612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2613 | (exit $ac_status); }; } && | |
2614 | { ac_try='test -s conftest$ac_exeext' | |
2615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2616 | (eval $ac_try) 2>&5 | |
2617 | ac_status=$? | |
2618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2619 | (exit $ac_status); }; }; then | |
2620 | ac_cv_search_strerror="-l$ac_lib" | |
2621 | break | |
2622 | else | |
2623 | echo "$as_me: failed program was:" >&5 | |
2624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2625 | ||
2626 | fi | |
2627 | rm -f conftest.err conftest.$ac_objext \ | |
2628 | conftest$ac_exeext conftest.$ac_ext | |
2629 | done | |
2630 | fi | |
2631 | LIBS=$ac_func_search_save_LIBS | |
2632 | fi | |
2633 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
2634 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2635 | if test "$ac_cv_search_strerror" != no; then | |
2636 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
2637 | ||
2638 | fi | |
e5a52504 MM |
2639 | |
2640 | ||
2641 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` | |
42ecbf5e | 2642 | am__api_version="1.9" |
e5a52504 MM |
2643 | # Find a good install program. We prefer a C program (faster), |
2644 | # so one script is as good as another. But avoid the broken or | |
2645 | # incompatible versions: | |
2646 | # SysV /etc/install, /usr/sbin/install | |
2647 | # SunOS /usr/etc/install | |
2648 | # IRIX /sbin/install | |
2649 | # AIX /bin/install | |
42ecbf5e | 2650 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e5a52504 MM |
2651 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2652 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2653 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
42ecbf5e | 2654 | # OS/2's system install, which has a completely different semantic |
e5a52504 | 2655 | # ./install, which can be erroneously created by make from ./install.sh. |
42ecbf5e DJ |
2656 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2657 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
e5a52504 | 2658 | if test -z "$INSTALL"; then |
42ecbf5e DJ |
2659 | if test "${ac_cv_path_install+set}" = set; then |
2660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e5a52504 | 2661 | else |
42ecbf5e DJ |
2662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2663 | for as_dir in $PATH | |
2664 | do | |
2665 | IFS=$as_save_IFS | |
2666 | test -z "$as_dir" && as_dir=. | |
2667 | # Account for people who put trailing slashes in PATH elements. | |
2668 | case $as_dir/ in | |
2669 | ./ | .// | /cC/* | \ | |
2670 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2671 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2672 | /usr/ucb/* ) ;; | |
2673 | *) | |
2674 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2675 | # Don't use installbsd from OSF since it installs stuff as root | |
2676 | # by default. | |
2677 | for ac_prog in ginstall scoinst install; do | |
2678 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2679 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
252b5132 | 2680 | if test $ac_prog = install && |
42ecbf5e | 2681 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
252b5132 RH |
2682 | # AIX install. It has an incompatible calling convention. |
2683 | : | |
42ecbf5e DJ |
2684 | elif test $ac_prog = install && |
2685 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2686 | # program-specific install script used by HP pwplus--don't use. | |
2687 | : | |
252b5132 | 2688 | else |
42ecbf5e DJ |
2689 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2690 | break 3 | |
252b5132 RH |
2691 | fi |
2692 | fi | |
2693 | done | |
42ecbf5e DJ |
2694 | done |
2695 | ;; | |
2696 | esac | |
2697 | done | |
2698 | ||
252b5132 RH |
2699 | |
2700 | fi | |
2701 | if test "${ac_cv_path_install+set}" = set; then | |
42ecbf5e | 2702 | INSTALL=$ac_cv_path_install |
252b5132 RH |
2703 | else |
2704 | # As a last resort, use the slow shell script. We don't cache a | |
2705 | # path for INSTALL within a source directory, because that will | |
2706 | # break other packages using the cache if that directory is | |
2707 | # removed, or if the path is relative. | |
42ecbf5e | 2708 | INSTALL=$ac_install_sh |
252b5132 RH |
2709 | fi |
2710 | fi | |
42ecbf5e DJ |
2711 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2712 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
2713 | |
2714 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2715 | # It thinks the first close brace ends the variable substitution. | |
2716 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2717 | ||
42ecbf5e | 2718 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
2719 | |
2720 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2721 | ||
42ecbf5e DJ |
2722 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2723 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
252b5132 RH |
2724 | # Just in case |
2725 | sleep 1 | |
42ecbf5e | 2726 | echo timestamp > conftest.file |
252b5132 RH |
2727 | # Do `set' in a subshell so we don't clobber the current shell's |
2728 | # arguments. Must try -L first in case configure is actually a | |
2729 | # symlink; some systems play weird games with the mod time of symlinks | |
2730 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2731 | # directory). | |
2732 | if ( | |
42ecbf5e | 2733 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
252b5132 RH |
2734 | if test "$*" = "X"; then |
2735 | # -L didn't work. | |
42ecbf5e | 2736 | set X `ls -t $srcdir/configure conftest.file` |
252b5132 | 2737 | fi |
42ecbf5e DJ |
2738 | rm -f conftest.file |
2739 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2740 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
2741 | |
2742 | # If neither matched, then we have a broken ls. This can happen | |
2743 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2744 | # broken ls alias from the environment. This has actually | |
2745 | # happened. Such a system could not be considered "sane". | |
42ecbf5e DJ |
2746 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2747 | alias in your environment" >&5 | |
2748 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2749 | alias in your environment" >&2;} | |
2750 | { (exit 1); exit 1; }; } | |
252b5132 RH |
2751 | fi |
2752 | ||
42ecbf5e | 2753 | test "$2" = conftest.file |
252b5132 RH |
2754 | ) |
2755 | then | |
2756 | # Ok. | |
2757 | : | |
2758 | else | |
42ecbf5e DJ |
2759 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2760 | Check your system clock" >&5 | |
2761 | echo "$as_me: error: newly created file is older than distributed files! | |
2762 | Check your system clock" >&2;} | |
2763 | { (exit 1); exit 1; }; } | |
252b5132 | 2764 | fi |
42ecbf5e DJ |
2765 | echo "$as_me:$LINENO: result: yes" >&5 |
2766 | echo "${ECHO_T}yes" >&6 | |
252b5132 | 2767 | test "$program_prefix" != NONE && |
42ecbf5e | 2768 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
252b5132 RH |
2769 | # Use a double $ so make ignores it. |
2770 | test "$program_suffix" != NONE && | |
42ecbf5e DJ |
2771 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
2772 | # Double any \ or $. echo might interpret backslashes. | |
2773 | # By default was `s,x,x', remove it if useless. | |
2774 | cat <<\_ACEOF >conftest.sed | |
2775 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2776 | _ACEOF | |
2777 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
2778 | rm conftest.sed | |
2779 | ||
2780 | # expand $ac_aux_dir to an absolute path | |
2781 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2782 | ||
2783 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2784 | # Use eval to expand $SHELL | |
2785 | if eval "$MISSING --run true"; then | |
2786 | am_missing_run="$MISSING --run " | |
2787 | else | |
2788 | am_missing_run= | |
2789 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2790 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2791 | fi | |
2792 | ||
2793 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
2794 | # We used to keeping the `.' as first argument, in order to | |
2795 | # allow $(mkdir_p) to be used without argument. As in | |
2796 | # $(mkdir_p) $(somedir) | |
2797 | # where $(somedir) is conditionally defined. However this is wrong | |
2798 | # for two reasons: | |
2799 | # 1. if the package is installed by a user who cannot write `.' | |
2800 | # make install will fail, | |
2801 | # 2. the above comment should most certainly read | |
2802 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
2803 | # so it does not work when $(somedir) is undefined and | |
2804 | # $(DESTDIR) is not. | |
2805 | # To support the latter case, we have to write | |
2806 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
2807 | # so the `.' trick is pointless. | |
2808 | mkdir_p='mkdir -p --' | |
2809 | else | |
2810 | # On NextStep and OpenStep, the `mkdir' command does not | |
2811 | # recognize any option. It will interpret all options as | |
2812 | # directories to create, and then abort because `.' already | |
2813 | # exists. | |
2814 | for d in ./-p ./--version; | |
2815 | do | |
2816 | test -d $d && rmdir $d | |
2817 | done | |
2818 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
2819 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
2820 | mkdir_p='$(mkinstalldirs)' | |
2821 | else | |
2822 | mkdir_p='$(install_sh) -d' | |
2823 | fi | |
2824 | fi | |
2825 | ||
2826 | for ac_prog in gawk mawk nawk awk | |
2827 | do | |
2828 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2829 | set dummy $ac_prog; ac_word=$2 | |
2830 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2831 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2832 | if test "${ac_cv_prog_AWK+set}" = set; then | |
2833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2834 | else | |
2835 | if test -n "$AWK"; then | |
2836 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2837 | else | |
2838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2839 | for as_dir in $PATH | |
2840 | do | |
2841 | IFS=$as_save_IFS | |
2842 | test -z "$as_dir" && as_dir=. | |
2843 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2844 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2845 | ac_cv_prog_AWK="$ac_prog" | |
2846 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2847 | break 2 | |
2848 | fi | |
2849 | done | |
2850 | done | |
2851 | ||
2852 | fi | |
2853 | fi | |
2854 | AWK=$ac_cv_prog_AWK | |
2855 | if test -n "$AWK"; then | |
2856 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
2857 | echo "${ECHO_T}$AWK" >&6 | |
2858 | else | |
2859 | echo "$as_me:$LINENO: result: no" >&5 | |
2860 | echo "${ECHO_T}no" >&6 | |
2861 | fi | |
252b5132 | 2862 | |
42ecbf5e DJ |
2863 | test -n "$AWK" && break |
2864 | done | |
252b5132 | 2865 | |
42ecbf5e DJ |
2866 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2867 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
2868 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
2869 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
2870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 2871 | else |
42ecbf5e | 2872 | cat >conftest.make <<\_ACEOF |
252b5132 | 2873 | all: |
42ecbf5e DJ |
2874 | @echo 'ac_maketemp="$(MAKE)"' |
2875 | _ACEOF | |
252b5132 | 2876 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
42ecbf5e | 2877 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
252b5132 RH |
2878 | if test -n "$ac_maketemp"; then |
2879 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2880 | else | |
2881 | eval ac_cv_prog_make_${ac_make}_set=no | |
2882 | fi | |
42ecbf5e | 2883 | rm -f conftest.make |
252b5132 RH |
2884 | fi |
2885 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
42ecbf5e DJ |
2886 | echo "$as_me:$LINENO: result: yes" >&5 |
2887 | echo "${ECHO_T}yes" >&6 | |
252b5132 RH |
2888 | SET_MAKE= |
2889 | else | |
42ecbf5e DJ |
2890 | echo "$as_me:$LINENO: result: no" >&5 |
2891 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
2892 | SET_MAKE="MAKE=${MAKE-make}" |
2893 | fi | |
2894 | ||
42ecbf5e DJ |
2895 | rm -rf .tst 2>/dev/null |
2896 | mkdir .tst 2>/dev/null | |
2897 | if test -d .tst; then | |
2898 | am__leading_dot=. | |
2899 | else | |
2900 | am__leading_dot=_ | |
2901 | fi | |
2902 | rmdir .tst 2>/dev/null | |
2903 | ||
2904 | DEPDIR="${am__leading_dot}deps" | |
2905 | ||
2906 | ac_config_commands="$ac_config_commands depfiles" | |
2907 | ||
2908 | ||
2909 | am_make=${MAKE-make} | |
2910 | cat > confinc << 'END' | |
2911 | am__doit: | |
2912 | @echo done | |
2913 | .PHONY: am__doit | |
2914 | END | |
2915 | # If we don't find an include directive, just comment out the code. | |
2916 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2917 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2918 | am__include="#" | |
2919 | am__quote= | |
2920 | _am_result=none | |
2921 | # First try GNU make style include. | |
2922 | echo "include confinc" > confmf | |
2923 | # We grep out `Entering directory' and `Leaving directory' | |
2924 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2925 | # In particular we don't look at `^make:' because GNU make might | |
2926 | # be invoked under some other name (usually "gmake"), in which | |
2927 | # case it prints its new name instead of `make'. | |
2928 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2929 | am__include=include | |
2930 | am__quote= | |
2931 | _am_result=GNU | |
2932 | fi | |
2933 | # Now try BSD make style include. | |
2934 | if test "$am__include" = "#"; then | |
2935 | echo '.include "confinc"' > confmf | |
2936 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2937 | am__include=.include | |
2938 | am__quote="\"" | |
2939 | _am_result=BSD | |
2940 | fi | |
2941 | fi | |
2942 | ||
2943 | ||
2944 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2945 | echo "${ECHO_T}$_am_result" >&6 | |
2946 | rm -f confinc confmf | |
2947 | ||
2948 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
2949 | if test "${enable_dependency_tracking+set}" = set; then | |
2950 | enableval="$enable_dependency_tracking" | |
2951 | ||
2952 | fi; | |
2953 | if test "x$enable_dependency_tracking" != xno; then | |
2954 | am_depcomp="$ac_aux_dir/depcomp" | |
2955 | AMDEPBACKSLASH='\' | |
2956 | fi | |
2957 | ||
2958 | ||
2959 | if test "x$enable_dependency_tracking" != xno; then | |
2960 | AMDEP_TRUE= | |
2961 | AMDEP_FALSE='#' | |
2962 | else | |
2963 | AMDEP_TRUE='#' | |
2964 | AMDEP_FALSE= | |
2965 | fi | |
2966 | ||
e5a52504 MM |
2967 | |
2968 | ||
42ecbf5e DJ |
2969 | # test to see if srcdir already configured |
2970 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
2971 | test -f $srcdir/config.status; then | |
2972 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
2973 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2974 | { (exit 1); exit 1; }; } | |
2975 | fi | |
252b5132 | 2976 | |
42ecbf5e DJ |
2977 | # test whether we have cygpath |
2978 | if test -z "$CYGPATH_W"; then | |
2979 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2980 | CYGPATH_W='cygpath -w' | |
2981 | else | |
2982 | CYGPATH_W=echo | |
2983 | fi | |
252b5132 | 2984 | fi |
42ecbf5e DJ |
2985 | |
2986 | ||
2987 | # Define the identity of the package. | |
2988 | PACKAGE=ld | |
2989 | VERSION=${BFD_VERSION} | |
2990 | ||
2991 | ||
2992 | cat >>confdefs.h <<_ACEOF | |
e5a52504 | 2993 | #define PACKAGE "$PACKAGE" |
42ecbf5e DJ |
2994 | _ACEOF |
2995 | ||
252b5132 | 2996 | |
42ecbf5e | 2997 | cat >>confdefs.h <<_ACEOF |
e5a52504 | 2998 | #define VERSION "$VERSION" |
42ecbf5e DJ |
2999 | _ACEOF |
3000 | ||
3001 | # Some tools Automake needs. | |
3002 | ||
3003 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3004 | ||
3005 | ||
3006 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3007 | ||
3008 | ||
3009 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3010 | ||
3011 | ||
3012 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3013 | ||
e5a52504 | 3014 | |
42ecbf5e | 3015 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
e5a52504 | 3016 | |
42ecbf5e | 3017 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
e5a52504 | 3018 | |
42ecbf5e DJ |
3019 | # Installed binaries are usually stripped using `strip' when the user |
3020 | # run `make install-strip'. However `strip' might not be the right | |
3021 | # tool to use in cross-compilation environments, therefore Automake | |
3022 | # will honor the `STRIP' environment variable to overrule this program. | |
3023 | if test "$cross_compiling" != no; then | |
3024 | if test -n "$ac_tool_prefix"; then | |
3025 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3026 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3027 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3028 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3029 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
3030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3031 | else | |
3032 | if test -n "$STRIP"; then | |
3033 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3034 | else | |
3035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3036 | for as_dir in $PATH | |
3037 | do | |
3038 | IFS=$as_save_IFS | |
3039 | test -z "$as_dir" && as_dir=. | |
3040 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3041 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3042 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3043 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3044 | break 2 | |
3045 | fi | |
3046 | done | |
3047 | done | |
3048 | ||
3049 | fi | |
3050 | fi | |
3051 | STRIP=$ac_cv_prog_STRIP | |
3052 | if test -n "$STRIP"; then | |
3053 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
3054 | echo "${ECHO_T}$STRIP" >&6 | |
2469cfa2 | 3055 | else |
42ecbf5e DJ |
3056 | echo "$as_me:$LINENO: result: no" >&5 |
3057 | echo "${ECHO_T}no" >&6 | |
3058 | fi | |
3059 | ||
e5a52504 | 3060 | fi |
42ecbf5e DJ |
3061 | if test -z "$ac_cv_prog_STRIP"; then |
3062 | ac_ct_STRIP=$STRIP | |
3063 | # Extract the first word of "strip", so it can be a program name with args. | |
3064 | set dummy strip; ac_word=$2 | |
3065 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3066 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3067 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
3068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3069 | else | |
3070 | if test -n "$ac_ct_STRIP"; then | |
3071 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3072 | else | |
3073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3074 | for as_dir in $PATH | |
3075 | do | |
3076 | IFS=$as_save_IFS | |
3077 | test -z "$as_dir" && as_dir=. | |
3078 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3079 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3080 | ac_cv_prog_ac_ct_STRIP="strip" | |
3081 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3082 | break 2 | |
3083 | fi | |
3084 | done | |
3085 | done | |
e5a52504 | 3086 | |
42ecbf5e DJ |
3087 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
3088 | fi | |
3089 | fi | |
3090 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3091 | if test -n "$ac_ct_STRIP"; then | |
3092 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
3093 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
2469cfa2 | 3094 | else |
42ecbf5e DJ |
3095 | echo "$as_me:$LINENO: result: no" >&5 |
3096 | echo "${ECHO_T}no" >&6 | |
2469cfa2 NC |
3097 | fi |
3098 | ||
42ecbf5e | 3099 | STRIP=$ac_ct_STRIP |
2469cfa2 | 3100 | else |
42ecbf5e DJ |
3101 | STRIP="$ac_cv_prog_STRIP" |
3102 | fi | |
3103 | ||
2469cfa2 | 3104 | fi |
42ecbf5e DJ |
3105 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
3106 | ||
3107 | # We need awk for the "check" target. The system "awk" is bad on | |
3108 | # some platforms. | |
3109 | # Always define AMTAR for backward compatibility. | |
3110 | ||
3111 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
3112 | ||
3113 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
3114 | ||
3115 | ||
3116 | ||
3117 | ||
3118 | depcc="$CC" am_compiler_list= | |
3119 | ||
3120 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
3121 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
3122 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3124 | else | |
3125 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3126 | # We make a subdir and do the tests there. Otherwise we can end up | |
3127 | # making bogus files that we don't know about and never remove. For | |
3128 | # instance it was reported that on HP-UX the gcc test will end up | |
3129 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3130 | # in D'. | |
3131 | mkdir conftest.dir | |
3132 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3133 | # using a relative directory. | |
3134 | cp "$am_depcomp" conftest.dir | |
3135 | cd conftest.dir | |
3136 | # We will build objects and dependencies in a subdirectory because | |
3137 | # it helps to detect inapplicable dependency modes. For instance | |
3138 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3139 | # side effect of compilation, but ICC will put the dependencies in | |
3140 | # the current directory while Tru64 will put them in the object | |
3141 | # directory. | |
3142 | mkdir sub | |
3143 | ||
3144 | am_cv_CC_dependencies_compiler_type=none | |
3145 | if test "$am_compiler_list" = ""; then | |
3146 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3147 | fi | |
3148 | for depmode in $am_compiler_list; do | |
3149 | # Setup a source with many dependencies, because some compilers | |
3150 | # like to wrap large dependency lists on column 80 (with \), and | |
3151 | # we should not choose a depcomp mode which is confused by this. | |
3152 | # | |
3153 | # We need to recreate these files for each test, as the compiler may | |
3154 | # overwrite some of them when testing with obscure command lines. | |
3155 | # This happens at least with the AIX C compiler. | |
3156 | : > sub/conftest.c | |
3157 | for i in 1 2 3 4 5 6; do | |
3158 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3159 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3160 | # Solaris 8's {/usr,}/bin/sh. | |
3161 | touch sub/conftst$i.h | |
3162 | done | |
3163 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3164 | ||
3165 | case $depmode in | |
3166 | nosideeffect) | |
3167 | # after this tag, mechanisms are not by side-effect, so they'll | |
3168 | # only be used when explicitly requested | |
3169 | if test "x$enable_dependency_tracking" = xyes; then | |
3170 | continue | |
3171 | else | |
3172 | break | |
3173 | fi | |
3174 | ;; | |
3175 | none) break ;; | |
3176 | esac | |
3177 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3178 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3179 | # handle `-M -o', and we need to detect this. | |
3180 | if depmode=$depmode \ | |
3181 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3182 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3183 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3184 | >/dev/null 2>conftest.err && | |
3185 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3186 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3187 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3188 | # icc doesn't choke on unknown options, it will just issue warnings | |
3189 | # or remarks (even with -Werror). So we grep stderr for any message | |
3190 | # that says an option was ignored or not supported. | |
3191 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3192 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3193 | # The diagnosis changed in icc 8.0: | |
3194 | # icc: Command line remark: option '-MP' not supported | |
3195 | if (grep 'ignoring option' conftest.err || | |
3196 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3197 | am_cv_CC_dependencies_compiler_type=$depmode | |
3198 | break | |
3199 | fi | |
3200 | fi | |
3201 | done | |
2469cfa2 | 3202 | |
42ecbf5e DJ |
3203 | cd .. |
3204 | rm -rf conftest.dir | |
2469cfa2 | 3205 | else |
42ecbf5e DJ |
3206 | am_cv_CC_dependencies_compiler_type=none |
3207 | fi | |
3208 | ||
2469cfa2 | 3209 | fi |
42ecbf5e DJ |
3210 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3211 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3212 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3213 | ||
2469cfa2 | 3214 | |
42ecbf5e DJ |
3215 | |
3216 | if | |
3217 | test "x$enable_dependency_tracking" != xno \ | |
3218 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3219 | am__fastdepCC_TRUE= | |
3220 | am__fastdepCC_FALSE='#' | |
2469cfa2 | 3221 | else |
42ecbf5e DJ |
3222 | am__fastdepCC_TRUE='#' |
3223 | am__fastdepCC_FALSE= | |
2469cfa2 | 3224 | fi |
2469cfa2 | 3225 | |
2469cfa2 | 3226 | |
e5a52504 | 3227 | |
42ecbf5e | 3228 | |
d7040cdb | 3229 | |
ce2cded5 L |
3230 | # Check whether --with-lib-path or --without-lib-path was given. |
3231 | if test "${with_lib_path+set}" = set; then | |
3232 | withval="$with_lib_path" | |
3233 | LIB_PATH=$withval | |
3234 | fi; | |
3235 | # Check whether --enable-targets or --disable-targets was given. | |
3236 | if test "${enable_targets+set}" = set; then | |
3237 | enableval="$enable_targets" | |
3238 | case "${enableval}" in | |
3239 | yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5 | |
3240 | echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;} | |
3241 | { (exit 1); exit 1; }; } | |
3242 | ;; | |
3243 | no) enable_targets= ;; | |
3244 | *) enable_targets=$enableval ;; | |
3245 | esac | |
3246 | fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given. | |
3247 | if test "${enable_64_bit_bfd+set}" = set; then | |
3248 | enableval="$enable_64_bit_bfd" | |
3249 | case "${enableval}" in | |
3250 | yes) want64=true ;; | |
3251 | no) want64=false ;; | |
3252 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5 | |
3253 | echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;} | |
3254 | { (exit 1); exit 1; }; } ;; | |
3255 | esac | |
2469cfa2 | 3256 | else |
ce2cded5 | 3257 | want64=false |
42ecbf5e | 3258 | fi; |
d7040cdb | 3259 | |
ce2cded5 L |
3260 | # Check whether --with-sysroot or --without-sysroot was given. |
3261 | if test "${with_sysroot+set}" = set; then | |
3262 | withval="$with_sysroot" | |
d7040cdb | 3263 | |
ce2cded5 L |
3264 | case ${with_sysroot} in |
3265 | yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; | |
3266 | *) TARGET_SYSTEM_ROOT=$with_sysroot ;; | |
3267 | esac | |
d7040cdb | 3268 | |
ce2cded5 L |
3269 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' |
3270 | use_sysroot=yes | |
d7040cdb | 3271 | |
ce2cded5 L |
3272 | if test "x$prefix" = xNONE; then |
3273 | test_prefix=/usr/local | |
3274 | else | |
3275 | test_prefix=$prefix | |
3276 | fi | |
3277 | if test "x$exec_prefix" = xNONE; then | |
3278 | test_exec_prefix=$test_prefix | |
3279 | else | |
3280 | test_exec_prefix=$exec_prefix | |
3281 | fi | |
3282 | case ${TARGET_SYSTEM_ROOT} in | |
3283 | "${test_prefix}"|"${test_prefix}/"*|\ | |
3284 | "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ | |
3285 | '${prefix}'|'${prefix}/'*|\ | |
3286 | '${exec_prefix}'|'${exec_prefix}/'*) | |
3287 | t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" | |
3288 | TARGET_SYSTEM_ROOT_DEFINE="$t" | |
3289 | ;; | |
3290 | esac | |
d7040cdb | 3291 | |
e5a52504 | 3292 | else |
d7040cdb | 3293 | |
ce2cded5 L |
3294 | use_sysroot=no |
3295 | TARGET_SYSTEM_ROOT= | |
3296 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' | |
d7040cdb | 3297 | |
ce2cded5 | 3298 | fi; |
d7040cdb SE |
3299 | |
3300 | ||
3301 | ||
3302 | ||
3303 | ||
ce2cded5 | 3304 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
d7040cdb | 3305 | |
ce2cded5 L |
3306 | # Check whether --enable-werror or --disable-werror was given. |
3307 | if test "${enable_werror+set}" = set; then | |
3308 | enableval="$enable_werror" | |
3309 | case "${enableval}" in | |
3310 | yes | y) ERROR_ON_WARNING="yes" ;; | |
3311 | no | n) ERROR_ON_WARNING="no" ;; | |
3312 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 | |
3313 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} | |
3314 | { (exit 1); exit 1; }; } ;; | |
3315 | esac | |
d7040cdb SE |
3316 | fi; |
3317 | ||
bb8541b9 L |
3318 | # Enable -Wno-format by default when using gcc on mingw |
3319 | case "${host}" in | |
3320 | *-*-mingw32*) | |
3321 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
3322 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
3323 | fi | |
3324 | ;; | |
3325 | *) ;; | |
3326 | esac | |
3327 | ||
ce2cded5 L |
3328 | # Enable -Werror by default when using gcc |
3329 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
3330 | ERROR_ON_WARNING=yes | |
3331 | fi | |
d7040cdb | 3332 | |
ce2cded5 L |
3333 | NO_WERROR= |
3334 | if test "${ERROR_ON_WARNING}" = yes ; then | |
3335 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" | |
3336 | NO_WERROR="-Wno-error" | |
3337 | fi | |
d7040cdb | 3338 | |
ce2cded5 L |
3339 | if test "${GCC}" = yes ; then |
3340 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
3341 | fi | |
d7040cdb | 3342 | |
ce2cded5 L |
3343 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
3344 | if test "${enable_build_warnings+set}" = set; then | |
3345 | enableval="$enable_build_warnings" | |
3346 | case "${enableval}" in | |
3347 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; | |
3348 | no) if test "${GCC}" = yes ; then | |
3349 | WARN_CFLAGS="-w" | |
3350 | fi;; | |
3351 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
3352 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; | |
3353 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
3354 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; | |
3355 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
3356 | esac | |
3357 | fi; | |
d7040cdb | 3358 | |
ce2cded5 L |
3359 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then |
3360 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
3361 | fi | |
d7040cdb | 3362 | |
2469cfa2 | 3363 | |
d7040cdb SE |
3364 | |
3365 | ||
3366 | ||
ce2cded5 | 3367 | ac_config_headers="$ac_config_headers config.h:config.in" |
d7040cdb SE |
3368 | |
3369 | ||
ce2cded5 L |
3370 | if test -z "$target" ; then |
3371 | { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5 | |
3372 | echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;} | |
3373 | { (exit 1); exit 1; }; } | |
3374 | fi | |
3375 | if test -z "$host" ; then | |
3376 | { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5 | |
3377 | echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;} | |
3378 | { (exit 1); exit 1; }; } | |
3379 | fi | |
d7040cdb | 3380 | |
ce2cded5 | 3381 | # host-specific stuff: |
d7040cdb | 3382 | |
ce2cded5 L |
3383 | ac_ext=c |
3384 | ac_cpp='$CPP $CPPFLAGS' | |
3385 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3386 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3387 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3388 | if test -n "$ac_tool_prefix"; then | |
3389 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3390 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3391 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3392 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3393 | if test "${ac_cv_prog_CC+set}" = set; then | |
d7040cdb SE |
3394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3395 | else | |
ce2cded5 L |
3396 | if test -n "$CC"; then |
3397 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3398 | else | |
d7040cdb SE |
3399 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3400 | for as_dir in $PATH | |
3401 | do | |
3402 | IFS=$as_save_IFS | |
3403 | test -z "$as_dir" && as_dir=. | |
ce2cded5 L |
3404 | for ac_exec_ext in '' $ac_executable_extensions; do |
3405 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3406 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3407 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3408 | break 2 | |
d7040cdb | 3409 | fi |
ce2cded5 | 3410 | done |
d7040cdb SE |
3411 | done |
3412 | ||
3413 | fi | |
d7040cdb | 3414 | fi |
ce2cded5 L |
3415 | CC=$ac_cv_prog_CC |
3416 | if test -n "$CC"; then | |
3417 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3418 | echo "${ECHO_T}$CC" >&6 | |
d7040cdb | 3419 | else |
ce2cded5 L |
3420 | echo "$as_me:$LINENO: result: no" >&5 |
3421 | echo "${ECHO_T}no" >&6 | |
d7040cdb | 3422 | fi |
d7040cdb | 3423 | |
252b5132 | 3424 | fi |
ce2cded5 L |
3425 | if test -z "$ac_cv_prog_CC"; then |
3426 | ac_ct_CC=$CC | |
3427 | # Extract the first word of "gcc", so it can be a program name with args. | |
3428 | set dummy gcc; ac_word=$2 | |
3429 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3430 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3431 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
42ecbf5e | 3432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 3433 | else |
ce2cded5 L |
3434 | if test -n "$ac_ct_CC"; then |
3435 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
252b5132 | 3436 | else |
ce2cded5 L |
3437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3438 | for as_dir in $PATH | |
3439 | do | |
3440 | IFS=$as_save_IFS | |
3441 | test -z "$as_dir" && as_dir=. | |
3442 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3443 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3444 | ac_cv_prog_ac_ct_CC="gcc" | |
3445 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3446 | break 2 | |
3447 | fi | |
3448 | done | |
3449 | done | |
3450 | ||
252b5132 RH |
3451 | fi |
3452 | fi | |
ce2cded5 L |
3453 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3454 | if test -n "$ac_ct_CC"; then | |
3455 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3456 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
252b5132 | 3457 | else |
42ecbf5e DJ |
3458 | echo "$as_me:$LINENO: result: no" >&5 |
3459 | echo "${ECHO_T}no" >&6 | |
252b5132 | 3460 | fi |
ce2cded5 L |
3461 | |
3462 | CC=$ac_ct_CC | |
252b5132 | 3463 | else |
ce2cded5 | 3464 | CC="$ac_cv_prog_CC" |
252b5132 | 3465 | fi |
d7040cdb | 3466 | |
ce2cded5 L |
3467 | if test -z "$CC"; then |
3468 | if test -n "$ac_tool_prefix"; then | |
3469 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3470 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3471 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3472 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3473 | if test "${ac_cv_prog_CC+set}" = set; then | |
42ecbf5e | 3474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 3475 | else |
ce2cded5 L |
3476 | if test -n "$CC"; then |
3477 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
252b5132 | 3478 | else |
ce2cded5 L |
3479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3480 | for as_dir in $PATH | |
3481 | do | |
3482 | IFS=$as_save_IFS | |
3483 | test -z "$as_dir" && as_dir=. | |
3484 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3485 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3486 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3487 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3488 | break 2 | |
3489 | fi | |
3490 | done | |
3491 | done | |
3492 | ||
252b5132 RH |
3493 | fi |
3494 | fi | |
ce2cded5 L |
3495 | CC=$ac_cv_prog_CC |
3496 | if test -n "$CC"; then | |
3497 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3498 | echo "${ECHO_T}$CC" >&6 | |
d15b04bd | 3499 | else |
ce2cded5 L |
3500 | echo "$as_me:$LINENO: result: no" >&5 |
3501 | echo "${ECHO_T}no" >&6 | |
3502 | fi | |
3503 | ||
3504 | fi | |
3505 | if test -z "$ac_cv_prog_CC"; then | |
3506 | ac_ct_CC=$CC | |
3507 | # Extract the first word of "cc", so it can be a program name with args. | |
3508 | set dummy cc; ac_word=$2 | |
3509 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3510 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3511 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
3512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3513 | else | |
3514 | if test -n "$ac_ct_CC"; then | |
3515 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3516 | else | |
3517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3518 | for as_dir in $PATH | |
3519 | do | |
3520 | IFS=$as_save_IFS | |
3521 | test -z "$as_dir" && as_dir=. | |
3522 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3523 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3524 | ac_cv_prog_ac_ct_CC="cc" | |
3525 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3526 | break 2 | |
3527 | fi | |
3528 | done | |
3529 | done | |
3530 | ||
3531 | fi | |
3532 | fi | |
3533 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3534 | if test -n "$ac_ct_CC"; then | |
3535 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3536 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3537 | else | |
3538 | echo "$as_me:$LINENO: result: no" >&5 | |
3539 | echo "${ECHO_T}no" >&6 | |
3540 | fi | |
3541 | ||
3542 | CC=$ac_ct_CC | |
3543 | else | |
3544 | CC="$ac_cv_prog_CC" | |
3545 | fi | |
3546 | ||
3547 | fi | |
3548 | if test -z "$CC"; then | |
3549 | # Extract the first word of "cc", so it can be a program name with args. | |
3550 | set dummy cc; ac_word=$2 | |
3551 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3552 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3553 | if test "${ac_cv_prog_CC+set}" = set; then | |
3554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3555 | else | |
3556 | if test -n "$CC"; then | |
3557 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3558 | else | |
3559 | ac_prog_rejected=no | |
3560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3561 | for as_dir in $PATH | |
3562 | do | |
3563 | IFS=$as_save_IFS | |
3564 | test -z "$as_dir" && as_dir=. | |
3565 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3566 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3567 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3568 | ac_prog_rejected=yes | |
3569 | continue | |
3570 | fi | |
3571 | ac_cv_prog_CC="cc" | |
3572 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3573 | break 2 | |
3574 | fi | |
3575 | done | |
3576 | done | |
3577 | ||
3578 | if test $ac_prog_rejected = yes; then | |
3579 | # We found a bogon in the path, so make sure we never use it. | |
3580 | set dummy $ac_cv_prog_CC | |
3581 | shift | |
3582 | if test $# != 0; then | |
3583 | # We chose a different compiler from the bogus one. | |
3584 | # However, it has the same basename, so the bogon will be chosen | |
3585 | # first if we set CC to just the basename; use the full file name. | |
3586 | shift | |
3587 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3588 | fi | |
3589 | fi | |
3590 | fi | |
3591 | fi | |
3592 | CC=$ac_cv_prog_CC | |
3593 | if test -n "$CC"; then | |
3594 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3595 | echo "${ECHO_T}$CC" >&6 | |
3596 | else | |
3597 | echo "$as_me:$LINENO: result: no" >&5 | |
3598 | echo "${ECHO_T}no" >&6 | |
3599 | fi | |
3600 | ||
3601 | fi | |
3602 | if test -z "$CC"; then | |
d7040cdb | 3603 | if test -n "$ac_tool_prefix"; then |
ce2cded5 | 3604 | for ac_prog in cl |
d7040cdb SE |
3605 | do |
3606 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3607 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3608 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3609 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ce2cded5 | 3610 | if test "${ac_cv_prog_CC+set}" = set; then |
d7040cdb SE |
3611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3612 | else | |
ce2cded5 L |
3613 | if test -n "$CC"; then |
3614 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
d7040cdb SE |
3615 | else |
3616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3617 | for as_dir in $PATH | |
3618 | do | |
3619 | IFS=$as_save_IFS | |
3620 | test -z "$as_dir" && as_dir=. | |
3621 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3622 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
ce2cded5 | 3623 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
d7040cdb SE |
3624 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3625 | break 2 | |
3626 | fi | |
3627 | done | |
3628 | done | |
3629 | ||
3630 | fi | |
3631 | fi | |
ce2cded5 L |
3632 | CC=$ac_cv_prog_CC |
3633 | if test -n "$CC"; then | |
3634 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3635 | echo "${ECHO_T}$CC" >&6 | |
d7040cdb SE |
3636 | else |
3637 | echo "$as_me:$LINENO: result: no" >&5 | |
3638 | echo "${ECHO_T}no" >&6 | |
3639 | fi | |
3640 | ||
ce2cded5 | 3641 | test -n "$CC" && break |
d7040cdb SE |
3642 | done |
3643 | fi | |
ce2cded5 L |
3644 | if test -z "$CC"; then |
3645 | ac_ct_CC=$CC | |
3646 | for ac_prog in cl | |
d7040cdb SE |
3647 | do |
3648 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3649 | set dummy $ac_prog; ac_word=$2 | |
3650 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3651 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
ce2cded5 | 3652 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
d7040cdb SE |
3653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3654 | else | |
ce2cded5 L |
3655 | if test -n "$ac_ct_CC"; then |
3656 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
d7040cdb SE |
3657 | else |
3658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3659 | for as_dir in $PATH | |
3660 | do | |
3661 | IFS=$as_save_IFS | |
3662 | test -z "$as_dir" && as_dir=. | |
3663 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3664 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
ce2cded5 | 3665 | ac_cv_prog_ac_ct_CC="$ac_prog" |
d7040cdb SE |
3666 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3667 | break 2 | |
3668 | fi | |
3669 | done | |
3670 | done | |
3671 | ||
3672 | fi | |
3673 | fi | |
ce2cded5 L |
3674 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3675 | if test -n "$ac_ct_CC"; then | |
3676 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3677 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
d7040cdb SE |
3678 | else |
3679 | echo "$as_me:$LINENO: result: no" >&5 | |
3680 | echo "${ECHO_T}no" >&6 | |
3681 | fi | |
3682 | ||
ce2cded5 | 3683 | test -n "$ac_ct_CC" && break |
d7040cdb | 3684 | done |
d7040cdb | 3685 | |
ce2cded5 | 3686 | CC=$ac_ct_CC |
d7040cdb SE |
3687 | fi |
3688 | ||
d7040cdb | 3689 | fi |
d7040cdb SE |
3690 | |
3691 | ||
ce2cded5 L |
3692 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
3693 | See \`config.log' for more details." >&5 | |
3694 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
3695 | See \`config.log' for more details." >&2;} | |
3696 | { (exit 1); exit 1; }; } | |
d7040cdb | 3697 | |
ce2cded5 L |
3698 | # Provide some information about the compiler. |
3699 | echo "$as_me:$LINENO:" \ | |
3700 | "checking for C compiler version" >&5 | |
3701 | ac_compiler=`set X $ac_compile; echo $2` | |
3702 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
3703 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
3704 | ac_status=$? | |
3705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3706 | (exit $ac_status); } | |
3707 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
3708 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
3709 | ac_status=$? | |
3710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3711 | (exit $ac_status); } | |
3712 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
3713 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
3714 | ac_status=$? | |
3715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3716 | (exit $ac_status); } | |
d7040cdb | 3717 | |
ce2cded5 L |
3718 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3719 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
3720 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
d7040cdb SE |
3721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3722 | else | |
ce2cded5 L |
3723 | cat >conftest.$ac_ext <<_ACEOF |
3724 | /* confdefs.h. */ | |
3725 | _ACEOF | |
3726 | cat confdefs.h >>conftest.$ac_ext | |
3727 | cat >>conftest.$ac_ext <<_ACEOF | |
3728 | /* end confdefs.h. */ | |
d7040cdb | 3729 | |
ce2cded5 L |
3730 | int |
3731 | main () | |
3732 | { | |
3733 | #ifndef __GNUC__ | |
3734 | choke me | |
3735 | #endif | |
3736 | ||
3737 | ; | |
3738 | return 0; | |
3739 | } | |
3740 | _ACEOF | |
3741 | rm -f conftest.$ac_objext | |
3742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3743 | (eval $ac_compile) 2>conftest.er1 | |
3744 | ac_status=$? | |
3745 | grep -v '^ *+' conftest.er1 >conftest.err | |
3746 | rm -f conftest.er1 | |
3747 | cat conftest.err >&5 | |
3748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3749 | (exit $ac_status); } && | |
3750 | { ac_try='test -z "$ac_c_werror_flag" | |
3751 | || test ! -s conftest.err' | |
3752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3753 | (eval $ac_try) 2>&5 | |
3754 | ac_status=$? | |
3755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3756 | (exit $ac_status); }; } && | |
3757 | { ac_try='test -s conftest.$ac_objext' | |
3758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3759 | (eval $ac_try) 2>&5 | |
3760 | ac_status=$? | |
3761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3762 | (exit $ac_status); }; }; then | |
3763 | ac_compiler_gnu=yes | |
d7040cdb | 3764 | else |
ce2cded5 L |
3765 | echo "$as_me: failed program was:" >&5 |
3766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3767 | ||
3768 | ac_compiler_gnu=no | |
d7040cdb | 3769 | fi |
ce2cded5 L |
3770 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3771 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
d7040cdb | 3772 | |
ce2cded5 L |
3773 | fi |
3774 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
3775 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
3776 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3777 | ac_test_CFLAGS=${CFLAGS+set} | |
3778 | ac_save_CFLAGS=$CFLAGS | |
3779 | CFLAGS="-g" | |
3780 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
3781 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
3782 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
d7040cdb SE |
3783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3784 | else | |
ce2cded5 L |
3785 | cat >conftest.$ac_ext <<_ACEOF |
3786 | /* confdefs.h. */ | |
3787 | _ACEOF | |
3788 | cat confdefs.h >>conftest.$ac_ext | |
3789 | cat >>conftest.$ac_ext <<_ACEOF | |
3790 | /* end confdefs.h. */ | |
d7040cdb | 3791 | |
ce2cded5 L |
3792 | int |
3793 | main () | |
3794 | { | |
d7040cdb | 3795 | |
ce2cded5 L |
3796 | ; |
3797 | return 0; | |
3798 | } | |
3799 | _ACEOF | |
3800 | rm -f conftest.$ac_objext | |
3801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3802 | (eval $ac_compile) 2>conftest.er1 | |
3803 | ac_status=$? | |
3804 | grep -v '^ *+' conftest.er1 >conftest.err | |
3805 | rm -f conftest.er1 | |
3806 | cat conftest.err >&5 | |
3807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3808 | (exit $ac_status); } && | |
3809 | { ac_try='test -z "$ac_c_werror_flag" | |
3810 | || test ! -s conftest.err' | |
3811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3812 | (eval $ac_try) 2>&5 | |
3813 | ac_status=$? | |
3814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3815 | (exit $ac_status); }; } && | |
3816 | { ac_try='test -s conftest.$ac_objext' | |
3817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3818 | (eval $ac_try) 2>&5 | |
3819 | ac_status=$? | |
3820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3821 | (exit $ac_status); }; }; then | |
3822 | ac_cv_prog_cc_g=yes | |
3823 | else | |
3824 | echo "$as_me: failed program was:" >&5 | |
3825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 3826 | |
ce2cded5 | 3827 | ac_cv_prog_cc_g=no |
d7040cdb | 3828 | fi |
ce2cded5 L |
3829 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3830 | fi | |
3831 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
3832 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
3833 | if test "$ac_test_CFLAGS" = set; then | |
3834 | CFLAGS=$ac_save_CFLAGS | |
3835 | elif test $ac_cv_prog_cc_g = yes; then | |
3836 | if test "$GCC" = yes; then | |
3837 | CFLAGS="-g -O2" | |
3838 | else | |
3839 | CFLAGS="-g" | |
3840 | fi | |
d7040cdb | 3841 | else |
ce2cded5 L |
3842 | if test "$GCC" = yes; then |
3843 | CFLAGS="-O2" | |
3844 | else | |
3845 | CFLAGS= | |
3846 | fi | |
d7040cdb | 3847 | fi |
ce2cded5 L |
3848 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
3849 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
3850 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
3851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d7040cdb | 3852 | else |
ce2cded5 L |
3853 | ac_cv_prog_cc_stdc=no |
3854 | ac_save_CC=$CC | |
3855 | cat >conftest.$ac_ext <<_ACEOF | |
3856 | /* confdefs.h. */ | |
3857 | _ACEOF | |
3858 | cat confdefs.h >>conftest.$ac_ext | |
3859 | cat >>conftest.$ac_ext <<_ACEOF | |
3860 | /* end confdefs.h. */ | |
3861 | #include <stdarg.h> | |
3862 | #include <stdio.h> | |
3863 | #include <sys/types.h> | |
3864 | #include <sys/stat.h> | |
3865 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3866 | struct buf { int x; }; | |
3867 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3868 | static char *e (p, i) | |
3869 | char **p; | |
3870 | int i; | |
3871 | { | |
3872 | return p[i]; | |
3873 | } | |
3874 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3875 | { | |
3876 | char *s; | |
3877 | va_list v; | |
3878 | va_start (v,p); | |
3879 | s = g (p, va_arg (v,int)); | |
3880 | va_end (v); | |
3881 | return s; | |
3882 | } | |
d7040cdb | 3883 | |
ce2cded5 L |
3884 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3885 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3886 | These don't provoke an error unfortunately, instead are silently treated | |
3887 | as 'x'. The following induces an error, until -std1 is added to get | |
3888 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3889 | array size at least. It's necessary to write '\x00'==0 to get something | |
3890 | that's true only with -std1. */ | |
3891 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
d7040cdb | 3892 | |
ce2cded5 L |
3893 | int test (int i, double x); |
3894 | struct s1 {int (*f) (int a);}; | |
3895 | struct s2 {int (*f) (double a);}; | |
3896 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3897 | int argc; | |
3898 | char **argv; | |
3899 | int | |
3900 | main () | |
3901 | { | |
3902 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3903 | ; | |
3904 | return 0; | |
3905 | } | |
3906 | _ACEOF | |
3907 | # Don't try gcc -ansi; that turns off useful extensions and | |
3908 | # breaks some systems' header files. | |
3909 | # AIX -qlanglvl=ansi | |
3910 | # Ultrix and OSF/1 -std1 | |
3911 | # HP-UX 10.20 and later -Ae | |
3912 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3913 | # SVR4 -Xc -D__EXTENSIONS__ | |
3914 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3915 | do | |
3916 | CC="$ac_save_CC $ac_arg" | |
3917 | rm -f conftest.$ac_objext | |
3918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3919 | (eval $ac_compile) 2>conftest.er1 | |
3920 | ac_status=$? | |
3921 | grep -v '^ *+' conftest.er1 >conftest.err | |
3922 | rm -f conftest.er1 | |
3923 | cat conftest.err >&5 | |
3924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3925 | (exit $ac_status); } && | |
3926 | { ac_try='test -z "$ac_c_werror_flag" | |
3927 | || test ! -s conftest.err' | |
3928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3929 | (eval $ac_try) 2>&5 | |
3930 | ac_status=$? | |
3931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3932 | (exit $ac_status); }; } && | |
3933 | { ac_try='test -s conftest.$ac_objext' | |
3934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3935 | (eval $ac_try) 2>&5 | |
3936 | ac_status=$? | |
3937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3938 | (exit $ac_status); }; }; then | |
3939 | ac_cv_prog_cc_stdc=$ac_arg | |
3940 | break | |
3941 | else | |
3942 | echo "$as_me: failed program was:" >&5 | |
3943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 3944 | |
ce2cded5 L |
3945 | fi |
3946 | rm -f conftest.err conftest.$ac_objext | |
3947 | done | |
3948 | rm -f conftest.$ac_ext conftest.$ac_objext | |
3949 | CC=$ac_save_CC | |
d7040cdb | 3950 | |
ce2cded5 | 3951 | fi |
d7040cdb | 3952 | |
ce2cded5 L |
3953 | case "x$ac_cv_prog_cc_stdc" in |
3954 | x|xno) | |
3955 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3956 | echo "${ECHO_T}none needed" >&6 ;; | |
3957 | *) | |
3958 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
3959 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3960 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
d7040cdb SE |
3961 | esac |
3962 | ||
ce2cded5 L |
3963 | # Some people use a C++ compiler to compile C. Since we use `exit', |
3964 | # in C++ we need to declare it. In case someone uses the same compiler | |
3965 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3966 | # the declaration of exit, since it's the most demanding environment. | |
3967 | cat >conftest.$ac_ext <<_ACEOF | |
3968 | #ifndef __cplusplus | |
3969 | choke me | |
3970 | #endif | |
3971 | _ACEOF | |
3972 | rm -f conftest.$ac_objext | |
3973 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3974 | (eval $ac_compile) 2>conftest.er1 | |
3975 | ac_status=$? | |
3976 | grep -v '^ *+' conftest.er1 >conftest.err | |
3977 | rm -f conftest.er1 | |
3978 | cat conftest.err >&5 | |
3979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3980 | (exit $ac_status); } && | |
3981 | { ac_try='test -z "$ac_c_werror_flag" | |
3982 | || test ! -s conftest.err' | |
3983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3984 | (eval $ac_try) 2>&5 | |
3985 | ac_status=$? | |
3986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3987 | (exit $ac_status); }; } && | |
3988 | { ac_try='test -s conftest.$ac_objext' | |
3989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3990 | (eval $ac_try) 2>&5 | |
3991 | ac_status=$? | |
3992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3993 | (exit $ac_status); }; }; then | |
3994 | for ac_declaration in \ | |
3995 | '' \ | |
3996 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
3997 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3998 | 'extern "C" void exit (int) throw ();' \ | |
3999 | 'extern "C" void exit (int);' \ | |
4000 | 'void exit (int);' | |
4001 | do | |
4002 | cat >conftest.$ac_ext <<_ACEOF | |
4003 | /* confdefs.h. */ | |
4004 | _ACEOF | |
4005 | cat confdefs.h >>conftest.$ac_ext | |
4006 | cat >>conftest.$ac_ext <<_ACEOF | |
4007 | /* end confdefs.h. */ | |
4008 | $ac_declaration | |
4009 | #include <stdlib.h> | |
4010 | int | |
4011 | main () | |
4012 | { | |
4013 | exit (42); | |
4014 | ; | |
4015 | return 0; | |
4016 | } | |
4017 | _ACEOF | |
4018 | rm -f conftest.$ac_objext | |
4019 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4020 | (eval $ac_compile) 2>conftest.er1 | |
4021 | ac_status=$? | |
4022 | grep -v '^ *+' conftest.er1 >conftest.err | |
4023 | rm -f conftest.er1 | |
4024 | cat conftest.err >&5 | |
4025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4026 | (exit $ac_status); } && | |
4027 | { ac_try='test -z "$ac_c_werror_flag" | |
4028 | || test ! -s conftest.err' | |
4029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4030 | (eval $ac_try) 2>&5 | |
4031 | ac_status=$? | |
4032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4033 | (exit $ac_status); }; } && | |
4034 | { ac_try='test -s conftest.$ac_objext' | |
4035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4036 | (eval $ac_try) 2>&5 | |
4037 | ac_status=$? | |
4038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4039 | (exit $ac_status); }; }; then | |
4040 | : | |
d7040cdb | 4041 | else |
ce2cded5 L |
4042 | echo "$as_me: failed program was:" >&5 |
4043 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4044 | |
ce2cded5 L |
4045 | continue |
4046 | fi | |
4047 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4048 | cat >conftest.$ac_ext <<_ACEOF | |
4049 | /* confdefs.h. */ | |
4050 | _ACEOF | |
4051 | cat confdefs.h >>conftest.$ac_ext | |
4052 | cat >>conftest.$ac_ext <<_ACEOF | |
4053 | /* end confdefs.h. */ | |
4054 | $ac_declaration | |
4055 | int | |
4056 | main () | |
4057 | { | |
4058 | exit (42); | |
4059 | ; | |
4060 | return 0; | |
4061 | } | |
4062 | _ACEOF | |
4063 | rm -f conftest.$ac_objext | |
4064 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4065 | (eval $ac_compile) 2>conftest.er1 | |
4066 | ac_status=$? | |
4067 | grep -v '^ *+' conftest.er1 >conftest.err | |
4068 | rm -f conftest.er1 | |
4069 | cat conftest.err >&5 | |
4070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4071 | (exit $ac_status); } && | |
4072 | { ac_try='test -z "$ac_c_werror_flag" | |
4073 | || test ! -s conftest.err' | |
4074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4075 | (eval $ac_try) 2>&5 | |
4076 | ac_status=$? | |
4077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4078 | (exit $ac_status); }; } && | |
4079 | { ac_try='test -s conftest.$ac_objext' | |
4080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4081 | (eval $ac_try) 2>&5 | |
4082 | ac_status=$? | |
4083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4084 | (exit $ac_status); }; }; then | |
4085 | break | |
4086 | else | |
4087 | echo "$as_me: failed program was:" >&5 | |
4088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4089 | |
ce2cded5 L |
4090 | fi |
4091 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4092 | done | |
4093 | rm -f conftest* | |
4094 | if test -n "$ac_declaration"; then | |
4095 | echo '#ifdef __cplusplus' >>confdefs.h | |
4096 | echo $ac_declaration >>confdefs.h | |
4097 | echo '#endif' >>confdefs.h | |
4098 | fi | |
d7040cdb | 4099 | |
ce2cded5 L |
4100 | else |
4101 | echo "$as_me: failed program was:" >&5 | |
4102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4103 | |
ce2cded5 L |
4104 | fi |
4105 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4106 | ac_ext=c | |
4107 | ac_cpp='$CPP $CPPFLAGS' | |
4108 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4109 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4110 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb SE |
4111 | |
4112 | ||
ce2cded5 L |
4113 | cat >>confdefs.h <<\_ACEOF |
4114 | #define _GNU_SOURCE 1 | |
4115 | _ACEOF | |
4116 | ||
4117 | ||
4118 | # Find a good install program. We prefer a C program (faster), | |
4119 | # so one script is as good as another. But avoid the broken or | |
4120 | # incompatible versions: | |
4121 | # SysV /etc/install, /usr/sbin/install | |
4122 | # SunOS /usr/etc/install | |
4123 | # IRIX /sbin/install | |
4124 | # AIX /bin/install | |
4125 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4126 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4127 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4128 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4129 | # OS/2's system install, which has a completely different semantic | |
4130 | # ./install, which can be erroneously created by make from ./install.sh. | |
4131 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
4132 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
4133 | if test -z "$INSTALL"; then | |
4134 | if test "${ac_cv_path_install+set}" = set; then | |
42ecbf5e | 4135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac48eca1 | 4136 | else |
ce2cded5 L |
4137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4138 | for as_dir in $PATH | |
4139 | do | |
4140 | IFS=$as_save_IFS | |
4141 | test -z "$as_dir" && as_dir=. | |
4142 | # Account for people who put trailing slashes in PATH elements. | |
4143 | case $as_dir/ in | |
4144 | ./ | .// | /cC/* | \ | |
4145 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4146 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
4147 | /usr/ucb/* ) ;; | |
4148 | *) | |
4149 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4150 | # Don't use installbsd from OSF since it installs stuff as root | |
4151 | # by default. | |
4152 | for ac_prog in ginstall scoinst install; do | |
4153 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4154 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
4155 | if test $ac_prog = install && | |
4156 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4157 | # AIX install. It has an incompatible calling convention. | |
4158 | : | |
4159 | elif test $ac_prog = install && | |
4160 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4161 | # program-specific install script used by HP pwplus--don't use. | |
4162 | : | |
4163 | else | |
4164 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4165 | break 3 | |
4166 | fi | |
4167 | fi | |
4168 | done | |
4169 | done | |
4170 | ;; | |
4171 | esac | |
4172 | done | |
ac48eca1 | 4173 | |
ac48eca1 | 4174 | |
ce2cded5 L |
4175 | fi |
4176 | if test "${ac_cv_path_install+set}" = set; then | |
4177 | INSTALL=$ac_cv_path_install | |
4178 | else | |
4179 | # As a last resort, use the slow shell script. We don't cache a | |
4180 | # path for INSTALL within a source directory, because that will | |
4181 | # break other packages using the cache if that directory is | |
4182 | # removed, or if the path is relative. | |
4183 | INSTALL=$ac_install_sh | |
4184 | fi | |
4185 | fi | |
4186 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
4187 | echo "${ECHO_T}$INSTALL" >&6 | |
ac48eca1 | 4188 | |
ce2cded5 L |
4189 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4190 | # It thinks the first close brace ends the variable substitution. | |
4191 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
ac48eca1 | 4192 | |
ce2cded5 | 4193 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
d7040cdb | 4194 | |
ce2cded5 | 4195 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
ac48eca1 | 4196 | |
c7e40348 | 4197 | |
ac48eca1 | 4198 | |
ac48eca1 | 4199 | |
ce2cded5 L |
4200 | macro_version='2.1a' |
4201 | macro_revision='1.2435' | |
d7040cdb | 4202 | |
d7040cdb | 4203 | |
ac48eca1 | 4204 | |
ac48eca1 | 4205 | |
ac48eca1 | 4206 | |
c7e40348 | 4207 | |
ac48eca1 | 4208 | |
ac48eca1 | 4209 | |
ac48eca1 | 4210 | |
6be7c12c | 4211 | |
d7040cdb | 4212 | |
d7040cdb | 4213 | |
ce2cded5 | 4214 | ltmain="$ac_aux_dir/ltmain.sh" |
d7040cdb | 4215 | |
ce2cded5 | 4216 | # Set options |
ac48eca1 | 4217 | |
ce2cded5 | 4218 | enable_dlopen=no |
ac48eca1 | 4219 | |
d15b04bd | 4220 | |
ce2cded5 | 4221 | enable_win32_dll=no |
d15b04bd | 4222 | |
ac48eca1 | 4223 | |
ce2cded5 L |
4224 | # Check whether --enable-shared or --disable-shared was given. |
4225 | if test "${enable_shared+set}" = set; then | |
4226 | enableval="$enable_shared" | |
4227 | p=${PACKAGE-default} | |
4228 | case $enableval in | |
4229 | yes) enable_shared=yes ;; | |
4230 | no) enable_shared=no ;; | |
4231 | *) | |
4232 | enable_shared=no | |
4233 | # Look at the argument we got. We use all the common list separators. | |
4234 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4235 | for pkg in $enableval; do | |
4236 | IFS="$lt_save_ifs" | |
4237 | if test "X$pkg" = "X$p"; then | |
4238 | enable_shared=yes | |
4239 | fi | |
4240 | done | |
4241 | IFS="$lt_save_ifs" | |
4242 | ;; | |
4243 | esac | |
4244 | else | |
4245 | enable_shared=yes | |
4246 | fi; | |
ac48eca1 | 4247 | |
ac48eca1 | 4248 | |
ac48eca1 | 4249 | |
ac48eca1 | 4250 | |
ac48eca1 | 4251 | |
ac48eca1 | 4252 | |
252b5132 RH |
4253 | |
4254 | ||
ce2cded5 L |
4255 | # Check whether --enable-static or --disable-static was given. |
4256 | if test "${enable_static+set}" = set; then | |
4257 | enableval="$enable_static" | |
4258 | p=${PACKAGE-default} | |
4259 | case $enableval in | |
4260 | yes) enable_static=yes ;; | |
4261 | no) enable_static=no ;; | |
4262 | *) | |
4263 | enable_static=no | |
4264 | # Look at the argument we got. We use all the common list separators. | |
4265 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4266 | for pkg in $enableval; do | |
4267 | IFS="$lt_save_ifs" | |
4268 | if test "X$pkg" = "X$p"; then | |
4269 | enable_static=yes | |
4270 | fi | |
4271 | done | |
4272 | IFS="$lt_save_ifs" | |
4273 | ;; | |
4274 | esac | |
ac48eca1 | 4275 | else |
ce2cded5 L |
4276 | enable_static=yes |
4277 | fi; | |
42ecbf5e | 4278 | |
ac48eca1 | 4279 | |
42ecbf5e | 4280 | |
ac48eca1 | 4281 | |
ce2cded5 L |
4282 | |
4283 | ||
4284 | ||
4285 | ||
4286 | ||
4287 | # Check whether --with-pic or --without-pic was given. | |
4288 | if test "${with_pic+set}" = set; then | |
4289 | withval="$with_pic" | |
4290 | pic_mode="$withval" | |
ac48eca1 | 4291 | else |
ce2cded5 L |
4292 | pic_mode=default |
4293 | fi; | |
4294 | ||
4295 | test -z "$pic_mode" && pic_mode=default | |
ac48eca1 | 4296 | |
d7040cdb SE |
4297 | |
4298 | ||
4299 | ||
4300 | ||
4301 | ||
4302 | ||
ce2cded5 L |
4303 | # Check whether --enable-fast-install or --disable-fast-install was given. |
4304 | if test "${enable_fast_install+set}" = set; then | |
4305 | enableval="$enable_fast_install" | |
4306 | p=${PACKAGE-default} | |
4307 | case $enableval in | |
4308 | yes) enable_fast_install=yes ;; | |
4309 | no) enable_fast_install=no ;; | |
4310 | *) | |
4311 | enable_fast_install=no | |
4312 | # Look at the argument we got. We use all the common list separators. | |
4313 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4314 | for pkg in $enableval; do | |
4315 | IFS="$lt_save_ifs" | |
4316 | if test "X$pkg" = "X$p"; then | |
4317 | enable_fast_install=yes | |
4318 | fi | |
4319 | done | |
4320 | IFS="$lt_save_ifs" | |
4321 | ;; | |
4322 | esac | |
4323 | else | |
4324 | enable_fast_install=yes | |
4325 | fi; | |
d7040cdb SE |
4326 | |
4327 | ||
4328 | ||
4329 | ||
4330 | ||
ce2cded5 L |
4331 | |
4332 | ||
4333 | ||
4334 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
4335 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | |
4336 | if test "${lt_cv_path_SED+set}" = set; then | |
42ecbf5e | 4337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac48eca1 | 4338 | else |
ce2cded5 L |
4339 | # Loop through the user's path and test for sed and gsed. |
4340 | # Then use that list of sed's as ones to test for truncation. | |
42ecbf5e DJ |
4341 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4342 | for as_dir in $PATH | |
4343 | do | |
4344 | IFS=$as_save_IFS | |
4345 | test -z "$as_dir" && as_dir=. | |
ce2cded5 L |
4346 | for lt_ac_prog in sed gsed; do |
4347 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4348 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | |
4349 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | |
4350 | fi | |
4351 | done | |
4352 | done | |
42ecbf5e | 4353 | done |
ce2cded5 L |
4354 | IFS=$as_save_IFS |
4355 | lt_ac_max=0 | |
4356 | lt_ac_count=0 | |
4357 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
4358 | # along with /bin/sed that truncates output. | |
4359 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
4360 | test ! -f $lt_ac_sed && continue | |
4361 | cat /dev/null > conftest.in | |
4362 | lt_ac_count=0 | |
4363 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
4364 | # Check for GNU sed and select it if it is found. | |
4365 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
4366 | lt_cv_path_SED=$lt_ac_sed | |
4367 | break | |
42ecbf5e | 4368 | fi |
ce2cded5 L |
4369 | while true; do |
4370 | cat conftest.in conftest.in >conftest.tmp | |
4371 | mv conftest.tmp conftest.in | |
4372 | cp conftest.in conftest.nl | |
4373 | echo >>conftest.nl | |
4374 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
4375 | cmp -s conftest.out conftest.nl || break | |
4376 | # 10000 chars as input seems more than enough | |
4377 | test $lt_ac_count -gt 10 && break | |
4378 | lt_ac_count=`expr $lt_ac_count + 1` | |
4379 | if test $lt_ac_count -gt $lt_ac_max; then | |
4380 | lt_ac_max=$lt_ac_count | |
4381 | lt_cv_path_SED=$lt_ac_sed | |
4382 | fi | |
4383 | done | |
42ecbf5e | 4384 | done |
ac48eca1 | 4385 | |
ac48eca1 AO |
4386 | fi |
4387 | ||
ce2cded5 | 4388 | SED=$lt_cv_path_SED |
42ecbf5e | 4389 | |
ce2cded5 L |
4390 | echo "$as_me:$LINENO: result: $SED" >&5 |
4391 | echo "${ECHO_T}$SED" >&6 | |
252b5132 | 4392 | |
ce2cded5 L |
4393 | test -z "$SED" && SED=sed |
4394 | Xsed="$SED -e 1s/^X//" | |
4867be41 | 4395 | |
32fba81d | 4396 | |
42ecbf5e DJ |
4397 | |
4398 | ||
ac48eca1 | 4399 | |
252b5132 | 4400 | |
252b5132 | 4401 | |
42ecbf5e | 4402 | |
ac48eca1 | 4403 | |
d7040cdb | 4404 | |
d7040cdb | 4405 | |
ce2cded5 L |
4406 | echo "$as_me:$LINENO: checking for egrep" >&5 |
4407 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
4408 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4410 | else | |
4411 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
4412 | then ac_cv_prog_egrep='grep -E' | |
4413 | else ac_cv_prog_egrep='egrep' | |
4414 | fi | |
252b5132 | 4415 | fi |
ce2cded5 L |
4416 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
4417 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
4418 | EGREP=$ac_cv_prog_egrep | |
252b5132 | 4419 | |
252b5132 | 4420 | |
ce2cded5 L |
4421 | echo "$as_me:$LINENO: checking for fgrep" >&5 |
4422 | echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 | |
4423 | if test "${ac_cv_prog_fgrep+set}" = set; then | |
4424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4425 | else | |
4426 | if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1 | |
4427 | then ac_cv_prog_fgrep='grep -F' | |
4428 | else ac_cv_prog_fgrep='fgrep' | |
4429 | fi | |
4430 | fi | |
4431 | echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5 | |
4432 | echo "${ECHO_T}$ac_cv_prog_fgrep" >&6 | |
4433 | FGREP=$ac_cv_prog_fgrep | |
252b5132 | 4434 | |
252b5132 | 4435 | |
ce2cded5 | 4436 | test -z "$GREP" && GREP=grep |
42ecbf5e | 4437 | |
42ecbf5e | 4438 | |
252b5132 | 4439 | |
252b5132 | 4440 | |
252b5132 RH |
4441 | |
4442 | ||
252b5132 | 4443 | |
252b5132 | 4444 | |
252b5132 | 4445 | |
ac48eca1 | 4446 | |
42ecbf5e DJ |
4447 | |
4448 | ||
4449 | ||
4450 | ||
4451 | ||
ac48eca1 | 4452 | |
252b5132 | 4453 | |
42ecbf5e | 4454 | |
9c8ebd6a | 4455 | |
ce2cded5 L |
4456 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
4457 | if test "${with_gnu_ld+set}" = set; then | |
4458 | withval="$with_gnu_ld" | |
4459 | test "$withval" = no || with_gnu_ld=yes | |
d7040cdb | 4460 | else |
ce2cded5 L |
4461 | with_gnu_ld=no |
4462 | fi; | |
4463 | ac_prog=ld | |
4464 | if test "$GCC" = yes; then | |
4465 | # Check if gcc -print-prog-name=ld gives a path. | |
4466 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
4467 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
4468 | case $host in | |
4469 | *-*-mingw*) | |
4470 | # gcc leaves a trailing carriage return which upsets mingw | |
4471 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4472 | *) | |
4473 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4474 | esac | |
4475 | case $ac_prog in | |
4476 | # Accept absolute paths. | |
4477 | [\\/]* | ?:[\\/]*) | |
4478 | re_direlt='/[^/][^/]*/\.\./' | |
4479 | # Canonicalize the pathname of ld | |
4480 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4481 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4482 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
4483 | done | |
4484 | test -z "$LD" && LD="$ac_prog" | |
4485 | ;; | |
4486 | "") | |
4487 | # If it fails, then pretend we aren't using GCC. | |
4488 | ac_prog=ld | |
4489 | ;; | |
4490 | *) | |
4491 | # If it is relative, then search for the first ld in PATH. | |
4492 | with_gnu_ld=unknown | |
4493 | ;; | |
4494 | esac | |
4495 | elif test "$with_gnu_ld" = yes; then | |
4496 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
4497 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
4498 | else | |
4499 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
4500 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
4501 | fi | |
4502 | if test "${lt_cv_path_LD+set}" = set; then | |
4503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4504 | else | |
4505 | if test -z "$LD"; then | |
4506 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4507 | for ac_dir in $PATH; do | |
4508 | IFS="$lt_save_ifs" | |
4509 | test -z "$ac_dir" && ac_dir=. | |
4510 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4511 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
4512 | # Check to see if the program is GNU ld. I'd rather use --version, | |
4513 | # but apparently some variants of GNU ld only accept -v. | |
4514 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4515 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4516 | *GNU* | *'with BFD'*) | |
4517 | test "$with_gnu_ld" != no && break | |
4518 | ;; | |
4519 | *) | |
4520 | test "$with_gnu_ld" != yes && break | |
4521 | ;; | |
4522 | esac | |
4523 | fi | |
4524 | done | |
4525 | IFS="$lt_save_ifs" | |
4526 | else | |
4527 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4528 | fi | |
4529 | fi | |
9e9b66a9 | 4530 | |
ce2cded5 L |
4531 | LD="$lt_cv_path_LD" |
4532 | if test -n "$LD"; then | |
4533 | echo "$as_me:$LINENO: result: $LD" >&5 | |
4534 | echo "${ECHO_T}$LD" >&6 | |
4535 | else | |
4536 | echo "$as_me:$LINENO: result: no" >&5 | |
4537 | echo "${ECHO_T}no" >&6 | |
4538 | fi | |
4539 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
4540 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
4541 | { (exit 1); exit 1; }; } | |
4542 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
4543 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
4544 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
4545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4546 | else | |
4547 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4548 | case `$LD -v 2>&1 </dev/null` in | |
d7040cdb | 4549 | *GNU* | *'with BFD'*) |
ce2cded5 L |
4550 | lt_cv_prog_gnu_ld=yes |
4551 | ;; | |
4552 | *) | |
4553 | lt_cv_prog_gnu_ld=no | |
d7040cdb SE |
4554 | ;; |
4555 | esac | |
ce2cded5 L |
4556 | fi |
4557 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
4558 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
4559 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
42ecbf5e | 4560 | |
e5a52504 | 4561 | |
d7040cdb | 4562 | |
d7040cdb | 4563 | |
d7040cdb | 4564 | |
d7040cdb | 4565 | |
d7040cdb | 4566 | |
d7040cdb | 4567 | |
d7040cdb | 4568 | |
d7040cdb | 4569 | |
ce2cded5 L |
4570 | echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 |
4571 | echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6 | |
4572 | if test "${lt_cv_path_NM+set}" = set; then | |
4573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4574 | else | |
4575 | if test -n "$NM"; then | |
4576 | # Let the user override the test. | |
4577 | lt_cv_path_NM="$NM" | |
4578 | else | |
4579 | lt_nm_to_check="${ac_tool_prefix}nm" | |
4580 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4581 | lt_nm_to_check="$lt_nm_to_check nm" | |
4582 | fi | |
4583 | for lt_tmp_nm in $lt_nm_to_check; do | |
4584 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4585 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4586 | IFS="$lt_save_ifs" | |
4587 | test -z "$ac_dir" && ac_dir=. | |
4588 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
4589 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4590 | # Check to see if the nm accepts a BSD-compat flag. | |
4591 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4592 | # nm: unknown option "B" ignored | |
4593 | # Tru64's nm complains that /dev/null is an invalid object file | |
4594 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4595 | */dev/null* | *'Invalid file or object type'*) | |
4596 | lt_cv_path_NM="$tmp_nm -B" | |
4597 | break | |
4598 | ;; | |
4599 | *) | |
4600 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4601 | */dev/null*) | |
4602 | lt_cv_path_NM="$tmp_nm -p" | |
4603 | break | |
4604 | ;; | |
4605 | *) | |
4606 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4607 | continue # so that we can try to find one that supports BSD flags | |
4608 | ;; | |
4609 | esac | |
4610 | ;; | |
4611 | esac | |
4612 | fi | |
4613 | done | |
4614 | IFS="$lt_save_ifs" | |
4615 | done | |
4616 | : ${lt_cv_path_NM=no} | |
4617 | fi | |
4618 | fi | |
4619 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | |
4620 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | |
4621 | if test "$lt_cv_path_NM" != "no"; then | |
4622 | NM="$lt_cv_path_NM" | |
4623 | else | |
4624 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
4625 | if test -n "$ac_tool_prefix"; then | |
4626 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4627 | do | |
4628 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4629 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4630 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4631 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4632 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then | |
4633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4634 | else | |
4635 | if test -n "$DUMPBIN"; then | |
4636 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4637 | else | |
4638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4639 | for as_dir in $PATH | |
4640 | do | |
4641 | IFS=$as_save_IFS | |
4642 | test -z "$as_dir" && as_dir=. | |
4643 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4644 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4645 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
4646 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4647 | break 2 | |
42ecbf5e | 4648 | fi |
42ecbf5e | 4649 | done |
ce2cded5 | 4650 | done |
d15b04bd | 4651 | |
ce2cded5 L |
4652 | fi |
4653 | fi | |
4654 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4655 | if test -n "$DUMPBIN"; then | |
4656 | echo "$as_me:$LINENO: result: $DUMPBIN" >&5 | |
4657 | echo "${ECHO_T}$DUMPBIN" >&6 | |
4658 | else | |
4659 | echo "$as_me:$LINENO: result: no" >&5 | |
4660 | echo "${ECHO_T}no" >&6 | |
252b5132 | 4661 | fi |
d7040cdb | 4662 | |
ce2cded5 L |
4663 | test -n "$DUMPBIN" && break |
4664 | done | |
42ecbf5e | 4665 | fi |
ce2cded5 L |
4666 | if test -z "$DUMPBIN"; then |
4667 | ac_ct_DUMPBIN=$DUMPBIN | |
4668 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4669 | do | |
4670 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4671 | set dummy $ac_prog; ac_word=$2 | |
4672 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4673 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4674 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then | |
4675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42ecbf5e | 4676 | else |
ce2cded5 L |
4677 | if test -n "$ac_ct_DUMPBIN"; then |
4678 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4679 | else | |
4680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4681 | for as_dir in $PATH | |
4682 | do | |
4683 | IFS=$as_save_IFS | |
4684 | test -z "$as_dir" && as_dir=. | |
4685 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4686 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4687 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
4688 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4689 | break 2 | |
4690 | fi | |
4691 | done | |
4692 | done | |
4693 | ||
4694 | fi | |
4695 | fi | |
4696 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4697 | if test -n "$ac_ct_DUMPBIN"; then | |
4698 | echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 | |
4699 | echo "${ECHO_T}$ac_ct_DUMPBIN" >&6 | |
4700 | else | |
4701 | echo "$as_me:$LINENO: result: no" >&5 | |
4702 | echo "${ECHO_T}no" >&6 | |
e5a52504 MM |
4703 | fi |
4704 | ||
ce2cded5 L |
4705 | test -n "$ac_ct_DUMPBIN" && break |
4706 | done | |
4707 | test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":" | |
d15b04bd | 4708 | |
ce2cded5 L |
4709 | DUMPBIN=$ac_ct_DUMPBIN |
4710 | fi | |
42ecbf5e | 4711 | |
42ecbf5e | 4712 | |
ce2cded5 L |
4713 | if test "$DUMPBIN" != ":"; then |
4714 | NM="$DUMPBIN" | |
4715 | fi | |
4716 | fi | |
4717 | test -z "$NM" && NM=nm | |
42ecbf5e | 4718 | |
252b5132 | 4719 | |
42ecbf5e | 4720 | |
42ecbf5e | 4721 | |
252b5132 | 4722 | |
42ecbf5e | 4723 | |
ce2cded5 L |
4724 | echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 |
4725 | echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6 | |
4726 | if test "${lt_cv_nm_interface+set}" = set; then | |
4727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4728 | else | |
4729 | lt_cv_nm_interface="BSD nm" | |
4730 | echo "int some_variable = 0;" > conftest.$ac_ext | |
bb8541b9 | 4731 | (eval echo "\"\$as_me:4731: $ac_compile\"" >&5) |
ce2cded5 L |
4732 | (eval "$ac_compile" 2>conftest.err) |
4733 | cat conftest.err >&5 | |
bb8541b9 | 4734 | (eval echo "\"\$as_me:4734: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
ce2cded5 L |
4735 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4736 | cat conftest.err >&5 | |
bb8541b9 | 4737 | (eval echo "\"\$as_me:4737: output\"" >&5) |
ce2cded5 L |
4738 | cat conftest.out >&5 |
4739 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4740 | lt_cv_nm_interface="MS dumpbin" | |
4741 | fi | |
4742 | rm -f conftest* | |
4743 | fi | |
4744 | echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 | |
4745 | echo "${ECHO_T}$lt_cv_nm_interface" >&6 | |
d15b04bd | 4746 | |
ce2cded5 L |
4747 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
4748 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
4749 | LN_S=$as_ln_s | |
4750 | if test "$LN_S" = "ln -s"; then | |
4751 | echo "$as_me:$LINENO: result: yes" >&5 | |
4752 | echo "${ECHO_T}yes" >&6 | |
4753 | else | |
4754 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
4755 | echo "${ECHO_T}no, using $LN_S" >&6 | |
4756 | fi | |
42ecbf5e | 4757 | |
ce2cded5 L |
4758 | # find the maximum length of command line arguments |
4759 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
4760 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
4761 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
4762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4763 | else | |
4764 | i=0 | |
4765 | teststring="ABCD" | |
252b5132 | 4766 | |
ce2cded5 L |
4767 | case $build_os in |
4768 | msdosdjgpp*) | |
4769 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4770 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4771 | # during glob expansion). Even if it were fixed, the result of this | |
4772 | # check would be larger than it should be. | |
4773 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4774 | ;; | |
e5a52504 | 4775 | |
ce2cded5 L |
4776 | gnu*) |
4777 | # Under GNU Hurd, this test is not required because there is | |
4778 | # no limit to the length of command line arguments. | |
4779 | # Libtool will interpret -1 as no limit whatsoever | |
4780 | lt_cv_sys_max_cmd_len=-1; | |
4781 | ;; | |
42ecbf5e | 4782 | |
ce2cded5 L |
4783 | cygwin* | mingw*) |
4784 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4785 | # about 5 minutes as the teststring grows exponentially. | |
4786 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4787 | # you end up with a "frozen" computer, even though with patience | |
4788 | # the test eventually succeeds (with a max line length of 256k). | |
4789 | # Instead, let's just punt: use the minimum linelength reported by | |
4790 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4791 | lt_cv_sys_max_cmd_len=8192; | |
4792 | ;; | |
42ecbf5e | 4793 | |
ce2cded5 L |
4794 | amigaos*) |
4795 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4796 | # So we just punt and use a minimum line length of 8192. | |
4797 | lt_cv_sys_max_cmd_len=8192; | |
4798 | ;; | |
42ecbf5e | 4799 | |
ce2cded5 L |
4800 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
4801 | # This has been around since 386BSD, at least. Likely further. | |
4802 | if test -x /sbin/sysctl; then | |
4803 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4804 | elif test -x /usr/sbin/sysctl; then | |
4805 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4806 | else | |
4807 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4808 | fi | |
4809 | # And add a safety zone | |
4810 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4811 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4812 | ;; | |
42ecbf5e | 4813 | |
ce2cded5 L |
4814 | interix*) |
4815 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4816 | lt_cv_sys_max_cmd_len=196608 | |
4817 | ;; | |
d7040cdb | 4818 | |
ce2cded5 L |
4819 | osf*) |
4820 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4821 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4822 | # nice to cause kernel panics so lets avoid the loop below. | |
4823 | # First set a reasonable default. | |
4824 | lt_cv_sys_max_cmd_len=16384 | |
4825 | # | |
4826 | if test -x /sbin/sysconfig; then | |
4827 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4828 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
d7040cdb | 4829 | esac |
ce2cded5 L |
4830 | fi |
4831 | ;; | |
4832 | sco3.2v5*) | |
4833 | lt_cv_sys_max_cmd_len=102400 | |
4834 | ;; | |
4835 | sysv5* | sco5v6* | sysv4.2uw2*) | |
4836 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4837 | if test -n "$kargmax"; then | |
4838 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
d7040cdb | 4839 | else |
ce2cded5 | 4840 | lt_cv_sys_max_cmd_len=32768 |
d7040cdb | 4841 | fi |
ce2cded5 L |
4842 | ;; |
4843 | *) | |
4844 | lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null` | |
4845 | if test -n $lt_cv_sys_max_cmd_len; then | |
4846 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4847 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4848 | else | |
4849 | # Make teststring a little bigger before we do anything with it. | |
4850 | # a 1K string should be a reasonable start. | |
4851 | for i in 1 2 3 4 5 6 7 8 ; do | |
4852 | teststring=$teststring$teststring | |
4853 | done | |
4854 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4855 | # If test is not a shell built-in, we'll probably end up computing a | |
4856 | # maximum length that is only half of the actual maximum length, but | |
4857 | # we can't tell. | |
4858 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
4859 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
4860 | test $i != 17 # 1/2 MB should be enough | |
4861 | do | |
4862 | i=`expr $i + 1` | |
4863 | teststring=$teststring$teststring | |
4864 | done | |
4865 | # Only check the string length outside the loop. | |
4866 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4867 | teststring= | |
4868 | # Add a significant safety factor because C++ compilers can tack on | |
4869 | # massive amounts of additional arguments before passing them to the | |
4870 | # linker. It appears as though 1/2 is a usable value. | |
4871 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4872 | fi | |
4873 | ;; | |
4874 | esac | |
d7040cdb | 4875 | |
ce2cded5 | 4876 | fi |
d7040cdb | 4877 | |
ce2cded5 L |
4878 | if test -n $lt_cv_sys_max_cmd_len ; then |
4879 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
4880 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
42ecbf5e | 4881 | else |
ce2cded5 L |
4882 | echo "$as_me:$LINENO: result: none" >&5 |
4883 | echo "${ECHO_T}none" >&6 | |
4884 | fi | |
4885 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
d7040cdb | 4886 | |
42ecbf5e | 4887 | |
252b5132 | 4888 | |
42ecbf5e | 4889 | |
42ecbf5e | 4890 | |
d7040cdb | 4891 | |
d7040cdb | 4892 | |
ce2cded5 L |
4893 | : ${CP="cp -f"} |
4894 | : ${MV="mv -f"} | |
4895 | : ${RM="rm -f"} | |
d7040cdb | 4896 | |
ce2cded5 L |
4897 | echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 |
4898 | echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6 | |
4899 | # Try some XSI features | |
4900 | xsi_shell=no | |
4901 | ( _lt_dummy="a/b/c" | |
4902 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
4903 | = c,a/b,, ) >/dev/null 2>&1 \ | |
4904 | && xsi_shell=yes | |
4905 | echo "$as_me:$LINENO: result: $xsi_shell" >&5 | |
4906 | echo "${ECHO_T}$xsi_shell" >&6 | |
d7040cdb | 4907 | |
ce2cded5 L |
4908 | |
4909 | echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 | |
4910 | echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6 | |
4911 | lt_shell_append=no | |
4912 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4913 | >/dev/null 2>&1 \ | |
4914 | && lt_shell_append=yes | |
4915 | echo "$as_me:$LINENO: result: $lt_shell_append" >&5 | |
4916 | echo "${ECHO_T}$lt_shell_append" >&6 | |
4917 | ||
4918 | ||
4919 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
4920 | lt_unset=unset | |
d7040cdb | 4921 | else |
ce2cded5 | 4922 | lt_unset=false |
d7040cdb | 4923 | fi |
42ecbf5e | 4924 | |
42ecbf5e | 4925 | |
42ecbf5e | 4926 | |
42ecbf5e | 4927 | |
d7040cdb | 4928 | |
ce2cded5 L |
4929 | # test EBCDIC or ASCII |
4930 | case `echo X|tr X '\101'` in | |
4931 | A) # ASCII based system | |
4932 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4933 | lt_SP2NL='tr \040 \012' | |
4934 | lt_NL2SP='tr \015\012 \040\040' | |
4935 | ;; | |
4936 | *) # EBCDIC based system | |
4937 | lt_SP2NL='tr \100 \n' | |
4938 | lt_NL2SP='tr \r\n \100\100' | |
4939 | ;; | |
4940 | esac | |
d7040cdb | 4941 | |
42ecbf5e | 4942 | |
d7040cdb | 4943 | |
d7040cdb | 4944 | |
d7040cdb SE |
4945 | |
4946 | ||
d7040cdb | 4947 | |
d7040cdb | 4948 | |
42ecbf5e | 4949 | |
ce2cded5 L |
4950 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
4951 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
4952 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
4953 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4954 | else | |
4955 | lt_cv_ld_reload_flag='-r' | |
42ecbf5e | 4956 | fi |
ce2cded5 L |
4957 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
4958 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
4959 | reload_flag=$lt_cv_ld_reload_flag | |
4960 | case $reload_flag in | |
4961 | "" | " "*) ;; | |
4962 | *) reload_flag=" $reload_flag" ;; | |
4963 | esac | |
4964 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4965 | case $host_os in | |
4966 | darwin*) | |
4967 | if test "$GCC" = yes; then | |
4968 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4969 | else | |
4970 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4971 | fi | |
4972 | ;; | |
4973 | esac | |
42ecbf5e | 4974 | |
252b5132 | 4975 | |
d7040cdb | 4976 | |
252b5132 | 4977 | |
252b5132 | 4978 | |
252b5132 | 4979 | |
252b5132 RH |
4980 | |
4981 | ||
ce2cded5 L |
4982 | |
4983 | ||
4984 | echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 | |
4985 | echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6 | |
4986 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
4987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d7040cdb | 4988 | else |
ce2cded5 L |
4989 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
4990 | lt_cv_file_magic_test_file= | |
4991 | lt_cv_deplibs_check_method='unknown' | |
4992 | # Need to set the preceding variable on all platforms that support | |
4993 | # interlibrary dependencies. | |
4994 | # 'none' -- dependencies not supported. | |
4995 | # `unknown' -- same as none, but documents that we really don't know. | |
4996 | # 'pass_all' -- all dependencies passed with no checks. | |
4997 | # 'test_compile' -- check by making test program. | |
4998 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
4999 | # which responds to the $file_magic_cmd with a given extended regex. | |
5000 | # If you have `file' or equivalent on your system and you're not sure | |
5001 | # whether `pass_all' will *always* work, you probably want this one. | |
b83ef3ee | 5002 | |
ce2cded5 | 5003 | case $host_os in |
50e7d84b | 5004 | aix[4-9]*) |
ce2cded5 L |
5005 | lt_cv_deplibs_check_method=pass_all |
5006 | ;; | |
20e95c23 | 5007 | |
ce2cded5 L |
5008 | beos*) |
5009 | lt_cv_deplibs_check_method=pass_all | |
5010 | ;; | |
20e95c23 | 5011 | |
ce2cded5 L |
5012 | bsdi[45]*) |
5013 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5014 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5015 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5016 | ;; | |
20e95c23 | 5017 | |
ce2cded5 L |
5018 | cygwin*) |
5019 | # func_win32_libid is a shell function defined in ltmain.sh | |
5020 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5021 | lt_cv_file_magic_cmd='func_win32_libid' | |
5022 | ;; | |
20e95c23 | 5023 | |
ce2cded5 L |
5024 | mingw* | pw32*) |
5025 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5026 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5027 | # unless we find 'file', for example because we are cross-compiling. | |
5028 | if ( file / ) >/dev/null 2>&1; then | |
5029 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5030 | lt_cv_file_magic_cmd='func_win32_libid' | |
5031 | else | |
5032 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
5033 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5034 | fi | |
5035 | ;; | |
20e95c23 | 5036 | |
ce2cded5 L |
5037 | darwin* | rhapsody*) |
5038 | lt_cv_deplibs_check_method=pass_all | |
5039 | ;; | |
20e95c23 | 5040 | |
ce2cded5 L |
5041 | freebsd* | dragonfly*) |
5042 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5043 | case $host_cpu in | |
5044 | i*86 ) | |
5045 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5046 | # Let's accept both of them until this is cleared up. | |
5047 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5048 | lt_cv_file_magic_cmd=/usr/bin/file | |
5049 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5050 | ;; | |
5051 | esac | |
5052 | else | |
5053 | lt_cv_deplibs_check_method=pass_all | |
5054 | fi | |
5055 | ;; | |
20e95c23 | 5056 | |
ce2cded5 L |
5057 | gnu*) |
5058 | lt_cv_deplibs_check_method=pass_all | |
5059 | ;; | |
20e95c23 | 5060 | |
ce2cded5 L |
5061 | hpux10.20* | hpux11*) |
5062 | lt_cv_file_magic_cmd=/usr/bin/file | |
5063 | case $host_cpu in | |
5064 | ia64*) | |
5065 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5066 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5067 | ;; | |
5068 | hppa*64*) | |
5069 | 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]' | |
5070 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
5071 | ;; | |
5072 | *) | |
5073 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
5074 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5075 | ;; | |
5076 | esac | |
5077 | ;; | |
20e95c23 | 5078 | |
ce2cded5 L |
5079 | interix[3-9]*) |
5080 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5081 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5082 | ;; | |
20e95c23 | 5083 | |
ce2cded5 L |
5084 | irix5* | irix6* | nonstopux*) |
5085 | case $LD in | |
5086 | *-32|*"-32 ") libmagic=32-bit;; | |
5087 | *-n32|*"-n32 ") libmagic=N32;; | |
5088 | *-64|*"-64 ") libmagic=64-bit;; | |
5089 | *) libmagic=never-match;; | |
5090 | esac | |
5091 | lt_cv_deplibs_check_method=pass_all | |
5092 | ;; | |
20e95c23 | 5093 | |
ce2cded5 L |
5094 | # This must be Linux ELF. |
5095 | linux* | k*bsd*-gnu) | |
5096 | lt_cv_deplibs_check_method=pass_all | |
5097 | ;; | |
20e95c23 | 5098 | |
ce2cded5 L |
5099 | netbsd*) |
5100 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5101 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5102 | else | |
5103 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5104 | fi | |
5105 | ;; | |
20e95c23 | 5106 | |
ce2cded5 L |
5107 | newos6*) |
5108 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5109 | lt_cv_file_magic_cmd=/usr/bin/file | |
5110 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5111 | ;; | |
20e95c23 | 5112 | |
ce2cded5 L |
5113 | *nto* | *qnx*) |
5114 | lt_cv_deplibs_check_method=pass_all | |
5115 | ;; | |
20e95c23 | 5116 | |
ce2cded5 L |
5117 | openbsd*) |
5118 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5119 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5120 | else | |
5121 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5122 | fi | |
5123 | ;; | |
20e95c23 | 5124 | |
ce2cded5 L |
5125 | osf3* | osf4* | osf5*) |
5126 | lt_cv_deplibs_check_method=pass_all | |
5127 | ;; | |
20e95c23 | 5128 | |
ce2cded5 L |
5129 | rdos*) |
5130 | lt_cv_deplibs_check_method=pass_all | |
5131 | ;; | |
20e95c23 | 5132 | |
ce2cded5 L |
5133 | solaris*) |
5134 | lt_cv_deplibs_check_method=pass_all | |
5135 | ;; | |
20e95c23 | 5136 | |
ce2cded5 L |
5137 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
5138 | lt_cv_deplibs_check_method=pass_all | |
5139 | ;; | |
20e95c23 | 5140 | |
ce2cded5 L |
5141 | sysv4 | sysv4.3*) |
5142 | case $host_vendor in | |
5143 | motorola) | |
5144 | 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]' | |
5145 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5146 | ;; | |
5147 | ncr) | |
5148 | lt_cv_deplibs_check_method=pass_all | |
5149 | ;; | |
5150 | sequent) | |
5151 | lt_cv_file_magic_cmd='/bin/file' | |
5152 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5153 | ;; | |
5154 | sni) | |
5155 | lt_cv_file_magic_cmd='/bin/file' | |
5156 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5157 | lt_cv_file_magic_test_file=/lib/libc.so | |
5158 | ;; | |
5159 | siemens) | |
5160 | lt_cv_deplibs_check_method=pass_all | |
5161 | ;; | |
5162 | pc) | |
5163 | lt_cv_deplibs_check_method=pass_all | |
5164 | ;; | |
5165 | esac | |
5166 | ;; | |
d7040cdb | 5167 | |
ce2cded5 L |
5168 | tpf*) |
5169 | lt_cv_deplibs_check_method=pass_all | |
5170 | ;; | |
5171 | esac | |
d7040cdb | 5172 | |
20e95c23 | 5173 | fi |
ce2cded5 L |
5174 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
5175 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
5176 | file_magic_cmd=$lt_cv_file_magic_cmd | |
5177 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5178 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
d7040cdb SE |
5179 | |
5180 | ||
5181 | ||
5182 | ||
5183 | ||
5184 | ||
5185 | ||
5186 | ||
5187 | ||
5188 | ||
5189 | ||
20e95c23 | 5190 | |
ce2cded5 L |
5191 | if test -n "$ac_tool_prefix"; then |
5192 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
5193 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5194 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5195 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5196 | if test "${ac_cv_prog_AR+set}" = set; then | |
d7040cdb | 5197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20e95c23 | 5198 | else |
ce2cded5 L |
5199 | if test -n "$AR"; then |
5200 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
d7040cdb | 5201 | else |
ce2cded5 L |
5202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5203 | for as_dir in $PATH | |
5204 | do | |
5205 | IFS=$as_save_IFS | |
5206 | test -z "$as_dir" && as_dir=. | |
5207 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5208 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5209 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
5210 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5211 | break 2 | |
5212 | fi | |
5213 | done | |
5214 | done | |
5215 | ||
d7040cdb | 5216 | fi |
42ecbf5e | 5217 | fi |
ce2cded5 L |
5218 | AR=$ac_cv_prog_AR |
5219 | if test -n "$AR"; then | |
5220 | echo "$as_me:$LINENO: result: $AR" >&5 | |
5221 | echo "${ECHO_T}$AR" >&6 | |
5222 | else | |
5223 | echo "$as_me:$LINENO: result: no" >&5 | |
5224 | echo "${ECHO_T}no" >&6 | |
5225 | fi | |
d7040cdb | 5226 | |
ce2cded5 L |
5227 | fi |
5228 | if test -z "$ac_cv_prog_AR"; then | |
5229 | ac_ct_AR=$AR | |
5230 | # Extract the first word of "ar", so it can be a program name with args. | |
5231 | set dummy ar; ac_word=$2 | |
5232 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5233 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5234 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
5235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5236 | else | |
5237 | if test -n "$ac_ct_AR"; then | |
5238 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5239 | else | |
5240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5241 | for as_dir in $PATH | |
5242 | do | |
5243 | IFS=$as_save_IFS | |
5244 | test -z "$as_dir" && as_dir=. | |
5245 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5246 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5247 | ac_cv_prog_ac_ct_AR="ar" | |
5248 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5249 | break 2 | |
5250 | fi | |
5251 | done | |
5252 | done | |
d7040cdb | 5253 | |
ce2cded5 L |
5254 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
5255 | fi | |
5256 | fi | |
5257 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5258 | if test -n "$ac_ct_AR"; then | |
5259 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
5260 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
5261 | else | |
5262 | echo "$as_me:$LINENO: result: no" >&5 | |
5263 | echo "${ECHO_T}no" >&6 | |
5264 | fi | |
d7040cdb | 5265 | |
ce2cded5 L |
5266 | AR=$ac_ct_AR |
5267 | else | |
5268 | AR="$ac_cv_prog_AR" | |
5269 | fi | |
d7040cdb | 5270 | |
ce2cded5 L |
5271 | test -z "$AR" && AR=ar |
5272 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
d7040cdb SE |
5273 | |
5274 | ||
5275 | ||
5276 | ||
5277 | ||
5278 | ||
5279 | ||
5280 | ||
5281 | ||
5282 | ||
5283 | ||
ce2cded5 L |
5284 | if test -n "$ac_tool_prefix"; then |
5285 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5286 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5287 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5288 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5289 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
5290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5291 | else | |
5292 | if test -n "$STRIP"; then | |
5293 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5294 | else | |
5295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5296 | for as_dir in $PATH | |
5297 | do | |
5298 | IFS=$as_save_IFS | |
5299 | test -z "$as_dir" && as_dir=. | |
5300 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5301 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5302 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
5303 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5304 | break 2 | |
20e95c23 | 5305 | fi |
d7040cdb | 5306 | done |
ce2cded5 | 5307 | done |
d7040cdb | 5308 | |
ce2cded5 L |
5309 | fi |
5310 | fi | |
5311 | STRIP=$ac_cv_prog_STRIP | |
5312 | if test -n "$STRIP"; then | |
5313 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
5314 | echo "${ECHO_T}$STRIP" >&6 | |
5315 | else | |
5316 | echo "$as_me:$LINENO: result: no" >&5 | |
5317 | echo "${ECHO_T}no" >&6 | |
5318 | fi | |
d7040cdb | 5319 | |
ce2cded5 L |
5320 | fi |
5321 | if test -z "$ac_cv_prog_STRIP"; then | |
5322 | ac_ct_STRIP=$STRIP | |
5323 | # Extract the first word of "strip", so it can be a program name with args. | |
5324 | set dummy strip; ac_word=$2 | |
5325 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5326 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5327 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
20e95c23 DJ |
5328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5329 | else | |
ce2cded5 L |
5330 | if test -n "$ac_ct_STRIP"; then |
5331 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5332 | else | |
5333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5334 | for as_dir in $PATH | |
5335 | do | |
5336 | IFS=$as_save_IFS | |
5337 | test -z "$as_dir" && as_dir=. | |
5338 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5339 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5340 | ac_cv_prog_ac_ct_STRIP="strip" | |
5341 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5342 | break 2 | |
5343 | fi | |
5344 | done | |
5345 | done | |
d7040cdb | 5346 | |
ce2cded5 | 5347 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
20e95c23 | 5348 | fi |
ce2cded5 L |
5349 | fi |
5350 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
5351 | if test -n "$ac_ct_STRIP"; then | |
5352 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
5353 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
42ecbf5e DJ |
5354 | else |
5355 | echo "$as_me:$LINENO: result: no" >&5 | |
5356 | echo "${ECHO_T}no" >&6 | |
5357 | fi | |
5358 | ||
ce2cded5 L |
5359 | STRIP=$ac_ct_STRIP |
5360 | else | |
5361 | STRIP="$ac_cv_prog_STRIP" | |
5362 | fi | |
20e95c23 | 5363 | |
ce2cded5 | 5364 | test -z "$STRIP" && STRIP=: |
20e95c23 | 5365 | |
20e95c23 | 5366 | |
20e95c23 | 5367 | |
ce2cded5 L |
5368 | |
5369 | ||
5370 | ||
5371 | if test -n "$ac_tool_prefix"; then | |
5372 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5373 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5374 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5375 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5376 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
42ecbf5e DJ |
5377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5378 | else | |
ce2cded5 L |
5379 | if test -n "$RANLIB"; then |
5380 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5381 | else | |
5382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5383 | for as_dir in $PATH | |
5384 | do | |
5385 | IFS=$as_save_IFS | |
5386 | test -z "$as_dir" && as_dir=. | |
5387 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5388 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5389 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5390 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5391 | break 2 | |
5392 | fi | |
5393 | done | |
5394 | done | |
d7040cdb | 5395 | |
ce2cded5 L |
5396 | fi |
5397 | fi | |
5398 | RANLIB=$ac_cv_prog_RANLIB | |
5399 | if test -n "$RANLIB"; then | |
5400 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
5401 | echo "${ECHO_T}$RANLIB" >&6 | |
5402 | else | |
5403 | echo "$as_me:$LINENO: result: no" >&5 | |
5404 | echo "${ECHO_T}no" >&6 | |
5405 | fi | |
d7040cdb | 5406 | |
20e95c23 | 5407 | fi |
ce2cded5 L |
5408 | if test -z "$ac_cv_prog_RANLIB"; then |
5409 | ac_ct_RANLIB=$RANLIB | |
5410 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5411 | set dummy ranlib; ac_word=$2 | |
5412 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5413 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5414 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5416 | else | |
5417 | if test -n "$ac_ct_RANLIB"; then | |
5418 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5419 | else | |
5420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5421 | for as_dir in $PATH | |
5422 | do | |
5423 | IFS=$as_save_IFS | |
5424 | test -z "$as_dir" && as_dir=. | |
5425 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5426 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5427 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5428 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5429 | break 2 | |
5430 | fi | |
5431 | done | |
5432 | done | |
d7040cdb | 5433 | |
ce2cded5 L |
5434 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
5435 | fi | |
5436 | fi | |
5437 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5438 | if test -n "$ac_ct_RANLIB"; then | |
5439 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5440 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
20e95c23 DJ |
5441 | else |
5442 | echo "$as_me:$LINENO: result: no" >&5 | |
5443 | echo "${ECHO_T}no" >&6 | |
5444 | fi | |
5445 | ||
ce2cded5 L |
5446 | RANLIB=$ac_ct_RANLIB |
5447 | else | |
5448 | RANLIB="$ac_cv_prog_RANLIB" | |
d7040cdb | 5449 | fi |
20e95c23 | 5450 | |
ce2cded5 | 5451 | test -z "$RANLIB" && RANLIB=: |
20e95c23 | 5452 | |
20e95c23 DJ |
5453 | |
5454 | ||
5455 | ||
5456 | ||
d7040cdb | 5457 | |
ce2cded5 L |
5458 | # Determine commands to create old-style static archives. |
5459 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | |
5460 | old_postinstall_cmds='chmod 644 $oldlib' | |
5461 | old_postuninstall_cmds= | |
d7040cdb | 5462 | |
ce2cded5 L |
5463 | if test -n "$RANLIB"; then |
5464 | case $host_os in | |
5465 | openbsd*) | |
5466 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
5467 | ;; | |
5468 | *) | |
5469 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
5470 | ;; | |
5471 | esac | |
5472 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
5473 | fi | |
d7040cdb SE |
5474 | |
5475 | ||
5476 | ||
5477 | ||
5478 | ||
5479 | ||
5480 | ||
d7040cdb | 5481 | |
d7040cdb | 5482 | |
d7040cdb | 5483 | |
d7040cdb | 5484 | |
d7040cdb | 5485 | |
d7040cdb SE |
5486 | |
5487 | ||
d7040cdb | 5488 | |
d7040cdb | 5489 | |
d7040cdb | 5490 | |
d7040cdb | 5491 | |
d7040cdb | 5492 | |
42ecbf5e | 5493 | |
d7040cdb SE |
5494 | |
5495 | ||
5496 | ||
5497 | ||
5498 | ||
5499 | ||
d7040cdb | 5500 | |
d7040cdb | 5501 | |
d7040cdb | 5502 | |
d7040cdb | 5503 | |
d7040cdb | 5504 | |
d7040cdb | 5505 | |
d7040cdb | 5506 | |
d7040cdb | 5507 | |
ce2cded5 L |
5508 | # If no C compiler was specified, use CC. |
5509 | LTCC=${LTCC-"$CC"} | |
d7040cdb | 5510 | |
ce2cded5 L |
5511 | # If no C compiler flags were specified, use CFLAGS. |
5512 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d7040cdb | 5513 | |
ce2cded5 L |
5514 | # Allow CC to be a program name with arguments. |
5515 | compiler=$CC | |
d7040cdb | 5516 | |
d7040cdb | 5517 | |
ce2cded5 L |
5518 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
5519 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
5520 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | |
5521 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
5522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5523 | else | |
d7040cdb | 5524 | |
ce2cded5 L |
5525 | # These are sane defaults that work on at least a few old systems. |
5526 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
d7040cdb | 5527 | |
ce2cded5 L |
5528 | # Character class describing NM global symbol codes. |
5529 | symcode='[BCDEGRST]' | |
d7040cdb | 5530 | |
ce2cded5 L |
5531 | # Regexp to match symbols that can be accessed directly from C. |
5532 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
d7040cdb | 5533 | |
ce2cded5 L |
5534 | # Define system-specific variables. |
5535 | case $host_os in | |
5536 | aix*) | |
5537 | symcode='[BCDT]' | |
5538 | ;; | |
5539 | cygwin* | mingw* | pw32*) | |
5540 | symcode='[ABCDGISTW]' | |
5541 | ;; | |
5542 | hpux*) | |
5543 | if test "$host_cpu" = ia64; then | |
5544 | symcode='[ABCDEGRST]' | |
5545 | fi | |
5546 | ;; | |
5547 | irix* | nonstopux*) | |
5548 | symcode='[BCDEGRST]' | |
5549 | ;; | |
5550 | osf*) | |
5551 | symcode='[BCDEGQRST]' | |
5552 | ;; | |
5553 | solaris*) | |
5554 | symcode='[BDRT]' | |
5555 | ;; | |
5556 | sco3.2v5*) | |
5557 | symcode='[DT]' | |
5558 | ;; | |
5559 | sysv4.2uw2*) | |
5560 | symcode='[DT]' | |
5561 | ;; | |
5562 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5563 | symcode='[ABDT]' | |
5564 | ;; | |
5565 | sysv4) | |
5566 | symcode='[DFNSTU]' | |
5567 | ;; | |
5568 | esac | |
d7040cdb | 5569 | |
ce2cded5 L |
5570 | # If we're using GNU nm, then use its standard symbol codes. |
5571 | case `$NM -V 2>&1` in | |
5572 | *GNU* | *'with BFD'*) | |
5573 | symcode='[ABCDGIRSTW]' ;; | |
5574 | esac | |
d7040cdb | 5575 | |
ce2cded5 L |
5576 | # Transform an extracted symbol line into a proper C declaration. |
5577 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5578 | # so use this general approach. | |
5579 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
d7040cdb | 5580 | |
ce2cded5 L |
5581 | # Transform an extracted symbol line into symbol name and symbol address |
5582 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
d7040cdb | 5583 | |
ce2cded5 L |
5584 | # Handle CRLF in mingw tool chain |
5585 | opt_cr= | |
5586 | case $build_os in | |
5587 | mingw*) | |
5588 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5589 | ;; | |
5590 | esac | |
d7040cdb | 5591 | |
ce2cded5 L |
5592 | # Try without a prefix underscore, then with it. |
5593 | for ac_symprfx in "" "_"; do | |
d7040cdb | 5594 | |
ce2cded5 L |
5595 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
5596 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
d7040cdb | 5597 | |
ce2cded5 L |
5598 | # Write the raw and C identifiers. |
5599 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5600 | # Fake it for dumpbin and say T for any non-static function | |
5601 | # and D for any global variable. | |
5602 | # Also find C++ and __fastcall symbols from MSVC++, | |
5603 | # which start with @ or ?. | |
5604 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5605 | " {last_section=section; section=\$ 3};"\ | |
5606 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5607 | " \$ 0!~/External *\|/{next};"\ | |
5608 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5609 | " {if(hide[section]) next};"\ | |
5610 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5611 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5612 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5613 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5614 | " ' prfx=^$ac_symprfx" | |
5615 | else | |
5616 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5617 | fi | |
d7040cdb | 5618 | |
ce2cded5 L |
5619 | # Check to see that the pipe works correctly. |
5620 | pipe_works=no | |
d7040cdb | 5621 | |
ce2cded5 L |
5622 | rm -f conftest* |
5623 | cat > conftest.$ac_ext <<_LT_EOF | |
5624 | #ifdef __cplusplus | |
5625 | extern "C" { | |
5626 | #endif | |
5627 | char nm_test_var; | |
5628 | void nm_test_func(void); | |
5629 | void nm_test_func(void){} | |
5630 | #ifdef __cplusplus | |
5631 | } | |
5632 | #endif | |
5633 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
5634 | _LT_EOF | |
d7040cdb | 5635 | |
ce2cded5 L |
5636 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5637 | (eval $ac_compile) 2>&5 | |
5638 | ac_status=$? | |
5639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5640 | (exit $ac_status); }; then | |
5641 | # Now try to grab the symbols. | |
5642 | nlist=conftest.nm | |
5643 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
5644 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5645 | ac_status=$? | |
5646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5647 | (exit $ac_status); } && test -s "$nlist"; then | |
5648 | # Try sorting and uniquifying the output. | |
5649 | if sort "$nlist" | uniq > "$nlist"T; then | |
5650 | mv -f "$nlist"T "$nlist" | |
5651 | else | |
5652 | rm -f "$nlist"T | |
5653 | fi | |
d7040cdb | 5654 | |
ce2cded5 L |
5655 | # Make sure that we snagged all the symbols we need. |
5656 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
5657 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5658 | cat <<_LT_EOF > conftest.$ac_ext | |
5659 | #ifdef __cplusplus | |
5660 | extern "C" { | |
5661 | #endif | |
d7040cdb | 5662 | |
ce2cded5 L |
5663 | _LT_EOF |
5664 | # Now generate the symbol file. | |
5665 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
d7040cdb | 5666 | |
ce2cded5 | 5667 | cat <<_LT_EOF >> conftest.$ac_ext |
d7040cdb | 5668 | |
ce2cded5 L |
5669 | /* The mapping between symbol names and symbols. */ |
5670 | const struct { | |
5671 | const char *name; | |
5672 | void *address; | |
5673 | } | |
5674 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
5675 | { | |
5676 | { "@PROGRAM@", (void *) 0 }, | |
5677 | _LT_EOF | |
5678 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5679 | cat <<\_LT_EOF >> conftest.$ac_ext | |
5680 | {0, (void *) 0} | |
5681 | }; | |
d7040cdb | 5682 | |
ce2cded5 L |
5683 | /* This works around a problem in FreeBSD linker */ |
5684 | #ifdef FREEBSD_WORKAROUND | |
5685 | static const void *lt_preloaded_setup() { | |
5686 | return lt__PROGRAM__LTX_preloaded_symbols; | |
5687 | } | |
5688 | #endif | |
d7040cdb | 5689 | |
ce2cded5 L |
5690 | #ifdef __cplusplus |
5691 | } | |
5692 | #endif | |
5693 | _LT_EOF | |
5694 | # Now try linking the two files. | |
5695 | mv conftest.$ac_objext conftstm.$ac_objext | |
5696 | lt_save_LIBS="$LIBS" | |
5697 | lt_save_CFLAGS="$CFLAGS" | |
5698 | LIBS="conftstm.$ac_objext" | |
5699 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5700 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5701 | (eval $ac_link) 2>&5 | |
5702 | ac_status=$? | |
5703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5704 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
5705 | pipe_works=yes | |
5706 | fi | |
5707 | LIBS="$lt_save_LIBS" | |
5708 | CFLAGS="$lt_save_CFLAGS" | |
5709 | else | |
5710 | echo "cannot find nm_test_func in $nlist" >&5 | |
5711 | fi | |
5712 | else | |
5713 | echo "cannot find nm_test_var in $nlist" >&5 | |
5714 | fi | |
5715 | else | |
5716 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5717 | fi | |
5718 | else | |
5719 | echo "$progname: failed program was:" >&5 | |
5720 | cat conftest.$ac_ext >&5 | |
5721 | fi | |
5722 | rm -f conftest* conftst* | |
d7040cdb | 5723 | |
ce2cded5 L |
5724 | # Do not use the global_symbol_pipe unless it works. |
5725 | if test "$pipe_works" = yes; then | |
5726 | break | |
5727 | else | |
5728 | lt_cv_sys_global_symbol_pipe= | |
5729 | fi | |
5730 | done | |
d7040cdb | 5731 | |
42ecbf5e | 5732 | fi |
d7040cdb | 5733 | |
ce2cded5 L |
5734 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
5735 | lt_cv_sys_global_symbol_to_cdecl= | |
5736 | fi | |
5737 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5738 | echo "$as_me:$LINENO: result: failed" >&5 | |
5739 | echo "${ECHO_T}failed" >&6 | |
42ecbf5e | 5740 | else |
ce2cded5 L |
5741 | echo "$as_me:$LINENO: result: ok" >&5 |
5742 | echo "${ECHO_T}ok" >&6 | |
42ecbf5e DJ |
5743 | fi |
5744 | ||
42ecbf5e | 5745 | |
d7040cdb SE |
5746 | |
5747 | ||
5748 | ||
5749 | ||
5750 | ||
20e95c23 | 5751 | |
d7040cdb | 5752 | |
d7040cdb SE |
5753 | |
5754 | ||
5755 | ||
5756 | ||
5757 | ||
5758 | ||
5759 | ||
20e95c23 | 5760 | |
ce2cded5 L |
5761 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
5762 | if test "${enable_libtool_lock+set}" = set; then | |
5763 | enableval="$enable_libtool_lock" | |
d7040cdb | 5764 | |
ce2cded5 L |
5765 | fi; |
5766 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
d7040cdb | 5767 | |
ce2cded5 L |
5768 | # Some flags need to be propagated to the compiler or linker for good |
5769 | # libtool support. | |
5770 | case $host in | |
5771 | ia64-*-hpux*) | |
5772 | # Find out which ABI we are using. | |
5773 | echo 'int i;' > conftest.$ac_ext | |
5774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5775 | (eval $ac_compile) 2>&5 | |
5776 | ac_status=$? | |
5777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5778 | (exit $ac_status); }; then | |
5779 | case `/usr/bin/file conftest.$ac_objext` in | |
5780 | *ELF-32*) | |
5781 | HPUX_IA64_MODE="32" | |
5782 | ;; | |
5783 | *ELF-64*) | |
5784 | HPUX_IA64_MODE="64" | |
5785 | ;; | |
5786 | esac | |
5787 | fi | |
5788 | rm -rf conftest* | |
5789 | ;; | |
5790 | *-*-irix6*) | |
5791 | # Find out which ABI we are using. | |
bb8541b9 | 5792 | echo '#line 5792 "configure"' > conftest.$ac_ext |
ce2cded5 L |
5793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5794 | (eval $ac_compile) 2>&5 | |
5795 | ac_status=$? | |
5796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5797 | (exit $ac_status); }; then | |
5798 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
5799 | case `/usr/bin/file conftest.$ac_objext` in | |
5800 | *32-bit*) | |
5801 | LD="${LD-ld} -melf32bsmip" | |
5802 | ;; | |
5803 | *N32*) | |
5804 | LD="${LD-ld} -melf32bmipn32" | |
5805 | ;; | |
5806 | *64-bit*) | |
5807 | LD="${LD-ld} -melf64bmip" | |
5808 | ;; | |
5809 | esac | |
5810 | else | |
5811 | case `/usr/bin/file conftest.$ac_objext` in | |
5812 | *32-bit*) | |
5813 | LD="${LD-ld} -32" | |
5814 | ;; | |
5815 | *N32*) | |
5816 | LD="${LD-ld} -n32" | |
5817 | ;; | |
5818 | *64-bit*) | |
5819 | LD="${LD-ld} -64" | |
5820 | ;; | |
5821 | esac | |
5822 | fi | |
5823 | fi | |
5824 | rm -rf conftest* | |
5825 | ;; | |
d7040cdb | 5826 | |
ce2cded5 L |
5827 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
5828 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
5829 | # Find out which ABI we are using. | |
5830 | echo 'int i;' > conftest.$ac_ext | |
5831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5832 | (eval $ac_compile) 2>&5 | |
5833 | ac_status=$? | |
5834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5835 | (exit $ac_status); }; then | |
5836 | case `/usr/bin/file conftest.o` in | |
5837 | *32-bit*) | |
5838 | case $host in | |
5839 | x86_64-*kfreebsd*-gnu) | |
5840 | LD="${LD-ld} -m elf_i386_fbsd" | |
5841 | ;; | |
5842 | x86_64-*linux*) | |
5843 | LD="${LD-ld} -m elf_i386" | |
5844 | ;; | |
5845 | ppc64-*linux*|powerpc64-*linux*) | |
5846 | LD="${LD-ld} -m elf32ppclinux" | |
5847 | ;; | |
5848 | s390x-*linux*) | |
5849 | LD="${LD-ld} -m elf_s390" | |
5850 | ;; | |
5851 | sparc64-*linux*) | |
5852 | LD="${LD-ld} -m elf32_sparc" | |
5853 | ;; | |
5854 | esac | |
5855 | ;; | |
5856 | *64-bit*) | |
5857 | case $host in | |
5858 | x86_64-*kfreebsd*-gnu) | |
5859 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
5860 | ;; | |
5861 | x86_64-*linux*) | |
5862 | LD="${LD-ld} -m elf_x86_64" | |
5863 | ;; | |
5864 | ppc*-*linux*|powerpc*-*linux*) | |
5865 | LD="${LD-ld} -m elf64ppc" | |
5866 | ;; | |
5867 | s390*-*linux*|s390*-*tpf*) | |
5868 | LD="${LD-ld} -m elf64_s390" | |
5869 | ;; | |
5870 | sparc*-*linux*) | |
5871 | LD="${LD-ld} -m elf64_sparc" | |
5872 | ;; | |
5873 | esac | |
5874 | ;; | |
5875 | esac | |
5876 | fi | |
5877 | rm -rf conftest* | |
5878 | ;; | |
d7040cdb | 5879 | |
ce2cded5 L |
5880 | *-*-sco3.2v5*) |
5881 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
5882 | SAVE_CFLAGS="$CFLAGS" | |
5883 | CFLAGS="$CFLAGS -belf" | |
5884 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
5885 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
5886 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
20e95c23 DJ |
5887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5888 | else | |
ce2cded5 L |
5889 | ac_ext=c |
5890 | ac_cpp='$CPP $CPPFLAGS' | |
5891 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5892 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5893 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 5894 | |
ce2cded5 L |
5895 | cat >conftest.$ac_ext <<_ACEOF |
5896 | /* confdefs.h. */ | |
5897 | _ACEOF | |
5898 | cat confdefs.h >>conftest.$ac_ext | |
5899 | cat >>conftest.$ac_ext <<_ACEOF | |
5900 | /* end confdefs.h. */ | |
d7040cdb | 5901 | |
ce2cded5 L |
5902 | int |
5903 | main () | |
5904 | { | |
d7040cdb | 5905 | |
ce2cded5 L |
5906 | ; |
5907 | return 0; | |
5908 | } | |
5909 | _ACEOF | |
5910 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5911 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5912 | (eval $ac_link) 2>conftest.er1 | |
5913 | ac_status=$? | |
5914 | grep -v '^ *+' conftest.er1 >conftest.err | |
5915 | rm -f conftest.er1 | |
5916 | cat conftest.err >&5 | |
5917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5918 | (exit $ac_status); } && | |
5919 | { ac_try='test -z "$ac_c_werror_flag" | |
5920 | || test ! -s conftest.err' | |
5921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5922 | (eval $ac_try) 2>&5 | |
5923 | ac_status=$? | |
5924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5925 | (exit $ac_status); }; } && | |
5926 | { ac_try='test -s conftest$ac_exeext' | |
5927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5928 | (eval $ac_try) 2>&5 | |
5929 | ac_status=$? | |
5930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5931 | (exit $ac_status); }; }; then | |
5932 | lt_cv_cc_needs_belf=yes | |
d7040cdb | 5933 | else |
ce2cded5 L |
5934 | echo "$as_me: failed program was:" >&5 |
5935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 5936 | |
ce2cded5 L |
5937 | lt_cv_cc_needs_belf=no |
5938 | fi | |
5939 | rm -f conftest.err conftest.$ac_objext \ | |
5940 | conftest$ac_exeext conftest.$ac_ext | |
5941 | ac_ext=c | |
5942 | ac_cpp='$CPP $CPPFLAGS' | |
5943 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5944 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5945 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 5946 | |
ce2cded5 L |
5947 | fi |
5948 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
5949 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
5950 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
5951 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
5952 | CFLAGS="$SAVE_CFLAGS" | |
5953 | fi | |
5954 | ;; | |
5955 | sparc*-*solaris*) | |
5956 | # Find out which ABI we are using. | |
5957 | echo 'int i;' > conftest.$ac_ext | |
5958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5959 | (eval $ac_compile) 2>&5 | |
5960 | ac_status=$? | |
5961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5962 | (exit $ac_status); }; then | |
5963 | case `/usr/bin/file conftest.o` in | |
5964 | *64-bit*) | |
5965 | case $lt_cv_prog_gnu_ld in | |
5966 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
5967 | *) LD="${LD-ld} -64" ;; | |
5968 | esac | |
5969 | ;; | |
5970 | esac | |
5971 | fi | |
5972 | rm -rf conftest* | |
5973 | ;; | |
5974 | esac | |
d7040cdb | 5975 | |
ce2cded5 | 5976 | need_locks="$enable_libtool_lock" |
d7040cdb | 5977 | |
ce2cded5 L |
5978 | ac_ext=c |
5979 | ac_cpp='$CPP $CPPFLAGS' | |
5980 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5981 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5982 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5983 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
5984 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
5985 | # On Suns, sometimes $CPP names a directory. | |
5986 | if test -n "$CPP" && test -d "$CPP"; then | |
5987 | CPP= | |
5988 | fi | |
5989 | if test -z "$CPP"; then | |
5990 | if test "${ac_cv_prog_CPP+set}" = set; then | |
5991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5992 | else | |
5993 | # Double quotes because CPP needs to be expanded | |
5994 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5995 | do | |
5996 | ac_preproc_ok=false | |
5997 | for ac_c_preproc_warn_flag in '' yes | |
5998 | do | |
5999 | # Use a header file that comes with gcc, so configuring glibc | |
6000 | # with a fresh cross-compiler works. | |
6001 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6002 | # <limits.h> exists even on freestanding compilers. | |
6003 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6004 | # not just through cpp. "Syntax error" is here to catch this case. | |
6005 | cat >conftest.$ac_ext <<_ACEOF | |
6006 | /* confdefs.h. */ | |
6007 | _ACEOF | |
6008 | cat confdefs.h >>conftest.$ac_ext | |
6009 | cat >>conftest.$ac_ext <<_ACEOF | |
6010 | /* end confdefs.h. */ | |
6011 | #ifdef __STDC__ | |
6012 | # include <limits.h> | |
6013 | #else | |
6014 | # include <assert.h> | |
6015 | #endif | |
6016 | Syntax error | |
6017 | _ACEOF | |
6018 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6019 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6020 | ac_status=$? | |
6021 | grep -v '^ *+' conftest.er1 >conftest.err | |
6022 | rm -f conftest.er1 | |
6023 | cat conftest.err >&5 | |
6024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6025 | (exit $ac_status); } >/dev/null; then | |
6026 | if test -s conftest.err; then | |
6027 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6028 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6029 | else | |
6030 | ac_cpp_err= | |
6031 | fi | |
6032 | else | |
6033 | ac_cpp_err=yes | |
6034 | fi | |
6035 | if test -z "$ac_cpp_err"; then | |
6036 | : | |
6037 | else | |
6038 | echo "$as_me: failed program was:" >&5 | |
6039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 6040 | |
ce2cded5 L |
6041 | # Broken: fails on valid input. |
6042 | continue | |
6043 | fi | |
6044 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 6045 | |
ce2cded5 L |
6046 | # OK, works on sane cases. Now check whether non-existent headers |
6047 | # can be detected and how. | |
6048 | cat >conftest.$ac_ext <<_ACEOF | |
6049 | /* confdefs.h. */ | |
6050 | _ACEOF | |
6051 | cat confdefs.h >>conftest.$ac_ext | |
6052 | cat >>conftest.$ac_ext <<_ACEOF | |
6053 | /* end confdefs.h. */ | |
6054 | #include <ac_nonexistent.h> | |
6055 | _ACEOF | |
6056 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6057 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6058 | ac_status=$? | |
6059 | grep -v '^ *+' conftest.er1 >conftest.err | |
6060 | rm -f conftest.er1 | |
6061 | cat conftest.err >&5 | |
6062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6063 | (exit $ac_status); } >/dev/null; then | |
6064 | if test -s conftest.err; then | |
6065 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6066 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6067 | else | |
6068 | ac_cpp_err= | |
6069 | fi | |
6070 | else | |
6071 | ac_cpp_err=yes | |
6072 | fi | |
6073 | if test -z "$ac_cpp_err"; then | |
6074 | # Broken: success on invalid input. | |
6075 | continue | |
6076 | else | |
6077 | echo "$as_me: failed program was:" >&5 | |
6078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 6079 | |
ce2cded5 L |
6080 | # Passes both tests. |
6081 | ac_preproc_ok=: | |
6082 | break | |
6083 | fi | |
6084 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 6085 | |
ce2cded5 L |
6086 | done |
6087 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6088 | rm -f conftest.err conftest.$ac_ext | |
6089 | if $ac_preproc_ok; then | |
6090 | break | |
6091 | fi | |
d7040cdb | 6092 | |
ce2cded5 L |
6093 | done |
6094 | ac_cv_prog_CPP=$CPP | |
d7040cdb | 6095 | |
ce2cded5 L |
6096 | fi |
6097 | CPP=$ac_cv_prog_CPP | |
6098 | else | |
6099 | ac_cv_prog_CPP=$CPP | |
6100 | fi | |
6101 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
6102 | echo "${ECHO_T}$CPP" >&6 | |
6103 | ac_preproc_ok=false | |
6104 | for ac_c_preproc_warn_flag in '' yes | |
6105 | do | |
6106 | # Use a header file that comes with gcc, so configuring glibc | |
6107 | # with a fresh cross-compiler works. | |
6108 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6109 | # <limits.h> exists even on freestanding compilers. | |
6110 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6111 | # not just through cpp. "Syntax error" is here to catch this case. | |
6112 | cat >conftest.$ac_ext <<_ACEOF | |
6113 | /* confdefs.h. */ | |
6114 | _ACEOF | |
6115 | cat confdefs.h >>conftest.$ac_ext | |
6116 | cat >>conftest.$ac_ext <<_ACEOF | |
6117 | /* end confdefs.h. */ | |
6118 | #ifdef __STDC__ | |
6119 | # include <limits.h> | |
6120 | #else | |
6121 | # include <assert.h> | |
6122 | #endif | |
6123 | Syntax error | |
6124 | _ACEOF | |
6125 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6126 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6127 | ac_status=$? | |
6128 | grep -v '^ *+' conftest.er1 >conftest.err | |
6129 | rm -f conftest.er1 | |
6130 | cat conftest.err >&5 | |
6131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6132 | (exit $ac_status); } >/dev/null; then | |
6133 | if test -s conftest.err; then | |
6134 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6135 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6136 | else | |
6137 | ac_cpp_err= | |
6138 | fi | |
6139 | else | |
6140 | ac_cpp_err=yes | |
6141 | fi | |
6142 | if test -z "$ac_cpp_err"; then | |
6143 | : | |
6144 | else | |
6145 | echo "$as_me: failed program was:" >&5 | |
6146 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 6147 | |
ce2cded5 L |
6148 | # Broken: fails on valid input. |
6149 | continue | |
6150 | fi | |
6151 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 6152 | |
ce2cded5 L |
6153 | # OK, works on sane cases. Now check whether non-existent headers |
6154 | # can be detected and how. | |
6155 | cat >conftest.$ac_ext <<_ACEOF | |
6156 | /* confdefs.h. */ | |
6157 | _ACEOF | |
6158 | cat confdefs.h >>conftest.$ac_ext | |
6159 | cat >>conftest.$ac_ext <<_ACEOF | |
6160 | /* end confdefs.h. */ | |
6161 | #include <ac_nonexistent.h> | |
6162 | _ACEOF | |
6163 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6164 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6165 | ac_status=$? | |
6166 | grep -v '^ *+' conftest.er1 >conftest.err | |
6167 | rm -f conftest.er1 | |
6168 | cat conftest.err >&5 | |
6169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6170 | (exit $ac_status); } >/dev/null; then | |
6171 | if test -s conftest.err; then | |
6172 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6173 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6174 | else | |
6175 | ac_cpp_err= | |
6176 | fi | |
6177 | else | |
6178 | ac_cpp_err=yes | |
6179 | fi | |
6180 | if test -z "$ac_cpp_err"; then | |
6181 | # Broken: success on invalid input. | |
6182 | continue | |
6183 | else | |
6184 | echo "$as_me: failed program was:" >&5 | |
6185 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 6186 | |
ce2cded5 L |
6187 | # Passes both tests. |
6188 | ac_preproc_ok=: | |
6189 | break | |
6190 | fi | |
6191 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 6192 | |
ce2cded5 L |
6193 | done |
6194 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6195 | rm -f conftest.err conftest.$ac_ext | |
6196 | if $ac_preproc_ok; then | |
6197 | : | |
6198 | else | |
6199 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
6200 | See \`config.log' for more details." >&5 | |
6201 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
6202 | See \`config.log' for more details." >&2;} | |
6203 | { (exit 1); exit 1; }; } | |
6204 | fi | |
d7040cdb | 6205 | |
ce2cded5 L |
6206 | ac_ext=c |
6207 | ac_cpp='$CPP $CPPFLAGS' | |
6208 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6209 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6210 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 6211 | |
d7040cdb | 6212 | |
ce2cded5 L |
6213 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
6214 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
6215 | if test "${ac_cv_header_stdc+set}" = set; then | |
6216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6217 | else | |
6218 | cat >conftest.$ac_ext <<_ACEOF | |
6219 | /* confdefs.h. */ | |
6220 | _ACEOF | |
6221 | cat confdefs.h >>conftest.$ac_ext | |
6222 | cat >>conftest.$ac_ext <<_ACEOF | |
6223 | /* end confdefs.h. */ | |
6224 | #include <stdlib.h> | |
6225 | #include <stdarg.h> | |
6226 | #include <string.h> | |
6227 | #include <float.h> | |
d7040cdb | 6228 | |
ce2cded5 L |
6229 | int |
6230 | main () | |
6231 | { | |
d7040cdb | 6232 | |
20e95c23 DJ |
6233 | ; |
6234 | return 0; | |
6235 | } | |
42ecbf5e | 6236 | _ACEOF |
ce2cded5 L |
6237 | rm -f conftest.$ac_objext |
6238 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6239 | (eval $ac_compile) 2>conftest.er1 | |
42ecbf5e DJ |
6240 | ac_status=$? |
6241 | grep -v '^ *+' conftest.er1 >conftest.err | |
6242 | rm -f conftest.er1 | |
6243 | cat conftest.err >&5 | |
6244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20e95c23 DJ |
6245 | (exit $ac_status); } && |
6246 | { ac_try='test -z "$ac_c_werror_flag" | |
6247 | || test ! -s conftest.err' | |
6248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6249 | (eval $ac_try) 2>&5 | |
6250 | ac_status=$? | |
6251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6252 | (exit $ac_status); }; } && | |
ce2cded5 | 6253 | { ac_try='test -s conftest.$ac_objext' |
20e95c23 DJ |
6254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6255 | (eval $ac_try) 2>&5 | |
6256 | ac_status=$? | |
6257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6258 | (exit $ac_status); }; }; then | |
ce2cded5 | 6259 | ac_cv_header_stdc=yes |
42ecbf5e DJ |
6260 | else |
6261 | echo "$as_me: failed program was:" >&5 | |
6262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6263 | ||
ce2cded5 | 6264 | ac_cv_header_stdc=no |
42ecbf5e | 6265 | fi |
ce2cded5 | 6266 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d7040cdb | 6267 | |
ce2cded5 L |
6268 | if test $ac_cv_header_stdc = yes; then |
6269 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6270 | cat >conftest.$ac_ext <<_ACEOF | |
42ecbf5e DJ |
6271 | /* confdefs.h. */ |
6272 | _ACEOF | |
6273 | cat confdefs.h >>conftest.$ac_ext | |
6274 | cat >>conftest.$ac_ext <<_ACEOF | |
6275 | /* end confdefs.h. */ | |
ce2cded5 | 6276 | #include <string.h> |
20e95c23 | 6277 | |
42ecbf5e | 6278 | _ACEOF |
ce2cded5 L |
6279 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6280 | $EGREP "memchr" >/dev/null 2>&1; then | |
6281 | : | |
6282 | else | |
6283 | ac_cv_header_stdc=no | |
6284 | fi | |
6285 | rm -f conftest* | |
d7040cdb | 6286 | |
d7040cdb | 6287 | fi |
ce2cded5 L |
6288 | |
6289 | if test $ac_cv_header_stdc = yes; then | |
6290 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6291 | cat >conftest.$ac_ext <<_ACEOF | |
6292 | /* confdefs.h. */ | |
6293 | _ACEOF | |
6294 | cat confdefs.h >>conftest.$ac_ext | |
6295 | cat >>conftest.$ac_ext <<_ACEOF | |
6296 | /* end confdefs.h. */ | |
6297 | #include <stdlib.h> | |
6298 | ||
6299 | _ACEOF | |
6300 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6301 | $EGREP "free" >/dev/null 2>&1; then | |
6302 | : | |
252b5132 | 6303 | else |
ce2cded5 L |
6304 | ac_cv_header_stdc=no |
6305 | fi | |
6306 | rm -f conftest* | |
42ecbf5e | 6307 | |
20e95c23 | 6308 | fi |
d7040cdb | 6309 | |
ce2cded5 L |
6310 | if test $ac_cv_header_stdc = yes; then |
6311 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6312 | if test "$cross_compiling" = yes; then | |
6313 | : | |
6314 | else | |
6315 | cat >conftest.$ac_ext <<_ACEOF | |
6316 | /* confdefs.h. */ | |
6317 | _ACEOF | |
6318 | cat confdefs.h >>conftest.$ac_ext | |
6319 | cat >>conftest.$ac_ext <<_ACEOF | |
6320 | /* end confdefs.h. */ | |
6321 | #include <ctype.h> | |
6322 | #if ((' ' & 0x0FF) == 0x020) | |
6323 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6324 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6325 | #else | |
6326 | # define ISLOWER(c) \ | |
6327 | (('a' <= (c) && (c) <= 'i') \ | |
6328 | || ('j' <= (c) && (c) <= 'r') \ | |
6329 | || ('s' <= (c) && (c) <= 'z')) | |
6330 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6331 | #endif | |
42ecbf5e | 6332 | |
ce2cded5 L |
6333 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
6334 | int | |
6335 | main () | |
6336 | { | |
6337 | int i; | |
6338 | for (i = 0; i < 256; i++) | |
6339 | if (XOR (islower (i), ISLOWER (i)) | |
6340 | || toupper (i) != TOUPPER (i)) | |
6341 | exit(2); | |
6342 | exit (0); | |
6343 | } | |
6344 | _ACEOF | |
6345 | rm -f conftest$ac_exeext | |
6346 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6347 | (eval $ac_link) 2>&5 | |
6348 | ac_status=$? | |
6349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6350 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6352 | (eval $ac_try) 2>&5 | |
6353 | ac_status=$? | |
6354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6355 | (exit $ac_status); }; }; then | |
6356 | : | |
6357 | else | |
6358 | echo "$as_me: program exited with status $ac_status" >&5 | |
6359 | echo "$as_me: failed program was:" >&5 | |
6360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42ecbf5e | 6361 | |
ce2cded5 L |
6362 | ( exit $ac_status ) |
6363 | ac_cv_header_stdc=no | |
6364 | fi | |
6365 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6366 | fi | |
6367 | fi | |
6368 | fi | |
6369 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
6370 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
6371 | if test $ac_cv_header_stdc = yes; then | |
e5a52504 | 6372 | |
ce2cded5 L |
6373 | cat >>confdefs.h <<\_ACEOF |
6374 | #define STDC_HEADERS 1 | |
6375 | _ACEOF | |
d7040cdb | 6376 | |
ac48eca1 | 6377 | fi |
e5a52504 | 6378 | |
ce2cded5 | 6379 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
d7040cdb | 6380 | |
d7040cdb | 6381 | |
d7040cdb | 6382 | |
d7040cdb | 6383 | |
d7040cdb | 6384 | |
d7040cdb | 6385 | |
d7040cdb | 6386 | |
d7040cdb | 6387 | |
d7040cdb | 6388 | |
ce2cded5 L |
6389 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
6390 | inttypes.h stdint.h unistd.h | |
6391 | do | |
6392 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6393 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6394 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6395 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6397 | else | |
6398 | cat >conftest.$ac_ext <<_ACEOF | |
6399 | /* confdefs.h. */ | |
6400 | _ACEOF | |
6401 | cat confdefs.h >>conftest.$ac_ext | |
6402 | cat >>conftest.$ac_ext <<_ACEOF | |
6403 | /* end confdefs.h. */ | |
6404 | $ac_includes_default | |
d7040cdb | 6405 | |
ce2cded5 L |
6406 | #include <$ac_header> |
6407 | _ACEOF | |
6408 | rm -f conftest.$ac_objext | |
6409 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6410 | (eval $ac_compile) 2>conftest.er1 | |
6411 | ac_status=$? | |
6412 | grep -v '^ *+' conftest.er1 >conftest.err | |
6413 | rm -f conftest.er1 | |
6414 | cat conftest.err >&5 | |
6415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6416 | (exit $ac_status); } && | |
6417 | { ac_try='test -z "$ac_c_werror_flag" | |
6418 | || test ! -s conftest.err' | |
6419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6420 | (eval $ac_try) 2>&5 | |
6421 | ac_status=$? | |
6422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6423 | (exit $ac_status); }; } && | |
6424 | { ac_try='test -s conftest.$ac_objext' | |
6425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6426 | (eval $ac_try) 2>&5 | |
6427 | ac_status=$? | |
6428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6429 | (exit $ac_status); }; }; then | |
6430 | eval "$as_ac_Header=yes" | |
6431 | else | |
6432 | echo "$as_me: failed program was:" >&5 | |
6433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 6434 | |
ce2cded5 L |
6435 | eval "$as_ac_Header=no" |
6436 | fi | |
6437 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6438 | fi | |
6439 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6440 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6441 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6442 | cat >>confdefs.h <<_ACEOF | |
6443 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6444 | _ACEOF | |
d7040cdb | 6445 | |
ce2cded5 L |
6446 | fi |
6447 | ||
6448 | done | |
6449 | ||
6450 | ||
6451 | ||
6452 | for ac_header in dlfcn.h | |
6453 | do | |
6454 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6455 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6456 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6457 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6459 | else | |
6460 | cat >conftest.$ac_ext <<_ACEOF | |
6461 | /* confdefs.h. */ | |
42ecbf5e | 6462 | _ACEOF |
ce2cded5 L |
6463 | cat confdefs.h >>conftest.$ac_ext |
6464 | cat >>conftest.$ac_ext <<_ACEOF | |
6465 | /* end confdefs.h. */ | |
6466 | $ac_includes_default | |
6467 | ||
6468 | #include <$ac_header> | |
6469 | _ACEOF | |
6470 | rm -f conftest.$ac_objext | |
6471 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6472 | (eval $ac_compile) 2>conftest.er1 | |
42ecbf5e DJ |
6473 | ac_status=$? |
6474 | grep -v '^ *+' conftest.er1 >conftest.err | |
6475 | rm -f conftest.er1 | |
6476 | cat conftest.err >&5 | |
6477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6478 | (exit $ac_status); } && | |
502bdb00 JW |
6479 | { ac_try='test -z "$ac_c_werror_flag" |
6480 | || test ! -s conftest.err' | |
42ecbf5e DJ |
6481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6482 | (eval $ac_try) 2>&5 | |
6483 | ac_status=$? | |
6484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6485 | (exit $ac_status); }; } && | |
ce2cded5 | 6486 | { ac_try='test -s conftest.$ac_objext' |
42ecbf5e DJ |
6487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6488 | (eval $ac_try) 2>&5 | |
6489 | ac_status=$? | |
6490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6491 | (exit $ac_status); }; }; then | |
ce2cded5 | 6492 | eval "$as_ac_Header=yes" |
252b5132 | 6493 | else |
42ecbf5e DJ |
6494 | echo "$as_me: failed program was:" >&5 |
6495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6496 | ||
ce2cded5 | 6497 | eval "$as_ac_Header=no" |
252b5132 | 6498 | fi |
ce2cded5 L |
6499 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6500 | fi | |
6501 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6502 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6503 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6504 | cat >>confdefs.h <<_ACEOF | |
6505 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6506 | _ACEOF | |
d7040cdb | 6507 | |
ce2cded5 | 6508 | fi |
d7040cdb | 6509 | |
ce2cded5 | 6510 | done |
d7040cdb | 6511 | |
d7040cdb | 6512 | |
d7040cdb | 6513 | |
ce2cded5 L |
6514 | # This can be used to rebuild libtool when needed |
6515 | LIBTOOL_DEPS="$ltmain" | |
d7040cdb | 6516 | |
ce2cded5 L |
6517 | # Always use our own libtool. |
6518 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d7040cdb | 6519 | |
d7040cdb | 6520 | |
d7040cdb | 6521 | |
d7040cdb | 6522 | |
d7040cdb | 6523 | |
d7040cdb | 6524 | |
d7040cdb | 6525 | |
d7040cdb | 6526 | |
d7040cdb | 6527 | |
d7040cdb | 6528 | |
d7040cdb | 6529 | |
d7040cdb | 6530 | |
d7040cdb | 6531 | |
d7040cdb | 6532 | |
d7040cdb | 6533 | |
d7040cdb | 6534 | |
d7040cdb SE |
6535 | |
6536 | ||
6537 | ||
6538 | ||
6539 | ||
6540 | ||
6541 | ||
6542 | ||
6543 | ||
ce2cded5 | 6544 | test -z "$LN_S" && LN_S="ln -s" |
d7040cdb SE |
6545 | |
6546 | ||
6547 | ||
6548 | ||
6549 | ||
6550 | ||
d7040cdb SE |
6551 | |
6552 | ||
6553 | ||
6554 | ||
6555 | ||
6556 | ||
6557 | ||
6558 | ||
ce2cded5 L |
6559 | if test -n "${ZSH_VERSION+set}" ; then |
6560 | setopt NO_GLOB_SUBST | |
6561 | fi | |
d7040cdb | 6562 | |
ce2cded5 L |
6563 | echo "$as_me:$LINENO: checking for objdir" >&5 |
6564 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | |
6565 | if test "${lt_cv_objdir+set}" = set; then | |
6566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6567 | else | |
6568 | rm -f .libs 2>/dev/null | |
6569 | mkdir .libs 2>/dev/null | |
6570 | if test -d .libs; then | |
6571 | lt_cv_objdir=.libs | |
6572 | else | |
6573 | # MS-DOS does not allow filenames that begin with a dot. | |
6574 | lt_cv_objdir=_libs | |
6575 | fi | |
6576 | rmdir .libs 2>/dev/null | |
6577 | fi | |
6578 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
6579 | echo "${ECHO_T}$lt_cv_objdir" >&6 | |
6580 | objdir=$lt_cv_objdir | |
d7040cdb SE |
6581 | |
6582 | ||
6583 | ||
6584 | ||
6585 | ||
ce2cded5 L |
6586 | cat >>confdefs.h <<_ACEOF |
6587 | #define LT_OBJDIR "$lt_cv_objdir/" | |
6588 | _ACEOF | |
d7040cdb SE |
6589 | |
6590 | ||
6591 | ||
6592 | ||
6593 | ||
6594 | ||
6595 | ||
6596 | ||
6597 | ||
6598 | ||
6599 | ||
6600 | ||
6601 | ||
6602 | ||
6603 | ||
6604 | ||
6605 | ||
ce2cded5 L |
6606 | case $host_os in |
6607 | aix3*) | |
6608 | # AIX sometimes has problems with the GCC collect2 program. For some | |
6609 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
6610 | # vanish in a puff of smoke. | |
6611 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
6612 | COLLECT_NAMES= | |
6613 | export COLLECT_NAMES | |
6614 | fi | |
6615 | ;; | |
6616 | esac | |
d7040cdb | 6617 | |
ce2cded5 L |
6618 | # Sed substitution that helps us do robust quoting. It backslashifies |
6619 | # metacharacters that are still active within double-quoted strings. | |
6620 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
d7040cdb | 6621 | |
ce2cded5 L |
6622 | # Same as above, but do not quote variable references. |
6623 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
d7040cdb | 6624 | |
ce2cded5 L |
6625 | # Sed substitution to delay expansion of an escaped shell variable in a |
6626 | # double_quote_subst'ed string. | |
6627 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
d7040cdb | 6628 | |
ce2cded5 L |
6629 | # Sed substitution to delay expansion of an escaped single quote. |
6630 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
d7040cdb | 6631 | |
ce2cded5 L |
6632 | # Sed substitution to avoid accidental globbing in evaled expressions |
6633 | no_glob_subst='s/\*/\\\*/g' | |
d7040cdb | 6634 | |
ce2cded5 L |
6635 | # Global variables: |
6636 | ofile=libtool | |
6637 | can_build_shared=yes | |
d7040cdb | 6638 | |
ce2cded5 L |
6639 | # All known linkers require a `.a' archive for static linking (except MSVC, |
6640 | # which needs '.lib'). | |
6641 | libext=a | |
d7040cdb | 6642 | |
ce2cded5 | 6643 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
d7040cdb | 6644 | |
ce2cded5 L |
6645 | old_CC="$CC" |
6646 | old_CFLAGS="$CFLAGS" | |
d7040cdb | 6647 | |
ce2cded5 L |
6648 | # Set sane defaults for various variables |
6649 | test -z "$CC" && CC=cc | |
6650 | test -z "$LTCC" && LTCC=$CC | |
6651 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
6652 | test -z "$LD" && LD=ld | |
6653 | test -z "$ac_objext" && ac_objext=o | |
d7040cdb | 6654 | |
ce2cded5 L |
6655 | for cc_temp in $compiler""; do |
6656 | case $cc_temp in | |
6657 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6658 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6659 | \-*) ;; | |
6660 | *) break;; | |
6661 | esac | |
6662 | done | |
6663 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
d7040cdb SE |
6664 | |
6665 | ||
ce2cded5 L |
6666 | # Only perform the check for file, if the check method requires it |
6667 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
6668 | case $deplibs_check_method in | |
6669 | file_magic*) | |
6670 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
6671 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
6672 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
6673 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
6674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6675 | else | |
6676 | case $MAGIC_CMD in | |
6677 | [\\/*] | ?:[\\/]*) | |
6678 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6679 | ;; | |
6680 | *) | |
6681 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6682 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6683 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6684 | for ac_dir in $ac_dummy; do | |
6685 | IFS="$lt_save_ifs" | |
6686 | test -z "$ac_dir" && ac_dir=. | |
6687 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
6688 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
6689 | if test -n "$file_magic_test_file"; then | |
6690 | case $deplibs_check_method in | |
6691 | "file_magic "*) | |
6692 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6693 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6694 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6695 | $EGREP "$file_magic_regex" > /dev/null; then | |
6696 | : | |
6697 | else | |
6698 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 6699 | |
ce2cded5 L |
6700 | *** Warning: the command libtool uses to detect shared libraries, |
6701 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6702 | *** The result is that libtool may fail to recognize shared libraries | |
6703 | *** as such. This will affect the creation of libtool libraries that | |
6704 | *** depend on shared libraries, but programs linked with such libtool | |
6705 | *** libraries will work regardless of this problem. Nevertheless, you | |
6706 | *** may want to report the problem to your system manager and/or to | |
6707 | *** bug-libtool@gnu.org | |
d7040cdb | 6708 | |
ce2cded5 L |
6709 | _LT_EOF |
6710 | fi ;; | |
6711 | esac | |
6712 | fi | |
6713 | break | |
6714 | fi | |
6715 | done | |
6716 | IFS="$lt_save_ifs" | |
6717 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6718 | ;; | |
6719 | esac | |
6720 | fi | |
d7040cdb | 6721 | |
ce2cded5 L |
6722 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6723 | if test -n "$MAGIC_CMD"; then | |
6724 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
6725 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6726 | else | |
6727 | echo "$as_me:$LINENO: result: no" >&5 | |
6728 | echo "${ECHO_T}no" >&6 | |
6729 | fi | |
d7040cdb SE |
6730 | |
6731 | ||
6732 | ||
6733 | ||
6734 | ||
ce2cded5 L |
6735 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
6736 | if test -n "$ac_tool_prefix"; then | |
6737 | echo "$as_me:$LINENO: checking for file" >&5 | |
6738 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
6739 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
6740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6741 | else | |
6742 | case $MAGIC_CMD in | |
6743 | [\\/*] | ?:[\\/]*) | |
6744 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6745 | ;; | |
6746 | *) | |
6747 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6748 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6749 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6750 | for ac_dir in $ac_dummy; do | |
6751 | IFS="$lt_save_ifs" | |
6752 | test -z "$ac_dir" && ac_dir=. | |
6753 | if test -f $ac_dir/file; then | |
6754 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
6755 | if test -n "$file_magic_test_file"; then | |
6756 | case $deplibs_check_method in | |
6757 | "file_magic "*) | |
6758 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6759 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6760 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6761 | $EGREP "$file_magic_regex" > /dev/null; then | |
6762 | : | |
6763 | else | |
6764 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 6765 | |
ce2cded5 L |
6766 | *** Warning: the command libtool uses to detect shared libraries, |
6767 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6768 | *** The result is that libtool may fail to recognize shared libraries | |
6769 | *** as such. This will affect the creation of libtool libraries that | |
6770 | *** depend on shared libraries, but programs linked with such libtool | |
6771 | *** libraries will work regardless of this problem. Nevertheless, you | |
6772 | *** may want to report the problem to your system manager and/or to | |
6773 | *** bug-libtool@gnu.org | |
d7040cdb | 6774 | |
ce2cded5 L |
6775 | _LT_EOF |
6776 | fi ;; | |
6777 | esac | |
6778 | fi | |
6779 | break | |
6780 | fi | |
6781 | done | |
6782 | IFS="$lt_save_ifs" | |
6783 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6784 | ;; | |
6785 | esac | |
6786 | fi | |
d7040cdb | 6787 | |
ce2cded5 L |
6788 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6789 | if test -n "$MAGIC_CMD"; then | |
6790 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
6791 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6792 | else | |
6793 | echo "$as_me:$LINENO: result: no" >&5 | |
6794 | echo "${ECHO_T}no" >&6 | |
6795 | fi | |
d7040cdb SE |
6796 | |
6797 | ||
ce2cded5 L |
6798 | else |
6799 | MAGIC_CMD=: | |
6800 | fi | |
6801 | fi | |
d7040cdb | 6802 | |
ce2cded5 L |
6803 | fi |
6804 | ;; | |
6805 | esac | |
d7040cdb | 6806 | |
ce2cded5 | 6807 | # Use C for the default configuration in the libtool script |
d7040cdb | 6808 | |
ce2cded5 L |
6809 | lt_save_CC="$CC" |
6810 | ac_ext=c | |
6811 | ac_cpp='$CPP $CPPFLAGS' | |
6812 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6813 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6814 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb SE |
6815 | |
6816 | ||
ce2cded5 L |
6817 | # Source file extension for C test sources. |
6818 | ac_ext=c | |
d7040cdb | 6819 | |
ce2cded5 L |
6820 | # Object file extension for compiled C test sources. |
6821 | objext=o | |
6822 | objext=$objext | |
d7040cdb | 6823 | |
ce2cded5 L |
6824 | # Code to be used in simple compile tests |
6825 | lt_simple_compile_test_code="int some_variable = 0;" | |
d7040cdb | 6826 | |
ce2cded5 L |
6827 | # Code to be used in simple link tests |
6828 | lt_simple_link_test_code='int main(){return(0);}' | |
d7040cdb SE |
6829 | |
6830 | ||
6831 | ||
6832 | ||
6833 | ||
6834 | ||
6835 | ||
ce2cded5 L |
6836 | # If no C compiler was specified, use CC. |
6837 | LTCC=${LTCC-"$CC"} | |
d7040cdb | 6838 | |
ce2cded5 L |
6839 | # If no C compiler flags were specified, use CFLAGS. |
6840 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d7040cdb | 6841 | |
ce2cded5 L |
6842 | # Allow CC to be a program name with arguments. |
6843 | compiler=$CC | |
d7040cdb | 6844 | |
ce2cded5 L |
6845 | # Save the default compiler, since it gets overwritten when the other |
6846 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
6847 | compiler_DEFAULT=$CC | |
d7040cdb | 6848 | |
ce2cded5 L |
6849 | # save warnings/boilerplate of simple test code |
6850 | ac_outfile=conftest.$ac_objext | |
6851 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
6852 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6853 | _lt_compiler_boilerplate=`cat conftest.err` | |
6854 | $RM conftest* | |
d7040cdb | 6855 | |
ce2cded5 L |
6856 | ac_outfile=conftest.$ac_objext |
6857 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
6858 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6859 | _lt_linker_boilerplate=`cat conftest.err` | |
6860 | $RM conftest* | |
d7040cdb SE |
6861 | |
6862 | ||
ce2cded5 L |
6863 | ## CAVEAT EMPTOR: |
6864 | ## There is no encapsulation within the following macros, do not change | |
6865 | ## the running order or otherwise move them around unless you know exactly | |
6866 | ## what you are doing... | |
6867 | if test -n "$compiler"; then | |
d7040cdb | 6868 | |
ce2cded5 | 6869 | lt_prog_compiler_no_builtin_flag= |
d7040cdb | 6870 | |
ce2cded5 L |
6871 | if test "$GCC" = yes; then |
6872 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
d7040cdb | 6873 | |
ce2cded5 L |
6874 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
6875 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
6876 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
6877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6878 | else | |
6879 | lt_cv_prog_compiler_rtti_exceptions=no | |
6880 | ac_outfile=conftest.$ac_objext | |
6881 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6882 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
6883 | # Insert the option either (1) after the last *FLAGS variable, or | |
6884 | # (2) before a word containing "conftest.", or (3) at the end. | |
6885 | # Note that $ac_compile itself does not contain backslashes and begins | |
6886 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6887 | # The option is referenced via a variable to avoid confusing sed. | |
6888 | lt_compile=`echo "$ac_compile" | $SED \ | |
6889 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
6890 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6891 | -e 's:$: $lt_compiler_flag:'` | |
bb8541b9 | 6892 | (eval echo "\"\$as_me:6892: $lt_compile\"" >&5) |
ce2cded5 L |
6893 | (eval "$lt_compile" 2>conftest.err) |
6894 | ac_status=$? | |
6895 | cat conftest.err >&5 | |
bb8541b9 | 6896 | echo "$as_me:6896: \$? = $ac_status" >&5 |
ce2cded5 L |
6897 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6898 | # The compiler can only warn and ignore the option if not recognized | |
6899 | # So say no if there are warnings other than the usual output. | |
6900 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
6901 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
6902 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
6903 | lt_cv_prog_compiler_rtti_exceptions=yes | |
6904 | fi | |
6905 | fi | |
6906 | $RM conftest* | |
d7040cdb | 6907 | |
ce2cded5 L |
6908 | fi |
6909 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
6910 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
d7040cdb | 6911 | |
ce2cded5 L |
6912 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
6913 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
6914 | else | |
6915 | : | |
6916 | fi | |
d7040cdb | 6917 | |
ce2cded5 | 6918 | fi |
d7040cdb SE |
6919 | |
6920 | ||
6921 | ||
6922 | ||
6923 | ||
6924 | ||
ce2cded5 L |
6925 | lt_prog_compiler_wl= |
6926 | lt_prog_compiler_pic= | |
6927 | lt_prog_compiler_static= | |
d7040cdb | 6928 | |
ce2cded5 L |
6929 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
6930 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
d7040cdb | 6931 | |
ce2cded5 L |
6932 | if test "$GCC" = yes; then |
6933 | lt_prog_compiler_wl='-Wl,' | |
6934 | lt_prog_compiler_static='-static' | |
d7040cdb | 6935 | |
ce2cded5 L |
6936 | case $host_os in |
6937 | aix*) | |
6938 | # All AIX code is PIC. | |
6939 | if test "$host_cpu" = ia64; then | |
6940 | # AIX 5 now supports IA64 processor | |
6941 | lt_prog_compiler_static='-Bstatic' | |
6942 | fi | |
6943 | ;; | |
d7040cdb | 6944 | |
ce2cded5 L |
6945 | amigaos*) |
6946 | if test "$host_cpu" = m68k; then | |
6947 | # FIXME: we need at least 68020 code to build shared libraries, but | |
6948 | # adding the `-m68020' flag to GCC prevents building anything better, | |
6949 | # like `-m68040'. | |
6950 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
6951 | fi | |
6952 | ;; | |
d7040cdb | 6953 | |
ce2cded5 L |
6954 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
6955 | # PIC is the default for these OSes. | |
6956 | ;; | |
d7040cdb | 6957 | |
ce2cded5 L |
6958 | mingw* | cygwin* | pw32* | os2*) |
6959 | # This hack is so that the source file can tell whether it is being | |
6960 | # built for inclusion in a dll (and should export symbols for example). | |
6961 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
6962 | # (--disable-auto-import) libraries | |
6963 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6964 | ;; | |
d7040cdb | 6965 | |
ce2cded5 L |
6966 | darwin* | rhapsody*) |
6967 | # PIC is the default on this platform | |
6968 | # Common symbols not allowed in MH_DYLIB files | |
6969 | lt_prog_compiler_pic='-fno-common' | |
6970 | ;; | |
d7040cdb | 6971 | |
ce2cded5 L |
6972 | hpux*) |
6973 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6974 | # not for PA HP-UX. | |
6975 | case $host_cpu in | |
6976 | hppa*64*|ia64*) | |
6977 | # +Z the default | |
6978 | ;; | |
6979 | *) | |
6980 | lt_prog_compiler_pic='-fPIC' | |
6981 | ;; | |
6982 | esac | |
6983 | ;; | |
d7040cdb | 6984 | |
ce2cded5 L |
6985 | interix[3-9]*) |
6986 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
6987 | # Instead, we relocate shared libraries at runtime. | |
6988 | ;; | |
d7040cdb | 6989 | |
ce2cded5 L |
6990 | msdosdjgpp*) |
6991 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
6992 | # on systems that don't support them. | |
6993 | lt_prog_compiler_can_build_shared=no | |
6994 | enable_shared=no | |
6995 | ;; | |
d7040cdb | 6996 | |
ce2cded5 L |
6997 | *nto* | *qnx*) |
6998 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
6999 | # it will coredump. | |
7000 | lt_prog_compiler_pic='-fPIC -shared' | |
7001 | ;; | |
d7040cdb | 7002 | |
ce2cded5 L |
7003 | sysv4*MP*) |
7004 | if test -d /usr/nec; then | |
7005 | lt_prog_compiler_pic=-Kconform_pic | |
7006 | fi | |
7007 | ;; | |
d7040cdb | 7008 | |
ce2cded5 L |
7009 | *) |
7010 | lt_prog_compiler_pic='-fPIC' | |
7011 | ;; | |
7012 | esac | |
7013 | else | |
7014 | # PORTME Check for flag to pass linker flags through the system compiler. | |
7015 | case $host_os in | |
7016 | aix*) | |
7017 | lt_prog_compiler_wl='-Wl,' | |
7018 | if test "$host_cpu" = ia64; then | |
7019 | # AIX 5 now supports IA64 processor | |
7020 | lt_prog_compiler_static='-Bstatic' | |
7021 | else | |
7022 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
7023 | fi | |
7024 | ;; | |
7025 | darwin*) | |
7026 | # PIC is the default on this platform | |
7027 | # Common symbols not allowed in MH_DYLIB files | |
7028 | case $cc_basename in | |
7029 | xlc*) | |
7030 | lt_prog_compiler_pic='-qnocommon' | |
7031 | lt_prog_compiler_wl='-Wl,' | |
7032 | ;; | |
7033 | esac | |
7034 | ;; | |
d7040cdb | 7035 | |
ce2cded5 L |
7036 | mingw* | cygwin* | pw32* | os2*) |
7037 | # This hack is so that the source file can tell whether it is being | |
7038 | # built for inclusion in a dll (and should export symbols for example). | |
7039 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
7040 | ;; | |
d7040cdb | 7041 | |
ce2cded5 L |
7042 | hpux9* | hpux10* | hpux11*) |
7043 | lt_prog_compiler_wl='-Wl,' | |
7044 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7045 | # not for PA HP-UX. | |
7046 | case $host_cpu in | |
7047 | hppa*64*|ia64*) | |
7048 | # +Z the default | |
7049 | ;; | |
7050 | *) | |
7051 | lt_prog_compiler_pic='+Z' | |
7052 | ;; | |
7053 | esac | |
7054 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
7055 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
7056 | ;; | |
d7040cdb | 7057 | |
ce2cded5 L |
7058 | irix5* | irix6* | nonstopux*) |
7059 | lt_prog_compiler_wl='-Wl,' | |
7060 | # PIC (with -KPIC) is the default. | |
7061 | lt_prog_compiler_static='-non_shared' | |
7062 | ;; | |
d7040cdb | 7063 | |
ce2cded5 L |
7064 | linux* | k*bsd*-gnu) |
7065 | case $cc_basename in | |
7066 | icc* | ecc*) | |
7067 | lt_prog_compiler_wl='-Wl,' | |
7068 | lt_prog_compiler_pic='-KPIC' | |
7069 | lt_prog_compiler_static='-static' | |
7070 | ;; | |
7071 | pgcc* | pgf77* | pgf90* | pgf95*) | |
7072 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
7073 | # which looks to be a dead project) | |
7074 | lt_prog_compiler_wl='-Wl,' | |
7075 | lt_prog_compiler_pic='-fpic' | |
7076 | lt_prog_compiler_static='-Bstatic' | |
7077 | ;; | |
7078 | ccc*) | |
7079 | lt_prog_compiler_wl='-Wl,' | |
7080 | # All Alpha code is PIC. | |
7081 | lt_prog_compiler_static='-non_shared' | |
7082 | ;; | |
7083 | *) | |
7084 | case `$CC -V 2>&1 | sed 5q` in | |
7085 | *Sun\ C*) | |
7086 | # Sun C 5.9 | |
7087 | lt_prog_compiler_pic='-KPIC' | |
7088 | lt_prog_compiler_static='-Bstatic' | |
7089 | lt_prog_compiler_wl='-Wl,' | |
7090 | ;; | |
7091 | *Sun\ F*) | |
7092 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
7093 | lt_prog_compiler_pic='-KPIC' | |
7094 | lt_prog_compiler_static='-Bstatic' | |
7095 | lt_prog_compiler_wl='' | |
7096 | ;; | |
7097 | esac | |
7098 | ;; | |
7099 | esac | |
7100 | ;; | |
d7040cdb | 7101 | |
ce2cded5 L |
7102 | newsos6) |
7103 | lt_prog_compiler_pic='-KPIC' | |
7104 | lt_prog_compiler_static='-Bstatic' | |
7105 | ;; | |
d7040cdb | 7106 | |
ce2cded5 L |
7107 | *nto* | *qnx*) |
7108 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7109 | # it will coredump. | |
7110 | lt_prog_compiler_pic='-fPIC -shared' | |
7111 | ;; | |
d7040cdb | 7112 | |
ce2cded5 L |
7113 | osf3* | osf4* | osf5*) |
7114 | lt_prog_compiler_wl='-Wl,' | |
7115 | # All OSF/1 code is PIC. | |
7116 | lt_prog_compiler_static='-non_shared' | |
7117 | ;; | |
d7040cdb | 7118 | |
ce2cded5 L |
7119 | rdos*) |
7120 | lt_prog_compiler_static='-non_shared' | |
7121 | ;; | |
d7040cdb | 7122 | |
ce2cded5 L |
7123 | solaris*) |
7124 | lt_prog_compiler_pic='-KPIC' | |
7125 | lt_prog_compiler_static='-Bstatic' | |
7126 | case $cc_basename in | |
7127 | f77* | f90* | f95*) | |
7128 | lt_prog_compiler_wl='-Qoption ld ';; | |
7129 | *) | |
7130 | lt_prog_compiler_wl='-Wl,';; | |
7131 | esac | |
7132 | ;; | |
d7040cdb | 7133 | |
ce2cded5 L |
7134 | sunos4*) |
7135 | lt_prog_compiler_wl='-Qoption ld ' | |
7136 | lt_prog_compiler_pic='-PIC' | |
7137 | lt_prog_compiler_static='-Bstatic' | |
7138 | ;; | |
d7040cdb | 7139 | |
ce2cded5 L |
7140 | sysv4 | sysv4.2uw2* | sysv4.3*) |
7141 | lt_prog_compiler_wl='-Wl,' | |
7142 | lt_prog_compiler_pic='-KPIC' | |
7143 | lt_prog_compiler_static='-Bstatic' | |
7144 | ;; | |
d7040cdb | 7145 | |
ce2cded5 L |
7146 | sysv4*MP*) |
7147 | if test -d /usr/nec ;then | |
7148 | lt_prog_compiler_pic='-Kconform_pic' | |
7149 | lt_prog_compiler_static='-Bstatic' | |
7150 | fi | |
7151 | ;; | |
d7040cdb | 7152 | |
ce2cded5 L |
7153 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
7154 | lt_prog_compiler_wl='-Wl,' | |
7155 | lt_prog_compiler_pic='-KPIC' | |
7156 | lt_prog_compiler_static='-Bstatic' | |
7157 | ;; | |
d7040cdb | 7158 | |
ce2cded5 L |
7159 | unicos*) |
7160 | lt_prog_compiler_wl='-Wl,' | |
7161 | lt_prog_compiler_can_build_shared=no | |
7162 | ;; | |
d7040cdb | 7163 | |
ce2cded5 L |
7164 | uts4*) |
7165 | lt_prog_compiler_pic='-pic' | |
7166 | lt_prog_compiler_static='-Bstatic' | |
7167 | ;; | |
d7040cdb | 7168 | |
ce2cded5 L |
7169 | *) |
7170 | lt_prog_compiler_can_build_shared=no | |
7171 | ;; | |
7172 | esac | |
7173 | fi | |
d7040cdb | 7174 | |
ce2cded5 L |
7175 | case $host_os in |
7176 | # For platforms which do not support PIC, -DPIC is meaningless: | |
7177 | *djgpp*) | |
7178 | lt_prog_compiler_pic= | |
7179 | ;; | |
7180 | *) | |
7181 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7182 | ;; | |
7183 | esac | |
7184 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
7185 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | |
d7040cdb SE |
7186 | |
7187 | ||
7188 | ||
7189 | ||
7190 | ||
7191 | ||
ce2cded5 L |
7192 | # |
7193 | # Check to make sure the PIC flag actually works. | |
7194 | # | |
7195 | if test -n "$lt_prog_compiler_pic"; then | |
7196 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
7197 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | |
7198 | if test "${lt_prog_compiler_pic_works+set}" = set; then | |
7199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7200 | else | |
7201 | lt_prog_compiler_pic_works=no | |
7202 | ac_outfile=conftest.$ac_objext | |
7203 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7204 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
7205 | # Insert the option either (1) after the last *FLAGS variable, or | |
7206 | # (2) before a word containing "conftest.", or (3) at the end. | |
7207 | # Note that $ac_compile itself does not contain backslashes and begins | |
7208 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7209 | # The option is referenced via a variable to avoid confusing sed. | |
7210 | lt_compile=`echo "$ac_compile" | $SED \ | |
7211 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7212 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7213 | -e 's:$: $lt_compiler_flag:'` | |
bb8541b9 | 7214 | (eval echo "\"\$as_me:7214: $lt_compile\"" >&5) |
ce2cded5 L |
7215 | (eval "$lt_compile" 2>conftest.err) |
7216 | ac_status=$? | |
7217 | cat conftest.err >&5 | |
bb8541b9 | 7218 | echo "$as_me:7218: \$? = $ac_status" >&5 |
ce2cded5 L |
7219 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7220 | # The compiler can only warn and ignore the option if not recognized | |
7221 | # So say no if there are warnings other than the usual output. | |
7222 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7223 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7224 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7225 | lt_prog_compiler_pic_works=yes | |
7226 | fi | |
7227 | fi | |
7228 | $RM conftest* | |
d7040cdb | 7229 | |
ce2cded5 L |
7230 | fi |
7231 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | |
7232 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 | |
7233 | ||
7234 | if test x"$lt_prog_compiler_pic_works" = xyes; then | |
7235 | case $lt_prog_compiler_pic in | |
7236 | "" | " "*) ;; | |
7237 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
7238 | esac | |
7239 | else | |
7240 | lt_prog_compiler_pic= | |
7241 | lt_prog_compiler_can_build_shared=no | |
7242 | fi | |
7243 | ||
7244 | fi | |
d7040cdb SE |
7245 | |
7246 | ||
7247 | ||
7248 | ||
7249 | ||
7250 | ||
ce2cded5 L |
7251 | # |
7252 | # Check to make sure the static flag actually works. | |
7253 | # | |
7254 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
7255 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
7256 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
7257 | if test "${lt_prog_compiler_static_works+set}" = set; then | |
7258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7259 | else | |
7260 | lt_prog_compiler_static_works=no | |
7261 | save_LDFLAGS="$LDFLAGS" | |
7262 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
7263 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
7264 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
7265 | # The linker can only warn and ignore the option if not recognized | |
7266 | # So say no if there are warnings | |
7267 | if test -s conftest.err; then | |
7268 | # Append any errors to the config.log. | |
7269 | cat conftest.err 1>&5 | |
7270 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
7271 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7272 | if diff conftest.exp conftest.er2 >/dev/null; then | |
7273 | lt_prog_compiler_static_works=yes | |
7274 | fi | |
7275 | else | |
7276 | lt_prog_compiler_static_works=yes | |
7277 | fi | |
7278 | fi | |
7279 | $RM conftest* | |
7280 | LDFLAGS="$save_LDFLAGS" | |
d7040cdb | 7281 | |
ce2cded5 L |
7282 | fi |
7283 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | |
7284 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | |
d7040cdb | 7285 | |
ce2cded5 L |
7286 | if test x"$lt_prog_compiler_static_works" = xyes; then |
7287 | : | |
7288 | else | |
7289 | lt_prog_compiler_static= | |
7290 | fi | |
d7040cdb SE |
7291 | |
7292 | ||
7293 | ||
7294 | ||
7295 | ||
7296 | ||
7297 | ||
ce2cded5 L |
7298 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
7299 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
7300 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
7301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7302 | else | |
7303 | lt_cv_prog_compiler_c_o=no | |
7304 | $RM -r conftest 2>/dev/null | |
7305 | mkdir conftest | |
7306 | cd conftest | |
7307 | mkdir out | |
7308 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 7309 | |
ce2cded5 L |
7310 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
7311 | # Insert the option either (1) after the last *FLAGS variable, or | |
7312 | # (2) before a word containing "conftest.", or (3) at the end. | |
7313 | # Note that $ac_compile itself does not contain backslashes and begins | |
7314 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7315 | lt_compile=`echo "$ac_compile" | $SED \ | |
7316 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7317 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7318 | -e 's:$: $lt_compiler_flag:'` | |
bb8541b9 | 7319 | (eval echo "\"\$as_me:7319: $lt_compile\"" >&5) |
ce2cded5 L |
7320 | (eval "$lt_compile" 2>out/conftest.err) |
7321 | ac_status=$? | |
7322 | cat out/conftest.err >&5 | |
bb8541b9 | 7323 | echo "$as_me:7323: \$? = $ac_status" >&5 |
ce2cded5 L |
7324 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7325 | then | |
7326 | # The compiler can only warn and ignore the option if not recognized | |
7327 | # So say no if there are warnings | |
7328 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7329 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7330 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7331 | lt_cv_prog_compiler_c_o=yes | |
7332 | fi | |
7333 | fi | |
7334 | chmod u+w . 2>&5 | |
7335 | $RM conftest* | |
7336 | # SGI C++ compiler will create directory out/ii_files/ for | |
7337 | # template instantiation | |
7338 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7339 | $RM out/* && rmdir out | |
7340 | cd .. | |
7341 | $RM -r conftest | |
7342 | $RM conftest* | |
d7040cdb | 7343 | |
ce2cded5 L |
7344 | fi |
7345 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
7346 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
d7040cdb SE |
7347 | |
7348 | ||
7349 | ||
7350 | ||
7351 | ||
7352 | ||
ce2cded5 L |
7353 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
7354 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
7355 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
7356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7357 | else | |
7358 | lt_cv_prog_compiler_c_o=no | |
7359 | $RM -r conftest 2>/dev/null | |
7360 | mkdir conftest | |
7361 | cd conftest | |
7362 | mkdir out | |
7363 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 7364 | |
ce2cded5 L |
7365 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
7366 | # Insert the option either (1) after the last *FLAGS variable, or | |
7367 | # (2) before a word containing "conftest.", or (3) at the end. | |
7368 | # Note that $ac_compile itself does not contain backslashes and begins | |
7369 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7370 | lt_compile=`echo "$ac_compile" | $SED \ | |
7371 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7372 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7373 | -e 's:$: $lt_compiler_flag:'` | |
bb8541b9 | 7374 | (eval echo "\"\$as_me:7374: $lt_compile\"" >&5) |
ce2cded5 L |
7375 | (eval "$lt_compile" 2>out/conftest.err) |
7376 | ac_status=$? | |
7377 | cat out/conftest.err >&5 | |
bb8541b9 | 7378 | echo "$as_me:7378: \$? = $ac_status" >&5 |
ce2cded5 L |
7379 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7380 | then | |
7381 | # The compiler can only warn and ignore the option if not recognized | |
7382 | # So say no if there are warnings | |
7383 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7384 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7385 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7386 | lt_cv_prog_compiler_c_o=yes | |
7387 | fi | |
7388 | fi | |
7389 | chmod u+w . 2>&5 | |
7390 | $RM conftest* | |
7391 | # SGI C++ compiler will create directory out/ii_files/ for | |
7392 | # template instantiation | |
7393 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7394 | $RM out/* && rmdir out | |
7395 | cd .. | |
7396 | $RM -r conftest | |
7397 | $RM conftest* | |
7398 | ||
7399 | fi | |
7400 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
7401 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
7402 | ||
7403 | ||
7404 | ||
7405 | ||
7406 | hard_links="nottested" | |
7407 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
7408 | # do not overwrite the value of need_locks provided by the user | |
7409 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
7410 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
7411 | hard_links=yes | |
7412 | $RM conftest* | |
7413 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7414 | touch conftest.a | |
7415 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
7416 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7417 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
7418 | echo "${ECHO_T}$hard_links" >&6 | |
7419 | if test "$hard_links" = no; then | |
7420 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
7421 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
7422 | need_locks=warn | |
d7040cdb | 7423 | fi |
d7040cdb | 7424 | else |
ce2cded5 | 7425 | need_locks=no |
d7040cdb | 7426 | fi |
d7040cdb | 7427 | |
d7040cdb | 7428 | |
d7040cdb | 7429 | |
d7040cdb | 7430 | |
d7040cdb | 7431 | |
d7040cdb | 7432 | |
ce2cded5 L |
7433 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
7434 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
d7040cdb | 7435 | |
ce2cded5 L |
7436 | runpath_var= |
7437 | allow_undefined_flag= | |
7438 | always_export_symbols=no | |
7439 | archive_cmds= | |
7440 | archive_expsym_cmds= | |
7441 | compiler_needs_object=no | |
7442 | enable_shared_with_static_runtimes=no | |
7443 | export_dynamic_flag_spec= | |
7444 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
7445 | hardcode_automatic=no | |
7446 | hardcode_direct=no | |
7447 | hardcode_direct_absolute=no | |
7448 | hardcode_libdir_flag_spec= | |
7449 | hardcode_libdir_flag_spec_ld= | |
7450 | hardcode_libdir_separator= | |
7451 | hardcode_minus_L=no | |
7452 | hardcode_shlibpath_var=unsupported | |
7453 | inherit_rpath=no | |
7454 | link_all_deplibs=unknown | |
7455 | module_cmds= | |
7456 | module_expsym_cmds= | |
7457 | old_archive_from_new_cmds= | |
7458 | old_archive_from_expsyms_cmds= | |
7459 | thread_safe_flag_spec= | |
7460 | whole_archive_flag_spec= | |
7461 | # include_expsyms should be a list of space-separated symbols to be *always* | |
7462 | # included in the symbol list | |
7463 | include_expsyms= | |
7464 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
7465 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
7466 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
7467 | # as well as any symbol that contains `d'. | |
7468 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | |
7469 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
7470 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
7471 | # the symbol is explicitly referenced. Since portable code cannot | |
7472 | # rely on this symbol name, it's probably fine to never include it in | |
7473 | # preloaded symbol tables. | |
7474 | extract_expsyms_cmds= | |
d7040cdb | 7475 | |
ce2cded5 L |
7476 | case $host_os in |
7477 | cygwin* | mingw* | pw32*) | |
7478 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
7479 | # When not using gcc, we currently assume that we are using | |
7480 | # Microsoft Visual C++. | |
7481 | if test "$GCC" != yes; then | |
7482 | with_gnu_ld=no | |
7483 | fi | |
d7040cdb | 7484 | ;; |
ce2cded5 L |
7485 | interix*) |
7486 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
7487 | with_gnu_ld=yes | |
7488 | ;; | |
7489 | openbsd*) | |
7490 | with_gnu_ld=no | |
d7040cdb SE |
7491 | ;; |
7492 | esac | |
d7040cdb | 7493 | |
ce2cded5 L |
7494 | ld_shlibs=yes |
7495 | if test "$with_gnu_ld" = yes; then | |
7496 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
7497 | wlarc='${wl}' | |
d7040cdb | 7498 | |
ce2cded5 L |
7499 | # Set some defaults for GNU ld with shared library support. These |
7500 | # are reset later if shared libraries are not supported. Putting them | |
7501 | # here allows them to be overridden if necessary. | |
7502 | runpath_var=LD_RUN_PATH | |
7503 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7504 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
7505 | # ancient GNU ld didn't support --whole-archive et. al. | |
7506 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
7507 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
7508 | else | |
7509 | whole_archive_flag_spec= | |
7510 | fi | |
7511 | supports_anon_versioning=no | |
7512 | case `$LD -v 2>&1` in | |
7513 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
7514 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
7515 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
7516 | *\ 2.11.*) ;; # other 2.11 versions | |
7517 | *) supports_anon_versioning=yes ;; | |
7518 | esac | |
d7040cdb | 7519 | |
ce2cded5 L |
7520 | # See if GNU ld supports shared libraries. |
7521 | case $host_os in | |
50e7d84b | 7522 | aix[3-9]*) |
ce2cded5 L |
7523 | # On AIX/PPC, the GNU linker is very broken |
7524 | if test "$host_cpu" != ia64; then | |
7525 | ld_shlibs=no | |
7526 | cat <<_LT_EOF 1>&2 | |
d7040cdb | 7527 | |
ce2cded5 L |
7528 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
7529 | *** to be unable to reliably create shared libraries on AIX. | |
7530 | *** Therefore, libtool is disabling shared libraries support. If you | |
7531 | *** really care for shared libraries, you may want to modify your PATH | |
7532 | *** so that a non-GNU linker is found, and then restart. | |
d7040cdb | 7533 | |
ce2cded5 L |
7534 | _LT_EOF |
7535 | fi | |
d7040cdb | 7536 | ;; |
d7040cdb | 7537 | |
ce2cded5 L |
7538 | amigaos*) |
7539 | if test "$host_cpu" = m68k; then | |
7540 | 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)' | |
7541 | hardcode_libdir_flag_spec='-L$libdir' | |
7542 | hardcode_minus_L=yes | |
7543 | fi | |
d7040cdb | 7544 | |
ce2cded5 L |
7545 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
7546 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
7547 | # to version 4, is to share data among multiple programs linked | |
7548 | # with the same dynamic library. Since this doesn't match the | |
7549 | # behavior of shared libraries on other platforms, we can't use | |
7550 | # them. | |
7551 | ld_shlibs=no | |
7552 | ;; | |
d7040cdb | 7553 | |
ce2cded5 L |
7554 | beos*) |
7555 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7556 | allow_undefined_flag=unsupported | |
7557 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
7558 | # support --undefined. This deserves some investigation. FIXME | |
7559 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7560 | else | |
7561 | ld_shlibs=no | |
7562 | fi | |
7563 | ;; | |
d7040cdb | 7564 | |
ce2cded5 L |
7565 | cygwin* | mingw* | pw32*) |
7566 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
7567 | # as there is no search path for DLLs. | |
7568 | hardcode_libdir_flag_spec='-L$libdir' | |
7569 | allow_undefined_flag=unsupported | |
7570 | always_export_symbols=no | |
7571 | enable_shared_with_static_runtimes=yes | |
7572 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
7573 | ||
7574 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
7575 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7576 | # If the export-symbols file already is a .def file (1st line | |
7577 | # is EXPORTS), use it as is; otherwise, prepend... | |
7578 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
7579 | cp $export_symbols $output_objdir/$soname.def; | |
d7040cdb | 7580 | else |
ce2cded5 L |
7581 | echo EXPORTS > $output_objdir/$soname.def; |
7582 | cat $export_symbols >> $output_objdir/$soname.def; | |
7583 | fi~ | |
7584 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7585 | else | |
7586 | ld_shlibs=no | |
7587 | fi | |
7588 | ;; | |
d7040cdb | 7589 | |
ce2cded5 L |
7590 | interix[3-9]*) |
7591 | hardcode_direct=no | |
7592 | hardcode_shlibpath_var=no | |
7593 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7594 | export_dynamic_flag_spec='${wl}-E' | |
7595 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
7596 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
7597 | # default) and relocated if they conflict, which is a slow very memory | |
7598 | # consuming and fragmenting process. To avoid this, we pick a random, | |
7599 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
7600 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
7601 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7602 | 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' | |
7603 | ;; | |
d7040cdb | 7604 | |
ce2cded5 L |
7605 | gnu* | linux* | tpf* | k*bsd*-gnu) |
7606 | tmp_diet=no | |
7607 | if test "$host_os" = linux-dietlibc; then | |
7608 | case $cc_basename in | |
7609 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
7610 | esac | |
7611 | fi | |
7612 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
7613 | && test "$tmp_diet" = no | |
7614 | then | |
7615 | tmp_addflag= | |
7616 | case $cc_basename,$host_cpu in | |
7617 | pgcc*) # Portland Group C compiler | |
7618 | 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' | |
7619 | tmp_addflag=' $pic_flag' | |
7620 | ;; | |
7621 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
7622 | 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' | |
7623 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
7624 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
7625 | tmp_addflag=' -i_dynamic' ;; | |
7626 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
7627 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
7628 | ifc* | ifort*) # Intel Fortran compiler | |
7629 | tmp_addflag=' -nofor_main' ;; | |
7630 | esac | |
7631 | case `$CC -V 2>&1 | sed 5q` in | |
7632 | *Sun\ C*) # Sun C 5.9 | |
7633 | 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' | |
7634 | compiler_needs_object=yes | |
7635 | tmp_sharedflag='-G' ;; | |
7636 | *Sun\ F*) # Sun Fortran 8.3 | |
7637 | tmp_sharedflag='-G' ;; | |
7638 | *) | |
7639 | tmp_sharedflag='-shared' ;; | |
7640 | esac | |
7641 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
d7040cdb | 7642 | |
ce2cded5 L |
7643 | if test "x$supports_anon_versioning" = xyes; then |
7644 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
7645 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7646 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7647 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
7648 | fi | |
7649 | else | |
7650 | ld_shlibs=no | |
7651 | fi | |
7652 | ;; | |
d7040cdb | 7653 | |
ce2cded5 L |
7654 | netbsd*) |
7655 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
7656 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
7657 | wlarc= | |
7658 | else | |
7659 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7660 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7661 | fi | |
7662 | ;; | |
7663 | ||
7664 | solaris*) | |
7665 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
7666 | ld_shlibs=no | |
7667 | cat <<_LT_EOF 1>&2 | |
7668 | ||
7669 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
7670 | *** create shared libraries on Solaris systems. Therefore, libtool | |
7671 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7672 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
7673 | *** your PATH or compiler configuration so that the native linker is | |
7674 | *** used, and then restart. | |
7675 | ||
7676 | _LT_EOF | |
7677 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7678 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7679 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7680 | else | |
7681 | ld_shlibs=no | |
7682 | fi | |
7683 | ;; | |
7684 | ||
7685 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
7686 | case `$LD -v 2>&1` in | |
7687 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
7688 | ld_shlibs=no | |
7689 | cat <<_LT_EOF 1>&2 | |
7690 | ||
7691 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
7692 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
7693 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7694 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
7695 | *** your PATH or compiler configuration so that the native linker is | |
7696 | *** used, and then restart. | |
7697 | ||
7698 | _LT_EOF | |
7699 | ;; | |
7700 | *) | |
7701 | # For security reasons, it is highly recommended that you always | |
7702 | # use absolute paths for naming shared libraries, and exclude the | |
7703 | # DT_RUNPATH tag from executables and libraries. But doing so | |
7704 | # requires that you compile everything twice, which is a pain. | |
7705 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7706 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7707 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7708 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7709 | else | |
7710 | ld_shlibs=no | |
7711 | fi | |
7712 | ;; | |
7713 | esac | |
7714 | ;; | |
7715 | ||
7716 | sunos4*) | |
7717 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7718 | wlarc= | |
7719 | hardcode_direct=yes | |
7720 | hardcode_shlibpath_var=no | |
7721 | ;; | |
7722 | ||
7723 | *) | |
7724 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7725 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7726 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7727 | else | |
7728 | ld_shlibs=no | |
7729 | fi | |
7730 | ;; | |
7731 | esac | |
7732 | ||
7733 | if test "$ld_shlibs" = no; then | |
7734 | runpath_var= | |
7735 | hardcode_libdir_flag_spec= | |
7736 | export_dynamic_flag_spec= | |
7737 | whole_archive_flag_spec= | |
7738 | fi | |
7739 | else | |
7740 | # PORTME fill in a description of your system's linker (not GNU ld) | |
7741 | case $host_os in | |
7742 | aix3*) | |
7743 | allow_undefined_flag=unsupported | |
7744 | always_export_symbols=yes | |
7745 | 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' | |
7746 | # Note: this linker hardcodes the directories in LIBPATH if there | |
7747 | # are no directories specified by -L. | |
7748 | hardcode_minus_L=yes | |
7749 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
7750 | # Neither direct hardcoding nor static linking is supported with a | |
7751 | # broken collect2. | |
7752 | hardcode_direct=unsupported | |
7753 | fi | |
7754 | ;; | |
7755 | ||
50e7d84b | 7756 | aix[4-9]*) |
ce2cded5 L |
7757 | if test "$host_cpu" = ia64; then |
7758 | # On IA64, the linker does run time linking by default, so we don't | |
7759 | # have to do anything special. | |
7760 | aix_use_runtimelinking=no | |
7761 | exp_sym_flag='-Bexport' | |
7762 | no_entry_flag="" | |
7763 | else | |
7764 | # If we're using GNU nm, then we don't want the "-C" option. | |
7765 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
7766 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
7767 | 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' | |
7768 | else | |
7769 | 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' | |
7770 | fi | |
7771 | aix_use_runtimelinking=no | |
7772 | ||
7773 | # Test if we are trying to use run time linking or normal | |
7774 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
7775 | # need to do runtime linking. | |
50e7d84b | 7776 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
ce2cded5 L |
7777 | for ld_flag in $LDFLAGS; do |
7778 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
7779 | aix_use_runtimelinking=yes | |
7780 | break | |
7781 | fi | |
7782 | done | |
7783 | ;; | |
7784 | esac | |
7785 | ||
7786 | exp_sym_flag='-bexport' | |
7787 | no_entry_flag='-bnoentry' | |
7788 | fi | |
7789 | ||
7790 | # When large executables or shared objects are built, AIX ld can | |
7791 | # have problems creating the table of contents. If linking a library | |
7792 | # or program results in "error TOC overflow" add -mminimal-toc to | |
7793 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
7794 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
7795 | ||
7796 | archive_cmds='' | |
7797 | hardcode_direct=yes | |
7798 | hardcode_direct_absolute=yes | |
7799 | hardcode_libdir_separator=':' | |
7800 | link_all_deplibs=yes | |
7801 | file_list_spec='${wl}-f,' | |
7802 | ||
7803 | if test "$GCC" = yes; then | |
7804 | case $host_os in aix4.[012]|aix4.[012].*) | |
7805 | # We only want to do this on AIX 4.2 and lower, the check | |
7806 | # below for broken collect2 doesn't work under 4.3+ | |
7807 | collect2name=`${CC} -print-prog-name=collect2` | |
7808 | if test -f "$collect2name" && | |
7809 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
7810 | then | |
7811 | # We have reworked collect2 | |
7812 | : | |
7813 | else | |
7814 | # We have old collect2 | |
7815 | hardcode_direct=unsupported | |
7816 | # It fails to find uninstalled libraries when the uninstalled | |
7817 | # path is not listed in the libpath. Setting hardcode_minus_L | |
7818 | # to unsupported forces relinking | |
7819 | hardcode_minus_L=yes | |
7820 | hardcode_libdir_flag_spec='-L$libdir' | |
7821 | hardcode_libdir_separator= | |
7822 | fi | |
7823 | ;; | |
7824 | esac | |
7825 | shared_flag='-shared' | |
7826 | if test "$aix_use_runtimelinking" = yes; then | |
7827 | shared_flag="$shared_flag "'${wl}-G' | |
7828 | fi | |
7829 | else | |
7830 | # not using gcc | |
7831 | if test "$host_cpu" = ia64; then | |
7832 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
7833 | # chokes on -Wl,-G. The following line is correct: | |
7834 | shared_flag='-G' | |
7835 | else | |
7836 | if test "$aix_use_runtimelinking" = yes; then | |
7837 | shared_flag='${wl}-G' | |
7838 | else | |
7839 | shared_flag='${wl}-bM:SRE' | |
7840 | fi | |
7841 | fi | |
7842 | fi | |
7843 | ||
7844 | # It seems that -bexpall does not export symbols beginning with | |
7845 | # underscore (_), so it is better to generate a list of symbols to export. | |
7846 | always_export_symbols=yes | |
7847 | if test "$aix_use_runtimelinking" = yes; then | |
7848 | # Warning - without using the other runtime loading flags (-brtl), | |
7849 | # -berok will link without error, but may produce a broken library. | |
7850 | allow_undefined_flag='-berok' | |
7851 | # Determine the default libpath from the value encoded in an | |
7852 | # empty executable. | |
7853 | cat >conftest.$ac_ext <<_ACEOF | |
7854 | /* confdefs.h. */ | |
7855 | _ACEOF | |
7856 | cat confdefs.h >>conftest.$ac_ext | |
7857 | cat >>conftest.$ac_ext <<_ACEOF | |
7858 | /* end confdefs.h. */ | |
7859 | ||
7860 | int | |
7861 | main () | |
7862 | { | |
7863 | ||
7864 | ; | |
7865 | return 0; | |
7866 | } | |
7867 | _ACEOF | |
7868 | rm -f conftest.$ac_objext conftest$ac_exeext | |
d7040cdb SE |
7869 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7870 | (eval $ac_link) 2>conftest.er1 | |
7871 | ac_status=$? | |
7872 | grep -v '^ *+' conftest.er1 >conftest.err | |
7873 | rm -f conftest.er1 | |
7874 | cat conftest.err >&5 | |
7875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7876 | (exit $ac_status); } && | |
7877 | { ac_try='test -z "$ac_c_werror_flag" | |
7878 | || test ! -s conftest.err' | |
7879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7880 | (eval $ac_try) 2>&5 | |
7881 | ac_status=$? | |
7882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7883 | (exit $ac_status); }; } && | |
7884 | { ac_try='test -s conftest$ac_exeext' | |
7885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7886 | (eval $ac_try) 2>&5 | |
7887 | ac_status=$? | |
7888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7889 | (exit $ac_status); }; }; then | |
d7040cdb | 7890 | |
ce2cded5 L |
7891 | lt_aix_libpath_sed=' |
7892 | /Import File Strings/,/^$/ { | |
7893 | /^0/ { | |
7894 | s/^0 *\(.*\)$/\1/ | |
7895 | p | |
7896 | } | |
7897 | }' | |
7898 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7899 | # Check for a 64-bit object if we didn't find anything. | |
7900 | if test -z "$aix_libpath"; then | |
7901 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7902 | fi | |
d7040cdb SE |
7903 | else |
7904 | echo "$as_me: failed program was:" >&5 | |
7905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7906 | ||
7907 | fi | |
7908 | rm -f conftest.err conftest.$ac_objext \ | |
7909 | conftest$ac_exeext conftest.$ac_ext | |
ce2cded5 | 7910 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
d7040cdb | 7911 | |
ce2cded5 L |
7912 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
7913 | 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" | |
7914 | else | |
7915 | if test "$host_cpu" = ia64; then | |
7916 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
7917 | allow_undefined_flag="-z nodefs" | |
7918 | 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" | |
7919 | else | |
7920 | # Determine the default libpath from the value encoded in an | |
7921 | # empty executable. | |
7922 | cat >conftest.$ac_ext <<_ACEOF | |
7923 | /* confdefs.h. */ | |
7924 | _ACEOF | |
7925 | cat confdefs.h >>conftest.$ac_ext | |
7926 | cat >>conftest.$ac_ext <<_ACEOF | |
7927 | /* end confdefs.h. */ | |
d7040cdb | 7928 | |
ce2cded5 L |
7929 | int |
7930 | main () | |
7931 | { | |
d7040cdb | 7932 | |
ce2cded5 L |
7933 | ; |
7934 | return 0; | |
7935 | } | |
7936 | _ACEOF | |
7937 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7938 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7939 | (eval $ac_link) 2>conftest.er1 | |
7940 | ac_status=$? | |
7941 | grep -v '^ *+' conftest.er1 >conftest.err | |
7942 | rm -f conftest.er1 | |
7943 | cat conftest.err >&5 | |
7944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7945 | (exit $ac_status); } && | |
7946 | { ac_try='test -z "$ac_c_werror_flag" | |
7947 | || test ! -s conftest.err' | |
7948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7949 | (eval $ac_try) 2>&5 | |
7950 | ac_status=$? | |
7951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7952 | (exit $ac_status); }; } && | |
7953 | { ac_try='test -s conftest$ac_exeext' | |
7954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7955 | (eval $ac_try) 2>&5 | |
7956 | ac_status=$? | |
7957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7958 | (exit $ac_status); }; }; then | |
d7040cdb | 7959 | |
ce2cded5 L |
7960 | lt_aix_libpath_sed=' |
7961 | /Import File Strings/,/^$/ { | |
7962 | /^0/ { | |
7963 | s/^0 *\(.*\)$/\1/ | |
7964 | p | |
7965 | } | |
7966 | }' | |
7967 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7968 | # Check for a 64-bit object if we didn't find anything. | |
7969 | if test -z "$aix_libpath"; then | |
7970 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7971 | fi | |
7972 | else | |
7973 | echo "$as_me: failed program was:" >&5 | |
7974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 7975 | |
ce2cded5 L |
7976 | fi |
7977 | rm -f conftest.err conftest.$ac_objext \ | |
7978 | conftest$ac_exeext conftest.$ac_ext | |
7979 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
d7040cdb | 7980 | |
ce2cded5 L |
7981 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
7982 | # Warning - without using the other run time loading flags, | |
7983 | # -berok will link without error, but may produce a broken library. | |
7984 | no_undefined_flag=' ${wl}-bernotok' | |
7985 | allow_undefined_flag=' ${wl}-berok' | |
7986 | # Exported symbols can be pulled into shared objects from archives | |
7987 | whole_archive_flag_spec='$convenience' | |
7988 | archive_cmds_need_lc=yes | |
7989 | # This is similar to how AIX traditionally builds its shared libraries. | |
7990 | 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' | |
7991 | fi | |
7992 | fi | |
7993 | ;; | |
d7040cdb | 7994 | |
ce2cded5 L |
7995 | amigaos*) |
7996 | if test "$host_cpu" = m68k; then | |
7997 | 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)' | |
7998 | hardcode_libdir_flag_spec='-L$libdir' | |
7999 | hardcode_minus_L=yes | |
8000 | fi | |
8001 | # see comment about different semantics on the GNU ld section | |
8002 | ld_shlibs=no | |
8003 | ;; | |
8004 | ||
8005 | bsdi[45]*) | |
8006 | export_dynamic_flag_spec=-rdynamic | |
8007 | ;; | |
8008 | ||
8009 | cygwin* | mingw* | pw32*) | |
8010 | # When not using gcc, we currently assume that we are using | |
8011 | # Microsoft Visual C++. | |
8012 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
8013 | # no search path for DLLs. | |
8014 | hardcode_libdir_flag_spec=' ' | |
8015 | allow_undefined_flag=unsupported | |
8016 | # Tell ltmain to make .lib files, not .a files. | |
8017 | libext=lib | |
8018 | # Tell ltmain to make .dll files, not .so files. | |
8019 | shrext_cmds=".dll" | |
8020 | # FIXME: Setting linknames here is a bad hack. | |
8021 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
8022 | # The linker will automatically build a .lib file if we build a DLL. | |
8023 | old_archive_from_new_cmds='true' | |
8024 | # FIXME: Should let the user specify the lib program. | |
8025 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
8026 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
8027 | enable_shared_with_static_runtimes=yes | |
8028 | ;; | |
8029 | ||
8030 | darwin* | rhapsody*) | |
8031 | case $host_os in | |
8032 | rhapsody* | darwin1.[012]) | |
8033 | allow_undefined_flag='${wl}-undefined ${wl}suppress' | |
d7040cdb | 8034 | ;; |
ce2cded5 L |
8035 | *) # Darwin 1.3 on |
8036 | case ${MACOSX_DEPLOYMENT_TARGET-10.0} in | |
8037 | 10.[012]) | |
8038 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
8039 | ;; | |
8040 | 10.*) | |
8041 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' | |
8042 | ;; | |
8043 | esac | |
d7040cdb SE |
8044 | ;; |
8045 | esac | |
ce2cded5 L |
8046 | archive_cmds_need_lc=no |
8047 | hardcode_direct=no | |
8048 | hardcode_automatic=yes | |
8049 | hardcode_shlibpath_var=unsupported | |
8050 | whole_archive_flag_spec='' | |
8051 | link_all_deplibs=yes | |
8052 | if test "$GCC" = yes ; then | |
8053 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
8054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8055 | else | |
8056 | lt_cv_apple_cc_single_mod=no | |
8057 | if test -z "${LT_MULTI_MODULE}"; then | |
8058 | # By default we will add the -single_module flag. You can override | |
8059 | # by either setting the environment variable LT_MULTI_MODULE | |
8060 | # non-empty at configure time, or by adding -multi-module to the | |
8061 | # link flags. | |
8062 | echo "int foo(void){return 1;}" > conftest.c | |
8063 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8064 | -dynamiclib ${wl}-single_module conftest.c | |
8065 | if test -f libconftest.dylib; then | |
8066 | lt_cv_apple_cc_single_mod=yes | |
8067 | rm libconftest.dylib | |
8068 | fi | |
8069 | rm conftest.$ac_ext | |
8070 | fi | |
8071 | fi | |
d7040cdb | 8072 | |
ce2cded5 L |
8073 | output_verbose_link_cmd=echo |
8074 | if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then | |
8075 | archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
8076 | archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8077 | else | |
8078 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
8079 | 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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8080 | fi | |
8081 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
8082 | module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8083 | else | |
8084 | case $cc_basename in | |
8085 | xlc*) | |
8086 | output_verbose_link_cmd=echo | |
8087 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring' | |
8088 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
8089 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
8090 | archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8091 | module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8092 | ;; | |
8093 | *) | |
8094 | ld_shlibs=no | |
8095 | ;; | |
8096 | esac | |
8097 | fi | |
8098 | ;; | |
d7040cdb | 8099 | |
ce2cded5 L |
8100 | dgux*) |
8101 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8102 | hardcode_libdir_flag_spec='-L$libdir' | |
8103 | hardcode_shlibpath_var=no | |
8104 | ;; | |
d7040cdb | 8105 | |
ce2cded5 L |
8106 | freebsd1*) |
8107 | ld_shlibs=no | |
8108 | ;; | |
d7040cdb | 8109 | |
ce2cded5 L |
8110 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
8111 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
8112 | # does not break anything, and helps significantly (at the cost of a little | |
8113 | # extra space). | |
8114 | freebsd2.2*) | |
8115 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
8116 | hardcode_libdir_flag_spec='-R$libdir' | |
8117 | hardcode_direct=yes | |
8118 | hardcode_shlibpath_var=no | |
d7040cdb | 8119 | ;; |
d7040cdb | 8120 | |
ce2cded5 L |
8121 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
8122 | freebsd2*) | |
8123 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8124 | hardcode_direct=yes | |
8125 | hardcode_minus_L=yes | |
8126 | hardcode_shlibpath_var=no | |
8127 | ;; | |
d7040cdb | 8128 | |
ce2cded5 L |
8129 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
8130 | freebsd* | dragonfly*) | |
8131 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
8132 | hardcode_libdir_flag_spec='-R$libdir' | |
8133 | hardcode_direct=yes | |
8134 | hardcode_shlibpath_var=no | |
8135 | ;; | |
d7040cdb | 8136 | |
ce2cded5 L |
8137 | hpux9*) |
8138 | if test "$GCC" = yes; then | |
8139 | 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' | |
8140 | else | |
8141 | 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' | |
8142 | fi | |
8143 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8144 | hardcode_libdir_separator=: | |
8145 | hardcode_direct=yes | |
d7040cdb | 8146 | |
ce2cded5 L |
8147 | # hardcode_minus_L: Not really in the search PATH, |
8148 | # but as the default location of the library. | |
8149 | hardcode_minus_L=yes | |
8150 | export_dynamic_flag_spec='${wl}-E' | |
8151 | ;; | |
d7040cdb | 8152 | |
ce2cded5 L |
8153 | hpux10*) |
8154 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8155 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8156 | else | |
8157 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
8158 | fi | |
8159 | if test "$with_gnu_ld" = no; then | |
8160 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8161 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
8162 | hardcode_libdir_separator=: | |
8163 | hardcode_direct=yes | |
8164 | hardcode_direct_absolute=yes | |
8165 | export_dynamic_flag_spec='${wl}-E' | |
8166 | # hardcode_minus_L: Not really in the search PATH, | |
8167 | # but as the default location of the library. | |
8168 | hardcode_minus_L=yes | |
8169 | fi | |
8170 | ;; | |
d7040cdb | 8171 | |
ce2cded5 L |
8172 | hpux11*) |
8173 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8174 | case $host_cpu in | |
8175 | hppa*64*) | |
8176 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8177 | ;; | |
8178 | ia64*) | |
8179 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8180 | ;; | |
8181 | *) | |
8182 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8183 | ;; | |
8184 | esac | |
8185 | else | |
8186 | case $host_cpu in | |
8187 | hppa*64*) | |
8188 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8189 | ;; | |
8190 | ia64*) | |
8191 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8192 | ;; | |
8193 | *) | |
8194 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8195 | ;; | |
8196 | esac | |
8197 | fi | |
8198 | if test "$with_gnu_ld" = no; then | |
8199 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8200 | hardcode_libdir_separator=: | |
d7040cdb | 8201 | |
ce2cded5 L |
8202 | case $host_cpu in |
8203 | hppa*64*|ia64*) | |
8204 | hardcode_direct=no | |
8205 | hardcode_shlibpath_var=no | |
8206 | ;; | |
8207 | *) | |
8208 | hardcode_direct=yes | |
8209 | hardcode_direct_absolute=yes | |
8210 | export_dynamic_flag_spec='${wl}-E' | |
d7040cdb | 8211 | |
ce2cded5 L |
8212 | # hardcode_minus_L: Not really in the search PATH, |
8213 | # but as the default location of the library. | |
8214 | hardcode_minus_L=yes | |
8215 | ;; | |
8216 | esac | |
8217 | fi | |
8218 | ;; | |
d7040cdb | 8219 | |
ce2cded5 L |
8220 | irix5* | irix6* | nonstopux*) |
8221 | if test "$GCC" = yes; then | |
8222 | 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' | |
8223 | # Try to use the -exported_symbol ld option, if it does not | |
8224 | # work, assume that -exports_file does not work either and | |
8225 | # implicitly export all symbols. | |
8226 | save_LDFLAGS="$LDFLAGS" | |
8227 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
8228 | cat >conftest.$ac_ext <<_ACEOF | |
8229 | int foo(void) {} | |
8230 | _ACEOF | |
8231 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8232 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8233 | (eval $ac_link) 2>conftest.er1 | |
8234 | ac_status=$? | |
8235 | grep -v '^ *+' conftest.er1 >conftest.err | |
8236 | rm -f conftest.er1 | |
8237 | cat conftest.err >&5 | |
8238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8239 | (exit $ac_status); } && | |
8240 | { ac_try='test -z "$ac_c_werror_flag" | |
8241 | || test ! -s conftest.err' | |
8242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8243 | (eval $ac_try) 2>&5 | |
8244 | ac_status=$? | |
8245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8246 | (exit $ac_status); }; } && | |
8247 | { ac_try='test -s conftest$ac_exeext' | |
8248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8249 | (eval $ac_try) 2>&5 | |
8250 | ac_status=$? | |
8251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8252 | (exit $ac_status); }; }; then | |
8253 | 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' | |
d7040cdb | 8254 | |
ce2cded5 L |
8255 | else |
8256 | echo "$as_me: failed program was:" >&5 | |
8257 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 8258 | |
ce2cded5 L |
8259 | fi |
8260 | rm -f conftest.err conftest.$ac_objext \ | |
8261 | conftest$ac_exeext conftest.$ac_ext | |
8262 | LDFLAGS="$save_LDFLAGS" | |
8263 | else | |
8264 | 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' | |
8265 | 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' | |
8266 | fi | |
8267 | archive_cmds_need_lc='no' | |
8268 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8269 | hardcode_libdir_separator=: | |
8270 | inherit_rpath=yes | |
8271 | link_all_deplibs=yes | |
8272 | ;; | |
d7040cdb | 8273 | |
ce2cded5 L |
8274 | netbsd*) |
8275 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8276 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
8277 | else | |
8278 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
8279 | fi | |
8280 | hardcode_libdir_flag_spec='-R$libdir' | |
8281 | hardcode_direct=yes | |
8282 | hardcode_shlibpath_var=no | |
8283 | ;; | |
d7040cdb | 8284 | |
ce2cded5 L |
8285 | newsos6) |
8286 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8287 | hardcode_direct=yes | |
8288 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8289 | hardcode_libdir_separator=: | |
8290 | hardcode_shlibpath_var=no | |
8291 | ;; | |
d7040cdb | 8292 | |
ce2cded5 L |
8293 | *nto* | *qnx*) |
8294 | ;; | |
d7040cdb | 8295 | |
ce2cded5 L |
8296 | openbsd*) |
8297 | hardcode_direct=yes | |
8298 | hardcode_shlibpath_var=no | |
8299 | hardcode_direct_absolute=yes | |
8300 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8301 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8302 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
8303 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8304 | export_dynamic_flag_spec='${wl}-E' | |
8305 | else | |
8306 | case $host_os in | |
8307 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
8308 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8309 | hardcode_libdir_flag_spec='-R$libdir' | |
8310 | ;; | |
8311 | *) | |
8312 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8313 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8314 | ;; | |
8315 | esac | |
8316 | fi | |
8317 | ;; | |
d7040cdb | 8318 | |
ce2cded5 L |
8319 | os2*) |
8320 | hardcode_libdir_flag_spec='-L$libdir' | |
8321 | hardcode_minus_L=yes | |
8322 | allow_undefined_flag=unsupported | |
8323 | 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' | |
8324 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
8325 | ;; | |
d7040cdb | 8326 | |
ce2cded5 L |
8327 | osf3*) |
8328 | if test "$GCC" = yes; then | |
8329 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8330 | 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' | |
8331 | else | |
8332 | allow_undefined_flag=' -expect_unresolved \*' | |
8333 | 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' | |
8334 | fi | |
8335 | archive_cmds_need_lc='no' | |
8336 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8337 | hardcode_libdir_separator=: | |
8338 | ;; | |
d7040cdb | 8339 | |
ce2cded5 L |
8340 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
8341 | if test "$GCC" = yes; then | |
8342 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8343 | 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' | |
8344 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8345 | else | |
8346 | allow_undefined_flag=' -expect_unresolved \*' | |
8347 | 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' | |
8348 | 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~ | |
8349 | $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' | |
d7040cdb | 8350 | |
ce2cded5 L |
8351 | # Both c and cxx compiler support -rpath directly |
8352 | hardcode_libdir_flag_spec='-rpath $libdir' | |
8353 | fi | |
8354 | archive_cmds_need_lc='no' | |
8355 | hardcode_libdir_separator=: | |
8356 | ;; | |
d7040cdb | 8357 | |
ce2cded5 L |
8358 | solaris*) |
8359 | no_undefined_flag=' -z defs' | |
8360 | if test "$GCC" = yes; then | |
8361 | wlarc='${wl}' | |
8362 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8363 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8364 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8365 | else | |
8366 | case `$CC -V 2>&1` in | |
8367 | *"Compilers 5.0"*) | |
8368 | wlarc='' | |
8369 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8370 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8371 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
8372 | ;; | |
8373 | *) | |
8374 | wlarc='${wl}' | |
8375 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8376 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8377 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8378 | ;; | |
8379 | esac | |
8380 | fi | |
8381 | hardcode_libdir_flag_spec='-R$libdir' | |
8382 | hardcode_shlibpath_var=no | |
8383 | case $host_os in | |
8384 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
8385 | *) | |
8386 | # The compiler driver will combine and reorder linker options, | |
8387 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
8388 | # but is careful enough not to reorder. | |
8389 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
8390 | if test "$GCC" = yes; then | |
8391 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
8392 | else | |
8393 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
8394 | fi | |
8395 | ;; | |
8396 | esac | |
8397 | link_all_deplibs=yes | |
8398 | ;; | |
d7040cdb | 8399 | |
ce2cded5 L |
8400 | sunos4*) |
8401 | if test "x$host_vendor" = xsequent; then | |
8402 | # Use $CC to link under sequent, because it throws in some extra .o | |
8403 | # files that make .init and .fini sections work. | |
8404 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8405 | else | |
8406 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
8407 | fi | |
8408 | hardcode_libdir_flag_spec='-L$libdir' | |
8409 | hardcode_direct=yes | |
8410 | hardcode_minus_L=yes | |
8411 | hardcode_shlibpath_var=no | |
8412 | ;; | |
d7040cdb | 8413 | |
ce2cded5 L |
8414 | sysv4) |
8415 | case $host_vendor in | |
8416 | sni) | |
8417 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8418 | hardcode_direct=yes # is this really true??? | |
8419 | ;; | |
8420 | siemens) | |
8421 | ## LD is ld it makes a PLAMLIB | |
8422 | ## CC just makes a GrossModule. | |
8423 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
8424 | reload_cmds='$CC -r -o $output$reload_objs' | |
8425 | hardcode_direct=no | |
8426 | ;; | |
8427 | motorola) | |
8428 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8429 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
8430 | ;; | |
8431 | esac | |
8432 | runpath_var='LD_RUN_PATH' | |
8433 | hardcode_shlibpath_var=no | |
8434 | ;; | |
d7040cdb | 8435 | |
ce2cded5 L |
8436 | sysv4.3*) |
8437 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8438 | hardcode_shlibpath_var=no | |
8439 | export_dynamic_flag_spec='-Bexport' | |
8440 | ;; | |
d7040cdb | 8441 | |
ce2cded5 L |
8442 | sysv4*MP*) |
8443 | if test -d /usr/nec; then | |
8444 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8445 | hardcode_shlibpath_var=no | |
8446 | runpath_var=LD_RUN_PATH | |
8447 | hardcode_runpath_var=yes | |
8448 | ld_shlibs=yes | |
8449 | fi | |
8450 | ;; | |
d7040cdb | 8451 | |
ce2cded5 L |
8452 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
8453 | no_undefined_flag='${wl}-z,text' | |
8454 | archive_cmds_need_lc=no | |
8455 | hardcode_shlibpath_var=no | |
8456 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 8457 | |
ce2cded5 L |
8458 | if test "$GCC" = yes; then |
8459 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8460 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8461 | else | |
8462 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8463 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8464 | fi | |
8465 | ;; | |
d7040cdb | 8466 | |
ce2cded5 L |
8467 | sysv5* | sco3.2v5* | sco5v6*) |
8468 | # Note: We can NOT use -z defs as we might desire, because we do not | |
8469 | # link with -lc, and that would cause any symbols used from libc to | |
8470 | # always be unresolved, which means just about no library would | |
8471 | # ever link correctly. If we're not using GNU ld we use -z text | |
8472 | # though, which does catch some bad symbols but isn't as heavy-handed | |
8473 | # as -z defs. | |
8474 | no_undefined_flag='${wl}-z,text' | |
8475 | allow_undefined_flag='${wl}-z,nodefs' | |
8476 | archive_cmds_need_lc=no | |
8477 | hardcode_shlibpath_var=no | |
8478 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
8479 | hardcode_libdir_separator=':' | |
8480 | link_all_deplibs=yes | |
8481 | export_dynamic_flag_spec='${wl}-Bexport' | |
8482 | runpath_var='LD_RUN_PATH' | |
d7040cdb | 8483 | |
ce2cded5 L |
8484 | if test "$GCC" = yes; then |
8485 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8486 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8487 | else | |
8488 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8489 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8490 | fi | |
8491 | ;; | |
d7040cdb | 8492 | |
ce2cded5 L |
8493 | uts4*) |
8494 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8495 | hardcode_libdir_flag_spec='-L$libdir' | |
8496 | hardcode_shlibpath_var=no | |
8497 | ;; | |
d7040cdb | 8498 | |
ce2cded5 L |
8499 | *) |
8500 | ld_shlibs=no | |
8501 | ;; | |
8502 | esac | |
d7040cdb | 8503 | |
ce2cded5 L |
8504 | if test x$host_vendor = xsni; then |
8505 | case $host in | |
8506 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
8507 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
8508 | ;; | |
8509 | esac | |
8510 | fi | |
8511 | fi | |
d7040cdb | 8512 | |
ce2cded5 L |
8513 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
8514 | echo "${ECHO_T}$ld_shlibs" >&6 | |
8515 | test "$ld_shlibs" = no && can_build_shared=no | |
d7040cdb | 8516 | |
ce2cded5 | 8517 | with_gnu_ld=$with_gnu_ld |
d7040cdb SE |
8518 | |
8519 | ||
8520 | ||
8521 | ||
8522 | ||
8523 | ||
8524 | ||
8525 | ||
8526 | ||
8527 | ||
8528 | ||
8529 | ||
8530 | ||
8531 | ||
8532 | ||
ce2cded5 L |
8533 | # |
8534 | # Do we need to explicitly link libc? | |
8535 | # | |
8536 | case "x$archive_cmds_need_lc" in | |
8537 | x|xyes) | |
8538 | # Assume -lc should be added | |
8539 | archive_cmds_need_lc=yes | |
d7040cdb | 8540 | |
ce2cded5 L |
8541 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
8542 | case $archive_cmds in | |
8543 | *'~'*) | |
8544 | # FIXME: we may have to deal with multi-command sequences. | |
8545 | ;; | |
8546 | '$CC '*) | |
8547 | # Test whether the compiler implicitly links with -lc since on some | |
8548 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
8549 | # to ld, don't add -lc before -lgcc. | |
8550 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
8551 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
8552 | $RM conftest* | |
8553 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 8554 | |
ce2cded5 L |
8555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8556 | (eval $ac_compile) 2>&5 | |
8557 | ac_status=$? | |
8558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8559 | (exit $ac_status); } 2>conftest.err; then | |
8560 | soname=conftest | |
8561 | lib=conftest | |
8562 | libobjs=conftest.$ac_objext | |
8563 | deplibs= | |
8564 | wl=$lt_prog_compiler_wl | |
8565 | pic_flag=$lt_prog_compiler_pic | |
8566 | compiler_flags=-v | |
8567 | linker_flags=-v | |
8568 | verstring= | |
8569 | output_objdir=. | |
8570 | libname=conftest | |
8571 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
8572 | allow_undefined_flag= | |
8573 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
8574 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
8575 | ac_status=$? | |
8576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8577 | (exit $ac_status); } | |
8578 | then | |
8579 | archive_cmds_need_lc=no | |
8580 | else | |
8581 | archive_cmds_need_lc=yes | |
8582 | fi | |
8583 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
8584 | else | |
8585 | cat conftest.err 1>&5 | |
8586 | fi | |
8587 | $RM conftest* | |
8588 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
8589 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 | |
8590 | ;; | |
8591 | esac | |
8592 | fi | |
8593 | ;; | |
8594 | esac | |
d7040cdb SE |
8595 | |
8596 | ||
8597 | ||
8598 | ||
8599 | ||
8600 | ||
8601 | ||
8602 | ||
8603 | ||
8604 | ||
8605 | ||
8606 | ||
8607 | ||
8608 | ||
8609 | ||
8610 | ||
8611 | ||
8612 | ||
8613 | ||
8614 | ||
8615 | ||
8616 | ||
8617 | ||
8618 | ||
8619 | ||
8620 | ||
8621 | ||
d7040cdb | 8622 | |
d7040cdb | 8623 | |
d7040cdb SE |
8624 | |
8625 | ||
8626 | ||
8627 | ||
8628 | ||
8629 | ||
d7040cdb | 8630 | |
d7040cdb | 8631 | |
d7040cdb | 8632 | |
d7040cdb | 8633 | |
d7040cdb | 8634 | |
d7040cdb | 8635 | |
d7040cdb | 8636 | |
d7040cdb | 8637 | |
d7040cdb | 8638 | |
d7040cdb | 8639 | |
d7040cdb | 8640 | |
d7040cdb | 8641 | |
d7040cdb | 8642 | |
d7040cdb | 8643 | |
d7040cdb | 8644 | |
d7040cdb | 8645 | |
d7040cdb | 8646 | |
d7040cdb | 8647 | |
d7040cdb | 8648 | |
d7040cdb | 8649 | |
d7040cdb | 8650 | |
d7040cdb | 8651 | |
d7040cdb | 8652 | |
d7040cdb | 8653 | |
d7040cdb | 8654 | |
d7040cdb | 8655 | |
d7040cdb | 8656 | |
d7040cdb | 8657 | |
ce2cded5 L |
8658 | |
8659 | ||
8660 | ||
8661 | ||
8662 | ||
8663 | ||
8664 | ||
8665 | ||
8666 | ||
8667 | ||
8668 | ||
8669 | ||
8670 | ||
8671 | ||
8672 | ||
8673 | ||
8674 | ||
8675 | ||
8676 | ||
8677 | ||
8678 | ||
8679 | ||
8680 | ||
8681 | ||
8682 | ||
8683 | ||
8684 | ||
8685 | ||
8686 | ||
8687 | ||
8688 | ||
8689 | ||
8690 | ||
8691 | ||
8692 | ||
8693 | ||
8694 | ||
8695 | ||
8696 | ||
8697 | ||
8698 | ||
8699 | ||
8700 | ||
8701 | ||
8702 | ||
8703 | ||
8704 | ||
8705 | ||
8706 | ||
8707 | ||
8708 | ||
8709 | ||
8710 | ||
8711 | ||
8712 | ||
8713 | ||
8714 | ||
8715 | ||
8716 | ||
8717 | ||
8718 | ||
8719 | ||
8720 | ||
8721 | ||
8722 | ||
8723 | ||
8724 | ||
8725 | ||
8726 | ||
8727 | ||
8728 | ||
8729 | ||
8730 | ||
8731 | ||
8732 | ||
8733 | ||
8734 | ||
8735 | ||
8736 | ||
8737 | ||
8738 | ||
8739 | ||
8740 | ||
8741 | ||
8742 | ||
8743 | ||
8744 | ||
8745 | ||
8746 | ||
8747 | ||
8748 | ||
8749 | ||
8750 | ||
8751 | ||
8752 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
8753 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
8754 | withGCC=$GCC | |
8755 | if test "$withGCC" = yes; then | |
8756 | case $host_os in | |
8757 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
8758 | *) lt_awk_arg="/^libraries:/" ;; | |
8759 | esac | |
8760 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8761 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
8762 | # if the path contains ";" then we assume it to be the separator | |
8763 | # otherwise default to the standard path separator (i.e. ":") - it is | |
8764 | # assumed that no part of a normal pathname contains ";" but that should | |
8765 | # okay in the real world where ";" in dirpaths is itself problematic. | |
8766 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
8767 | else | |
8768 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8769 | fi | |
8770 | # Ok, now we have the path, separated by spaces, we can step through it | |
8771 | # and add multilib dir if necessary. | |
8772 | lt_tmp_lt_search_path_spec= | |
8773 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
8774 | for lt_sys_path in $lt_search_path_spec; do | |
8775 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
8776 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
8777 | else | |
8778 | test -d "$lt_sys_path" && \ | |
8779 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
8780 | fi | |
8781 | done | |
8782 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
8783 | BEGIN {RS=" "; FS="/|\n";} { | |
8784 | lt_foo=""; | |
8785 | lt_count=0; | |
8786 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
8787 | if ($lt_i != "" && $lt_i != ".") { | |
8788 | if ($lt_i == "..") { | |
8789 | lt_count++; | |
8790 | } else { | |
8791 | if (lt_count == 0) { | |
8792 | lt_foo="/" $lt_i lt_foo; | |
8793 | } else { | |
8794 | lt_count--; | |
8795 | } | |
8796 | } | |
8797 | } | |
8798 | } | |
8799 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
8800 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
8801 | }'` | |
8802 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
d7040cdb | 8803 | else |
ce2cded5 L |
8804 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
8805 | fi | |
8806 | library_names_spec= | |
8807 | libname_spec='lib$name' | |
8808 | soname_spec= | |
8809 | shrext_cmds=".so" | |
8810 | postinstall_cmds= | |
8811 | postuninstall_cmds= | |
8812 | finish_cmds= | |
8813 | finish_eval= | |
8814 | shlibpath_var= | |
8815 | shlibpath_overrides_runpath=unknown | |
8816 | version_type=none | |
8817 | dynamic_linker="$host_os ld.so" | |
8818 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
8819 | need_lib_prefix=unknown | |
8820 | hardcode_into_libs=no | |
8821 | ||
8822 | # when you set need_version to no, make sure it does not cause -set_version | |
8823 | # flags to be left without arguments | |
8824 | need_version=unknown | |
8825 | ||
8826 | case $host_os in | |
8827 | aix3*) | |
8828 | version_type=linux | |
8829 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
8830 | shlibpath_var=LIBPATH | |
8831 | ||
8832 | # AIX 3 has no versioning support, so we append a major version to the name. | |
8833 | soname_spec='${libname}${release}${shared_ext}$major' | |
8834 | ;; | |
8835 | ||
50e7d84b | 8836 | aix[4-9]*) |
ce2cded5 L |
8837 | version_type=linux |
8838 | need_lib_prefix=no | |
8839 | need_version=no | |
8840 | hardcode_into_libs=yes | |
8841 | if test "$host_cpu" = ia64; then | |
8842 | # AIX 5 supports IA64 | |
8843 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
8844 | shlibpath_var=LD_LIBRARY_PATH | |
8845 | else | |
8846 | # With GCC up to 2.95.x, collect2 would create an import file | |
8847 | # for dependence libraries. The import file would start with | |
8848 | # the line `#! .'. This would cause the generated library to | |
8849 | # depend on `.', always an invalid library. This was fixed in | |
8850 | # development snapshots of GCC prior to 3.0. | |
8851 | case $host_os in | |
8852 | aix4 | aix4.[01] | aix4.[01].*) | |
8853 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
8854 | echo ' yes ' | |
8855 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
8856 | : | |
8857 | else | |
8858 | can_build_shared=no | |
8859 | fi | |
8860 | ;; | |
8861 | esac | |
8862 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
8863 | # soname into executable. Probably we can add versioning support to | |
8864 | # collect2, so additional links can be useful in future. | |
8865 | if test "$aix_use_runtimelinking" = yes; then | |
8866 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
8867 | # instead of lib<name>.a to let people know that these are not | |
8868 | # typical AIX shared libraries. | |
8869 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8870 | else | |
8871 | # We preserve .a as extension for shared libraries through AIX4.2 | |
8872 | # and later when we are not doing run time linking. | |
8873 | library_names_spec='${libname}${release}.a $libname.a' | |
8874 | soname_spec='${libname}${release}${shared_ext}$major' | |
8875 | fi | |
8876 | shlibpath_var=LIBPATH | |
8877 | fi | |
8878 | ;; | |
8879 | ||
8880 | amigaos*) | |
8881 | if test "$host_cpu" = m68k; then | |
8882 | library_names_spec='$libname.ixlibrary $libname.a' | |
8883 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
8884 | 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' | |
8885 | else | |
8886 | dynamic_linker=no | |
8887 | fi | |
8888 | ;; | |
8889 | ||
8890 | beos*) | |
8891 | library_names_spec='${libname}${shared_ext}' | |
8892 | dynamic_linker="$host_os ld.so" | |
8893 | shlibpath_var=LIBRARY_PATH | |
8894 | ;; | |
8895 | ||
8896 | bsdi[45]*) | |
8897 | version_type=linux | |
8898 | need_version=no | |
8899 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8900 | soname_spec='${libname}${release}${shared_ext}$major' | |
8901 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
8902 | shlibpath_var=LD_LIBRARY_PATH | |
8903 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
8904 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
8905 | # the default ld.so.conf also contains /usr/contrib/lib and | |
8906 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
8907 | # libtool to hard-code these into programs | |
8908 | ;; | |
8909 | ||
8910 | cygwin* | mingw* | pw32*) | |
8911 | version_type=windows | |
8912 | shrext_cmds=".dll" | |
8913 | need_version=no | |
8914 | need_lib_prefix=no | |
8915 | ||
8916 | case $withGCC,$host_os in | |
8917 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
8918 | library_names_spec='$libname.dll.a' | |
8919 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
8920 | postinstall_cmds='base_file=`basename \${file}`~ | |
8921 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
8922 | dldir=$destdir/`dirname \$dlpath`~ | |
8923 | test -d \$dldir || mkdir -p \$dldir~ | |
8924 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8925 | chmod a+x \$dldir/$dlname~ | |
8926 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
8927 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
8928 | fi' | |
8929 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
8930 | dlpath=$dir/\$dldll~ | |
8931 | $RM \$dlpath' | |
8932 | shlibpath_overrides_runpath=yes | |
8933 | ||
8934 | case $host_os in | |
8935 | cygwin*) | |
8936 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
8937 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8938 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
8939 | ;; | |
8940 | mingw*) | |
8941 | # MinGW DLLs use traditional 'lib' prefix | |
8942 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8943 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8944 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
8945 | # It is most probably a Windows format PATH printed by | |
8946 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
8947 | # path with ; separators, and with drive letters. We can handle the | |
8948 | # drive letters (cygwin fileutils understands them), so leave them, | |
8949 | # especially as we might pass files found there to a mingw objdump, | |
8950 | # which wouldn't understand a cygwinified path. Ahh. | |
8951 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
8952 | else | |
8953 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8954 | fi | |
8955 | ;; | |
8956 | pw32*) | |
8957 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
8958 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8959 | ;; | |
8960 | esac | |
8961 | ;; | |
8962 | ||
8963 | *) | |
8964 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
8965 | ;; | |
8966 | esac | |
8967 | dynamic_linker='Win32 ld.exe' | |
8968 | # FIXME: first we should search . and the directory the executable is in | |
8969 | shlibpath_var=PATH | |
8970 | ;; | |
8971 | ||
8972 | darwin* | rhapsody*) | |
8973 | dynamic_linker="$host_os dyld" | |
8974 | version_type=darwin | |
8975 | need_lib_prefix=no | |
8976 | need_version=no | |
8977 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
8978 | soname_spec='${libname}${release}${major}$shared_ext' | |
8979 | shlibpath_overrides_runpath=yes | |
8980 | shlibpath_var=DYLD_LIBRARY_PATH | |
8981 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
8982 | ||
8983 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
8984 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
8985 | ;; | |
8986 | ||
8987 | dgux*) | |
8988 | version_type=linux | |
8989 | need_lib_prefix=no | |
8990 | need_version=no | |
8991 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
8992 | soname_spec='${libname}${release}${shared_ext}$major' | |
8993 | shlibpath_var=LD_LIBRARY_PATH | |
8994 | ;; | |
8995 | ||
8996 | freebsd1*) | |
8997 | dynamic_linker=no | |
8998 | ;; | |
8999 | ||
9000 | freebsd* | dragonfly*) | |
9001 | # DragonFly does not have aout. When/if they implement a new | |
9002 | # versioning mechanism, adjust this. | |
9003 | if test -x /usr/bin/objformat; then | |
9004 | objformat=`/usr/bin/objformat` | |
9005 | else | |
9006 | case $host_os in | |
9007 | freebsd[123]*) objformat=aout ;; | |
9008 | *) objformat=elf ;; | |
9009 | esac | |
9010 | fi | |
9011 | version_type=freebsd-$objformat | |
9012 | case $version_type in | |
9013 | freebsd-elf*) | |
9014 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9015 | need_version=no | |
9016 | need_lib_prefix=no | |
9017 | ;; | |
9018 | freebsd-*) | |
9019 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
9020 | need_version=yes | |
9021 | ;; | |
9022 | esac | |
9023 | shlibpath_var=LD_LIBRARY_PATH | |
9024 | case $host_os in | |
9025 | freebsd2*) | |
9026 | shlibpath_overrides_runpath=yes | |
9027 | ;; | |
9028 | freebsd3.[01]* | freebsdelf3.[01]*) | |
9029 | shlibpath_overrides_runpath=yes | |
9030 | hardcode_into_libs=yes | |
9031 | ;; | |
9032 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
9033 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
9034 | shlibpath_overrides_runpath=no | |
9035 | hardcode_into_libs=yes | |
9036 | ;; | |
9037 | *) # from 4.6 on, and DragonFly | |
9038 | shlibpath_overrides_runpath=yes | |
9039 | hardcode_into_libs=yes | |
9040 | ;; | |
9041 | esac | |
9042 | ;; | |
9043 | ||
9044 | gnu*) | |
9045 | version_type=linux | |
9046 | need_lib_prefix=no | |
9047 | need_version=no | |
9048 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
9049 | soname_spec='${libname}${release}${shared_ext}$major' | |
9050 | shlibpath_var=LD_LIBRARY_PATH | |
9051 | hardcode_into_libs=yes | |
9052 | ;; | |
9053 | ||
9054 | hpux9* | hpux10* | hpux11*) | |
9055 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
9056 | # link against other versions. | |
9057 | version_type=sunos | |
9058 | need_lib_prefix=no | |
9059 | need_version=no | |
9060 | case $host_cpu in | |
9061 | ia64*) | |
9062 | shrext_cmds='.so' | |
9063 | hardcode_into_libs=yes | |
9064 | dynamic_linker="$host_os dld.so" | |
9065 | shlibpath_var=LD_LIBRARY_PATH | |
9066 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9067 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9068 | soname_spec='${libname}${release}${shared_ext}$major' | |
9069 | if test "X$HPUX_IA64_MODE" = X32; then | |
9070 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
9071 | else | |
9072 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
9073 | fi | |
9074 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9075 | ;; | |
9076 | hppa*64*) | |
9077 | shrext_cmds='.sl' | |
9078 | hardcode_into_libs=yes | |
9079 | dynamic_linker="$host_os dld.sl" | |
9080 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
9081 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9082 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9083 | soname_spec='${libname}${release}${shared_ext}$major' | |
9084 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
9085 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9086 | ;; | |
9087 | *) | |
9088 | shrext_cmds='.sl' | |
9089 | dynamic_linker="$host_os dld.sl" | |
9090 | shlibpath_var=SHLIB_PATH | |
9091 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
9092 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9093 | soname_spec='${libname}${release}${shared_ext}$major' | |
9094 | ;; | |
9095 | esac | |
9096 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
9097 | postinstall_cmds='chmod 555 $lib' | |
9098 | ;; | |
9099 | ||
9100 | interix[3-9]*) | |
9101 | version_type=linux | |
9102 | need_lib_prefix=no | |
9103 | need_version=no | |
9104 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9105 | soname_spec='${libname}${release}${shared_ext}$major' | |
9106 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
9107 | shlibpath_var=LD_LIBRARY_PATH | |
9108 | shlibpath_overrides_runpath=no | |
9109 | hardcode_into_libs=yes | |
9110 | ;; | |
9111 | ||
9112 | irix5* | irix6* | nonstopux*) | |
9113 | case $host_os in | |
9114 | nonstopux*) version_type=nonstopux ;; | |
9115 | *) | |
9116 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
9117 | version_type=linux | |
9118 | else | |
9119 | version_type=irix | |
9120 | fi ;; | |
9121 | esac | |
9122 | need_lib_prefix=no | |
9123 | need_version=no | |
9124 | soname_spec='${libname}${release}${shared_ext}$major' | |
9125 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9126 | case $host_os in | |
9127 | irix5* | nonstopux*) | |
9128 | libsuff= shlibsuff= | |
9129 | ;; | |
9130 | *) | |
9131 | case $LD in # libtool.m4 will add one of these switches to LD | |
9132 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
9133 | libsuff= shlibsuff= libmagic=32-bit;; | |
9134 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
9135 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
9136 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
9137 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
9138 | *) libsuff= shlibsuff= libmagic=never-match;; | |
9139 | esac | |
9140 | ;; | |
9141 | esac | |
9142 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
9143 | shlibpath_overrides_runpath=no | |
9144 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
9145 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
9146 | hardcode_into_libs=yes | |
9147 | ;; | |
9148 | ||
9149 | # No shared lib support for Linux oldld, aout, or coff. | |
9150 | linux*oldld* | linux*aout* | linux*coff*) | |
9151 | dynamic_linker=no | |
9152 | ;; | |
9153 | ||
9154 | # This must be Linux ELF. | |
9155 | linux* | k*bsd*-gnu) | |
9156 | version_type=linux | |
9157 | need_lib_prefix=no | |
9158 | need_version=no | |
9159 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9160 | soname_spec='${libname}${release}${shared_ext}$major' | |
9161 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
9162 | shlibpath_var=LD_LIBRARY_PATH | |
9163 | shlibpath_overrides_runpath=no | |
9164 | # Some binutils ld are patched to set DT_RUNPATH | |
9165 | save_LDFLAGS=$LDFLAGS | |
9166 | save_libdir=$libdir | |
9167 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
9168 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
9169 | cat >conftest.$ac_ext <<_ACEOF | |
d7040cdb SE |
9170 | /* confdefs.h. */ |
9171 | _ACEOF | |
9172 | cat confdefs.h >>conftest.$ac_ext | |
9173 | cat >>conftest.$ac_ext <<_ACEOF | |
9174 | /* end confdefs.h. */ | |
9175 | ||
d7040cdb SE |
9176 | int |
9177 | main () | |
9178 | { | |
ce2cded5 | 9179 | |
d7040cdb SE |
9180 | ; |
9181 | return 0; | |
9182 | } | |
9183 | _ACEOF | |
9184 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9185 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9186 | (eval $ac_link) 2>conftest.er1 | |
9187 | ac_status=$? | |
9188 | grep -v '^ *+' conftest.er1 >conftest.err | |
9189 | rm -f conftest.er1 | |
9190 | cat conftest.err >&5 | |
9191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9192 | (exit $ac_status); } && | |
9193 | { ac_try='test -z "$ac_c_werror_flag" | |
9194 | || test ! -s conftest.err' | |
9195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9196 | (eval $ac_try) 2>&5 | |
9197 | ac_status=$? | |
9198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ce2cded5 L |
9199 | (exit $ac_status); }; } && |
9200 | { ac_try='test -s conftest$ac_exeext' | |
9201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9202 | (eval $ac_try) 2>&5 | |
9203 | ac_status=$? | |
9204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9205 | (exit $ac_status); }; }; then | |
9206 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then | |
9207 | shlibpath_overrides_runpath=yes | |
d7040cdb | 9208 | fi |
d7040cdb | 9209 | |
ce2cded5 L |
9210 | else |
9211 | echo "$as_me: failed program was:" >&5 | |
9212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb SE |
9213 | |
9214 | fi | |
ce2cded5 L |
9215 | rm -f conftest.err conftest.$ac_objext \ |
9216 | conftest$ac_exeext conftest.$ac_ext | |
9217 | LDFLAGS=$save_LDFLAGS | |
9218 | libdir=$save_libdir | |
d7040cdb | 9219 | |
ce2cded5 L |
9220 | # This implies no fast_install, which is unacceptable. |
9221 | # Some rework will be needed to allow for fast_install | |
9222 | # before this can be enabled. | |
9223 | hardcode_into_libs=yes | |
d7040cdb | 9224 | |
ce2cded5 L |
9225 | # Append ld.so.conf contents to the search path |
9226 | if test -f /etc/ld.so.conf; then | |
9227 | 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
9228 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
9229 | fi | |
d7040cdb | 9230 | |
ce2cded5 L |
9231 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
9232 | # powerpc, because MkLinux only supported shared libraries with the | |
9233 | # GNU dynamic linker. Since this was broken with cross compilers, | |
9234 | # most powerpc-linux boxes support dynamic linking these days and | |
9235 | # people can always --disable-shared, the test was removed, and we | |
9236 | # assume the GNU/Linux dynamic linker is in use. | |
9237 | dynamic_linker='GNU/Linux ld.so' | |
9238 | ;; | |
d7040cdb | 9239 | |
ce2cded5 L |
9240 | netbsd*) |
9241 | version_type=sunos | |
9242 | need_lib_prefix=no | |
9243 | need_version=no | |
9244 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9245 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9246 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9247 | dynamic_linker='NetBSD (a.out) ld.so' | |
9248 | else | |
9249 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9250 | soname_spec='${libname}${release}${shared_ext}$major' | |
9251 | dynamic_linker='NetBSD ld.elf_so' | |
9252 | fi | |
9253 | shlibpath_var=LD_LIBRARY_PATH | |
9254 | shlibpath_overrides_runpath=yes | |
9255 | hardcode_into_libs=yes | |
9256 | ;; | |
d7040cdb | 9257 | |
ce2cded5 L |
9258 | newsos6) |
9259 | version_type=linux | |
9260 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9261 | shlibpath_var=LD_LIBRARY_PATH | |
9262 | shlibpath_overrides_runpath=yes | |
9263 | ;; | |
d7040cdb | 9264 | |
ce2cded5 L |
9265 | *nto* | *qnx*) |
9266 | version_type=qnx | |
9267 | need_lib_prefix=no | |
9268 | need_version=no | |
9269 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9270 | soname_spec='${libname}${release}${shared_ext}$major' | |
9271 | shlibpath_var=LD_LIBRARY_PATH | |
9272 | shlibpath_overrides_runpath=no | |
9273 | hardcode_into_libs=yes | |
9274 | dynamic_linker='ldqnx.so' | |
9275 | ;; | |
d7040cdb | 9276 | |
ce2cded5 L |
9277 | openbsd*) |
9278 | version_type=sunos | |
9279 | sys_lib_dlsearch_path_spec="/usr/lib" | |
9280 | need_lib_prefix=no | |
9281 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
9282 | case $host_os in | |
9283 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
9284 | *) need_version=no ;; | |
9285 | esac | |
9286 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9287 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9288 | shlibpath_var=LD_LIBRARY_PATH | |
9289 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9290 | case $host_os in | |
9291 | openbsd2.[89] | openbsd2.[89].*) | |
9292 | shlibpath_overrides_runpath=no | |
9293 | ;; | |
9294 | *) | |
9295 | shlibpath_overrides_runpath=yes | |
9296 | ;; | |
9297 | esac | |
9298 | else | |
9299 | shlibpath_overrides_runpath=yes | |
9300 | fi | |
9301 | ;; | |
d7040cdb | 9302 | |
ce2cded5 L |
9303 | os2*) |
9304 | libname_spec='$name' | |
9305 | shrext_cmds=".dll" | |
9306 | need_lib_prefix=no | |
9307 | library_names_spec='$libname${shared_ext} $libname.a' | |
9308 | dynamic_linker='OS/2 ld.exe' | |
9309 | shlibpath_var=LIBPATH | |
9310 | ;; | |
d7040cdb | 9311 | |
ce2cded5 L |
9312 | osf3* | osf4* | osf5*) |
9313 | version_type=osf | |
9314 | need_lib_prefix=no | |
9315 | need_version=no | |
9316 | soname_spec='${libname}${release}${shared_ext}$major' | |
9317 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9318 | shlibpath_var=LD_LIBRARY_PATH | |
9319 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9320 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
9321 | ;; | |
d7040cdb | 9322 | |
ce2cded5 L |
9323 | rdos*) |
9324 | dynamic_linker=no | |
9325 | ;; | |
d7040cdb | 9326 | |
ce2cded5 L |
9327 | solaris*) |
9328 | version_type=linux | |
9329 | need_lib_prefix=no | |
9330 | need_version=no | |
9331 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9332 | soname_spec='${libname}${release}${shared_ext}$major' | |
9333 | shlibpath_var=LD_LIBRARY_PATH | |
9334 | shlibpath_overrides_runpath=yes | |
9335 | hardcode_into_libs=yes | |
9336 | # ldd complains unless libraries are executable | |
9337 | postinstall_cmds='chmod +x $lib' | |
9338 | ;; | |
d7040cdb | 9339 | |
ce2cded5 L |
9340 | sunos4*) |
9341 | version_type=sunos | |
9342 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9343 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
9344 | shlibpath_var=LD_LIBRARY_PATH | |
9345 | shlibpath_overrides_runpath=yes | |
9346 | if test "$with_gnu_ld" = yes; then | |
9347 | need_lib_prefix=no | |
9348 | fi | |
9349 | need_version=yes | |
9350 | ;; | |
d7040cdb | 9351 | |
ce2cded5 L |
9352 | sysv4 | sysv4.3*) |
9353 | version_type=linux | |
9354 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9355 | soname_spec='${libname}${release}${shared_ext}$major' | |
9356 | shlibpath_var=LD_LIBRARY_PATH | |
9357 | case $host_vendor in | |
9358 | sni) | |
9359 | shlibpath_overrides_runpath=no | |
9360 | need_lib_prefix=no | |
9361 | runpath_var=LD_RUN_PATH | |
9362 | ;; | |
9363 | siemens) | |
9364 | need_lib_prefix=no | |
9365 | ;; | |
9366 | motorola) | |
9367 | need_lib_prefix=no | |
9368 | need_version=no | |
9369 | shlibpath_overrides_runpath=no | |
9370 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
9371 | ;; | |
9372 | esac | |
9373 | ;; | |
d7040cdb | 9374 | |
ce2cded5 L |
9375 | sysv4*MP*) |
9376 | if test -d /usr/nec ;then | |
9377 | version_type=linux | |
9378 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
9379 | soname_spec='$libname${shared_ext}.$major' | |
9380 | shlibpath_var=LD_LIBRARY_PATH | |
9381 | fi | |
9382 | ;; | |
d7040cdb | 9383 | |
ce2cded5 L |
9384 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
9385 | version_type=freebsd-elf | |
9386 | need_lib_prefix=no | |
9387 | need_version=no | |
9388 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9389 | soname_spec='${libname}${release}${shared_ext}$major' | |
9390 | shlibpath_var=LD_LIBRARY_PATH | |
9391 | shlibpath_overrides_runpath=yes | |
9392 | hardcode_into_libs=yes | |
9393 | if test "$with_gnu_ld" = yes; then | |
9394 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
9395 | else | |
9396 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
9397 | case $host_os in | |
9398 | sco3.2v5*) | |
9399 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
9400 | ;; | |
9401 | esac | |
9402 | fi | |
9403 | sys_lib_dlsearch_path_spec='/usr/lib' | |
9404 | ;; | |
d7040cdb | 9405 | |
ce2cded5 L |
9406 | tpf*) |
9407 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
9408 | version_type=linux | |
9409 | need_lib_prefix=no | |
9410 | need_version=no | |
9411 | library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9412 | shlibpath_var=LD_LIBRARY_PATH | |
9413 | shlibpath_overrides_runpath=no | |
9414 | hardcode_into_libs=yes | |
9415 | ;; | |
d7040cdb | 9416 | |
ce2cded5 L |
9417 | uts4*) |
9418 | version_type=linux | |
9419 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9420 | soname_spec='${libname}${release}${shared_ext}$major' | |
9421 | shlibpath_var=LD_LIBRARY_PATH | |
9422 | ;; | |
d7040cdb | 9423 | |
ce2cded5 L |
9424 | *) |
9425 | dynamic_linker=no | |
9426 | ;; | |
9427 | esac | |
9428 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
9429 | echo "${ECHO_T}$dynamic_linker" >&6 | |
9430 | test "$dynamic_linker" = no && can_build_shared=no | |
9431 | ||
9432 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
9433 | if test "$GCC" = yes; then | |
9434 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
d7040cdb SE |
9435 | fi |
9436 | ||
9437 | ||
9438 | ||
9439 | ||
9440 | ||
9441 | ||
9442 | ||
9443 | ||
9444 | ||
9445 | ||
9446 | ||
9447 | ||
d7040cdb | 9448 | |
d7040cdb | 9449 | |
d7040cdb | 9450 | |
d7040cdb | 9451 | |
d7040cdb SE |
9452 | |
9453 | ||
9454 | ||
9455 | ||
d7040cdb | 9456 | |
d7040cdb SE |
9457 | |
9458 | ||
9459 | ||
9460 | ||
9461 | ||
9462 | ||
9463 | ||
9464 | ||
9465 | ||
9466 | ||
9467 | ||
9468 | ||
9469 | ||
d7040cdb SE |
9470 | |
9471 | ||
9472 | ||
9473 | ||
d7040cdb SE |
9474 | |
9475 | ||
9476 | ||
9477 | ||
d7040cdb | 9478 | |
d7040cdb | 9479 | |
d7040cdb | 9480 | |
d7040cdb | 9481 | |
d7040cdb | 9482 | |
d7040cdb | 9483 | |
d7040cdb | 9484 | |
d7040cdb SE |
9485 | |
9486 | ||
9487 | ||
9488 | ||
9489 | ||
d7040cdb | 9490 | |
d7040cdb | 9491 | |
d7040cdb | 9492 | |
d7040cdb | 9493 | |
d7040cdb | 9494 | |
d7040cdb | 9495 | |
d7040cdb SE |
9496 | |
9497 | ||
9498 | ||
9499 | ||
9500 | ||
d7040cdb SE |
9501 | |
9502 | ||
d7040cdb | 9503 | |
d7040cdb | 9504 | |
d7040cdb | 9505 | |
d7040cdb | 9506 | |
ce2cded5 L |
9507 | |
9508 | ||
9509 | ||
9510 | ||
9511 | ||
9512 | ||
9513 | ||
9514 | ||
9515 | ||
9516 | ||
9517 | ||
9518 | ||
9519 | ||
9520 | ||
9521 | ||
9522 | ||
9523 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
9524 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
9525 | hardcode_action= | |
9526 | if test -n "$hardcode_libdir_flag_spec" || | |
9527 | test -n "$runpath_var" || | |
9528 | test "X$hardcode_automatic" = "Xyes" ; then | |
9529 | ||
9530 | # We can hardcode non-existent directories. | |
9531 | if test "$hardcode_direct" != no && | |
9532 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
9533 | # have to relink, otherwise we might link with an installed library | |
9534 | # when we should be linking with a yet-to-be-installed one | |
9535 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
9536 | test "$hardcode_minus_L" != no; then | |
9537 | # Linking always hardcodes the temporary library directory. | |
9538 | hardcode_action=relink | |
9539 | else | |
9540 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
9541 | hardcode_action=immediate | |
d7040cdb | 9542 | fi |
d7040cdb | 9543 | else |
ce2cded5 L |
9544 | # We cannot hardcode anything, or else we can only hardcode existing |
9545 | # directories. | |
9546 | hardcode_action=unsupported | |
d7040cdb | 9547 | fi |
ce2cded5 L |
9548 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
9549 | echo "${ECHO_T}$hardcode_action" >&6 | |
d7040cdb | 9550 | |
ce2cded5 L |
9551 | if test "$hardcode_action" = relink || |
9552 | test "$inherit_rpath" = yes; then | |
9553 | # Fast installation is not supported | |
9554 | enable_fast_install=no | |
9555 | elif test "$shlibpath_overrides_runpath" = yes || | |
9556 | test "$enable_shared" = no; then | |
9557 | # Fast installation is not necessary | |
9558 | enable_fast_install=needless | |
d7040cdb SE |
9559 | fi |
9560 | ||
d7040cdb | 9561 | |
d7040cdb | 9562 | |
d7040cdb | 9563 | |
d7040cdb | 9564 | |
d7040cdb | 9565 | |
ce2cded5 L |
9566 | if test "x$enable_dlopen" != xyes; then |
9567 | enable_dlopen=unknown | |
9568 | enable_dlopen_self=unknown | |
9569 | enable_dlopen_self_static=unknown | |
d7040cdb | 9570 | else |
ce2cded5 L |
9571 | lt_cv_dlopen=no |
9572 | lt_cv_dlopen_libs= | |
d7040cdb | 9573 | |
ce2cded5 L |
9574 | case $host_os in |
9575 | beos*) | |
9576 | lt_cv_dlopen="load_add_on" | |
9577 | lt_cv_dlopen_libs= | |
9578 | lt_cv_dlopen_self=yes | |
9579 | ;; | |
d7040cdb | 9580 | |
ce2cded5 L |
9581 | mingw* | pw32*) |
9582 | lt_cv_dlopen="LoadLibrary" | |
9583 | lt_cv_dlopen_libs= | |
9584 | ;; | |
9585 | ||
9586 | cygwin*) | |
9587 | lt_cv_dlopen="dlopen" | |
9588 | lt_cv_dlopen_libs= | |
9589 | ;; | |
9590 | ||
9591 | darwin*) | |
9592 | # if libdl is installed we need to link against it | |
9593 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
9594 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
9595 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
d7040cdb SE |
9596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9597 | else | |
ce2cded5 L |
9598 | ac_check_lib_save_LIBS=$LIBS |
9599 | LIBS="-ldl $LIBS" | |
9600 | cat >conftest.$ac_ext <<_ACEOF | |
9601 | /* confdefs.h. */ | |
9602 | _ACEOF | |
9603 | cat confdefs.h >>conftest.$ac_ext | |
9604 | cat >>conftest.$ac_ext <<_ACEOF | |
9605 | /* end confdefs.h. */ | |
9606 | ||
9607 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9608 | #ifdef __cplusplus | |
9609 | extern "C" | |
9610 | #endif | |
9611 | /* We use char because int might match the return type of a gcc2 | |
9612 | builtin and then its argument prototype would still apply. */ | |
9613 | char dlopen (); | |
9614 | int | |
9615 | main () | |
9616 | { | |
9617 | dlopen (); | |
9618 | ; | |
9619 | return 0; | |
9620 | } | |
9621 | _ACEOF | |
9622 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9623 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9624 | (eval $ac_link) 2>conftest.er1 | |
9625 | ac_status=$? | |
9626 | grep -v '^ *+' conftest.er1 >conftest.err | |
9627 | rm -f conftest.er1 | |
9628 | cat conftest.err >&5 | |
9629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9630 | (exit $ac_status); } && | |
9631 | { ac_try='test -z "$ac_c_werror_flag" | |
9632 | || test ! -s conftest.err' | |
9633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9634 | (eval $ac_try) 2>&5 | |
9635 | ac_status=$? | |
9636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9637 | (exit $ac_status); }; } && | |
9638 | { ac_try='test -s conftest$ac_exeext' | |
9639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9640 | (eval $ac_try) 2>&5 | |
9641 | ac_status=$? | |
9642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9643 | (exit $ac_status); }; }; then | |
9644 | ac_cv_lib_dl_dlopen=yes | |
9645 | else | |
9646 | echo "$as_me: failed program was:" >&5 | |
9647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 9648 | |
ce2cded5 | 9649 | ac_cv_lib_dl_dlopen=no |
d7040cdb | 9650 | fi |
ce2cded5 L |
9651 | rm -f conftest.err conftest.$ac_objext \ |
9652 | conftest$ac_exeext conftest.$ac_ext | |
9653 | LIBS=$ac_check_lib_save_LIBS | |
d7040cdb | 9654 | fi |
ce2cded5 L |
9655 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9656 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
9657 | if test $ac_cv_lib_dl_dlopen = yes; then | |
9658 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
d7040cdb | 9659 | else |
d7040cdb | 9660 | |
ce2cded5 L |
9661 | lt_cv_dlopen="dyld" |
9662 | lt_cv_dlopen_libs= | |
9663 | lt_cv_dlopen_self=yes | |
9664 | ||
d7040cdb | 9665 | fi |
ce2cded5 L |
9666 | |
9667 | ;; | |
9668 | ||
9669 | *) | |
9670 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
9671 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
9672 | if test "${ac_cv_func_shl_load+set}" = set; then | |
d7040cdb SE |
9673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9674 | else | |
ce2cded5 L |
9675 | cat >conftest.$ac_ext <<_ACEOF |
9676 | /* confdefs.h. */ | |
9677 | _ACEOF | |
9678 | cat confdefs.h >>conftest.$ac_ext | |
9679 | cat >>conftest.$ac_ext <<_ACEOF | |
9680 | /* end confdefs.h. */ | |
9681 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
9682 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9683 | #define shl_load innocuous_shl_load | |
d7040cdb | 9684 | |
ce2cded5 L |
9685 | /* System header to define __stub macros and hopefully few prototypes, |
9686 | which can conflict with char shl_load (); below. | |
9687 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9688 | <limits.h> exists even on freestanding compilers. */ | |
d7040cdb | 9689 | |
ce2cded5 L |
9690 | #ifdef __STDC__ |
9691 | # include <limits.h> | |
9692 | #else | |
9693 | # include <assert.h> | |
9694 | #endif | |
d7040cdb | 9695 | |
ce2cded5 | 9696 | #undef shl_load |
d7040cdb | 9697 | |
ce2cded5 L |
9698 | /* Override any gcc2 internal prototype to avoid an error. */ |
9699 | #ifdef __cplusplus | |
9700 | extern "C" | |
9701 | { | |
9702 | #endif | |
9703 | /* We use char because int might match the return type of a gcc2 | |
9704 | builtin and then its argument prototype would still apply. */ | |
9705 | char shl_load (); | |
9706 | /* The GNU C library defines this for functions which it implements | |
9707 | to always fail with ENOSYS. Some functions are actually named | |
9708 | something starting with __ and the normal name is an alias. */ | |
9709 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
9710 | choke me | |
9711 | #else | |
9712 | char (*f) () = shl_load; | |
9713 | #endif | |
9714 | #ifdef __cplusplus | |
9715 | } | |
9716 | #endif | |
d7040cdb | 9717 | |
ce2cded5 L |
9718 | int |
9719 | main () | |
9720 | { | |
9721 | return f != shl_load; | |
9722 | ; | |
9723 | return 0; | |
9724 | } | |
9725 | _ACEOF | |
9726 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9727 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9728 | (eval $ac_link) 2>conftest.er1 | |
9729 | ac_status=$? | |
9730 | grep -v '^ *+' conftest.er1 >conftest.err | |
9731 | rm -f conftest.er1 | |
9732 | cat conftest.err >&5 | |
9733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9734 | (exit $ac_status); } && | |
9735 | { ac_try='test -z "$ac_c_werror_flag" | |
9736 | || test ! -s conftest.err' | |
9737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9738 | (eval $ac_try) 2>&5 | |
9739 | ac_status=$? | |
9740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9741 | (exit $ac_status); }; } && | |
9742 | { ac_try='test -s conftest$ac_exeext' | |
9743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9744 | (eval $ac_try) 2>&5 | |
9745 | ac_status=$? | |
9746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9747 | (exit $ac_status); }; }; then | |
9748 | ac_cv_func_shl_load=yes | |
9749 | else | |
9750 | echo "$as_me: failed program was:" >&5 | |
9751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 9752 | |
ce2cded5 L |
9753 | ac_cv_func_shl_load=no |
9754 | fi | |
9755 | rm -f conftest.err conftest.$ac_objext \ | |
9756 | conftest$ac_exeext conftest.$ac_ext | |
9757 | fi | |
9758 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
9759 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
9760 | if test $ac_cv_func_shl_load = yes; then | |
9761 | lt_cv_dlopen="shl_load" | |
9762 | else | |
9763 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
9764 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
9765 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
9766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9767 | else | |
9768 | ac_check_lib_save_LIBS=$LIBS | |
9769 | LIBS="-ldld $LIBS" | |
9770 | cat >conftest.$ac_ext <<_ACEOF | |
9771 | /* confdefs.h. */ | |
9772 | _ACEOF | |
9773 | cat confdefs.h >>conftest.$ac_ext | |
9774 | cat >>conftest.$ac_ext <<_ACEOF | |
9775 | /* end confdefs.h. */ | |
d7040cdb | 9776 | |
ce2cded5 L |
9777 | /* Override any gcc2 internal prototype to avoid an error. */ |
9778 | #ifdef __cplusplus | |
9779 | extern "C" | |
9780 | #endif | |
9781 | /* We use char because int might match the return type of a gcc2 | |
9782 | builtin and then its argument prototype would still apply. */ | |
9783 | char shl_load (); | |
9784 | int | |
9785 | main () | |
9786 | { | |
9787 | shl_load (); | |
9788 | ; | |
9789 | return 0; | |
9790 | } | |
9791 | _ACEOF | |
9792 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9793 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9794 | (eval $ac_link) 2>conftest.er1 | |
d7040cdb | 9795 | ac_status=$? |
ce2cded5 L |
9796 | grep -v '^ *+' conftest.er1 >conftest.err |
9797 | rm -f conftest.er1 | |
9798 | cat conftest.err >&5 | |
d7040cdb | 9799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ce2cded5 L |
9800 | (exit $ac_status); } && |
9801 | { ac_try='test -z "$ac_c_werror_flag" | |
9802 | || test ! -s conftest.err' | |
9803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9804 | (eval $ac_try) 2>&5 | |
d7040cdb SE |
9805 | ac_status=$? |
9806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ce2cded5 L |
9807 | (exit $ac_status); }; } && |
9808 | { ac_try='test -s conftest$ac_exeext' | |
9809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9810 | (eval $ac_try) 2>&5 | |
d7040cdb SE |
9811 | ac_status=$? |
9812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ce2cded5 L |
9813 | (exit $ac_status); }; }; then |
9814 | ac_cv_lib_dld_shl_load=yes | |
9815 | else | |
9816 | echo "$as_me: failed program was:" >&5 | |
9817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 9818 | |
ce2cded5 L |
9819 | ac_cv_lib_dld_shl_load=no |
9820 | fi | |
9821 | rm -f conftest.err conftest.$ac_objext \ | |
9822 | conftest$ac_exeext conftest.$ac_ext | |
9823 | LIBS=$ac_check_lib_save_LIBS | |
9824 | fi | |
9825 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
9826 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
9827 | if test $ac_cv_lib_dld_shl_load = yes; then | |
9828 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
9829 | else | |
9830 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
9831 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
9832 | if test "${ac_cv_func_dlopen+set}" = set; then | |
d7040cdb SE |
9833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9834 | else | |
9835 | cat >conftest.$ac_ext <<_ACEOF | |
9836 | /* confdefs.h. */ | |
9837 | _ACEOF | |
9838 | cat confdefs.h >>conftest.$ac_ext | |
9839 | cat >>conftest.$ac_ext <<_ACEOF | |
9840 | /* end confdefs.h. */ | |
ce2cded5 L |
9841 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
9842 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9843 | #define dlopen innocuous_dlopen | |
9844 | ||
9845 | /* System header to define __stub macros and hopefully few prototypes, | |
9846 | which can conflict with char dlopen (); below. | |
9847 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9848 | <limits.h> exists even on freestanding compilers. */ | |
9849 | ||
9850 | #ifdef __STDC__ | |
9851 | # include <limits.h> | |
9852 | #else | |
9853 | # include <assert.h> | |
9854 | #endif | |
9855 | ||
9856 | #undef dlopen | |
9857 | ||
9858 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9859 | #ifdef __cplusplus | |
9860 | extern "C" | |
9861 | { | |
9862 | #endif | |
9863 | /* We use char because int might match the return type of a gcc2 | |
9864 | builtin and then its argument prototype would still apply. */ | |
9865 | char dlopen (); | |
9866 | /* The GNU C library defines this for functions which it implements | |
9867 | to always fail with ENOSYS. Some functions are actually named | |
9868 | something starting with __ and the normal name is an alias. */ | |
9869 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
9870 | choke me | |
9871 | #else | |
9872 | char (*f) () = dlopen; | |
9873 | #endif | |
9874 | #ifdef __cplusplus | |
9875 | } | |
9876 | #endif | |
d7040cdb SE |
9877 | |
9878 | int | |
9879 | main () | |
9880 | { | |
ce2cded5 | 9881 | return f != dlopen; |
d7040cdb SE |
9882 | ; |
9883 | return 0; | |
9884 | } | |
9885 | _ACEOF | |
ce2cded5 L |
9886 | rm -f conftest.$ac_objext conftest$ac_exeext |
9887 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9888 | (eval $ac_link) 2>conftest.er1 | |
d7040cdb SE |
9889 | ac_status=$? |
9890 | grep -v '^ *+' conftest.er1 >conftest.err | |
9891 | rm -f conftest.er1 | |
9892 | cat conftest.err >&5 | |
9893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9894 | (exit $ac_status); } && | |
9895 | { ac_try='test -z "$ac_c_werror_flag" | |
9896 | || test ! -s conftest.err' | |
9897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9898 | (eval $ac_try) 2>&5 | |
9899 | ac_status=$? | |
9900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9901 | (exit $ac_status); }; } && | |
ce2cded5 | 9902 | { ac_try='test -s conftest$ac_exeext' |
d7040cdb SE |
9903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9904 | (eval $ac_try) 2>&5 | |
9905 | ac_status=$? | |
9906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9907 | (exit $ac_status); }; }; then | |
ce2cded5 | 9908 | ac_cv_func_dlopen=yes |
d7040cdb SE |
9909 | else |
9910 | echo "$as_me: failed program was:" >&5 | |
9911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9912 | ||
ce2cded5 | 9913 | ac_cv_func_dlopen=no |
d7040cdb | 9914 | fi |
ce2cded5 L |
9915 | rm -f conftest.err conftest.$ac_objext \ |
9916 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb | 9917 | fi |
ce2cded5 L |
9918 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
9919 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
9920 | if test $ac_cv_func_dlopen = yes; then | |
9921 | lt_cv_dlopen="dlopen" | |
9922 | else | |
9923 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
9924 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
9925 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
d7040cdb SE |
9926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9927 | else | |
ce2cded5 L |
9928 | ac_check_lib_save_LIBS=$LIBS |
9929 | LIBS="-ldl $LIBS" | |
9930 | cat >conftest.$ac_ext <<_ACEOF | |
d7040cdb SE |
9931 | /* confdefs.h. */ |
9932 | _ACEOF | |
9933 | cat confdefs.h >>conftest.$ac_ext | |
9934 | cat >>conftest.$ac_ext <<_ACEOF | |
9935 | /* end confdefs.h. */ | |
9936 | ||
ce2cded5 L |
9937 | /* Override any gcc2 internal prototype to avoid an error. */ |
9938 | #ifdef __cplusplus | |
9939 | extern "C" | |
9940 | #endif | |
9941 | /* We use char because int might match the return type of a gcc2 | |
9942 | builtin and then its argument prototype would still apply. */ | |
9943 | char dlopen (); | |
d7040cdb SE |
9944 | int |
9945 | main () | |
9946 | { | |
ce2cded5 | 9947 | dlopen (); |
d7040cdb SE |
9948 | ; |
9949 | return 0; | |
9950 | } | |
9951 | _ACEOF | |
ce2cded5 L |
9952 | rm -f conftest.$ac_objext conftest$ac_exeext |
9953 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9954 | (eval $ac_link) 2>conftest.er1 | |
d7040cdb SE |
9955 | ac_status=$? |
9956 | grep -v '^ *+' conftest.er1 >conftest.err | |
9957 | rm -f conftest.er1 | |
9958 | cat conftest.err >&5 | |
9959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9960 | (exit $ac_status); } && | |
9961 | { ac_try='test -z "$ac_c_werror_flag" | |
9962 | || test ! -s conftest.err' | |
9963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9964 | (eval $ac_try) 2>&5 | |
9965 | ac_status=$? | |
9966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9967 | (exit $ac_status); }; } && | |
ce2cded5 | 9968 | { ac_try='test -s conftest$ac_exeext' |
d7040cdb SE |
9969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9970 | (eval $ac_try) 2>&5 | |
9971 | ac_status=$? | |
9972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9973 | (exit $ac_status); }; }; then | |
ce2cded5 | 9974 | ac_cv_lib_dl_dlopen=yes |
d7040cdb SE |
9975 | else |
9976 | echo "$as_me: failed program was:" >&5 | |
9977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9978 | ||
ce2cded5 | 9979 | ac_cv_lib_dl_dlopen=no |
d7040cdb | 9980 | fi |
ce2cded5 L |
9981 | rm -f conftest.err conftest.$ac_objext \ |
9982 | conftest$ac_exeext conftest.$ac_ext | |
9983 | LIBS=$ac_check_lib_save_LIBS | |
d7040cdb | 9984 | fi |
ce2cded5 L |
9985 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9986 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
9987 | if test $ac_cv_lib_dl_dlopen = yes; then | |
9988 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
d7040cdb | 9989 | else |
ce2cded5 L |
9990 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
9991 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
9992 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
d7040cdb SE |
9993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9994 | else | |
ce2cded5 L |
9995 | ac_check_lib_save_LIBS=$LIBS |
9996 | LIBS="-lsvld $LIBS" | |
d7040cdb SE |
9997 | cat >conftest.$ac_ext <<_ACEOF |
9998 | /* confdefs.h. */ | |
9999 | _ACEOF | |
10000 | cat confdefs.h >>conftest.$ac_ext | |
10001 | cat >>conftest.$ac_ext <<_ACEOF | |
10002 | /* end confdefs.h. */ | |
d7040cdb | 10003 | |
ce2cded5 L |
10004 | /* Override any gcc2 internal prototype to avoid an error. */ |
10005 | #ifdef __cplusplus | |
10006 | extern "C" | |
10007 | #endif | |
10008 | /* We use char because int might match the return type of a gcc2 | |
10009 | builtin and then its argument prototype would still apply. */ | |
10010 | char dlopen (); | |
d7040cdb SE |
10011 | int |
10012 | main () | |
10013 | { | |
ce2cded5 | 10014 | dlopen (); |
d7040cdb SE |
10015 | ; |
10016 | return 0; | |
10017 | } | |
10018 | _ACEOF | |
ce2cded5 L |
10019 | rm -f conftest.$ac_objext conftest$ac_exeext |
10020 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10021 | (eval $ac_link) 2>conftest.er1 | |
d7040cdb SE |
10022 | ac_status=$? |
10023 | grep -v '^ *+' conftest.er1 >conftest.err | |
10024 | rm -f conftest.er1 | |
10025 | cat conftest.err >&5 | |
10026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10027 | (exit $ac_status); } && | |
10028 | { ac_try='test -z "$ac_c_werror_flag" | |
10029 | || test ! -s conftest.err' | |
10030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10031 | (eval $ac_try) 2>&5 | |
10032 | ac_status=$? | |
10033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10034 | (exit $ac_status); }; } && | |
ce2cded5 | 10035 | { ac_try='test -s conftest$ac_exeext' |
d7040cdb SE |
10036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10037 | (eval $ac_try) 2>&5 | |
10038 | ac_status=$? | |
10039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10040 | (exit $ac_status); }; }; then | |
ce2cded5 | 10041 | ac_cv_lib_svld_dlopen=yes |
d7040cdb SE |
10042 | else |
10043 | echo "$as_me: failed program was:" >&5 | |
10044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10045 | ||
ce2cded5 | 10046 | ac_cv_lib_svld_dlopen=no |
d7040cdb | 10047 | fi |
ce2cded5 L |
10048 | rm -f conftest.err conftest.$ac_objext \ |
10049 | conftest$ac_exeext conftest.$ac_ext | |
10050 | LIBS=$ac_check_lib_save_LIBS | |
d7040cdb | 10051 | fi |
ce2cded5 L |
10052 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
10053 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
10054 | if test $ac_cv_lib_svld_dlopen = yes; then | |
10055 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
10056 | else | |
10057 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
10058 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
10059 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
10060 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10061 | else | |
10062 | ac_check_lib_save_LIBS=$LIBS | |
10063 | LIBS="-ldld $LIBS" | |
d7040cdb | 10064 | cat >conftest.$ac_ext <<_ACEOF |
d7040cdb SE |
10065 | /* confdefs.h. */ |
10066 | _ACEOF | |
10067 | cat confdefs.h >>conftest.$ac_ext | |
10068 | cat >>conftest.$ac_ext <<_ACEOF | |
ce2cded5 L |
10069 | /* end confdefs.h. */ |
10070 | ||
10071 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10072 | #ifdef __cplusplus | |
10073 | extern "C" | |
10074 | #endif | |
10075 | /* We use char because int might match the return type of a gcc2 | |
10076 | builtin and then its argument prototype would still apply. */ | |
10077 | char dld_link (); | |
d7040cdb SE |
10078 | int |
10079 | main () | |
10080 | { | |
ce2cded5 | 10081 | dld_link (); |
d7040cdb SE |
10082 | ; |
10083 | return 0; | |
10084 | } | |
10085 | _ACEOF | |
ce2cded5 L |
10086 | rm -f conftest.$ac_objext conftest$ac_exeext |
10087 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10088 | (eval $ac_link) 2>conftest.er1 | |
d7040cdb SE |
10089 | ac_status=$? |
10090 | grep -v '^ *+' conftest.er1 >conftest.err | |
10091 | rm -f conftest.er1 | |
10092 | cat conftest.err >&5 | |
10093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10094 | (exit $ac_status); } && | |
10095 | { ac_try='test -z "$ac_c_werror_flag" | |
10096 | || test ! -s conftest.err' | |
10097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10098 | (eval $ac_try) 2>&5 | |
10099 | ac_status=$? | |
10100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10101 | (exit $ac_status); }; } && | |
ce2cded5 | 10102 | { ac_try='test -s conftest$ac_exeext' |
d7040cdb SE |
10103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10104 | (eval $ac_try) 2>&5 | |
10105 | ac_status=$? | |
10106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10107 | (exit $ac_status); }; }; then | |
ce2cded5 | 10108 | ac_cv_lib_dld_dld_link=yes |
d7040cdb SE |
10109 | else |
10110 | echo "$as_me: failed program was:" >&5 | |
10111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10112 | ||
ce2cded5 | 10113 | ac_cv_lib_dld_dld_link=no |
d7040cdb | 10114 | fi |
ce2cded5 L |
10115 | rm -f conftest.err conftest.$ac_objext \ |
10116 | conftest$ac_exeext conftest.$ac_ext | |
10117 | LIBS=$ac_check_lib_save_LIBS | |
10118 | fi | |
10119 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
10120 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
10121 | if test $ac_cv_lib_dld_dld_link = yes; then | |
10122 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
10123 | fi | |
10124 | ||
10125 | ||
10126 | fi | |
10127 | ||
10128 | ||
10129 | fi | |
10130 | ||
10131 | ||
10132 | fi | |
10133 | ||
10134 | ||
10135 | fi | |
10136 | ||
10137 | ||
10138 | fi | |
10139 | ||
10140 | ;; | |
10141 | esac | |
10142 | ||
10143 | if test "x$lt_cv_dlopen" != xno; then | |
10144 | enable_dlopen=yes | |
10145 | else | |
10146 | enable_dlopen=no | |
10147 | fi | |
10148 | ||
10149 | case $lt_cv_dlopen in | |
10150 | dlopen) | |
10151 | save_CPPFLAGS="$CPPFLAGS" | |
10152 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
10153 | ||
10154 | save_LDFLAGS="$LDFLAGS" | |
10155 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
10156 | ||
10157 | save_LIBS="$LIBS" | |
10158 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
10159 | ||
10160 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
10161 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
10162 | if test "${lt_cv_dlopen_self+set}" = set; then | |
10163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10164 | else | |
10165 | if test "$cross_compiling" = yes; then : | |
10166 | lt_cv_dlopen_self=cross | |
10167 | else | |
10168 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10169 | lt_status=$lt_dlunknown | |
10170 | cat > conftest.$ac_ext <<_LT_EOF | |
bb8541b9 | 10171 | #line 10171 "configure" |
ce2cded5 L |
10172 | #include "confdefs.h" |
10173 | ||
10174 | #if HAVE_DLFCN_H | |
10175 | #include <dlfcn.h> | |
10176 | #endif | |
10177 | ||
10178 | #include <stdio.h> | |
10179 | ||
10180 | #ifdef RTLD_GLOBAL | |
10181 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10182 | #else | |
10183 | # ifdef DL_GLOBAL | |
10184 | # define LT_DLGLOBAL DL_GLOBAL | |
10185 | # else | |
10186 | # define LT_DLGLOBAL 0 | |
10187 | # endif | |
10188 | #endif | |
10189 | ||
10190 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10191 | find out it does not work in some platform. */ | |
10192 | #ifndef LT_DLLAZY_OR_NOW | |
10193 | # ifdef RTLD_LAZY | |
10194 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10195 | # else | |
10196 | # ifdef DL_LAZY | |
10197 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10198 | # else | |
10199 | # ifdef RTLD_NOW | |
10200 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10201 | # else | |
10202 | # ifdef DL_NOW | |
10203 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10204 | # else | |
10205 | # define LT_DLLAZY_OR_NOW 0 | |
10206 | # endif | |
10207 | # endif | |
10208 | # endif | |
10209 | # endif | |
10210 | #endif | |
10211 | ||
10212 | #ifdef __cplusplus | |
10213 | extern "C" void exit (int); | |
10214 | #endif | |
10215 | ||
10216 | void fnord() { int i=42;} | |
10217 | int main () | |
d7040cdb | 10218 | { |
ce2cded5 L |
10219 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10220 | int status = $lt_dlunknown; | |
10221 | ||
10222 | if (self) | |
10223 | { | |
10224 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10225 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10226 | /* dlclose (self); */ | |
10227 | } | |
10228 | else | |
10229 | puts (dlerror ()); | |
10230 | ||
10231 | exit (status); | |
d7040cdb | 10232 | } |
ce2cded5 L |
10233 | _LT_EOF |
10234 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10235 | (eval $ac_link) 2>&5 | |
d7040cdb SE |
10236 | ac_status=$? |
10237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ce2cded5 L |
10238 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
10239 | (./conftest; exit; ) >&5 2>/dev/null | |
10240 | lt_status=$? | |
10241 | case x$lt_status in | |
10242 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
10243 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
10244 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
10245 | esac | |
10246 | else : | |
10247 | # compilation failed | |
10248 | lt_cv_dlopen_self=no | |
10249 | fi | |
10250 | fi | |
10251 | rm -fr conftest* | |
10252 | ||
10253 | ||
10254 | fi | |
10255 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
10256 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
10257 | ||
10258 | if test "x$lt_cv_dlopen_self" = xyes; then | |
10259 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
10260 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
10261 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
10262 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
10263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10264 | else | |
10265 | if test "$cross_compiling" = yes; then : | |
10266 | lt_cv_dlopen_self_static=cross | |
10267 | else | |
10268 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10269 | lt_status=$lt_dlunknown | |
10270 | cat > conftest.$ac_ext <<_LT_EOF | |
bb8541b9 | 10271 | #line 10271 "configure" |
ce2cded5 L |
10272 | #include "confdefs.h" |
10273 | ||
10274 | #if HAVE_DLFCN_H | |
10275 | #include <dlfcn.h> | |
10276 | #endif | |
10277 | ||
10278 | #include <stdio.h> | |
10279 | ||
10280 | #ifdef RTLD_GLOBAL | |
10281 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10282 | #else | |
10283 | # ifdef DL_GLOBAL | |
10284 | # define LT_DLGLOBAL DL_GLOBAL | |
10285 | # else | |
10286 | # define LT_DLGLOBAL 0 | |
10287 | # endif | |
10288 | #endif | |
10289 | ||
10290 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10291 | find out it does not work in some platform. */ | |
10292 | #ifndef LT_DLLAZY_OR_NOW | |
10293 | # ifdef RTLD_LAZY | |
10294 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10295 | # else | |
10296 | # ifdef DL_LAZY | |
10297 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10298 | # else | |
10299 | # ifdef RTLD_NOW | |
10300 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10301 | # else | |
10302 | # ifdef DL_NOW | |
10303 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10304 | # else | |
10305 | # define LT_DLLAZY_OR_NOW 0 | |
10306 | # endif | |
10307 | # endif | |
10308 | # endif | |
10309 | # endif | |
10310 | #endif | |
10311 | ||
10312 | #ifdef __cplusplus | |
10313 | extern "C" void exit (int); | |
10314 | #endif | |
10315 | ||
10316 | void fnord() { int i=42;} | |
10317 | int main () | |
10318 | { | |
10319 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10320 | int status = $lt_dlunknown; | |
10321 | ||
10322 | if (self) | |
10323 | { | |
10324 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10325 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10326 | /* dlclose (self); */ | |
10327 | } | |
10328 | else | |
10329 | puts (dlerror ()); | |
10330 | ||
10331 | exit (status); | |
10332 | } | |
10333 | _LT_EOF | |
10334 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10335 | (eval $ac_link) 2>&5 | |
d7040cdb SE |
10336 | ac_status=$? |
10337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ce2cded5 L |
10338 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
10339 | (./conftest; exit; ) >&5 2>/dev/null | |
10340 | lt_status=$? | |
10341 | case x$lt_status in | |
10342 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
10343 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
10344 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
10345 | esac | |
10346 | else : | |
10347 | # compilation failed | |
10348 | lt_cv_dlopen_self_static=no | |
10349 | fi | |
10350 | fi | |
10351 | rm -fr conftest* | |
10352 | ||
d7040cdb SE |
10353 | |
10354 | fi | |
ce2cded5 L |
10355 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
10356 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
10357 | fi | |
10358 | ||
10359 | CPPFLAGS="$save_CPPFLAGS" | |
10360 | LDFLAGS="$save_LDFLAGS" | |
10361 | LIBS="$save_LIBS" | |
10362 | ;; | |
10363 | esac | |
10364 | ||
10365 | case $lt_cv_dlopen_self in | |
10366 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
10367 | *) enable_dlopen_self=unknown ;; | |
10368 | esac | |
10369 | ||
10370 | case $lt_cv_dlopen_self_static in | |
10371 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
10372 | *) enable_dlopen_self_static=unknown ;; | |
10373 | esac | |
d7040cdb SE |
10374 | fi |
10375 | ||
ce2cded5 L |
10376 | |
10377 | ||
10378 | ||
10379 | ||
10380 | ||
10381 | ||
10382 | ||
10383 | ||
10384 | ||
10385 | ||
10386 | ||
10387 | ||
10388 | ||
10389 | ||
10390 | ||
10391 | ||
10392 | striplib= | |
10393 | old_striplib= | |
10394 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
10395 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
10396 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
10397 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
10398 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
10399 | echo "$as_me:$LINENO: result: yes" >&5 | |
10400 | echo "${ECHO_T}yes" >&6 | |
d7040cdb | 10401 | else |
ce2cded5 L |
10402 | # FIXME - insert some real tests, host_os isn't really good enough |
10403 | case $host_os in | |
10404 | darwin*) | |
10405 | if test -n "$STRIP" ; then | |
10406 | striplib="$STRIP -x" | |
10407 | old_striplib="$STRIP -S" | |
10408 | echo "$as_me:$LINENO: result: yes" >&5 | |
10409 | echo "${ECHO_T}yes" >&6 | |
10410 | else | |
10411 | echo "$as_me:$LINENO: result: no" >&5 | |
10412 | echo "${ECHO_T}no" >&6 | |
10413 | fi | |
10414 | ;; | |
10415 | *) | |
10416 | echo "$as_me:$LINENO: result: no" >&5 | |
10417 | echo "${ECHO_T}no" >&6 | |
10418 | ;; | |
10419 | esac | |
10420 | fi | |
10421 | ||
10422 | ||
10423 | ||
10424 | ||
10425 | ||
10426 | ||
10427 | ||
10428 | ||
10429 | ||
10430 | ||
10431 | ||
10432 | ||
10433 | # Report which library types will actually be built | |
10434 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
10435 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
10436 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
10437 | echo "${ECHO_T}$can_build_shared" >&6 | |
10438 | ||
10439 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
10440 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
10441 | test "$can_build_shared" = "no" && enable_shared=no | |
10442 | ||
10443 | # On AIX, shared libraries and static libraries use the same namespace, and | |
10444 | # are all built from PIC. | |
10445 | case $host_os in | |
10446 | aix3*) | |
10447 | test "$enable_shared" = yes && enable_static=no | |
10448 | if test -n "$RANLIB"; then | |
10449 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
10450 | postinstall_cmds='$RANLIB $lib' | |
10451 | fi | |
10452 | ;; | |
10453 | ||
50e7d84b | 10454 | aix[4-9]*) |
ce2cded5 L |
10455 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
10456 | test "$enable_shared" = yes && enable_static=no | |
10457 | fi | |
10458 | ;; | |
10459 | esac | |
10460 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
10461 | echo "${ECHO_T}$enable_shared" >&6 | |
10462 | ||
10463 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
10464 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
10465 | # Make sure either enable_shared or enable_static is yes. | |
10466 | test "$enable_shared" = yes || enable_static=yes | |
10467 | echo "$as_me:$LINENO: result: $enable_static" >&5 | |
10468 | echo "${ECHO_T}$enable_static" >&6 | |
10469 | ||
10470 | ||
10471 | ||
d7040cdb SE |
10472 | |
10473 | fi | |
d7040cdb SE |
10474 | ac_ext=c |
10475 | ac_cpp='$CPP $CPPFLAGS' | |
10476 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10477 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10478 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10479 | ||
ce2cded5 | 10480 | CC="$lt_save_CC" |
67310ccd | 10481 | |
67310ccd AM |
10482 | |
10483 | ||
d7040cdb SE |
10484 | |
10485 | ||
d7040cdb | 10486 | |
d7040cdb | 10487 | |
d7040cdb | 10488 | |
ce2cded5 L |
10489 | |
10490 | ||
10491 | ||
10492 | ||
10493 | ||
10494 | ac_config_commands="$ac_config_commands libtool" | |
10495 | ||
10496 | ||
10497 | ||
10498 | ||
10499 | # Only expand once: | |
10500 | ||
d7040cdb SE |
10501 | |
10502 | ||
19aec961 | 10503 | ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi" |
d7040cdb SE |
10504 | # If we haven't got the data from the intl directory, |
10505 | # assume NLS is disabled. | |
10506 | USE_NLS=no | |
10507 | LIBINTL= | |
10508 | LIBINTL_DEP= | |
10509 | INCINTL= | |
10510 | XGETTEXT= | |
10511 | GMSGFMT= | |
10512 | POSUB= | |
10513 | ||
10514 | if test -f ../intl/config.intl; then | |
10515 | . ../intl/config.intl | |
10516 | fi | |
10517 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
10518 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
10519 | if test x"$USE_NLS" != xyes; then | |
10520 | echo "$as_me:$LINENO: result: no" >&5 | |
10521 | echo "${ECHO_T}no" >&6 | |
10522 | else | |
10523 | echo "$as_me:$LINENO: result: yes" >&5 | |
10524 | echo "${ECHO_T}yes" >&6 | |
10525 | ||
10526 | cat >>confdefs.h <<\_ACEOF | |
10527 | #define ENABLE_NLS 1 | |
10528 | _ACEOF | |
10529 | ||
10530 | ||
10531 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 | |
10532 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
10533 | # Look for .po and .gmo files in the source directory. | |
10534 | CATALOGS= | |
10535 | XLINGUAS= | |
10536 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
10537 | # If there aren't any .gmo files the shell will give us the | |
10538 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
10539 | # weeded out. | |
10540 | case "$cat" in *\**) | |
10541 | continue;; | |
10542 | esac | |
10543 | # The quadruple backslash is collapsed to a double backslash | |
10544 | # by the backticks, then collapsed again by the double quotes, | |
10545 | # leaving us with one backslash in the sed expression (right | |
10546 | # before the dot that mustn't act as a wildcard). | |
10547 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
10548 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
10549 | # The user is allowed to set LINGUAS to a list of languages to | |
10550 | # install catalogs for. If it's empty that means "all of them." | |
10551 | if test "x$LINGUAS" = x; then | |
10552 | CATALOGS="$CATALOGS $cat" | |
10553 | XLINGUAS="$XLINGUAS $lang" | |
10554 | else | |
10555 | case "$LINGUAS" in *$lang*) | |
10556 | CATALOGS="$CATALOGS $cat" | |
10557 | XLINGUAS="$XLINGUAS $lang" | |
10558 | ;; | |
10559 | esac | |
10560 | fi | |
10561 | done | |
10562 | LINGUAS="$XLINGUAS" | |
10563 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 | |
10564 | echo "${ECHO_T}$LINGUAS" >&6 | |
10565 | ||
10566 | ||
10567 | DATADIRNAME=share | |
10568 | ||
10569 | INSTOBJEXT=.mo | |
10570 | ||
10571 | GENCAT=gencat | |
10572 | ||
10573 | CATOBJEXT=.gmo | |
10574 | ||
10575 | fi | |
10576 | ||
10577 | MKINSTALLDIRS= | |
10578 | if test -n "$ac_aux_dir"; then | |
10579 | case "$ac_aux_dir" in | |
10580 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
10581 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
10582 | esac | |
10583 | fi | |
10584 | if test -z "$MKINSTALLDIRS"; then | |
10585 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
10586 | fi | |
10587 | ||
10588 | ||
10589 | ||
10590 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
10591 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
10592 | # Check whether --enable-nls or --disable-nls was given. | |
10593 | if test "${enable_nls+set}" = set; then | |
10594 | enableval="$enable_nls" | |
10595 | USE_NLS=$enableval | |
10596 | else | |
10597 | USE_NLS=yes | |
10598 | fi; | |
10599 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
10600 | echo "${ECHO_T}$USE_NLS" >&6 | |
10601 | ||
10602 | ||
10603 | ||
10604 | ||
10605 | ||
10606 | ||
10607 | # Prepare PATH_SEPARATOR. | |
10608 | # The user is always right. | |
10609 | if test "${PATH_SEPARATOR+set}" != set; then | |
10610 | echo "#! /bin/sh" >conf$$.sh | |
10611 | echo "exit 0" >>conf$$.sh | |
10612 | chmod +x conf$$.sh | |
10613 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
10614 | PATH_SEPARATOR=';' | |
10615 | else | |
10616 | PATH_SEPARATOR=: | |
10617 | fi | |
10618 | rm -f conf$$.sh | |
10619 | fi | |
10620 | ||
10621 | # Find out how to test for executable files. Don't use a zero-byte file, | |
10622 | # as systems may use methods other than mode bits to determine executability. | |
10623 | cat >conf$$.file <<_ASEOF | |
10624 | #! /bin/sh | |
10625 | exit 0 | |
10626 | _ASEOF | |
10627 | chmod +x conf$$.file | |
10628 | if test -x conf$$.file >/dev/null 2>&1; then | |
10629 | ac_executable_p="test -x" | |
10630 | else | |
10631 | ac_executable_p="test -f" | |
10632 | fi | |
10633 | rm -f conf$$.file | |
10634 | ||
10635 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
10636 | set dummy msgfmt; ac_word=$2 | |
10637 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10638 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10639 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
10640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10641 | else | |
10642 | case "$MSGFMT" in | |
10643 | [\\/]* | ?:[\\/]*) | |
10644 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
10645 | ;; | |
10646 | *) | |
10647 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
10648 | for ac_dir in $PATH; do | |
10649 | IFS="$ac_save_IFS" | |
10650 | test -z "$ac_dir" && ac_dir=. | |
10651 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10652 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
10653 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
10654 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
10655 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
10656 | break 2 | |
10657 | fi | |
10658 | fi | |
10659 | done | |
10660 | done | |
10661 | IFS="$ac_save_IFS" | |
10662 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
10663 | ;; | |
10664 | esac | |
10665 | fi | |
10666 | MSGFMT="$ac_cv_path_MSGFMT" | |
10667 | if test "$MSGFMT" != ":"; then | |
10668 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
10669 | echo "${ECHO_T}$MSGFMT" >&6 | |
10670 | else | |
10671 | echo "$as_me:$LINENO: result: no" >&5 | |
10672 | echo "${ECHO_T}no" >&6 | |
10673 | fi | |
10674 | ||
10675 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
10676 | set dummy gmsgfmt; ac_word=$2 | |
10677 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10678 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10679 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
10680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10681 | else | |
10682 | case $GMSGFMT in | |
10683 | [\\/]* | ?:[\\/]*) | |
10684 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
10685 | ;; | |
10686 | *) | |
10687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10688 | for as_dir in $PATH | |
10689 | do | |
10690 | IFS=$as_save_IFS | |
10691 | test -z "$as_dir" && as_dir=. | |
10692 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10693 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10694 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
10695 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10696 | break 2 | |
10697 | fi | |
10698 | done | |
10699 | done | |
10700 | ||
10701 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
10702 | ;; | |
10703 | esac | |
10704 | fi | |
10705 | GMSGFMT=$ac_cv_path_GMSGFMT | |
252b5132 | 10706 | |
d7040cdb SE |
10707 | if test -n "$GMSGFMT"; then |
10708 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 | |
10709 | echo "${ECHO_T}$GMSGFMT" >&6 | |
10710 | else | |
10711 | echo "$as_me:$LINENO: result: no" >&5 | |
10712 | echo "${ECHO_T}no" >&6 | |
20e95c23 | 10713 | fi |
42ecbf5e | 10714 | |
20e95c23 | 10715 | |
252b5132 | 10716 | |
d7040cdb SE |
10717 | # Prepare PATH_SEPARATOR. |
10718 | # The user is always right. | |
10719 | if test "${PATH_SEPARATOR+set}" != set; then | |
10720 | echo "#! /bin/sh" >conf$$.sh | |
10721 | echo "exit 0" >>conf$$.sh | |
10722 | chmod +x conf$$.sh | |
10723 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
10724 | PATH_SEPARATOR=';' | |
10725 | else | |
10726 | PATH_SEPARATOR=: | |
10727 | fi | |
10728 | rm -f conf$$.sh | |
20e95c23 | 10729 | fi |
252b5132 | 10730 | |
d7040cdb SE |
10731 | # Find out how to test for executable files. Don't use a zero-byte file, |
10732 | # as systems may use methods other than mode bits to determine executability. | |
10733 | cat >conf$$.file <<_ASEOF | |
10734 | #! /bin/sh | |
10735 | exit 0 | |
10736 | _ASEOF | |
10737 | chmod +x conf$$.file | |
10738 | if test -x conf$$.file >/dev/null 2>&1; then | |
10739 | ac_executable_p="test -x" | |
20e95c23 | 10740 | else |
d7040cdb SE |
10741 | ac_executable_p="test -f" |
10742 | fi | |
10743 | rm -f conf$$.file | |
20e95c23 | 10744 | |
d7040cdb SE |
10745 | # Extract the first word of "xgettext", so it can be a program name with args. |
10746 | set dummy xgettext; ac_word=$2 | |
10747 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10748 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10749 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
10750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 10751 | else |
d7040cdb SE |
10752 | case "$XGETTEXT" in |
10753 | [\\/]* | ?:[\\/]*) | |
10754 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
10755 | ;; | |
10756 | *) | |
10757 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
10758 | for ac_dir in $PATH; do | |
10759 | IFS="$ac_save_IFS" | |
10760 | test -z "$ac_dir" && ac_dir=. | |
10761 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10762 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
10763 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
10764 | (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 | |
10765 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
10766 | break 2 | |
10767 | fi | |
10768 | fi | |
10769 | done | |
10770 | done | |
10771 | IFS="$ac_save_IFS" | |
10772 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
10773 | ;; | |
10774 | esac | |
252b5132 | 10775 | fi |
d7040cdb SE |
10776 | XGETTEXT="$ac_cv_path_XGETTEXT" |
10777 | if test "$XGETTEXT" != ":"; then | |
10778 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 | |
10779 | echo "${ECHO_T}$XGETTEXT" >&6 | |
d5fbea21 | 10780 | else |
d7040cdb SE |
10781 | echo "$as_me:$LINENO: result: no" >&5 |
10782 | echo "${ECHO_T}no" >&6 | |
d5fbea21 DJ |
10783 | fi |
10784 | ||
d7040cdb | 10785 | rm -f messages.po |
d5fbea21 | 10786 | |
20e95c23 | 10787 | |
d7040cdb SE |
10788 | # Prepare PATH_SEPARATOR. |
10789 | # The user is always right. | |
10790 | if test "${PATH_SEPARATOR+set}" != set; then | |
10791 | echo "#! /bin/sh" >conf$$.sh | |
10792 | echo "exit 0" >>conf$$.sh | |
10793 | chmod +x conf$$.sh | |
10794 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
10795 | PATH_SEPARATOR=';' | |
10796 | else | |
10797 | PATH_SEPARATOR=: | |
10798 | fi | |
10799 | rm -f conf$$.sh | |
10800 | fi | |
20e95c23 | 10801 | |
d7040cdb SE |
10802 | # Find out how to test for executable files. Don't use a zero-byte file, |
10803 | # as systems may use methods other than mode bits to determine executability. | |
10804 | cat >conf$$.file <<_ASEOF | |
10805 | #! /bin/sh | |
10806 | exit 0 | |
10807 | _ASEOF | |
10808 | chmod +x conf$$.file | |
10809 | if test -x conf$$.file >/dev/null 2>&1; then | |
10810 | ac_executable_p="test -x" | |
10811 | else | |
10812 | ac_executable_p="test -f" | |
10813 | fi | |
10814 | rm -f conf$$.file | |
20e95c23 | 10815 | |
d7040cdb SE |
10816 | # Extract the first word of "msgmerge", so it can be a program name with args. |
10817 | set dummy msgmerge; ac_word=$2 | |
10818 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10819 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10820 | if test "${ac_cv_path_MSGMERGE+set}" = set; then | |
10821 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10822 | else | |
10823 | case "$MSGMERGE" in | |
10824 | [\\/]* | ?:[\\/]*) | |
10825 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
10826 | ;; | |
10827 | *) | |
10828 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
10829 | for ac_dir in $PATH; do | |
10830 | IFS="$ac_save_IFS" | |
10831 | test -z "$ac_dir" && ac_dir=. | |
10832 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10833 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
10834 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
10835 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
10836 | break 2 | |
10837 | fi | |
10838 | fi | |
10839 | done | |
10840 | done | |
10841 | IFS="$ac_save_IFS" | |
10842 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
10843 | ;; | |
10844 | esac | |
10845 | fi | |
10846 | MSGMERGE="$ac_cv_path_MSGMERGE" | |
10847 | if test "$MSGMERGE" != ":"; then | |
10848 | echo "$as_me:$LINENO: result: $MSGMERGE" >&5 | |
10849 | echo "${ECHO_T}$MSGMERGE" >&6 | |
10850 | else | |
10851 | echo "$as_me:$LINENO: result: no" >&5 | |
10852 | echo "${ECHO_T}no" >&6 | |
10853 | fi | |
20e95c23 DJ |
10854 | |
10855 | ||
d7040cdb SE |
10856 | if test "$GMSGFMT" != ":"; then |
10857 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
10858 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
10859 | : ; | |
10860 | else | |
10861 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
10862 | echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 | |
10863 | echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 | |
10864 | GMSGFMT=":" | |
10865 | fi | |
10866 | fi | |
20e95c23 | 10867 | |
d7040cdb SE |
10868 | if test "$XGETTEXT" != ":"; then |
10869 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
10870 | (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 | |
10871 | : ; | |
10872 | else | |
10873 | echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 | |
10874 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 | |
10875 | XGETTEXT=":" | |
10876 | fi | |
10877 | rm -f messages.po | |
20e95c23 | 10878 | fi |
42ecbf5e | 10879 | |
d7040cdb | 10880 | ac_config_commands="$ac_config_commands default-1" |
252b5132 | 10881 | |
42ecbf5e | 10882 | |
252b5132 | 10883 | |
42ecbf5e DJ |
10884 | |
10885 | ||
d7040cdb | 10886 | for ac_prog in 'bison -y' byacc |
20e95c23 | 10887 | do |
d7040cdb SE |
10888 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10889 | set dummy $ac_prog; ac_word=$2 | |
10890 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10891 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10892 | if test "${ac_cv_prog_YACC+set}" = set; then | |
10893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20e95c23 | 10894 | else |
d7040cdb SE |
10895 | if test -n "$YACC"; then |
10896 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
42ecbf5e | 10897 | else |
d7040cdb SE |
10898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10899 | for as_dir in $PATH | |
10900 | do | |
10901 | IFS=$as_save_IFS | |
10902 | test -z "$as_dir" && as_dir=. | |
10903 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10904 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10905 | ac_cv_prog_YACC="$ac_prog" | |
10906 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10907 | break 2 | |
10908 | fi | |
10909 | done | |
10910 | done | |
42ecbf5e | 10911 | |
42ecbf5e | 10912 | fi |
e5a52504 | 10913 | fi |
d7040cdb SE |
10914 | YACC=$ac_cv_prog_YACC |
10915 | if test -n "$YACC"; then | |
10916 | echo "$as_me:$LINENO: result: $YACC" >&5 | |
10917 | echo "${ECHO_T}$YACC" >&6 | |
42ecbf5e | 10918 | else |
d7040cdb SE |
10919 | echo "$as_me:$LINENO: result: no" >&5 |
10920 | echo "${ECHO_T}no" >&6 | |
42ecbf5e | 10921 | fi |
252b5132 | 10922 | |
d7040cdb | 10923 | test -n "$YACC" && break |
42ecbf5e | 10924 | done |
d7040cdb | 10925 | test -n "$YACC" || YACC="yacc" |
d15b04bd | 10926 | |
d7040cdb SE |
10927 | for ac_prog in flex lex |
10928 | do | |
10929 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10930 | set dummy $ac_prog; ac_word=$2 | |
10931 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10932 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10933 | if test "${ac_cv_prog_LEX+set}" = set; then | |
20e95c23 | 10934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d15b04bd | 10935 | else |
d7040cdb SE |
10936 | if test -n "$LEX"; then |
10937 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
10938 | else | |
10939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10940 | for as_dir in $PATH | |
10941 | do | |
10942 | IFS=$as_save_IFS | |
10943 | test -z "$as_dir" && as_dir=. | |
10944 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10945 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10946 | ac_cv_prog_LEX="$ac_prog" | |
10947 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10948 | break 2 | |
10949 | fi | |
10950 | done | |
10951 | done | |
10952 | ||
10953 | fi | |
10954 | fi | |
10955 | LEX=$ac_cv_prog_LEX | |
10956 | if test -n "$LEX"; then | |
10957 | echo "$as_me:$LINENO: result: $LEX" >&5 | |
10958 | echo "${ECHO_T}$LEX" >&6 | |
10959 | else | |
10960 | echo "$as_me:$LINENO: result: no" >&5 | |
10961 | echo "${ECHO_T}no" >&6 | |
d15b04bd | 10962 | fi |
e5a52504 | 10963 | |
d7040cdb SE |
10964 | test -n "$LEX" && break |
10965 | done | |
10966 | test -n "$LEX" || LEX=":" | |
42ecbf5e | 10967 | |
d7040cdb SE |
10968 | if test -z "$LEXLIB" |
10969 | then | |
10970 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 | |
10971 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 | |
10972 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | |
42ecbf5e DJ |
10973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10974 | else | |
d7040cdb SE |
10975 | ac_check_lib_save_LIBS=$LIBS |
10976 | LIBS="-lfl $LIBS" | |
10977 | cat >conftest.$ac_ext <<_ACEOF | |
42ecbf5e DJ |
10978 | /* confdefs.h. */ |
10979 | _ACEOF | |
10980 | cat confdefs.h >>conftest.$ac_ext | |
10981 | cat >>conftest.$ac_ext <<_ACEOF | |
10982 | /* end confdefs.h. */ | |
10983 | ||
d7040cdb SE |
10984 | /* Override any gcc2 internal prototype to avoid an error. */ |
10985 | #ifdef __cplusplus | |
10986 | extern "C" | |
10987 | #endif | |
10988 | /* We use char because int might match the return type of a gcc2 | |
10989 | builtin and then its argument prototype would still apply. */ | |
10990 | char yywrap (); | |
42ecbf5e DJ |
10991 | int |
10992 | main () | |
10993 | { | |
d7040cdb | 10994 | yywrap (); |
42ecbf5e DJ |
10995 | ; |
10996 | return 0; | |
10997 | } | |
10998 | _ACEOF | |
d7040cdb SE |
10999 | rm -f conftest.$ac_objext conftest$ac_exeext |
11000 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11001 | (eval $ac_link) 2>conftest.er1 | |
42ecbf5e DJ |
11002 | ac_status=$? |
11003 | grep -v '^ *+' conftest.er1 >conftest.err | |
11004 | rm -f conftest.er1 | |
11005 | cat conftest.err >&5 | |
11006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11007 | (exit $ac_status); } && | |
502bdb00 JW |
11008 | { ac_try='test -z "$ac_c_werror_flag" |
11009 | || test ! -s conftest.err' | |
42ecbf5e DJ |
11010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11011 | (eval $ac_try) 2>&5 | |
11012 | ac_status=$? | |
11013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11014 | (exit $ac_status); }; } && | |
d7040cdb | 11015 | { ac_try='test -s conftest$ac_exeext' |
42ecbf5e DJ |
11016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11017 | (eval $ac_try) 2>&5 | |
11018 | ac_status=$? | |
11019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11020 | (exit $ac_status); }; }; then | |
d7040cdb | 11021 | ac_cv_lib_fl_yywrap=yes |
42ecbf5e DJ |
11022 | else |
11023 | echo "$as_me: failed program was:" >&5 | |
11024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11025 | ||
d7040cdb | 11026 | ac_cv_lib_fl_yywrap=no |
42ecbf5e | 11027 | fi |
d7040cdb SE |
11028 | rm -f conftest.err conftest.$ac_objext \ |
11029 | conftest$ac_exeext conftest.$ac_ext | |
11030 | LIBS=$ac_check_lib_save_LIBS | |
42ecbf5e | 11031 | fi |
d7040cdb SE |
11032 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
11033 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 | |
11034 | if test $ac_cv_lib_fl_yywrap = yes; then | |
11035 | LEXLIB="-lfl" | |
20e95c23 | 11036 | else |
d7040cdb SE |
11037 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
11038 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 | |
11039 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | |
11040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 11041 | else |
d7040cdb SE |
11042 | ac_check_lib_save_LIBS=$LIBS |
11043 | LIBS="-ll $LIBS" | |
11044 | cat >conftest.$ac_ext <<_ACEOF | |
20e95c23 | 11045 | /* confdefs.h. */ |
42ecbf5e | 11046 | _ACEOF |
20e95c23 DJ |
11047 | cat confdefs.h >>conftest.$ac_ext |
11048 | cat >>conftest.$ac_ext <<_ACEOF | |
11049 | /* end confdefs.h. */ | |
20e95c23 | 11050 | |
d7040cdb SE |
11051 | /* Override any gcc2 internal prototype to avoid an error. */ |
11052 | #ifdef __cplusplus | |
11053 | extern "C" | |
11054 | #endif | |
11055 | /* We use char because int might match the return type of a gcc2 | |
11056 | builtin and then its argument prototype would still apply. */ | |
11057 | char yywrap (); | |
20e95c23 DJ |
11058 | int |
11059 | main () | |
11060 | { | |
d7040cdb SE |
11061 | yywrap (); |
11062 | ; | |
11063 | return 0; | |
20e95c23 DJ |
11064 | } |
11065 | _ACEOF | |
d7040cdb | 11066 | rm -f conftest.$ac_objext conftest$ac_exeext |
20e95c23 | 11067 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
d7040cdb | 11068 | (eval $ac_link) 2>conftest.er1 |
42ecbf5e | 11069 | ac_status=$? |
d7040cdb SE |
11070 | grep -v '^ *+' conftest.er1 >conftest.err |
11071 | rm -f conftest.er1 | |
11072 | cat conftest.err >&5 | |
42ecbf5e | 11073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d7040cdb SE |
11074 | (exit $ac_status); } && |
11075 | { ac_try='test -z "$ac_c_werror_flag" | |
11076 | || test ! -s conftest.err' | |
11077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11078 | (eval $ac_try) 2>&5 | |
11079 | ac_status=$? | |
11080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11081 | (exit $ac_status); }; } && | |
11082 | { ac_try='test -s conftest$ac_exeext' | |
20e95c23 DJ |
11083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11084 | (eval $ac_try) 2>&5 | |
11085 | ac_status=$? | |
11086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11087 | (exit $ac_status); }; }; then | |
d7040cdb | 11088 | ac_cv_lib_l_yywrap=yes |
252b5132 | 11089 | else |
d7040cdb | 11090 | echo "$as_me: failed program was:" >&5 |
20e95c23 DJ |
11091 | sed 's/^/| /' conftest.$ac_ext >&5 |
11092 | ||
d7040cdb | 11093 | ac_cv_lib_l_yywrap=no |
252b5132 | 11094 | fi |
d7040cdb SE |
11095 | rm -f conftest.err conftest.$ac_objext \ |
11096 | conftest$ac_exeext conftest.$ac_ext | |
11097 | LIBS=$ac_check_lib_save_LIBS | |
20e95c23 | 11098 | fi |
d7040cdb SE |
11099 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
11100 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 | |
11101 | if test $ac_cv_lib_l_yywrap = yes; then | |
11102 | LEXLIB="-ll" | |
20e95c23 | 11103 | fi |
20e95c23 DJ |
11104 | |
11105 | fi | |
11106 | ||
d7040cdb | 11107 | fi |
20e95c23 | 11108 | |
d7040cdb SE |
11109 | if test "x$LEX" != "x:"; then |
11110 | echo "$as_me:$LINENO: checking lex output file root" >&5 | |
11111 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 | |
11112 | if test "${ac_cv_prog_lex_root+set}" = set; then | |
42ecbf5e | 11113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 11114 | else |
d7040cdb SE |
11115 | # The minimal lex program is just a single line: %%. But some broken lexes |
11116 | # (Solaris, I think it was) want two %% lines, so accommodate them. | |
11117 | cat >conftest.l <<_ACEOF | |
11118 | %% | |
11119 | %% | |
42ecbf5e | 11120 | _ACEOF |
d7040cdb SE |
11121 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
11122 | (eval $LEX conftest.l) 2>&5 | |
11123 | ac_status=$? | |
11124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11125 | (exit $ac_status); } | |
11126 | if test -f lex.yy.c; then | |
11127 | ac_cv_prog_lex_root=lex.yy | |
11128 | elif test -f lexyy.c; then | |
11129 | ac_cv_prog_lex_root=lexyy | |
11130 | else | |
11131 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 | |
11132 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | |
11133 | { (exit 1); exit 1; }; } | |
11134 | fi | |
11135 | fi | |
11136 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 | |
11137 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 | |
11138 | rm -f conftest.l | |
11139 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
20e95c23 | 11140 | |
d7040cdb SE |
11141 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
11142 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 | |
11143 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | |
11144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11145 | else | |
11146 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
11147 | # default is implementation-dependent. Figure out which it is, since | |
11148 | # not all implementations provide the %pointer and %array declarations. | |
11149 | ac_cv_prog_lex_yytext_pointer=no | |
11150 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | |
11151 | ac_save_LIBS=$LIBS | |
11152 | LIBS="$LIBS $LEXLIB" | |
11153 | cat >conftest.$ac_ext <<_ACEOF | |
11154 | `cat $LEX_OUTPUT_ROOT.c` | |
20e95c23 | 11155 | _ACEOF |
d7040cdb SE |
11156 | rm -f conftest.$ac_objext conftest$ac_exeext |
11157 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11158 | (eval $ac_link) 2>conftest.er1 | |
42ecbf5e DJ |
11159 | ac_status=$? |
11160 | grep -v '^ *+' conftest.er1 >conftest.err | |
11161 | rm -f conftest.er1 | |
11162 | cat conftest.err >&5 | |
11163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11164 | (exit $ac_status); } && | |
502bdb00 JW |
11165 | { ac_try='test -z "$ac_c_werror_flag" |
11166 | || test ! -s conftest.err' | |
42ecbf5e DJ |
11167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11168 | (eval $ac_try) 2>&5 | |
11169 | ac_status=$? | |
11170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11171 | (exit $ac_status); }; } && | |
d7040cdb | 11172 | { ac_try='test -s conftest$ac_exeext' |
42ecbf5e DJ |
11173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11174 | (eval $ac_try) 2>&5 | |
11175 | ac_status=$? | |
11176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11177 | (exit $ac_status); }; }; then | |
d7040cdb SE |
11178 | ac_cv_prog_lex_yytext_pointer=yes |
11179 | else | |
11180 | echo "$as_me: failed program was:" >&5 | |
11181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11182 | ||
11183 | fi | |
11184 | rm -f conftest.err conftest.$ac_objext \ | |
11185 | conftest$ac_exeext conftest.$ac_ext | |
11186 | LIBS=$ac_save_LIBS | |
11187 | rm -f "${LEX_OUTPUT_ROOT}.c" | |
11188 | ||
11189 | fi | |
11190 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 | |
11191 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 | |
11192 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
11193 | ||
11194 | cat >>confdefs.h <<\_ACEOF | |
11195 | #define YYTEXT_POINTER 1 | |
11196 | _ACEOF | |
11197 | ||
11198 | fi | |
11199 | ||
11200 | fi | |
11201 | if test "$LEX" = :; then | |
11202 | LEX=${am_missing_run}flex | |
11203 | fi | |
11204 | ||
11205 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
11206 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
11207 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
11208 | if test "${enable_maintainer_mode+set}" = set; then | |
11209 | enableval="$enable_maintainer_mode" | |
11210 | USE_MAINTAINER_MODE=$enableval | |
252b5132 | 11211 | else |
d7040cdb SE |
11212 | USE_MAINTAINER_MODE=no |
11213 | fi; | |
11214 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
11215 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
42ecbf5e | 11216 | |
d7040cdb SE |
11217 | |
11218 | if test $USE_MAINTAINER_MODE = yes; then | |
11219 | MAINTAINER_MODE_TRUE= | |
11220 | MAINTAINER_MODE_FALSE='#' | |
11221 | else | |
11222 | MAINTAINER_MODE_TRUE='#' | |
11223 | MAINTAINER_MODE_FALSE= | |
252b5132 | 11224 | fi |
252b5132 | 11225 | |
d7040cdb SE |
11226 | MAINT=$MAINTAINER_MODE_TRUE |
11227 | ||
11228 | ||
11229 | ||
11230 | ||
11231 | if false; then | |
11232 | GENINSRC_NEVER_TRUE= | |
11233 | GENINSRC_NEVER_FALSE='#' | |
11234 | else | |
11235 | GENINSRC_NEVER_TRUE='#' | |
11236 | GENINSRC_NEVER_FALSE= | |
252b5132 RH |
11237 | fi |
11238 | ||
d7040cdb SE |
11239 | |
11240 | . ${srcdir}/configure.host | |
11241 | ||
11242 | ||
11243 | ||
11244 | ||
252b5132 RH |
11245 | |
11246 | ||
42ecbf5e DJ |
11247 | |
11248 | ||
11249 | ||
11250 | ||
ebe1fac1 | 11251 | |
a3ffa599 L |
11252 | |
11253 | ||
11254 | for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h | |
252b5132 | 11255 | do |
42ecbf5e DJ |
11256 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11257 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11258 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11259 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11260 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11262 | fi | |
11263 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11264 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11265 | else | |
11266 | # Is the header compilable? | |
11267 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11268 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11269 | cat >conftest.$ac_ext <<_ACEOF | |
11270 | /* confdefs.h. */ | |
11271 | _ACEOF | |
11272 | cat confdefs.h >>conftest.$ac_ext | |
11273 | cat >>conftest.$ac_ext <<_ACEOF | |
11274 | /* end confdefs.h. */ | |
11275 | $ac_includes_default | |
11276 | #include <$ac_header> | |
11277 | _ACEOF | |
11278 | rm -f conftest.$ac_objext | |
11279 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11280 | (eval $ac_compile) 2>conftest.er1 | |
11281 | ac_status=$? | |
11282 | grep -v '^ *+' conftest.er1 >conftest.err | |
11283 | rm -f conftest.er1 | |
11284 | cat conftest.err >&5 | |
11285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11286 | (exit $ac_status); } && | |
502bdb00 JW |
11287 | { ac_try='test -z "$ac_c_werror_flag" |
11288 | || test ! -s conftest.err' | |
42ecbf5e DJ |
11289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11290 | (eval $ac_try) 2>&5 | |
11291 | ac_status=$? | |
11292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11293 | (exit $ac_status); }; } && | |
11294 | { ac_try='test -s conftest.$ac_objext' | |
11295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11296 | (eval $ac_try) 2>&5 | |
11297 | ac_status=$? | |
11298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11299 | (exit $ac_status); }; }; then | |
11300 | ac_header_compiler=yes | |
11301 | else | |
11302 | echo "$as_me: failed program was:" >&5 | |
11303 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11304 | ||
11305 | ac_header_compiler=no | |
11306 | fi | |
11307 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11308 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11309 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11310 | ||
11311 | # Is the header present? | |
11312 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11313 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11314 | cat >conftest.$ac_ext <<_ACEOF | |
11315 | /* confdefs.h. */ | |
11316 | _ACEOF | |
11317 | cat confdefs.h >>conftest.$ac_ext | |
11318 | cat >>conftest.$ac_ext <<_ACEOF | |
11319 | /* end confdefs.h. */ | |
11320 | #include <$ac_header> | |
11321 | _ACEOF | |
11322 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11323 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11324 | ac_status=$? | |
11325 | grep -v '^ *+' conftest.er1 >conftest.err | |
11326 | rm -f conftest.er1 | |
11327 | cat conftest.err >&5 | |
11328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11329 | (exit $ac_status); } >/dev/null; then | |
11330 | if test -s conftest.err; then | |
11331 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11332 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11333 | else | |
11334 | ac_cpp_err= | |
11335 | fi | |
252b5132 | 11336 | else |
42ecbf5e | 11337 | ac_cpp_err=yes |
252b5132 | 11338 | fi |
42ecbf5e DJ |
11339 | if test -z "$ac_cpp_err"; then |
11340 | ac_header_preproc=yes | |
11341 | else | |
11342 | echo "$as_me: failed program was:" >&5 | |
11343 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11344 | ||
11345 | ac_header_preproc=no | |
252b5132 | 11346 | fi |
42ecbf5e DJ |
11347 | rm -f conftest.err conftest.$ac_ext |
11348 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11349 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11350 | ||
11351 | # So? What about this header? | |
11352 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11353 | yes:no: ) | |
11354 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11355 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11356 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11357 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11358 | ac_header_preproc=yes | |
11359 | ;; | |
11360 | no:yes:* ) | |
11361 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11362 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11363 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11364 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11365 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11366 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11367 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11368 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11369 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11370 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11371 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11372 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11373 | ( | |
11374 | cat <<\_ASBOX | |
11375 | ## ------------------------------------------ ## | |
11376 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11377 | ## ------------------------------------------ ## | |
11378 | _ASBOX | |
11379 | ) | | |
11380 | sed "s/^/$as_me: WARNING: /" >&2 | |
11381 | ;; | |
11382 | esac | |
11383 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11384 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11385 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 11387 | else |
42ecbf5e DJ |
11388 | eval "$as_ac_Header=\$ac_header_preproc" |
11389 | fi | |
11390 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11391 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11392 | ||
252b5132 | 11393 | fi |
42ecbf5e DJ |
11394 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11395 | cat >>confdefs.h <<_ACEOF | |
11396 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11397 | _ACEOF | |
11398 | ||
11399 | fi | |
11400 | ||
252b5132 RH |
11401 | done |
11402 | ||
42ecbf5e DJ |
11403 | |
11404 | ||
11405 | ||
dc27aea4 AM |
11406 | |
11407 | ||
11408 | for ac_func in glob mkstemp realpath sbrk waitpid | |
252b5132 | 11409 | do |
42ecbf5e DJ |
11410 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
11411 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11412 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
11413 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
11414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11415 | else | |
11416 | cat >conftest.$ac_ext <<_ACEOF | |
11417 | /* confdefs.h. */ | |
11418 | _ACEOF | |
11419 | cat confdefs.h >>conftest.$ac_ext | |
11420 | cat >>conftest.$ac_ext <<_ACEOF | |
11421 | /* end confdefs.h. */ | |
11422 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11423 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11424 | #define $ac_func innocuous_$ac_func | |
11425 | ||
252b5132 | 11426 | /* System header to define __stub macros and hopefully few prototypes, |
42ecbf5e DJ |
11427 | which can conflict with char $ac_func (); below. |
11428 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11429 | <limits.h> exists even on freestanding compilers. */ | |
11430 | ||
11431 | #ifdef __STDC__ | |
11432 | # include <limits.h> | |
11433 | #else | |
11434 | # include <assert.h> | |
11435 | #endif | |
d15b04bd | 11436 | |
42ecbf5e | 11437 | #undef $ac_func |
d15b04bd | 11438 | |
42ecbf5e DJ |
11439 | /* Override any gcc2 internal prototype to avoid an error. */ |
11440 | #ifdef __cplusplus | |
11441 | extern "C" | |
11442 | { | |
11443 | #endif | |
11444 | /* We use char because int might match the return type of a gcc2 | |
11445 | builtin and then its argument prototype would still apply. */ | |
11446 | char $ac_func (); | |
252b5132 RH |
11447 | /* The GNU C library defines this for functions which it implements |
11448 | to always fail with ENOSYS. Some functions are actually named | |
11449 | something starting with __ and the normal name is an alias. */ | |
11450 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11451 | choke me | |
11452 | #else | |
42ecbf5e DJ |
11453 | char (*f) () = $ac_func; |
11454 | #endif | |
11455 | #ifdef __cplusplus | |
11456 | } | |
252b5132 RH |
11457 | #endif |
11458 | ||
42ecbf5e DJ |
11459 | int |
11460 | main () | |
11461 | { | |
11462 | return f != $ac_func; | |
11463 | ; | |
11464 | return 0; | |
11465 | } | |
11466 | _ACEOF | |
11467 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11468 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11469 | (eval $ac_link) 2>conftest.er1 | |
11470 | ac_status=$? | |
11471 | grep -v '^ *+' conftest.er1 >conftest.err | |
11472 | rm -f conftest.er1 | |
11473 | cat conftest.err >&5 | |
11474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11475 | (exit $ac_status); } && | |
502bdb00 JW |
11476 | { ac_try='test -z "$ac_c_werror_flag" |
11477 | || test ! -s conftest.err' | |
42ecbf5e DJ |
11478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11479 | (eval $ac_try) 2>&5 | |
11480 | ac_status=$? | |
11481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11482 | (exit $ac_status); }; } && | |
11483 | { ac_try='test -s conftest$ac_exeext' | |
11484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11485 | (eval $ac_try) 2>&5 | |
11486 | ac_status=$? | |
11487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11488 | (exit $ac_status); }; }; then | |
11489 | eval "$as_ac_var=yes" | |
11490 | else | |
11491 | echo "$as_me: failed program was:" >&5 | |
11492 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11493 | ||
11494 | eval "$as_ac_var=no" | |
11495 | fi | |
11496 | rm -f conftest.err conftest.$ac_objext \ | |
11497 | conftest$ac_exeext conftest.$ac_ext | |
11498 | fi | |
11499 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
11500 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
11501 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
11502 | cat >>confdefs.h <<_ACEOF | |
11503 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11504 | _ACEOF | |
252b5132 | 11505 | |
252b5132 RH |
11506 | fi |
11507 | done | |
11508 | ||
42ecbf5e DJ |
11509 | |
11510 | ||
11511 | ||
11512 | ||
11513 | ||
252b5132 | 11514 | ac_header_dirent=no |
42ecbf5e DJ |
11515 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
11516 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
11517 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
11518 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
11519 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11521 | else | |
11522 | cat >conftest.$ac_ext <<_ACEOF | |
11523 | /* confdefs.h. */ | |
11524 | _ACEOF | |
11525 | cat confdefs.h >>conftest.$ac_ext | |
11526 | cat >>conftest.$ac_ext <<_ACEOF | |
11527 | /* end confdefs.h. */ | |
252b5132 RH |
11528 | #include <sys/types.h> |
11529 | #include <$ac_hdr> | |
42ecbf5e DJ |
11530 | |
11531 | int | |
11532 | main () | |
11533 | { | |
11534 | if ((DIR *) 0) | |
11535 | return 0; | |
11536 | ; | |
11537 | return 0; | |
11538 | } | |
11539 | _ACEOF | |
11540 | rm -f conftest.$ac_objext | |
11541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11542 | (eval $ac_compile) 2>conftest.er1 | |
11543 | ac_status=$? | |
11544 | grep -v '^ *+' conftest.er1 >conftest.err | |
11545 | rm -f conftest.er1 | |
11546 | cat conftest.err >&5 | |
11547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11548 | (exit $ac_status); } && | |
502bdb00 JW |
11549 | { ac_try='test -z "$ac_c_werror_flag" |
11550 | || test ! -s conftest.err' | |
42ecbf5e DJ |
11551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11552 | (eval $ac_try) 2>&5 | |
11553 | ac_status=$? | |
11554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11555 | (exit $ac_status); }; } && | |
11556 | { ac_try='test -s conftest.$ac_objext' | |
11557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11558 | (eval $ac_try) 2>&5 | |
11559 | ac_status=$? | |
11560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11561 | (exit $ac_status); }; }; then | |
11562 | eval "$as_ac_Header=yes" | |
11563 | else | |
11564 | echo "$as_me: failed program was:" >&5 | |
11565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11566 | ||
11567 | eval "$as_ac_Header=no" | |
11568 | fi | |
11569 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11570 | fi | |
11571 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11572 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11573 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11574 | cat >>confdefs.h <<_ACEOF | |
11575 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
11576 | _ACEOF | |
11577 | ||
11578 | ac_header_dirent=$ac_hdr; break | |
d15b04bd | 11579 | fi |
42ecbf5e | 11580 | |
d15b04bd L |
11581 | done |
11582 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
11583 | if test $ac_header_dirent = dirent.h; then | |
42ecbf5e DJ |
11584 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
11585 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
11586 | if test "${ac_cv_search_opendir+set}" = set; then | |
11587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11588 | else | |
11589 | ac_func_search_save_LIBS=$LIBS | |
11590 | ac_cv_search_opendir=no | |
11591 | cat >conftest.$ac_ext <<_ACEOF | |
11592 | /* confdefs.h. */ | |
11593 | _ACEOF | |
11594 | cat confdefs.h >>conftest.$ac_ext | |
11595 | cat >>conftest.$ac_ext <<_ACEOF | |
11596 | /* end confdefs.h. */ | |
11597 | ||
e5a52504 | 11598 | /* Override any gcc2 internal prototype to avoid an error. */ |
42ecbf5e DJ |
11599 | #ifdef __cplusplus |
11600 | extern "C" | |
11601 | #endif | |
e5a52504 | 11602 | /* We use char because int might match the return type of a gcc2 |
42ecbf5e DJ |
11603 | builtin and then its argument prototype would still apply. */ |
11604 | char opendir (); | |
11605 | int | |
11606 | main () | |
11607 | { | |
11608 | opendir (); | |
11609 | ; | |
11610 | return 0; | |
11611 | } | |
11612 | _ACEOF | |
11613 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11614 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11615 | (eval $ac_link) 2>conftest.er1 | |
11616 | ac_status=$? | |
11617 | grep -v '^ *+' conftest.er1 >conftest.err | |
11618 | rm -f conftest.er1 | |
11619 | cat conftest.err >&5 | |
11620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11621 | (exit $ac_status); } && | |
502bdb00 JW |
11622 | { ac_try='test -z "$ac_c_werror_flag" |
11623 | || test ! -s conftest.err' | |
42ecbf5e DJ |
11624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11625 | (eval $ac_try) 2>&5 | |
11626 | ac_status=$? | |
11627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11628 | (exit $ac_status); }; } && | |
11629 | { ac_try='test -s conftest$ac_exeext' | |
11630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11631 | (eval $ac_try) 2>&5 | |
11632 | ac_status=$? | |
11633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11634 | (exit $ac_status); }; }; then | |
11635 | ac_cv_search_opendir="none required" | |
11636 | else | |
11637 | echo "$as_me: failed program was:" >&5 | |
11638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11639 | ||
11640 | fi | |
11641 | rm -f conftest.err conftest.$ac_objext \ | |
11642 | conftest$ac_exeext conftest.$ac_ext | |
11643 | if test "$ac_cv_search_opendir" = no; then | |
11644 | for ac_lib in dir; do | |
11645 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11646 | cat >conftest.$ac_ext <<_ACEOF | |
11647 | /* confdefs.h. */ | |
11648 | _ACEOF | |
11649 | cat confdefs.h >>conftest.$ac_ext | |
11650 | cat >>conftest.$ac_ext <<_ACEOF | |
11651 | /* end confdefs.h. */ | |
e5a52504 | 11652 | |
42ecbf5e DJ |
11653 | /* Override any gcc2 internal prototype to avoid an error. */ |
11654 | #ifdef __cplusplus | |
11655 | extern "C" | |
11656 | #endif | |
11657 | /* We use char because int might match the return type of a gcc2 | |
11658 | builtin and then its argument prototype would still apply. */ | |
11659 | char opendir (); | |
11660 | int | |
11661 | main () | |
11662 | { | |
11663 | opendir (); | |
11664 | ; | |
11665 | return 0; | |
11666 | } | |
11667 | _ACEOF | |
11668 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11669 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11670 | (eval $ac_link) 2>conftest.er1 | |
11671 | ac_status=$? | |
11672 | grep -v '^ *+' conftest.er1 >conftest.err | |
11673 | rm -f conftest.er1 | |
11674 | cat conftest.err >&5 | |
11675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11676 | (exit $ac_status); } && | |
502bdb00 JW |
11677 | { ac_try='test -z "$ac_c_werror_flag" |
11678 | || test ! -s conftest.err' | |
42ecbf5e DJ |
11679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11680 | (eval $ac_try) 2>&5 | |
11681 | ac_status=$? | |
11682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11683 | (exit $ac_status); }; } && | |
11684 | { ac_try='test -s conftest$ac_exeext' | |
11685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11686 | (eval $ac_try) 2>&5 | |
11687 | ac_status=$? | |
11688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11689 | (exit $ac_status); }; }; then | |
11690 | ac_cv_search_opendir="-l$ac_lib" | |
11691 | break | |
11692 | else | |
11693 | echo "$as_me: failed program was:" >&5 | |
11694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11695 | ||
11696 | fi | |
11697 | rm -f conftest.err conftest.$ac_objext \ | |
11698 | conftest$ac_exeext conftest.$ac_ext | |
11699 | done | |
252b5132 | 11700 | fi |
42ecbf5e DJ |
11701 | LIBS=$ac_func_search_save_LIBS |
11702 | fi | |
11703 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
11704 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
11705 | if test "$ac_cv_search_opendir" != no; then | |
11706 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
11707 | ||
d15b04bd | 11708 | fi |
252b5132 RH |
11709 | |
11710 | else | |
42ecbf5e DJ |
11711 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
11712 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
11713 | if test "${ac_cv_search_opendir+set}" = set; then | |
11714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 11715 | else |
42ecbf5e DJ |
11716 | ac_func_search_save_LIBS=$LIBS |
11717 | ac_cv_search_opendir=no | |
11718 | cat >conftest.$ac_ext <<_ACEOF | |
11719 | /* confdefs.h. */ | |
11720 | _ACEOF | |
11721 | cat confdefs.h >>conftest.$ac_ext | |
11722 | cat >>conftest.$ac_ext <<_ACEOF | |
11723 | /* end confdefs.h. */ | |
11724 | ||
252b5132 | 11725 | /* Override any gcc2 internal prototype to avoid an error. */ |
42ecbf5e DJ |
11726 | #ifdef __cplusplus |
11727 | extern "C" | |
11728 | #endif | |
252b5132 | 11729 | /* We use char because int might match the return type of a gcc2 |
42ecbf5e DJ |
11730 | builtin and then its argument prototype would still apply. */ |
11731 | char opendir (); | |
11732 | int | |
11733 | main () | |
11734 | { | |
11735 | opendir (); | |
11736 | ; | |
11737 | return 0; | |
11738 | } | |
11739 | _ACEOF | |
11740 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11741 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11742 | (eval $ac_link) 2>conftest.er1 | |
11743 | ac_status=$? | |
11744 | grep -v '^ *+' conftest.er1 >conftest.err | |
11745 | rm -f conftest.er1 | |
11746 | cat conftest.err >&5 | |
11747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11748 | (exit $ac_status); } && | |
502bdb00 JW |
11749 | { ac_try='test -z "$ac_c_werror_flag" |
11750 | || test ! -s conftest.err' | |
42ecbf5e DJ |
11751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11752 | (eval $ac_try) 2>&5 | |
11753 | ac_status=$? | |
11754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11755 | (exit $ac_status); }; } && | |
11756 | { ac_try='test -s conftest$ac_exeext' | |
11757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11758 | (eval $ac_try) 2>&5 | |
11759 | ac_status=$? | |
11760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11761 | (exit $ac_status); }; }; then | |
11762 | ac_cv_search_opendir="none required" | |
11763 | else | |
11764 | echo "$as_me: failed program was:" >&5 | |
11765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11766 | ||
11767 | fi | |
11768 | rm -f conftest.err conftest.$ac_objext \ | |
11769 | conftest$ac_exeext conftest.$ac_ext | |
11770 | if test "$ac_cv_search_opendir" = no; then | |
11771 | for ac_lib in x; do | |
11772 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11773 | cat >conftest.$ac_ext <<_ACEOF | |
11774 | /* confdefs.h. */ | |
11775 | _ACEOF | |
11776 | cat confdefs.h >>conftest.$ac_ext | |
11777 | cat >>conftest.$ac_ext <<_ACEOF | |
11778 | /* end confdefs.h. */ | |
252b5132 | 11779 | |
42ecbf5e DJ |
11780 | /* Override any gcc2 internal prototype to avoid an error. */ |
11781 | #ifdef __cplusplus | |
11782 | extern "C" | |
11783 | #endif | |
11784 | /* We use char because int might match the return type of a gcc2 | |
11785 | builtin and then its argument prototype would still apply. */ | |
11786 | char opendir (); | |
11787 | int | |
11788 | main () | |
11789 | { | |
11790 | opendir (); | |
11791 | ; | |
11792 | return 0; | |
11793 | } | |
11794 | _ACEOF | |
11795 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11796 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11797 | (eval $ac_link) 2>conftest.er1 | |
11798 | ac_status=$? | |
11799 | grep -v '^ *+' conftest.er1 >conftest.err | |
11800 | rm -f conftest.er1 | |
11801 | cat conftest.err >&5 | |
11802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11803 | (exit $ac_status); } && | |
502bdb00 JW |
11804 | { ac_try='test -z "$ac_c_werror_flag" |
11805 | || test ! -s conftest.err' | |
42ecbf5e DJ |
11806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11807 | (eval $ac_try) 2>&5 | |
11808 | ac_status=$? | |
11809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11810 | (exit $ac_status); }; } && | |
11811 | { ac_try='test -s conftest$ac_exeext' | |
11812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11813 | (eval $ac_try) 2>&5 | |
11814 | ac_status=$? | |
11815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11816 | (exit $ac_status); }; }; then | |
11817 | ac_cv_search_opendir="-l$ac_lib" | |
11818 | break | |
11819 | else | |
11820 | echo "$as_me: failed program was:" >&5 | |
11821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11822 | ||
11823 | fi | |
11824 | rm -f conftest.err conftest.$ac_objext \ | |
11825 | conftest$ac_exeext conftest.$ac_ext | |
11826 | done | |
252b5132 | 11827 | fi |
42ecbf5e | 11828 | LIBS=$ac_func_search_save_LIBS |
252b5132 | 11829 | fi |
42ecbf5e DJ |
11830 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
11831 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
11832 | if test "$ac_cv_search_opendir" != no; then | |
11833 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
11834 | ||
d15b04bd | 11835 | fi |
252b5132 RH |
11836 | |
11837 | fi | |
11838 | ||
11839 | ||
42ecbf5e DJ |
11840 | echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5 |
11841 | echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6 | |
11842 | if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then | |
11843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34875e64 | 11844 | else |
42ecbf5e DJ |
11845 | cat >conftest.$ac_ext <<_ACEOF |
11846 | /* confdefs.h. */ | |
11847 | _ACEOF | |
11848 | cat confdefs.h >>conftest.$ac_ext | |
11849 | cat >>conftest.$ac_ext <<_ACEOF | |
11850 | /* end confdefs.h. */ | |
34875e64 | 11851 | #include <unistd.h> |
42ecbf5e DJ |
11852 | int |
11853 | main () | |
11854 | { | |
34875e64 | 11855 | extern int getopt (int, char *const*, const char *); |
42ecbf5e DJ |
11856 | ; |
11857 | return 0; | |
11858 | } | |
11859 | _ACEOF | |
11860 | rm -f conftest.$ac_objext | |
11861 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11862 | (eval $ac_compile) 2>conftest.er1 | |
11863 | ac_status=$? | |
11864 | grep -v '^ *+' conftest.er1 >conftest.err | |
11865 | rm -f conftest.er1 | |
11866 | cat conftest.err >&5 | |
11867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11868 | (exit $ac_status); } && | |
502bdb00 JW |
11869 | { ac_try='test -z "$ac_c_werror_flag" |
11870 | || test ! -s conftest.err' | |
42ecbf5e DJ |
11871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11872 | (eval $ac_try) 2>&5 | |
11873 | ac_status=$? | |
11874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11875 | (exit $ac_status); }; } && | |
11876 | { ac_try='test -s conftest.$ac_objext' | |
11877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11878 | (eval $ac_try) 2>&5 | |
11879 | ac_status=$? | |
11880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11881 | (exit $ac_status); }; }; then | |
34875e64 NC |
11882 | ld_cv_decl_getopt_unistd_h=yes |
11883 | else | |
42ecbf5e DJ |
11884 | echo "$as_me: failed program was:" >&5 |
11885 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11886 | ||
11887 | ld_cv_decl_getopt_unistd_h=no | |
34875e64 | 11888 | fi |
42ecbf5e | 11889 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
34875e64 NC |
11890 | fi |
11891 | ||
42ecbf5e DJ |
11892 | echo "$as_me:$LINENO: result: $ld_cv_decl_getopt_unistd_h" >&5 |
11893 | echo "${ECHO_T}$ld_cv_decl_getopt_unistd_h" >&6 | |
34875e64 | 11894 | if test $ld_cv_decl_getopt_unistd_h = yes; then |
42ecbf5e DJ |
11895 | |
11896 | cat >>confdefs.h <<\_ACEOF | |
34875e64 | 11897 | #define HAVE_DECL_GETOPT 1 |
42ecbf5e | 11898 | _ACEOF |
34875e64 NC |
11899 | |
11900 | fi | |
42ecbf5e | 11901 | |
252b5132 RH |
11902 | |
11903 | case "${host}" in | |
a8100d5b | 11904 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) |
42ecbf5e DJ |
11905 | |
11906 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 11907 | #define USE_BINARY_FOPEN 1 |
42ecbf5e | 11908 | _ACEOF |
252b5132 RH |
11909 | ;; |
11910 | esac | |
11911 | ||
502bdb00 JW |
11912 | echo "$as_me:$LINENO: checking whether strstr is declared" >&5 |
11913 | echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6 | |
11914 | if test "${ac_cv_have_decl_strstr+set}" = set; then | |
42ecbf5e | 11915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 11916 | else |
42ecbf5e DJ |
11917 | cat >conftest.$ac_ext <<_ACEOF |
11918 | /* confdefs.h. */ | |
11919 | _ACEOF | |
11920 | cat confdefs.h >>conftest.$ac_ext | |
11921 | cat >>conftest.$ac_ext <<_ACEOF | |
11922 | /* end confdefs.h. */ | |
502bdb00 | 11923 | $ac_includes_default |
42ecbf5e DJ |
11924 | int |
11925 | main () | |
11926 | { | |
502bdb00 JW |
11927 | #ifndef strstr |
11928 | char *p = (char *) strstr; | |
11929 | #endif | |
11930 | ||
42ecbf5e DJ |
11931 | ; |
11932 | return 0; | |
11933 | } | |
11934 | _ACEOF | |
11935 | rm -f conftest.$ac_objext | |
11936 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11937 | (eval $ac_compile) 2>conftest.er1 | |
11938 | ac_status=$? | |
11939 | grep -v '^ *+' conftest.er1 >conftest.err | |
11940 | rm -f conftest.er1 | |
11941 | cat conftest.err >&5 | |
11942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11943 | (exit $ac_status); } && | |
502bdb00 JW |
11944 | { ac_try='test -z "$ac_c_werror_flag" |
11945 | || test ! -s conftest.err' | |
42ecbf5e DJ |
11946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11947 | (eval $ac_try) 2>&5 | |
11948 | ac_status=$? | |
11949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11950 | (exit $ac_status); }; } && | |
11951 | { ac_try='test -s conftest.$ac_objext' | |
11952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11953 | (eval $ac_try) 2>&5 | |
11954 | ac_status=$? | |
11955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11956 | (exit $ac_status); }; }; then | |
502bdb00 | 11957 | ac_cv_have_decl_strstr=yes |
252b5132 | 11958 | else |
42ecbf5e DJ |
11959 | echo "$as_me: failed program was:" >&5 |
11960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11961 | ||
502bdb00 | 11962 | ac_cv_have_decl_strstr=no |
252b5132 | 11963 | fi |
42ecbf5e | 11964 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 11965 | fi |
502bdb00 JW |
11966 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5 |
11967 | echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6 | |
11968 | if test $ac_cv_have_decl_strstr = yes; then | |
252b5132 | 11969 | |
502bdb00 JW |
11970 | cat >>confdefs.h <<_ACEOF |
11971 | #define HAVE_DECL_STRSTR 1 | |
11972 | _ACEOF | |
42ecbf5e | 11973 | |
502bdb00 JW |
11974 | |
11975 | else | |
11976 | cat >>confdefs.h <<_ACEOF | |
11977 | #define HAVE_DECL_STRSTR 0 | |
42ecbf5e | 11978 | _ACEOF |
252b5132 | 11979 | |
252b5132 | 11980 | |
502bdb00 JW |
11981 | fi |
11982 | echo "$as_me:$LINENO: checking whether free is declared" >&5 | |
11983 | echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6 | |
11984 | if test "${ac_cv_have_decl_free+set}" = set; then | |
42ecbf5e | 11985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 11986 | else |
42ecbf5e DJ |
11987 | cat >conftest.$ac_ext <<_ACEOF |
11988 | /* confdefs.h. */ | |
11989 | _ACEOF | |
11990 | cat confdefs.h >>conftest.$ac_ext | |
11991 | cat >>conftest.$ac_ext <<_ACEOF | |
11992 | /* end confdefs.h. */ | |
502bdb00 | 11993 | $ac_includes_default |
42ecbf5e DJ |
11994 | int |
11995 | main () | |
11996 | { | |
502bdb00 JW |
11997 | #ifndef free |
11998 | char *p = (char *) free; | |
11999 | #endif | |
12000 | ||
42ecbf5e DJ |
12001 | ; |
12002 | return 0; | |
12003 | } | |
12004 | _ACEOF | |
12005 | rm -f conftest.$ac_objext | |
12006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12007 | (eval $ac_compile) 2>conftest.er1 | |
12008 | ac_status=$? | |
12009 | grep -v '^ *+' conftest.er1 >conftest.err | |
12010 | rm -f conftest.er1 | |
12011 | cat conftest.err >&5 | |
12012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12013 | (exit $ac_status); } && | |
502bdb00 JW |
12014 | { ac_try='test -z "$ac_c_werror_flag" |
12015 | || test ! -s conftest.err' | |
42ecbf5e DJ |
12016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12017 | (eval $ac_try) 2>&5 | |
12018 | ac_status=$? | |
12019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12020 | (exit $ac_status); }; } && | |
12021 | { ac_try='test -s conftest.$ac_objext' | |
12022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12023 | (eval $ac_try) 2>&5 | |
12024 | ac_status=$? | |
12025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12026 | (exit $ac_status); }; }; then | |
502bdb00 | 12027 | ac_cv_have_decl_free=yes |
252b5132 | 12028 | else |
42ecbf5e DJ |
12029 | echo "$as_me: failed program was:" >&5 |
12030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12031 | ||
502bdb00 | 12032 | ac_cv_have_decl_free=no |
252b5132 | 12033 | fi |
42ecbf5e | 12034 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 12035 | fi |
502bdb00 JW |
12036 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5 |
12037 | echo "${ECHO_T}$ac_cv_have_decl_free" >&6 | |
12038 | if test $ac_cv_have_decl_free = yes; then | |
252b5132 | 12039 | |
502bdb00 JW |
12040 | cat >>confdefs.h <<_ACEOF |
12041 | #define HAVE_DECL_FREE 1 | |
12042 | _ACEOF | |
42ecbf5e | 12043 | |
502bdb00 JW |
12044 | |
12045 | else | |
12046 | cat >>confdefs.h <<_ACEOF | |
12047 | #define HAVE_DECL_FREE 0 | |
42ecbf5e | 12048 | _ACEOF |
252b5132 | 12049 | |
252b5132 | 12050 | |
502bdb00 JW |
12051 | fi |
12052 | echo "$as_me:$LINENO: checking whether sbrk is declared" >&5 | |
12053 | echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6 | |
12054 | if test "${ac_cv_have_decl_sbrk+set}" = set; then | |
42ecbf5e | 12055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 12056 | else |
42ecbf5e DJ |
12057 | cat >conftest.$ac_ext <<_ACEOF |
12058 | /* confdefs.h. */ | |
12059 | _ACEOF | |
12060 | cat confdefs.h >>conftest.$ac_ext | |
12061 | cat >>conftest.$ac_ext <<_ACEOF | |
12062 | /* end confdefs.h. */ | |
502bdb00 | 12063 | $ac_includes_default |
42ecbf5e DJ |
12064 | int |
12065 | main () | |
12066 | { | |
502bdb00 JW |
12067 | #ifndef sbrk |
12068 | char *p = (char *) sbrk; | |
12069 | #endif | |
12070 | ||
42ecbf5e DJ |
12071 | ; |
12072 | return 0; | |
12073 | } | |
12074 | _ACEOF | |
12075 | rm -f conftest.$ac_objext | |
12076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12077 | (eval $ac_compile) 2>conftest.er1 | |
12078 | ac_status=$? | |
12079 | grep -v '^ *+' conftest.er1 >conftest.err | |
12080 | rm -f conftest.er1 | |
12081 | cat conftest.err >&5 | |
12082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12083 | (exit $ac_status); } && | |
502bdb00 JW |
12084 | { ac_try='test -z "$ac_c_werror_flag" |
12085 | || test ! -s conftest.err' | |
42ecbf5e DJ |
12086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12087 | (eval $ac_try) 2>&5 | |
12088 | ac_status=$? | |
12089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12090 | (exit $ac_status); }; } && | |
12091 | { ac_try='test -s conftest.$ac_objext' | |
12092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12093 | (eval $ac_try) 2>&5 | |
12094 | ac_status=$? | |
12095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12096 | (exit $ac_status); }; }; then | |
502bdb00 | 12097 | ac_cv_have_decl_sbrk=yes |
252b5132 | 12098 | else |
42ecbf5e DJ |
12099 | echo "$as_me: failed program was:" >&5 |
12100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12101 | ||
502bdb00 | 12102 | ac_cv_have_decl_sbrk=no |
252b5132 | 12103 | fi |
42ecbf5e | 12104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 12105 | fi |
502bdb00 JW |
12106 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5 |
12107 | echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6 | |
12108 | if test $ac_cv_have_decl_sbrk = yes; then | |
12109 | ||
12110 | cat >>confdefs.h <<_ACEOF | |
12111 | #define HAVE_DECL_SBRK 1 | |
12112 | _ACEOF | |
252b5132 | 12113 | |
42ecbf5e | 12114 | |
502bdb00 JW |
12115 | else |
12116 | cat >>confdefs.h <<_ACEOF | |
12117 | #define HAVE_DECL_SBRK 0 | |
42ecbf5e | 12118 | _ACEOF |
252b5132 | 12119 | |
252b5132 | 12120 | |
502bdb00 JW |
12121 | fi |
12122 | echo "$as_me:$LINENO: checking whether getenv is declared" >&5 | |
12123 | echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6 | |
12124 | if test "${ac_cv_have_decl_getenv+set}" = set; then | |
42ecbf5e | 12125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 12126 | else |
42ecbf5e DJ |
12127 | cat >conftest.$ac_ext <<_ACEOF |
12128 | /* confdefs.h. */ | |
12129 | _ACEOF | |
12130 | cat confdefs.h >>conftest.$ac_ext | |
12131 | cat >>conftest.$ac_ext <<_ACEOF | |
12132 | /* end confdefs.h. */ | |
502bdb00 | 12133 | $ac_includes_default |
42ecbf5e DJ |
12134 | int |
12135 | main () | |
12136 | { | |
502bdb00 JW |
12137 | #ifndef getenv |
12138 | char *p = (char *) getenv; | |
12139 | #endif | |
12140 | ||
42ecbf5e DJ |
12141 | ; |
12142 | return 0; | |
12143 | } | |
12144 | _ACEOF | |
12145 | rm -f conftest.$ac_objext | |
12146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12147 | (eval $ac_compile) 2>conftest.er1 | |
12148 | ac_status=$? | |
12149 | grep -v '^ *+' conftest.er1 >conftest.err | |
12150 | rm -f conftest.er1 | |
12151 | cat conftest.err >&5 | |
12152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12153 | (exit $ac_status); } && | |
502bdb00 JW |
12154 | { ac_try='test -z "$ac_c_werror_flag" |
12155 | || test ! -s conftest.err' | |
42ecbf5e DJ |
12156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12157 | (eval $ac_try) 2>&5 | |
12158 | ac_status=$? | |
12159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12160 | (exit $ac_status); }; } && | |
12161 | { ac_try='test -s conftest.$ac_objext' | |
12162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12163 | (eval $ac_try) 2>&5 | |
12164 | ac_status=$? | |
12165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12166 | (exit $ac_status); }; }; then | |
502bdb00 | 12167 | ac_cv_have_decl_getenv=yes |
252b5132 | 12168 | else |
42ecbf5e DJ |
12169 | echo "$as_me: failed program was:" >&5 |
12170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12171 | ||
502bdb00 | 12172 | ac_cv_have_decl_getenv=no |
252b5132 | 12173 | fi |
42ecbf5e | 12174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 12175 | fi |
502bdb00 JW |
12176 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5 |
12177 | echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6 | |
12178 | if test $ac_cv_have_decl_getenv = yes; then | |
252b5132 | 12179 | |
502bdb00 JW |
12180 | cat >>confdefs.h <<_ACEOF |
12181 | #define HAVE_DECL_GETENV 1 | |
12182 | _ACEOF | |
42ecbf5e | 12183 | |
502bdb00 JW |
12184 | |
12185 | else | |
12186 | cat >>confdefs.h <<_ACEOF | |
12187 | #define HAVE_DECL_GETENV 0 | |
42ecbf5e | 12188 | _ACEOF |
252b5132 | 12189 | |
252b5132 | 12190 | |
502bdb00 JW |
12191 | fi |
12192 | echo "$as_me:$LINENO: checking whether environ is declared" >&5 | |
12193 | echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6 | |
12194 | if test "${ac_cv_have_decl_environ+set}" = set; then | |
42ecbf5e | 12195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 12196 | else |
42ecbf5e DJ |
12197 | cat >conftest.$ac_ext <<_ACEOF |
12198 | /* confdefs.h. */ | |
12199 | _ACEOF | |
12200 | cat confdefs.h >>conftest.$ac_ext | |
12201 | cat >>conftest.$ac_ext <<_ACEOF | |
12202 | /* end confdefs.h. */ | |
502bdb00 | 12203 | $ac_includes_default |
42ecbf5e DJ |
12204 | int |
12205 | main () | |
12206 | { | |
502bdb00 JW |
12207 | #ifndef environ |
12208 | char *p = (char *) environ; | |
12209 | #endif | |
12210 | ||
42ecbf5e DJ |
12211 | ; |
12212 | return 0; | |
12213 | } | |
12214 | _ACEOF | |
12215 | rm -f conftest.$ac_objext | |
12216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12217 | (eval $ac_compile) 2>conftest.er1 | |
12218 | ac_status=$? | |
12219 | grep -v '^ *+' conftest.er1 >conftest.err | |
12220 | rm -f conftest.er1 | |
12221 | cat conftest.err >&5 | |
12222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12223 | (exit $ac_status); } && | |
502bdb00 JW |
12224 | { ac_try='test -z "$ac_c_werror_flag" |
12225 | || test ! -s conftest.err' | |
42ecbf5e DJ |
12226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12227 | (eval $ac_try) 2>&5 | |
12228 | ac_status=$? | |
12229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12230 | (exit $ac_status); }; } && | |
12231 | { ac_try='test -s conftest.$ac_objext' | |
12232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12233 | (eval $ac_try) 2>&5 | |
12234 | ac_status=$? | |
12235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12236 | (exit $ac_status); }; }; then | |
502bdb00 | 12237 | ac_cv_have_decl_environ=yes |
252b5132 | 12238 | else |
42ecbf5e DJ |
12239 | echo "$as_me: failed program was:" >&5 |
12240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12241 | ||
502bdb00 | 12242 | ac_cv_have_decl_environ=no |
252b5132 | 12243 | fi |
42ecbf5e | 12244 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 12245 | fi |
502bdb00 JW |
12246 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5 |
12247 | echo "${ECHO_T}$ac_cv_have_decl_environ" >&6 | |
12248 | if test $ac_cv_have_decl_environ = yes; then | |
252b5132 | 12249 | |
502bdb00 JW |
12250 | cat >>confdefs.h <<_ACEOF |
12251 | #define HAVE_DECL_ENVIRON 1 | |
12252 | _ACEOF | |
42ecbf5e | 12253 | |
502bdb00 JW |
12254 | |
12255 | else | |
12256 | cat >>confdefs.h <<_ACEOF | |
12257 | #define HAVE_DECL_ENVIRON 0 | |
42ecbf5e | 12258 | _ACEOF |
252b5132 | 12259 | |
502bdb00 | 12260 | |
252b5132 RH |
12261 | fi |
12262 | ||
12263 | ||
502bdb00 | 12264 | |
597e2591 ILT |
12265 | # When converting linker scripts into strings for use in emulation |
12266 | # files, use astring.sed if the compiler supports ANSI string | |
12267 | # concatenation, or ostring.sed otherwise. This is to support the | |
12268 | # broken Microsoft MSVC compiler, which limits the length of string | |
12269 | # constants, while still supporting pre-ANSI compilers which do not | |
12270 | # support string concatenation. | |
42ecbf5e DJ |
12271 | echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5 |
12272 | echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6 | |
12273 | if test "${ld_cv_string_concatenation+set}" = set; then | |
12274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12275 | else | |
12276 | cat >conftest.$ac_ext <<_ACEOF | |
12277 | /* confdefs.h. */ | |
12278 | _ACEOF | |
12279 | cat confdefs.h >>conftest.$ac_ext | |
12280 | cat >>conftest.$ac_ext <<_ACEOF | |
12281 | /* end confdefs.h. */ | |
597e2591 | 12282 | |
42ecbf5e DJ |
12283 | int |
12284 | main () | |
12285 | { | |
597e2591 | 12286 | char *a = "a" "a"; |
42ecbf5e DJ |
12287 | ; |
12288 | return 0; | |
12289 | } | |
12290 | _ACEOF | |
12291 | rm -f conftest.$ac_objext | |
12292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12293 | (eval $ac_compile) 2>conftest.er1 | |
12294 | ac_status=$? | |
12295 | grep -v '^ *+' conftest.er1 >conftest.err | |
12296 | rm -f conftest.er1 | |
12297 | cat conftest.err >&5 | |
12298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12299 | (exit $ac_status); } && | |
502bdb00 JW |
12300 | { ac_try='test -z "$ac_c_werror_flag" |
12301 | || test ! -s conftest.err' | |
42ecbf5e DJ |
12302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12303 | (eval $ac_try) 2>&5 | |
12304 | ac_status=$? | |
12305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12306 | (exit $ac_status); }; } && | |
12307 | { ac_try='test -s conftest.$ac_objext' | |
12308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12309 | (eval $ac_try) 2>&5 | |
12310 | ac_status=$? | |
12311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12312 | (exit $ac_status); }; }; then | |
e4dabd0e | 12313 | ld_cv_string_concatenation=yes |
597e2591 | 12314 | else |
42ecbf5e DJ |
12315 | echo "$as_me: failed program was:" >&5 |
12316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12317 | ||
12318 | ld_cv_string_concatenation=no | |
597e2591 | 12319 | fi |
42ecbf5e | 12320 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
597e2591 ILT |
12321 | fi |
12322 | ||
42ecbf5e DJ |
12323 | echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5 |
12324 | echo "${ECHO_T}$ld_cv_string_concatenation" >&6 | |
e4dabd0e | 12325 | if test "$ld_cv_string_concatenation" = "yes"; then |
597e2591 ILT |
12326 | STRINGIFY=astring.sed |
12327 | else | |
12328 | STRINGIFY=ostring.sed | |
12329 | fi | |
12330 | ||
12331 | ||
252b5132 RH |
12332 | # target-specific stuff: |
12333 | ||
12334 | all_targets= | |
12335 | EMUL= | |
12336 | all_emuls= | |
12337 | all_emul_extras= | |
ba2be581 | 12338 | all_libpath= |
252b5132 RH |
12339 | |
12340 | rm -f tdirs | |
12341 | ||
12342 | for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'` | |
12343 | do | |
12344 | if test "$targ_alias" = "all"; then | |
12345 | all_targets=true | |
12346 | else | |
12347 | # Canonicalize the secondary target names. | |
42ecbf5e | 12348 | result=`$ac_config_sub $targ_alias 2>/dev/null` |
252b5132 RH |
12349 | if test -n "$result"; then |
12350 | targ=$result | |
12351 | else | |
12352 | targ=$targ_alias | |
12353 | fi | |
12354 | ||
12355 | . ${srcdir}/configure.tgt | |
12356 | ||
12357 | if test "$targ" = "$target"; then | |
12358 | EMUL=$targ_emul | |
12359 | fi | |
12360 | ||
314e9a4e L |
12361 | if test x${want64} = xfalse; then |
12362 | . ${srcdir}/../bfd/config.bfd | |
12363 | fi | |
12364 | ||
534d3119 L |
12365 | if test x${want64} = xtrue; then |
12366 | targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls" | |
12367 | targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath" | |
12368 | fi | |
12369 | ||
3336653a | 12370 | for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do |
252b5132 RH |
12371 | case " $all_emuls " in |
12372 | *" e${i}.o "*) ;; | |
12373 | *) | |
12374 | all_emuls="$all_emuls e${i}.o" | |
12375 | eval result=\$tdir_$i | |
12376 | test -z "$result" && result=$targ_alias | |
12377 | echo tdir_$i=$result >> tdirs | |
12378 | ;; | |
d15b04bd L |
12379 | esac |
12380 | done | |
3336653a | 12381 | |
42ecbf5e DJ |
12382 | for i in $targ_emul $targ_extra_libpath; do |
12383 | case " $all_libpath " in | |
12384 | *" ${i} "*) ;; | |
12385 | *) | |
12386 | if test -z "$all_libpath"; then | |
12387 | all_libpath=${i} | |
12388 | else | |
12389 | all_libpath="$all_libpath ${i}" | |
12390 | fi | |
12391 | ;; | |
12392 | esac | |
12393 | done | |
12394 | ||
12395 | for i in $targ_extra_ofiles; do | |
12396 | case " $all_emul_extras " in | |
12397 | *" ${i} "*) ;; | |
12398 | *) | |
12399 | all_emul_extras="$all_emul_extras ${i}" | |
12400 | ;; | |
12401 | esac | |
12402 | done | |
12403 | fi | |
12404 | done | |
12405 | ||
12406 | ||
12407 | ||
12408 | TDIRS=tdirs | |
12409 | ||
12410 | ||
12411 | if test x${all_targets} = xtrue; then | |
314e9a4e L |
12412 | if test x${want64} = xfalse; then |
12413 | echo "$as_me:$LINENO: checking for long" >&5 | |
12414 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
12415 | if test "${ac_cv_type_long+set}" = set; then | |
12416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12417 | else | |
12418 | cat >conftest.$ac_ext <<_ACEOF | |
12419 | /* confdefs.h. */ | |
12420 | _ACEOF | |
12421 | cat confdefs.h >>conftest.$ac_ext | |
12422 | cat >>conftest.$ac_ext <<_ACEOF | |
12423 | /* end confdefs.h. */ | |
12424 | $ac_includes_default | |
12425 | int | |
12426 | main () | |
12427 | { | |
12428 | if ((long *) 0) | |
12429 | return 0; | |
12430 | if (sizeof (long)) | |
12431 | return 0; | |
12432 | ; | |
12433 | return 0; | |
12434 | } | |
12435 | _ACEOF | |
12436 | rm -f conftest.$ac_objext | |
12437 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12438 | (eval $ac_compile) 2>conftest.er1 | |
12439 | ac_status=$? | |
12440 | grep -v '^ *+' conftest.er1 >conftest.err | |
12441 | rm -f conftest.er1 | |
12442 | cat conftest.err >&5 | |
12443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12444 | (exit $ac_status); } && | |
12445 | { ac_try='test -z "$ac_c_werror_flag" | |
12446 | || test ! -s conftest.err' | |
12447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12448 | (eval $ac_try) 2>&5 | |
12449 | ac_status=$? | |
12450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12451 | (exit $ac_status); }; } && | |
12452 | { ac_try='test -s conftest.$ac_objext' | |
12453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12454 | (eval $ac_try) 2>&5 | |
12455 | ac_status=$? | |
12456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12457 | (exit $ac_status); }; }; then | |
12458 | ac_cv_type_long=yes | |
12459 | else | |
12460 | echo "$as_me: failed program was:" >&5 | |
12461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12462 | ||
12463 | ac_cv_type_long=no | |
12464 | fi | |
12465 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12466 | fi | |
12467 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
12468 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
12469 | ||
12470 | echo "$as_me:$LINENO: checking size of long" >&5 | |
12471 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
12472 | if test "${ac_cv_sizeof_long+set}" = set; then | |
12473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12474 | else | |
12475 | if test "$ac_cv_type_long" = yes; then | |
12476 | # The cast to unsigned long works around a bug in the HP C Compiler | |
12477 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12478 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12479 | # This bug is HP SR number 8606223364. | |
12480 | if test "$cross_compiling" = yes; then | |
12481 | # Depending upon the size, compute the lo and hi bounds. | |
12482 | cat >conftest.$ac_ext <<_ACEOF | |
12483 | /* confdefs.h. */ | |
12484 | _ACEOF | |
12485 | cat confdefs.h >>conftest.$ac_ext | |
12486 | cat >>conftest.$ac_ext <<_ACEOF | |
12487 | /* end confdefs.h. */ | |
12488 | $ac_includes_default | |
12489 | int | |
12490 | main () | |
12491 | { | |
12492 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
12493 | test_array [0] = 0 | |
12494 | ||
12495 | ; | |
12496 | return 0; | |
12497 | } | |
12498 | _ACEOF | |
12499 | rm -f conftest.$ac_objext | |
12500 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12501 | (eval $ac_compile) 2>conftest.er1 | |
12502 | ac_status=$? | |
12503 | grep -v '^ *+' conftest.er1 >conftest.err | |
12504 | rm -f conftest.er1 | |
12505 | cat conftest.err >&5 | |
12506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12507 | (exit $ac_status); } && | |
12508 | { ac_try='test -z "$ac_c_werror_flag" | |
12509 | || test ! -s conftest.err' | |
12510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12511 | (eval $ac_try) 2>&5 | |
12512 | ac_status=$? | |
12513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12514 | (exit $ac_status); }; } && | |
12515 | { ac_try='test -s conftest.$ac_objext' | |
12516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12517 | (eval $ac_try) 2>&5 | |
12518 | ac_status=$? | |
12519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12520 | (exit $ac_status); }; }; then | |
12521 | ac_lo=0 ac_mid=0 | |
12522 | while :; do | |
12523 | cat >conftest.$ac_ext <<_ACEOF | |
12524 | /* confdefs.h. */ | |
12525 | _ACEOF | |
12526 | cat confdefs.h >>conftest.$ac_ext | |
12527 | cat >>conftest.$ac_ext <<_ACEOF | |
12528 | /* end confdefs.h. */ | |
12529 | $ac_includes_default | |
12530 | int | |
12531 | main () | |
12532 | { | |
12533 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
12534 | test_array [0] = 0 | |
12535 | ||
12536 | ; | |
12537 | return 0; | |
12538 | } | |
12539 | _ACEOF | |
12540 | rm -f conftest.$ac_objext | |
12541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12542 | (eval $ac_compile) 2>conftest.er1 | |
12543 | ac_status=$? | |
12544 | grep -v '^ *+' conftest.er1 >conftest.err | |
12545 | rm -f conftest.er1 | |
12546 | cat conftest.err >&5 | |
12547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12548 | (exit $ac_status); } && | |
12549 | { ac_try='test -z "$ac_c_werror_flag" | |
12550 | || test ! -s conftest.err' | |
12551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12552 | (eval $ac_try) 2>&5 | |
12553 | ac_status=$? | |
12554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12555 | (exit $ac_status); }; } && | |
12556 | { ac_try='test -s conftest.$ac_objext' | |
12557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12558 | (eval $ac_try) 2>&5 | |
12559 | ac_status=$? | |
12560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12561 | (exit $ac_status); }; }; then | |
12562 | ac_hi=$ac_mid; break | |
12563 | else | |
12564 | echo "$as_me: failed program was:" >&5 | |
12565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12566 | ||
12567 | ac_lo=`expr $ac_mid + 1` | |
12568 | if test $ac_lo -le $ac_mid; then | |
12569 | ac_lo= ac_hi= | |
12570 | break | |
12571 | fi | |
12572 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
12573 | fi | |
12574 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12575 | done | |
12576 | else | |
12577 | echo "$as_me: failed program was:" >&5 | |
12578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12579 | ||
12580 | cat >conftest.$ac_ext <<_ACEOF | |
12581 | /* confdefs.h. */ | |
12582 | _ACEOF | |
12583 | cat confdefs.h >>conftest.$ac_ext | |
12584 | cat >>conftest.$ac_ext <<_ACEOF | |
12585 | /* end confdefs.h. */ | |
12586 | $ac_includes_default | |
12587 | int | |
12588 | main () | |
12589 | { | |
12590 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
12591 | test_array [0] = 0 | |
12592 | ||
12593 | ; | |
12594 | return 0; | |
12595 | } | |
12596 | _ACEOF | |
12597 | rm -f conftest.$ac_objext | |
12598 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12599 | (eval $ac_compile) 2>conftest.er1 | |
12600 | ac_status=$? | |
12601 | grep -v '^ *+' conftest.er1 >conftest.err | |
12602 | rm -f conftest.er1 | |
12603 | cat conftest.err >&5 | |
12604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12605 | (exit $ac_status); } && | |
12606 | { ac_try='test -z "$ac_c_werror_flag" | |
12607 | || test ! -s conftest.err' | |
12608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12609 | (eval $ac_try) 2>&5 | |
12610 | ac_status=$? | |
12611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12612 | (exit $ac_status); }; } && | |
12613 | { ac_try='test -s conftest.$ac_objext' | |
12614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12615 | (eval $ac_try) 2>&5 | |
12616 | ac_status=$? | |
12617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12618 | (exit $ac_status); }; }; then | |
12619 | ac_hi=-1 ac_mid=-1 | |
12620 | while :; do | |
12621 | cat >conftest.$ac_ext <<_ACEOF | |
12622 | /* confdefs.h. */ | |
12623 | _ACEOF | |
12624 | cat confdefs.h >>conftest.$ac_ext | |
12625 | cat >>conftest.$ac_ext <<_ACEOF | |
12626 | /* end confdefs.h. */ | |
12627 | $ac_includes_default | |
12628 | int | |
12629 | main () | |
12630 | { | |
12631 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
12632 | test_array [0] = 0 | |
12633 | ||
12634 | ; | |
12635 | return 0; | |
12636 | } | |
12637 | _ACEOF | |
12638 | rm -f conftest.$ac_objext | |
12639 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12640 | (eval $ac_compile) 2>conftest.er1 | |
12641 | ac_status=$? | |
12642 | grep -v '^ *+' conftest.er1 >conftest.err | |
12643 | rm -f conftest.er1 | |
12644 | cat conftest.err >&5 | |
12645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12646 | (exit $ac_status); } && | |
12647 | { ac_try='test -z "$ac_c_werror_flag" | |
12648 | || test ! -s conftest.err' | |
12649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12650 | (eval $ac_try) 2>&5 | |
12651 | ac_status=$? | |
12652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12653 | (exit $ac_status); }; } && | |
12654 | { ac_try='test -s conftest.$ac_objext' | |
12655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12656 | (eval $ac_try) 2>&5 | |
12657 | ac_status=$? | |
12658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12659 | (exit $ac_status); }; }; then | |
12660 | ac_lo=$ac_mid; break | |
12661 | else | |
12662 | echo "$as_me: failed program was:" >&5 | |
12663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12664 | ||
12665 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
12666 | if test $ac_mid -le $ac_hi; then | |
12667 | ac_lo= ac_hi= | |
12668 | break | |
12669 | fi | |
12670 | ac_mid=`expr 2 '*' $ac_mid` | |
12671 | fi | |
12672 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12673 | done | |
12674 | else | |
12675 | echo "$as_me: failed program was:" >&5 | |
12676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12677 | ||
12678 | ac_lo= ac_hi= | |
12679 | fi | |
12680 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12681 | fi | |
12682 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12683 | # Binary search between lo and hi bounds. | |
12684 | while test "x$ac_lo" != "x$ac_hi"; do | |
12685 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
12686 | cat >conftest.$ac_ext <<_ACEOF | |
12687 | /* confdefs.h. */ | |
12688 | _ACEOF | |
12689 | cat confdefs.h >>conftest.$ac_ext | |
12690 | cat >>conftest.$ac_ext <<_ACEOF | |
12691 | /* end confdefs.h. */ | |
12692 | $ac_includes_default | |
12693 | int | |
12694 | main () | |
12695 | { | |
12696 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
12697 | test_array [0] = 0 | |
12698 | ||
12699 | ; | |
12700 | return 0; | |
12701 | } | |
12702 | _ACEOF | |
12703 | rm -f conftest.$ac_objext | |
12704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12705 | (eval $ac_compile) 2>conftest.er1 | |
12706 | ac_status=$? | |
12707 | grep -v '^ *+' conftest.er1 >conftest.err | |
12708 | rm -f conftest.er1 | |
12709 | cat conftest.err >&5 | |
12710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12711 | (exit $ac_status); } && | |
12712 | { ac_try='test -z "$ac_c_werror_flag" | |
12713 | || test ! -s conftest.err' | |
12714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12715 | (eval $ac_try) 2>&5 | |
12716 | ac_status=$? | |
12717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12718 | (exit $ac_status); }; } && | |
12719 | { ac_try='test -s conftest.$ac_objext' | |
12720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12721 | (eval $ac_try) 2>&5 | |
12722 | ac_status=$? | |
12723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12724 | (exit $ac_status); }; }; then | |
12725 | ac_hi=$ac_mid | |
12726 | else | |
12727 | echo "$as_me: failed program was:" >&5 | |
12728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12729 | ||
12730 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
12731 | fi | |
12732 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12733 | done | |
12734 | case $ac_lo in | |
12735 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
12736 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
12737 | See \`config.log' for more details." >&5 | |
12738 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
12739 | See \`config.log' for more details." >&2;} | |
12740 | { (exit 1); exit 1; }; } ;; | |
12741 | esac | |
12742 | else | |
12743 | if test "$cross_compiling" = yes; then | |
12744 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
12745 | See \`config.log' for more details." >&5 | |
12746 | echo "$as_me: error: cannot run test program while cross compiling | |
12747 | See \`config.log' for more details." >&2;} | |
12748 | { (exit 1); exit 1; }; } | |
12749 | else | |
12750 | cat >conftest.$ac_ext <<_ACEOF | |
12751 | /* confdefs.h. */ | |
12752 | _ACEOF | |
12753 | cat confdefs.h >>conftest.$ac_ext | |
12754 | cat >>conftest.$ac_ext <<_ACEOF | |
12755 | /* end confdefs.h. */ | |
12756 | $ac_includes_default | |
12757 | long longval () { return (long) (sizeof (long)); } | |
12758 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
12759 | #include <stdio.h> | |
12760 | #include <stdlib.h> | |
12761 | int | |
12762 | main () | |
12763 | { | |
12764 | ||
12765 | FILE *f = fopen ("conftest.val", "w"); | |
12766 | if (! f) | |
12767 | exit (1); | |
12768 | if (((long) (sizeof (long))) < 0) | |
12769 | { | |
12770 | long i = longval (); | |
12771 | if (i != ((long) (sizeof (long)))) | |
12772 | exit (1); | |
12773 | fprintf (f, "%ld\n", i); | |
12774 | } | |
12775 | else | |
12776 | { | |
12777 | unsigned long i = ulongval (); | |
12778 | if (i != ((long) (sizeof (long)))) | |
12779 | exit (1); | |
12780 | fprintf (f, "%lu\n", i); | |
12781 | } | |
12782 | exit (ferror (f) || fclose (f) != 0); | |
12783 | ||
12784 | ; | |
12785 | return 0; | |
12786 | } | |
12787 | _ACEOF | |
12788 | rm -f conftest$ac_exeext | |
12789 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12790 | (eval $ac_link) 2>&5 | |
12791 | ac_status=$? | |
12792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12793 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12795 | (eval $ac_try) 2>&5 | |
12796 | ac_status=$? | |
12797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12798 | (exit $ac_status); }; }; then | |
12799 | ac_cv_sizeof_long=`cat conftest.val` | |
12800 | else | |
12801 | echo "$as_me: program exited with status $ac_status" >&5 | |
12802 | echo "$as_me: failed program was:" >&5 | |
12803 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12804 | ||
12805 | ( exit $ac_status ) | |
12806 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
12807 | See \`config.log' for more details." >&5 | |
12808 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
12809 | See \`config.log' for more details." >&2;} | |
12810 | { (exit 1); exit 1; }; } | |
12811 | fi | |
12812 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12813 | fi | |
12814 | fi | |
12815 | rm -f conftest.val | |
12816 | else | |
12817 | ac_cv_sizeof_long=0 | |
12818 | fi | |
12819 | fi | |
12820 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
12821 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
12822 | cat >>confdefs.h <<_ACEOF | |
12823 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
12824 | _ACEOF | |
12825 | ||
12826 | ||
12827 | if test "x${ac_cv_sizeof_long}" = "x8"; then | |
12828 | want64=true | |
12829 | fi | |
12830 | fi | |
42ecbf5e DJ |
12831 | if test x${want64} = xtrue; then |
12832 | EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)' | |
12833 | else | |
12834 | EMULATION_OFILES='$(ALL_EMULATIONS)' | |
12835 | fi | |
12836 | EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)' | |
12837 | else | |
12838 | EMULATION_OFILES=$all_emuls | |
12839 | EMUL_EXTRA_OFILES=$all_emul_extras | |
12840 | fi | |
12841 | ||
12842 | ||
12843 | ||
12844 | ||
12845 | EMULATION_LIBPATH=$all_libpath | |
12846 | ||
12847 | ||
12848 | if test x${enable_static} = xno; then | |
12849 | TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so" | |
12850 | else | |
12851 | TESTBFDLIB="../bfd/.libs/libbfd.a" | |
12852 | fi | |
12853 | ||
12854 | ||
12855 | target_vendor=${target_vendor=$host_vendor} | |
12856 | case "$target_vendor" in | |
12857 | hp) EXTRA_SHLIB_EXTENSION=".sl" ;; | |
12858 | *) EXTRA_SHLIB_EXTENSION= ;; | |
12859 | esac | |
12860 | ||
12861 | case "$target_os" in | |
12862 | lynxos) EXTRA_SHLIB_EXTENSION=".a" ;; | |
12863 | esac | |
12864 | ||
12865 | if test x${EXTRA_SHLIB_EXTENSION} != x ; then | |
12866 | ||
12867 | cat >>confdefs.h <<_ACEOF | |
12868 | #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION" | |
12869 | _ACEOF | |
12870 | ||
12871 | fi | |
12872 | ||
108a6f8e CD |
12873 | |
12874 | ||
12875 | ||
12876 | ||
42ecbf5e | 12877 | ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in" |
42ecbf5e DJ |
12878 | cat >confcache <<\_ACEOF |
12879 | # This file is a shell script that caches the results of configure | |
12880 | # tests run on this system so they can be shared between configure | |
12881 | # scripts and configure runs, see configure's option --config-cache. | |
12882 | # It is not useful on other systems. If it contains results you don't | |
12883 | # want to keep, you may remove or edit it. | |
12884 | # | |
12885 | # config.status only pays attention to the cache file if you give it | |
12886 | # the --recheck option to rerun configure. | |
12887 | # | |
12888 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
12889 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12890 | # following values. | |
12891 | ||
12892 | _ACEOF | |
12893 | ||
12894 | # The following way of writing the cache mishandles newlines in values, | |
12895 | # but we know of no workaround that is simple, portable, and efficient. | |
12896 | # So, don't put newlines in cache variables' values. | |
12897 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
12898 | # and sets the high bit in the cache file unless we assign to the vars. | |
12899 | { | |
12900 | (set) 2>&1 | | |
12901 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
12902 | *ac_space=\ *) | |
12903 | # `set' does not quote correctly, so add quotes (double-quote | |
12904 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
12905 | sed -n \ | |
12906 | "s/'/'\\\\''/g; | |
12907 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
12908 | ;; | |
12909 | *) | |
12910 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
12911 | sed -n \ | |
12912 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
12913 | ;; | |
12914 | esac; | |
12915 | } | | |
12916 | sed ' | |
12917 | t clear | |
12918 | : clear | |
12919 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
12920 | t end | |
12921 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
12922 | : end' >>confcache | |
12923 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
12924 | if test -w $cache_file; then | |
12925 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
12926 | cat confcache >$cache_file | |
12927 | else | |
12928 | echo "not updating unwritable cache $cache_file" | |
12929 | fi | |
12930 | fi | |
12931 | rm -f confcache | |
12932 | ||
12933 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
12934 | # Let make expand exec_prefix. | |
12935 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12936 | ||
12937 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
12938 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
12939 | # trailing colons and then remove the whole line if VPATH becomes empty | |
12940 | # (actually we leave an empty line to preserve line numbers). | |
12941 | if test "x$srcdir" = x.; then | |
12942 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
12943 | s/:*\$(srcdir):*/:/; | |
12944 | s/:*\${srcdir}:*/:/; | |
12945 | s/:*@srcdir@:*/:/; | |
12946 | s/^\([^=]*=[ ]*\):*/\1/; | |
12947 | s/:*$//; | |
12948 | s/^[^=]*=[ ]*$//; | |
12949 | }' | |
12950 | fi | |
12951 | ||
12952 | DEFS=-DHAVE_CONFIG_H | |
12953 | ||
12954 | ac_libobjs= | |
12955 | ac_ltlibobjs= | |
12956 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
12957 | # 1. Remove the extension, and $U if already installed. | |
12958 | ac_i=`echo "$ac_i" | | |
12959 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
12960 | # 2. Add them. | |
12961 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
12962 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
12963 | done | |
12964 | LIBOBJS=$ac_libobjs | |
12965 | ||
12966 | LTLIBOBJS=$ac_ltlibobjs | |
12967 | ||
12968 | ||
12969 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
12970 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
12971 | Usually this means the macro was only invoked conditionally." >&5 | |
12972 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
12973 | Usually this means the macro was only invoked conditionally." >&2;} | |
12974 | { (exit 1); exit 1; }; } | |
12975 | fi | |
12976 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
12977 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
12978 | Usually this means the macro was only invoked conditionally." >&5 | |
12979 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
12980 | Usually this means the macro was only invoked conditionally." >&2;} | |
12981 | { (exit 1); exit 1; }; } | |
12982 | fi | |
12983 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
12984 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
12985 | Usually this means the macro was only invoked conditionally." >&5 | |
12986 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
12987 | Usually this means the macro was only invoked conditionally." >&2;} | |
12988 | { (exit 1); exit 1; }; } | |
12989 | fi | |
d5fbea21 DJ |
12990 | if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then |
12991 | { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined. | |
12992 | Usually this means the macro was only invoked conditionally." >&5 | |
12993 | echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined. | |
12994 | Usually this means the macro was only invoked conditionally." >&2;} | |
12995 | { (exit 1); exit 1; }; } | |
12996 | fi | |
42ecbf5e DJ |
12997 | |
12998 | : ${CONFIG_STATUS=./config.status} | |
12999 | ac_clean_files_save=$ac_clean_files | |
13000 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
13001 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
13002 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
13003 | cat >$CONFIG_STATUS <<_ACEOF | |
13004 | #! $SHELL | |
13005 | # Generated by $as_me. | |
13006 | # Run this file to recreate the current configuration. | |
13007 | # Compiler output produced by configure, useful for debugging | |
13008 | # configure, is in config.log if it exists. | |
13009 | ||
13010 | debug=false | |
13011 | ac_cs_recheck=false | |
13012 | ac_cs_silent=false | |
13013 | SHELL=\${CONFIG_SHELL-$SHELL} | |
13014 | _ACEOF | |
13015 | ||
13016 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13017 | ## --------------------- ## | |
13018 | ## M4sh Initialization. ## | |
13019 | ## --------------------- ## | |
13020 | ||
13021 | # Be Bourne compatible | |
13022 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
13023 | emulate sh | |
13024 | NULLCMD=: | |
13025 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
13026 | # is contrary to our usage. Disable this feature. | |
13027 | alias -g '${1+"$@"}'='"$@"' | |
13028 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
13029 | set -o posix | |
13030 | fi | |
13031 | DUALCASE=1; export DUALCASE # for MKS sh | |
13032 | ||
13033 | # Support unset when possible. | |
13034 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
13035 | as_unset=unset | |
13036 | else | |
13037 | as_unset=false | |
13038 | fi | |
13039 | ||
13040 | ||
13041 | # Work around bugs in pre-3.0 UWIN ksh. | |
13042 | $as_unset ENV MAIL MAILPATH | |
13043 | PS1='$ ' | |
13044 | PS2='> ' | |
13045 | PS4='+ ' | |
13046 | ||
13047 | # NLS nuisances. | |
13048 | for as_var in \ | |
13049 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
13050 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
13051 | LC_TELEPHONE LC_TIME | |
13052 | do | |
13053 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
13054 | eval $as_var=C; export $as_var | |
13055 | else | |
13056 | $as_unset $as_var | |
13057 | fi | |
13058 | done | |
13059 | ||
13060 | # Required to use basename. | |
13061 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
13062 | as_expr=expr | |
13063 | else | |
13064 | as_expr=false | |
13065 | fi | |
13066 | ||
13067 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
13068 | as_basename=basename | |
13069 | else | |
13070 | as_basename=false | |
13071 | fi | |
13072 | ||
13073 | ||
13074 | # Name of the executable. | |
13075 | as_me=`$as_basename "$0" || | |
13076 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
13077 | X"$0" : 'X\(//\)$' \| \ | |
13078 | X"$0" : 'X\(/\)$' \| \ | |
13079 | . : '\(.\)' 2>/dev/null || | |
13080 | echo X/"$0" | | |
13081 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
13082 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
13083 | /^X\/\(\/\).*/{ s//\1/; q; } | |
13084 | s/.*/./; q'` | |
13085 | ||
13086 | ||
13087 | # PATH needs CR, and LINENO needs CR and PATH. | |
13088 | # Avoid depending upon Character Ranges. | |
13089 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
13090 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
13091 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
13092 | as_cr_digits='0123456789' | |
13093 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
13094 | ||
13095 | # The user is always right. | |
13096 | if test "${PATH_SEPARATOR+set}" != set; then | |
13097 | echo "#! /bin/sh" >conf$$.sh | |
13098 | echo "exit 0" >>conf$$.sh | |
13099 | chmod +x conf$$.sh | |
13100 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
13101 | PATH_SEPARATOR=';' | |
13102 | else | |
13103 | PATH_SEPARATOR=: | |
13104 | fi | |
13105 | rm -f conf$$.sh | |
13106 | fi | |
13107 | ||
e5a52504 | 13108 | |
42ecbf5e DJ |
13109 | as_lineno_1=$LINENO |
13110 | as_lineno_2=$LINENO | |
13111 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
13112 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
13113 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
13114 | # Find who we are. Look in the path if we contain no path at all | |
13115 | # relative or not. | |
13116 | case $0 in | |
13117 | *[\\/]* ) as_myself=$0 ;; | |
13118 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13119 | for as_dir in $PATH | |
13120 | do | |
13121 | IFS=$as_save_IFS | |
13122 | test -z "$as_dir" && as_dir=. | |
13123 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
13124 | done | |
13125 | ||
13126 | ;; | |
13127 | esac | |
13128 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
13129 | # in which case we are not to be found in the path. | |
13130 | if test "x$as_myself" = x; then | |
13131 | as_myself=$0 | |
13132 | fi | |
13133 | if test ! -f "$as_myself"; then | |
13134 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
13135 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
13136 | { (exit 1); exit 1; }; } | |
252b5132 | 13137 | fi |
42ecbf5e DJ |
13138 | case $CONFIG_SHELL in |
13139 | '') | |
13140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13141 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
13142 | do | |
13143 | IFS=$as_save_IFS | |
13144 | test -z "$as_dir" && as_dir=. | |
13145 | for as_base in sh bash ksh sh5; do | |
13146 | case $as_dir in | |
13147 | /*) | |
13148 | if ("$as_dir/$as_base" -c ' | |
13149 | as_lineno_1=$LINENO | |
13150 | as_lineno_2=$LINENO | |
13151 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
13152 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
13153 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
13154 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
13155 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
13156 | CONFIG_SHELL=$as_dir/$as_base | |
13157 | export CONFIG_SHELL | |
13158 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
13159 | fi;; | |
13160 | esac | |
13161 | done | |
252b5132 | 13162 | done |
42ecbf5e DJ |
13163 | ;; |
13164 | esac | |
252b5132 | 13165 | |
42ecbf5e DJ |
13166 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
13167 | # uniformly replaced by the line number. The first 'sed' inserts a | |
13168 | # line-number line before each line; the second 'sed' does the real | |
13169 | # work. The second script uses 'N' to pair each line-number line | |
13170 | # with the numbered line, and appends trailing '-' during | |
13171 | # substitution so that $LINENO is not a special case at line end. | |
13172 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
13173 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
13174 | sed '=' <$as_myself | | |
13175 | sed ' | |
13176 | N | |
13177 | s,$,-, | |
13178 | : loop | |
13179 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
13180 | t loop | |
13181 | s,-$,, | |
13182 | s,^['$as_cr_digits']*\n,, | |
13183 | ' >$as_me.lineno && | |
13184 | chmod +x $as_me.lineno || | |
13185 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
13186 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
13187 | { (exit 1); exit 1; }; } | |
13188 | ||
13189 | # Don't try to exec as it changes $[0], causing all sort of problems | |
13190 | # (the dirname of $[0] is not the place where we might find the | |
13191 | # original and so on. Autoconf is especially sensible to this). | |
13192 | . ./$as_me.lineno | |
13193 | # Exit status is that of the last command. | |
13194 | exit | |
13195 | } | |
252b5132 RH |
13196 | |
13197 | ||
42ecbf5e DJ |
13198 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
13199 | *c*,-n*) ECHO_N= ECHO_C=' | |
13200 | ' ECHO_T=' ' ;; | |
13201 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
13202 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
13203 | esac | |
252b5132 | 13204 | |
42ecbf5e DJ |
13205 | if expr a : '\(a\)' >/dev/null 2>&1; then |
13206 | as_expr=expr | |
13207 | else | |
13208 | as_expr=false | |
13209 | fi | |
252b5132 | 13210 | |
42ecbf5e DJ |
13211 | rm -f conf$$ conf$$.exe conf$$.file |
13212 | echo >conf$$.file | |
13213 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
13214 | # We could just check for DJGPP; but this test a) works b) is more generic | |
13215 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
13216 | if test -f conf$$.exe; then | |
13217 | # Don't use ln at all; we don't have any links | |
13218 | as_ln_s='cp -p' | |
252b5132 | 13219 | else |
42ecbf5e | 13220 | as_ln_s='ln -s' |
252b5132 | 13221 | fi |
42ecbf5e DJ |
13222 | elif ln conf$$.file conf$$ 2>/dev/null; then |
13223 | as_ln_s=ln | |
e5a52504 | 13224 | else |
42ecbf5e | 13225 | as_ln_s='cp -p' |
e5a52504 | 13226 | fi |
42ecbf5e | 13227 | rm -f conf$$ conf$$.exe conf$$.file |
252b5132 | 13228 | |
42ecbf5e DJ |
13229 | if mkdir -p . 2>/dev/null; then |
13230 | as_mkdir_p=: | |
13231 | else | |
13232 | test -d ./-p && rmdir ./-p | |
13233 | as_mkdir_p=false | |
13234 | fi | |
252b5132 | 13235 | |
42ecbf5e | 13236 | as_executable_p="test -f" |
252b5132 | 13237 | |
42ecbf5e DJ |
13238 | # Sed expression to map a string onto a valid CPP name. |
13239 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
f234d5fe | 13240 | |
42ecbf5e DJ |
13241 | # Sed expression to map a string onto a valid variable name. |
13242 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
e5a52504 | 13243 | |
e5a52504 | 13244 | |
42ecbf5e DJ |
13245 | # IFS |
13246 | # We need space, tab and new line, in precisely that order. | |
13247 | as_nl=' | |
13248 | ' | |
13249 | IFS=" $as_nl" | |
e5a52504 | 13250 | |
42ecbf5e DJ |
13251 | # CDPATH. |
13252 | $as_unset CDPATH | |
e5a52504 | 13253 | |
42ecbf5e | 13254 | exec 6>&1 |
e5a52504 | 13255 | |
42ecbf5e DJ |
13256 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
13257 | # report actual input values of CONFIG_FILES etc. instead of their | |
13258 | # values after options handling. Logging --version etc. is OK. | |
13259 | exec 5>>config.log | |
13260 | { | |
13261 | echo | |
13262 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
13263 | ## Running $as_me. ## | |
13264 | _ASBOX | |
13265 | } >&5 | |
13266 | cat >&5 <<_CSEOF | |
e5a52504 | 13267 | |
42ecbf5e DJ |
13268 | This file was extended by $as_me, which was |
13269 | generated by GNU Autoconf 2.59. Invocation command line was | |
13270 | ||
13271 | CONFIG_FILES = $CONFIG_FILES | |
13272 | CONFIG_HEADERS = $CONFIG_HEADERS | |
13273 | CONFIG_LINKS = $CONFIG_LINKS | |
13274 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
13275 | $ $0 $@ | |
e5a52504 | 13276 | |
42ecbf5e DJ |
13277 | _CSEOF |
13278 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
13279 | echo >&5 | |
13280 | _ACEOF | |
13281 | ||
13282 | # Files that config.status was made for. | |
13283 | if test -n "$ac_config_files"; then | |
13284 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
d15b04bd | 13285 | fi |
e5a52504 | 13286 | |
42ecbf5e DJ |
13287 | if test -n "$ac_config_headers"; then |
13288 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
13289 | fi | |
13290 | ||
13291 | if test -n "$ac_config_links"; then | |
13292 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
13293 | fi | |
13294 | ||
13295 | if test -n "$ac_config_commands"; then | |
13296 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
13297 | fi | |
13298 | ||
13299 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13300 | ||
13301 | ac_cs_usage="\ | |
13302 | \`$as_me' instantiates files from templates according to the | |
13303 | current configuration. | |
13304 | ||
13305 | Usage: $0 [OPTIONS] [FILE]... | |
13306 | ||
13307 | -h, --help print this help, then exit | |
13308 | -V, --version print version number, then exit | |
13309 | -q, --quiet do not print progress messages | |
13310 | -d, --debug don't remove temporary files | |
13311 | --recheck update $as_me by reconfiguring in the same conditions | |
13312 | --file=FILE[:TEMPLATE] | |
13313 | instantiate the configuration file FILE | |
13314 | --header=FILE[:TEMPLATE] | |
13315 | instantiate the configuration header FILE | |
13316 | ||
13317 | Configuration files: | |
13318 | $config_files | |
13319 | ||
13320 | Configuration headers: | |
13321 | $config_headers | |
13322 | ||
13323 | Configuration commands: | |
13324 | $config_commands | |
13325 | ||
13326 | Report bugs to <bug-autoconf@gnu.org>." | |
13327 | _ACEOF | |
13328 | ||
13329 | cat >>$CONFIG_STATUS <<_ACEOF | |
13330 | ac_cs_version="\\ | |
13331 | config.status | |
13332 | configured by $0, generated by GNU Autoconf 2.59, | |
13333 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
13334 | ||
13335 | Copyright (C) 2003 Free Software Foundation, Inc. | |
13336 | This config.status script is free software; the Free Software Foundation | |
13337 | gives unlimited permission to copy, distribute and modify it." | |
13338 | srcdir=$srcdir | |
13339 | INSTALL="$INSTALL" | |
13340 | _ACEOF | |
13341 | ||
13342 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13343 | # If no file are specified by the user, then we need to provide default | |
13344 | # value. By we need to know if files were specified by the user. | |
13345 | ac_need_defaults=: | |
13346 | while test $# != 0 | |
13347 | do | |
13348 | case $1 in | |
13349 | --*=*) | |
13350 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
13351 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
13352 | ac_shift=: | |
252b5132 | 13353 | ;; |
42ecbf5e DJ |
13354 | -*) |
13355 | ac_option=$1 | |
13356 | ac_optarg=$2 | |
13357 | ac_shift=shift | |
252b5132 | 13358 | ;; |
42ecbf5e DJ |
13359 | *) # This is not an option, so the user has probably given explicit |
13360 | # arguments. | |
13361 | ac_option=$1 | |
13362 | ac_need_defaults=false;; | |
13363 | esac | |
252b5132 | 13364 | |
42ecbf5e DJ |
13365 | case $ac_option in |
13366 | # Handling of the options. | |
13367 | _ACEOF | |
13368 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13369 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
13370 | ac_cs_recheck=: ;; | |
13371 | --version | --vers* | -V ) | |
13372 | echo "$ac_cs_version"; exit 0 ;; | |
13373 | --he | --h) | |
13374 | # Conflict between --help and --header | |
13375 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
13376 | Try \`$0 --help' for more information." >&5 | |
13377 | echo "$as_me: error: ambiguous option: $1 | |
13378 | Try \`$0 --help' for more information." >&2;} | |
13379 | { (exit 1); exit 1; }; };; | |
13380 | --help | --hel | -h ) | |
13381 | echo "$ac_cs_usage"; exit 0 ;; | |
13382 | --debug | --d* | -d ) | |
13383 | debug=: ;; | |
13384 | --file | --fil | --fi | --f ) | |
13385 | $ac_shift | |
13386 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
13387 | ac_need_defaults=false;; | |
13388 | --header | --heade | --head | --hea ) | |
13389 | $ac_shift | |
13390 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
13391 | ac_need_defaults=false;; | |
13392 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
13393 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
13394 | ac_cs_silent=: ;; | |
252b5132 | 13395 | |
42ecbf5e DJ |
13396 | # This is an error. |
13397 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
13398 | Try \`$0 --help' for more information." >&5 | |
13399 | echo "$as_me: error: unrecognized option: $1 | |
13400 | Try \`$0 --help' for more information." >&2;} | |
13401 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 13402 | |
42ecbf5e | 13403 | *) ac_config_targets="$ac_config_targets $1" ;; |
252b5132 | 13404 | |
42ecbf5e DJ |
13405 | esac |
13406 | shift | |
13407 | done | |
d15b04bd | 13408 | |
42ecbf5e | 13409 | ac_configure_extra_args= |
e5a52504 | 13410 | |
42ecbf5e DJ |
13411 | if $ac_cs_silent; then |
13412 | exec 6>/dev/null | |
13413 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
13414 | fi | |
e5a52504 | 13415 | |
42ecbf5e DJ |
13416 | _ACEOF |
13417 | cat >>$CONFIG_STATUS <<_ACEOF | |
13418 | if \$ac_cs_recheck; then | |
13419 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
13420 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
13421 | fi | |
13422 | ||
13423 | _ACEOF | |
13424 | ||
13425 | cat >>$CONFIG_STATUS <<_ACEOF | |
252b5132 | 13426 | # |
42ecbf5e | 13427 | # INIT-COMMANDS section. |
252b5132 | 13428 | # |
252b5132 | 13429 | |
42ecbf5e | 13430 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
d7040cdb SE |
13431 | |
13432 | ||
13433 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
13434 | # if CDPATH is set. | |
13435 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
13436 | ||
13437 | sed_quote_subst='$sed_quote_subst' | |
13438 | double_quote_subst='$double_quote_subst' | |
13439 | delay_variable_subst='$delay_variable_subst' | |
13440 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
13441 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
13442 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
13443 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
13444 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
13445 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
13446 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
13447 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
13448 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
13449 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
13450 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
13451 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
13452 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
13453 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
13454 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
13455 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
13456 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
13457 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
13458 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
13459 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
13460 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
13461 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
13462 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
13463 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
13464 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
13465 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
13466 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
13467 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13468 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
13469 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
13470 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
13471 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
13472 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
13473 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
13474 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13475 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13476 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13477 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
13478 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
13479 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
13480 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
13481 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
13482 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
13483 | 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"`' | |
13484 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
13485 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
13486 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
13487 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
13488 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
13489 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
13490 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
13491 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
13492 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
13493 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
13494 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
13495 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13496 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13497 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
13498 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
13499 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13500 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13501 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
13502 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13503 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13504 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13505 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13506 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13507 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13508 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
13509 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
13510 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
13511 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13512 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
13513 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
13514 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
13515 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
13516 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
13517 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
13518 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
13519 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
13520 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
13521 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
13522 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
13523 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13524 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
13525 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
13526 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13527 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13528 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
13529 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
13530 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
13531 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
13532 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
13533 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
13534 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
13535 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13536 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13537 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13538 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13539 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13540 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
13541 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
13542 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
13543 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13544 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
13545 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
13546 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
13547 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
13548 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
13549 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
13550 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
13551 | ||
13552 | LTCC='$LTCC' | |
13553 | LTCFLAGS='$LTCFLAGS' | |
13554 | compiler='$compiler_DEFAULT' | |
13555 | ||
13556 | # Quote evaled strings. | |
13557 | for var in SED \ | |
13558 | GREP \ | |
13559 | EGREP \ | |
13560 | FGREP \ | |
13561 | LD \ | |
13562 | NM \ | |
13563 | LN_S \ | |
13564 | lt_SP2NL \ | |
13565 | lt_NL2SP \ | |
13566 | reload_flag \ | |
13567 | deplibs_check_method \ | |
13568 | file_magic_cmd \ | |
13569 | AR \ | |
13570 | AR_FLAGS \ | |
13571 | STRIP \ | |
13572 | RANLIB \ | |
13573 | CC \ | |
13574 | CFLAGS \ | |
13575 | compiler \ | |
13576 | lt_cv_sys_global_symbol_pipe \ | |
13577 | lt_cv_sys_global_symbol_to_cdecl \ | |
13578 | lt_cv_sys_global_symbol_to_c_name_address \ | |
13579 | SHELL \ | |
13580 | ECHO \ | |
13581 | lt_prog_compiler_no_builtin_flag \ | |
13582 | lt_prog_compiler_wl \ | |
13583 | lt_prog_compiler_pic \ | |
13584 | lt_prog_compiler_static \ | |
13585 | lt_cv_prog_compiler_c_o \ | |
13586 | need_locks \ | |
13587 | shrext_cmds \ | |
13588 | export_dynamic_flag_spec \ | |
13589 | whole_archive_flag_spec \ | |
13590 | compiler_needs_object \ | |
13591 | with_gnu_ld \ | |
13592 | allow_undefined_flag \ | |
13593 | no_undefined_flag \ | |
13594 | hardcode_libdir_flag_spec \ | |
13595 | hardcode_libdir_flag_spec_ld \ | |
13596 | hardcode_libdir_separator \ | |
13597 | fix_srcfile_path \ | |
13598 | exclude_expsyms \ | |
13599 | include_expsyms \ | |
13600 | file_list_spec \ | |
13601 | variables_saved_for_relink \ | |
13602 | libname_spec \ | |
13603 | library_names_spec \ | |
13604 | soname_spec \ | |
13605 | finish_eval \ | |
13606 | old_striplib \ | |
13607 | striplib; do | |
13608 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
13609 | *[\\\\\\\`\\"\\\$]*) | |
13610 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
13611 | ;; | |
13612 | *) | |
13613 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13614 | ;; | |
13615 | esac | |
13616 | done | |
13617 | ||
13618 | # Double-quote double-evaled strings. | |
13619 | for var in reload_cmds \ | |
13620 | old_postinstall_cmds \ | |
13621 | old_postuninstall_cmds \ | |
13622 | old_archive_cmds \ | |
13623 | extract_expsyms_cmds \ | |
13624 | old_archive_from_new_cmds \ | |
13625 | old_archive_from_expsyms_cmds \ | |
13626 | archive_cmds \ | |
13627 | archive_expsym_cmds \ | |
13628 | module_cmds \ | |
13629 | module_expsym_cmds \ | |
13630 | export_symbols_cmds \ | |
13631 | prelink_cmds \ | |
13632 | postinstall_cmds \ | |
13633 | postuninstall_cmds \ | |
13634 | finish_cmds \ | |
13635 | sys_lib_search_path_spec \ | |
13636 | sys_lib_dlsearch_path_spec; do | |
13637 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
13638 | *[\\\\\\\`\\"\\\$]*) | |
13639 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
13640 | ;; | |
13641 | *) | |
13642 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13643 | ;; | |
13644 | esac | |
13645 | done | |
13646 | ||
13647 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
13648 | case \$lt_ECHO in | |
13649 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
13650 | ;; | |
13651 | esac | |
13652 | ||
13653 | ac_aux_dir='$ac_aux_dir' | |
13654 | xsi_shell='$xsi_shell' | |
13655 | lt_shell_append='$lt_shell_append' | |
13656 | ||
13657 | # See if we are running on zsh, and set the options which allow our | |
13658 | # commands through without removal of \ escapes INIT. | |
13659 | if test -n "\${ZSH_VERSION+set}" ; then | |
13660 | setopt NO_GLOB_SUBST | |
13661 | fi | |
13662 | ||
13663 | ||
13664 | PACKAGE='$PACKAGE' | |
13665 | VERSION='$VERSION' | |
13666 | TIMESTAMP='$TIMESTAMP' | |
13667 | RM='$RM' | |
13668 | ofile='$ofile' | |
13669 | ||
13670 | ||
13671 | ||
20e95c23 DJ |
13672 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
13673 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
13674 | # from automake. | |
13675 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
13676 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
13677 | LINGUAS="${LINGUAS-%UNSET%}" | |
13678 | ||
42ecbf5e DJ |
13679 | |
13680 | _ACEOF | |
13681 | ||
13682 | ||
13683 | ||
13684 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13685 | for ac_config_target in $ac_config_targets | |
252b5132 | 13686 | do |
42ecbf5e DJ |
13687 | case "$ac_config_target" in |
13688 | # Handling of arguments. | |
13689 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
13690 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
13691 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
d7040cdb | 13692 | "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
20e95c23 | 13693 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
42ecbf5e DJ |
13694 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; |
13695 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
13696 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
13697 | { (exit 1); exit 1; }; };; | |
252b5132 RH |
13698 | esac |
13699 | done | |
13700 | ||
42ecbf5e DJ |
13701 | # If the user did not use the arguments to specify the items to instantiate, |
13702 | # then the envvar interface is used. Set only those that are not. | |
13703 | # We use the long form for the default assignment because of an extremely | |
13704 | # bizarre bug on SunOS 4.1.3. | |
13705 | if $ac_need_defaults; then | |
13706 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
13707 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
13708 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
13709 | fi | |
13710 | ||
13711 | # Have a temporary directory for convenience. Make it in the build tree | |
13712 | # simply because there is no reason to put it here, and in addition, | |
13713 | # creating and moving files from /tmp can sometimes cause problems. | |
13714 | # Create a temporary directory, and hook for its removal unless debugging. | |
13715 | $debug || | |
13716 | { | |
13717 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
13718 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
13719 | } | |
13720 | ||
13721 | # Create a (secure) tmp directory for tmp files. | |
e5a52504 | 13722 | |
42ecbf5e DJ |
13723 | { |
13724 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
13725 | test -n "$tmp" && test -d "$tmp" | |
13726 | } || | |
13727 | { | |
13728 | tmp=./confstat$$-$RANDOM | |
13729 | (umask 077 && mkdir $tmp) | |
13730 | } || | |
13731 | { | |
13732 | echo "$me: cannot create a temporary directory in ." >&2 | |
13733 | { (exit 1); exit 1; } | |
13734 | } | |
e5a52504 | 13735 | |
42ecbf5e | 13736 | _ACEOF |
d15b04bd | 13737 | |
42ecbf5e DJ |
13738 | cat >>$CONFIG_STATUS <<_ACEOF |
13739 | ||
13740 | # | |
13741 | # CONFIG_FILES section. | |
13742 | # | |
13743 | ||
13744 | # No need to generate the scripts if there are no CONFIG_FILES. | |
13745 | # This happens for instance when ./config.status config.h | |
13746 | if test -n "\$CONFIG_FILES"; then | |
13747 | # Protect against being on the right side of a sed subst in config.status. | |
13748 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
13749 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
13750 | s,@SHELL@,$SHELL,;t t | |
13751 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
13752 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
13753 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
13754 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
13755 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
13756 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
13757 | s,@exec_prefix@,$exec_prefix,;t t | |
13758 | s,@prefix@,$prefix,;t t | |
13759 | s,@program_transform_name@,$program_transform_name,;t t | |
13760 | s,@bindir@,$bindir,;t t | |
13761 | s,@sbindir@,$sbindir,;t t | |
13762 | s,@libexecdir@,$libexecdir,;t t | |
13763 | s,@datadir@,$datadir,;t t | |
13764 | s,@sysconfdir@,$sysconfdir,;t t | |
13765 | s,@sharedstatedir@,$sharedstatedir,;t t | |
13766 | s,@localstatedir@,$localstatedir,;t t | |
13767 | s,@libdir@,$libdir,;t t | |
13768 | s,@includedir@,$includedir,;t t | |
13769 | s,@oldincludedir@,$oldincludedir,;t t | |
13770 | s,@infodir@,$infodir,;t t | |
13771 | s,@mandir@,$mandir,;t t | |
13772 | s,@build_alias@,$build_alias,;t t | |
13773 | s,@host_alias@,$host_alias,;t t | |
13774 | s,@target_alias@,$target_alias,;t t | |
13775 | s,@DEFS@,$DEFS,;t t | |
13776 | s,@ECHO_C@,$ECHO_C,;t t | |
13777 | s,@ECHO_N@,$ECHO_N,;t t | |
13778 | s,@ECHO_T@,$ECHO_T,;t t | |
13779 | s,@LIBS@,$LIBS,;t t | |
13780 | s,@build@,$build,;t t | |
13781 | s,@build_cpu@,$build_cpu,;t t | |
13782 | s,@build_vendor@,$build_vendor,;t t | |
13783 | s,@build_os@,$build_os,;t t | |
13784 | s,@host@,$host,;t t | |
13785 | s,@host_cpu@,$host_cpu,;t t | |
13786 | s,@host_vendor@,$host_vendor,;t t | |
13787 | s,@host_os@,$host_os,;t t | |
13788 | s,@target@,$target,;t t | |
13789 | s,@target_cpu@,$target_cpu,;t t | |
13790 | s,@target_vendor@,$target_vendor,;t t | |
13791 | s,@target_os@,$target_os,;t t | |
13792 | s,@CC@,$CC,;t t | |
13793 | s,@CFLAGS@,$CFLAGS,;t t | |
13794 | s,@LDFLAGS@,$LDFLAGS,;t t | |
13795 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
13796 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
13797 | s,@EXEEXT@,$EXEEXT,;t t | |
13798 | s,@OBJEXT@,$OBJEXT,;t t | |
13799 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
13800 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
13801 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
13802 | s,@CYGPATH_W@,$CYGPATH_W,;t t | |
13803 | s,@PACKAGE@,$PACKAGE,;t t | |
13804 | s,@VERSION@,$VERSION,;t t | |
13805 | s,@ACLOCAL@,$ACLOCAL,;t t | |
13806 | s,@AUTOCONF@,$AUTOCONF,;t t | |
13807 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
13808 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
13809 | s,@MAKEINFO@,$MAKEINFO,;t t | |
13810 | s,@install_sh@,$install_sh,;t t | |
13811 | s,@STRIP@,$STRIP,;t t | |
13812 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
13813 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
13814 | s,@mkdir_p@,$mkdir_p,;t t | |
13815 | s,@AWK@,$AWK,;t t | |
13816 | s,@SET_MAKE@,$SET_MAKE,;t t | |
13817 | s,@am__leading_dot@,$am__leading_dot,;t t | |
13818 | s,@AMTAR@,$AMTAR,;t t | |
13819 | s,@am__tar@,$am__tar,;t t | |
13820 | s,@am__untar@,$am__untar,;t t | |
13821 | s,@DEPDIR@,$DEPDIR,;t t | |
13822 | s,@am__include@,$am__include,;t t | |
13823 | s,@am__quote@,$am__quote,;t t | |
13824 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
13825 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
13826 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
13827 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
13828 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
13829 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
ce2cded5 L |
13830 | s,@use_sysroot@,$use_sysroot,;t t |
13831 | s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t | |
13832 | s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t | |
13833 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
13834 | s,@NO_WERROR@,$NO_WERROR,;t t | |
d7040cdb SE |
13835 | s,@LIBTOOL@,$LIBTOOL,;t t |
13836 | s,@SED@,$SED,;t t | |
13837 | s,@EGREP@,$EGREP,;t t | |
13838 | s,@FGREP@,$FGREP,;t t | |
13839 | s,@GREP@,$GREP,;t t | |
13840 | s,@LD@,$LD,;t t | |
13841 | s,@DUMPBIN@,$DUMPBIN,;t t | |
13842 | s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t | |
13843 | s,@NM@,$NM,;t t | |
42ecbf5e | 13844 | s,@LN_S@,$LN_S,;t t |
d7040cdb SE |
13845 | s,@AR@,$AR,;t t |
13846 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
42ecbf5e DJ |
13847 | s,@RANLIB@,$RANLIB,;t t |
13848 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
d7040cdb SE |
13849 | s,@lt_ECHO@,$lt_ECHO,;t t |
13850 | s,@CPP@,$CPP,;t t | |
42ecbf5e | 13851 | s,@USE_NLS@,$USE_NLS,;t t |
20e95c23 DJ |
13852 | s,@LIBINTL@,$LIBINTL,;t t |
13853 | s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t | |
13854 | s,@INCINTL@,$INCINTL,;t t | |
42ecbf5e | 13855 | s,@XGETTEXT@,$XGETTEXT,;t t |
20e95c23 DJ |
13856 | s,@GMSGFMT@,$GMSGFMT,;t t |
13857 | s,@POSUB@,$POSUB,;t t | |
42ecbf5e | 13858 | s,@CATALOGS@,$CATALOGS,;t t |
42ecbf5e | 13859 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
42ecbf5e | 13860 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t |
20e95c23 DJ |
13861 | s,@GENCAT@,$GENCAT,;t t |
13862 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
42ecbf5e | 13863 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
20e95c23 DJ |
13864 | s,@MSGFMT@,$MSGFMT,;t t |
13865 | s,@MSGMERGE@,$MSGMERGE,;t t | |
42ecbf5e DJ |
13866 | s,@YACC@,$YACC,;t t |
13867 | s,@LEX@,$LEX,;t t | |
13868 | s,@LEXLIB@,$LEXLIB,;t t | |
13869 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | |
13870 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
13871 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
13872 | s,@MAINT@,$MAINT,;t t | |
d5fbea21 DJ |
13873 | s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t |
13874 | s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t | |
42ecbf5e DJ |
13875 | s,@HDEFINES@,$HDEFINES,;t t |
13876 | s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t | |
13877 | s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t | |
13878 | s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t | |
13879 | s,@STRINGIFY@,$STRINGIFY,;t t | |
13880 | s,@EMUL@,$EMUL,;t t | |
13881 | s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t | |
13882 | s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t | |
13883 | s,@LIB_PATH@,$LIB_PATH,;t t | |
13884 | s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t | |
13885 | s,@TESTBFDLIB@,$TESTBFDLIB,;t t | |
108a6f8e CD |
13886 | s,@datarootdir@,$datarootdir,;t t |
13887 | s,@docdir@,$docdir,;t t | |
13888 | s,@htmldir@,$htmldir,;t t | |
42ecbf5e DJ |
13889 | s,@LIBOBJS@,$LIBOBJS,;t t |
13890 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
13891 | /@TDIRS@/r $TDIRS | |
13892 | s,@TDIRS@,,;t t | |
252b5132 | 13893 | CEOF |
252b5132 | 13894 | |
42ecbf5e DJ |
13895 | _ACEOF |
13896 | ||
13897 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13898 | # Split the substitutions into bite-sized pieces for seds with | |
13899 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
13900 | ac_max_sed_lines=48 | |
13901 | ac_sed_frag=1 # Number of current file. | |
13902 | ac_beg=1 # First line for current file. | |
13903 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
13904 | ac_more_lines=: | |
13905 | ac_sed_cmds= | |
13906 | while $ac_more_lines; do | |
13907 | if test $ac_beg -gt 1; then | |
13908 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
13909 | else | |
13910 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
13911 | fi | |
13912 | if test ! -s $tmp/subs.frag; then | |
13913 | ac_more_lines=false | |
252b5132 | 13914 | else |
42ecbf5e DJ |
13915 | # The purpose of the label and of the branching condition is to |
13916 | # speed up the sed processing (if there are no `@' at all, there | |
13917 | # is no need to browse any of the substitutions). | |
13918 | # These are the two extra sed commands mentioned above. | |
13919 | (echo ':t | |
13920 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
13921 | if test -z "$ac_sed_cmds"; then | |
13922 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
13923 | else | |
13924 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
13925 | fi | |
13926 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
13927 | ac_beg=$ac_end | |
13928 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
252b5132 | 13929 | fi |
42ecbf5e DJ |
13930 | done |
13931 | if test -z "$ac_sed_cmds"; then | |
13932 | ac_sed_cmds=cat | |
252b5132 | 13933 | fi |
42ecbf5e | 13934 | fi # test -n "$CONFIG_FILES" |
252b5132 | 13935 | |
42ecbf5e DJ |
13936 | _ACEOF |
13937 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13938 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
252b5132 | 13939 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
42ecbf5e DJ |
13940 | case $ac_file in |
13941 | - | *:- | *:-:* ) # input from stdin | |
13942 | cat >$tmp/stdin | |
13943 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13944 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13945 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13946 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13947 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
13948 | esac |
13949 | ||
42ecbf5e DJ |
13950 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
13951 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
13952 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13953 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
13954 | X"$ac_file" : 'X\(//\)$' \| \ | |
13955 | X"$ac_file" : 'X\(/\)' \| \ | |
13956 | . : '\(.\)' 2>/dev/null || | |
13957 | echo X"$ac_file" | | |
13958 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
13959 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13960 | /^X\(\/\/\)$/{ s//\1/; q; } | |
13961 | /^X\(\/\).*/{ s//\1/; q; } | |
13962 | s/.*/./; q'` | |
13963 | { if $as_mkdir_p; then | |
13964 | mkdir -p "$ac_dir" | |
d15b04bd | 13965 | else |
42ecbf5e DJ |
13966 | as_dir="$ac_dir" |
13967 | as_dirs= | |
13968 | while test ! -d "$as_dir"; do | |
13969 | as_dirs="$as_dir $as_dirs" | |
13970 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
13971 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13972 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
13973 | X"$as_dir" : 'X\(//\)$' \| \ | |
13974 | X"$as_dir" : 'X\(/\)' \| \ | |
13975 | . : '\(.\)' 2>/dev/null || | |
13976 | echo X"$as_dir" | | |
13977 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
13978 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13979 | /^X\(\/\/\)$/{ s//\1/; q; } | |
13980 | /^X\(\/\).*/{ s//\1/; q; } | |
13981 | s/.*/./; q'` | |
13982 | done | |
13983 | test ! -n "$as_dirs" || mkdir $as_dirs | |
13984 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
13985 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
13986 | { (exit 1); exit 1; }; }; } | |
13987 | ||
13988 | ac_builddir=. | |
13989 | ||
13990 | if test "$ac_dir" != .; then | |
13991 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
13992 | # A "../" for each directory in $ac_dir_suffix. | |
13993 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
13994 | else | |
13995 | ac_dir_suffix= ac_top_builddir= | |
13996 | fi | |
252b5132 | 13997 | |
42ecbf5e DJ |
13998 | case $srcdir in |
13999 | .) # No --srcdir option. We are building in place. | |
14000 | ac_srcdir=. | |
14001 | if test -z "$ac_top_builddir"; then | |
14002 | ac_top_srcdir=. | |
14003 | else | |
14004 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
14005 | fi ;; | |
14006 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
14007 | ac_srcdir=$srcdir$ac_dir_suffix; | |
14008 | ac_top_srcdir=$srcdir ;; | |
252b5132 | 14009 | *) # Relative path. |
42ecbf5e DJ |
14010 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
14011 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
14012 | esac | |
14013 | ||
14014 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
14015 | # the directories may not exist. | |
14016 | case `pwd` in | |
14017 | .) ac_abs_builddir="$ac_dir";; | |
14018 | *) | |
14019 | case "$ac_dir" in | |
14020 | .) ac_abs_builddir=`pwd`;; | |
14021 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
14022 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
14023 | esac;; | |
14024 | esac | |
14025 | case $ac_abs_builddir in | |
14026 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
14027 | *) | |
14028 | case ${ac_top_builddir}. in | |
14029 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
14030 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
14031 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
14032 | esac;; | |
14033 | esac | |
14034 | case $ac_abs_builddir in | |
14035 | .) ac_abs_srcdir=$ac_srcdir;; | |
14036 | *) | |
14037 | case $ac_srcdir in | |
14038 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
14039 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
14040 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
14041 | esac;; | |
14042 | esac | |
14043 | case $ac_abs_builddir in | |
14044 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
14045 | *) | |
14046 | case $ac_top_srcdir in | |
14047 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
14048 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
14049 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
14050 | esac;; | |
14051 | esac | |
252b5132 | 14052 | |
e5a52504 | 14053 | |
42ecbf5e DJ |
14054 | case $INSTALL in |
14055 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
14056 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
d15b04bd | 14057 | esac |
e5a52504 | 14058 | |
502bdb00 JW |
14059 | if test x"$ac_file" != x-; then |
14060 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
14061 | echo "$as_me: creating $ac_file" >&6;} | |
14062 | rm -f "$ac_file" | |
14063 | fi | |
42ecbf5e DJ |
14064 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
14065 | # use $as_me), people would be surprised to read: | |
14066 | # /* config.h. Generated by config.status. */ | |
14067 | if test x"$ac_file" = x-; then | |
14068 | configure_input= | |
14069 | else | |
14070 | configure_input="$ac_file. " | |
14071 | fi | |
14072 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
14073 | sed 's,.*/,,'` by configure." | |
14074 | ||
14075 | # First look for the input files in the build tree, otherwise in the | |
14076 | # src tree. | |
14077 | ac_file_inputs=`IFS=: | |
14078 | for f in $ac_file_in; do | |
14079 | case $f in | |
14080 | -) echo $tmp/stdin ;; | |
14081 | [\\/$]*) | |
14082 | # Absolute (can't be DOS-style, as IFS=:) | |
14083 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
14084 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
14085 | { (exit 1); exit 1; }; } | |
14086 | echo "$f";; | |
14087 | *) # Relative | |
14088 | if test -f "$f"; then | |
14089 | # Build tree | |
14090 | echo "$f" | |
14091 | elif test -f "$srcdir/$f"; then | |
14092 | # Source tree | |
14093 | echo "$srcdir/$f" | |
14094 | else | |
14095 | # /dev/null tree | |
14096 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
14097 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
14098 | { (exit 1); exit 1; }; } | |
14099 | fi;; | |
14100 | esac | |
14101 | done` || { (exit 1); exit 1; } | |
42ecbf5e DJ |
14102 | _ACEOF |
14103 | cat >>$CONFIG_STATUS <<_ACEOF | |
14104 | sed "$ac_vpsub | |
14105 | $extrasub | |
14106 | _ACEOF | |
14107 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14108 | :t | |
14109 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
14110 | s,@configure_input@,$configure_input,;t t | |
14111 | s,@srcdir@,$ac_srcdir,;t t | |
14112 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
14113 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
14114 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
14115 | s,@builddir@,$ac_builddir,;t t | |
14116 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
14117 | s,@top_builddir@,$ac_top_builddir,;t t | |
14118 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
14119 | s,@INSTALL@,$ac_INSTALL,;t t | |
14120 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
14121 | rm -f $tmp/stdin | |
14122 | if test x"$ac_file" != x-; then | |
14123 | mv $tmp/out $ac_file | |
14124 | else | |
14125 | cat $tmp/out | |
14126 | rm -f $tmp/out | |
14127 | fi | |
14128 | ||
14129 | done | |
14130 | _ACEOF | |
14131 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14132 | ||
14133 | # | |
14134 | # CONFIG_HEADER section. | |
14135 | # | |
252b5132 RH |
14136 | |
14137 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
14138 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
14139 | # | |
14140 | # ac_d sets the value in "#define NAME VALUE" lines. | |
42ecbf5e DJ |
14141 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
14142 | ac_dB='[ ].*$,\1#\2' | |
14143 | ac_dC=' ' | |
14144 | ac_dD=',;t' | |
14145 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
14146 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
14147 | ac_uB='$,\1#\2define\3' | |
252b5132 | 14148 | ac_uC=' ' |
42ecbf5e DJ |
14149 | ac_uD=',;t' |
14150 | ||
14151 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
252b5132 | 14152 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
42ecbf5e DJ |
14153 | case $ac_file in |
14154 | - | *:- | *:-:* ) # input from stdin | |
14155 | cat >$tmp/stdin | |
14156 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
14157 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
14158 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
14159 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
14160 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
14161 | esac |
14162 | ||
42ecbf5e DJ |
14163 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
14164 | echo "$as_me: creating $ac_file" >&6;} | |
14165 | ||
14166 | # First look for the input files in the build tree, otherwise in the | |
14167 | # src tree. | |
14168 | ac_file_inputs=`IFS=: | |
14169 | for f in $ac_file_in; do | |
14170 | case $f in | |
14171 | -) echo $tmp/stdin ;; | |
14172 | [\\/$]*) | |
14173 | # Absolute (can't be DOS-style, as IFS=:) | |
14174 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
14175 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
14176 | { (exit 1); exit 1; }; } | |
14177 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
14178 | echo "$f";; | |
14179 | *) # Relative | |
14180 | if test -f "$f"; then | |
14181 | # Build tree | |
14182 | echo "$f" | |
14183 | elif test -f "$srcdir/$f"; then | |
14184 | # Source tree | |
14185 | echo "$srcdir/$f" | |
14186 | else | |
14187 | # /dev/null tree | |
14188 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
14189 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
14190 | { (exit 1); exit 1; }; } | |
14191 | fi;; | |
14192 | esac | |
14193 | done` || { (exit 1); exit 1; } | |
14194 | # Remove the trailing spaces. | |
14195 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
14196 | ||
14197 | _ACEOF | |
14198 | ||
14199 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
14200 | # `conftest.undefs', that substitutes the proper values into | |
14201 | # config.h.in to produce config.h. The first handles `#define' | |
14202 | # templates, and the second `#undef' templates. | |
14203 | # And first: Protect against being on the right side of a sed subst in | |
14204 | # config.status. Protect against being in an unquoted here document | |
14205 | # in config.status. | |
14206 | rm -f conftest.defines conftest.undefs | |
14207 | # Using a here document instead of a string reduces the quoting nightmare. | |
14208 | # Putting comments in sed scripts is not portable. | |
14209 | # | |
14210 | # `end' is used to avoid that the second main sed command (meant for | |
14211 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
14212 | # See the Autoconf documentation for `clear'. | |
14213 | cat >confdef2sed.sed <<\_ACEOF | |
14214 | s/[\\&,]/\\&/g | |
14215 | s,[\\$`],\\&,g | |
14216 | t clear | |
14217 | : clear | |
14218 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
14219 | t end | |
14220 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
14221 | : end | |
14222 | _ACEOF | |
14223 | # If some macros were called several times there might be several times | |
14224 | # the same #defines, which is useless. Nevertheless, we may not want to | |
14225 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
14226 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
14227 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
14228 | rm -f confdef2sed.sed | |
252b5132 RH |
14229 | |
14230 | # This sed command replaces #undef with comments. This is necessary, for | |
14231 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
14232 | # on some systems where configure will not decide to define it. | |
42ecbf5e DJ |
14233 | cat >>conftest.undefs <<\_ACEOF |
14234 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
14235 | _ACEOF | |
14236 | ||
14237 | # Break up conftest.defines because some shells have a limit on the size | |
14238 | # of here documents, and old seds have small limits too (100 cmds). | |
14239 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
14240 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
14241 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
14242 | echo ' :' >>$CONFIG_STATUS | |
14243 | rm -f conftest.tail | |
14244 | while grep . conftest.defines >/dev/null | |
14245 | do | |
14246 | # Write a limited-size here document to $tmp/defines.sed. | |
14247 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
14248 | # Speed up: don't consider the non `#define' lines. | |
14249 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
14250 | # Work around the forget-to-reset-the-flag bug. | |
14251 | echo 't clr' >>$CONFIG_STATUS | |
14252 | echo ': clr' >>$CONFIG_STATUS | |
14253 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
14254 | echo 'CEOF | |
14255 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
14256 | rm -f $tmp/in | |
14257 | mv $tmp/out $tmp/in | |
14258 | ' >>$CONFIG_STATUS | |
14259 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
14260 | rm -f conftest.defines | |
14261 | mv conftest.tail conftest.defines | |
14262 | done | |
14263 | rm -f conftest.defines | |
14264 | echo ' fi # grep' >>$CONFIG_STATUS | |
14265 | echo >>$CONFIG_STATUS | |
252b5132 | 14266 | |
42ecbf5e DJ |
14267 | # Break up conftest.undefs because some shells have a limit on the size |
14268 | # of here documents, and old seds have small limits too (100 cmds). | |
14269 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
252b5132 | 14270 | rm -f conftest.tail |
42ecbf5e | 14271 | while grep . conftest.undefs >/dev/null |
252b5132 | 14272 | do |
42ecbf5e DJ |
14273 | # Write a limited-size here document to $tmp/undefs.sed. |
14274 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
14275 | # Speed up: don't consider the non `#undef' | |
14276 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
14277 | # Work around the forget-to-reset-the-flag bug. | |
14278 | echo 't clr' >>$CONFIG_STATUS | |
14279 | echo ': clr' >>$CONFIG_STATUS | |
14280 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
252b5132 | 14281 | echo 'CEOF |
42ecbf5e DJ |
14282 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
14283 | rm -f $tmp/in | |
14284 | mv $tmp/out $tmp/in | |
14285 | ' >>$CONFIG_STATUS | |
14286 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
14287 | rm -f conftest.undefs | |
14288 | mv conftest.tail conftest.undefs | |
252b5132 | 14289 | done |
42ecbf5e DJ |
14290 | rm -f conftest.undefs |
14291 | ||
14292 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14293 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
14294 | # use $as_me), people would be surprised to read: | |
14295 | # /* config.h. Generated by config.status. */ | |
14296 | if test x"$ac_file" = x-; then | |
14297 | echo "/* Generated by configure. */" >$tmp/config.h | |
252b5132 | 14298 | else |
42ecbf5e DJ |
14299 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
14300 | fi | |
14301 | cat $tmp/in >>$tmp/config.h | |
14302 | rm -f $tmp/in | |
14303 | if test x"$ac_file" != x-; then | |
14304 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
14305 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
14306 | echo "$as_me: $ac_file is unchanged" >&6;} | |
14307 | else | |
14308 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
14309 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14310 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
14311 | X"$ac_file" : 'X\(//\)$' \| \ | |
14312 | X"$ac_file" : 'X\(/\)' \| \ | |
14313 | . : '\(.\)' 2>/dev/null || | |
14314 | echo X"$ac_file" | | |
14315 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14316 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14317 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14318 | /^X\(\/\).*/{ s//\1/; q; } | |
14319 | s/.*/./; q'` | |
14320 | { if $as_mkdir_p; then | |
14321 | mkdir -p "$ac_dir" | |
14322 | else | |
14323 | as_dir="$ac_dir" | |
14324 | as_dirs= | |
14325 | while test ! -d "$as_dir"; do | |
14326 | as_dirs="$as_dir $as_dirs" | |
14327 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
14328 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14329 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14330 | X"$as_dir" : 'X\(//\)$' \| \ | |
14331 | X"$as_dir" : 'X\(/\)' \| \ | |
14332 | . : '\(.\)' 2>/dev/null || | |
14333 | echo X"$as_dir" | | |
14334 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14335 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14336 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14337 | /^X\(\/\).*/{ s//\1/; q; } | |
14338 | s/.*/./; q'` | |
14339 | done | |
14340 | test ! -n "$as_dirs" || mkdir $as_dirs | |
14341 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
14342 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
14343 | { (exit 1); exit 1; }; }; } | |
14344 | ||
14345 | rm -f $ac_file | |
14346 | mv $tmp/config.h $ac_file | |
252b5132 | 14347 | fi |
42ecbf5e DJ |
14348 | else |
14349 | cat $tmp/config.h | |
14350 | rm -f $tmp/config.h | |
e5a52504 | 14351 | fi |
42ecbf5e DJ |
14352 | # Compute $ac_file's index in $config_headers. |
14353 | _am_stamp_count=1 | |
14354 | for _am_header in $config_headers :; do | |
14355 | case $_am_header in | |
14356 | $ac_file | $ac_file:* ) | |
14357 | break ;; | |
14358 | * ) | |
14359 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
14360 | esac | |
14361 | done | |
14362 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
14363 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14364 | X$ac_file : 'X\(//\)[^/]' \| \ | |
14365 | X$ac_file : 'X\(//\)$' \| \ | |
14366 | X$ac_file : 'X\(/\)' \| \ | |
14367 | . : '\(.\)' 2>/dev/null || | |
14368 | echo X$ac_file | | |
14369 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14370 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14371 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14372 | /^X\(\/\).*/{ s//\1/; q; } | |
14373 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
14374 | done | |
14375 | _ACEOF | |
14376 | cat >>$CONFIG_STATUS <<\_ACEOF | |
e5a52504 | 14377 | |
42ecbf5e DJ |
14378 | # |
14379 | # CONFIG_COMMANDS section. | |
14380 | # | |
14381 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
14382 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
14383 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
14384 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
14385 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14386 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
14387 | X"$ac_dest" : 'X\(//\)$' \| \ | |
14388 | X"$ac_dest" : 'X\(/\)' \| \ | |
14389 | . : '\(.\)' 2>/dev/null || | |
14390 | echo X"$ac_dest" | | |
14391 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14392 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14393 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14394 | /^X\(\/\).*/{ s//\1/; q; } | |
14395 | s/.*/./; q'` | |
14396 | { if $as_mkdir_p; then | |
14397 | mkdir -p "$ac_dir" | |
14398 | else | |
14399 | as_dir="$ac_dir" | |
14400 | as_dirs= | |
14401 | while test ! -d "$as_dir"; do | |
14402 | as_dirs="$as_dir $as_dirs" | |
14403 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
14404 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14405 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14406 | X"$as_dir" : 'X\(//\)$' \| \ | |
14407 | X"$as_dir" : 'X\(/\)' \| \ | |
14408 | . : '\(.\)' 2>/dev/null || | |
14409 | echo X"$as_dir" | | |
14410 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14411 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14412 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14413 | /^X\(\/\).*/{ s//\1/; q; } | |
14414 | s/.*/./; q'` | |
14415 | done | |
14416 | test ! -n "$as_dirs" || mkdir $as_dirs | |
14417 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
14418 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
14419 | { (exit 1); exit 1; }; }; } | |
e5a52504 | 14420 | |
42ecbf5e | 14421 | ac_builddir=. |
e5a52504 | 14422 | |
42ecbf5e DJ |
14423 | if test "$ac_dir" != .; then |
14424 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
14425 | # A "../" for each directory in $ac_dir_suffix. | |
14426 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
14427 | else | |
14428 | ac_dir_suffix= ac_top_builddir= | |
14429 | fi | |
14430 | ||
14431 | case $srcdir in | |
14432 | .) # No --srcdir option. We are building in place. | |
14433 | ac_srcdir=. | |
14434 | if test -z "$ac_top_builddir"; then | |
14435 | ac_top_srcdir=. | |
14436 | else | |
14437 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
14438 | fi ;; | |
14439 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
14440 | ac_srcdir=$srcdir$ac_dir_suffix; | |
14441 | ac_top_srcdir=$srcdir ;; | |
14442 | *) # Relative path. | |
14443 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
14444 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
14445 | esac | |
14446 | ||
14447 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
14448 | # the directories may not exist. | |
14449 | case `pwd` in | |
14450 | .) ac_abs_builddir="$ac_dir";; | |
14451 | *) | |
14452 | case "$ac_dir" in | |
14453 | .) ac_abs_builddir=`pwd`;; | |
14454 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
14455 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
14456 | esac;; | |
14457 | esac | |
14458 | case $ac_abs_builddir in | |
14459 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
14460 | *) | |
14461 | case ${ac_top_builddir}. in | |
14462 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
14463 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
14464 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
14465 | esac;; | |
14466 | esac | |
14467 | case $ac_abs_builddir in | |
14468 | .) ac_abs_srcdir=$ac_srcdir;; | |
14469 | *) | |
14470 | case $ac_srcdir in | |
14471 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
14472 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
14473 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
14474 | esac;; | |
14475 | esac | |
14476 | case $ac_abs_builddir in | |
14477 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
14478 | *) | |
14479 | case $ac_top_srcdir in | |
14480 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
14481 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
14482 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
14483 | esac;; | |
14484 | esac | |
14485 | ||
14486 | ||
14487 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
14488 | echo "$as_me: executing $ac_dest commands" >&6;} | |
14489 | case $ac_dest in | |
14490 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
14491 | # Strip MF so we end up with the name of the file. | |
14492 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
14493 | # Check whether this is an Automake generated Makefile or not. | |
14494 | # We used to match only the files named `Makefile.in', but | |
14495 | # some people rename them; so instead we look at the file content. | |
14496 | # Grep'ing the first line is not enough: some people post-process | |
14497 | # each Makefile.in and add a new line on top of each file to say so. | |
14498 | # So let's grep whole file. | |
14499 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
14500 | dirpart=`(dirname "$mf") 2>/dev/null || | |
14501 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14502 | X"$mf" : 'X\(//\)[^/]' \| \ | |
14503 | X"$mf" : 'X\(//\)$' \| \ | |
14504 | X"$mf" : 'X\(/\)' \| \ | |
14505 | . : '\(.\)' 2>/dev/null || | |
14506 | echo X"$mf" | | |
14507 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14508 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14509 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14510 | /^X\(\/\).*/{ s//\1/; q; } | |
14511 | s/.*/./; q'` | |
14512 | else | |
14513 | continue | |
14514 | fi | |
14515 | # Extract the definition of DEPDIR, am__include, and am__quote | |
14516 | # from the Makefile without running `make'. | |
14517 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
14518 | test -z "$DEPDIR" && continue | |
14519 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
14520 | test -z "am__include" && continue | |
14521 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
14522 | # When using ansi2knr, U may be empty or an underscore; expand it | |
14523 | U=`sed -n 's/^U = //p' < "$mf"` | |
14524 | # Find all dependency output files, they are included files with | |
14525 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
14526 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
14527 | # expansion. | |
14528 | for file in `sed -n " | |
14529 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
14530 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
14531 | # Make sure the directory exists. | |
14532 | test -f "$dirpart/$file" && continue | |
14533 | fdir=`(dirname "$file") 2>/dev/null || | |
14534 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14535 | X"$file" : 'X\(//\)[^/]' \| \ | |
14536 | X"$file" : 'X\(//\)$' \| \ | |
14537 | X"$file" : 'X\(/\)' \| \ | |
14538 | . : '\(.\)' 2>/dev/null || | |
14539 | echo X"$file" | | |
14540 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14541 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14542 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14543 | /^X\(\/\).*/{ s//\1/; q; } | |
14544 | s/.*/./; q'` | |
14545 | { if $as_mkdir_p; then | |
14546 | mkdir -p $dirpart/$fdir | |
14547 | else | |
14548 | as_dir=$dirpart/$fdir | |
14549 | as_dirs= | |
14550 | while test ! -d "$as_dir"; do | |
14551 | as_dirs="$as_dir $as_dirs" | |
14552 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
14553 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14554 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14555 | X"$as_dir" : 'X\(//\)$' \| \ | |
14556 | X"$as_dir" : 'X\(/\)' \| \ | |
14557 | . : '\(.\)' 2>/dev/null || | |
14558 | echo X"$as_dir" | | |
14559 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14560 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14561 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14562 | /^X\(\/\).*/{ s//\1/; q; } | |
14563 | s/.*/./; q'` | |
14564 | done | |
14565 | test ! -n "$as_dirs" || mkdir $as_dirs | |
14566 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
14567 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
14568 | { (exit 1); exit 1; }; }; } | |
14569 | ||
14570 | # echo "creating $dirpart/$file" | |
14571 | echo '# dummy' > "$dirpart/$file" | |
14572 | done | |
14573 | done | |
d7040cdb SE |
14574 | ;; |
14575 | libtool ) | |
14576 | ||
14577 | # See if we are running on zsh, and set the options which allow our | |
14578 | # commands through without removal of \ escapes. | |
14579 | if test -n "${ZSH_VERSION+set}" ; then | |
14580 | setopt NO_GLOB_SUBST | |
14581 | fi | |
14582 | ||
14583 | cfgfile="${ofile}T" | |
14584 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
14585 | $RM "$cfgfile" | |
14586 | ||
14587 | cat <<_LT_EOF >> "$cfgfile" | |
14588 | #! $SHELL | |
14589 | ||
14590 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
14591 | # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION | |
14592 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
14593 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
14594 | # | |
14595 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
14596 | # 2006, 2007 Free Software Foundation, Inc. | |
14597 | # | |
14598 | # This file is part of GNU Libtool: | |
14599 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |
14600 | # | |
14601 | # This program is free software; you can redistribute it and/or modify | |
14602 | # it under the terms of the GNU General Public License as published by | |
67310ccd | 14603 | # the Free Software Foundation; either version 2 of the License, or |
d7040cdb SE |
14604 | # (at your option) any later version. |
14605 | # | |
14606 | # This program is distributed in the hope that it will be useful, but | |
14607 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
14608 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14609 | # General Public License for more details. | |
14610 | # | |
14611 | # You should have received a copy of the GNU General Public License | |
14612 | # along with this program; if not, a copy can be downloaded from | |
14613 | # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free | |
14614 | # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | |
14615 | # MA 02110-1301, USA. | |
14616 | # | |
14617 | # As a special exception to the GNU General Public License, if you | |
14618 | # distribute this file as part of a program that contains a | |
14619 | # configuration script generated by Autoconf, you may include it under | |
14620 | # the same distribution terms that you use for the rest of that program. | |
14621 | ||
14622 | ||
14623 | # The names of the tagged configurations supported by this script. | |
14624 | available_tags="" | |
14625 | ||
14626 | # ### BEGIN LIBTOOL CONFIG | |
14627 | ||
14628 | # Which release of libtool.m4 was used? | |
14629 | macro_version=$macro_version | |
14630 | macro_revision=$macro_revision | |
14631 | ||
14632 | # Whether or not to build shared libraries. | |
14633 | build_libtool_libs=$enable_shared | |
14634 | ||
14635 | # Whether or not to build static libraries. | |
14636 | build_old_libs=$enable_static | |
14637 | ||
14638 | # What type of objects to build. | |
14639 | pic_mode=$pic_mode | |
14640 | ||
14641 | # Whether or not to optimize for fast installation. | |
14642 | fast_install=$enable_fast_install | |
14643 | ||
14644 | # The host system. | |
14645 | host_alias=$host_alias | |
14646 | host=$host | |
14647 | host_os=$host_os | |
14648 | ||
14649 | # The build system. | |
14650 | build_alias=$build_alias | |
14651 | build=$build | |
14652 | build_os=$build_os | |
14653 | ||
14654 | # A sed program that does not truncate output. | |
14655 | SED=$lt_SED | |
14656 | ||
14657 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
14658 | Xsed="\$SED -e 1s/^X//" | |
14659 | ||
14660 | # A grep program that handles long lines. | |
14661 | GREP=$lt_GREP | |
14662 | ||
14663 | # An ERE matcher. | |
14664 | EGREP=$lt_EGREP | |
14665 | ||
14666 | # A literal string matcher. | |
14667 | FGREP=$lt_FGREP | |
14668 | ||
14669 | # A BSD- or MS-compatible name lister. | |
14670 | NM=$lt_NM | |
14671 | ||
14672 | # Whether we need soft or hard links. | |
14673 | LN_S=$lt_LN_S | |
14674 | ||
14675 | # What is the maximum length of a command? | |
14676 | max_cmd_len=$max_cmd_len | |
14677 | ||
14678 | # Object file suffix (normally "o"). | |
14679 | objext=$ac_objext | |
14680 | ||
14681 | # Executable file suffix (normally ""). | |
14682 | exeext=$exeext | |
14683 | ||
14684 | # whether the shell understands "unset". | |
14685 | lt_unset=$lt_unset | |
14686 | ||
14687 | # turn spaces into newlines. | |
14688 | SP2NL=$lt_lt_SP2NL | |
14689 | ||
14690 | # turn newlines into spaces. | |
14691 | NL2SP=$lt_lt_NL2SP | |
14692 | ||
14693 | # How to create reloadable object files. | |
14694 | reload_flag=$lt_reload_flag | |
14695 | reload_cmds=$lt_reload_cmds | |
14696 | ||
14697 | # Method to check whether dependent libraries are shared objects. | |
14698 | deplibs_check_method=$lt_deplibs_check_method | |
14699 | ||
14700 | # Command to use when deplibs_check_method == "file_magic". | |
14701 | file_magic_cmd=$lt_file_magic_cmd | |
14702 | ||
14703 | # The archiver. | |
14704 | AR=$lt_AR | |
14705 | AR_FLAGS=$lt_AR_FLAGS | |
14706 | ||
14707 | # A symbol stripping program. | |
14708 | STRIP=$lt_STRIP | |
14709 | ||
14710 | # Commands used to install an old-style archive. | |
14711 | RANLIB=$lt_RANLIB | |
14712 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
14713 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
14714 | ||
14715 | # A C compiler. | |
14716 | LTCC=$lt_CC | |
14717 | ||
14718 | # LTCC compiler flags. | |
14719 | LTCFLAGS=$lt_CFLAGS | |
14720 | ||
14721 | # Take the output of nm and produce a listing of raw symbols and C names. | |
14722 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
14723 | ||
14724 | # Transform the output of nm in a proper C declaration. | |
14725 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
14726 | ||
14727 | # Transform the output of nm in a C name address pair. | |
14728 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
14729 | ||
14730 | # The name of the directory that contains temporary libtool files. | |
14731 | objdir=$objdir | |
14732 | ||
14733 | # Shell to use when invoking shell scripts. | |
14734 | SHELL=$lt_SHELL | |
14735 | ||
14736 | # An echo program that does not interpret backslashes. | |
14737 | ECHO=$lt_ECHO | |
14738 | ||
14739 | # Used to examine libraries when file_magic_cmd begins with "file". | |
14740 | MAGIC_CMD=$MAGIC_CMD | |
14741 | ||
14742 | # Must we lock files when doing compilation? | |
14743 | need_locks=$lt_need_locks | |
14744 | ||
14745 | # Old archive suffix (normally "a"). | |
14746 | libext=$libext | |
14747 | ||
14748 | # Shared library suffix (normally ".so"). | |
14749 | shrext_cmds=$lt_shrext_cmds | |
14750 | ||
14751 | # The commands to extract the exported symbol list from a shared archive. | |
14752 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
14753 | ||
14754 | # Variables whose values should be saved in libtool wrapper scripts and | |
14755 | # restored at link time. | |
14756 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
14757 | ||
14758 | # Do we need the "lib" prefix for modules? | |
14759 | need_lib_prefix=$need_lib_prefix | |
14760 | ||
14761 | # Do we need a version for libraries? | |
14762 | need_version=$need_version | |
14763 | ||
14764 | # Library versioning type. | |
14765 | version_type=$version_type | |
14766 | ||
14767 | # Shared library runtime path variable. | |
14768 | runpath_var=$runpath_var | |
14769 | ||
14770 | # Shared library path variable. | |
14771 | shlibpath_var=$shlibpath_var | |
14772 | ||
14773 | # Is shlibpath searched before the hard-coded library search path? | |
14774 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
14775 | ||
14776 | # Format of library name prefix. | |
14777 | libname_spec=$lt_libname_spec | |
14778 | ||
14779 | # List of archive names. First name is the real one, the rest are links. | |
14780 | # The last name is the one that the linker finds with -lNAME | |
14781 | library_names_spec=$lt_library_names_spec | |
14782 | ||
14783 | # The coded name of the library, if different from the real name. | |
14784 | soname_spec=$lt_soname_spec | |
14785 | ||
14786 | # Command to use after installation of a shared archive. | |
14787 | postinstall_cmds=$lt_postinstall_cmds | |
14788 | ||
14789 | # Command to use after uninstallation of a shared archive. | |
14790 | postuninstall_cmds=$lt_postuninstall_cmds | |
14791 | ||
14792 | # Commands used to finish a libtool library installation in a directory. | |
14793 | finish_cmds=$lt_finish_cmds | |
14794 | ||
14795 | # As "finish_cmds", except a single script fragment to be evaled but | |
14796 | # not shown. | |
14797 | finish_eval=$lt_finish_eval | |
14798 | ||
14799 | # Whether we should hardcode library paths into libraries. | |
14800 | hardcode_into_libs=$hardcode_into_libs | |
14801 | ||
14802 | # Compile-time system search path for libraries. | |
14803 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
14804 | ||
14805 | # Run-time system search path for libraries. | |
14806 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
14807 | ||
14808 | # Whether dlopen is supported. | |
14809 | dlopen_support=$enable_dlopen | |
14810 | ||
14811 | # Whether dlopen of programs is supported. | |
14812 | dlopen_self=$enable_dlopen_self | |
14813 | ||
14814 | # Whether dlopen of statically linked programs is supported. | |
14815 | dlopen_self_static=$enable_dlopen_self_static | |
14816 | ||
14817 | # Commands to strip libraries. | |
14818 | old_striplib=$lt_old_striplib | |
14819 | striplib=$lt_striplib | |
14820 | ||
14821 | ||
14822 | # The linker used to build libraries. | |
14823 | LD=$lt_LD | |
14824 | ||
14825 | # Commands used to build an old-style archive. | |
14826 | old_archive_cmds=$lt_old_archive_cmds | |
14827 | ||
14828 | # A language specific compiler. | |
14829 | CC=$lt_compiler | |
14830 | ||
14831 | # Is the compiler the GNU compiler? | |
14832 | with_gcc=$GCC | |
14833 | ||
14834 | # Compiler flag to turn off builtin functions. | |
14835 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
14836 | ||
14837 | # How to pass a linker flag through the compiler. | |
14838 | wl=$lt_lt_prog_compiler_wl | |
14839 | ||
14840 | # Additional compiler flags for building library objects. | |
14841 | pic_flag=$lt_lt_prog_compiler_pic | |
14842 | ||
14843 | # Compiler flag to prevent dynamic linking. | |
14844 | link_static_flag=$lt_lt_prog_compiler_static | |
14845 | ||
14846 | # Does compiler simultaneously support -c and -o options? | |
14847 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
14848 | ||
14849 | # Whether or not to add -lc for building shared libraries. | |
14850 | build_libtool_need_lc=$archive_cmds_need_lc | |
14851 | ||
14852 | # Whether or not to disallow shared libs when runtime libs are static. | |
14853 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
14854 | ||
14855 | # Compiler flag to allow reflexive dlopens. | |
14856 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
14857 | ||
14858 | # Compiler flag to generate shared objects directly from archives. | |
14859 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
14860 | ||
14861 | # Whether the compiler copes with passing no objects directly. | |
14862 | compiler_needs_object=$lt_compiler_needs_object | |
14863 | ||
14864 | # Create an old-style archive from a shared archive. | |
14865 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
14866 | ||
14867 | # Create a temporary old-style archive to link instead of a shared archive. | |
14868 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
14869 | ||
14870 | # Commands used to build a shared archive. | |
14871 | archive_cmds=$lt_archive_cmds | |
14872 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
14873 | ||
14874 | # Commands used to build a loadable module if different from building | |
14875 | # a shared archive. | |
14876 | module_cmds=$lt_module_cmds | |
14877 | module_expsym_cmds=$lt_module_expsym_cmds | |
14878 | ||
14879 | # Whether we are building with GNU ld or not. | |
14880 | with_gnu_ld=$lt_with_gnu_ld | |
14881 | ||
14882 | # Flag that allows shared libraries with undefined symbols to be built. | |
14883 | allow_undefined_flag=$lt_allow_undefined_flag | |
14884 | ||
14885 | # Flag that enforces no undefined symbols. | |
14886 | no_undefined_flag=$lt_no_undefined_flag | |
14887 | ||
14888 | # Flag to hardcode \$libdir into a binary during linking. | |
14889 | # This must work even if \$libdir does not exist | |
14890 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
14891 | ||
14892 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
14893 | # during linking. This must work even if \$libdir does not exist. | |
14894 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
14895 | ||
14896 | # Whether we need a single "-rpath" flag with a separated argument. | |
14897 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
14898 | ||
14899 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
14900 | # DIR into the resulting binary. | |
14901 | hardcode_direct=$hardcode_direct | |
14902 | ||
14903 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
14904 | # DIR into the resulting binary and the resulting library dependency is | |
14905 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
14906 | # library is relocated. | |
14907 | hardcode_direct_absolute=$hardcode_direct_absolute | |
14908 | ||
14909 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
14910 | # into the resulting binary. | |
14911 | hardcode_minus_L=$hardcode_minus_L | |
14912 | ||
14913 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
14914 | # into the resulting binary. | |
14915 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
14916 | ||
14917 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
14918 | # into the library and all subsequent libraries and executables linked | |
14919 | # against it. | |
14920 | hardcode_automatic=$hardcode_automatic | |
14921 | ||
14922 | # Set to yes if linker adds runtime paths of dependent libraries | |
14923 | # to runtime path list. | |
14924 | inherit_rpath=$inherit_rpath | |
14925 | ||
14926 | # Whether libtool must link a program against all its dependency libraries. | |
14927 | link_all_deplibs=$link_all_deplibs | |
14928 | ||
14929 | # Fix the shell variable \$srcfile for the compiler. | |
14930 | fix_srcfile_path=$lt_fix_srcfile_path | |
14931 | ||
14932 | # Set to "yes" if exported symbols are required. | |
14933 | always_export_symbols=$always_export_symbols | |
14934 | ||
14935 | # The commands to list exported symbols. | |
14936 | export_symbols_cmds=$lt_export_symbols_cmds | |
14937 | ||
14938 | # Symbols that should not be listed in the preloaded symbols. | |
14939 | exclude_expsyms=$lt_exclude_expsyms | |
14940 | ||
14941 | # Symbols that must always be exported. | |
14942 | include_expsyms=$lt_include_expsyms | |
14943 | ||
14944 | # Commands necessary for linking programs (against libraries) with templates. | |
14945 | prelink_cmds=$lt_prelink_cmds | |
14946 | ||
14947 | # Specify filename containing input files. | |
14948 | file_list_spec=$lt_file_list_spec | |
14949 | ||
14950 | # How to hardcode a shared library path into an executable. | |
14951 | hardcode_action=$hardcode_action | |
14952 | ||
14953 | # ### END LIBTOOL CONFIG | |
14954 | ||
14955 | _LT_EOF | |
14956 | ||
14957 | case $host_os in | |
14958 | aix3*) | |
14959 | cat <<\_LT_EOF >> "$cfgfile" | |
14960 | # AIX sometimes has problems with the GCC collect2 program. For some | |
14961 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
14962 | # vanish in a puff of smoke. | |
14963 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
14964 | COLLECT_NAMES= | |
14965 | export COLLECT_NAMES | |
14966 | fi | |
14967 | _LT_EOF | |
14968 | ;; | |
14969 | esac | |
14970 | ||
14971 | ||
14972 | ltmain="$ac_aux_dir/ltmain.sh" | |
14973 | ||
14974 | ||
14975 | # We use sed instead of cat because bash on DJGPP gets confused if | |
14976 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
14977 | # text mode, it properly converts lines to CR/LF. This bash problem | |
14978 | # is reportedly fixed, but why not run on old versions too? | |
14979 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
14980 | || (rm -f "$cfgfile"; exit 1) | |
14981 | ||
14982 | case $xsi_shell in | |
14983 | yes) | |
14984 | cat << \_LT_EOF >> "$cfgfile" | |
14985 | # func_dirname file append nondir_replacement | |
14986 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
14987 | # otherwise set result to NONDIR_REPLACEMENT. | |
14988 | func_dirname () | |
14989 | { | |
14990 | case ${1} in | |
14991 | */*) func_dirname_result="${1%/*}${2}" ;; | |
14992 | * ) func_dirname_result="${3}" ;; | |
14993 | esac | |
14994 | } | |
14995 | ||
14996 | # func_basename file | |
14997 | func_basename () | |
14998 | { | |
14999 | func_basename_result="${1##*/}" | |
15000 | } | |
15001 | ||
15002 | # func_stripname prefix suffix name | |
15003 | # strip PREFIX and SUFFIX off of NAME. | |
15004 | # PREFIX and SUFFIX must not contain globbing or regex special | |
15005 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
15006 | # dot (in which case that matches only a dot). | |
15007 | func_stripname () | |
15008 | { | |
15009 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
15010 | # positional parameters, so assign one to ordinary parameter first. | |
15011 | func_stripname_result=${3} | |
15012 | func_stripname_result=${func_stripname_result#"${1}"} | |
15013 | func_stripname_result=${func_stripname_result%"${2}"} | |
15014 | } | |
15015 | ||
15016 | # func_opt_split | |
15017 | func_opt_split () | |
15018 | { | |
15019 | func_opt_split_opt=${1%%=*} | |
15020 | func_opt_split_arg=${1#*=} | |
15021 | } | |
15022 | ||
15023 | # func_lo2o object | |
15024 | func_lo2o () | |
15025 | { | |
15026 | case ${1} in | |
15027 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
15028 | *) func_lo2o_result=${1} ;; | |
15029 | esac | |
15030 | } | |
15031 | _LT_EOF | |
15032 | ;; | |
15033 | *) # Bourne compatible functions. | |
15034 | cat << \_LT_EOF >> "$cfgfile" | |
15035 | # func_dirname file append nondir_replacement | |
15036 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
15037 | # otherwise set result to NONDIR_REPLACEMENT. | |
15038 | func_dirname () | |
15039 | { | |
15040 | # Extract subdirectory from the argument. | |
15041 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
15042 | if test "X$func_dirname_result" = "X${1}"; then | |
15043 | func_dirname_result="${3}" | |
15044 | else | |
15045 | func_dirname_result="$func_dirname_result${2}" | |
15046 | fi | |
15047 | } | |
15048 | ||
15049 | # func_basename file | |
15050 | func_basename () | |
15051 | { | |
15052 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
15053 | } | |
15054 | ||
15055 | # func_stripname prefix suffix name | |
15056 | # strip PREFIX and SUFFIX off of NAME. | |
15057 | # PREFIX and SUFFIX must not contain globbing or regex special | |
15058 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
15059 | # dot (in which case that matches only a dot). | |
15060 | # func_strip_suffix prefix name | |
15061 | func_stripname () | |
15062 | { | |
15063 | case ${2} in | |
15064 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
15065 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
15066 | *) func_stripname_result=`$ECHO "X${3}" \ | |
15067 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
15068 | esac | |
15069 | } | |
15070 | ||
15071 | # sed scripts: | |
15072 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
15073 | my_sed_long_arg='1s/^-[^=]*=//' | |
15074 | ||
15075 | # func_opt_split | |
15076 | func_opt_split () | |
15077 | { | |
15078 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
15079 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
15080 | } | |
15081 | ||
15082 | # func_lo2o object | |
15083 | func_lo2o () | |
15084 | { | |
15085 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
15086 | } | |
15087 | _LT_EOF | |
15088 | esac | |
15089 | ||
15090 | case $lt_shell_append in | |
15091 | yes) | |
15092 | cat << \_LT_EOF >> "$cfgfile" | |
15093 | ||
15094 | # func_append var value | |
15095 | # Append VALUE to the end of shell variable VAR. | |
15096 | func_append () | |
15097 | { | |
15098 | eval "$1+=\$2" | |
15099 | } | |
15100 | _LT_EOF | |
15101 | ;; | |
15102 | *) | |
15103 | cat << \_LT_EOF >> "$cfgfile" | |
15104 | ||
15105 | # func_append var value | |
15106 | # Append VALUE to the end of shell variable VAR. | |
15107 | func_append () | |
15108 | { | |
15109 | eval "$1=\$$1\$2" | |
15110 | } | |
15111 | _LT_EOF | |
15112 | ;; | |
15113 | esac | |
15114 | ||
15115 | ||
15116 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
15117 | || (rm -f "$cfgfile"; exit 1) | |
15118 | ||
15119 | mv -f "$cfgfile" "$ofile" || | |
15120 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
15121 | chmod +x "$ofile" | |
15122 | ||
42ecbf5e | 15123 | ;; |
20e95c23 DJ |
15124 | default-1 ) |
15125 | for ac_file in $CONFIG_FILES; do | |
15126 | # Support "outfile[:infile[:infile...]]" | |
15127 | case "$ac_file" in | |
15128 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
15129 | esac | |
15130 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
15131 | case "$ac_file" in */Makefile.in) | |
15132 | # Adjust a relative srcdir. | |
15133 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
15134 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
15135 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
15136 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
15137 | # In autoconf-2.50 it is called $srcdir. | |
15138 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
15139 | case "$ac_given_srcdir" in | |
15140 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
15141 | /*) top_srcdir="$ac_given_srcdir" ;; | |
15142 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
15143 | esac | |
15144 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
15145 | rm -f "$ac_dir/POTFILES" | |
15146 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
15147 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
15148 | POMAKEFILEDEPS="POTFILES.in" | |
15149 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
15150 | # on $ac_dir but don't depend on user-specified configuration | |
15151 | # parameters. | |
15152 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
15153 | # The LINGUAS file contains the set of available languages. | |
15154 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
15155 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
15156 | fi | |
15157 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
15158 | # Hide the ALL_LINGUAS assigment from automake. | |
15159 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
15160 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
15161 | else | |
15162 | # The set of available languages was given in configure.in. | |
15163 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
15164 | fi | |
15165 | case "$ac_given_srcdir" in | |
15166 | .) srcdirpre= ;; | |
15167 | *) srcdirpre='$(srcdir)/' ;; | |
15168 | esac | |
15169 | POFILES= | |
15170 | GMOFILES= | |
15171 | UPDATEPOFILES= | |
15172 | DUMMYPOFILES= | |
15173 | for lang in $ALL_LINGUAS; do | |
15174 | POFILES="$POFILES $srcdirpre$lang.po" | |
15175 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
15176 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
15177 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
15178 | done | |
15179 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
15180 | # environment variable. | |
15181 | INST_LINGUAS= | |
15182 | if test -n "$ALL_LINGUAS"; then | |
15183 | for presentlang in $ALL_LINGUAS; do | |
15184 | useit=no | |
15185 | if test "%UNSET%" != "$LINGUAS"; then | |
15186 | desiredlanguages="$LINGUAS" | |
15187 | else | |
15188 | desiredlanguages="$ALL_LINGUAS" | |
15189 | fi | |
15190 | for desiredlang in $desiredlanguages; do | |
15191 | # Use the presentlang catalog if desiredlang is | |
15192 | # a. equal to presentlang, or | |
15193 | # b. a variant of presentlang (because in this case, | |
15194 | # presentlang can be used as a fallback for messages | |
15195 | # which are not translated in the desiredlang catalog). | |
15196 | case "$desiredlang" in | |
15197 | "$presentlang"*) useit=yes;; | |
15198 | esac | |
15199 | done | |
15200 | if test $useit = yes; then | |
15201 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
15202 | fi | |
15203 | done | |
15204 | fi | |
15205 | CATALOGS= | |
15206 | if test -n "$INST_LINGUAS"; then | |
15207 | for lang in $INST_LINGUAS; do | |
15208 | CATALOGS="$CATALOGS $lang.gmo" | |
15209 | done | |
15210 | fi | |
15211 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
15212 | 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" | |
15213 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
15214 | if test -f "$f"; then | |
15215 | case "$f" in | |
15216 | *.orig | *.bak | *~) ;; | |
15217 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
15218 | esac | |
15219 | fi | |
15220 | done | |
15221 | fi | |
15222 | ;; | |
15223 | esac | |
15224 | done ;; | |
42ecbf5e DJ |
15225 | esac |
15226 | done | |
15227 | _ACEOF | |
15228 | ||
15229 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15230 | ||
15231 | { (exit 0); exit 0; } | |
15232 | _ACEOF | |
252b5132 | 15233 | chmod +x $CONFIG_STATUS |
42ecbf5e DJ |
15234 | ac_clean_files=$ac_clean_files_save |
15235 | ||
15236 | ||
15237 | # configure is writing to config.log, and then calls config.status. | |
15238 | # config.status does its own redirection, appending to config.log. | |
15239 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15240 | # by configure, so config.status won't be able to write to it; its | |
15241 | # output is simply discarded. So we exec the FD to /dev/null, | |
15242 | # effectively closing config.log, so it can be properly (re)opened and | |
15243 | # appended to by config.status. When coming back to configure, we | |
15244 | # need to make the FD available again. | |
15245 | if test "$no_create" != yes; then | |
15246 | ac_cs_success=: | |
15247 | ac_config_status_args= | |
15248 | test "$silent" = yes && | |
15249 | ac_config_status_args="$ac_config_status_args --quiet" | |
15250 | exec 5>/dev/null | |
15251 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15252 | exec 5>>config.log | |
15253 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15254 | # would make configure fail if this is the last instruction. | |
15255 | $ac_cs_success || { (exit 1); exit 1; } | |
15256 | fi | |
252b5132 | 15257 |