]>
Commit | Line | Data |
---|---|---|
1530be84 | 1 | #! /bin/sh |
1530be84 | 2 | # Guess values for system-dependent variables and create Makefiles. |
8ab705be | 3 | # Generated by GNU Autoconf 2.59. |
1530be84 | 4 | # |
8ab705be | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
1530be84 TT |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
47935194 NN |
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 | |
8ab705be | 22 | DUALCASE=1; export DUALCASE # for MKS sh |
47935194 NN |
23 | |
24 | # Support unset when possible. | |
8ab705be | 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
47935194 NN |
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 | |
8ab705be | 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
47935194 NN |
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 | |
8ab705be | 221 | test -d ./-p && rmdir ./-p |
47935194 NN |
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. | |
8ab705be | 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
47935194 NN |
229 | |
230 | # Sed expression to map a string onto a valid variable name. | |
8ab705be | 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
47935194 | 232 | |
1530be84 | 233 | |
47935194 NN |
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 | ||
1cf3d07d 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 | ||
47935194 NN |
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` | |
397 | ||
398 | exec 6>&1 | |
399 | ||
400 | # | |
401 | # Initializations. | |
402 | # | |
1530be84 | 403 | ac_default_prefix=/usr/local |
47935194 NN |
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="gcj_mlc.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 | ||
93e92f52 | 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 multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical mkinstalldirs 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 CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CFLAGS CXXFLAGS CCAS CCASFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GC_CFLAGS LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP CPPFLAGS LDFLAGS CXXCPP THREADLIBS POWERPC_DARWIN_TRUE POWERPC_DARWIN_FALSE extra_ldflags_libgc EXTRA_TEST_LIBS target_all CPLUSPLUS_TRUE CPLUSPLUS_FALSE AM_CPPFLAGS addobjs addincludes addlibs addtests MY_CFLAGS toolexecdir toolexeclibdir LIBOBJS LTLIBOBJS' |
47935194 | 462 | ac_subst_files='' |
18c04407 | 463 | ac_pwd=`pwd` |
1530be84 TT |
464 | |
465 | # Initialize some variables set by options. | |
47935194 NN |
466 | ac_init_help= |
467 | ac_init_version=false | |
1530be84 TT |
468 | # The variables have the same names as the options, with |
469 | # dashes changed to underlines. | |
47935194 | 470 | cache_file=/dev/null |
1530be84 | 471 | exec_prefix=NONE |
1530be84 | 472 | no_create= |
1530be84 TT |
473 | no_recursion= |
474 | prefix=NONE | |
475 | program_prefix=NONE | |
476 | program_suffix=NONE | |
477 | program_transform_name=s,x,x, | |
478 | silent= | |
479 | site= | |
480 | srcdir= | |
1530be84 TT |
481 | verbose= |
482 | x_includes=NONE | |
483 | x_libraries=NONE | |
47935194 NN |
484 | |
485 | # Installation directory options. | |
486 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
487 | # and all the variables that are supposed to be based on exec_prefix | |
488 | # by default will actually change. | |
489 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
1530be84 TT |
490 | bindir='${exec_prefix}/bin' |
491 | sbindir='${exec_prefix}/sbin' | |
492 | libexecdir='${exec_prefix}/libexec' | |
493 | datadir='${prefix}/share' | |
494 | sysconfdir='${prefix}/etc' | |
495 | sharedstatedir='${prefix}/com' | |
496 | localstatedir='${prefix}/var' | |
497 | libdir='${exec_prefix}/lib' | |
498 | includedir='${prefix}/include' | |
499 | oldincludedir='/usr/include' | |
500 | infodir='${prefix}/info' | |
501 | mandir='${prefix}/man' | |
502 | ||
1530be84 TT |
503 | ac_prev= |
504 | for ac_option | |
505 | do | |
1530be84 TT |
506 | # If the previous option needs an argument, assign it. |
507 | if test -n "$ac_prev"; then | |
508 | eval "$ac_prev=\$ac_option" | |
509 | ac_prev= | |
510 | continue | |
511 | fi | |
512 | ||
47935194 | 513 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
1530be84 TT |
514 | |
515 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
516 | ||
47935194 | 517 | case $ac_option in |
1530be84 TT |
518 | |
519 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
520 | ac_prev=bindir ;; | |
521 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
47935194 | 522 | bindir=$ac_optarg ;; |
1530be84 TT |
523 | |
524 | -build | --build | --buil | --bui | --bu) | |
47935194 | 525 | ac_prev=build_alias ;; |
1530be84 | 526 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
47935194 | 527 | build_alias=$ac_optarg ;; |
1530be84 TT |
528 | |
529 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
530 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
531 | ac_prev=cache_file ;; | |
532 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
533 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
47935194 NN |
534 | cache_file=$ac_optarg ;; |
535 | ||
536 | --config-cache | -C) | |
537 | cache_file=config.cache ;; | |
1530be84 TT |
538 | |
539 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
540 | ac_prev=datadir ;; | |
541 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
542 | | --da=*) | |
47935194 | 543 | datadir=$ac_optarg ;; |
1530be84 TT |
544 | |
545 | -disable-* | --disable-*) | |
47935194 | 546 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
1530be84 | 547 | # Reject names that are not valid shell variable names. |
47935194 NN |
548 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
549 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
550 | { (exit 1); exit 1; }; } | |
551 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
552 | eval "enable_$ac_feature=no" ;; | |
1530be84 TT |
553 | |
554 | -enable-* | --enable-*) | |
47935194 | 555 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
1530be84 | 556 | # Reject names that are not valid shell variable names. |
47935194 NN |
557 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
558 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
559 | { (exit 1); exit 1; }; } | |
560 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
561 | case $ac_option in | |
562 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
1530be84 TT |
563 | *) ac_optarg=yes ;; |
564 | esac | |
47935194 | 565 | eval "enable_$ac_feature='$ac_optarg'" ;; |
1530be84 TT |
566 | |
567 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
568 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
569 | | --exec | --exe | --ex) | |
570 | ac_prev=exec_prefix ;; | |
571 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
572 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
573 | | --exec=* | --exe=* | --ex=*) | |
47935194 | 574 | exec_prefix=$ac_optarg ;; |
1530be84 TT |
575 | |
576 | -gas | --gas | --ga | --g) | |
577 | # Obsolete; use --with-gas. | |
578 | with_gas=yes ;; | |
579 | ||
47935194 NN |
580 | -help | --help | --hel | --he | -h) |
581 | ac_init_help=long ;; | |
582 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
583 | ac_init_help=recursive ;; | |
584 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
585 | ac_init_help=short ;; | |
1530be84 TT |
586 | |
587 | -host | --host | --hos | --ho) | |
47935194 | 588 | ac_prev=host_alias ;; |
1530be84 | 589 | -host=* | --host=* | --hos=* | --ho=*) |
47935194 | 590 | host_alias=$ac_optarg ;; |
1530be84 TT |
591 | |
592 | -includedir | --includedir | --includedi | --included | --include \ | |
593 | | --includ | --inclu | --incl | --inc) | |
594 | ac_prev=includedir ;; | |
595 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
596 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
47935194 | 597 | includedir=$ac_optarg ;; |
1530be84 TT |
598 | |
599 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
600 | ac_prev=infodir ;; | |
601 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
47935194 | 602 | infodir=$ac_optarg ;; |
1530be84 TT |
603 | |
604 | -libdir | --libdir | --libdi | --libd) | |
605 | ac_prev=libdir ;; | |
606 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
47935194 | 607 | libdir=$ac_optarg ;; |
1530be84 TT |
608 | |
609 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
610 | | --libexe | --libex | --libe) | |
611 | ac_prev=libexecdir ;; | |
612 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
613 | | --libexe=* | --libex=* | --libe=*) | |
47935194 | 614 | libexecdir=$ac_optarg ;; |
1530be84 TT |
615 | |
616 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
617 | | --localstate | --localstat | --localsta | --localst \ | |
618 | | --locals | --local | --loca | --loc | --lo) | |
619 | ac_prev=localstatedir ;; | |
620 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
621 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
622 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
47935194 | 623 | localstatedir=$ac_optarg ;; |
1530be84 TT |
624 | |
625 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
626 | ac_prev=mandir ;; | |
627 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
47935194 | 628 | mandir=$ac_optarg ;; |
1530be84 TT |
629 | |
630 | -nfp | --nfp | --nf) | |
631 | # Obsolete; use --without-fp. | |
632 | with_fp=no ;; | |
633 | ||
634 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
47935194 | 635 | | --no-cr | --no-c | -n) |
1530be84 TT |
636 | no_create=yes ;; |
637 | ||
638 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
639 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
640 | no_recursion=yes ;; | |
641 | ||
642 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
643 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
644 | | --oldin | --oldi | --old | --ol | --o) | |
645 | ac_prev=oldincludedir ;; | |
646 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
647 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
648 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
47935194 | 649 | oldincludedir=$ac_optarg ;; |
1530be84 TT |
650 | |
651 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
652 | ac_prev=prefix ;; | |
653 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
47935194 | 654 | prefix=$ac_optarg ;; |
1530be84 TT |
655 | |
656 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
657 | | --program-pre | --program-pr | --program-p) | |
658 | ac_prev=program_prefix ;; | |
659 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
660 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
47935194 | 661 | program_prefix=$ac_optarg ;; |
1530be84 TT |
662 | |
663 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
664 | | --program-suf | --program-su | --program-s) | |
665 | ac_prev=program_suffix ;; | |
666 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
667 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
47935194 | 668 | program_suffix=$ac_optarg ;; |
1530be84 TT |
669 | |
670 | -program-transform-name | --program-transform-name \ | |
671 | | --program-transform-nam | --program-transform-na \ | |
672 | | --program-transform-n | --program-transform- \ | |
673 | | --program-transform | --program-transfor \ | |
674 | | --program-transfo | --program-transf \ | |
675 | | --program-trans | --program-tran \ | |
676 | | --progr-tra | --program-tr | --program-t) | |
677 | ac_prev=program_transform_name ;; | |
678 | -program-transform-name=* | --program-transform-name=* \ | |
679 | | --program-transform-nam=* | --program-transform-na=* \ | |
680 | | --program-transform-n=* | --program-transform-=* \ | |
681 | | --program-transform=* | --program-transfor=* \ | |
682 | | --program-transfo=* | --program-transf=* \ | |
683 | | --program-trans=* | --program-tran=* \ | |
684 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
47935194 | 685 | program_transform_name=$ac_optarg ;; |
1530be84 TT |
686 | |
687 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
688 | | -silent | --silent | --silen | --sile | --sil) | |
689 | silent=yes ;; | |
690 | ||
691 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
692 | ac_prev=sbindir ;; | |
693 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
694 | | --sbi=* | --sb=*) | |
47935194 | 695 | sbindir=$ac_optarg ;; |
1530be84 TT |
696 | |
697 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
698 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
699 | | --sharedst | --shareds | --shared | --share | --shar \ | |
700 | | --sha | --sh) | |
701 | ac_prev=sharedstatedir ;; | |
702 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
703 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
704 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
705 | | --sha=* | --sh=*) | |
47935194 | 706 | sharedstatedir=$ac_optarg ;; |
1530be84 TT |
707 | |
708 | -site | --site | --sit) | |
709 | ac_prev=site ;; | |
710 | -site=* | --site=* | --sit=*) | |
47935194 | 711 | site=$ac_optarg ;; |
1530be84 TT |
712 | |
713 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
714 | ac_prev=srcdir ;; | |
715 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
47935194 | 716 | srcdir=$ac_optarg ;; |
1530be84 TT |
717 | |
718 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
719 | | --syscon | --sysco | --sysc | --sys | --sy) | |
720 | ac_prev=sysconfdir ;; | |
721 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
722 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
47935194 | 723 | sysconfdir=$ac_optarg ;; |
1530be84 TT |
724 | |
725 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
47935194 | 726 | ac_prev=target_alias ;; |
1530be84 | 727 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
47935194 | 728 | target_alias=$ac_optarg ;; |
1530be84 TT |
729 | |
730 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
731 | verbose=yes ;; | |
732 | ||
47935194 NN |
733 | -version | --version | --versio | --versi | --vers | -V) |
734 | ac_init_version=: ;; | |
1530be84 TT |
735 | |
736 | -with-* | --with-*) | |
47935194 | 737 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1530be84 | 738 | # Reject names that are not valid shell variable names. |
47935194 NN |
739 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
740 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
741 | { (exit 1); exit 1; }; } | |
1530be84 | 742 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
47935194 NN |
743 | case $ac_option in |
744 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
1530be84 TT |
745 | *) ac_optarg=yes ;; |
746 | esac | |
47935194 | 747 | eval "with_$ac_package='$ac_optarg'" ;; |
1530be84 TT |
748 | |
749 | -without-* | --without-*) | |
47935194 | 750 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1530be84 | 751 | # Reject names that are not valid shell variable names. |
47935194 NN |
752 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
753 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
754 | { (exit 1); exit 1; }; } | |
755 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
756 | eval "with_$ac_package=no" ;; | |
1530be84 TT |
757 | |
758 | --x) | |
759 | # Obsolete; use --with-x. | |
760 | with_x=yes ;; | |
761 | ||
762 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
763 | | --x-incl | --x-inc | --x-in | --x-i) | |
764 | ac_prev=x_includes ;; | |
765 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
766 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
47935194 | 767 | x_includes=$ac_optarg ;; |
1530be84 TT |
768 | |
769 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
770 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
771 | ac_prev=x_libraries ;; | |
772 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
773 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
47935194 | 774 | x_libraries=$ac_optarg ;; |
1530be84 | 775 | |
47935194 NN |
776 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
777 | Try \`$0 --help' for more information." >&2 | |
778 | { (exit 1); exit 1; }; } | |
1530be84 TT |
779 | ;; |
780 | ||
47935194 NN |
781 | *=*) |
782 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
783 | # Reject names that are not valid shell variable names. | |
784 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
785 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
786 | { (exit 1); exit 1; }; } | |
787 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
788 | eval "$ac_envvar='$ac_optarg'" | |
789 | export $ac_envvar ;; | |
790 | ||
1530be84 | 791 | *) |
47935194 NN |
792 | # FIXME: should be removed in autoconf 3.0. |
793 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
794 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
795 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
796 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1530be84 TT |
797 | ;; |
798 | ||
799 | esac | |
800 | done | |
801 | ||
802 | if test -n "$ac_prev"; then | |
47935194 NN |
803 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
804 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
805 | { (exit 1); exit 1; }; } | |
1530be84 | 806 | fi |
1530be84 | 807 | |
47935194 NN |
808 | # Be sure to have absolute paths. |
809 | for ac_var in exec_prefix prefix | |
810 | do | |
811 | eval ac_val=$`echo $ac_var` | |
812 | case $ac_val in | |
813 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
814 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
815 | { (exit 1); exit 1; }; };; | |
816 | esac | |
817 | done | |
1530be84 | 818 | |
47935194 NN |
819 | # Be sure to have absolute paths. |
820 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
8ab705be | 821 | localstatedir libdir includedir oldincludedir infodir mandir |
1530be84 | 822 | do |
47935194 NN |
823 | eval ac_val=$`echo $ac_var` |
824 | case $ac_val in | |
825 | [\\/$]* | ?:[\\/]* ) ;; | |
826 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
827 | { (exit 1); exit 1; }; };; | |
1530be84 TT |
828 | esac |
829 | done | |
830 | ||
47935194 NN |
831 | # There might be people who depend on the old broken behavior: `$host' |
832 | # used to hold the argument of --host etc. | |
833 | # FIXME: To remove some day. | |
834 | build=$build_alias | |
835 | host=$host_alias | |
836 | target=$target_alias | |
837 | ||
838 | # FIXME: To remove some day. | |
839 | if test "x$host_alias" != x; then | |
840 | if test "x$build_alias" = x; then | |
841 | cross_compiling=maybe | |
842 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
843 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
844 | elif test "x$build_alias" != "x$host_alias"; then | |
845 | cross_compiling=yes | |
846 | fi | |
847 | fi | |
1530be84 | 848 | |
47935194 NN |
849 | ac_tool_prefix= |
850 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
851 | ||
852 | test "$silent" = yes && exec 6>/dev/null | |
1530be84 | 853 | |
1530be84 TT |
854 | |
855 | # Find the source files, if location was not specified. | |
856 | if test -z "$srcdir"; then | |
857 | ac_srcdir_defaulted=yes | |
858 | # Try the directory containing this script, then its parent. | |
47935194 NN |
859 | ac_confdir=`(dirname "$0") 2>/dev/null || |
860 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8ab705be KC |
861 | X"$0" : 'X\(//\)[^/]' \| \ |
862 | X"$0" : 'X\(//\)$' \| \ | |
863 | X"$0" : 'X\(/\)' \| \ | |
864 | . : '\(.\)' 2>/dev/null || | |
47935194 NN |
865 | echo X"$0" | |
866 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
867 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
868 | /^X\(\/\/\)$/{ s//\1/; q; } | |
869 | /^X\(\/\).*/{ s//\1/; q; } | |
870 | s/.*/./; q'` | |
1530be84 TT |
871 | srcdir=$ac_confdir |
872 | if test ! -r $srcdir/$ac_unique_file; then | |
873 | srcdir=.. | |
874 | fi | |
875 | else | |
876 | ac_srcdir_defaulted=no | |
877 | fi | |
878 | if test ! -r $srcdir/$ac_unique_file; then | |
879 | if test "$ac_srcdir_defaulted" = yes; then | |
47935194 NN |
880 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
881 | { (exit 1); exit 1; }; } | |
1530be84 | 882 | else |
47935194 NN |
883 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
884 | { (exit 1); exit 1; }; } | |
1530be84 TT |
885 | fi |
886 | fi | |
47935194 NN |
887 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
888 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
889 | { (exit 1); exit 1; }; } | |
890 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
891 | ac_env_build_alias_set=${build_alias+set} | |
892 | ac_env_build_alias_value=$build_alias | |
893 | ac_cv_env_build_alias_set=${build_alias+set} | |
894 | ac_cv_env_build_alias_value=$build_alias | |
895 | ac_env_host_alias_set=${host_alias+set} | |
896 | ac_env_host_alias_value=$host_alias | |
897 | ac_cv_env_host_alias_set=${host_alias+set} | |
898 | ac_cv_env_host_alias_value=$host_alias | |
899 | ac_env_target_alias_set=${target_alias+set} | |
900 | ac_env_target_alias_value=$target_alias | |
901 | ac_cv_env_target_alias_set=${target_alias+set} | |
902 | ac_cv_env_target_alias_value=$target_alias | |
47935194 NN |
903 | ac_env_CPP_set=${CPP+set} |
904 | ac_env_CPP_value=$CPP | |
905 | ac_cv_env_CPP_set=${CPP+set} | |
906 | ac_cv_env_CPP_value=$CPP | |
1cf3d07d SE |
907 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
908 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
909 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
910 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
911 | ac_env_CXX_set=${CXX+set} | |
912 | ac_env_CXX_value=$CXX | |
913 | ac_cv_env_CXX_set=${CXX+set} | |
914 | ac_cv_env_CXX_value=$CXX | |
915 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
916 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
917 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
918 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
919 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
920 | ac_env_LDFLAGS_value=$LDFLAGS | |
921 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
922 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
923 | ac_env_CXXCPP_set=${CXXCPP+set} | |
924 | ac_env_CXXCPP_value=$CXXCPP | |
925 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
926 | ac_cv_env_CXXCPP_value=$CXXCPP | |
47935194 NN |
927 | |
928 | # | |
929 | # Report the --help message. | |
930 | # | |
931 | if test "$ac_init_help" = "long"; then | |
932 | # Omit some internal or obsolete options to make the list less imposing. | |
933 | # This message is too long to be a string in the A/UX 3.1 sh. | |
934 | cat <<_ACEOF | |
935 | \`configure' configures this package to adapt to many kinds of systems. | |
936 | ||
937 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
938 | ||
939 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
940 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
941 | ||
942 | Defaults for the options are specified in brackets. | |
943 | ||
944 | Configuration: | |
945 | -h, --help display this help and exit | |
946 | --help=short display options specific to this package | |
947 | --help=recursive display the short help of all the included packages | |
948 | -V, --version display version information and exit | |
949 | -q, --quiet, --silent do not print \`checking...' messages | |
950 | --cache-file=FILE cache test results in FILE [disabled] | |
951 | -C, --config-cache alias for \`--cache-file=config.cache' | |
952 | -n, --no-create do not create output files | |
953 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
954 | ||
955 | _ACEOF | |
956 | ||
957 | cat <<_ACEOF | |
958 | Installation directories: | |
959 | --prefix=PREFIX install architecture-independent files in PREFIX | |
8ab705be | 960 | [$ac_default_prefix] |
47935194 | 961 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
8ab705be | 962 | [PREFIX] |
47935194 NN |
963 | |
964 | By default, \`make install' will install all the files in | |
965 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
966 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
967 | for instance \`--prefix=\$HOME'. | |
968 | ||
969 | For better control, use the options below. | |
970 | ||
971 | Fine tuning of the installation directories: | |
972 | --bindir=DIR user executables [EPREFIX/bin] | |
973 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
974 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
975 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
976 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
977 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
978 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
979 | --libdir=DIR object code libraries [EPREFIX/lib] | |
980 | --includedir=DIR C header files [PREFIX/include] | |
981 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
982 | --infodir=DIR info documentation [PREFIX/info] | |
983 | --mandir=DIR man documentation [PREFIX/man] | |
984 | _ACEOF | |
985 | ||
986 | cat <<\_ACEOF | |
987 | ||
988 | Program names: | |
989 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
990 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
991 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
992 | ||
993 | System types: | |
994 | --build=BUILD configure for building on BUILD [guessed] | |
995 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
996 | --target=TARGET configure for building compilers for TARGET [HOST] | |
997 | _ACEOF | |
998 | fi | |
999 | ||
1000 | if test -n "$ac_init_help"; then | |
1001 | ||
1002 | cat <<\_ACEOF | |
1003 | ||
1004 | Optional Features: | |
1005 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1006 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1007 | --enable-multilib build many library versions (default) | |
bf9a420e PB |
1008 | --disable-dependency-tracking speeds up one-time build |
1009 | --enable-dependency-tracking do not reject slow dependency extractors | |
1010 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1011 | (and sometimes confusing) to the casual installer | |
1cf3d07d SE |
1012 | --enable-shared[=PKGS] |
1013 | build shared libraries [default=yes] | |
1014 | --enable-static[=PKGS] | |
1015 | build static libraries [default=yes] | |
1016 | --enable-fast-install[=PKGS] | |
1017 | optimize for fast installation [default=yes] | |
47935194 NN |
1018 | --disable-libtool-lock avoid locking (might break parallel builds) |
1019 | --enable-parallel-mark parallelize marking and free list construction | |
3c1cbf58 | 1020 | --enable-gc-debug include full support for pointer backtracing etc. |
47935194 NN |
1021 | |
1022 | Optional Packages: | |
1023 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1024 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1cf3d07d SE |
1025 | --with-pic try to use only PIC/non-PIC objects [default=use |
1026 | both] | |
1027 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
47935194 NN |
1028 | --with-target-subdir=SUBDIR |
1029 | configuring with a cross compiler | |
1030 | --with-cross-host=HOST configuring with a cross compiler | |
1031 | --with-ecos enable runtime eCos target support | |
1032 | ||
1033 | Some influential environment variables: | |
1034 | CC C compiler command | |
1035 | CFLAGS C compiler flags | |
1036 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1037 | nonstandard directory <lib dir> | |
1038 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1039 | headers in a nonstandard directory <include dir> | |
1040 | CXX C++ compiler command | |
1041 | CXXFLAGS C++ compiler flags | |
47935194 | 1042 | CPP C preprocessor |
1cf3d07d | 1043 | CXXCPP C++ preprocessor |
47935194 NN |
1044 | |
1045 | Use these variables to override the choices made by `configure' or to help | |
1046 | it to find libraries and programs with nonstandard names/locations. | |
1047 | ||
1048 | _ACEOF | |
1049 | fi | |
1050 | ||
1051 | if test "$ac_init_help" = "recursive"; then | |
1052 | # If there are subdirs, report their specific --help. | |
1053 | ac_popdir=`pwd` | |
1054 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1055 | test -d $ac_dir || continue | |
1056 | ac_builddir=. | |
1057 | ||
1058 | if test "$ac_dir" != .; then | |
1059 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1060 | # A "../" for each directory in $ac_dir_suffix. | |
1061 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1062 | else | |
1063 | ac_dir_suffix= ac_top_builddir= | |
1064 | fi | |
1065 | ||
1066 | case $srcdir in | |
1067 | .) # No --srcdir option. We are building in place. | |
1068 | ac_srcdir=. | |
1069 | if test -z "$ac_top_builddir"; then | |
1070 | ac_top_srcdir=. | |
1071 | else | |
1072 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1073 | fi ;; | |
1074 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1075 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1076 | ac_top_srcdir=$srcdir ;; | |
1077 | *) # Relative path. | |
1078 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1079 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1080 | esac | |
8ab705be KC |
1081 | |
1082 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1083 | # the directories may not exist. | |
1084 | case `pwd` in | |
1085 | .) ac_abs_builddir="$ac_dir";; | |
1086 | *) | |
1087 | case "$ac_dir" in | |
1088 | .) ac_abs_builddir=`pwd`;; | |
1089 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1090 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1091 | esac;; | |
1092 | esac | |
1093 | case $ac_abs_builddir in | |
1094 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1095 | *) | |
1096 | case ${ac_top_builddir}. in | |
1097 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1098 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1099 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1100 | esac;; | |
1101 | esac | |
1102 | case $ac_abs_builddir in | |
1103 | .) ac_abs_srcdir=$ac_srcdir;; | |
1104 | *) | |
1105 | case $ac_srcdir in | |
1106 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1107 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1108 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1109 | esac;; | |
1110 | esac | |
1111 | case $ac_abs_builddir in | |
1112 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1113 | *) | |
1114 | case $ac_top_srcdir in | |
1115 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1116 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1117 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1118 | esac;; | |
1119 | esac | |
47935194 NN |
1120 | |
1121 | cd $ac_dir | |
1122 | # Check for guested configure; otherwise get Cygnus style configure. | |
1123 | if test -f $ac_srcdir/configure.gnu; then | |
1124 | echo | |
1125 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1126 | elif test -f $ac_srcdir/configure; then | |
1127 | echo | |
1128 | $SHELL $ac_srcdir/configure --help=recursive | |
1129 | elif test -f $ac_srcdir/configure.ac || | |
8ab705be | 1130 | test -f $ac_srcdir/configure.in; then |
47935194 NN |
1131 | echo |
1132 | $ac_configure --help | |
1133 | else | |
1134 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1135 | fi | |
5572488d | 1136 | cd $ac_popdir |
47935194 NN |
1137 | done |
1138 | fi | |
1139 | ||
1140 | test -n "$ac_init_help" && exit 0 | |
1141 | if $ac_init_version; then | |
1142 | cat <<\_ACEOF | |
1143 | ||
8ab705be | 1144 | Copyright (C) 2003 Free Software Foundation, Inc. |
47935194 NN |
1145 | This configure script is free software; the Free Software Foundation |
1146 | gives unlimited permission to copy, distribute and modify it. | |
1147 | _ACEOF | |
1148 | exit 0 | |
1149 | fi | |
1150 | exec 5>config.log | |
1151 | cat >&5 <<_ACEOF | |
1152 | This file contains any messages produced by compilers while | |
1153 | running configure, to aid debugging if configure makes a mistake. | |
1154 | ||
1155 | It was created by $as_me, which was | |
8ab705be | 1156 | generated by GNU Autoconf 2.59. Invocation command line was |
47935194 NN |
1157 | |
1158 | $ $0 $@ | |
1159 | ||
1160 | _ACEOF | |
1161 | { | |
1162 | cat <<_ASUNAME | |
1163 | ## --------- ## | |
1164 | ## Platform. ## | |
1165 | ## --------- ## | |
1166 | ||
1167 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1168 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1169 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1170 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1171 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1172 | ||
1173 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1174 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1175 | ||
1176 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1177 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1178 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1179 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1180 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1181 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1182 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1183 | ||
1184 | _ASUNAME | |
1185 | ||
1186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1187 | for as_dir in $PATH | |
1188 | do | |
1189 | IFS=$as_save_IFS | |
1190 | test -z "$as_dir" && as_dir=. | |
1191 | echo "PATH: $as_dir" | |
1192 | done | |
1193 | ||
1194 | } >&5 | |
1195 | ||
1196 | cat >&5 <<_ACEOF | |
1197 | ||
1198 | ||
1199 | ## ----------- ## | |
1200 | ## Core tests. ## | |
1201 | ## ----------- ## | |
1202 | ||
1203 | _ACEOF | |
1204 | ||
1205 | ||
1206 | # Keep a trace of the command line. | |
1207 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1208 | # Strip out --silent because we don't want to record it for future runs. | |
1209 | # Also quote any args containing shell meta-characters. | |
1210 | # Make two passes to allow for proper duplicate-argument suppression. | |
1211 | ac_configure_args= | |
1212 | ac_configure_args0= | |
1213 | ac_configure_args1= | |
1214 | ac_sep= | |
1215 | ac_must_keep_next=false | |
1216 | for ac_pass in 1 2 | |
1217 | do | |
1218 | for ac_arg | |
1219 | do | |
1220 | case $ac_arg in | |
1221 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1222 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1223 | | -silent | --silent | --silen | --sile | --sil) | |
1224 | continue ;; | |
1225 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1226 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1227 | esac | |
1228 | case $ac_pass in | |
1229 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1230 | 2) | |
1231 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1232 | if test $ac_must_keep_next = true; then | |
8ab705be | 1233 | ac_must_keep_next=false # Got value, back to normal. |
47935194 | 1234 | else |
8ab705be KC |
1235 | case $ac_arg in |
1236 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1237 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1238 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1239 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1240 | case "$ac_configure_args0 " in | |
1241 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1242 | esac | |
1243 | ;; | |
1244 | -* ) ac_must_keep_next=true ;; | |
1245 | esac | |
47935194 NN |
1246 | fi |
1247 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1248 | # Get rid of the leading space. | |
1249 | ac_sep=" " | |
1250 | ;; | |
1251 | esac | |
1252 | done | |
1253 | done | |
1254 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1255 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1256 | ||
1257 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1258 | # config.log. We remove comments because anyway the quotes in there | |
1259 | # would cause problems or look ugly. | |
1260 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1261 | # such as our DU 5.0 friend, will then `close' the trap. | |
1262 | trap 'exit_status=$? | |
1263 | # Save into config.log some information that might help in debugging. | |
1264 | { | |
1265 | echo | |
1266 | ||
1267 | cat <<\_ASBOX | |
1268 | ## ---------------- ## | |
1269 | ## Cache variables. ## | |
1270 | ## ---------------- ## | |
1271 | _ASBOX | |
1272 | echo | |
1273 | # The following way of writing the cache mishandles newlines in values, | |
1274 | { | |
1275 | (set) 2>&1 | | |
1276 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1277 | *ac_space=\ *) | |
1278 | sed -n \ | |
8ab705be KC |
1279 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1280 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
47935194 NN |
1281 | ;; |
1282 | *) | |
1283 | sed -n \ | |
8ab705be | 1284 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
47935194 NN |
1285 | ;; |
1286 | esac; | |
1287 | } | |
1288 | echo | |
1289 | ||
1290 | cat <<\_ASBOX | |
1291 | ## ----------------- ## | |
1292 | ## Output variables. ## | |
1293 | ## ----------------- ## | |
1294 | _ASBOX | |
1295 | echo | |
1296 | for ac_var in $ac_subst_vars | |
1297 | do | |
1298 | eval ac_val=$`echo $ac_var` | |
1299 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1300 | done | sort | |
1301 | echo | |
1302 | ||
1303 | if test -n "$ac_subst_files"; then | |
1304 | cat <<\_ASBOX | |
1305 | ## ------------- ## | |
1306 | ## Output files. ## | |
1307 | ## ------------- ## | |
1308 | _ASBOX | |
1309 | echo | |
1310 | for ac_var in $ac_subst_files | |
1311 | do | |
1312 | eval ac_val=$`echo $ac_var` | |
8ab705be | 1313 | echo "$ac_var='"'"'$ac_val'"'"'" |
47935194 NN |
1314 | done | sort |
1315 | echo | |
1316 | fi | |
1317 | ||
1318 | if test -s confdefs.h; then | |
1319 | cat <<\_ASBOX | |
1320 | ## ----------- ## | |
1321 | ## confdefs.h. ## | |
1322 | ## ----------- ## | |
1323 | _ASBOX | |
1324 | echo | |
1325 | sed "/^$/d" confdefs.h | sort | |
1326 | echo | |
1327 | fi | |
1328 | test "$ac_signal" != 0 && | |
1329 | echo "$as_me: caught signal $ac_signal" | |
1330 | echo "$as_me: exit $exit_status" | |
1331 | } >&5 | |
1332 | rm -f core *.core && | |
1333 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1334 | exit $exit_status | |
1335 | ' 0 | |
1336 | for ac_signal in 1 2 13 15; do | |
1337 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1338 | done | |
1339 | ac_signal=0 | |
1340 | ||
1341 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1342 | rm -rf conftest* confdefs.h | |
1343 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1344 | echo >confdefs.h | |
1345 | ||
1346 | # Predefined preprocessor variables. | |
1347 | ||
1348 | cat >>confdefs.h <<_ACEOF | |
1349 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1350 | _ACEOF | |
1351 | ||
1352 | ||
1353 | cat >>confdefs.h <<_ACEOF | |
1354 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1355 | _ACEOF | |
1356 | ||
1357 | ||
1358 | cat >>confdefs.h <<_ACEOF | |
1359 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1360 | _ACEOF | |
1361 | ||
1530be84 | 1362 | |
47935194 NN |
1363 | cat >>confdefs.h <<_ACEOF |
1364 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1365 | _ACEOF | |
1366 | ||
1367 | ||
1368 | cat >>confdefs.h <<_ACEOF | |
1369 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1370 | _ACEOF | |
1371 | ||
1372 | ||
1373 | # Let the site file select an alternate cache file if it wants to. | |
1530be84 | 1374 | # Prefer explicitly selected file to automatically selected ones. |
30c3de1f JS |
1375 | if test -z "$CONFIG_SITE"; then |
1376 | if test "x$prefix" != xNONE; then | |
1377 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1378 | else | |
1379 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1530be84 TT |
1380 | fi |
1381 | fi | |
1382 | for ac_site_file in $CONFIG_SITE; do | |
1383 | if test -r "$ac_site_file"; then | |
47935194 NN |
1384 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1385 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1386 | sed 's/^/| /' "$ac_site_file" >&5 | |
1530be84 TT |
1387 | . "$ac_site_file" |
1388 | fi | |
1389 | done | |
1390 | ||
1391 | if test -r "$cache_file"; then | |
47935194 NN |
1392 | # Some versions of bash will fail to source /dev/null (special |
1393 | # files actually), so we avoid doing that. | |
1394 | if test -f "$cache_file"; then | |
1395 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1396 | echo "$as_me: loading cache $cache_file" >&6;} | |
1397 | case $cache_file in | |
1398 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1399 | *) . ./$cache_file;; | |
1400 | esac | |
1401 | fi | |
1530be84 | 1402 | else |
47935194 NN |
1403 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1404 | echo "$as_me: creating cache $cache_file" >&6;} | |
1405 | >$cache_file | |
1406 | fi | |
1407 | ||
1408 | # Check that the precious variables saved in the cache have kept the same | |
1409 | # value. | |
1410 | ac_cache_corrupted=false | |
1411 | for ac_var in `(set) 2>&1 | | |
8ab705be | 1412 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
47935194 NN |
1413 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1414 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1415 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1416 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1417 | case $ac_old_set,$ac_new_set in | |
1418 | set,) | |
1419 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1420 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1421 | ac_cache_corrupted=: ;; | |
1422 | ,set) | |
1423 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1424 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1425 | ac_cache_corrupted=: ;; | |
1426 | ,);; | |
1427 | *) | |
1428 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
deb984e6 PB |
1429 | # differences in whitespace do not lead to failure. |
1430 | ac_old_val_w=`echo x $ac_old_val` | |
1431 | ac_new_val_w=`echo x $ac_new_val` | |
1432 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1433 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
47935194 | 1434 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
deb984e6 PB |
1435 | ac_cache_corrupted=: |
1436 | else | |
1437 | { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1438 | echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1439 | eval $ac_var=\$ac_old_val | |
1440 | fi | |
1441 | { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1442 | echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1443 | { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1444 | echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
47935194 NN |
1445 | fi;; |
1446 | esac | |
1447 | # Pass precious variables to config.status. | |
1448 | if test "$ac_new_set" = set; then | |
1449 | case $ac_new_val in | |
1450 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1451 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1452 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1453 | esac | |
1454 | case " $ac_configure_args " in | |
1455 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1456 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1457 | esac | |
1458 | fi | |
1459 | done | |
1460 | if $ac_cache_corrupted; then | |
18c04407 RW |
1461 | { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1462 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
47935194 NN |
1463 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1464 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1465 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1466 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1467 | { (exit 1); exit 1; }; } | |
1530be84 TT |
1468 | fi |
1469 | ||
1470 | ac_ext=c | |
1530be84 | 1471 | ac_cpp='$CPP $CPPFLAGS' |
47935194 NN |
1472 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1473 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1474 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1475 | ||
1476 | ||
1477 | ||
1478 | ||
1479 | ||
1480 | ||
1481 | ||
1482 | ||
1483 | ||
1484 | ||
1485 | ||
1486 | ||
1487 | ||
1488 | ||
1489 | ||
1490 | ||
1491 | ||
18c04407 RW |
1492 | |
1493 | ||
1494 | ||
1530be84 TT |
1495 | |
1496 | ||
1497 | ||
6706f116 AO |
1498 | # This works around the fact that libtool configuration may change LD |
1499 | # for this particular configuration, but some shells, instead of | |
1500 | # keeping the changes in LD private, export them just because LD is | |
1501 | # exported. | |
1502 | ORIGINAL_LD_FOR_MULTILIBS=$LD | |
1503 | ||
bf9a420e | 1504 | # Default to --enable-multilib |
b1891e51 NN |
1505 | # Check whether --enable-multilib or --disable-multilib was given. |
1506 | if test "${enable_multilib+set}" = set; then | |
1507 | enableval="$enable_multilib" | |
bf9a420e | 1508 | case "$enableval" in |
b1891e51 NN |
1509 | yes) multilib=yes ;; |
1510 | no) multilib=no ;; | |
bf9a420e PB |
1511 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5 |
1512 | echo "$as_me: error: bad value $enableval for multilib option" >&2;} | |
47935194 | 1513 | { (exit 1); exit 1; }; } ;; |
b1891e51 NN |
1514 | esac |
1515 | else | |
1516 | multilib=yes | |
47935194 | 1517 | fi; |
b1891e51 | 1518 | |
bf9a420e PB |
1519 | # We may get other options which we leave undocumented: |
1520 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
1521 | # See config-ml.in if you want the gory details. | |
1522 | ||
1523 | if test "$srcdir" = "."; then | |
1524 | if test "$with_target_subdir" != "."; then | |
1525 | multi_basedir="$srcdir/$with_multisrctop../.." | |
b1891e51 | 1526 | else |
bf9a420e | 1527 | multi_basedir="$srcdir/$with_multisrctop.." |
b1891e51 NN |
1528 | fi |
1529 | else | |
bf9a420e | 1530 | multi_basedir="$srcdir/.." |
b1891e51 NN |
1531 | fi |
1532 | ||
b1891e51 | 1533 | |
8a489465 JH |
1534 | # Even if the default multilib is not a cross compilation, |
1535 | # it may be that some of the other multilibs are. | |
1536 | if test $cross_compiling = no && test $multilib = yes \ | |
1537 | && test "x${with_multisubdir}" != x ; then | |
1538 | cross_compiling=maybe | |
1539 | fi | |
1540 | ||
bf9a420e PB |
1541 | ac_config_commands="$ac_config_commands default-1" |
1542 | ||
1543 | ||
1544 | ac_aux_dir= | |
1545 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
b1891e51 NN |
1546 | if test -f $ac_dir/install-sh; then |
1547 | ac_aux_dir=$ac_dir | |
1548 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1549 | break | |
1550 | elif test -f $ac_dir/install.sh; then | |
1551 | ac_aux_dir=$ac_dir | |
1552 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1553 | break | |
47935194 NN |
1554 | elif test -f $ac_dir/shtool; then |
1555 | ac_aux_dir=$ac_dir | |
1556 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1557 | break | |
1558 | fi | |
b1891e51 NN |
1559 | done |
1560 | if test -z "$ac_aux_dir"; then | |
bf9a420e PB |
1561 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1562 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
47935194 | 1563 | { (exit 1); exit 1; }; } |
b1891e51 | 1564 | fi |
47935194 NN |
1565 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1566 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1567 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
b1891e51 | 1568 | |
b1891e51 | 1569 | # Make sure we can run config.sub. |
47935194 NN |
1570 | $ac_config_sub sun4 >/dev/null 2>&1 || |
1571 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1572 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1573 | { (exit 1); exit 1; }; } | |
1574 | ||
1575 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1576 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1577 | if test "${ac_cv_build+set}" = set; then | |
1578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1579 | else | |
1580 | ac_cv_build_alias=$build_alias | |
1581 | test -z "$ac_cv_build_alias" && | |
1582 | ac_cv_build_alias=`$ac_config_guess` | |
1583 | test -z "$ac_cv_build_alias" && | |
1584 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1585 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1586 | { (exit 1); exit 1; }; } | |
1587 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1588 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1589 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1590 | { (exit 1); exit 1; }; } | |
1591 | ||
1592 | fi | |
1593 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1594 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1595 | build=$ac_cv_build | |
1596 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1597 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1598 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1599 | ||
1600 | ||
1601 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1602 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1603 | if test "${ac_cv_host+set}" = set; then | |
1604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1605 | else | |
1606 | ac_cv_host_alias=$host_alias | |
1607 | test -z "$ac_cv_host_alias" && | |
1608 | ac_cv_host_alias=$ac_cv_build_alias | |
1609 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1610 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1611 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1612 | { (exit 1); exit 1; }; } | |
1613 | ||
1614 | fi | |
1615 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1616 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1617 | host=$ac_cv_host | |
1618 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1619 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1620 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1621 | ||
1622 | ||
1623 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1624 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1625 | if test "${ac_cv_target+set}" = set; then | |
1626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1627 | else | |
1628 | ac_cv_target_alias=$target_alias | |
1629 | test "x$ac_cv_target_alias" = "x" && | |
1630 | ac_cv_target_alias=$ac_cv_host_alias | |
1631 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1632 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1633 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1634 | { (exit 1); exit 1; }; } | |
b1891e51 | 1635 | |
47935194 NN |
1636 | fi |
1637 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1638 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1639 | target=$ac_cv_target | |
1640 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1641 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1642 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
b1891e51 | 1643 | |
b1891e51 | 1644 | |
47935194 NN |
1645 | # The aliases save the names the user supplied, while $host etc. |
1646 | # will get canonicalized. | |
1647 | test -n "$target_alias" && | |
b1891e51 NN |
1648 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1649 | NONENONEs,x,x, && | |
1650 | program_prefix=${target_alias}- | |
1651 | ||
d38d6003 | 1652 | # Get the 'noncanonical' system names. |
d38d6003 NN |
1653 | case ${build_alias} in |
1654 | "") build_noncanonical=${build} ;; | |
1655 | *) build_noncanonical=${build_alias} ;; | |
1656 | esac | |
1657 | ||
1658 | case ${host_alias} in | |
1659 | "") host_noncanonical=${build_noncanonical} ;; | |
1660 | *) host_noncanonical=${host_alias} ;; | |
1661 | esac | |
1662 | ||
1663 | case ${target_alias} in | |
1664 | "") target_noncanonical=${host_noncanonical} ;; | |
1665 | *) target_noncanonical=${target_alias} ;; | |
1666 | esac | |
1667 | ||
1668 | ||
13b040f1 NN |
1669 | |
1670 | ||
b1891e51 NN |
1671 | # This works around an automake problem. |
1672 | mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs" | |
1673 | ||
1674 | ||
4109fe85 | 1675 | am__api_version="1.9" |
1530be84 TT |
1676 | # Find a good install program. We prefer a C program (faster), |
1677 | # so one script is as good as another. But avoid the broken or | |
1678 | # incompatible versions: | |
1679 | # SysV /etc/install, /usr/sbin/install | |
1680 | # SunOS /usr/etc/install | |
1681 | # IRIX /sbin/install | |
1682 | # AIX /bin/install | |
47935194 | 1683 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
1530be84 TT |
1684 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1685 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1686 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8ab705be | 1687 | # OS/2's system install, which has a completely different semantic |
1530be84 | 1688 | # ./install, which can be erroneously created by make from ./install.sh. |
38d24731 | 1689 | # Reject install programs that cannot install multiple files. |
47935194 NN |
1690 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1691 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1530be84 | 1692 | if test -z "$INSTALL"; then |
47935194 NN |
1693 | if test "${ac_cv_path_install+set}" = set; then |
1694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1530be84 | 1695 | else |
47935194 NN |
1696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1697 | for as_dir in $PATH | |
1698 | do | |
1699 | IFS=$as_save_IFS | |
1700 | test -z "$as_dir" && as_dir=. | |
1701 | # Account for people who put trailing slashes in PATH elements. | |
1702 | case $as_dir/ in | |
1703 | ./ | .// | /cC/* | \ | |
1704 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
8ab705be | 1705 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
47935194 NN |
1706 | /usr/ucb/* ) ;; |
1707 | *) | |
1708 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1709 | # Don't use installbsd from OSF since it installs stuff as root | |
1710 | # by default. | |
1711 | for ac_prog in ginstall scoinst install; do | |
1712 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8ab705be KC |
1713 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
1714 | if test $ac_prog = install && | |
1715 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1716 | # AIX install. It has an incompatible calling convention. | |
1717 | : | |
1718 | elif test $ac_prog = install && | |
1719 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1720 | # program-specific install script used by HP pwplus--don't use. | |
1721 | : | |
1722 | else | |
38d24731 RW |
1723 | rm -rf conftest.one conftest.two conftest.dir |
1724 | echo one > conftest.one | |
1725 | echo two > conftest.two | |
1726 | mkdir conftest.dir | |
1727 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
1728 | test -s conftest.one && test -s conftest.two && | |
1729 | test -s conftest.dir/conftest.one && | |
1730 | test -s conftest.dir/conftest.two | |
1731 | then | |
1732 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1733 | break 3 | |
1734 | fi | |
8ab705be KC |
1735 | fi |
1736 | fi | |
1530be84 | 1737 | done |
47935194 NN |
1738 | done |
1739 | ;; | |
1740 | esac | |
1741 | done | |
1742 | ||
38d24731 | 1743 | rm -rf conftest.one conftest.two conftest.dir |
1530be84 TT |
1744 | |
1745 | fi | |
1746 | if test "${ac_cv_path_install+set}" = set; then | |
47935194 | 1747 | INSTALL=$ac_cv_path_install |
1530be84 | 1748 | else |
38d24731 RW |
1749 | # As a last resort, use the slow shell script. Don't cache a |
1750 | # value for INSTALL within a source directory, because that will | |
1530be84 | 1751 | # break other packages using the cache if that directory is |
38d24731 | 1752 | # removed, or if the value is a relative name. |
47935194 | 1753 | INSTALL=$ac_install_sh |
1530be84 TT |
1754 | fi |
1755 | fi | |
47935194 NN |
1756 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
1757 | echo "${ECHO_T}$INSTALL" >&6 | |
1530be84 TT |
1758 | |
1759 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1760 | # It thinks the first close brace ends the variable substitution. | |
1761 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1762 | ||
47935194 | 1763 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
1530be84 TT |
1764 | |
1765 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1766 | ||
47935194 NN |
1767 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
1768 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1530be84 TT |
1769 | # Just in case |
1770 | sleep 1 | |
bf9a420e | 1771 | echo timestamp > conftest.file |
1530be84 TT |
1772 | # Do `set' in a subshell so we don't clobber the current shell's |
1773 | # arguments. Must try -L first in case configure is actually a | |
1774 | # symlink; some systems play weird games with the mod time of symlinks | |
1775 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1776 | # directory). | |
1777 | if ( | |
bf9a420e | 1778 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
1530be84 TT |
1779 | if test "$*" = "X"; then |
1780 | # -L didn't work. | |
bf9a420e | 1781 | set X `ls -t $srcdir/configure conftest.file` |
1530be84 | 1782 | fi |
bf9a420e PB |
1783 | rm -f conftest.file |
1784 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1785 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
1530be84 TT |
1786 | |
1787 | # If neither matched, then we have a broken ls. This can happen | |
1788 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1789 | # broken ls alias from the environment. This has actually | |
1790 | # happened. Such a system could not be considered "sane". | |
47935194 NN |
1791 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
1792 | alias in your environment" >&5 | |
1793 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1794 | alias in your environment" >&2;} | |
1795 | { (exit 1); exit 1; }; } | |
1530be84 TT |
1796 | fi |
1797 | ||
bf9a420e | 1798 | test "$2" = conftest.file |
1530be84 TT |
1799 | ) |
1800 | then | |
1801 | # Ok. | |
1802 | : | |
1803 | else | |
47935194 NN |
1804 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
1805 | Check your system clock" >&5 | |
1806 | echo "$as_me: error: newly created file is older than distributed files! | |
1807 | Check your system clock" >&2;} | |
1808 | { (exit 1); exit 1; }; } | |
1530be84 | 1809 | fi |
47935194 NN |
1810 | echo "$as_me:$LINENO: result: yes" >&5 |
1811 | echo "${ECHO_T}yes" >&6 | |
1530be84 | 1812 | test "$program_prefix" != NONE && |
47935194 | 1813 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
1530be84 TT |
1814 | # Use a double $ so make ignores it. |
1815 | test "$program_suffix" != NONE && | |
47935194 NN |
1816 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
1817 | # Double any \ or $. echo might interpret backslashes. | |
1818 | # By default was `s,x,x', remove it if useless. | |
1819 | cat <<\_ACEOF >conftest.sed | |
1820 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1821 | _ACEOF | |
1822 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1823 | rm conftest.sed | |
1824 | ||
bf9a420e PB |
1825 | # expand $ac_aux_dir to an absolute path |
1826 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
1827 | ||
1828 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1829 | # Use eval to expand $SHELL | |
1830 | if eval "$MISSING --run true"; then | |
1831 | am_missing_run="$MISSING --run " | |
1832 | else | |
1833 | am_missing_run= | |
1834 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1835 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1836 | fi | |
1837 | ||
1838 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
4109fe85 BM |
1839 | # We used to keeping the `.' as first argument, in order to |
1840 | # allow $(mkdir_p) to be used without argument. As in | |
bf9a420e | 1841 | # $(mkdir_p) $(somedir) |
4109fe85 BM |
1842 | # where $(somedir) is conditionally defined. However this is wrong |
1843 | # for two reasons: | |
1844 | # 1. if the package is installed by a user who cannot write `.' | |
1845 | # make install will fail, | |
1846 | # 2. the above comment should most certainly read | |
1847 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
1848 | # so it does not work when $(somedir) is undefined and | |
1849 | # $(DESTDIR) is not. | |
1850 | # To support the latter case, we have to write | |
1851 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
1852 | # so the `.' trick is pointless. | |
1853 | mkdir_p='mkdir -p --' | |
bf9a420e PB |
1854 | else |
1855 | # On NextStep and OpenStep, the `mkdir' command does not | |
1856 | # recognize any option. It will interpret all options as | |
1857 | # directories to create, and then abort because `.' already | |
1858 | # exists. | |
1859 | for d in ./-p ./--version; | |
1860 | do | |
1861 | test -d $d && rmdir $d | |
1862 | done | |
1863 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
1864 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
1865 | mkdir_p='$(mkinstalldirs)' | |
1866 | else | |
1867 | mkdir_p='$(install_sh) -d' | |
1868 | fi | |
1869 | fi | |
1870 | ||
1871 | for ac_prog in gawk mawk nawk awk | |
1872 | do | |
1873 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1874 | set dummy $ac_prog; ac_word=$2 | |
1875 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1876 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1877 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1879 | else | |
1880 | if test -n "$AWK"; then | |
1881 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1882 | else | |
1883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1884 | for as_dir in $PATH | |
1885 | do | |
1886 | IFS=$as_save_IFS | |
1887 | test -z "$as_dir" && as_dir=. | |
1888 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1889 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1890 | ac_cv_prog_AWK="$ac_prog" | |
1891 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1892 | break 2 | |
1893 | fi | |
1894 | done | |
1895 | done | |
1896 | ||
1897 | fi | |
1898 | fi | |
1899 | AWK=$ac_cv_prog_AWK | |
1900 | if test -n "$AWK"; then | |
1901 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
1902 | echo "${ECHO_T}$AWK" >&6 | |
1903 | else | |
1904 | echo "$as_me:$LINENO: result: no" >&5 | |
1905 | echo "${ECHO_T}no" >&6 | |
1906 | fi | |
1907 | ||
1908 | test -n "$AWK" && break | |
1909 | done | |
1910 | ||
47935194 NN |
1911 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1912 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
8ab705be | 1913 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
47935194 NN |
1914 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
1915 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1530be84 | 1916 | else |
47935194 | 1917 | cat >conftest.make <<\_ACEOF |
1530be84 | 1918 | all: |
47935194 NN |
1919 | @echo 'ac_maketemp="$(MAKE)"' |
1920 | _ACEOF | |
1530be84 | 1921 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
47935194 | 1922 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
1530be84 TT |
1923 | if test -n "$ac_maketemp"; then |
1924 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1925 | else | |
1926 | eval ac_cv_prog_make_${ac_make}_set=no | |
1927 | fi | |
47935194 | 1928 | rm -f conftest.make |
1530be84 TT |
1929 | fi |
1930 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
47935194 NN |
1931 | echo "$as_me:$LINENO: result: yes" >&5 |
1932 | echo "${ECHO_T}yes" >&6 | |
1530be84 TT |
1933 | SET_MAKE= |
1934 | else | |
47935194 NN |
1935 | echo "$as_me:$LINENO: result: no" >&5 |
1936 | echo "${ECHO_T}no" >&6 | |
1530be84 TT |
1937 | SET_MAKE="MAKE=${MAKE-make}" |
1938 | fi | |
1939 | ||
bf9a420e PB |
1940 | rm -rf .tst 2>/dev/null |
1941 | mkdir .tst 2>/dev/null | |
1942 | if test -d .tst; then | |
1943 | am__leading_dot=. | |
1944 | else | |
1945 | am__leading_dot=_ | |
1946 | fi | |
1947 | rmdir .tst 2>/dev/null | |
1530be84 | 1948 | |
bf9a420e PB |
1949 | # test to see if srcdir already configured |
1950 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
1951 | test -f $srcdir/config.status; then | |
47935194 NN |
1952 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
1953 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1954 | { (exit 1); exit 1; }; } | |
1530be84 TT |
1955 | fi |
1956 | ||
bf9a420e PB |
1957 | # test whether we have cygpath |
1958 | if test -z "$CYGPATH_W"; then | |
1959 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
1960 | CYGPATH_W='cygpath -w' | |
1961 | else | |
1962 | CYGPATH_W=echo | |
1963 | fi | |
1964 | fi | |
1965 | ||
1966 | ||
1967 | # Define the identity of the package. | |
1968 | PACKAGE=gc | |
54f28c21 | 1969 | VERSION=6.6 |
bf9a420e PB |
1970 | |
1971 | ||
1972 | # Some tools Automake needs. | |
1973 | ||
1974 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
1975 | ||
1530be84 | 1976 | |
bf9a420e | 1977 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
1530be84 | 1978 | |
bf9a420e PB |
1979 | |
1980 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
1981 | ||
1982 | ||
1983 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
1984 | ||
1985 | ||
1986 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
1987 | ||
bf9a420e PB |
1988 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
1989 | ||
1990 | # Installed binaries are usually stripped using `strip' when the user | |
1991 | # run `make install-strip'. However `strip' might not be the right | |
1992 | # tool to use in cross-compilation environments, therefore Automake | |
1993 | # will honor the `STRIP' environment variable to overrule this program. | |
1994 | if test "$cross_compiling" != no; then | |
1995 | if test -n "$ac_tool_prefix"; then | |
1996 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
1997 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1998 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1999 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2000 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1530be84 | 2002 | else |
bf9a420e PB |
2003 | if test -n "$STRIP"; then |
2004 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2005 | else | |
2006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2007 | for as_dir in $PATH | |
2008 | do | |
2009 | IFS=$as_save_IFS | |
2010 | test -z "$as_dir" && as_dir=. | |
2011 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2012 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2013 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2014 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2015 | break 2 | |
2016 | fi | |
2017 | done | |
2018 | done | |
1530be84 | 2019 | |
bf9a420e PB |
2020 | fi |
2021 | fi | |
2022 | STRIP=$ac_cv_prog_STRIP | |
2023 | if test -n "$STRIP"; then | |
2024 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2025 | echo "${ECHO_T}$STRIP" >&6 | |
1530be84 | 2026 | else |
bf9a420e PB |
2027 | echo "$as_me:$LINENO: result: no" >&5 |
2028 | echo "${ECHO_T}no" >&6 | |
1530be84 TT |
2029 | fi |
2030 | ||
1530be84 | 2031 | fi |
bf9a420e PB |
2032 | if test -z "$ac_cv_prog_STRIP"; then |
2033 | ac_ct_STRIP=$STRIP | |
2034 | # Extract the first word of "strip", so it can be a program name with args. | |
2035 | set dummy strip; ac_word=$2 | |
2036 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2037 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2038 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2040 | else | |
2041 | if test -n "$ac_ct_STRIP"; then | |
2042 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2043 | else | |
2044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2045 | for as_dir in $PATH | |
2046 | do | |
2047 | IFS=$as_save_IFS | |
2048 | test -z "$as_dir" && as_dir=. | |
2049 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2050 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2051 | ac_cv_prog_ac_ct_STRIP="strip" | |
2052 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2053 | break 2 | |
2054 | fi | |
2055 | done | |
2056 | done | |
1530be84 | 2057 | |
bf9a420e PB |
2058 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
2059 | fi | |
2060 | fi | |
2061 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2062 | if test -n "$ac_ct_STRIP"; then | |
2063 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2064 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
1530be84 | 2065 | else |
bf9a420e PB |
2066 | echo "$as_me:$LINENO: result: no" >&5 |
2067 | echo "${ECHO_T}no" >&6 | |
1530be84 TT |
2068 | fi |
2069 | ||
bf9a420e | 2070 | STRIP=$ac_ct_STRIP |
1530be84 | 2071 | else |
bf9a420e PB |
2072 | STRIP="$ac_cv_prog_STRIP" |
2073 | fi | |
2074 | ||
1530be84 | 2075 | fi |
bf9a420e PB |
2076 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
2077 | ||
2078 | # We need awk for the "check" target. The system "awk" is bad on | |
2079 | # some platforms. | |
4109fe85 BM |
2080 | # Always define AMTAR for backward compatibility. |
2081 | ||
2082 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2083 | ||
2084 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2085 | ||
2086 | ||
bf9a420e | 2087 | |
1530be84 TT |
2088 | |
2089 | ||
2090 | ||
47935194 | 2091 | # The autoconf 2.5x version of the no-executables hack. |
1530be84 TT |
2092 | |
2093 | ||
e22db4bf NN |
2094 | # Yak. We must force CC and CXX to /not/ be precious variables; otherwise |
2095 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
2096 | # As a side effect, we have to subst CFLAGS and CXXFLAGS ourselves. | |
2097 | ||
2098 | ||
2099 | ||
47935194 NN |
2100 | ac_ext=c |
2101 | ac_cpp='$CPP $CPPFLAGS' | |
2102 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2103 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2104 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2105 | if test -n "$ac_tool_prefix"; then | |
2106 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2107 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2108 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2109 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2110 | if test "${ac_cv_prog_CC+set}" = set; then | |
2111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2112 | else | |
2113 | if test -n "$CC"; then | |
2114 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2115 | else | |
2116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2117 | for as_dir in $PATH | |
2118 | do | |
2119 | IFS=$as_save_IFS | |
2120 | test -z "$as_dir" && as_dir=. | |
2121 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2122 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2123 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2124 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2125 | break 2 | |
2126 | fi | |
2127 | done | |
2128 | done | |
1530be84 | 2129 | |
47935194 NN |
2130 | fi |
2131 | fi | |
2132 | CC=$ac_cv_prog_CC | |
2133 | if test -n "$CC"; then | |
2134 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2135 | echo "${ECHO_T}$CC" >&6 | |
2136 | else | |
2137 | echo "$as_me:$LINENO: result: no" >&5 | |
2138 | echo "${ECHO_T}no" >&6 | |
2139 | fi | |
54ce7452 | 2140 | |
47935194 NN |
2141 | fi |
2142 | if test -z "$ac_cv_prog_CC"; then | |
2143 | ac_ct_CC=$CC | |
2144 | # Extract the first word of "gcc", so it can be a program name with args. | |
1530be84 | 2145 | set dummy gcc; ac_word=$2 |
47935194 NN |
2146 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2147 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2148 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2149 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2150 | else | |
2151 | if test -n "$ac_ct_CC"; then | |
2152 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2153 | else | |
2154 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2155 | for as_dir in $PATH | |
2156 | do | |
2157 | IFS=$as_save_IFS | |
2158 | test -z "$as_dir" && as_dir=. | |
2159 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2160 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2161 | ac_cv_prog_ac_ct_CC="gcc" | |
2162 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2163 | break 2 | |
2164 | fi | |
2165 | done | |
2166 | done | |
2167 | ||
2168 | fi | |
2169 | fi | |
2170 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2171 | if test -n "$ac_ct_CC"; then | |
2172 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2173 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2174 | else | |
2175 | echo "$as_me:$LINENO: result: no" >&5 | |
2176 | echo "${ECHO_T}no" >&6 | |
2177 | fi | |
2178 | ||
2179 | CC=$ac_ct_CC | |
2180 | else | |
2181 | CC="$ac_cv_prog_CC" | |
2182 | fi | |
2183 | ||
2184 | if test -z "$CC"; then | |
2185 | if test -n "$ac_tool_prefix"; then | |
2186 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2187 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2188 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2189 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2190 | if test "${ac_cv_prog_CC+set}" = set; then | |
2191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1530be84 TT |
2192 | else |
2193 | if test -n "$CC"; then | |
2194 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2195 | else | |
47935194 NN |
2196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2197 | for as_dir in $PATH | |
2198 | do | |
2199 | IFS=$as_save_IFS | |
2200 | test -z "$as_dir" && as_dir=. | |
2201 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2202 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2203 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2204 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2205 | break 2 | |
2206 | fi | |
2207 | done | |
2208 | done | |
2209 | ||
1530be84 TT |
2210 | fi |
2211 | fi | |
47935194 | 2212 | CC=$ac_cv_prog_CC |
1530be84 | 2213 | if test -n "$CC"; then |
47935194 NN |
2214 | echo "$as_me:$LINENO: result: $CC" >&5 |
2215 | echo "${ECHO_T}$CC" >&6 | |
1530be84 | 2216 | else |
47935194 NN |
2217 | echo "$as_me:$LINENO: result: no" >&5 |
2218 | echo "${ECHO_T}no" >&6 | |
1530be84 TT |
2219 | fi |
2220 | ||
47935194 NN |
2221 | fi |
2222 | if test -z "$ac_cv_prog_CC"; then | |
2223 | ac_ct_CC=$CC | |
2224 | # Extract the first word of "cc", so it can be a program name with args. | |
2225 | set dummy cc; ac_word=$2 | |
2226 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2227 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2228 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2230 | else | |
2231 | if test -n "$ac_ct_CC"; then | |
2232 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2233 | else | |
2234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2235 | for as_dir in $PATH | |
2236 | do | |
2237 | IFS=$as_save_IFS | |
2238 | test -z "$as_dir" && as_dir=. | |
2239 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2240 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2241 | ac_cv_prog_ac_ct_CC="cc" | |
2242 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2243 | break 2 | |
2244 | fi | |
2245 | done | |
2246 | done | |
2247 | ||
2248 | fi | |
2249 | fi | |
2250 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2251 | if test -n "$ac_ct_CC"; then | |
2252 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2253 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2254 | else | |
2255 | echo "$as_me:$LINENO: result: no" >&5 | |
2256 | echo "${ECHO_T}no" >&6 | |
2257 | fi | |
2258 | ||
2259 | CC=$ac_ct_CC | |
2260 | else | |
2261 | CC="$ac_cv_prog_CC" | |
2262 | fi | |
2263 | ||
2264 | fi | |
1530be84 TT |
2265 | if test -z "$CC"; then |
2266 | # Extract the first word of "cc", so it can be a program name with args. | |
2267 | set dummy cc; ac_word=$2 | |
47935194 NN |
2268 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2269 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2270 | if test "${ac_cv_prog_CC+set}" = set; then | |
2271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1530be84 TT |
2272 | else |
2273 | if test -n "$CC"; then | |
2274 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2275 | else | |
1530be84 | 2276 | ac_prog_rejected=no |
47935194 NN |
2277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2278 | for as_dir in $PATH | |
2279 | do | |
2280 | IFS=$as_save_IFS | |
2281 | test -z "$as_dir" && as_dir=. | |
2282 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2283 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2284 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2285 | ac_prog_rejected=yes | |
2286 | continue | |
2287 | fi | |
2288 | ac_cv_prog_CC="cc" | |
2289 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2290 | break 2 | |
2291 | fi | |
2292 | done | |
2293 | done | |
2294 | ||
1530be84 TT |
2295 | if test $ac_prog_rejected = yes; then |
2296 | # We found a bogon in the path, so make sure we never use it. | |
2297 | set dummy $ac_cv_prog_CC | |
2298 | shift | |
47935194 | 2299 | if test $# != 0; then |
1530be84 TT |
2300 | # We chose a different compiler from the bogus one. |
2301 | # However, it has the same basename, so the bogon will be chosen | |
2302 | # first if we set CC to just the basename; use the full file name. | |
2303 | shift | |
47935194 | 2304 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
1530be84 TT |
2305 | fi |
2306 | fi | |
2307 | fi | |
2308 | fi | |
47935194 | 2309 | CC=$ac_cv_prog_CC |
1530be84 | 2310 | if test -n "$CC"; then |
47935194 NN |
2311 | echo "$as_me:$LINENO: result: $CC" >&5 |
2312 | echo "${ECHO_T}$CC" >&6 | |
1530be84 | 2313 | else |
47935194 NN |
2314 | echo "$as_me:$LINENO: result: no" >&5 |
2315 | echo "${ECHO_T}no" >&6 | |
1530be84 TT |
2316 | fi |
2317 | ||
1530be84 | 2318 | fi |
47935194 NN |
2319 | if test -z "$CC"; then |
2320 | if test -n "$ac_tool_prefix"; then | |
2321 | for ac_prog in cl | |
2322 | do | |
2323 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2324 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2325 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2326 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2327 | if test "${ac_cv_prog_CC+set}" = set; then | |
2328 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1530be84 | 2329 | else |
47935194 NN |
2330 | if test -n "$CC"; then |
2331 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1530be84 | 2332 | else |
47935194 NN |
2333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2334 | for as_dir in $PATH | |
2335 | do | |
2336 | IFS=$as_save_IFS | |
2337 | test -z "$as_dir" && as_dir=. | |
2338 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2339 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2340 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2341 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2342 | break 2 | |
2343 | fi | |
2344 | done | |
2345 | done | |
1530be84 | 2346 | |
1530be84 | 2347 | fi |
1530be84 | 2348 | fi |
47935194 NN |
2349 | CC=$ac_cv_prog_CC |
2350 | if test -n "$CC"; then | |
2351 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2352 | echo "${ECHO_T}$CC" >&6 | |
1530be84 | 2353 | else |
47935194 NN |
2354 | echo "$as_me:$LINENO: result: no" >&5 |
2355 | echo "${ECHO_T}no" >&6 | |
1530be84 TT |
2356 | fi |
2357 | ||
47935194 NN |
2358 | test -n "$CC" && break |
2359 | done | |
2360 | fi | |
2361 | if test -z "$CC"; then | |
2362 | ac_ct_CC=$CC | |
2363 | for ac_prog in cl | |
1530be84 | 2364 | do |
47935194 | 2365 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
1530be84 | 2366 | set dummy $ac_prog; ac_word=$2 |
47935194 NN |
2367 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2368 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2369 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1530be84 | 2371 | else |
47935194 NN |
2372 | if test -n "$ac_ct_CC"; then |
2373 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1530be84 | 2374 | else |
47935194 NN |
2375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2376 | for as_dir in $PATH | |
2377 | do | |
2378 | IFS=$as_save_IFS | |
2379 | test -z "$as_dir" && as_dir=. | |
2380 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2381 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2382 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2383 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2384 | break 2 | |
2385 | fi | |
2386 | done | |
2387 | done | |
2388 | ||
1530be84 TT |
2389 | fi |
2390 | fi | |
47935194 NN |
2391 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2392 | if test -n "$ac_ct_CC"; then | |
2393 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2394 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1530be84 | 2395 | else |
47935194 NN |
2396 | echo "$as_me:$LINENO: result: no" >&5 |
2397 | echo "${ECHO_T}no" >&6 | |
1530be84 TT |
2398 | fi |
2399 | ||
47935194 | 2400 | test -n "$ac_ct_CC" && break |
1530be84 | 2401 | done |
1530be84 | 2402 | |
47935194 NN |
2403 | CC=$ac_ct_CC |
2404 | fi | |
2405 | ||
2406 | fi | |
2407 | ||
2408 | ||
18c04407 RW |
2409 | test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2410 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2411 | { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
47935194 NN |
2412 | See \`config.log' for more details." >&5 |
2413 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2414 | See \`config.log' for more details." >&2;} | |
18c04407 | 2415 | { (exit 1); exit 1; }; }; } |
47935194 NN |
2416 | |
2417 | # Provide some information about the compiler. | |
2418 | echo "$as_me:$LINENO:" \ | |
2419 | "checking for C compiler version" >&5 | |
2420 | ac_compiler=`set X $ac_compile; echo $2` | |
2421 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2422 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2423 | ac_status=$? | |
2424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2425 | (exit $ac_status); } | |
2426 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2427 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2428 | ac_status=$? | |
2429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2430 | (exit $ac_status); } | |
2431 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2432 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2433 | ac_status=$? | |
2434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2435 | (exit $ac_status); } | |
2436 | ||
2437 | cat >conftest.$ac_ext <<_ACEOF | |
2438 | /* confdefs.h. */ | |
2439 | _ACEOF | |
2440 | cat confdefs.h >>conftest.$ac_ext | |
2441 | cat >>conftest.$ac_ext <<_ACEOF | |
2442 | /* end confdefs.h. */ | |
2443 | ||
2444 | int | |
2445 | main () | |
2446 | { | |
2447 | ||
2448 | ; | |
2449 | return 0; | |
2450 | } | |
2451 | _ACEOF | |
2452 | # FIXME: Cleanup? | |
2453 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2454 | (eval $ac_link) 2>&5 | |
2455 | ac_status=$? | |
2456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2457 | (exit $ac_status); }; then | |
2458 | gcc_no_link=no | |
1530be84 | 2459 | else |
47935194 | 2460 | gcc_no_link=yes |
1530be84 | 2461 | fi |
1530be84 | 2462 | |
47935194 NN |
2463 | if test x$gcc_no_link = xyes; then |
2464 | # Setting cross_compile will disable run tests; it will | |
2465 | # also disable AC_CHECK_FILE but that's generally | |
2466 | # correct if we can't link. | |
2467 | cross_compiling=yes | |
2468 | EXEEXT= | |
1530be84 | 2469 | else |
47935194 NN |
2470 | cat >conftest.$ac_ext <<_ACEOF |
2471 | /* confdefs.h. */ | |
2472 | _ACEOF | |
2473 | cat confdefs.h >>conftest.$ac_ext | |
2474 | cat >>conftest.$ac_ext <<_ACEOF | |
2475 | /* end confdefs.h. */ | |
2476 | ||
2477 | int | |
2478 | main () | |
2479 | { | |
2480 | ||
2481 | ; | |
2482 | return 0; | |
2483 | } | |
2484 | _ACEOF | |
2485 | ac_clean_files_save=$ac_clean_files | |
2486 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2487 | # Try to create an executable without -o first, disregard a.out. | |
2488 | # It will help us diagnose broken compilers, and finding out an intuition | |
2489 | # of exeext. | |
8ab705be KC |
2490 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2491 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
47935194 NN |
2492 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2493 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2494 | (eval $ac_link_default) 2>&5 | |
2495 | ac_status=$? | |
2496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2497 | (exit $ac_status); }; then | |
2498 | # Find the output, starting from the most likely. This scheme is | |
2499 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2500 | # resort. | |
2501 | ||
2502 | # Be careful to initialize this variable, since it used to be cached. | |
2503 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2504 | ac_cv_exeext= | |
2505 | # b.out is created by i960 compilers. | |
2506 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2507 | do | |
2508 | test -f "$ac_file" || continue | |
2509 | case $ac_file in | |
2510 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
8ab705be | 2511 | ;; |
47935194 | 2512 | conftest.$ac_ext ) |
8ab705be KC |
2513 | # This is the source file. |
2514 | ;; | |
47935194 | 2515 | [ab].out ) |
8ab705be KC |
2516 | # We found the default executable, but exeext='' is most |
2517 | # certainly right. | |
2518 | break;; | |
47935194 | 2519 | *.* ) |
8ab705be KC |
2520 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2521 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2522 | # but it would be cool to find out if it's true. Does anybody | |
2523 | # maintain Libtool? --akim. | |
2524 | export ac_cv_exeext | |
2525 | break;; | |
47935194 | 2526 | * ) |
8ab705be | 2527 | break;; |
47935194 NN |
2528 | esac |
2529 | done | |
1530be84 | 2530 | else |
47935194 NN |
2531 | echo "$as_me: failed program was:" >&5 |
2532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2533 | ||
18c04407 RW |
2534 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2535 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
47935194 NN |
2536 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2537 | See \`config.log' for more details." >&5 | |
2538 | echo "$as_me: error: C compiler cannot create executables | |
2539 | See \`config.log' for more details." >&2;} | |
18c04407 | 2540 | { (exit 77); exit 77; }; }; } |
47935194 NN |
2541 | fi |
2542 | ||
2543 | ac_exeext=$ac_cv_exeext | |
2544 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2545 | echo "${ECHO_T}$ac_file" >&6 | |
2546 | ||
2547 | # Check the compiler produces executables we can run. If not, either | |
2548 | # the compiler is broken, or we cross compile. | |
2549 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2550 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2551 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2552 | # If not cross compiling, check that we can run a simple program. | |
2553 | if test "$cross_compiling" != yes; then | |
2554 | if { ac_try='./$ac_file' | |
2555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2556 | (eval $ac_try) 2>&5 | |
2557 | ac_status=$? | |
2558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2559 | (exit $ac_status); }; }; then | |
2560 | cross_compiling=no | |
1530be84 | 2561 | else |
47935194 NN |
2562 | if test "$cross_compiling" = maybe; then |
2563 | cross_compiling=yes | |
2564 | else | |
18c04407 RW |
2565 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2566 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2567 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
47935194 NN |
2568 | If you meant to cross compile, use \`--host'. |
2569 | See \`config.log' for more details." >&5 | |
2570 | echo "$as_me: error: cannot run C compiled programs. | |
2571 | If you meant to cross compile, use \`--host'. | |
2572 | See \`config.log' for more details." >&2;} | |
18c04407 | 2573 | { (exit 1); exit 1; }; }; } |
47935194 | 2574 | fi |
1530be84 | 2575 | fi |
47935194 NN |
2576 | fi |
2577 | echo "$as_me:$LINENO: result: yes" >&5 | |
2578 | echo "${ECHO_T}yes" >&6 | |
2579 | ||
2580 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2581 | ac_clean_files=$ac_clean_files_save | |
2582 | # Check the compiler produces executables we can run. If not, either | |
2583 | # the compiler is broken, or we cross compile. | |
2584 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2585 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2586 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2587 | echo "${ECHO_T}$cross_compiling" >&6 | |
2588 | ||
2589 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2590 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2591 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2592 | (eval $ac_link) 2>&5 | |
2593 | ac_status=$? | |
2594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2595 | (exit $ac_status); }; then | |
2596 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2597 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2598 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2599 | # `rm'. | |
2600 | for ac_file in conftest.exe conftest conftest.*; do | |
2601 | test -f "$ac_file" || continue | |
2602 | case $ac_file in | |
2603 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2604 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
8ab705be KC |
2605 | export ac_cv_exeext |
2606 | break;; | |
47935194 NN |
2607 | * ) break;; |
2608 | esac | |
2609 | done | |
1530be84 | 2610 | else |
18c04407 RW |
2611 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2612 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2613 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
47935194 NN |
2614 | See \`config.log' for more details." >&5 |
2615 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2616 | See \`config.log' for more details." >&2;} | |
18c04407 | 2617 | { (exit 1); exit 1; }; }; } |
1530be84 TT |
2618 | fi |
2619 | ||
47935194 NN |
2620 | rm -f conftest$ac_cv_exeext |
2621 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2622 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1530be84 | 2623 | |
47935194 NN |
2624 | rm -f conftest.$ac_ext |
2625 | EXEEXT=$ac_cv_exeext | |
2626 | ac_exeext=$EXEEXT | |
2627 | fi | |
2628 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2629 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2630 | if test "${ac_cv_objext+set}" = set; then | |
2631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1530be84 | 2632 | else |
47935194 NN |
2633 | cat >conftest.$ac_ext <<_ACEOF |
2634 | /* confdefs.h. */ | |
2635 | _ACEOF | |
2636 | cat confdefs.h >>conftest.$ac_ext | |
2637 | cat >>conftest.$ac_ext <<_ACEOF | |
2638 | /* end confdefs.h. */ | |
2639 | ||
2640 | int | |
2641 | main () | |
2642 | { | |
2643 | ||
2644 | ; | |
2645 | return 0; | |
2646 | } | |
2647 | _ACEOF | |
2648 | rm -f conftest.o conftest.obj | |
2649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2650 | (eval $ac_compile) 2>&5 | |
2651 | ac_status=$? | |
2652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2653 | (exit $ac_status); }; then | |
2654 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2655 | case $ac_file in | |
2656 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2657 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2658 | break;; | |
2659 | esac | |
2660 | done | |
1530be84 | 2661 | else |
47935194 NN |
2662 | echo "$as_me: failed program was:" >&5 |
2663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2664 | ||
18c04407 RW |
2665 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2666 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
47935194 NN |
2667 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2668 | See \`config.log' for more details." >&5 | |
2669 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2670 | See \`config.log' for more details." >&2;} | |
18c04407 | 2671 | { (exit 1); exit 1; }; }; } |
1530be84 | 2672 | fi |
47935194 NN |
2673 | |
2674 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
1530be84 | 2675 | fi |
47935194 NN |
2676 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2677 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2678 | OBJEXT=$ac_cv_objext | |
2679 | ac_objext=$OBJEXT | |
2680 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2681 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2682 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1530be84 | 2684 | else |
47935194 NN |
2685 | cat >conftest.$ac_ext <<_ACEOF |
2686 | /* confdefs.h. */ | |
2687 | _ACEOF | |
2688 | cat confdefs.h >>conftest.$ac_ext | |
2689 | cat >>conftest.$ac_ext <<_ACEOF | |
2690 | /* end confdefs.h. */ | |
2691 | ||
2692 | int | |
2693 | main () | |
2694 | { | |
2695 | #ifndef __GNUC__ | |
2696 | choke me | |
2697 | #endif | |
1530be84 | 2698 | |
47935194 NN |
2699 | ; |
2700 | return 0; | |
2701 | } | |
2702 | _ACEOF | |
2703 | rm -f conftest.$ac_objext | |
2704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8ab705be | 2705 | (eval $ac_compile) 2>conftest.er1 |
47935194 | 2706 | ac_status=$? |
8ab705be KC |
2707 | grep -v '^ *+' conftest.er1 >conftest.err |
2708 | rm -f conftest.er1 | |
2709 | cat conftest.err >&5 | |
47935194 NN |
2710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2711 | (exit $ac_status); } && | |
5572488d KC |
2712 | { ac_try='test -z "$ac_c_werror_flag" |
2713 | || test ! -s conftest.err' | |
8ab705be KC |
2714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2715 | (eval $ac_try) 2>&5 | |
2716 | ac_status=$? | |
2717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2718 | (exit $ac_status); }; } && | |
2719 | { ac_try='test -s conftest.$ac_objext' | |
47935194 NN |
2720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2721 | (eval $ac_try) 2>&5 | |
2722 | ac_status=$? | |
2723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2724 | (exit $ac_status); }; }; then | |
2725 | ac_compiler_gnu=yes | |
2726 | else | |
2727 | echo "$as_me: failed program was:" >&5 | |
2728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1530be84 | 2729 | |
47935194 NN |
2730 | ac_compiler_gnu=no |
2731 | fi | |
8ab705be | 2732 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
47935194 | 2733 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
1530be84 | 2734 | |
47935194 NN |
2735 | fi |
2736 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2737 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2738 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2739 | ac_test_CFLAGS=${CFLAGS+set} | |
2740 | ac_save_CFLAGS=$CFLAGS | |
2741 | CFLAGS="-g" | |
2742 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2743 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2744 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1530be84 | 2746 | else |
47935194 NN |
2747 | cat >conftest.$ac_ext <<_ACEOF |
2748 | /* confdefs.h. */ | |
2749 | _ACEOF | |
2750 | cat confdefs.h >>conftest.$ac_ext | |
2751 | cat >>conftest.$ac_ext <<_ACEOF | |
2752 | /* end confdefs.h. */ | |
2753 | ||
2754 | int | |
2755 | main () | |
2756 | { | |
2757 | ||
2758 | ; | |
2759 | return 0; | |
2760 | } | |
2761 | _ACEOF | |
2762 | rm -f conftest.$ac_objext | |
2763 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8ab705be | 2764 | (eval $ac_compile) 2>conftest.er1 |
47935194 | 2765 | ac_status=$? |
8ab705be KC |
2766 | grep -v '^ *+' conftest.er1 >conftest.err |
2767 | rm -f conftest.er1 | |
2768 | cat conftest.err >&5 | |
47935194 NN |
2769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2770 | (exit $ac_status); } && | |
5572488d KC |
2771 | { ac_try='test -z "$ac_c_werror_flag" |
2772 | || test ! -s conftest.err' | |
8ab705be KC |
2773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2774 | (eval $ac_try) 2>&5 | |
2775 | ac_status=$? | |
2776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2777 | (exit $ac_status); }; } && | |
2778 | { ac_try='test -s conftest.$ac_objext' | |
47935194 NN |
2779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2780 | (eval $ac_try) 2>&5 | |
2781 | ac_status=$? | |
2782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2783 | (exit $ac_status); }; }; then | |
2784 | ac_cv_prog_cc_g=yes | |
1530be84 | 2785 | else |
47935194 NN |
2786 | echo "$as_me: failed program was:" >&5 |
2787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2788 | ||
2789 | ac_cv_prog_cc_g=no | |
2790 | fi | |
8ab705be | 2791 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
47935194 NN |
2792 | fi |
2793 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2794 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2795 | if test "$ac_test_CFLAGS" = set; then | |
2796 | CFLAGS=$ac_save_CFLAGS | |
2797 | elif test $ac_cv_prog_cc_g = yes; then | |
2798 | if test "$GCC" = yes; then | |
2799 | CFLAGS="-g -O2" | |
2800 | else | |
2801 | CFLAGS="-g" | |
2802 | fi | |
2803 | else | |
2804 | if test "$GCC" = yes; then | |
2805 | CFLAGS="-O2" | |
2806 | else | |
2807 | CFLAGS= | |
2808 | fi | |
2809 | fi | |
2810 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2811 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2812 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2814 | else | |
2815 | ac_cv_prog_cc_stdc=no | |
2816 | ac_save_CC=$CC | |
2817 | cat >conftest.$ac_ext <<_ACEOF | |
2818 | /* confdefs.h. */ | |
2819 | _ACEOF | |
2820 | cat confdefs.h >>conftest.$ac_ext | |
2821 | cat >>conftest.$ac_ext <<_ACEOF | |
2822 | /* end confdefs.h. */ | |
2823 | #include <stdarg.h> | |
2824 | #include <stdio.h> | |
2825 | #include <sys/types.h> | |
2826 | #include <sys/stat.h> | |
2827 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2828 | struct buf { int x; }; | |
2829 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2830 | static char *e (p, i) | |
2831 | char **p; | |
2832 | int i; | |
2833 | { | |
2834 | return p[i]; | |
2835 | } | |
2836 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2837 | { | |
2838 | char *s; | |
2839 | va_list v; | |
2840 | va_start (v,p); | |
2841 | s = g (p, va_arg (v,int)); | |
2842 | va_end (v); | |
2843 | return s; | |
2844 | } | |
8ab705be KC |
2845 | |
2846 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2847 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2848 | These don't provoke an error unfortunately, instead are silently treated | |
2849 | as 'x'. The following induces an error, until -std1 is added to get | |
2850 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2851 | array size at least. It's necessary to write '\x00'==0 to get something | |
2852 | that's true only with -std1. */ | |
2853 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2854 | ||
47935194 NN |
2855 | int test (int i, double x); |
2856 | struct s1 {int (*f) (int a);}; | |
2857 | struct s2 {int (*f) (double a);}; | |
2858 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2859 | int argc; | |
2860 | char **argv; | |
2861 | int | |
2862 | main () | |
2863 | { | |
2864 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2865 | ; | |
2866 | return 0; | |
2867 | } | |
2868 | _ACEOF | |
2869 | # Don't try gcc -ansi; that turns off useful extensions and | |
2870 | # breaks some systems' header files. | |
2871 | # AIX -qlanglvl=ansi | |
2872 | # Ultrix and OSF/1 -std1 | |
2873 | # HP-UX 10.20 and later -Ae | |
2874 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2875 | # SVR4 -Xc -D__EXTENSIONS__ | |
2876 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2877 | do | |
2878 | CC="$ac_save_CC $ac_arg" | |
2879 | rm -f conftest.$ac_objext | |
2880 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8ab705be | 2881 | (eval $ac_compile) 2>conftest.er1 |
47935194 | 2882 | ac_status=$? |
8ab705be KC |
2883 | grep -v '^ *+' conftest.er1 >conftest.err |
2884 | rm -f conftest.er1 | |
2885 | cat conftest.err >&5 | |
47935194 NN |
2886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2887 | (exit $ac_status); } && | |
5572488d KC |
2888 | { ac_try='test -z "$ac_c_werror_flag" |
2889 | || test ! -s conftest.err' | |
8ab705be KC |
2890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2891 | (eval $ac_try) 2>&5 | |
2892 | ac_status=$? | |
2893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2894 | (exit $ac_status); }; } && | |
2895 | { ac_try='test -s conftest.$ac_objext' | |
47935194 NN |
2896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2897 | (eval $ac_try) 2>&5 | |
2898 | ac_status=$? | |
2899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2900 | (exit $ac_status); }; }; then | |
2901 | ac_cv_prog_cc_stdc=$ac_arg | |
2902 | break | |
2903 | else | |
2904 | echo "$as_me: failed program was:" >&5 | |
2905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2906 | ||
2907 | fi | |
8ab705be | 2908 | rm -f conftest.err conftest.$ac_objext |
47935194 NN |
2909 | done |
2910 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2911 | CC=$ac_save_CC | |
2912 | ||
2913 | fi | |
2914 | ||
2915 | case "x$ac_cv_prog_cc_stdc" in | |
2916 | x|xno) | |
2917 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2918 | echo "${ECHO_T}none needed" >&6 ;; | |
2919 | *) | |
2920 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2921 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2922 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2923 | esac | |
2924 | ||
2925 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2926 | # in C++ we need to declare it. In case someone uses the same compiler | |
2927 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2928 | # the declaration of exit, since it's the most demanding environment. | |
2929 | cat >conftest.$ac_ext <<_ACEOF | |
2930 | #ifndef __cplusplus | |
2931 | choke me | |
2932 | #endif | |
2933 | _ACEOF | |
2934 | rm -f conftest.$ac_objext | |
2935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8ab705be | 2936 | (eval $ac_compile) 2>conftest.er1 |
47935194 | 2937 | ac_status=$? |
8ab705be KC |
2938 | grep -v '^ *+' conftest.er1 >conftest.err |
2939 | rm -f conftest.er1 | |
2940 | cat conftest.err >&5 | |
47935194 NN |
2941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2942 | (exit $ac_status); } && | |
5572488d KC |
2943 | { ac_try='test -z "$ac_c_werror_flag" |
2944 | || test ! -s conftest.err' | |
8ab705be KC |
2945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2946 | (eval $ac_try) 2>&5 | |
2947 | ac_status=$? | |
2948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2949 | (exit $ac_status); }; } && | |
2950 | { ac_try='test -s conftest.$ac_objext' | |
47935194 NN |
2951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2952 | (eval $ac_try) 2>&5 | |
2953 | ac_status=$? | |
2954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2955 | (exit $ac_status); }; }; then | |
2956 | for ac_declaration in \ | |
2957 | '' \ | |
2958 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2959 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2960 | 'extern "C" void exit (int) throw ();' \ | |
2961 | 'extern "C" void exit (int);' \ | |
2962 | 'void exit (int);' | |
2963 | do | |
2964 | cat >conftest.$ac_ext <<_ACEOF | |
2965 | /* confdefs.h. */ | |
2966 | _ACEOF | |
2967 | cat confdefs.h >>conftest.$ac_ext | |
2968 | cat >>conftest.$ac_ext <<_ACEOF | |
2969 | /* end confdefs.h. */ | |
2970 | $ac_declaration | |
2971 | #include <stdlib.h> | |
2972 | int | |
2973 | main () | |
2974 | { | |
2975 | exit (42); | |
2976 | ; | |
2977 | return 0; | |
2978 | } | |
2979 | _ACEOF | |
2980 | rm -f conftest.$ac_objext | |
2981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8ab705be | 2982 | (eval $ac_compile) 2>conftest.er1 |
47935194 | 2983 | ac_status=$? |
8ab705be KC |
2984 | grep -v '^ *+' conftest.er1 >conftest.err |
2985 | rm -f conftest.er1 | |
2986 | cat conftest.err >&5 | |
47935194 NN |
2987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2988 | (exit $ac_status); } && | |
5572488d KC |
2989 | { ac_try='test -z "$ac_c_werror_flag" |
2990 | || test ! -s conftest.err' | |
8ab705be KC |
2991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2992 | (eval $ac_try) 2>&5 | |
2993 | ac_status=$? | |
2994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2995 | (exit $ac_status); }; } && | |
2996 | { ac_try='test -s conftest.$ac_objext' | |
47935194 NN |
2997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2998 | (eval $ac_try) 2>&5 | |
2999 | ac_status=$? | |
3000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3001 | (exit $ac_status); }; }; then | |
3002 | : | |
3003 | else | |
3004 | echo "$as_me: failed program was:" >&5 | |
3005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3006 | ||
3007 | continue | |
3008 | fi | |
8ab705be | 3009 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
47935194 NN |
3010 | cat >conftest.$ac_ext <<_ACEOF |
3011 | /* confdefs.h. */ | |
3012 | _ACEOF | |
3013 | cat confdefs.h >>conftest.$ac_ext | |
3014 | cat >>conftest.$ac_ext <<_ACEOF | |
3015 | /* end confdefs.h. */ | |
3016 | $ac_declaration | |
3017 | int | |
3018 | main () | |
3019 | { | |
3020 | exit (42); | |
3021 | ; | |
3022 | return 0; | |
3023 | } | |
3024 | _ACEOF | |
3025 | rm -f conftest.$ac_objext | |
3026 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8ab705be | 3027 | (eval $ac_compile) 2>conftest.er1 |
47935194 | 3028 | ac_status=$? |
8ab705be KC |
3029 | grep -v '^ *+' conftest.er1 >conftest.err |
3030 | rm -f conftest.er1 | |
3031 | cat conftest.err >&5 | |
47935194 NN |
3032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3033 | (exit $ac_status); } && | |
5572488d KC |
3034 | { ac_try='test -z "$ac_c_werror_flag" |
3035 | || test ! -s conftest.err' | |
8ab705be KC |
3036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3037 | (eval $ac_try) 2>&5 | |
3038 | ac_status=$? | |
3039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3040 | (exit $ac_status); }; } && | |
3041 | { ac_try='test -s conftest.$ac_objext' | |
47935194 NN |
3042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3043 | (eval $ac_try) 2>&5 | |
3044 | ac_status=$? | |
3045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3046 | (exit $ac_status); }; }; then | |
3047 | break | |
3048 | else | |
3049 | echo "$as_me: failed program was:" >&5 | |
3050 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3051 | ||
3052 | fi | |
8ab705be | 3053 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
47935194 NN |
3054 | done |
3055 | rm -f conftest* | |
3056 | if test -n "$ac_declaration"; then | |
3057 | echo '#ifdef __cplusplus' >>confdefs.h | |
3058 | echo $ac_declaration >>confdefs.h | |
3059 | echo '#endif' >>confdefs.h | |
3060 | fi | |
3061 | ||
3062 | else | |
3063 | echo "$as_me: failed program was:" >&5 | |
3064 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3065 | ||
3066 | fi | |
8ab705be | 3067 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
47935194 NN |
3068 | ac_ext=c |
3069 | ac_cpp='$CPP $CPPFLAGS' | |
3070 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3071 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3072 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
bf9a420e PB |
3073 | DEPDIR="${am__leading_dot}deps" |
3074 | ||
3075 | ac_config_commands="$ac_config_commands depfiles" | |
3076 | ||
3077 | ||
3078 | am_make=${MAKE-make} | |
3079 | cat > confinc << 'END' | |
3080 | am__doit: | |
3081 | @echo done | |
3082 | .PHONY: am__doit | |
3083 | END | |
3084 | # If we don't find an include directive, just comment out the code. | |
3085 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
3086 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
3087 | am__include="#" | |
3088 | am__quote= | |
3089 | _am_result=none | |
3090 | # First try GNU make style include. | |
3091 | echo "include confinc" > confmf | |
3092 | # We grep out `Entering directory' and `Leaving directory' | |
3093 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
3094 | # In particular we don't look at `^make:' because GNU make might | |
3095 | # be invoked under some other name (usually "gmake"), in which | |
3096 | # case it prints its new name instead of `make'. | |
3097 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
3098 | am__include=include | |
3099 | am__quote= | |
3100 | _am_result=GNU | |
3101 | fi | |
3102 | # Now try BSD make style include. | |
3103 | if test "$am__include" = "#"; then | |
3104 | echo '.include "confinc"' > confmf | |
3105 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
3106 | am__include=.include | |
3107 | am__quote="\"" | |
3108 | _am_result=BSD | |
3109 | fi | |
3110 | fi | |
3111 | ||
3112 | ||
3113 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
3114 | echo "${ECHO_T}$_am_result" >&6 | |
3115 | rm -f confinc confmf | |
3116 | ||
3117 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
3118 | if test "${enable_dependency_tracking+set}" = set; then | |
3119 | enableval="$enable_dependency_tracking" | |
3120 | ||
3121 | fi; | |
3122 | if test "x$enable_dependency_tracking" != xno; then | |
3123 | am_depcomp="$ac_aux_dir/depcomp" | |
3124 | AMDEPBACKSLASH='\' | |
3125 | fi | |
3126 | ||
3127 | ||
3128 | if test "x$enable_dependency_tracking" != xno; then | |
3129 | AMDEP_TRUE= | |
3130 | AMDEP_FALSE='#' | |
3131 | else | |
3132 | AMDEP_TRUE='#' | |
3133 | AMDEP_FALSE= | |
3134 | fi | |
3135 | ||
3136 | ||
3137 | ||
3138 | ||
3139 | depcc="$CC" am_compiler_list= | |
3140 | ||
3141 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
3142 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
3143 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3145 | else | |
3146 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3147 | # We make a subdir and do the tests there. Otherwise we can end up | |
3148 | # making bogus files that we don't know about and never remove. For | |
3149 | # instance it was reported that on HP-UX the gcc test will end up | |
3150 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3151 | # in D'. | |
3152 | mkdir conftest.dir | |
3153 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3154 | # using a relative directory. | |
3155 | cp "$am_depcomp" conftest.dir | |
3156 | cd conftest.dir | |
3157 | # We will build objects and dependencies in a subdirectory because | |
3158 | # it helps to detect inapplicable dependency modes. For instance | |
3159 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3160 | # side effect of compilation, but ICC will put the dependencies in | |
3161 | # the current directory while Tru64 will put them in the object | |
3162 | # directory. | |
3163 | mkdir sub | |
3164 | ||
3165 | am_cv_CC_dependencies_compiler_type=none | |
3166 | if test "$am_compiler_list" = ""; then | |
3167 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3168 | fi | |
3169 | for depmode in $am_compiler_list; do | |
3170 | # Setup a source with many dependencies, because some compilers | |
3171 | # like to wrap large dependency lists on column 80 (with \), and | |
3172 | # we should not choose a depcomp mode which is confused by this. | |
3173 | # | |
3174 | # We need to recreate these files for each test, as the compiler may | |
3175 | # overwrite some of them when testing with obscure command lines. | |
3176 | # This happens at least with the AIX C compiler. | |
3177 | : > sub/conftest.c | |
3178 | for i in 1 2 3 4 5 6; do | |
3179 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3180 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3181 | # Solaris 8's {/usr,}/bin/sh. | |
3182 | touch sub/conftst$i.h | |
3183 | done | |
3184 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3185 | ||
3186 | case $depmode in | |
3187 | nosideeffect) | |
3188 | # after this tag, mechanisms are not by side-effect, so they'll | |
3189 | # only be used when explicitly requested | |
3190 | if test "x$enable_dependency_tracking" = xyes; then | |
3191 | continue | |
3192 | else | |
3193 | break | |
3194 | fi | |
3195 | ;; | |
3196 | none) break ;; | |
3197 | esac | |
3198 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3199 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3200 | # handle `-M -o', and we need to detect this. | |
3201 | if depmode=$depmode \ | |
3202 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3203 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3204 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3205 | >/dev/null 2>conftest.err && | |
3206 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3207 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3208 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3209 | # icc doesn't choke on unknown options, it will just issue warnings | |
3210 | # or remarks (even with -Werror). So we grep stderr for any message | |
3211 | # that says an option was ignored or not supported. | |
3212 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3213 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3214 | # The diagnosis changed in icc 8.0: | |
3215 | # icc: Command line remark: option '-MP' not supported | |
3216 | if (grep 'ignoring option' conftest.err || | |
3217 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3218 | am_cv_CC_dependencies_compiler_type=$depmode | |
3219 | break | |
3220 | fi | |
3221 | fi | |
3222 | done | |
3223 | ||
3224 | cd .. | |
3225 | rm -rf conftest.dir | |
3226 | else | |
3227 | am_cv_CC_dependencies_compiler_type=none | |
3228 | fi | |
3229 | ||
3230 | fi | |
3231 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3232 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3233 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3234 | ||
3235 | ||
3236 | ||
3237 | if | |
3238 | test "x$enable_dependency_tracking" != xno \ | |
3239 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3240 | am__fastdepCC_TRUE= | |
3241 | am__fastdepCC_FALSE='#' | |
3242 | else | |
3243 | am__fastdepCC_TRUE='#' | |
3244 | am__fastdepCC_FALSE= | |
3245 | fi | |
3246 | ||
47935194 NN |
3247 | |
3248 | ac_ext=cc | |
3249 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3250 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3251 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3252 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3253 | if test -n "$ac_tool_prefix"; then | |
3254 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
3255 | do | |
3256 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3257 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3258 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3259 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3260 | if test "${ac_cv_prog_CXX+set}" = set; then | |
3261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3262 | else | |
3263 | if test -n "$CXX"; then | |
3264 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3265 | else | |
3266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3267 | for as_dir in $PATH | |
3268 | do | |
3269 | IFS=$as_save_IFS | |
3270 | test -z "$as_dir" && as_dir=. | |
3271 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3272 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3273 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
3274 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3275 | break 2 | |
3276 | fi | |
3277 | done | |
3278 | done | |
3279 | ||
3280 | fi | |
3281 | fi | |
3282 | CXX=$ac_cv_prog_CXX | |
3283 | if test -n "$CXX"; then | |
3284 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
3285 | echo "${ECHO_T}$CXX" >&6 | |
3286 | else | |
3287 | echo "$as_me:$LINENO: result: no" >&5 | |
3288 | echo "${ECHO_T}no" >&6 | |
3289 | fi | |
3290 | ||
3291 | test -n "$CXX" && break | |
1530be84 | 3292 | done |
47935194 NN |
3293 | fi |
3294 | if test -z "$CXX"; then | |
3295 | ac_ct_CXX=$CXX | |
3296 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
3297 | do | |
3298 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3299 | set dummy $ac_prog; ac_word=$2 | |
3300 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3301 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3302 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
3303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3304 | else | |
3305 | if test -n "$ac_ct_CXX"; then | |
3306 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3307 | else | |
3308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3309 | for as_dir in $PATH | |
3310 | do | |
3311 | IFS=$as_save_IFS | |
3312 | test -z "$as_dir" && as_dir=. | |
3313 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3314 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3315 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
3316 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3317 | break 2 | |
3318 | fi | |
3319 | done | |
3320 | done | |
3321 | ||
3322 | fi | |
3323 | fi | |
3324 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3325 | if test -n "$ac_ct_CXX"; then | |
3326 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
3327 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
3328 | else | |
3329 | echo "$as_me:$LINENO: result: no" >&5 | |
3330 | echo "${ECHO_T}no" >&6 | |
3331 | fi | |
3332 | ||
3333 | test -n "$ac_ct_CXX" && break | |
3334 | done | |
3335 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
3336 | ||
3337 | CXX=$ac_ct_CXX | |
3338 | fi | |
3339 | ||
3340 | ||
3341 | # Provide some information about the compiler. | |
3342 | echo "$as_me:$LINENO:" \ | |
3343 | "checking for C++ compiler version" >&5 | |
3344 | ac_compiler=`set X $ac_compile; echo $2` | |
3345 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
3346 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
3347 | ac_status=$? | |
3348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3349 | (exit $ac_status); } | |
3350 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
3351 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
3352 | ac_status=$? | |
3353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3354 | (exit $ac_status); } | |
3355 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
3356 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
3357 | ac_status=$? | |
3358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3359 | (exit $ac_status); } | |
3360 | ||
3361 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
3362 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
3363 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
3364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3365 | else | |
3366 | cat >conftest.$ac_ext <<_ACEOF | |
3367 | /* confdefs.h. */ | |
3368 | _ACEOF | |
3369 | cat confdefs.h >>conftest.$ac_ext | |
3370 | cat >>conftest.$ac_ext <<_ACEOF | |
3371 | /* end confdefs.h. */ | |
3372 | ||
3373 | int | |
3374 | main () | |
3375 | { | |
3376 | #ifndef __GNUC__ | |
3377 | choke me | |
3378 | #endif | |
3379 | ||
3380 | ; | |
3381 | return 0; | |
3382 | } | |
3383 | _ACEOF | |
3384 | rm -f conftest.$ac_objext | |
3385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8ab705be | 3386 | (eval $ac_compile) 2>conftest.er1 |
47935194 | 3387 | ac_status=$? |
8ab705be KC |
3388 | grep -v '^ *+' conftest.er1 >conftest.err |
3389 | rm -f conftest.er1 | |
3390 | cat conftest.err >&5 | |
47935194 NN |
3391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3392 | (exit $ac_status); } && | |
5572488d KC |
3393 | { ac_try='test -z "$ac_cxx_werror_flag" |
3394 | || test ! -s conftest.err' | |
8ab705be KC |
3395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3396 | (eval $ac_try) 2>&5 | |
3397 | ac_status=$? | |
3398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3399 | (exit $ac_status); }; } && | |
3400 | { ac_try='test -s conftest.$ac_objext' | |
47935194 NN |
3401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3402 | (eval $ac_try) 2>&5 | |
3403 | ac_status=$? | |
3404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3405 | (exit $ac_status); }; }; then | |
3406 | ac_compiler_gnu=yes | |
3407 | else | |
3408 | echo "$as_me: failed program was:" >&5 | |
3409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3410 | ||
3411 | ac_compiler_gnu=no | |
3412 | fi | |
8ab705be | 3413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
47935194 NN |
3414 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
3415 | ||
3416 | fi | |
3417 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
3418 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
3419 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
3420 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
3421 | ac_save_CXXFLAGS=$CXXFLAGS | |
3422 | CXXFLAGS="-g" | |
3423 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
3424 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
3425 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
3426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3427 | else | |
3428 | cat >conftest.$ac_ext <<_ACEOF | |
3429 | /* confdefs.h. */ | |
3430 | _ACEOF | |
3431 | cat confdefs.h >>conftest.$ac_ext | |
3432 | cat >>conftest.$ac_ext <<_ACEOF | |
3433 | /* end confdefs.h. */ | |
3434 | ||
3435 | int | |
3436 | main () | |
3437 | { | |
3438 | ||
3439 | ; | |
3440 | return 0; | |
3441 | } | |
3442 | _ACEOF | |
3443 | rm -f conftest.$ac_objext | |
3444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8ab705be | 3445 | (eval $ac_compile) 2>conftest.er1 |
47935194 | 3446 | ac_status=$? |
8ab705be KC |
3447 | grep -v '^ *+' conftest.er1 >conftest.err |
3448 | rm -f conftest.er1 | |
3449 | cat conftest.err >&5 | |
47935194 NN |
3450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3451 | (exit $ac_status); } && | |
5572488d KC |
3452 | { ac_try='test -z "$ac_cxx_werror_flag" |
3453 | || test ! -s conftest.err' | |
8ab705be KC |
3454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3455 | (eval $ac_try) 2>&5 | |
3456 | ac_status=$? | |
3457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3458 | (exit $ac_status); }; } && | |
3459 | { ac_try='test -s conftest.$ac_objext' | |
47935194 NN |
3460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3461 | (eval $ac_try) 2>&5 | |
3462 | ac_status=$? | |
3463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3464 | (exit $ac_status); }; }; then | |
3465 | ac_cv_prog_cxx_g=yes | |
3466 | else | |
3467 | echo "$as_me: failed program was:" >&5 | |
3468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3469 | ||
3470 | ac_cv_prog_cxx_g=no | |
3471 | fi | |
8ab705be | 3472 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
47935194 NN |
3473 | fi |
3474 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
3475 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
3476 | if test "$ac_test_CXXFLAGS" = set; then | |
3477 | CXXFLAGS=$ac_save_CXXFLAGS | |
3478 | elif test $ac_cv_prog_cxx_g = yes; then | |
3479 | if test "$GXX" = yes; then | |
3480 | CXXFLAGS="-g -O2" | |
3481 | else | |
3482 | CXXFLAGS="-g" | |
3483 | fi | |
3484 | else | |
3485 | if test "$GXX" = yes; then | |
3486 | CXXFLAGS="-O2" | |
3487 | else | |
3488 | CXXFLAGS= | |
3489 | fi | |
3490 | fi | |
3491 | for ac_declaration in \ | |
3492 | '' \ | |
3493 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
3494 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3495 | 'extern "C" void exit (int) throw ();' \ | |
3496 | 'extern "C" void exit (int);' \ | |
3497 | 'void exit (int);' | |
3498 | do | |
3499 | cat >conftest.$ac_ext <<_ACEOF | |
3500 | /* confdefs.h. */ | |
3501 | _ACEOF | |
3502 | cat confdefs.h >>conftest.$ac_ext | |
3503 | cat >>conftest.$ac_ext <<_ACEOF | |
3504 | /* end confdefs.h. */ | |
3505 | $ac_declaration | |
3506 | #include <stdlib.h> | |
3507 | int | |
3508 | main () | |
3509 | { | |
3510 | exit (42); | |
3511 | ; | |
3512 | return 0; | |
3513 | } | |
3514 | _ACEOF | |
3515 | rm -f conftest.$ac_objext | |
3516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8ab705be | 3517 | (eval $ac_compile) 2>conftest.er1 |
47935194 | 3518 | ac_status=$? |
8ab705be KC |
3519 | grep -v '^ *+' conftest.er1 >conftest.err |
3520 | rm -f conftest.er1 | |
3521 | cat conftest.err >&5 | |
47935194 NN |
3522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3523 | (exit $ac_status); } && | |
5572488d KC |
3524 | { ac_try='test -z "$ac_cxx_werror_flag" |
3525 | || test ! -s conftest.err' | |
8ab705be KC |
3526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3527 | (eval $ac_try) 2>&5 | |
3528 | ac_status=$? | |
3529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3530 | (exit $ac_status); }; } && | |
3531 | { ac_try='test -s conftest.$ac_objext' | |
47935194 NN |
3532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3533 | (eval $ac_try) 2>&5 | |
3534 | ac_status=$? | |
3535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3536 | (exit $ac_status); }; }; then | |
3537 | : | |
3538 | else | |
3539 | echo "$as_me: failed program was:" >&5 | |
3540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3541 | ||
3542 | continue | |
3543 | fi | |
8ab705be | 3544 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
47935194 NN |
3545 | cat >conftest.$ac_ext <<_ACEOF |
3546 | /* confdefs.h. */ | |
3547 | _ACEOF | |
3548 | cat confdefs.h >>conftest.$ac_ext | |
3549 | cat >>conftest.$ac_ext <<_ACEOF | |
3550 | /* end confdefs.h. */ | |
3551 | $ac_declaration | |
3552 | int | |
3553 | main () | |
3554 | { | |
3555 | exit (42); | |
3556 | ; | |
3557 | return 0; | |
3558 | } | |
3559 | _ACEOF | |
3560 | rm -f conftest.$ac_objext | |
3561 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8ab705be | 3562 | (eval $ac_compile) 2>conftest.er1 |
47935194 | 3563 | ac_status=$? |
8ab705be KC |
3564 | grep -v '^ *+' conftest.er1 >conftest.err |
3565 | rm -f conftest.er1 | |
3566 | cat conftest.err >&5 | |
47935194 NN |
3567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3568 | (exit $ac_status); } && | |
5572488d KC |
3569 | { ac_try='test -z "$ac_cxx_werror_flag" |
3570 | || test ! -s conftest.err' | |
8ab705be KC |
3571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3572 | (eval $ac_try) 2>&5 | |
3573 | ac_status=$? | |
3574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3575 | (exit $ac_status); }; } && | |
3576 | { ac_try='test -s conftest.$ac_objext' | |
47935194 NN |
3577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3578 | (eval $ac_try) 2>&5 | |
3579 | ac_status=$? | |
3580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3581 | (exit $ac_status); }; }; then | |
3582 | break | |
3583 | else | |
3584 | echo "$as_me: failed program was:" >&5 | |
3585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3586 | ||
3587 | fi | |
8ab705be | 3588 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
47935194 NN |
3589 | done |
3590 | rm -f conftest* | |
3591 | if test -n "$ac_declaration"; then | |
3592 | echo '#ifdef __cplusplus' >>confdefs.h | |
3593 | echo $ac_declaration >>confdefs.h | |
3594 | echo '#endif' >>confdefs.h | |
3595 | fi | |
3596 | ||
3597 | ac_ext=c | |
3598 | ac_cpp='$CPP $CPPFLAGS' | |
3599 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3600 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3601 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3602 | ||
bf9a420e PB |
3603 | depcc="$CXX" am_compiler_list= |
3604 | ||
3605 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
3606 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
3607 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then | |
3608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3609 | else | |
3610 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3611 | # We make a subdir and do the tests there. Otherwise we can end up | |
3612 | # making bogus files that we don't know about and never remove. For | |
3613 | # instance it was reported that on HP-UX the gcc test will end up | |
3614 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3615 | # in D'. | |
3616 | mkdir conftest.dir | |
3617 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3618 | # using a relative directory. | |
3619 | cp "$am_depcomp" conftest.dir | |
3620 | cd conftest.dir | |
3621 | # We will build objects and dependencies in a subdirectory because | |
3622 | # it helps to detect inapplicable dependency modes. For instance | |
3623 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3624 | # side effect of compilation, but ICC will put the dependencies in | |
3625 | # the current directory while Tru64 will put them in the object | |
3626 | # directory. | |
3627 | mkdir sub | |
3628 | ||
3629 | am_cv_CXX_dependencies_compiler_type=none | |
3630 | if test "$am_compiler_list" = ""; then | |
3631 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3632 | fi | |
3633 | for depmode in $am_compiler_list; do | |
3634 | # Setup a source with many dependencies, because some compilers | |
3635 | # like to wrap large dependency lists on column 80 (with \), and | |
3636 | # we should not choose a depcomp mode which is confused by this. | |
3637 | # | |
3638 | # We need to recreate these files for each test, as the compiler may | |
3639 | # overwrite some of them when testing with obscure command lines. | |
3640 | # This happens at least with the AIX C compiler. | |
3641 | : > sub/conftest.c | |
3642 | for i in 1 2 3 4 5 6; do | |
3643 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3644 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3645 | # Solaris 8's {/usr,}/bin/sh. | |
3646 | touch sub/conftst$i.h | |
3647 | done | |
3648 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3649 | ||
3650 | case $depmode in | |
3651 | nosideeffect) | |
3652 | # after this tag, mechanisms are not by side-effect, so they'll | |
3653 | # only be used when explicitly requested | |
3654 | if test "x$enable_dependency_tracking" = xyes; then | |
3655 | continue | |
3656 | else | |
3657 | break | |
3658 | fi | |
3659 | ;; | |
3660 | none) break ;; | |
3661 | esac | |
3662 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3663 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3664 | # handle `-M -o', and we need to detect this. | |
3665 | if depmode=$depmode \ | |
3666 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3667 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3668 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3669 | >/dev/null 2>conftest.err && | |
3670 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3671 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3672 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3673 | # icc doesn't choke on unknown options, it will just issue warnings | |
3674 | # or remarks (even with -Werror). So we grep stderr for any message | |
3675 | # that says an option was ignored or not supported. | |
3676 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3677 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3678 | # The diagnosis changed in icc 8.0: | |
3679 | # icc: Command line remark: option '-MP' not supported | |
3680 | if (grep 'ignoring option' conftest.err || | |
3681 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3682 | am_cv_CXX_dependencies_compiler_type=$depmode | |
3683 | break | |
3684 | fi | |
3685 | fi | |
3686 | done | |
3687 | ||
3688 | cd .. | |
3689 | rm -rf conftest.dir | |
3690 | else | |
3691 | am_cv_CXX_dependencies_compiler_type=none | |
3692 | fi | |
3693 | ||
3694 | fi | |
3695 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
3696 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 | |
3697 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
3698 | ||
3699 | ||
3700 | ||
3701 | if | |
3702 | test "x$enable_dependency_tracking" != xno \ | |
3703 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
3704 | am__fastdepCXX_TRUE= | |
3705 | am__fastdepCXX_FALSE='#' | |
3706 | else | |
3707 | am__fastdepCXX_TRUE='#' | |
3708 | am__fastdepCXX_FALSE= | |
3709 | fi | |
3710 | ||
3711 | ||
3712 | ||
3713 | ||
3714 | if test "x$CC" != xcc; then | |
3715 | echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 | |
3716 | echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6 | |
3717 | else | |
3718 | echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 | |
3719 | echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6 | |
3720 | fi | |
3721 | set dummy $CC; ac_cc=`echo $2 | | |
3722 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
3723 | if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then | |
3724 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3725 | else | |
3726 | cat >conftest.$ac_ext <<_ACEOF | |
3727 | /* confdefs.h. */ | |
3728 | _ACEOF | |
3729 | cat confdefs.h >>conftest.$ac_ext | |
3730 | cat >>conftest.$ac_ext <<_ACEOF | |
3731 | /* end confdefs.h. */ | |
3732 | ||
3733 | int | |
3734 | main () | |
3735 | { | |
3736 | ||
3737 | ; | |
3738 | return 0; | |
3739 | } | |
3740 | _ACEOF | |
3741 | # Make sure it works both with $CC and with simple cc. | |
3742 | # We do the test twice because some compilers refuse to overwrite an | |
3743 | # existing .o file with -o, though they will create one. | |
3744 | ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5' | |
3745 | if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3746 | (eval $ac_try) 2>&5 | |
3747 | ac_status=$? | |
3748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3749 | (exit $ac_status); } && | |
3750 | test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3751 | (eval $ac_try) 2>&5 | |
3752 | ac_status=$? | |
3753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3754 | (exit $ac_status); }; | |
3755 | then | |
3756 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
3757 | if test "x$CC" != xcc; then | |
3758 | # Test first that cc exists at all. | |
3759 | if { ac_try='cc -c conftest.$ac_ext >&5' | |
3760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3761 | (eval $ac_try) 2>&5 | |
3762 | ac_status=$? | |
3763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3764 | (exit $ac_status); }; }; then | |
3765 | ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5' | |
3766 | if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3767 | (eval $ac_try) 2>&5 | |
3768 | ac_status=$? | |
3769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3770 | (exit $ac_status); } && | |
3771 | test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3772 | (eval $ac_try) 2>&5 | |
3773 | ac_status=$? | |
3774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3775 | (exit $ac_status); }; | |
3776 | then | |
3777 | # cc works too. | |
3778 | : | |
3779 | else | |
3780 | # cc exists but doesn't like -o. | |
3781 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
3782 | fi | |
3783 | fi | |
3784 | fi | |
3785 | else | |
3786 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
3787 | fi | |
3788 | rm -f conftest* | |
3789 | ||
3790 | fi | |
3791 | if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then | |
3792 | echo "$as_me:$LINENO: result: yes" >&5 | |
3793 | echo "${ECHO_T}yes" >&6 | |
3794 | else | |
3795 | echo "$as_me:$LINENO: result: no" >&5 | |
3796 | echo "${ECHO_T}no" >&6 | |
3797 | ||
3798 | cat >>confdefs.h <<\_ACEOF | |
3799 | #define NO_MINUS_C_MINUS_O 1 | |
3800 | _ACEOF | |
3801 | ||
3802 | fi | |
3803 | ||
3804 | # FIXME: we rely on the cache variable name because | |
3805 | # there is no other way. | |
3806 | set dummy $CC | |
3807 | ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
3808 | if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then | |
3809 | # Losing compiler, so override with the script. | |
3810 | # FIXME: It is wrong to rewrite CC. | |
3811 | # But if we don't then we get into trouble of one sort or another. | |
3812 | # A longer-term fix would be to have automake use am__CC in this case, | |
3813 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3814 | CC="$am_aux_dir/compile $CC" | |
3815 | fi | |
47935194 | 3816 | |
e22db4bf NN |
3817 | |
3818 | ||
3819 | ||
3820 | ||
7664e6f8 NN |
3821 | # Newer automakes demand CCAS and CCASFLAGS. |
3822 | : ${CCAS='$(CC)'} | |
3823 | : ${CCASFLAGS='$(CFLAGS)'} | |
3824 | ||
3825 | ||
3826 | ||
47935194 NN |
3827 | if test -n "$ac_tool_prefix"; then |
3828 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
3829 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
3830 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3831 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3832 | if test "${ac_cv_prog_AS+set}" = set; then | |
3833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3834 | else | |
3835 | if test -n "$AS"; then | |
3836 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
3837 | else | |
3838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3839 | for as_dir in $PATH | |
3840 | do | |
3841 | IFS=$as_save_IFS | |
3842 | test -z "$as_dir" && as_dir=. | |
3843 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3844 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3845 | ac_cv_prog_AS="${ac_tool_prefix}as" | |
3846 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3847 | break 2 | |
3848 | fi | |
3849 | done | |
3850 | done | |
3851 | ||
3852 | fi | |
3853 | fi | |
3854 | AS=$ac_cv_prog_AS | |
3855 | if test -n "$AS"; then | |
3856 | echo "$as_me:$LINENO: result: $AS" >&5 | |
3857 | echo "${ECHO_T}$AS" >&6 | |
3858 | else | |
3859 | echo "$as_me:$LINENO: result: no" >&5 | |
3860 | echo "${ECHO_T}no" >&6 | |
3861 | fi | |
3862 | ||
3863 | fi | |
3864 | if test -z "$ac_cv_prog_AS"; then | |
3865 | ac_ct_AS=$AS | |
3866 | # Extract the first word of "as", so it can be a program name with args. | |
3867 | set dummy as; ac_word=$2 | |
3868 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3869 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3870 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then | |
3871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3872 | else | |
3873 | if test -n "$ac_ct_AS"; then | |
3874 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
3875 | else | |
3876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3877 | for as_dir in $PATH | |
3878 | do | |
3879 | IFS=$as_save_IFS | |
3880 | test -z "$as_dir" && as_dir=. | |
3881 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3882 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3883 | ac_cv_prog_ac_ct_AS="as" | |
3884 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3885 | break 2 | |
3886 | fi | |
3887 | done | |
3888 | done | |
3889 | ||
3890 | fi | |
3891 | fi | |
3892 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
3893 | if test -n "$ac_ct_AS"; then | |
3894 | echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 | |
3895 | echo "${ECHO_T}$ac_ct_AS" >&6 | |
3896 | else | |
3897 | echo "$as_me:$LINENO: result: no" >&5 | |
3898 | echo "${ECHO_T}no" >&6 | |
3899 | fi | |
3900 | ||
3901 | AS=$ac_ct_AS | |
3902 | else | |
3903 | AS="$ac_cv_prog_AS" | |
3904 | fi | |
3905 | ||
3906 | if test -n "$ac_tool_prefix"; then | |
3907 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
3908 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
3909 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3910 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3911 | if test "${ac_cv_prog_AR+set}" = set; then | |
3912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3913 | else | |
3914 | if test -n "$AR"; then | |
3915 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3916 | else | |
3917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3918 | for as_dir in $PATH | |
3919 | do | |
3920 | IFS=$as_save_IFS | |
3921 | test -z "$as_dir" && as_dir=. | |
3922 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3923 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3924 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
3925 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3926 | break 2 | |
3927 | fi | |
3928 | done | |
3929 | done | |
3930 | ||
1530be84 TT |
3931 | fi |
3932 | fi | |
47935194 | 3933 | AR=$ac_cv_prog_AR |
1530be84 | 3934 | if test -n "$AR"; then |
47935194 NN |
3935 | echo "$as_me:$LINENO: result: $AR" >&5 |
3936 | echo "${ECHO_T}$AR" >&6 | |
1530be84 | 3937 | else |
47935194 NN |
3938 | echo "$as_me:$LINENO: result: no" >&5 |
3939 | echo "${ECHO_T}no" >&6 | |
1530be84 TT |
3940 | fi |
3941 | ||
47935194 NN |
3942 | fi |
3943 | if test -z "$ac_cv_prog_AR"; then | |
3944 | ac_ct_AR=$AR | |
3945 | # Extract the first word of "ar", so it can be a program name with args. | |
3946 | set dummy ar; ac_word=$2 | |
3947 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3948 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3949 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
3950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3951 | else | |
3952 | if test -n "$ac_ct_AR"; then | |
3953 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
3954 | else | |
3955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3956 | for as_dir in $PATH | |
3957 | do | |
3958 | IFS=$as_save_IFS | |
3959 | test -z "$as_dir" && as_dir=. | |
3960 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3961 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3962 | ac_cv_prog_ac_ct_AR="ar" | |
3963 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3964 | break 2 | |
3965 | fi | |
3966 | done | |
3967 | done | |
3968 | ||
3969 | fi | |
3970 | fi | |
3971 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
3972 | if test -n "$ac_ct_AR"; then | |
3973 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
3974 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
3975 | else | |
3976 | echo "$as_me:$LINENO: result: no" >&5 | |
3977 | echo "${ECHO_T}no" >&6 | |
3978 | fi | |
1530be84 | 3979 | |
47935194 NN |
3980 | AR=$ac_ct_AR |
3981 | else | |
3982 | AR="$ac_cv_prog_AR" | |
3983 | fi | |
1530be84 | 3984 | |
47935194 NN |
3985 | if test -n "$ac_tool_prefix"; then |
3986 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
1530be84 | 3987 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
47935194 NN |
3988 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3989 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3990 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1530be84 TT |
3992 | else |
3993 | if test -n "$RANLIB"; then | |
3994 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3995 | else | |
47935194 NN |
3996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3997 | for as_dir in $PATH | |
3998 | do | |
3999 | IFS=$as_save_IFS | |
4000 | test -z "$as_dir" && as_dir=. | |
4001 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4002 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4003 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4004 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4005 | break 2 | |
4006 | fi | |
4007 | done | |
4008 | done | |
4009 | ||
1530be84 TT |
4010 | fi |
4011 | fi | |
47935194 | 4012 | RANLIB=$ac_cv_prog_RANLIB |
1530be84 | 4013 | if test -n "$RANLIB"; then |
47935194 NN |
4014 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
4015 | echo "${ECHO_T}$RANLIB" >&6 | |
1530be84 | 4016 | else |
47935194 NN |
4017 | echo "$as_me:$LINENO: result: no" >&5 |
4018 | echo "${ECHO_T}no" >&6 | |
1530be84 TT |
4019 | fi |
4020 | ||
47935194 | 4021 | fi |
1530be84 | 4022 | if test -z "$ac_cv_prog_RANLIB"; then |
47935194 | 4023 | ac_ct_RANLIB=$RANLIB |
1530be84 TT |
4024 | # Extract the first word of "ranlib", so it can be a program name with args. |
4025 | set dummy ranlib; ac_word=$2 | |
47935194 NN |
4026 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4027 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4028 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
4029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1530be84 | 4030 | else |
47935194 NN |
4031 | if test -n "$ac_ct_RANLIB"; then |
4032 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
1530be84 | 4033 | else |
47935194 NN |
4034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4035 | for as_dir in $PATH | |
4036 | do | |
4037 | IFS=$as_save_IFS | |
4038 | test -z "$as_dir" && as_dir=. | |
4039 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4040 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4041 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4042 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4043 | break 2 | |
4044 | fi | |
4045 | done | |
4046 | done | |
4047 | ||
4048 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
1530be84 TT |
4049 | fi |
4050 | fi | |
47935194 NN |
4051 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
4052 | if test -n "$ac_ct_RANLIB"; then | |
4053 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
4054 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
1530be84 | 4055 | else |
47935194 NN |
4056 | echo "$as_me:$LINENO: result: no" >&5 |
4057 | echo "${ECHO_T}no" >&6 | |
1530be84 TT |
4058 | fi |
4059 | ||
47935194 | 4060 | RANLIB=$ac_ct_RANLIB |
1530be84 | 4061 | else |
47935194 | 4062 | RANLIB="$ac_cv_prog_RANLIB" |
1530be84 TT |
4063 | fi |
4064 | ||
4065 | ||
4066 | # Find a good install program. We prefer a C program (faster), | |
4067 | # so one script is as good as another. But avoid the broken or | |
4068 | # incompatible versions: | |
4069 | # SysV /etc/install, /usr/sbin/install | |
4070 | # SunOS /usr/etc/install | |
4071 | # IRIX /sbin/install | |
4072 | # AIX /bin/install | |
47935194 | 4073 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
1530be84 TT |
4074 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
4075 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4076 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8ab705be | 4077 | # OS/2's system install, which has a completely different semantic |
1530be84 | 4078 | # ./install, which can be erroneously created by make from ./install.sh. |
38d24731 | 4079 | # Reject install programs that cannot install multiple files. |
47935194 NN |
4080 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
4081 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1530be84 | 4082 | if test -z "$INSTALL"; then |
47935194 NN |
4083 | if test "${ac_cv_path_install+set}" = set; then |
4084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1530be84 | 4085 | else |
47935194 NN |
4086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4087 | for as_dir in $PATH | |
4088 | do | |
4089 | IFS=$as_save_IFS | |
4090 | test -z "$as_dir" && as_dir=. | |
4091 | # Account for people who put trailing slashes in PATH elements. | |
4092 | case $as_dir/ in | |
4093 | ./ | .// | /cC/* | \ | |
4094 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
8ab705be | 4095 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
47935194 NN |
4096 | /usr/ucb/* ) ;; |
4097 | *) | |
4098 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4099 | # Don't use installbsd from OSF since it installs stuff as root | |
4100 | # by default. | |
4101 | for ac_prog in ginstall scoinst install; do | |
4102 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8ab705be KC |
4103 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
4104 | if test $ac_prog = install && | |
4105 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4106 | # AIX install. It has an incompatible calling convention. | |
4107 | : | |
4108 | elif test $ac_prog = install && | |
4109 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4110 | # program-specific install script used by HP pwplus--don't use. | |
4111 | : | |
4112 | else | |
38d24731 RW |
4113 | rm -rf conftest.one conftest.two conftest.dir |
4114 | echo one > conftest.one | |
4115 | echo two > conftest.two | |
4116 | mkdir conftest.dir | |
4117 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4118 | test -s conftest.one && test -s conftest.two && | |
4119 | test -s conftest.dir/conftest.one && | |
4120 | test -s conftest.dir/conftest.two | |
4121 | then | |
4122 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4123 | break 3 | |
4124 | fi | |
8ab705be KC |
4125 | fi |
4126 | fi | |
1530be84 | 4127 | done |
47935194 NN |
4128 | done |
4129 | ;; | |
4130 | esac | |
4131 | done | |
4132 | ||
38d24731 | 4133 | rm -rf conftest.one conftest.two conftest.dir |
1530be84 TT |
4134 | |
4135 | fi | |
4136 | if test "${ac_cv_path_install+set}" = set; then | |
47935194 | 4137 | INSTALL=$ac_cv_path_install |
1530be84 | 4138 | else |
38d24731 RW |
4139 | # As a last resort, use the slow shell script. Don't cache a |
4140 | # value for INSTALL within a source directory, because that will | |
1530be84 | 4141 | # break other packages using the cache if that directory is |
38d24731 | 4142 | # removed, or if the value is a relative name. |
47935194 | 4143 | INSTALL=$ac_install_sh |
1530be84 TT |
4144 | fi |
4145 | fi | |
47935194 NN |
4146 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
4147 | echo "${ECHO_T}$INSTALL" >&6 | |
1530be84 TT |
4148 | |
4149 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4150 | # It thinks the first close brace ends the variable substitution. | |
4151 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4152 | ||
47935194 | 4153 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
1530be84 TT |
4154 | |
4155 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4156 | ||
4157 | ||
47935194 NN |
4158 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
4159 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
1530be84 TT |
4160 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
4161 | if test "${enable_maintainer_mode+set}" = set; then | |
4162 | enableval="$enable_maintainer_mode" | |
4163 | USE_MAINTAINER_MODE=$enableval | |
4164 | else | |
4165 | USE_MAINTAINER_MODE=no | |
47935194 NN |
4166 | fi; |
4167 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
4168 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
1530be84 | 4169 | |
1530be84 TT |
4170 | |
4171 | if test $USE_MAINTAINER_MODE = yes; then | |
4172 | MAINTAINER_MODE_TRUE= | |
4173 | MAINTAINER_MODE_FALSE='#' | |
4174 | else | |
4175 | MAINTAINER_MODE_TRUE='#' | |
4176 | MAINTAINER_MODE_FALSE= | |
4177 | fi | |
bf9a420e | 4178 | |
1530be84 | 4179 | MAINT=$MAINTAINER_MODE_TRUE |
47935194 | 4180 | |
1530be84 TT |
4181 | |
4182 | ||
c3b48847 | 4183 | . ${srcdir}/configure.host |
1530be84 | 4184 | |
5a2586cf TT |
4185 | case ${gc_basedir} in |
4186 | /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;; | |
4187 | *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;; | |
1530be84 TT |
4188 | esac |
4189 | ||
4109fe85 | 4190 | gc_cflags="${gc_cflags} -Iinclude -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include" |
1530be84 TT |
4191 | case "${host}" in |
4192 | *-*-cygwin32*) | |
5a2586cf | 4193 | gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include" |
1530be84 TT |
4194 | ;; |
4195 | esac | |
4196 | ||
1530be84 | 4197 | |
5a2586cf | 4198 | GC_CFLAGS=${gc_cflags} |
1530be84 TT |
4199 | |
4200 | ||
93e92f52 PG |
4201 | case `pwd` in |
4202 | *\ * | *\ *) | |
4203 | { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
4204 | echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
4205 | esac | |
1cf3d07d SE |
4206 | |
4207 | ||
1cf3d07d | 4208 | |
93e92f52 PG |
4209 | macro_version='2.2.6' |
4210 | macro_revision='1.3012' | |
1cf3d07d SE |
4211 | |
4212 | ||
4213 | ||
4214 | ||
4215 | ||
4216 | ||
115dabb8 | 4217 | |
1cf3d07d SE |
4218 | |
4219 | ||
4220 | ||
4221 | ||
4222 | ||
4223 | ||
93e92f52 | 4224 | ltmain="$ac_aux_dir/ltmain.sh" |
1cf3d07d SE |
4225 | |
4226 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
4227 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | |
4228 | if test "${lt_cv_path_SED+set}" = set; then | |
4229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4230 | else | |
4231 | # Loop through the user's path and test for sed and gsed. | |
4232 | # Then use that list of sed's as ones to test for truncation. | |
4233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4234 | for as_dir in $PATH | |
4235 | do | |
4236 | IFS=$as_save_IFS | |
4237 | test -z "$as_dir" && as_dir=. | |
4238 | for lt_ac_prog in sed gsed; do | |
4239 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4240 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | |
4241 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | |
4242 | fi | |
4243 | done | |
4244 | done | |
4245 | done | |
4246 | IFS=$as_save_IFS | |
4247 | lt_ac_max=0 | |
4248 | lt_ac_count=0 | |
4249 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
4250 | # along with /bin/sed that truncates output. | |
4251 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
4252 | test ! -f $lt_ac_sed && continue | |
4253 | cat /dev/null > conftest.in | |
4254 | lt_ac_count=0 | |
4255 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
4256 | # Check for GNU sed and select it if it is found. | |
4257 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
4258 | lt_cv_path_SED=$lt_ac_sed | |
4259 | break | |
4260 | fi | |
4261 | while true; do | |
4262 | cat conftest.in conftest.in >conftest.tmp | |
4263 | mv conftest.tmp conftest.in | |
4264 | cp conftest.in conftest.nl | |
4265 | echo >>conftest.nl | |
4266 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
4267 | cmp -s conftest.out conftest.nl || break | |
4268 | # 10000 chars as input seems more than enough | |
4269 | test $lt_ac_count -gt 10 && break | |
4270 | lt_ac_count=`expr $lt_ac_count + 1` | |
4271 | if test $lt_ac_count -gt $lt_ac_max; then | |
4272 | lt_ac_max=$lt_ac_count | |
4273 | lt_cv_path_SED=$lt_ac_sed | |
4274 | fi | |
4275 | done | |
4276 | done | |
4277 | ||
4278 | fi | |
4279 | ||
4280 | SED=$lt_cv_path_SED | |
4281 | ||
4282 | echo "$as_me:$LINENO: result: $SED" >&5 | |
4283 | echo "${ECHO_T}$SED" >&6 | |
4284 | ||
4285 | test -z "$SED" && SED=sed | |
4286 | Xsed="$SED -e 1s/^X//" | |
4287 | ||
4288 | ||
4289 | ||
4290 | ||
4291 | ||
4292 | ||
4293 | ||
4294 | ||
4295 | ||
4296 | ||
4297 | ||
4298 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
4299 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
4300 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4302 | else | |
4303 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
4304 | then ac_cv_prog_egrep='grep -E' | |
4305 | else ac_cv_prog_egrep='egrep' | |
4306 | fi | |
4307 | fi | |
4308 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
4309 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
4310 | EGREP=$ac_cv_prog_egrep | |
4311 | ||
4312 | ||
4313 | echo "$as_me:$LINENO: checking for fgrep" >&5 | |
4314 | echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 | |
4315 | if test "${ac_cv_prog_fgrep+set}" = set; then | |
4316 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4317 | else | |
4318 | if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1 | |
4319 | then ac_cv_prog_fgrep='grep -F' | |
4320 | else ac_cv_prog_fgrep='fgrep' | |
4321 | fi | |
4322 | fi | |
4323 | echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5 | |
4324 | echo "${ECHO_T}$ac_cv_prog_fgrep" >&6 | |
4325 | FGREP=$ac_cv_prog_fgrep | |
4326 | ||
4327 | ||
4328 | test -z "$GREP" && GREP=grep | |
4329 | ||
4330 | ||
4331 | ||
4332 | ||
4333 | ||
4334 | ||
4335 | ||
4336 | ||
4337 | ||
4338 | ||
4339 | ||
4340 | ||
4341 | ||
4342 | ||
4343 | ||
4344 | ||
4345 | ||
4346 | ||
4347 | ||
66deb2be TT |
4348 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
4349 | if test "${with_gnu_ld+set}" = set; then | |
4350 | withval="$with_gnu_ld" | |
4351 | test "$withval" = no || with_gnu_ld=yes | |
4352 | else | |
4353 | with_gnu_ld=no | |
47935194 | 4354 | fi; |
66deb2be | 4355 | ac_prog=ld |
2d65a52e | 4356 | if test "$GCC" = yes; then |
66deb2be | 4357 | # Check if gcc -print-prog-name=ld gives a path. |
1cf3d07d SE |
4358 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
4359 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
2f7bf5b7 AO |
4360 | case $host in |
4361 | *-*-mingw*) | |
4362 | # gcc leaves a trailing carriage return which upsets mingw | |
4363 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4364 | *) | |
4365 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4366 | esac | |
2d65a52e | 4367 | case $ac_prog in |
115dabb8 | 4368 | # Accept absolute paths. |
1cf3d07d | 4369 | [\\/]* | ?:[\\/]*) |
115dabb8 | 4370 | re_direlt='/[^/][^/]*/\.\./' |
1cf3d07d SE |
4371 | # Canonicalize the pathname of ld |
4372 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4373 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4374 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
115dabb8 TT |
4375 | done |
4376 | test -z "$LD" && LD="$ac_prog" | |
4377 | ;; | |
66deb2be TT |
4378 | "") |
4379 | # If it fails, then pretend we aren't using GCC. | |
4380 | ac_prog=ld | |
4381 | ;; | |
4382 | *) | |
4383 | # If it is relative, then search for the first ld in PATH. | |
4384 | with_gnu_ld=unknown | |
4385 | ;; | |
4386 | esac | |
4387 | elif test "$with_gnu_ld" = yes; then | |
47935194 NN |
4388 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
4389 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
66deb2be | 4390 | else |
47935194 NN |
4391 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
4392 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
66deb2be | 4393 | fi |
47935194 NN |
4394 | if test "${lt_cv_path_LD+set}" = set; then |
4395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
66deb2be TT |
4396 | else |
4397 | if test -z "$LD"; then | |
1cf3d07d | 4398 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
66deb2be | 4399 | for ac_dir in $PATH; do |
1cf3d07d | 4400 | IFS="$lt_save_ifs" |
66deb2be | 4401 | test -z "$ac_dir" && ac_dir=. |
20bbd3cd | 4402 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
2d65a52e | 4403 | lt_cv_path_LD="$ac_dir/$ac_prog" |
66deb2be | 4404 | # Check to see if the program is GNU ld. I'd rather use --version, |
1cf3d07d | 4405 | # but apparently some variants of GNU ld only accept -v. |
66deb2be | 4406 | # Break only if it was the GNU/non-GNU ld that we prefer. |
1cf3d07d SE |
4407 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4408 | *GNU* | *'with BFD'*) | |
66deb2be | 4409 | test "$with_gnu_ld" != no && break |
1cf3d07d SE |
4410 | ;; |
4411 | *) | |
115dabb8 | 4412 | test "$with_gnu_ld" != yes && break |
1cf3d07d SE |
4413 | ;; |
4414 | esac | |
66deb2be TT |
4415 | fi |
4416 | done | |
1cf3d07d | 4417 | IFS="$lt_save_ifs" |
66deb2be | 4418 | else |
2d65a52e | 4419 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
66deb2be TT |
4420 | fi |
4421 | fi | |
4422 | ||
2d65a52e | 4423 | LD="$lt_cv_path_LD" |
66deb2be | 4424 | if test -n "$LD"; then |
47935194 NN |
4425 | echo "$as_me:$LINENO: result: $LD" >&5 |
4426 | echo "${ECHO_T}$LD" >&6 | |
66deb2be | 4427 | else |
47935194 NN |
4428 | echo "$as_me:$LINENO: result: no" >&5 |
4429 | echo "${ECHO_T}no" >&6 | |
4430 | fi | |
4431 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
4432 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
4433 | { (exit 1); exit 1; }; } | |
4434 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
4435 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
4436 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
4437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
66deb2be | 4438 | else |
1cf3d07d SE |
4439 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
4440 | case `$LD -v 2>&1 </dev/null` in | |
4441 | *GNU* | *'with BFD'*) | |
2d65a52e | 4442 | lt_cv_prog_gnu_ld=yes |
1cf3d07d SE |
4443 | ;; |
4444 | *) | |
2d65a52e | 4445 | lt_cv_prog_gnu_ld=no |
1cf3d07d SE |
4446 | ;; |
4447 | esac | |
66deb2be | 4448 | fi |
47935194 NN |
4449 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
4450 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
2d65a52e | 4451 | with_gnu_ld=$lt_cv_prog_gnu_ld |
2f7bf5b7 AO |
4452 | |
4453 | ||
66deb2be | 4454 | |
1cf3d07d SE |
4455 | |
4456 | ||
4457 | ||
4458 | ||
4459 | ||
4460 | ||
1cf3d07d SE |
4461 | echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 |
4462 | echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6 | |
47935194 NN |
4463 | if test "${lt_cv_path_NM+set}" = set; then |
4464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
66deb2be TT |
4465 | else |
4466 | if test -n "$NM"; then | |
4467 | # Let the user override the test. | |
2d65a52e | 4468 | lt_cv_path_NM="$NM" |
66deb2be | 4469 | else |
1cf3d07d SE |
4470 | lt_nm_to_check="${ac_tool_prefix}nm" |
4471 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4472 | lt_nm_to_check="$lt_nm_to_check nm" | |
4473 | fi | |
4474 | for lt_tmp_nm in $lt_nm_to_check; do | |
4475 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4476 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4477 | IFS="$lt_save_ifs" | |
4478 | test -z "$ac_dir" && ac_dir=. | |
4479 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
4480 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4481 | # Check to see if the nm accepts a BSD-compat flag. | |
4482 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4483 | # nm: unknown option "B" ignored | |
4484 | # Tru64's nm complains that /dev/null is an invalid object file | |
4485 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4486 | */dev/null* | *'Invalid file or object type'*) | |
4487 | lt_cv_path_NM="$tmp_nm -B" | |
4488 | break | |
4489 | ;; | |
4490 | *) | |
4491 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4492 | */dev/null*) | |
4493 | lt_cv_path_NM="$tmp_nm -p" | |
4494 | break | |
4495 | ;; | |
4496 | *) | |
4497 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4498 | continue # so that we can try to find one that supports BSD flags | |
4499 | ;; | |
4500 | esac | |
4501 | ;; | |
4502 | esac | |
4503 | fi | |
4504 | done | |
4505 | IFS="$lt_save_ifs" | |
4506 | done | |
4507 | : ${lt_cv_path_NM=no} | |
4508 | fi | |
4509 | fi | |
4510 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | |
4511 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | |
4512 | if test "$lt_cv_path_NM" != "no"; then | |
4513 | NM="$lt_cv_path_NM" | |
4514 | else | |
4515 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
4516 | if test -n "$ac_tool_prefix"; then | |
4517 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4518 | do | |
4519 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4520 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4521 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4522 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4523 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then | |
4524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4525 | else | |
4526 | if test -n "$DUMPBIN"; then | |
4527 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4528 | else | |
4529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4530 | for as_dir in $PATH | |
4531 | do | |
4532 | IFS=$as_save_IFS | |
4533 | test -z "$as_dir" && as_dir=. | |
4534 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4535 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4536 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
4537 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4538 | break 2 | |
4539 | fi | |
4540 | done | |
4541 | done | |
4542 | ||
4543 | fi | |
4544 | fi | |
4545 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4546 | if test -n "$DUMPBIN"; then | |
4547 | echo "$as_me:$LINENO: result: $DUMPBIN" >&5 | |
4548 | echo "${ECHO_T}$DUMPBIN" >&6 | |
4549 | else | |
4550 | echo "$as_me:$LINENO: result: no" >&5 | |
4551 | echo "${ECHO_T}no" >&6 | |
4552 | fi | |
4553 | ||
4554 | test -n "$DUMPBIN" && break | |
4555 | done | |
4556 | fi | |
4557 | if test -z "$DUMPBIN"; then | |
4558 | ac_ct_DUMPBIN=$DUMPBIN | |
4559 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4560 | do | |
4561 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4562 | set dummy $ac_prog; ac_word=$2 | |
4563 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4564 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4565 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then | |
4566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4567 | else | |
4568 | if test -n "$ac_ct_DUMPBIN"; then | |
4569 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4570 | else | |
4571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4572 | for as_dir in $PATH | |
4573 | do | |
4574 | IFS=$as_save_IFS | |
4575 | test -z "$as_dir" && as_dir=. | |
4576 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4577 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4578 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
4579 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4580 | break 2 | |
4581 | fi | |
4582 | done | |
4583 | done | |
4584 | ||
4585 | fi | |
66deb2be | 4586 | fi |
1cf3d07d SE |
4587 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
4588 | if test -n "$ac_ct_DUMPBIN"; then | |
4589 | echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 | |
4590 | echo "${ECHO_T}$ac_ct_DUMPBIN" >&6 | |
4591 | else | |
4592 | echo "$as_me:$LINENO: result: no" >&5 | |
4593 | echo "${ECHO_T}no" >&6 | |
4594 | fi | |
4595 | ||
4596 | test -n "$ac_ct_DUMPBIN" && break | |
4597 | done | |
4598 | test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":" | |
4599 | ||
4600 | DUMPBIN=$ac_ct_DUMPBIN | |
4601 | fi | |
4602 | ||
4603 | ||
4604 | if test "$DUMPBIN" != ":"; then | |
4605 | NM="$DUMPBIN" | |
4606 | fi | |
66deb2be | 4607 | fi |
1cf3d07d SE |
4608 | test -z "$NM" && NM=nm |
4609 | ||
4610 | ||
4611 | ||
4612 | ||
4613 | ||
66deb2be | 4614 | |
1cf3d07d SE |
4615 | echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 |
4616 | echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6 | |
4617 | if test "${lt_cv_nm_interface+set}" = set; then | |
4618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4619 | else | |
4620 | lt_cv_nm_interface="BSD nm" | |
4621 | echo "int some_variable = 0;" > conftest.$ac_ext | |
93e92f52 | 4622 | (eval echo "\"\$as_me:4622: $ac_compile\"" >&5) |
1cf3d07d SE |
4623 | (eval "$ac_compile" 2>conftest.err) |
4624 | cat conftest.err >&5 | |
93e92f52 | 4625 | (eval echo "\"\$as_me:4625: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
1cf3d07d SE |
4626 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4627 | cat conftest.err >&5 | |
93e92f52 | 4628 | (eval echo "\"\$as_me:4628: output\"" >&5) |
1cf3d07d SE |
4629 | cat conftest.out >&5 |
4630 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4631 | lt_cv_nm_interface="MS dumpbin" | |
4632 | fi | |
4633 | rm -f conftest* | |
4634 | fi | |
4635 | echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 | |
4636 | echo "${ECHO_T}$lt_cv_nm_interface" >&6 | |
47935194 NN |
4637 | |
4638 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
4639 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
4640 | LN_S=$as_ln_s | |
4641 | if test "$LN_S" = "ln -s"; then | |
4642 | echo "$as_me:$LINENO: result: yes" >&5 | |
4643 | echo "${ECHO_T}yes" >&6 | |
66deb2be | 4644 | else |
47935194 NN |
4645 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
4646 | echo "${ECHO_T}no, using $LN_S" >&6 | |
66deb2be TT |
4647 | fi |
4648 | ||
1cf3d07d SE |
4649 | # find the maximum length of command line arguments |
4650 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
4651 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
4652 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
4653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4654 | else | |
4655 | i=0 | |
4656 | teststring="ABCD" | |
4657 | ||
4658 | case $build_os in | |
4659 | msdosdjgpp*) | |
4660 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4661 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4662 | # during glob expansion). Even if it were fixed, the result of this | |
4663 | # check would be larger than it should be. | |
4664 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4665 | ;; | |
4666 | ||
4667 | gnu*) | |
4668 | # Under GNU Hurd, this test is not required because there is | |
4669 | # no limit to the length of command line arguments. | |
4670 | # Libtool will interpret -1 as no limit whatsoever | |
4671 | lt_cv_sys_max_cmd_len=-1; | |
4672 | ;; | |
4673 | ||
93e92f52 | 4674 | cygwin* | mingw* | cegcc*) |
1cf3d07d SE |
4675 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
4676 | # about 5 minutes as the teststring grows exponentially. | |
4677 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4678 | # you end up with a "frozen" computer, even though with patience | |
4679 | # the test eventually succeeds (with a max line length of 256k). | |
4680 | # Instead, let's just punt: use the minimum linelength reported by | |
4681 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4682 | lt_cv_sys_max_cmd_len=8192; | |
4683 | ;; | |
4684 | ||
4685 | amigaos*) | |
4686 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4687 | # So we just punt and use a minimum line length of 8192. | |
4688 | lt_cv_sys_max_cmd_len=8192; | |
4689 | ;; | |
4690 | ||
4691 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
4692 | # This has been around since 386BSD, at least. Likely further. | |
4693 | if test -x /sbin/sysctl; then | |
4694 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4695 | elif test -x /usr/sbin/sysctl; then | |
4696 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4697 | else | |
4698 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4699 | fi | |
4700 | # And add a safety zone | |
4701 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4702 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4703 | ;; | |
4704 | ||
4705 | interix*) | |
4706 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4707 | lt_cv_sys_max_cmd_len=196608 | |
4708 | ;; | |
4709 | ||
4710 | osf*) | |
4711 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4712 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4713 | # nice to cause kernel panics so lets avoid the loop below. | |
4714 | # First set a reasonable default. | |
4715 | lt_cv_sys_max_cmd_len=16384 | |
4716 | # | |
4717 | if test -x /sbin/sysconfig; then | |
4718 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4719 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4720 | esac | |
4721 | fi | |
4722 | ;; | |
4723 | sco3.2v5*) | |
4724 | lt_cv_sys_max_cmd_len=102400 | |
4725 | ;; | |
4726 | sysv5* | sco5v6* | sysv4.2uw2*) | |
4727 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4728 | if test -n "$kargmax"; then | |
4729 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4730 | else | |
4731 | lt_cv_sys_max_cmd_len=32768 | |
4732 | fi | |
4733 | ;; | |
4734 | *) | |
93e92f52 PG |
4735 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
4736 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
82a6cadf PB |
4737 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
4738 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4739 | else | |
4740 | # Make teststring a little bigger before we do anything with it. | |
4741 | # a 1K string should be a reasonable start. | |
4742 | for i in 1 2 3 4 5 6 7 8 ; do | |
4743 | teststring=$teststring$teststring | |
4744 | done | |
4745 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4746 | # If test is not a shell built-in, we'll probably end up computing a | |
4747 | # maximum length that is only half of the actual maximum length, but | |
4748 | # we can't tell. | |
4749 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
4750 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
4751 | test $i != 17 # 1/2 MB should be enough | |
4752 | do | |
4753 | i=`expr $i + 1` | |
4754 | teststring=$teststring$teststring | |
4755 | done | |
4756 | # Only check the string length outside the loop. | |
4757 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4758 | teststring= | |
4759 | # Add a significant safety factor because C++ compilers can tack on | |
4760 | # massive amounts of additional arguments before passing them to the | |
4761 | # linker. It appears as though 1/2 is a usable value. | |
4762 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4763 | fi | |
1cf3d07d SE |
4764 | ;; |
4765 | esac | |
4766 | ||
4767 | fi | |
4768 | ||
4769 | if test -n $lt_cv_sys_max_cmd_len ; then | |
4770 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
4771 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
4772 | else | |
4773 | echo "$as_me:$LINENO: result: none" >&5 | |
4774 | echo "${ECHO_T}none" >&6 | |
4775 | fi | |
4776 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
4777 | ||
4778 | ||
4779 | ||
4780 | ||
4781 | ||
4782 | ||
1cf3d07d SE |
4783 | : ${CP="cp -f"} |
4784 | : ${MV="mv -f"} | |
4785 | : ${RM="rm -f"} | |
4786 | ||
4787 | echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 | |
4788 | echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6 | |
4789 | # Try some XSI features | |
4790 | xsi_shell=no | |
4791 | ( _lt_dummy="a/b/c" | |
4792 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
93e92f52 PG |
4793 | = c,a/b,, \ |
4794 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
4795 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
1cf3d07d SE |
4796 | && xsi_shell=yes |
4797 | echo "$as_me:$LINENO: result: $xsi_shell" >&5 | |
4798 | echo "${ECHO_T}$xsi_shell" >&6 | |
4799 | ||
4800 | ||
4801 | echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 | |
4802 | echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6 | |
4803 | lt_shell_append=no | |
4804 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4805 | >/dev/null 2>&1 \ | |
4806 | && lt_shell_append=yes | |
4807 | echo "$as_me:$LINENO: result: $lt_shell_append" >&5 | |
4808 | echo "${ECHO_T}$lt_shell_append" >&6 | |
4809 | ||
4810 | ||
4811 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
4812 | lt_unset=unset | |
4813 | else | |
4814 | lt_unset=false | |
4815 | fi | |
4816 | ||
4817 | ||
4818 | ||
4819 | ||
4820 | ||
4821 | # test EBCDIC or ASCII | |
4822 | case `echo X|tr X '\101'` in | |
4823 | A) # ASCII based system | |
4824 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4825 | lt_SP2NL='tr \040 \012' | |
4826 | lt_NL2SP='tr \015\012 \040\040' | |
4827 | ;; | |
4828 | *) # EBCDIC based system | |
4829 | lt_SP2NL='tr \100 \n' | |
4830 | lt_NL2SP='tr \r\n \100\100' | |
4831 | ;; | |
4832 | esac | |
4833 | ||
4834 | ||
4835 | ||
4836 | ||
4837 | ||
4838 | ||
4839 | ||
4840 | ||
4841 | ||
4842 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
4843 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
4844 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
4845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4846 | else | |
4847 | lt_cv_ld_reload_flag='-r' | |
4848 | fi | |
4849 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
4850 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
4851 | reload_flag=$lt_cv_ld_reload_flag | |
4852 | case $reload_flag in | |
4853 | "" | " "*) ;; | |
4854 | *) reload_flag=" $reload_flag" ;; | |
4855 | esac | |
4856 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4857 | case $host_os in | |
4858 | darwin*) | |
4859 | if test "$GCC" = yes; then | |
4860 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4861 | else | |
4862 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4863 | fi | |
4864 | ;; | |
4865 | esac | |
4866 | ||
4867 | ||
4868 | ||
4869 | ||
4870 | ||
4871 | ||
4872 | ||
4873 | ||
4874 | ||
93e92f52 PG |
4875 | if test -n "$ac_tool_prefix"; then |
4876 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
4877 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
4878 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4879 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4880 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then | |
4881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4882 | else | |
4883 | if test -n "$OBJDUMP"; then | |
4884 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
4885 | else | |
4886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4887 | for as_dir in $PATH | |
4888 | do | |
4889 | IFS=$as_save_IFS | |
4890 | test -z "$as_dir" && as_dir=. | |
4891 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4892 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4893 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
4894 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4895 | break 2 | |
4896 | fi | |
4897 | done | |
4898 | done | |
4899 | ||
4900 | fi | |
4901 | fi | |
4902 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
4903 | if test -n "$OBJDUMP"; then | |
4904 | echo "$as_me:$LINENO: result: $OBJDUMP" >&5 | |
4905 | echo "${ECHO_T}$OBJDUMP" >&6 | |
4906 | else | |
4907 | echo "$as_me:$LINENO: result: no" >&5 | |
4908 | echo "${ECHO_T}no" >&6 | |
4909 | fi | |
4910 | ||
4911 | fi | |
4912 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
4913 | ac_ct_OBJDUMP=$OBJDUMP | |
4914 | # Extract the first word of "objdump", so it can be a program name with args. | |
4915 | set dummy objdump; ac_word=$2 | |
4916 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4917 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4918 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then | |
4919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4920 | else | |
4921 | if test -n "$ac_ct_OBJDUMP"; then | |
4922 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
4923 | else | |
4924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4925 | for as_dir in $PATH | |
4926 | do | |
4927 | IFS=$as_save_IFS | |
4928 | test -z "$as_dir" && as_dir=. | |
4929 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4930 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4931 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
4932 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4933 | break 2 | |
4934 | fi | |
4935 | done | |
4936 | done | |
4937 | ||
4938 | test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false" | |
4939 | fi | |
4940 | fi | |
4941 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
4942 | if test -n "$ac_ct_OBJDUMP"; then | |
4943 | echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 | |
4944 | echo "${ECHO_T}$ac_ct_OBJDUMP" >&6 | |
4945 | else | |
4946 | echo "$as_me:$LINENO: result: no" >&5 | |
4947 | echo "${ECHO_T}no" >&6 | |
4948 | fi | |
4949 | ||
4950 | OBJDUMP=$ac_ct_OBJDUMP | |
4951 | else | |
4952 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
4953 | fi | |
4954 | ||
4955 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
4956 | ||
4957 | ||
4958 | ||
4959 | ||
4960 | ||
4961 | ||
4962 | ||
4963 | ||
1cf3d07d SE |
4964 | |
4965 | echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 | |
4966 | echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6 | |
47935194 NN |
4967 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
4968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2f7bf5b7 | 4969 | else |
5f527203 | 4970 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
2f7bf5b7 AO |
4971 | lt_cv_file_magic_test_file= |
4972 | lt_cv_deplibs_check_method='unknown' | |
4973 | # Need to set the preceding variable on all platforms that support | |
4974 | # interlibrary dependencies. | |
4975 | # 'none' -- dependencies not supported. | |
4976 | # `unknown' -- same as none, but documents that we really don't know. | |
4977 | # 'pass_all' -- all dependencies passed with no checks. | |
4978 | # 'test_compile' -- check by making test program. | |
1cf3d07d SE |
4979 | # 'file_magic [[regex]]' -- check by looking for files in library path |
4980 | # which responds to the $file_magic_cmd with a given extended regex. | |
2f7bf5b7 AO |
4981 | # If you have `file' or equivalent on your system and you're not sure |
4982 | # whether `pass_all' will *always* work, you probably want this one. | |
4983 | ||
2d65a52e | 4984 | case $host_os in |
f3641e7e | 4985 | aix[4-9]*) |
2f7bf5b7 AO |
4986 | lt_cv_deplibs_check_method=pass_all |
4987 | ;; | |
4988 | ||
4989 | beos*) | |
4990 | lt_cv_deplibs_check_method=pass_all | |
4991 | ;; | |
4992 | ||
1cf3d07d | 4993 | bsdi[45]*) |
2d65a52e AO |
4994 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
4995 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
2f7bf5b7 AO |
4996 | lt_cv_file_magic_test_file=/shlib/libc.so |
4997 | ;; | |
4998 | ||
1cf3d07d SE |
4999 | cygwin*) |
5000 | # func_win32_libid is a shell function defined in ltmain.sh | |
5001 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5002 | lt_cv_file_magic_cmd='func_win32_libid' | |
5003 | ;; | |
5004 | ||
5005 | mingw* | pw32*) | |
5006 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5007 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5008 | # unless we find 'file', for example because we are cross-compiling. | |
5009 | if ( file / ) >/dev/null 2>&1; then | |
5010 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5011 | lt_cv_file_magic_cmd='func_win32_libid' | |
5012 | else | |
5013 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
5014 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5015 | fi | |
2f7bf5b7 AO |
5016 | ;; |
5017 | ||
93e92f52 PG |
5018 | cegcc) |
5019 | # use the weaker test based on 'objdump'. See mingw*. | |
5020 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5021 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5022 | ;; | |
5023 | ||
2d65a52e | 5024 | darwin* | rhapsody*) |
b27317b5 | 5025 | lt_cv_deplibs_check_method=pass_all |
2d65a52e AO |
5026 | ;; |
5027 | ||
1cf3d07d SE |
5028 | freebsd* | dragonfly*) |
5029 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
2d65a52e | 5030 | case $host_cpu in |
2f7bf5b7 AO |
5031 | i*86 ) |
5032 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5033 | # Let's accept both of them until this is cleared up. | |
1cf3d07d | 5034 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
2d65a52e | 5035 | lt_cv_file_magic_cmd=/usr/bin/file |
2f7bf5b7 AO |
5036 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
5037 | ;; | |
5038 | esac | |
5039 | else | |
5040 | lt_cv_deplibs_check_method=pass_all | |
5041 | fi | |
5042 | ;; | |
5043 | ||
5044 | gnu*) | |
5045 | lt_cv_deplibs_check_method=pass_all | |
5046 | ;; | |
5047 | ||
1cf3d07d SE |
5048 | hpux10.20* | hpux11*) |
5049 | lt_cv_file_magic_cmd=/usr/bin/file | |
f5cc59a7 | 5050 | case $host_cpu in |
f5cc59a7 AO |
5051 | ia64*) |
5052 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
f5cc59a7 AO |
5053 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
5054 | ;; | |
1cf3d07d SE |
5055 | hppa*64*) |
5056 | 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]' | |
5057 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
2f7bf5b7 AO |
5058 | ;; |
5059 | *) | |
1cf3d07d SE |
5060 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
5061 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
2d65a52e | 5062 | ;; |
2f7bf5b7 | 5063 | esac |
1cf3d07d SE |
5064 | ;; |
5065 | ||
5066 | interix[3-9]*) | |
5067 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5068 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5069 | ;; | |
5070 | ||
5071 | irix5* | irix6* | nonstopux*) | |
5072 | case $LD in | |
5073 | *-32|*"-32 ") libmagic=32-bit;; | |
5074 | *-n32|*"-n32 ") libmagic=N32;; | |
5075 | *-64|*"-64 ") libmagic=64-bit;; | |
5076 | *) libmagic=never-match;; | |
5077 | esac | |
2f7bf5b7 AO |
5078 | lt_cv_deplibs_check_method=pass_all |
5079 | ;; | |
5080 | ||
5081 | # This must be Linux ELF. | |
1cf3d07d | 5082 | linux* | k*bsd*-gnu) |
76ecaf09 | 5083 | lt_cv_deplibs_check_method=pass_all |
2f7bf5b7 AO |
5084 | ;; |
5085 | ||
1cf3d07d SE |
5086 | netbsd*) |
5087 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5088 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
2f7bf5b7 | 5089 | else |
1cf3d07d | 5090 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
2f7bf5b7 AO |
5091 | fi |
5092 | ;; | |
5093 | ||
1cf3d07d | 5094 | newos6*) |
2d65a52e AO |
5095 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
5096 | lt_cv_file_magic_cmd=/usr/bin/file | |
5097 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5098 | ;; | |
5099 | ||
1cf3d07d SE |
5100 | *nto* | *qnx*) |
5101 | lt_cv_deplibs_check_method=pass_all | |
5102 | ;; | |
5103 | ||
5104 | openbsd*) | |
5105 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5106 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5107 | else | |
5108 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5109 | fi | |
5110 | ;; | |
5111 | ||
2f7bf5b7 | 5112 | osf3* | osf4* | osf5*) |
2f7bf5b7 AO |
5113 | lt_cv_deplibs_check_method=pass_all |
5114 | ;; | |
66deb2be | 5115 | |
1cf3d07d | 5116 | rdos*) |
2f7bf5b7 AO |
5117 | lt_cv_deplibs_check_method=pass_all |
5118 | ;; | |
5119 | ||
5120 | solaris*) | |
5121 | lt_cv_deplibs_check_method=pass_all | |
2f7bf5b7 AO |
5122 | ;; |
5123 | ||
1cf3d07d | 5124 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
33456445 AO |
5125 | lt_cv_deplibs_check_method=pass_all |
5126 | ;; | |
5127 | ||
1cf3d07d | 5128 | sysv4 | sysv4.3*) |
2d65a52e | 5129 | case $host_vendor in |
2f7bf5b7 | 5130 | motorola) |
2d65a52e AO |
5131 | 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]' |
5132 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
2f7bf5b7 | 5133 | ;; |
1cf3d07d SE |
5134 | ncr) |
5135 | lt_cv_deplibs_check_method=pass_all | |
5136 | ;; | |
5137 | sequent) | |
5138 | lt_cv_file_magic_cmd='/bin/file' | |
5139 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5140 | ;; | |
5141 | sni) | |
5142 | lt_cv_file_magic_cmd='/bin/file' | |
5143 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5144 | lt_cv_file_magic_test_file=/lib/libc.so | |
5145 | ;; | |
5146 | siemens) | |
5147 | lt_cv_deplibs_check_method=pass_all | |
5148 | ;; | |
5149 | pc) | |
5150 | lt_cv_deplibs_check_method=pass_all | |
5151 | ;; | |
2f7bf5b7 AO |
5152 | esac |
5153 | ;; | |
1cf3d07d SE |
5154 | |
5155 | tpf*) | |
5156 | lt_cv_deplibs_check_method=pass_all | |
5157 | ;; | |
2f7bf5b7 AO |
5158 | esac |
5159 | ||
5160 | fi | |
47935194 NN |
5161 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
5162 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
2f7bf5b7 AO |
5163 | file_magic_cmd=$lt_cv_file_magic_cmd |
5164 | deplibs_check_method=$lt_cv_deplibs_check_method | |
1cf3d07d | 5165 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
2f7bf5b7 | 5166 | |
2f7bf5b7 | 5167 | |
47935194 | 5168 | |
2f7bf5b7 | 5169 | |
413580dc | 5170 | |
2f7bf5b7 | 5171 | |
2f7bf5b7 | 5172 | |
2f7bf5b7 | 5173 | |
2f7bf5b7 | 5174 | |
2f7bf5b7 | 5175 | |
2f7bf5b7 | 5176 | |
2f7bf5b7 | 5177 | |
47935194 | 5178 | if test -n "$ac_tool_prefix"; then |
1cf3d07d SE |
5179 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
5180 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
47935194 NN |
5181 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5182 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1cf3d07d | 5183 | if test "${ac_cv_prog_AR+set}" = set; then |
47935194 | 5184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f7bf5b7 | 5185 | else |
1cf3d07d SE |
5186 | if test -n "$AR"; then |
5187 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
2f7bf5b7 | 5188 | else |
47935194 NN |
5189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5190 | for as_dir in $PATH | |
5191 | do | |
5192 | IFS=$as_save_IFS | |
5193 | test -z "$as_dir" && as_dir=. | |
5194 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5195 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1cf3d07d | 5196 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
47935194 NN |
5197 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5198 | break 2 | |
5199 | fi | |
5200 | done | |
5201 | done | |
5202 | ||
2f7bf5b7 AO |
5203 | fi |
5204 | fi | |
1cf3d07d SE |
5205 | AR=$ac_cv_prog_AR |
5206 | if test -n "$AR"; then | |
5207 | echo "$as_me:$LINENO: result: $AR" >&5 | |
5208 | echo "${ECHO_T}$AR" >&6 | |
2f7bf5b7 | 5209 | else |
47935194 NN |
5210 | echo "$as_me:$LINENO: result: no" >&5 |
5211 | echo "${ECHO_T}no" >&6 | |
2f7bf5b7 AO |
5212 | fi |
5213 | ||
47935194 | 5214 | fi |
1cf3d07d SE |
5215 | if test -z "$ac_cv_prog_AR"; then |
5216 | ac_ct_AR=$AR | |
5217 | # Extract the first word of "ar", so it can be a program name with args. | |
5218 | set dummy ar; ac_word=$2 | |
47935194 NN |
5219 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5220 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1cf3d07d | 5221 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
47935194 | 5222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2f7bf5b7 | 5223 | else |
1cf3d07d SE |
5224 | if test -n "$ac_ct_AR"; then |
5225 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
2f7bf5b7 | 5226 | else |
47935194 NN |
5227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5228 | for as_dir in $PATH | |
5229 | do | |
5230 | IFS=$as_save_IFS | |
5231 | test -z "$as_dir" && as_dir=. | |
5232 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5233 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1cf3d07d | 5234 | ac_cv_prog_ac_ct_AR="ar" |
47935194 NN |
5235 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5236 | break 2 | |
5237 | fi | |
5238 | done | |
5239 | done | |
5240 | ||
1cf3d07d | 5241 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
2f7bf5b7 AO |
5242 | fi |
5243 | fi | |
1cf3d07d SE |
5244 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5245 | if test -n "$ac_ct_AR"; then | |
5246 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
5247 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
2f7bf5b7 | 5248 | else |
47935194 NN |
5249 | echo "$as_me:$LINENO: result: no" >&5 |
5250 | echo "${ECHO_T}no" >&6 | |
2f7bf5b7 AO |
5251 | fi |
5252 | ||
1cf3d07d | 5253 | AR=$ac_ct_AR |
2f7bf5b7 | 5254 | else |
1cf3d07d | 5255 | AR="$ac_cv_prog_AR" |
2f7bf5b7 AO |
5256 | fi |
5257 | ||
1cf3d07d SE |
5258 | test -z "$AR" && AR=ar |
5259 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
5260 | ||
5261 | ||
5262 | ||
5263 | ||
5264 | ||
5265 | ||
5266 | ||
5267 | ||
5268 | ||
5269 | ||
5270 | ||
47935194 NN |
5271 | if test -n "$ac_tool_prefix"; then |
5272 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2f7bf5b7 | 5273 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
47935194 NN |
5274 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5275 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5276 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
5277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2f7bf5b7 AO |
5278 | else |
5279 | if test -n "$STRIP"; then | |
5280 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5281 | else | |
47935194 NN |
5282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5283 | for as_dir in $PATH | |
5284 | do | |
5285 | IFS=$as_save_IFS | |
5286 | test -z "$as_dir" && as_dir=. | |
5287 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5288 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5289 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
5290 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5291 | break 2 | |
5292 | fi | |
5293 | done | |
5294 | done | |
5295 | ||
2f7bf5b7 AO |
5296 | fi |
5297 | fi | |
47935194 | 5298 | STRIP=$ac_cv_prog_STRIP |
2f7bf5b7 | 5299 | if test -n "$STRIP"; then |
47935194 NN |
5300 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
5301 | echo "${ECHO_T}$STRIP" >&6 | |
2f7bf5b7 | 5302 | else |
47935194 NN |
5303 | echo "$as_me:$LINENO: result: no" >&5 |
5304 | echo "${ECHO_T}no" >&6 | |
2f7bf5b7 AO |
5305 | fi |
5306 | ||
47935194 | 5307 | fi |
2f7bf5b7 | 5308 | if test -z "$ac_cv_prog_STRIP"; then |
47935194 | 5309 | ac_ct_STRIP=$STRIP |
2f7bf5b7 AO |
5310 | # Extract the first word of "strip", so it can be a program name with args. |
5311 | set dummy strip; ac_word=$2 | |
47935194 NN |
5312 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5313 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5314 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
5315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2f7bf5b7 | 5316 | else |
47935194 NN |
5317 | if test -n "$ac_ct_STRIP"; then |
5318 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2f7bf5b7 | 5319 | else |
47935194 NN |
5320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5321 | for as_dir in $PATH | |
5322 | do | |
5323 | IFS=$as_save_IFS | |
5324 | test -z "$as_dir" && as_dir=. | |
5325 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5326 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5327 | ac_cv_prog_ac_ct_STRIP="strip" | |
5328 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5329 | break 2 | |
5330 | fi | |
5331 | done | |
5332 | done | |
5333 | ||
5334 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
2f7bf5b7 AO |
5335 | fi |
5336 | fi | |
47935194 NN |
5337 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
5338 | if test -n "$ac_ct_STRIP"; then | |
5339 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
5340 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
2f7bf5b7 | 5341 | else |
47935194 NN |
5342 | echo "$as_me:$LINENO: result: no" >&5 |
5343 | echo "${ECHO_T}no" >&6 | |
2f7bf5b7 AO |
5344 | fi |
5345 | ||
47935194 | 5346 | STRIP=$ac_ct_STRIP |
2f7bf5b7 | 5347 | else |
47935194 | 5348 | STRIP="$ac_cv_prog_STRIP" |
2f7bf5b7 AO |
5349 | fi |
5350 | ||
1cf3d07d | 5351 | test -z "$STRIP" && STRIP=: |
70635f1e | 5352 | |
66deb2be | 5353 | |
20bbd3cd | 5354 | |
20bbd3cd | 5355 | |
47935194 | 5356 | |
2f7bf5b7 | 5357 | |
1cf3d07d SE |
5358 | if test -n "$ac_tool_prefix"; then |
5359 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5360 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5361 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5362 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5363 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5365 | else | |
5366 | if test -n "$RANLIB"; then | |
5367 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5368 | else | |
5369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5370 | for as_dir in $PATH | |
5371 | do | |
5372 | IFS=$as_save_IFS | |
5373 | test -z "$as_dir" && as_dir=. | |
5374 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5375 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5376 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5377 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5378 | break 2 | |
5379 | fi | |
5380 | done | |
5381 | done | |
5382 | ||
5383 | fi | |
5384 | fi | |
5385 | RANLIB=$ac_cv_prog_RANLIB | |
5386 | if test -n "$RANLIB"; then | |
5387 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
5388 | echo "${ECHO_T}$RANLIB" >&6 | |
5389 | else | |
5390 | echo "$as_me:$LINENO: result: no" >&5 | |
5391 | echo "${ECHO_T}no" >&6 | |
5392 | fi | |
5393 | ||
5394 | fi | |
5395 | if test -z "$ac_cv_prog_RANLIB"; then | |
5396 | ac_ct_RANLIB=$RANLIB | |
5397 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5398 | set dummy ranlib; ac_word=$2 | |
5399 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5400 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5401 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5403 | else | |
5404 | if test -n "$ac_ct_RANLIB"; then | |
5405 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5406 | else | |
5407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5408 | for as_dir in $PATH | |
5409 | do | |
5410 | IFS=$as_save_IFS | |
5411 | test -z "$as_dir" && as_dir=. | |
5412 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5413 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5414 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5415 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5416 | break 2 | |
5417 | fi | |
5418 | done | |
5419 | done | |
5420 | ||
5421 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
5422 | fi | |
5423 | fi | |
5424 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5425 | if test -n "$ac_ct_RANLIB"; then | |
5426 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5427 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
5428 | else | |
5429 | echo "$as_me:$LINENO: result: no" >&5 | |
5430 | echo "${ECHO_T}no" >&6 | |
5431 | fi | |
5432 | ||
5433 | RANLIB=$ac_ct_RANLIB | |
5434 | else | |
5435 | RANLIB="$ac_cv_prog_RANLIB" | |
5436 | fi | |
5437 | ||
5438 | test -z "$RANLIB" && RANLIB=: | |
5439 | ||
5440 | ||
5441 | ||
5442 | ||
5443 | ||
5444 | ||
5445 | # Determine commands to create old-style static archives. | |
93e92f52 | 5446 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
1cf3d07d SE |
5447 | old_postinstall_cmds='chmod 644 $oldlib' |
5448 | old_postuninstall_cmds= | |
5449 | ||
5450 | if test -n "$RANLIB"; then | |
5451 | case $host_os in | |
5452 | openbsd*) | |
5453 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
5454 | ;; | |
5455 | *) | |
5456 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
5457 | ;; | |
5458 | esac | |
5459 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
5460 | fi | |
5461 | ||
5462 | ||
5463 | ||
5464 | ||
5465 | ||
5466 | ||
5467 | ||
5468 | ||
5469 | ||
5470 | ||
5471 | ||
5472 | ||
5473 | ||
5474 | ||
5475 | ||
5476 | ||
5477 | ||
5478 | ||
5479 | ||
5480 | ||
5481 | ||
5482 | ||
5483 | ||
5484 | ||
5485 | ||
5486 | ||
5487 | ||
5488 | ||
5489 | ||
5490 | ||
5491 | ||
5492 | ||
5493 | ||
5494 | ||
5495 | # If no C compiler was specified, use CC. | |
5496 | LTCC=${LTCC-"$CC"} | |
5497 | ||
5498 | # If no C compiler flags were specified, use CFLAGS. | |
5499 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
5500 | ||
5501 | # Allow CC to be a program name with arguments. | |
5502 | compiler=$CC | |
5503 | ||
5504 | ||
5505 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5506 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
5507 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | |
5508 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
5509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5510 | else | |
5511 | ||
5512 | # These are sane defaults that work on at least a few old systems. | |
5513 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5514 | ||
5515 | # Character class describing NM global symbol codes. | |
5516 | symcode='[BCDEGRST]' | |
5517 | ||
5518 | # Regexp to match symbols that can be accessed directly from C. | |
5519 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5520 | ||
5521 | # Define system-specific variables. | |
5522 | case $host_os in | |
5523 | aix*) | |
5524 | symcode='[BCDT]' | |
5525 | ;; | |
93e92f52 | 5526 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
5527 | symcode='[ABCDGISTW]' |
5528 | ;; | |
5529 | hpux*) | |
5530 | if test "$host_cpu" = ia64; then | |
5531 | symcode='[ABCDEGRST]' | |
5532 | fi | |
5533 | ;; | |
5534 | irix* | nonstopux*) | |
5535 | symcode='[BCDEGRST]' | |
5536 | ;; | |
5537 | osf*) | |
5538 | symcode='[BCDEGQRST]' | |
5539 | ;; | |
5540 | solaris*) | |
5541 | symcode='[BDRT]' | |
5542 | ;; | |
5543 | sco3.2v5*) | |
5544 | symcode='[DT]' | |
5545 | ;; | |
5546 | sysv4.2uw2*) | |
5547 | symcode='[DT]' | |
5548 | ;; | |
5549 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5550 | symcode='[ABDT]' | |
5551 | ;; | |
5552 | sysv4) | |
5553 | symcode='[DFNSTU]' | |
5554 | ;; | |
5555 | esac | |
5556 | ||
5557 | # If we're using GNU nm, then use its standard symbol codes. | |
5558 | case `$NM -V 2>&1` in | |
5559 | *GNU* | *'with BFD'*) | |
5560 | symcode='[ABCDGIRSTW]' ;; | |
5561 | esac | |
5562 | ||
5563 | # Transform an extracted symbol line into a proper C declaration. | |
5564 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5565 | # so use this general approach. | |
5566 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5567 | ||
5568 | # Transform an extracted symbol line into symbol name and symbol address | |
5569 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
93e92f52 | 5570 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" |
1cf3d07d SE |
5571 | |
5572 | # Handle CRLF in mingw tool chain | |
5573 | opt_cr= | |
5574 | case $build_os in | |
5575 | mingw*) | |
5576 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5577 | ;; | |
5578 | esac | |
5579 | ||
5580 | # Try without a prefix underscore, then with it. | |
5581 | for ac_symprfx in "" "_"; do | |
5582 | ||
5583 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5584 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5585 | ||
5586 | # Write the raw and C identifiers. | |
5587 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5588 | # Fake it for dumpbin and say T for any non-static function | |
5589 | # and D for any global variable. | |
5590 | # Also find C++ and __fastcall symbols from MSVC++, | |
5591 | # which start with @ or ?. | |
5592 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5593 | " {last_section=section; section=\$ 3};"\ | |
5594 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5595 | " \$ 0!~/External *\|/{next};"\ | |
5596 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5597 | " {if(hide[section]) next};"\ | |
5598 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5599 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5600 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5601 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5602 | " ' prfx=^$ac_symprfx" | |
5603 | else | |
5604 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5605 | fi | |
5606 | ||
5607 | # Check to see that the pipe works correctly. | |
5608 | pipe_works=no | |
5609 | ||
5610 | rm -f conftest* | |
5611 | cat > conftest.$ac_ext <<_LT_EOF | |
5612 | #ifdef __cplusplus | |
5613 | extern "C" { | |
5614 | #endif | |
5615 | char nm_test_var; | |
5616 | void nm_test_func(void); | |
5617 | void nm_test_func(void){} | |
5618 | #ifdef __cplusplus | |
5619 | } | |
5620 | #endif | |
5621 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
5622 | _LT_EOF | |
5623 | ||
5624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5625 | (eval $ac_compile) 2>&5 | |
5626 | ac_status=$? | |
5627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5628 | (exit $ac_status); }; then | |
5629 | # Now try to grab the symbols. | |
5630 | nlist=conftest.nm | |
5631 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
5632 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5633 | ac_status=$? | |
5634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5635 | (exit $ac_status); } && test -s "$nlist"; then | |
5636 | # Try sorting and uniquifying the output. | |
5637 | if sort "$nlist" | uniq > "$nlist"T; then | |
5638 | mv -f "$nlist"T "$nlist" | |
5639 | else | |
5640 | rm -f "$nlist"T | |
5641 | fi | |
5642 | ||
5643 | # Make sure that we snagged all the symbols we need. | |
5644 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
5645 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5646 | cat <<_LT_EOF > conftest.$ac_ext | |
5647 | #ifdef __cplusplus | |
5648 | extern "C" { | |
5649 | #endif | |
5650 | ||
5651 | _LT_EOF | |
5652 | # Now generate the symbol file. | |
5653 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
5654 | ||
5655 | cat <<_LT_EOF >> conftest.$ac_ext | |
5656 | ||
5657 | /* The mapping between symbol names and symbols. */ | |
5658 | const struct { | |
5659 | const char *name; | |
5660 | void *address; | |
5661 | } | |
5662 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
5663 | { | |
5664 | { "@PROGRAM@", (void *) 0 }, | |
5665 | _LT_EOF | |
5666 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5667 | cat <<\_LT_EOF >> conftest.$ac_ext | |
5668 | {0, (void *) 0} | |
5669 | }; | |
5670 | ||
5671 | /* This works around a problem in FreeBSD linker */ | |
5672 | #ifdef FREEBSD_WORKAROUND | |
5673 | static const void *lt_preloaded_setup() { | |
5674 | return lt__PROGRAM__LTX_preloaded_symbols; | |
5675 | } | |
5676 | #endif | |
5677 | ||
5678 | #ifdef __cplusplus | |
5679 | } | |
5680 | #endif | |
5681 | _LT_EOF | |
5682 | # Now try linking the two files. | |
5683 | mv conftest.$ac_objext conftstm.$ac_objext | |
5684 | lt_save_LIBS="$LIBS" | |
5685 | lt_save_CFLAGS="$CFLAGS" | |
5686 | LIBS="conftstm.$ac_objext" | |
5687 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5689 | (eval $ac_link) 2>&5 | |
5690 | ac_status=$? | |
5691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5692 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
5693 | pipe_works=yes | |
5694 | fi | |
5695 | LIBS="$lt_save_LIBS" | |
5696 | CFLAGS="$lt_save_CFLAGS" | |
5697 | else | |
5698 | echo "cannot find nm_test_func in $nlist" >&5 | |
5699 | fi | |
5700 | else | |
5701 | echo "cannot find nm_test_var in $nlist" >&5 | |
5702 | fi | |
5703 | else | |
5704 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5705 | fi | |
5706 | else | |
5707 | echo "$progname: failed program was:" >&5 | |
5708 | cat conftest.$ac_ext >&5 | |
5709 | fi | |
93e92f52 | 5710 | rm -rf conftest* conftst* |
1cf3d07d SE |
5711 | |
5712 | # Do not use the global_symbol_pipe unless it works. | |
5713 | if test "$pipe_works" = yes; then | |
5714 | break | |
5715 | else | |
5716 | lt_cv_sys_global_symbol_pipe= | |
5717 | fi | |
5718 | done | |
5719 | ||
5720 | fi | |
5721 | ||
5722 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5723 | lt_cv_sys_global_symbol_to_cdecl= | |
5724 | fi | |
5725 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5726 | echo "$as_me:$LINENO: result: failed" >&5 | |
5727 | echo "${ECHO_T}failed" >&6 | |
5728 | else | |
5729 | echo "$as_me:$LINENO: result: ok" >&5 | |
5730 | echo "${ECHO_T}ok" >&6 | |
5731 | fi | |
5732 | ||
5733 | ||
5734 | ||
5735 | ||
5736 | ||
5737 | ||
5738 | ||
5739 | ||
5740 | ||
5741 | ||
5742 | ||
5743 | ||
5744 | ||
5745 | ||
5746 | ||
93e92f52 PG |
5747 | |
5748 | ||
5749 | ||
5750 | ||
5751 | ||
1cf3d07d SE |
5752 | |
5753 | ||
5754 | ||
5755 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
5756 | if test "${enable_libtool_lock+set}" = set; then | |
5757 | enableval="$enable_libtool_lock" | |
5758 | ||
5759 | fi; | |
5760 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
5761 | ||
5762 | # Some flags need to be propagated to the compiler or linker for good | |
5763 | # libtool support. | |
2d65a52e | 5764 | case $host in |
1cf3d07d | 5765 | ia64-*-hpux*) |
66deb2be | 5766 | # Find out which ABI we are using. |
1cf3d07d | 5767 | echo 'int i;' > conftest.$ac_ext |
47935194 NN |
5768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5769 | (eval $ac_compile) 2>&5 | |
5770 | ac_status=$? | |
5771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5772 | (exit $ac_status); }; then | |
1cf3d07d SE |
5773 | case `/usr/bin/file conftest.$ac_objext` in |
5774 | *ELF-32*) | |
5775 | HPUX_IA64_MODE="32" | |
5776 | ;; | |
5777 | *ELF-64*) | |
5778 | HPUX_IA64_MODE="64" | |
5779 | ;; | |
5780 | esac | |
5781 | fi | |
5782 | rm -rf conftest* | |
5783 | ;; | |
5784 | *-*-irix6*) | |
5785 | # Find out which ABI we are using. | |
93e92f52 | 5786 | echo '#line 5786 "configure"' > conftest.$ac_ext |
1cf3d07d SE |
5787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5788 | (eval $ac_compile) 2>&5 | |
5789 | ac_status=$? | |
5790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5791 | (exit $ac_status); }; then | |
5792 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
5793 | case `/usr/bin/file conftest.$ac_objext` in | |
5794 | *32-bit*) | |
5795 | LD="${LD-ld} -melf32bsmip" | |
5796 | ;; | |
5797 | *N32*) | |
5798 | LD="${LD-ld} -melf32bmipn32" | |
5799 | ;; | |
5800 | *64-bit*) | |
5801 | LD="${LD-ld} -melf64bmip" | |
5802 | ;; | |
5803 | esac | |
5804 | else | |
5805 | case `/usr/bin/file conftest.$ac_objext` in | |
5806 | *32-bit*) | |
5807 | LD="${LD-ld} -32" | |
5808 | ;; | |
5809 | *N32*) | |
5810 | LD="${LD-ld} -n32" | |
5811 | ;; | |
5812 | *64-bit*) | |
5813 | LD="${LD-ld} -64" | |
5814 | ;; | |
5815 | esac | |
5816 | fi | |
5817 | fi | |
5818 | rm -rf conftest* | |
5819 | ;; | |
5820 | ||
5821 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
5822 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
5823 | # Find out which ABI we are using. | |
5824 | echo 'int i;' > conftest.$ac_ext | |
5825 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5826 | (eval $ac_compile) 2>&5 | |
5827 | ac_status=$? | |
5828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5829 | (exit $ac_status); }; then | |
5830 | case `/usr/bin/file conftest.o` in | |
5831 | *32-bit*) | |
5832 | case $host in | |
5833 | x86_64-*kfreebsd*-gnu) | |
5834 | LD="${LD-ld} -m elf_i386_fbsd" | |
5835 | ;; | |
5836 | x86_64-*linux*) | |
5837 | LD="${LD-ld} -m elf_i386" | |
5838 | ;; | |
5839 | ppc64-*linux*|powerpc64-*linux*) | |
5840 | LD="${LD-ld} -m elf32ppclinux" | |
5841 | ;; | |
5842 | s390x-*linux*) | |
5843 | LD="${LD-ld} -m elf_s390" | |
5844 | ;; | |
5845 | sparc64-*linux*) | |
5846 | LD="${LD-ld} -m elf32_sparc" | |
5847 | ;; | |
5848 | esac | |
5849 | ;; | |
5850 | *64-bit*) | |
5851 | case $host in | |
5852 | x86_64-*kfreebsd*-gnu) | |
5853 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
5854 | ;; | |
5855 | x86_64-*linux*) | |
5856 | LD="${LD-ld} -m elf_x86_64" | |
5857 | ;; | |
5858 | ppc*-*linux*|powerpc*-*linux*) | |
5859 | LD="${LD-ld} -m elf64ppc" | |
5860 | ;; | |
5861 | s390*-*linux*|s390*-*tpf*) | |
5862 | LD="${LD-ld} -m elf64_s390" | |
5863 | ;; | |
5864 | sparc*-*linux*) | |
5865 | LD="${LD-ld} -m elf64_sparc" | |
5866 | ;; | |
5867 | esac | |
5868 | ;; | |
5869 | esac | |
5870 | fi | |
5871 | rm -rf conftest* | |
5872 | ;; | |
5873 | ||
5874 | *-*-sco3.2v5*) | |
5875 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
5876 | SAVE_CFLAGS="$CFLAGS" | |
5877 | CFLAGS="$CFLAGS -belf" | |
5878 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
5879 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
5880 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
5881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5882 | else | |
5883 | ac_ext=c | |
5884 | ac_cpp='$CPP $CPPFLAGS' | |
5885 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5886 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5887 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5888 | ||
5889 | if test x$gcc_no_link = xyes; then | |
5890 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
5891 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
5892 | { (exit 1); exit 1; }; } | |
5893 | fi | |
5894 | cat >conftest.$ac_ext <<_ACEOF | |
5895 | /* confdefs.h. */ | |
5896 | _ACEOF | |
5897 | cat confdefs.h >>conftest.$ac_ext | |
5898 | cat >>conftest.$ac_ext <<_ACEOF | |
5899 | /* end confdefs.h. */ | |
5900 | ||
5901 | int | |
5902 | main () | |
5903 | { | |
5904 | ||
5905 | ; | |
5906 | return 0; | |
5907 | } | |
5908 | _ACEOF | |
5909 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5910 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5911 | (eval $ac_link) 2>conftest.er1 | |
5912 | ac_status=$? | |
5913 | grep -v '^ *+' conftest.er1 >conftest.err | |
5914 | rm -f conftest.er1 | |
5915 | cat conftest.err >&5 | |
5916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5917 | (exit $ac_status); } && | |
5918 | { ac_try='test -z "$ac_c_werror_flag" | |
5919 | || test ! -s conftest.err' | |
5920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5921 | (eval $ac_try) 2>&5 | |
5922 | ac_status=$? | |
5923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5924 | (exit $ac_status); }; } && | |
5925 | { ac_try='test -s conftest$ac_exeext' | |
5926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5927 | (eval $ac_try) 2>&5 | |
5928 | ac_status=$? | |
5929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5930 | (exit $ac_status); }; }; then | |
5931 | lt_cv_cc_needs_belf=yes | |
5932 | else | |
5933 | echo "$as_me: failed program was:" >&5 | |
5934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5935 | ||
5936 | lt_cv_cc_needs_belf=no | |
5937 | fi | |
5938 | rm -f conftest.err conftest.$ac_objext \ | |
5939 | conftest$ac_exeext conftest.$ac_ext | |
5940 | ac_ext=c | |
5941 | ac_cpp='$CPP $CPPFLAGS' | |
5942 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5943 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5944 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5945 | ||
5946 | fi | |
5947 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
5948 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
5949 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
5950 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
5951 | CFLAGS="$SAVE_CFLAGS" | |
5952 | fi | |
5953 | ;; | |
5954 | sparc*-*solaris*) | |
5955 | # Find out which ABI we are using. | |
5956 | echo 'int i;' > conftest.$ac_ext | |
5957 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5958 | (eval $ac_compile) 2>&5 | |
5959 | ac_status=$? | |
5960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5961 | (exit $ac_status); }; then | |
5962 | case `/usr/bin/file conftest.o` in | |
5963 | *64-bit*) | |
5964 | case $lt_cv_prog_gnu_ld in | |
5965 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
93e92f52 PG |
5966 | *) |
5967 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
5968 | LD="${LD-ld} -64" | |
5969 | fi | |
5970 | ;; | |
1cf3d07d SE |
5971 | esac |
5972 | ;; | |
5973 | esac | |
5974 | fi | |
5975 | rm -rf conftest* | |
5976 | ;; | |
5977 | esac | |
5978 | ||
5979 | need_locks="$enable_libtool_lock" | |
5980 | ||
93e92f52 PG |
5981 | |
5982 | case $host_os in | |
5983 | rhapsody* | darwin*) | |
5984 | if test -n "$ac_tool_prefix"; then | |
5985 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
5986 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5987 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5988 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5989 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then | |
1cf3d07d SE |
5990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5991 | else | |
93e92f52 PG |
5992 | if test -n "$DSYMUTIL"; then |
5993 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
5994 | else | |
5995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5996 | for as_dir in $PATH | |
1cf3d07d | 5997 | do |
93e92f52 PG |
5998 | IFS=$as_save_IFS |
5999 | test -z "$as_dir" && as_dir=. | |
6000 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6001 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6002 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
6003 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6004 | break 2 | |
1cf3d07d | 6005 | fi |
93e92f52 PG |
6006 | done |
6007 | done | |
6008 | ||
6009 | fi | |
6010 | fi | |
6011 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
6012 | if test -n "$DSYMUTIL"; then | |
6013 | echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 | |
6014 | echo "${ECHO_T}$DSYMUTIL" >&6 | |
6015 | else | |
6016 | echo "$as_me:$LINENO: result: no" >&5 | |
6017 | echo "${ECHO_T}no" >&6 | |
6018 | fi | |
6019 | ||
6020 | fi | |
6021 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
6022 | ac_ct_DSYMUTIL=$DSYMUTIL | |
6023 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
6024 | set dummy dsymutil; ac_word=$2 | |
6025 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6026 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6027 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then | |
6028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6029 | else | |
6030 | if test -n "$ac_ct_DSYMUTIL"; then | |
6031 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
6032 | else | |
6033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6034 | for as_dir in $PATH | |
6035 | do | |
6036 | IFS=$as_save_IFS | |
6037 | test -z "$as_dir" && as_dir=. | |
6038 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6039 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6040 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
6041 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6042 | break 2 | |
6043 | fi | |
6044 | done | |
6045 | done | |
6046 | ||
6047 | test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":" | |
6048 | fi | |
6049 | fi | |
6050 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
6051 | if test -n "$ac_ct_DSYMUTIL"; then | |
6052 | echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 | |
6053 | echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6 | |
6054 | else | |
6055 | echo "$as_me:$LINENO: result: no" >&5 | |
6056 | echo "${ECHO_T}no" >&6 | |
6057 | fi | |
6058 | ||
6059 | DSYMUTIL=$ac_ct_DSYMUTIL | |
6060 | else | |
6061 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
6062 | fi | |
6063 | ||
6064 | if test -n "$ac_tool_prefix"; then | |
6065 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6066 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
6067 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6068 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6069 | if test "${ac_cv_prog_NMEDIT+set}" = set; then | |
6070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6071 | else | |
6072 | if test -n "$NMEDIT"; then | |
6073 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
6074 | else | |
6075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6076 | for as_dir in $PATH | |
6077 | do | |
6078 | IFS=$as_save_IFS | |
6079 | test -z "$as_dir" && as_dir=. | |
6080 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6081 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6082 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
6083 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6084 | break 2 | |
6085 | fi | |
6086 | done | |
6087 | done | |
6088 | ||
6089 | fi | |
6090 | fi | |
6091 | NMEDIT=$ac_cv_prog_NMEDIT | |
6092 | if test -n "$NMEDIT"; then | |
6093 | echo "$as_me:$LINENO: result: $NMEDIT" >&5 | |
6094 | echo "${ECHO_T}$NMEDIT" >&6 | |
6095 | else | |
6096 | echo "$as_me:$LINENO: result: no" >&5 | |
6097 | echo "${ECHO_T}no" >&6 | |
6098 | fi | |
6099 | ||
6100 | fi | |
6101 | if test -z "$ac_cv_prog_NMEDIT"; then | |
6102 | ac_ct_NMEDIT=$NMEDIT | |
6103 | # Extract the first word of "nmedit", so it can be a program name with args. | |
6104 | set dummy nmedit; ac_word=$2 | |
6105 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6106 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6107 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then | |
6108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6109 | else | |
6110 | if test -n "$ac_ct_NMEDIT"; then | |
6111 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
6112 | else | |
6113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6114 | for as_dir in $PATH | |
6115 | do | |
6116 | IFS=$as_save_IFS | |
6117 | test -z "$as_dir" && as_dir=. | |
6118 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6119 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6120 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
6121 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6122 | break 2 | |
6123 | fi | |
6124 | done | |
6125 | done | |
6126 | ||
6127 | test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":" | |
6128 | fi | |
6129 | fi | |
6130 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
6131 | if test -n "$ac_ct_NMEDIT"; then | |
6132 | echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 | |
6133 | echo "${ECHO_T}$ac_ct_NMEDIT" >&6 | |
6134 | else | |
6135 | echo "$as_me:$LINENO: result: no" >&5 | |
6136 | echo "${ECHO_T}no" >&6 | |
6137 | fi | |
6138 | ||
6139 | NMEDIT=$ac_ct_NMEDIT | |
6140 | else | |
6141 | NMEDIT="$ac_cv_prog_NMEDIT" | |
6142 | fi | |
6143 | ||
6144 | if test -n "$ac_tool_prefix"; then | |
6145 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6146 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
6147 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6148 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6149 | if test "${ac_cv_prog_LIPO+set}" = set; then | |
6150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6151 | else | |
6152 | if test -n "$LIPO"; then | |
6153 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
6154 | else | |
6155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6156 | for as_dir in $PATH | |
6157 | do | |
6158 | IFS=$as_save_IFS | |
6159 | test -z "$as_dir" && as_dir=. | |
6160 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6161 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6162 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
6163 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6164 | break 2 | |
6165 | fi | |
6166 | done | |
6167 | done | |
6168 | ||
6169 | fi | |
6170 | fi | |
6171 | LIPO=$ac_cv_prog_LIPO | |
6172 | if test -n "$LIPO"; then | |
6173 | echo "$as_me:$LINENO: result: $LIPO" >&5 | |
6174 | echo "${ECHO_T}$LIPO" >&6 | |
6175 | else | |
6176 | echo "$as_me:$LINENO: result: no" >&5 | |
6177 | echo "${ECHO_T}no" >&6 | |
6178 | fi | |
6179 | ||
6180 | fi | |
6181 | if test -z "$ac_cv_prog_LIPO"; then | |
6182 | ac_ct_LIPO=$LIPO | |
6183 | # Extract the first word of "lipo", so it can be a program name with args. | |
6184 | set dummy lipo; ac_word=$2 | |
6185 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6186 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6187 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then | |
6188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6189 | else | |
6190 | if test -n "$ac_ct_LIPO"; then | |
6191 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
6192 | else | |
6193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6194 | for as_dir in $PATH | |
6195 | do | |
6196 | IFS=$as_save_IFS | |
6197 | test -z "$as_dir" && as_dir=. | |
6198 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6199 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6200 | ac_cv_prog_ac_ct_LIPO="lipo" | |
6201 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6202 | break 2 | |
6203 | fi | |
6204 | done | |
6205 | done | |
6206 | ||
6207 | test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":" | |
6208 | fi | |
6209 | fi | |
6210 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
6211 | if test -n "$ac_ct_LIPO"; then | |
6212 | echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 | |
6213 | echo "${ECHO_T}$ac_ct_LIPO" >&6 | |
6214 | else | |
6215 | echo "$as_me:$LINENO: result: no" >&5 | |
6216 | echo "${ECHO_T}no" >&6 | |
6217 | fi | |
6218 | ||
6219 | LIPO=$ac_ct_LIPO | |
6220 | else | |
6221 | LIPO="$ac_cv_prog_LIPO" | |
6222 | fi | |
6223 | ||
6224 | if test -n "$ac_tool_prefix"; then | |
6225 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
6226 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
6227 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6228 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6229 | if test "${ac_cv_prog_OTOOL+set}" = set; then | |
6230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6231 | else | |
6232 | if test -n "$OTOOL"; then | |
6233 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
6234 | else | |
6235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6236 | for as_dir in $PATH | |
6237 | do | |
6238 | IFS=$as_save_IFS | |
6239 | test -z "$as_dir" && as_dir=. | |
6240 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6241 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6242 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
6243 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6244 | break 2 | |
6245 | fi | |
6246 | done | |
6247 | done | |
6248 | ||
6249 | fi | |
6250 | fi | |
6251 | OTOOL=$ac_cv_prog_OTOOL | |
6252 | if test -n "$OTOOL"; then | |
6253 | echo "$as_me:$LINENO: result: $OTOOL" >&5 | |
6254 | echo "${ECHO_T}$OTOOL" >&6 | |
6255 | else | |
6256 | echo "$as_me:$LINENO: result: no" >&5 | |
6257 | echo "${ECHO_T}no" >&6 | |
6258 | fi | |
6259 | ||
6260 | fi | |
6261 | if test -z "$ac_cv_prog_OTOOL"; then | |
6262 | ac_ct_OTOOL=$OTOOL | |
6263 | # Extract the first word of "otool", so it can be a program name with args. | |
6264 | set dummy otool; ac_word=$2 | |
6265 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6266 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6267 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then | |
6268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6269 | else | |
6270 | if test -n "$ac_ct_OTOOL"; then | |
6271 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
6272 | else | |
6273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6274 | for as_dir in $PATH | |
6275 | do | |
6276 | IFS=$as_save_IFS | |
6277 | test -z "$as_dir" && as_dir=. | |
6278 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6279 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6280 | ac_cv_prog_ac_ct_OTOOL="otool" | |
6281 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6282 | break 2 | |
6283 | fi | |
6284 | done | |
6285 | done | |
6286 | ||
6287 | test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":" | |
6288 | fi | |
6289 | fi | |
6290 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
6291 | if test -n "$ac_ct_OTOOL"; then | |
6292 | echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 | |
6293 | echo "${ECHO_T}$ac_ct_OTOOL" >&6 | |
6294 | else | |
6295 | echo "$as_me:$LINENO: result: no" >&5 | |
6296 | echo "${ECHO_T}no" >&6 | |
6297 | fi | |
6298 | ||
6299 | OTOOL=$ac_ct_OTOOL | |
6300 | else | |
6301 | OTOOL="$ac_cv_prog_OTOOL" | |
6302 | fi | |
6303 | ||
6304 | if test -n "$ac_tool_prefix"; then | |
6305 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
6306 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
6307 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6308 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6309 | if test "${ac_cv_prog_OTOOL64+set}" = set; then | |
6310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6311 | else | |
6312 | if test -n "$OTOOL64"; then | |
6313 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
6314 | else | |
6315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6316 | for as_dir in $PATH | |
6317 | do | |
6318 | IFS=$as_save_IFS | |
6319 | test -z "$as_dir" && as_dir=. | |
6320 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6321 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6322 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
6323 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6324 | break 2 | |
6325 | fi | |
6326 | done | |
6327 | done | |
6328 | ||
6329 | fi | |
6330 | fi | |
6331 | OTOOL64=$ac_cv_prog_OTOOL64 | |
6332 | if test -n "$OTOOL64"; then | |
6333 | echo "$as_me:$LINENO: result: $OTOOL64" >&5 | |
6334 | echo "${ECHO_T}$OTOOL64" >&6 | |
6335 | else | |
6336 | echo "$as_me:$LINENO: result: no" >&5 | |
6337 | echo "${ECHO_T}no" >&6 | |
6338 | fi | |
6339 | ||
6340 | fi | |
6341 | if test -z "$ac_cv_prog_OTOOL64"; then | |
6342 | ac_ct_OTOOL64=$OTOOL64 | |
6343 | # Extract the first word of "otool64", so it can be a program name with args. | |
6344 | set dummy otool64; ac_word=$2 | |
6345 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6346 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6347 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then | |
6348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6349 | else | |
6350 | if test -n "$ac_ct_OTOOL64"; then | |
6351 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
6352 | else | |
6353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6354 | for as_dir in $PATH | |
6355 | do | |
6356 | IFS=$as_save_IFS | |
6357 | test -z "$as_dir" && as_dir=. | |
6358 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6359 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6360 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
6361 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6362 | break 2 | |
6363 | fi | |
6364 | done | |
6365 | done | |
6366 | ||
6367 | test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":" | |
6368 | fi | |
6369 | fi | |
6370 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
6371 | if test -n "$ac_ct_OTOOL64"; then | |
6372 | echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 | |
6373 | echo "${ECHO_T}$ac_ct_OTOOL64" >&6 | |
6374 | else | |
6375 | echo "$as_me:$LINENO: result: no" >&5 | |
6376 | echo "${ECHO_T}no" >&6 | |
6377 | fi | |
6378 | ||
6379 | OTOOL64=$ac_ct_OTOOL64 | |
6380 | else | |
6381 | OTOOL64="$ac_cv_prog_OTOOL64" | |
6382 | fi | |
6383 | ||
6384 | ||
6385 | ||
6386 | ||
6387 | ||
6388 | ||
6389 | ||
6390 | ||
6391 | ||
6392 | ||
6393 | ||
6394 | ||
6395 | ||
6396 | ||
6397 | ||
6398 | ||
6399 | ||
6400 | ||
6401 | ||
6402 | ||
6403 | ||
6404 | ||
6405 | ||
6406 | ||
6407 | ||
6408 | ||
6409 | ||
6410 | echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 | |
6411 | echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6 | |
6412 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
6413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6414 | else | |
6415 | lt_cv_apple_cc_single_mod=no | |
6416 | if test -z "${LT_MULTI_MODULE}"; then | |
6417 | # By default we will add the -single_module flag. You can override | |
6418 | # by either setting the environment variable LT_MULTI_MODULE | |
6419 | # non-empty at configure time, or by adding -multi_module to the | |
6420 | # link flags. | |
6421 | rm -rf libconftest.dylib* | |
6422 | echo "int foo(void){return 1;}" > conftest.c | |
6423 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6424 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
6425 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6426 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
6427 | _lt_result=$? | |
6428 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
6429 | lt_cv_apple_cc_single_mod=yes | |
6430 | else | |
6431 | cat conftest.err >&5 | |
6432 | fi | |
6433 | rm -rf libconftest.dylib* | |
6434 | rm -f conftest.* | |
6435 | fi | |
6436 | fi | |
6437 | echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 | |
6438 | echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6 | |
6439 | echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 | |
6440 | echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6 | |
6441 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then | |
6442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6443 | else | |
6444 | lt_cv_ld_exported_symbols_list=no | |
6445 | save_LDFLAGS=$LDFLAGS | |
6446 | echo "_main" > conftest.sym | |
6447 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
6448 | if test x$gcc_no_link = xyes; then | |
6449 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
6450 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
6451 | { (exit 1); exit 1; }; } | |
6452 | fi | |
6453 | cat >conftest.$ac_ext <<_ACEOF | |
6454 | /* confdefs.h. */ | |
6455 | _ACEOF | |
6456 | cat confdefs.h >>conftest.$ac_ext | |
6457 | cat >>conftest.$ac_ext <<_ACEOF | |
6458 | /* end confdefs.h. */ | |
6459 | ||
6460 | int | |
6461 | main () | |
6462 | { | |
6463 | ||
6464 | ; | |
6465 | return 0; | |
6466 | } | |
6467 | _ACEOF | |
6468 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6469 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6470 | (eval $ac_link) 2>conftest.er1 | |
6471 | ac_status=$? | |
6472 | grep -v '^ *+' conftest.er1 >conftest.err | |
6473 | rm -f conftest.er1 | |
6474 | cat conftest.err >&5 | |
6475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6476 | (exit $ac_status); } && | |
6477 | { ac_try='test -z "$ac_c_werror_flag" | |
6478 | || test ! -s conftest.err' | |
6479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6480 | (eval $ac_try) 2>&5 | |
6481 | ac_status=$? | |
6482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6483 | (exit $ac_status); }; } && | |
6484 | { ac_try='test -s conftest$ac_exeext' | |
6485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6486 | (eval $ac_try) 2>&5 | |
6487 | ac_status=$? | |
6488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6489 | (exit $ac_status); }; }; then | |
6490 | lt_cv_ld_exported_symbols_list=yes | |
6491 | else | |
6492 | echo "$as_me: failed program was:" >&5 | |
6493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6494 | ||
6495 | lt_cv_ld_exported_symbols_list=no | |
6496 | fi | |
6497 | rm -f conftest.err conftest.$ac_objext \ | |
6498 | conftest$ac_exeext conftest.$ac_ext | |
6499 | LDFLAGS="$save_LDFLAGS" | |
6500 | ||
6501 | fi | |
6502 | echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 | |
6503 | echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6 | |
6504 | case $host_os in | |
6505 | rhapsody* | darwin1.[012]) | |
6506 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
6507 | darwin1.*) | |
6508 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6509 | darwin*) # darwin 5.x on | |
6510 | # if running on 10.5 or later, the deployment target defaults | |
6511 | # to the OS version, if on x86, and 10.4, the deployment | |
6512 | # target defaults to 10.4. Don't you love it? | |
6513 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
6514 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
6515 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6516 | 10.[012]*) | |
6517 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6518 | 10.*) | |
6519 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6520 | esac | |
6521 | ;; | |
6522 | esac | |
6523 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
6524 | _lt_dar_single_mod='$single_module' | |
6525 | fi | |
6526 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
6527 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
6528 | else | |
6529 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
6530 | fi | |
6531 | if test "$DSYMUTIL" != ":"; then | |
6532 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
6533 | else | |
6534 | _lt_dsymutil= | |
6535 | fi | |
6536 | ;; | |
6537 | esac | |
6538 | ||
6539 | ac_ext=c | |
6540 | ac_cpp='$CPP $CPPFLAGS' | |
6541 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6542 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6543 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6544 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
6545 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
6546 | # On Suns, sometimes $CPP names a directory. | |
6547 | if test -n "$CPP" && test -d "$CPP"; then | |
6548 | CPP= | |
6549 | fi | |
6550 | if test -z "$CPP"; then | |
6551 | if test "${ac_cv_prog_CPP+set}" = set; then | |
6552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6553 | else | |
6554 | # Double quotes because CPP needs to be expanded | |
6555 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
6556 | do | |
6557 | ac_preproc_ok=false | |
6558 | for ac_c_preproc_warn_flag in '' yes | |
6559 | do | |
6560 | # Use a header file that comes with gcc, so configuring glibc | |
6561 | # with a fresh cross-compiler works. | |
6562 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6563 | # <limits.h> exists even on freestanding compilers. | |
6564 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6565 | # not just through cpp. "Syntax error" is here to catch this case. | |
6566 | cat >conftest.$ac_ext <<_ACEOF | |
6567 | /* confdefs.h. */ | |
6568 | _ACEOF | |
6569 | cat confdefs.h >>conftest.$ac_ext | |
6570 | cat >>conftest.$ac_ext <<_ACEOF | |
6571 | /* end confdefs.h. */ | |
6572 | #ifdef __STDC__ | |
6573 | # include <limits.h> | |
6574 | #else | |
6575 | # include <assert.h> | |
6576 | #endif | |
6577 | Syntax error | |
6578 | _ACEOF | |
6579 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6580 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6581 | ac_status=$? | |
6582 | grep -v '^ *+' conftest.er1 >conftest.err | |
6583 | rm -f conftest.er1 | |
6584 | cat conftest.err >&5 | |
6585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6586 | (exit $ac_status); } >/dev/null; then | |
6587 | if test -s conftest.err; then | |
6588 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6589 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6590 | else | |
6591 | ac_cpp_err= | |
6592 | fi | |
6593 | else | |
1cf3d07d SE |
6594 | ac_cpp_err=yes |
6595 | fi | |
6596 | if test -z "$ac_cpp_err"; then | |
6597 | : | |
6598 | else | |
6599 | echo "$as_me: failed program was:" >&5 | |
6600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6601 | ||
6602 | # Broken: fails on valid input. | |
6603 | continue | |
6604 | fi | |
6605 | rm -f conftest.err conftest.$ac_ext | |
6606 | ||
6607 | # OK, works on sane cases. Now check whether non-existent headers | |
6608 | # can be detected and how. | |
6609 | cat >conftest.$ac_ext <<_ACEOF | |
6610 | /* confdefs.h. */ | |
6611 | _ACEOF | |
6612 | cat confdefs.h >>conftest.$ac_ext | |
6613 | cat >>conftest.$ac_ext <<_ACEOF | |
6614 | /* end confdefs.h. */ | |
6615 | #include <ac_nonexistent.h> | |
6616 | _ACEOF | |
6617 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6618 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6619 | ac_status=$? | |
6620 | grep -v '^ *+' conftest.er1 >conftest.err | |
6621 | rm -f conftest.er1 | |
6622 | cat conftest.err >&5 | |
6623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6624 | (exit $ac_status); } >/dev/null; then | |
6625 | if test -s conftest.err; then | |
6626 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6627 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6628 | else | |
6629 | ac_cpp_err= | |
6630 | fi | |
6631 | else | |
6632 | ac_cpp_err=yes | |
6633 | fi | |
6634 | if test -z "$ac_cpp_err"; then | |
6635 | # Broken: success on invalid input. | |
6636 | continue | |
6637 | else | |
6638 | echo "$as_me: failed program was:" >&5 | |
6639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6640 | ||
6641 | # Passes both tests. | |
6642 | ac_preproc_ok=: | |
6643 | break | |
6644 | fi | |
6645 | rm -f conftest.err conftest.$ac_ext | |
6646 | ||
6647 | done | |
6648 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6649 | rm -f conftest.err conftest.$ac_ext | |
6650 | if $ac_preproc_ok; then | |
6651 | break | |
6652 | fi | |
6653 | ||
6654 | done | |
6655 | ac_cv_prog_CPP=$CPP | |
6656 | ||
6657 | fi | |
6658 | CPP=$ac_cv_prog_CPP | |
6659 | else | |
6660 | ac_cv_prog_CPP=$CPP | |
6661 | fi | |
6662 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
6663 | echo "${ECHO_T}$CPP" >&6 | |
6664 | ac_preproc_ok=false | |
6665 | for ac_c_preproc_warn_flag in '' yes | |
6666 | do | |
6667 | # Use a header file that comes with gcc, so configuring glibc | |
6668 | # with a fresh cross-compiler works. | |
6669 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6670 | # <limits.h> exists even on freestanding compilers. | |
6671 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6672 | # not just through cpp. "Syntax error" is here to catch this case. | |
6673 | cat >conftest.$ac_ext <<_ACEOF | |
6674 | /* confdefs.h. */ | |
6675 | _ACEOF | |
6676 | cat confdefs.h >>conftest.$ac_ext | |
6677 | cat >>conftest.$ac_ext <<_ACEOF | |
6678 | /* end confdefs.h. */ | |
6679 | #ifdef __STDC__ | |
6680 | # include <limits.h> | |
6681 | #else | |
6682 | # include <assert.h> | |
6683 | #endif | |
6684 | Syntax error | |
6685 | _ACEOF | |
6686 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6687 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6688 | ac_status=$? | |
6689 | grep -v '^ *+' conftest.er1 >conftest.err | |
6690 | rm -f conftest.er1 | |
6691 | cat conftest.err >&5 | |
6692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6693 | (exit $ac_status); } >/dev/null; then | |
6694 | if test -s conftest.err; then | |
6695 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6696 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6697 | else | |
6698 | ac_cpp_err= | |
6699 | fi | |
6700 | else | |
6701 | ac_cpp_err=yes | |
6702 | fi | |
6703 | if test -z "$ac_cpp_err"; then | |
6704 | : | |
6705 | else | |
6706 | echo "$as_me: failed program was:" >&5 | |
6707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6708 | ||
6709 | # Broken: fails on valid input. | |
6710 | continue | |
6711 | fi | |
6712 | rm -f conftest.err conftest.$ac_ext | |
6713 | ||
6714 | # OK, works on sane cases. Now check whether non-existent headers | |
6715 | # can be detected and how. | |
6716 | cat >conftest.$ac_ext <<_ACEOF | |
6717 | /* confdefs.h. */ | |
6718 | _ACEOF | |
6719 | cat confdefs.h >>conftest.$ac_ext | |
6720 | cat >>conftest.$ac_ext <<_ACEOF | |
6721 | /* end confdefs.h. */ | |
6722 | #include <ac_nonexistent.h> | |
6723 | _ACEOF | |
6724 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6725 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6726 | ac_status=$? | |
6727 | grep -v '^ *+' conftest.er1 >conftest.err | |
6728 | rm -f conftest.er1 | |
6729 | cat conftest.err >&5 | |
6730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6731 | (exit $ac_status); } >/dev/null; then | |
6732 | if test -s conftest.err; then | |
6733 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6734 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6735 | else | |
6736 | ac_cpp_err= | |
6737 | fi | |
6738 | else | |
6739 | ac_cpp_err=yes | |
6740 | fi | |
6741 | if test -z "$ac_cpp_err"; then | |
6742 | # Broken: success on invalid input. | |
6743 | continue | |
6744 | else | |
6745 | echo "$as_me: failed program was:" >&5 | |
6746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6747 | ||
6748 | # Passes both tests. | |
6749 | ac_preproc_ok=: | |
6750 | break | |
6751 | fi | |
6752 | rm -f conftest.err conftest.$ac_ext | |
6753 | ||
6754 | done | |
6755 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6756 | rm -f conftest.err conftest.$ac_ext | |
6757 | if $ac_preproc_ok; then | |
6758 | : | |
6759 | else | |
18c04407 RW |
6760 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
6761 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6762 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
1cf3d07d SE |
6763 | See \`config.log' for more details." >&5 |
6764 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
6765 | See \`config.log' for more details." >&2;} | |
18c04407 | 6766 | { (exit 1); exit 1; }; }; } |
1cf3d07d SE |
6767 | fi |
6768 | ||
6769 | ac_ext=c | |
6770 | ac_cpp='$CPP $CPPFLAGS' | |
6771 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6772 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6773 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6774 | ||
6775 | ||
6776 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
6777 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
6778 | if test "${ac_cv_header_stdc+set}" = set; then | |
6779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6780 | else | |
6781 | cat >conftest.$ac_ext <<_ACEOF | |
6782 | /* confdefs.h. */ | |
6783 | _ACEOF | |
6784 | cat confdefs.h >>conftest.$ac_ext | |
6785 | cat >>conftest.$ac_ext <<_ACEOF | |
6786 | /* end confdefs.h. */ | |
6787 | #include <stdlib.h> | |
6788 | #include <stdarg.h> | |
6789 | #include <string.h> | |
6790 | #include <float.h> | |
6791 | ||
6792 | int | |
6793 | main () | |
6794 | { | |
6795 | ||
6796 | ; | |
6797 | return 0; | |
6798 | } | |
6799 | _ACEOF | |
6800 | rm -f conftest.$ac_objext | |
6801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6802 | (eval $ac_compile) 2>conftest.er1 | |
6803 | ac_status=$? | |
6804 | grep -v '^ *+' conftest.er1 >conftest.err | |
6805 | rm -f conftest.er1 | |
6806 | cat conftest.err >&5 | |
6807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6808 | (exit $ac_status); } && | |
6809 | { ac_try='test -z "$ac_c_werror_flag" | |
6810 | || test ! -s conftest.err' | |
6811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6812 | (eval $ac_try) 2>&5 | |
6813 | ac_status=$? | |
6814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6815 | (exit $ac_status); }; } && | |
6816 | { ac_try='test -s conftest.$ac_objext' | |
6817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6818 | (eval $ac_try) 2>&5 | |
6819 | ac_status=$? | |
6820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6821 | (exit $ac_status); }; }; then | |
6822 | ac_cv_header_stdc=yes | |
6823 | else | |
6824 | echo "$as_me: failed program was:" >&5 | |
6825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6826 | ||
6827 | ac_cv_header_stdc=no | |
6828 | fi | |
6829 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6830 | ||
6831 | if test $ac_cv_header_stdc = yes; then | |
6832 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6833 | cat >conftest.$ac_ext <<_ACEOF | |
6834 | /* confdefs.h. */ | |
6835 | _ACEOF | |
6836 | cat confdefs.h >>conftest.$ac_ext | |
6837 | cat >>conftest.$ac_ext <<_ACEOF | |
6838 | /* end confdefs.h. */ | |
6839 | #include <string.h> | |
6840 | ||
6841 | _ACEOF | |
6842 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6843 | $EGREP "memchr" >/dev/null 2>&1; then | |
6844 | : | |
6845 | else | |
6846 | ac_cv_header_stdc=no | |
6847 | fi | |
6848 | rm -f conftest* | |
6849 | ||
6850 | fi | |
6851 | ||
6852 | if test $ac_cv_header_stdc = yes; then | |
6853 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6854 | cat >conftest.$ac_ext <<_ACEOF | |
6855 | /* confdefs.h. */ | |
6856 | _ACEOF | |
6857 | cat confdefs.h >>conftest.$ac_ext | |
6858 | cat >>conftest.$ac_ext <<_ACEOF | |
6859 | /* end confdefs.h. */ | |
6860 | #include <stdlib.h> | |
6861 | ||
6862 | _ACEOF | |
6863 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6864 | $EGREP "free" >/dev/null 2>&1; then | |
6865 | : | |
6866 | else | |
6867 | ac_cv_header_stdc=no | |
6868 | fi | |
6869 | rm -f conftest* | |
6870 | ||
6871 | fi | |
6872 | ||
6873 | if test $ac_cv_header_stdc = yes; then | |
6874 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6875 | if test "$cross_compiling" = yes; then | |
6876 | : | |
6877 | else | |
6878 | cat >conftest.$ac_ext <<_ACEOF | |
6879 | /* confdefs.h. */ | |
6880 | _ACEOF | |
6881 | cat confdefs.h >>conftest.$ac_ext | |
6882 | cat >>conftest.$ac_ext <<_ACEOF | |
6883 | /* end confdefs.h. */ | |
6884 | #include <ctype.h> | |
6885 | #if ((' ' & 0x0FF) == 0x020) | |
6886 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6887 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6888 | #else | |
6889 | # define ISLOWER(c) \ | |
6890 | (('a' <= (c) && (c) <= 'i') \ | |
6891 | || ('j' <= (c) && (c) <= 'r') \ | |
6892 | || ('s' <= (c) && (c) <= 'z')) | |
6893 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6894 | #endif | |
6895 | ||
6896 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6897 | int | |
6898 | main () | |
6899 | { | |
6900 | int i; | |
6901 | for (i = 0; i < 256; i++) | |
6902 | if (XOR (islower (i), ISLOWER (i)) | |
6903 | || toupper (i) != TOUPPER (i)) | |
6904 | exit(2); | |
6905 | exit (0); | |
6906 | } | |
6907 | _ACEOF | |
6908 | rm -f conftest$ac_exeext | |
6909 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6910 | (eval $ac_link) 2>&5 | |
6911 | ac_status=$? | |
6912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6913 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6915 | (eval $ac_try) 2>&5 | |
6916 | ac_status=$? | |
6917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6918 | (exit $ac_status); }; }; then | |
6919 | : | |
6920 | else | |
6921 | echo "$as_me: program exited with status $ac_status" >&5 | |
6922 | echo "$as_me: failed program was:" >&5 | |
6923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6924 | ||
6925 | ( exit $ac_status ) | |
6926 | ac_cv_header_stdc=no | |
6927 | fi | |
6928 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6929 | fi | |
6930 | fi | |
6931 | fi | |
6932 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
6933 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
6934 | if test $ac_cv_header_stdc = yes; then | |
6935 | ||
6936 | cat >>confdefs.h <<\_ACEOF | |
6937 | #define STDC_HEADERS 1 | |
6938 | _ACEOF | |
6939 | ||
6940 | fi | |
6941 | ||
6942 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
6943 | ||
6944 | ||
6945 | ||
6946 | ||
6947 | ||
6948 | ||
6949 | ||
6950 | ||
6951 | ||
6952 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
6953 | inttypes.h stdint.h unistd.h | |
6954 | do | |
6955 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6956 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6957 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6958 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6960 | else | |
6961 | cat >conftest.$ac_ext <<_ACEOF | |
6962 | /* confdefs.h. */ | |
6963 | _ACEOF | |
6964 | cat confdefs.h >>conftest.$ac_ext | |
6965 | cat >>conftest.$ac_ext <<_ACEOF | |
6966 | /* end confdefs.h. */ | |
6967 | $ac_includes_default | |
6968 | ||
6969 | #include <$ac_header> | |
6970 | _ACEOF | |
6971 | rm -f conftest.$ac_objext | |
6972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6973 | (eval $ac_compile) 2>conftest.er1 | |
6974 | ac_status=$? | |
6975 | grep -v '^ *+' conftest.er1 >conftest.err | |
6976 | rm -f conftest.er1 | |
6977 | cat conftest.err >&5 | |
6978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6979 | (exit $ac_status); } && | |
6980 | { ac_try='test -z "$ac_c_werror_flag" | |
6981 | || test ! -s conftest.err' | |
6982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6983 | (eval $ac_try) 2>&5 | |
6984 | ac_status=$? | |
6985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6986 | (exit $ac_status); }; } && | |
6987 | { ac_try='test -s conftest.$ac_objext' | |
6988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6989 | (eval $ac_try) 2>&5 | |
6990 | ac_status=$? | |
6991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6992 | (exit $ac_status); }; }; then | |
6993 | eval "$as_ac_Header=yes" | |
6994 | else | |
6995 | echo "$as_me: failed program was:" >&5 | |
6996 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6997 | ||
6998 | eval "$as_ac_Header=no" | |
6999 | fi | |
7000 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7001 | fi | |
7002 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7003 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7004 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7005 | cat >>confdefs.h <<_ACEOF | |
7006 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7007 | _ACEOF | |
7008 | ||
7009 | fi | |
7010 | ||
7011 | done | |
7012 | ||
7013 | ||
7014 | ||
7015 | for ac_header in dlfcn.h | |
7016 | do | |
7017 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7018 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7019 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7020 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7021 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7022 | else | |
7023 | cat >conftest.$ac_ext <<_ACEOF | |
7024 | /* confdefs.h. */ | |
7025 | _ACEOF | |
7026 | cat confdefs.h >>conftest.$ac_ext | |
7027 | cat >>conftest.$ac_ext <<_ACEOF | |
7028 | /* end confdefs.h. */ | |
7029 | $ac_includes_default | |
7030 | ||
7031 | #include <$ac_header> | |
7032 | _ACEOF | |
7033 | rm -f conftest.$ac_objext | |
7034 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7035 | (eval $ac_compile) 2>conftest.er1 | |
7036 | ac_status=$? | |
7037 | grep -v '^ *+' conftest.er1 >conftest.err | |
7038 | rm -f conftest.er1 | |
7039 | cat conftest.err >&5 | |
7040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7041 | (exit $ac_status); } && | |
7042 | { ac_try='test -z "$ac_c_werror_flag" | |
7043 | || test ! -s conftest.err' | |
7044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7045 | (eval $ac_try) 2>&5 | |
7046 | ac_status=$? | |
7047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7048 | (exit $ac_status); }; } && | |
7049 | { ac_try='test -s conftest.$ac_objext' | |
7050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7051 | (eval $ac_try) 2>&5 | |
7052 | ac_status=$? | |
7053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7054 | (exit $ac_status); }; }; then | |
7055 | eval "$as_ac_Header=yes" | |
7056 | else | |
7057 | echo "$as_me: failed program was:" >&5 | |
7058 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7059 | ||
7060 | eval "$as_ac_Header=no" | |
7061 | fi | |
7062 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7063 | fi | |
7064 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7065 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7066 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7067 | cat >>confdefs.h <<_ACEOF | |
7068 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7069 | _ACEOF | |
7070 | ||
7071 | fi | |
7072 | ||
7073 | done | |
7074 | ||
7075 | ||
7076 | ||
7077 | ac_ext=cc | |
7078 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7079 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7080 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7081 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7082 | if test -n "$ac_tool_prefix"; then | |
7083 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
7084 | do | |
7085 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
7086 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
7087 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7088 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7089 | if test "${ac_cv_prog_CXX+set}" = set; then | |
7090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7091 | else | |
7092 | if test -n "$CXX"; then | |
7093 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
7094 | else | |
7095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7096 | for as_dir in $PATH | |
7097 | do | |
7098 | IFS=$as_save_IFS | |
7099 | test -z "$as_dir" && as_dir=. | |
7100 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7101 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7102 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
7103 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7104 | break 2 | |
7105 | fi | |
7106 | done | |
7107 | done | |
7108 | ||
7109 | fi | |
7110 | fi | |
7111 | CXX=$ac_cv_prog_CXX | |
7112 | if test -n "$CXX"; then | |
7113 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
7114 | echo "${ECHO_T}$CXX" >&6 | |
7115 | else | |
7116 | echo "$as_me:$LINENO: result: no" >&5 | |
7117 | echo "${ECHO_T}no" >&6 | |
7118 | fi | |
7119 | ||
7120 | test -n "$CXX" && break | |
7121 | done | |
7122 | fi | |
7123 | if test -z "$CXX"; then | |
7124 | ac_ct_CXX=$CXX | |
7125 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
7126 | do | |
7127 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7128 | set dummy $ac_prog; ac_word=$2 | |
7129 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7130 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7131 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
7132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7133 | else | |
7134 | if test -n "$ac_ct_CXX"; then | |
7135 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
7136 | else | |
7137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7138 | for as_dir in $PATH | |
7139 | do | |
7140 | IFS=$as_save_IFS | |
7141 | test -z "$as_dir" && as_dir=. | |
7142 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7143 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7144 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
7145 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7146 | break 2 | |
7147 | fi | |
7148 | done | |
7149 | done | |
7150 | ||
7151 | fi | |
7152 | fi | |
7153 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
7154 | if test -n "$ac_ct_CXX"; then | |
7155 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
7156 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
7157 | else | |
7158 | echo "$as_me:$LINENO: result: no" >&5 | |
7159 | echo "${ECHO_T}no" >&6 | |
7160 | fi | |
7161 | ||
7162 | test -n "$ac_ct_CXX" && break | |
7163 | done | |
7164 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
7165 | ||
7166 | CXX=$ac_ct_CXX | |
7167 | fi | |
7168 | ||
7169 | ||
7170 | # Provide some information about the compiler. | |
7171 | echo "$as_me:$LINENO:" \ | |
7172 | "checking for C++ compiler version" >&5 | |
7173 | ac_compiler=`set X $ac_compile; echo $2` | |
7174 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
7175 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
7176 | ac_status=$? | |
7177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7178 | (exit $ac_status); } | |
7179 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
7180 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
7181 | ac_status=$? | |
7182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7183 | (exit $ac_status); } | |
7184 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
7185 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
7186 | ac_status=$? | |
7187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7188 | (exit $ac_status); } | |
7189 | ||
7190 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
7191 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
7192 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
7193 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7194 | else | |
7195 | cat >conftest.$ac_ext <<_ACEOF | |
7196 | /* confdefs.h. */ | |
7197 | _ACEOF | |
7198 | cat confdefs.h >>conftest.$ac_ext | |
7199 | cat >>conftest.$ac_ext <<_ACEOF | |
7200 | /* end confdefs.h. */ | |
7201 | ||
7202 | int | |
7203 | main () | |
7204 | { | |
7205 | #ifndef __GNUC__ | |
7206 | choke me | |
7207 | #endif | |
7208 | ||
7209 | ; | |
7210 | return 0; | |
7211 | } | |
7212 | _ACEOF | |
7213 | rm -f conftest.$ac_objext | |
7214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7215 | (eval $ac_compile) 2>conftest.er1 | |
7216 | ac_status=$? | |
7217 | grep -v '^ *+' conftest.er1 >conftest.err | |
7218 | rm -f conftest.er1 | |
7219 | cat conftest.err >&5 | |
7220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7221 | (exit $ac_status); } && | |
7222 | { ac_try='test -z "$ac_cxx_werror_flag" | |
7223 | || test ! -s conftest.err' | |
7224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7225 | (eval $ac_try) 2>&5 | |
7226 | ac_status=$? | |
7227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7228 | (exit $ac_status); }; } && | |
7229 | { ac_try='test -s conftest.$ac_objext' | |
7230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7231 | (eval $ac_try) 2>&5 | |
7232 | ac_status=$? | |
7233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7234 | (exit $ac_status); }; }; then | |
7235 | ac_compiler_gnu=yes | |
7236 | else | |
7237 | echo "$as_me: failed program was:" >&5 | |
7238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7239 | ||
7240 | ac_compiler_gnu=no | |
7241 | fi | |
7242 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7243 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
7244 | ||
7245 | fi | |
7246 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
7247 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
7248 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
7249 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
7250 | ac_save_CXXFLAGS=$CXXFLAGS | |
7251 | CXXFLAGS="-g" | |
7252 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
7253 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
7254 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
7255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7256 | else | |
7257 | cat >conftest.$ac_ext <<_ACEOF | |
7258 | /* confdefs.h. */ | |
7259 | _ACEOF | |
7260 | cat confdefs.h >>conftest.$ac_ext | |
7261 | cat >>conftest.$ac_ext <<_ACEOF | |
7262 | /* end confdefs.h. */ | |
7263 | ||
7264 | int | |
7265 | main () | |
7266 | { | |
7267 | ||
7268 | ; | |
7269 | return 0; | |
7270 | } | |
7271 | _ACEOF | |
7272 | rm -f conftest.$ac_objext | |
7273 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7274 | (eval $ac_compile) 2>conftest.er1 | |
7275 | ac_status=$? | |
7276 | grep -v '^ *+' conftest.er1 >conftest.err | |
7277 | rm -f conftest.er1 | |
7278 | cat conftest.err >&5 | |
7279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7280 | (exit $ac_status); } && | |
7281 | { ac_try='test -z "$ac_cxx_werror_flag" | |
7282 | || test ! -s conftest.err' | |
7283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7284 | (eval $ac_try) 2>&5 | |
7285 | ac_status=$? | |
7286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7287 | (exit $ac_status); }; } && | |
7288 | { ac_try='test -s conftest.$ac_objext' | |
7289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7290 | (eval $ac_try) 2>&5 | |
7291 | ac_status=$? | |
7292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7293 | (exit $ac_status); }; }; then | |
7294 | ac_cv_prog_cxx_g=yes | |
7295 | else | |
7296 | echo "$as_me: failed program was:" >&5 | |
7297 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7298 | ||
7299 | ac_cv_prog_cxx_g=no | |
7300 | fi | |
7301 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7302 | fi | |
7303 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
7304 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
7305 | if test "$ac_test_CXXFLAGS" = set; then | |
7306 | CXXFLAGS=$ac_save_CXXFLAGS | |
7307 | elif test $ac_cv_prog_cxx_g = yes; then | |
7308 | if test "$GXX" = yes; then | |
7309 | CXXFLAGS="-g -O2" | |
7310 | else | |
7311 | CXXFLAGS="-g" | |
7312 | fi | |
7313 | else | |
7314 | if test "$GXX" = yes; then | |
7315 | CXXFLAGS="-O2" | |
7316 | else | |
7317 | CXXFLAGS= | |
7318 | fi | |
7319 | fi | |
7320 | for ac_declaration in \ | |
7321 | '' \ | |
7322 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
7323 | 'extern "C" void std::exit (int); using std::exit;' \ | |
7324 | 'extern "C" void exit (int) throw ();' \ | |
7325 | 'extern "C" void exit (int);' \ | |
7326 | 'void exit (int);' | |
7327 | do | |
7328 | cat >conftest.$ac_ext <<_ACEOF | |
7329 | /* confdefs.h. */ | |
7330 | _ACEOF | |
7331 | cat confdefs.h >>conftest.$ac_ext | |
7332 | cat >>conftest.$ac_ext <<_ACEOF | |
7333 | /* end confdefs.h. */ | |
7334 | $ac_declaration | |
7335 | #include <stdlib.h> | |
7336 | int | |
7337 | main () | |
7338 | { | |
7339 | exit (42); | |
7340 | ; | |
7341 | return 0; | |
7342 | } | |
7343 | _ACEOF | |
7344 | rm -f conftest.$ac_objext | |
7345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7346 | (eval $ac_compile) 2>conftest.er1 | |
7347 | ac_status=$? | |
7348 | grep -v '^ *+' conftest.er1 >conftest.err | |
7349 | rm -f conftest.er1 | |
7350 | cat conftest.err >&5 | |
7351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7352 | (exit $ac_status); } && | |
7353 | { ac_try='test -z "$ac_cxx_werror_flag" | |
7354 | || test ! -s conftest.err' | |
7355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7356 | (eval $ac_try) 2>&5 | |
7357 | ac_status=$? | |
7358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7359 | (exit $ac_status); }; } && | |
7360 | { ac_try='test -s conftest.$ac_objext' | |
7361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7362 | (eval $ac_try) 2>&5 | |
7363 | ac_status=$? | |
7364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7365 | (exit $ac_status); }; }; then | |
7366 | : | |
7367 | else | |
7368 | echo "$as_me: failed program was:" >&5 | |
7369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7370 | ||
7371 | continue | |
7372 | fi | |
7373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7374 | cat >conftest.$ac_ext <<_ACEOF | |
7375 | /* confdefs.h. */ | |
7376 | _ACEOF | |
7377 | cat confdefs.h >>conftest.$ac_ext | |
7378 | cat >>conftest.$ac_ext <<_ACEOF | |
7379 | /* end confdefs.h. */ | |
7380 | $ac_declaration | |
7381 | int | |
7382 | main () | |
7383 | { | |
7384 | exit (42); | |
7385 | ; | |
7386 | return 0; | |
7387 | } | |
7388 | _ACEOF | |
7389 | rm -f conftest.$ac_objext | |
7390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7391 | (eval $ac_compile) 2>conftest.er1 | |
7392 | ac_status=$? | |
7393 | grep -v '^ *+' conftest.er1 >conftest.err | |
7394 | rm -f conftest.er1 | |
7395 | cat conftest.err >&5 | |
7396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7397 | (exit $ac_status); } && | |
7398 | { ac_try='test -z "$ac_cxx_werror_flag" | |
7399 | || test ! -s conftest.err' | |
7400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7401 | (eval $ac_try) 2>&5 | |
7402 | ac_status=$? | |
7403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7404 | (exit $ac_status); }; } && | |
7405 | { ac_try='test -s conftest.$ac_objext' | |
7406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7407 | (eval $ac_try) 2>&5 | |
7408 | ac_status=$? | |
7409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7410 | (exit $ac_status); }; }; then | |
7411 | break | |
7412 | else | |
7413 | echo "$as_me: failed program was:" >&5 | |
7414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7415 | ||
7416 | fi | |
7417 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7418 | done | |
7419 | rm -f conftest* | |
7420 | if test -n "$ac_declaration"; then | |
7421 | echo '#ifdef __cplusplus' >>confdefs.h | |
7422 | echo $ac_declaration >>confdefs.h | |
7423 | echo '#endif' >>confdefs.h | |
7424 | fi | |
7425 | ||
7426 | ac_ext=c | |
7427 | ac_cpp='$CPP $CPPFLAGS' | |
7428 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7429 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7430 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7431 | ||
7432 | depcc="$CXX" am_compiler_list= | |
7433 | ||
7434 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
7435 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
7436 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then | |
7437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7438 | else | |
7439 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
7440 | # We make a subdir and do the tests there. Otherwise we can end up | |
7441 | # making bogus files that we don't know about and never remove. For | |
7442 | # instance it was reported that on HP-UX the gcc test will end up | |
7443 | # making a dummy file named `D' -- because `-MD' means `put the output | |
7444 | # in D'. | |
7445 | mkdir conftest.dir | |
7446 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
7447 | # using a relative directory. | |
7448 | cp "$am_depcomp" conftest.dir | |
7449 | cd conftest.dir | |
7450 | # We will build objects and dependencies in a subdirectory because | |
7451 | # it helps to detect inapplicable dependency modes. For instance | |
7452 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
7453 | # side effect of compilation, but ICC will put the dependencies in | |
7454 | # the current directory while Tru64 will put them in the object | |
7455 | # directory. | |
7456 | mkdir sub | |
7457 | ||
7458 | am_cv_CXX_dependencies_compiler_type=none | |
7459 | if test "$am_compiler_list" = ""; then | |
7460 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
7461 | fi | |
7462 | for depmode in $am_compiler_list; do | |
7463 | # Setup a source with many dependencies, because some compilers | |
7464 | # like to wrap large dependency lists on column 80 (with \), and | |
7465 | # we should not choose a depcomp mode which is confused by this. | |
7466 | # | |
7467 | # We need to recreate these files for each test, as the compiler may | |
7468 | # overwrite some of them when testing with obscure command lines. | |
7469 | # This happens at least with the AIX C compiler. | |
7470 | : > sub/conftest.c | |
7471 | for i in 1 2 3 4 5 6; do | |
7472 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
7473 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
7474 | # Solaris 8's {/usr,}/bin/sh. | |
7475 | touch sub/conftst$i.h | |
7476 | done | |
7477 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
7478 | ||
7479 | case $depmode in | |
7480 | nosideeffect) | |
7481 | # after this tag, mechanisms are not by side-effect, so they'll | |
7482 | # only be used when explicitly requested | |
7483 | if test "x$enable_dependency_tracking" = xyes; then | |
7484 | continue | |
7485 | else | |
7486 | break | |
7487 | fi | |
7488 | ;; | |
7489 | none) break ;; | |
7490 | esac | |
7491 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
7492 | # mode. It turns out that the SunPro C++ compiler does not properly | |
7493 | # handle `-M -o', and we need to detect this. | |
7494 | if depmode=$depmode \ | |
7495 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
7496 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
7497 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
7498 | >/dev/null 2>conftest.err && | |
7499 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
7500 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
7501 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
7502 | # icc doesn't choke on unknown options, it will just issue warnings | |
7503 | # or remarks (even with -Werror). So we grep stderr for any message | |
7504 | # that says an option was ignored or not supported. | |
7505 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
7506 | # icc: Command line warning: ignoring option '-M'; no argument required | |
7507 | # The diagnosis changed in icc 8.0: | |
7508 | # icc: Command line remark: option '-MP' not supported | |
7509 | if (grep 'ignoring option' conftest.err || | |
7510 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
7511 | am_cv_CXX_dependencies_compiler_type=$depmode | |
7512 | break | |
7513 | fi | |
7514 | fi | |
7515 | done | |
7516 | ||
7517 | cd .. | |
7518 | rm -rf conftest.dir | |
7519 | else | |
7520 | am_cv_CXX_dependencies_compiler_type=none | |
7521 | fi | |
7522 | ||
7523 | fi | |
7524 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
7525 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 | |
7526 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
7527 | ||
7528 | ||
7529 | ||
7530 | if | |
7531 | test "x$enable_dependency_tracking" != xno \ | |
7532 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
7533 | am__fastdepCXX_TRUE= | |
7534 | am__fastdepCXX_FALSE='#' | |
7535 | else | |
7536 | am__fastdepCXX_TRUE='#' | |
7537 | am__fastdepCXX_FALSE= | |
7538 | fi | |
7539 | ||
7540 | ||
7541 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
7542 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
7543 | (test "X$CXX" != "Xg++"))) ; then | |
7544 | ac_ext=cc | |
7545 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7546 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7547 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7548 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7549 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
7550 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
7551 | if test -z "$CXXCPP"; then | |
7552 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
7553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7554 | else | |
7555 | # Double quotes because CXXCPP needs to be expanded | |
7556 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
7557 | do | |
7558 | ac_preproc_ok=false | |
7559 | for ac_cxx_preproc_warn_flag in '' yes | |
7560 | do | |
7561 | # Use a header file that comes with gcc, so configuring glibc | |
7562 | # with a fresh cross-compiler works. | |
7563 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7564 | # <limits.h> exists even on freestanding compilers. | |
7565 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7566 | # not just through cpp. "Syntax error" is here to catch this case. | |
7567 | cat >conftest.$ac_ext <<_ACEOF | |
7568 | /* confdefs.h. */ | |
7569 | _ACEOF | |
7570 | cat confdefs.h >>conftest.$ac_ext | |
7571 | cat >>conftest.$ac_ext <<_ACEOF | |
7572 | /* end confdefs.h. */ | |
7573 | #ifdef __STDC__ | |
7574 | # include <limits.h> | |
7575 | #else | |
7576 | # include <assert.h> | |
7577 | #endif | |
7578 | Syntax error | |
7579 | _ACEOF | |
7580 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7581 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7582 | ac_status=$? | |
7583 | grep -v '^ *+' conftest.er1 >conftest.err | |
7584 | rm -f conftest.er1 | |
7585 | cat conftest.err >&5 | |
7586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7587 | (exit $ac_status); } >/dev/null; then | |
7588 | if test -s conftest.err; then | |
7589 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
7590 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
7591 | else | |
7592 | ac_cpp_err= | |
7593 | fi | |
7594 | else | |
7595 | ac_cpp_err=yes | |
7596 | fi | |
7597 | if test -z "$ac_cpp_err"; then | |
7598 | : | |
7599 | else | |
7600 | echo "$as_me: failed program was:" >&5 | |
7601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7602 | ||
7603 | # Broken: fails on valid input. | |
7604 | continue | |
7605 | fi | |
7606 | rm -f conftest.err conftest.$ac_ext | |
7607 | ||
7608 | # OK, works on sane cases. Now check whether non-existent headers | |
7609 | # can be detected and how. | |
7610 | cat >conftest.$ac_ext <<_ACEOF | |
7611 | /* confdefs.h. */ | |
7612 | _ACEOF | |
7613 | cat confdefs.h >>conftest.$ac_ext | |
7614 | cat >>conftest.$ac_ext <<_ACEOF | |
7615 | /* end confdefs.h. */ | |
7616 | #include <ac_nonexistent.h> | |
7617 | _ACEOF | |
7618 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7619 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7620 | ac_status=$? | |
7621 | grep -v '^ *+' conftest.er1 >conftest.err | |
7622 | rm -f conftest.er1 | |
7623 | cat conftest.err >&5 | |
7624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7625 | (exit $ac_status); } >/dev/null; then | |
7626 | if test -s conftest.err; then | |
7627 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
7628 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
7629 | else | |
7630 | ac_cpp_err= | |
7631 | fi | |
7632 | else | |
7633 | ac_cpp_err=yes | |
7634 | fi | |
7635 | if test -z "$ac_cpp_err"; then | |
7636 | # Broken: success on invalid input. | |
7637 | continue | |
7638 | else | |
7639 | echo "$as_me: failed program was:" >&5 | |
7640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7641 | ||
7642 | # Passes both tests. | |
7643 | ac_preproc_ok=: | |
7644 | break | |
7645 | fi | |
7646 | rm -f conftest.err conftest.$ac_ext | |
7647 | ||
7648 | done | |
7649 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7650 | rm -f conftest.err conftest.$ac_ext | |
7651 | if $ac_preproc_ok; then | |
7652 | break | |
7653 | fi | |
7654 | ||
7655 | done | |
7656 | ac_cv_prog_CXXCPP=$CXXCPP | |
7657 | ||
7658 | fi | |
7659 | CXXCPP=$ac_cv_prog_CXXCPP | |
7660 | else | |
7661 | ac_cv_prog_CXXCPP=$CXXCPP | |
7662 | fi | |
7663 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
7664 | echo "${ECHO_T}$CXXCPP" >&6 | |
7665 | ac_preproc_ok=false | |
7666 | for ac_cxx_preproc_warn_flag in '' yes | |
7667 | do | |
7668 | # Use a header file that comes with gcc, so configuring glibc | |
7669 | # with a fresh cross-compiler works. | |
7670 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7671 | # <limits.h> exists even on freestanding compilers. | |
7672 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7673 | # not just through cpp. "Syntax error" is here to catch this case. | |
7674 | cat >conftest.$ac_ext <<_ACEOF | |
7675 | /* confdefs.h. */ | |
7676 | _ACEOF | |
7677 | cat confdefs.h >>conftest.$ac_ext | |
7678 | cat >>conftest.$ac_ext <<_ACEOF | |
7679 | /* end confdefs.h. */ | |
7680 | #ifdef __STDC__ | |
7681 | # include <limits.h> | |
7682 | #else | |
7683 | # include <assert.h> | |
7684 | #endif | |
7685 | Syntax error | |
7686 | _ACEOF | |
7687 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7688 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7689 | ac_status=$? | |
7690 | grep -v '^ *+' conftest.er1 >conftest.err | |
7691 | rm -f conftest.er1 | |
7692 | cat conftest.err >&5 | |
7693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7694 | (exit $ac_status); } >/dev/null; then | |
7695 | if test -s conftest.err; then | |
7696 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
7697 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
7698 | else | |
7699 | ac_cpp_err= | |
7700 | fi | |
7701 | else | |
7702 | ac_cpp_err=yes | |
7703 | fi | |
7704 | if test -z "$ac_cpp_err"; then | |
7705 | : | |
7706 | else | |
7707 | echo "$as_me: failed program was:" >&5 | |
7708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7709 | ||
7710 | # Broken: fails on valid input. | |
7711 | continue | |
7712 | fi | |
7713 | rm -f conftest.err conftest.$ac_ext | |
7714 | ||
7715 | # OK, works on sane cases. Now check whether non-existent headers | |
7716 | # can be detected and how. | |
7717 | cat >conftest.$ac_ext <<_ACEOF | |
7718 | /* confdefs.h. */ | |
7719 | _ACEOF | |
7720 | cat confdefs.h >>conftest.$ac_ext | |
7721 | cat >>conftest.$ac_ext <<_ACEOF | |
7722 | /* end confdefs.h. */ | |
7723 | #include <ac_nonexistent.h> | |
7724 | _ACEOF | |
7725 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7726 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7727 | ac_status=$? | |
7728 | grep -v '^ *+' conftest.er1 >conftest.err | |
7729 | rm -f conftest.er1 | |
7730 | cat conftest.err >&5 | |
7731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7732 | (exit $ac_status); } >/dev/null; then | |
7733 | if test -s conftest.err; then | |
7734 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
7735 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
7736 | else | |
7737 | ac_cpp_err= | |
7738 | fi | |
7739 | else | |
7740 | ac_cpp_err=yes | |
7741 | fi | |
7742 | if test -z "$ac_cpp_err"; then | |
7743 | # Broken: success on invalid input. | |
7744 | continue | |
7745 | else | |
7746 | echo "$as_me: failed program was:" >&5 | |
7747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7748 | ||
7749 | # Passes both tests. | |
7750 | ac_preproc_ok=: | |
7751 | break | |
7752 | fi | |
7753 | rm -f conftest.err conftest.$ac_ext | |
7754 | ||
7755 | done | |
7756 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7757 | rm -f conftest.err conftest.$ac_ext | |
7758 | if $ac_preproc_ok; then | |
7759 | : | |
7760 | else | |
18c04407 RW |
7761 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
7762 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7763 | _lt_caught_CXX_error=yes; } | |
1cf3d07d SE |
7764 | fi |
7765 | ||
93e92f52 PG |
7766 | ac_ext=c |
7767 | ac_cpp='$CPP $CPPFLAGS' | |
7768 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7769 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7770 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7771 | ||
7772 | else | |
7773 | _lt_caught_CXX_error=yes | |
7774 | fi | |
7775 | ||
7776 | ||
7777 | ||
7778 | ||
7779 | ||
7780 | # Set options | |
7781 | ||
7782 | ||
7783 | ||
7784 | enable_dlopen=no | |
7785 | ||
7786 | ||
7787 | enable_win32_dll=no | |
7788 | ||
7789 | ||
7790 | # Check whether --enable-shared or --disable-shared was given. | |
7791 | if test "${enable_shared+set}" = set; then | |
7792 | enableval="$enable_shared" | |
7793 | p=${PACKAGE-default} | |
7794 | case $enableval in | |
7795 | yes) enable_shared=yes ;; | |
7796 | no) enable_shared=no ;; | |
7797 | *) | |
7798 | enable_shared=no | |
7799 | # Look at the argument we got. We use all the common list separators. | |
7800 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7801 | for pkg in $enableval; do | |
7802 | IFS="$lt_save_ifs" | |
7803 | if test "X$pkg" = "X$p"; then | |
7804 | enable_shared=yes | |
7805 | fi | |
7806 | done | |
7807 | IFS="$lt_save_ifs" | |
7808 | ;; | |
7809 | esac | |
7810 | else | |
7811 | enable_shared=yes | |
7812 | fi; | |
7813 | ||
7814 | ||
7815 | ||
7816 | ||
7817 | ||
7818 | ||
7819 | ||
7820 | ||
7821 | # Check whether --enable-static or --disable-static was given. | |
7822 | if test "${enable_static+set}" = set; then | |
7823 | enableval="$enable_static" | |
7824 | p=${PACKAGE-default} | |
7825 | case $enableval in | |
7826 | yes) enable_static=yes ;; | |
7827 | no) enable_static=no ;; | |
7828 | *) | |
7829 | enable_static=no | |
7830 | # Look at the argument we got. We use all the common list separators. | |
7831 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7832 | for pkg in $enableval; do | |
7833 | IFS="$lt_save_ifs" | |
7834 | if test "X$pkg" = "X$p"; then | |
7835 | enable_static=yes | |
7836 | fi | |
7837 | done | |
7838 | IFS="$lt_save_ifs" | |
7839 | ;; | |
7840 | esac | |
7841 | else | |
7842 | enable_static=yes | |
7843 | fi; | |
7844 | ||
7845 | ||
7846 | ||
7847 | ||
7848 | ||
7849 | ||
7850 | ||
7851 | ||
7852 | ||
7853 | # Check whether --with-pic or --without-pic was given. | |
7854 | if test "${with_pic+set}" = set; then | |
7855 | withval="$with_pic" | |
7856 | pic_mode="$withval" | |
7857 | else | |
7858 | pic_mode=default | |
7859 | fi; | |
7860 | ||
7861 | test -z "$pic_mode" && pic_mode=default | |
7862 | ||
7863 | ||
7864 | ||
7865 | ||
7866 | ||
7867 | ||
7868 | ||
7869 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
7870 | if test "${enable_fast_install+set}" = set; then | |
7871 | enableval="$enable_fast_install" | |
7872 | p=${PACKAGE-default} | |
7873 | case $enableval in | |
7874 | yes) enable_fast_install=yes ;; | |
7875 | no) enable_fast_install=no ;; | |
7876 | *) | |
7877 | enable_fast_install=no | |
7878 | # Look at the argument we got. We use all the common list separators. | |
7879 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7880 | for pkg in $enableval; do | |
7881 | IFS="$lt_save_ifs" | |
7882 | if test "X$pkg" = "X$p"; then | |
7883 | enable_fast_install=yes | |
7884 | fi | |
7885 | done | |
7886 | IFS="$lt_save_ifs" | |
7887 | ;; | |
7888 | esac | |
7889 | else | |
7890 | enable_fast_install=yes | |
7891 | fi; | |
7892 | ||
7893 | ||
7894 | ||
7895 | ||
1cf3d07d | 7896 | |
1cf3d07d SE |
7897 | |
7898 | ||
7899 | ||
7900 | ||
7901 | ||
7902 | # This can be used to rebuild libtool when needed | |
7903 | LIBTOOL_DEPS="$ltmain" | |
7904 | ||
7905 | # Always use our own libtool. | |
7906 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
7907 | ||
7908 | ||
7909 | ||
7910 | ||
7911 | ||
7912 | ||
7913 | ||
7914 | ||
7915 | ||
7916 | ||
7917 | ||
7918 | ||
7919 | ||
7920 | ||
7921 | ||
7922 | ||
7923 | ||
7924 | ||
7925 | ||
7926 | ||
7927 | ||
7928 | ||
7929 | ||
7930 | ||
7931 | ||
7932 | test -z "$LN_S" && LN_S="ln -s" | |
7933 | ||
7934 | ||
7935 | ||
7936 | ||
7937 | ||
7938 | ||
7939 | ||
7940 | ||
7941 | ||
7942 | ||
7943 | ||
7944 | ||
7945 | ||
7946 | ||
7947 | if test -n "${ZSH_VERSION+set}" ; then | |
7948 | setopt NO_GLOB_SUBST | |
7949 | fi | |
7950 | ||
7951 | echo "$as_me:$LINENO: checking for objdir" >&5 | |
7952 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | |
7953 | if test "${lt_cv_objdir+set}" = set; then | |
7954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7955 | else | |
7956 | rm -f .libs 2>/dev/null | |
7957 | mkdir .libs 2>/dev/null | |
7958 | if test -d .libs; then | |
7959 | lt_cv_objdir=.libs | |
7960 | else | |
7961 | # MS-DOS does not allow filenames that begin with a dot. | |
7962 | lt_cv_objdir=_libs | |
7963 | fi | |
7964 | rmdir .libs 2>/dev/null | |
7965 | fi | |
7966 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
7967 | echo "${ECHO_T}$lt_cv_objdir" >&6 | |
7968 | objdir=$lt_cv_objdir | |
7969 | ||
7970 | ||
7971 | ||
7972 | ||
7973 | ||
7974 | cat >>confdefs.h <<_ACEOF | |
7975 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7976 | _ACEOF | |
7977 | ||
7978 | ||
7979 | ||
7980 | ||
7981 | ||
7982 | ||
7983 | ||
7984 | ||
7985 | ||
7986 | ||
7987 | ||
7988 | ||
7989 | ||
7990 | ||
7991 | ||
7992 | ||
7993 | ||
7994 | case $host_os in | |
7995 | aix3*) | |
7996 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7997 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7998 | # vanish in a puff of smoke. | |
7999 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8000 | COLLECT_NAMES= | |
8001 | export COLLECT_NAMES | |
8002 | fi | |
8003 | ;; | |
8004 | esac | |
8005 | ||
8006 | # Sed substitution that helps us do robust quoting. It backslashifies | |
8007 | # metacharacters that are still active within double-quoted strings. | |
8008 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
8009 | ||
8010 | # Same as above, but do not quote variable references. | |
8011 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
8012 | ||
8013 | # Sed substitution to delay expansion of an escaped shell variable in a | |
8014 | # double_quote_subst'ed string. | |
8015 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
8016 | ||
8017 | # Sed substitution to delay expansion of an escaped single quote. | |
8018 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
8019 | ||
8020 | # Sed substitution to avoid accidental globbing in evaled expressions | |
8021 | no_glob_subst='s/\*/\\\*/g' | |
8022 | ||
8023 | # Global variables: | |
8024 | ofile=libtool | |
8025 | can_build_shared=yes | |
8026 | ||
8027 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
8028 | # which needs '.lib'). | |
8029 | libext=a | |
8030 | ||
8031 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
8032 | ||
8033 | old_CC="$CC" | |
8034 | old_CFLAGS="$CFLAGS" | |
8035 | ||
8036 | # Set sane defaults for various variables | |
8037 | test -z "$CC" && CC=cc | |
8038 | test -z "$LTCC" && LTCC=$CC | |
8039 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8040 | test -z "$LD" && LD=ld | |
8041 | test -z "$ac_objext" && ac_objext=o | |
8042 | ||
8043 | for cc_temp in $compiler""; do | |
8044 | case $cc_temp in | |
8045 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8046 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8047 | \-*) ;; | |
8048 | *) break;; | |
8049 | esac | |
8050 | done | |
8051 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
8052 | ||
8053 | ||
8054 | # Only perform the check for file, if the check method requires it | |
8055 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8056 | case $deplibs_check_method in | |
8057 | file_magic*) | |
8058 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8059 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
8060 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
8061 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
8062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8063 | else | |
8064 | case $MAGIC_CMD in | |
8065 | [\\/*] | ?:[\\/]*) | |
8066 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8067 | ;; | |
8068 | *) | |
8069 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8070 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8071 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8072 | for ac_dir in $ac_dummy; do | |
8073 | IFS="$lt_save_ifs" | |
8074 | test -z "$ac_dir" && ac_dir=. | |
8075 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8076 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8077 | if test -n "$file_magic_test_file"; then | |
8078 | case $deplibs_check_method in | |
8079 | "file_magic "*) | |
8080 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8081 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8082 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8083 | $EGREP "$file_magic_regex" > /dev/null; then | |
8084 | : | |
8085 | else | |
8086 | cat <<_LT_EOF 1>&2 | |
8087 | ||
8088 | *** Warning: the command libtool uses to detect shared libraries, | |
8089 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8090 | *** The result is that libtool may fail to recognize shared libraries | |
8091 | *** as such. This will affect the creation of libtool libraries that | |
8092 | *** depend on shared libraries, but programs linked with such libtool | |
8093 | *** libraries will work regardless of this problem. Nevertheless, you | |
8094 | *** may want to report the problem to your system manager and/or to | |
8095 | *** bug-libtool@gnu.org | |
8096 | ||
8097 | _LT_EOF | |
8098 | fi ;; | |
8099 | esac | |
8100 | fi | |
8101 | break | |
8102 | fi | |
8103 | done | |
8104 | IFS="$lt_save_ifs" | |
8105 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8106 | ;; | |
8107 | esac | |
8108 | fi | |
8109 | ||
8110 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8111 | if test -n "$MAGIC_CMD"; then | |
8112 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
8113 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
8114 | else | |
8115 | echo "$as_me:$LINENO: result: no" >&5 | |
8116 | echo "${ECHO_T}no" >&6 | |
8117 | fi | |
8118 | ||
8119 | ||
8120 | ||
8121 | ||
8122 | ||
8123 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8124 | if test -n "$ac_tool_prefix"; then | |
8125 | echo "$as_me:$LINENO: checking for file" >&5 | |
8126 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
8127 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
8128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8129 | else | |
8130 | case $MAGIC_CMD in | |
8131 | [\\/*] | ?:[\\/]*) | |
8132 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8133 | ;; | |
8134 | *) | |
8135 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8136 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8137 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8138 | for ac_dir in $ac_dummy; do | |
8139 | IFS="$lt_save_ifs" | |
8140 | test -z "$ac_dir" && ac_dir=. | |
8141 | if test -f $ac_dir/file; then | |
8142 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8143 | if test -n "$file_magic_test_file"; then | |
8144 | case $deplibs_check_method in | |
8145 | "file_magic "*) | |
8146 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8147 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8148 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8149 | $EGREP "$file_magic_regex" > /dev/null; then | |
8150 | : | |
8151 | else | |
8152 | cat <<_LT_EOF 1>&2 | |
8153 | ||
8154 | *** Warning: the command libtool uses to detect shared libraries, | |
8155 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8156 | *** The result is that libtool may fail to recognize shared libraries | |
8157 | *** as such. This will affect the creation of libtool libraries that | |
8158 | *** depend on shared libraries, but programs linked with such libtool | |
8159 | *** libraries will work regardless of this problem. Nevertheless, you | |
8160 | *** may want to report the problem to your system manager and/or to | |
8161 | *** bug-libtool@gnu.org | |
8162 | ||
8163 | _LT_EOF | |
8164 | fi ;; | |
8165 | esac | |
8166 | fi | |
8167 | break | |
8168 | fi | |
8169 | done | |
8170 | IFS="$lt_save_ifs" | |
8171 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8172 | ;; | |
8173 | esac | |
8174 | fi | |
8175 | ||
8176 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8177 | if test -n "$MAGIC_CMD"; then | |
8178 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
8179 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
8180 | else | |
8181 | echo "$as_me:$LINENO: result: no" >&5 | |
8182 | echo "${ECHO_T}no" >&6 | |
8183 | fi | |
8184 | ||
8185 | ||
8186 | else | |
8187 | MAGIC_CMD=: | |
8188 | fi | |
8189 | fi | |
8190 | ||
8191 | fi | |
8192 | ;; | |
8193 | esac | |
8194 | ||
8195 | # Use C for the default configuration in the libtool script | |
8196 | ||
8197 | lt_save_CC="$CC" | |
8198 | ac_ext=c | |
8199 | ac_cpp='$CPP $CPPFLAGS' | |
8200 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8201 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8202 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8203 | ||
8204 | ||
8205 | # Source file extension for C test sources. | |
8206 | ac_ext=c | |
8207 | ||
8208 | # Object file extension for compiled C test sources. | |
8209 | objext=o | |
8210 | objext=$objext | |
8211 | ||
8212 | # Code to be used in simple compile tests | |
8213 | lt_simple_compile_test_code="int some_variable = 0;" | |
8214 | ||
8215 | # Code to be used in simple link tests | |
8216 | lt_simple_link_test_code='int main(){return(0);}' | |
8217 | ||
8218 | ||
8219 | ||
8220 | ||
8221 | ||
8222 | ||
8223 | ||
8224 | # If no C compiler was specified, use CC. | |
8225 | LTCC=${LTCC-"$CC"} | |
8226 | ||
8227 | # If no C compiler flags were specified, use CFLAGS. | |
8228 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8229 | ||
8230 | # Allow CC to be a program name with arguments. | |
8231 | compiler=$CC | |
8232 | ||
8233 | # Save the default compiler, since it gets overwritten when the other | |
8234 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8235 | compiler_DEFAULT=$CC | |
8236 | ||
8237 | # save warnings/boilerplate of simple test code | |
8238 | ac_outfile=conftest.$ac_objext | |
8239 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8240 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8241 | _lt_compiler_boilerplate=`cat conftest.err` | |
8242 | $RM conftest* | |
8243 | ||
8244 | ac_outfile=conftest.$ac_objext | |
8245 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8246 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8247 | _lt_linker_boilerplate=`cat conftest.err` | |
93e92f52 | 8248 | $RM -r conftest* |
1cf3d07d SE |
8249 | |
8250 | ||
8251 | ## CAVEAT EMPTOR: | |
8252 | ## There is no encapsulation within the following macros, do not change | |
8253 | ## the running order or otherwise move them around unless you know exactly | |
8254 | ## what you are doing... | |
8255 | if test -n "$compiler"; then | |
8256 | ||
8257 | lt_prog_compiler_no_builtin_flag= | |
8258 | ||
8259 | if test "$GCC" = yes; then | |
8260 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
8261 | ||
8262 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
8263 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
8264 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
8265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8266 | else | |
8267 | lt_cv_prog_compiler_rtti_exceptions=no | |
8268 | ac_outfile=conftest.$ac_objext | |
8269 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8270 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8271 | # Insert the option either (1) after the last *FLAGS variable, or | |
8272 | # (2) before a word containing "conftest.", or (3) at the end. | |
8273 | # Note that $ac_compile itself does not contain backslashes and begins | |
8274 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8275 | # The option is referenced via a variable to avoid confusing sed. | |
8276 | lt_compile=`echo "$ac_compile" | $SED \ | |
8277 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8278 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8279 | -e 's:$: $lt_compiler_flag:'` | |
93e92f52 | 8280 | (eval echo "\"\$as_me:8280: $lt_compile\"" >&5) |
1cf3d07d SE |
8281 | (eval "$lt_compile" 2>conftest.err) |
8282 | ac_status=$? | |
8283 | cat conftest.err >&5 | |
93e92f52 | 8284 | echo "$as_me:8284: \$? = $ac_status" >&5 |
1cf3d07d SE |
8285 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8286 | # The compiler can only warn and ignore the option if not recognized | |
8287 | # So say no if there are warnings other than the usual output. | |
8288 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
8289 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8290 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8291 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8292 | fi | |
8293 | fi | |
8294 | $RM conftest* | |
8295 | ||
8296 | fi | |
8297 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8298 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
8299 | ||
8300 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8301 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8302 | else | |
8303 | : | |
8304 | fi | |
8305 | ||
8306 | fi | |
8307 | ||
8308 | ||
8309 | ||
8310 | ||
8311 | ||
8312 | ||
8313 | lt_prog_compiler_wl= | |
8314 | lt_prog_compiler_pic= | |
8315 | lt_prog_compiler_static= | |
8316 | ||
8317 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
8318 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
8319 | ||
8320 | if test "$GCC" = yes; then | |
8321 | lt_prog_compiler_wl='-Wl,' | |
8322 | lt_prog_compiler_static='-static' | |
8323 | ||
8324 | case $host_os in | |
8325 | aix*) | |
8326 | # All AIX code is PIC. | |
8327 | if test "$host_cpu" = ia64; then | |
8328 | # AIX 5 now supports IA64 processor | |
8329 | lt_prog_compiler_static='-Bstatic' | |
8330 | fi | |
8331 | ;; | |
8332 | ||
8333 | amigaos*) | |
93e92f52 PG |
8334 | case $host_cpu in |
8335 | powerpc) | |
8336 | # see comment about AmigaOS4 .so support | |
8337 | lt_prog_compiler_pic='-fPIC' | |
8338 | ;; | |
8339 | m68k) | |
8340 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8341 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8342 | # like `-m68040'. | |
8343 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8344 | ;; | |
8345 | esac | |
1cf3d07d SE |
8346 | ;; |
8347 | ||
8348 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8349 | # PIC is the default for these OSes. | |
8350 | ;; | |
8351 | ||
93e92f52 | 8352 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
8353 | # This hack is so that the source file can tell whether it is being |
8354 | # built for inclusion in a dll (and should export symbols for example). | |
8355 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8356 | # (--disable-auto-import) libraries | |
8357 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8358 | ;; | |
8359 | ||
8360 | darwin* | rhapsody*) | |
8361 | # PIC is the default on this platform | |
8362 | # Common symbols not allowed in MH_DYLIB files | |
8363 | lt_prog_compiler_pic='-fno-common' | |
8364 | ;; | |
8365 | ||
8366 | hpux*) | |
93e92f52 PG |
8367 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
8368 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8369 | # sets the default TLS model and affects inlining. | |
1cf3d07d | 8370 | case $host_cpu in |
93e92f52 | 8371 | hppa*64*) |
1cf3d07d SE |
8372 | # +Z the default |
8373 | ;; | |
8374 | *) | |
8375 | lt_prog_compiler_pic='-fPIC' | |
8376 | ;; | |
8377 | esac | |
8378 | ;; | |
8379 | ||
8380 | interix[3-9]*) | |
8381 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8382 | # Instead, we relocate shared libraries at runtime. | |
8383 | ;; | |
8384 | ||
8385 | msdosdjgpp*) | |
8386 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8387 | # on systems that don't support them. | |
8388 | lt_prog_compiler_can_build_shared=no | |
8389 | enable_shared=no | |
8390 | ;; | |
8391 | ||
8392 | *nto* | *qnx*) | |
8393 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8394 | # it will coredump. | |
8395 | lt_prog_compiler_pic='-fPIC -shared' | |
8396 | ;; | |
8397 | ||
8398 | sysv4*MP*) | |
8399 | if test -d /usr/nec; then | |
8400 | lt_prog_compiler_pic=-Kconform_pic | |
8401 | fi | |
8402 | ;; | |
8403 | ||
8404 | *) | |
8405 | lt_prog_compiler_pic='-fPIC' | |
8406 | ;; | |
8407 | esac | |
8408 | else | |
8409 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8410 | case $host_os in | |
8411 | aix*) | |
8412 | lt_prog_compiler_wl='-Wl,' | |
8413 | if test "$host_cpu" = ia64; then | |
8414 | # AIX 5 now supports IA64 processor | |
8415 | lt_prog_compiler_static='-Bstatic' | |
8416 | else | |
8417 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8418 | fi | |
8419 | ;; | |
1cf3d07d | 8420 | |
93e92f52 | 8421 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
1cf3d07d SE |
8422 | # This hack is so that the source file can tell whether it is being |
8423 | # built for inclusion in a dll (and should export symbols for example). | |
8424 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8425 | ;; | |
8426 | ||
8427 | hpux9* | hpux10* | hpux11*) | |
8428 | lt_prog_compiler_wl='-Wl,' | |
8429 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8430 | # not for PA HP-UX. | |
8431 | case $host_cpu in | |
8432 | hppa*64*|ia64*) | |
8433 | # +Z the default | |
8434 | ;; | |
8435 | *) | |
8436 | lt_prog_compiler_pic='+Z' | |
8437 | ;; | |
8438 | esac | |
8439 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8440 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8441 | ;; | |
8442 | ||
8443 | irix5* | irix6* | nonstopux*) | |
8444 | lt_prog_compiler_wl='-Wl,' | |
8445 | # PIC (with -KPIC) is the default. | |
8446 | lt_prog_compiler_static='-non_shared' | |
8447 | ;; | |
8448 | ||
8449 | linux* | k*bsd*-gnu) | |
8450 | case $cc_basename in | |
93e92f52 PG |
8451 | # old Intel for x86_64 which still supported -KPIC. |
8452 | ecc*) | |
1cf3d07d SE |
8453 | lt_prog_compiler_wl='-Wl,' |
8454 | lt_prog_compiler_pic='-KPIC' | |
8455 | lt_prog_compiler_static='-static' | |
8456 | ;; | |
93e92f52 PG |
8457 | # icc used to be incompatible with GCC. |
8458 | # ICC 10 doesn't accept -KPIC any more. | |
8459 | icc* | ifort*) | |
8460 | lt_prog_compiler_wl='-Wl,' | |
8461 | lt_prog_compiler_pic='-fPIC' | |
8462 | lt_prog_compiler_static='-static' | |
8463 | ;; | |
8464 | # Lahey Fortran 8.1. | |
8465 | lf95*) | |
8466 | lt_prog_compiler_wl='-Wl,' | |
8467 | lt_prog_compiler_pic='--shared' | |
8468 | lt_prog_compiler_static='--static' | |
8469 | ;; | |
1cf3d07d SE |
8470 | pgcc* | pgf77* | pgf90* | pgf95*) |
8471 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8472 | # which looks to be a dead project) | |
8473 | lt_prog_compiler_wl='-Wl,' | |
8474 | lt_prog_compiler_pic='-fpic' | |
8475 | lt_prog_compiler_static='-Bstatic' | |
8476 | ;; | |
8477 | ccc*) | |
8478 | lt_prog_compiler_wl='-Wl,' | |
8479 | # All Alpha code is PIC. | |
8480 | lt_prog_compiler_static='-non_shared' | |
8481 | ;; | |
93e92f52 PG |
8482 | xl*) |
8483 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
8484 | lt_prog_compiler_wl='-Wl,' | |
8485 | lt_prog_compiler_pic='-qpic' | |
8486 | lt_prog_compiler_static='-qstaticlink' | |
8487 | ;; | |
1cf3d07d SE |
8488 | *) |
8489 | case `$CC -V 2>&1 | sed 5q` in | |
8490 | *Sun\ C*) | |
8491 | # Sun C 5.9 | |
8492 | lt_prog_compiler_pic='-KPIC' | |
8493 | lt_prog_compiler_static='-Bstatic' | |
8494 | lt_prog_compiler_wl='-Wl,' | |
8495 | ;; | |
8496 | *Sun\ F*) | |
8497 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8498 | lt_prog_compiler_pic='-KPIC' | |
8499 | lt_prog_compiler_static='-Bstatic' | |
8500 | lt_prog_compiler_wl='' | |
8501 | ;; | |
8502 | esac | |
8503 | ;; | |
8504 | esac | |
8505 | ;; | |
8506 | ||
8507 | newsos6) | |
8508 | lt_prog_compiler_pic='-KPIC' | |
8509 | lt_prog_compiler_static='-Bstatic' | |
8510 | ;; | |
8511 | ||
8512 | *nto* | *qnx*) | |
8513 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8514 | # it will coredump. | |
8515 | lt_prog_compiler_pic='-fPIC -shared' | |
8516 | ;; | |
8517 | ||
8518 | osf3* | osf4* | osf5*) | |
8519 | lt_prog_compiler_wl='-Wl,' | |
8520 | # All OSF/1 code is PIC. | |
8521 | lt_prog_compiler_static='-non_shared' | |
8522 | ;; | |
8523 | ||
8524 | rdos*) | |
8525 | lt_prog_compiler_static='-non_shared' | |
8526 | ;; | |
8527 | ||
8528 | solaris*) | |
8529 | lt_prog_compiler_pic='-KPIC' | |
8530 | lt_prog_compiler_static='-Bstatic' | |
8531 | case $cc_basename in | |
8532 | f77* | f90* | f95*) | |
8533 | lt_prog_compiler_wl='-Qoption ld ';; | |
8534 | *) | |
8535 | lt_prog_compiler_wl='-Wl,';; | |
8536 | esac | |
8537 | ;; | |
8538 | ||
8539 | sunos4*) | |
8540 | lt_prog_compiler_wl='-Qoption ld ' | |
8541 | lt_prog_compiler_pic='-PIC' | |
8542 | lt_prog_compiler_static='-Bstatic' | |
8543 | ;; | |
8544 | ||
8545 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8546 | lt_prog_compiler_wl='-Wl,' | |
8547 | lt_prog_compiler_pic='-KPIC' | |
8548 | lt_prog_compiler_static='-Bstatic' | |
8549 | ;; | |
8550 | ||
8551 | sysv4*MP*) | |
8552 | if test -d /usr/nec ;then | |
8553 | lt_prog_compiler_pic='-Kconform_pic' | |
8554 | lt_prog_compiler_static='-Bstatic' | |
8555 | fi | |
8556 | ;; | |
8557 | ||
8558 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8559 | lt_prog_compiler_wl='-Wl,' | |
8560 | lt_prog_compiler_pic='-KPIC' | |
8561 | lt_prog_compiler_static='-Bstatic' | |
8562 | ;; | |
8563 | ||
8564 | unicos*) | |
8565 | lt_prog_compiler_wl='-Wl,' | |
8566 | lt_prog_compiler_can_build_shared=no | |
8567 | ;; | |
8568 | ||
8569 | uts4*) | |
8570 | lt_prog_compiler_pic='-pic' | |
8571 | lt_prog_compiler_static='-Bstatic' | |
8572 | ;; | |
8573 | ||
8574 | *) | |
8575 | lt_prog_compiler_can_build_shared=no | |
8576 | ;; | |
8577 | esac | |
8578 | fi | |
8579 | ||
8580 | case $host_os in | |
8581 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8582 | *djgpp*) | |
8583 | lt_prog_compiler_pic= | |
8584 | ;; | |
8585 | *) | |
8586 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8587 | ;; | |
8588 | esac | |
8589 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
8590 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | |
8591 | ||
8592 | ||
8593 | ||
8594 | ||
8595 | ||
8596 | ||
8597 | # | |
8598 | # Check to make sure the PIC flag actually works. | |
8599 | # | |
8600 | if test -n "$lt_prog_compiler_pic"; then | |
8601 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8602 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | |
93e92f52 | 8603 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then |
1cf3d07d SE |
8604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8605 | else | |
93e92f52 | 8606 | lt_cv_prog_compiler_pic_works=no |
1cf3d07d SE |
8607 | ac_outfile=conftest.$ac_objext |
8608 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8609 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8610 | # Insert the option either (1) after the last *FLAGS variable, or | |
8611 | # (2) before a word containing "conftest.", or (3) at the end. | |
8612 | # Note that $ac_compile itself does not contain backslashes and begins | |
8613 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8614 | # The option is referenced via a variable to avoid confusing sed. | |
8615 | lt_compile=`echo "$ac_compile" | $SED \ | |
8616 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8617 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8618 | -e 's:$: $lt_compiler_flag:'` | |
93e92f52 | 8619 | (eval echo "\"\$as_me:8619: $lt_compile\"" >&5) |
1cf3d07d SE |
8620 | (eval "$lt_compile" 2>conftest.err) |
8621 | ac_status=$? | |
8622 | cat conftest.err >&5 | |
93e92f52 | 8623 | echo "$as_me:8623: \$? = $ac_status" >&5 |
1cf3d07d SE |
8624 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8625 | # The compiler can only warn and ignore the option if not recognized | |
8626 | # So say no if there are warnings other than the usual output. | |
8627 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
8628 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8629 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
93e92f52 | 8630 | lt_cv_prog_compiler_pic_works=yes |
1cf3d07d SE |
8631 | fi |
8632 | fi | |
8633 | $RM conftest* | |
8634 | ||
8635 | fi | |
93e92f52 PG |
8636 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 |
8637 | echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6 | |
1cf3d07d | 8638 | |
93e92f52 | 8639 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
1cf3d07d SE |
8640 | case $lt_prog_compiler_pic in |
8641 | "" | " "*) ;; | |
8642 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8643 | esac | |
8644 | else | |
8645 | lt_prog_compiler_pic= | |
8646 | lt_prog_compiler_can_build_shared=no | |
8647 | fi | |
8648 | ||
8649 | fi | |
8650 | ||
8651 | ||
8652 | ||
8653 | ||
8654 | ||
8655 | ||
8656 | # | |
8657 | # Check to make sure the static flag actually works. | |
8658 | # | |
8659 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
8660 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
8661 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
93e92f52 | 8662 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then |
1cf3d07d SE |
8663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8664 | else | |
93e92f52 | 8665 | lt_cv_prog_compiler_static_works=no |
1cf3d07d SE |
8666 | save_LDFLAGS="$LDFLAGS" |
8667 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8668 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8669 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8670 | # The linker can only warn and ignore the option if not recognized | |
8671 | # So say no if there are warnings | |
8672 | if test -s conftest.err; then | |
8673 | # Append any errors to the config.log. | |
8674 | cat conftest.err 1>&5 | |
8675 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
8676 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8677 | if diff conftest.exp conftest.er2 >/dev/null; then | |
93e92f52 | 8678 | lt_cv_prog_compiler_static_works=yes |
1cf3d07d SE |
8679 | fi |
8680 | else | |
93e92f52 | 8681 | lt_cv_prog_compiler_static_works=yes |
1cf3d07d SE |
8682 | fi |
8683 | fi | |
93e92f52 | 8684 | $RM -r conftest* |
1cf3d07d SE |
8685 | LDFLAGS="$save_LDFLAGS" |
8686 | ||
8687 | fi | |
93e92f52 PG |
8688 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 |
8689 | echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6 | |
1cf3d07d | 8690 | |
93e92f52 | 8691 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
1cf3d07d SE |
8692 | : |
8693 | else | |
8694 | lt_prog_compiler_static= | |
8695 | fi | |
8696 | ||
8697 | ||
8698 | ||
8699 | ||
8700 | ||
8701 | ||
8702 | ||
8703 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8704 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
8705 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
8706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8707 | else | |
8708 | lt_cv_prog_compiler_c_o=no | |
8709 | $RM -r conftest 2>/dev/null | |
8710 | mkdir conftest | |
8711 | cd conftest | |
8712 | mkdir out | |
8713 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8714 | ||
8715 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8716 | # Insert the option either (1) after the last *FLAGS variable, or | |
8717 | # (2) before a word containing "conftest.", or (3) at the end. | |
8718 | # Note that $ac_compile itself does not contain backslashes and begins | |
8719 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8720 | lt_compile=`echo "$ac_compile" | $SED \ | |
8721 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8722 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8723 | -e 's:$: $lt_compiler_flag:'` | |
93e92f52 | 8724 | (eval echo "\"\$as_me:8724: $lt_compile\"" >&5) |
1cf3d07d SE |
8725 | (eval "$lt_compile" 2>out/conftest.err) |
8726 | ac_status=$? | |
8727 | cat out/conftest.err >&5 | |
93e92f52 | 8728 | echo "$as_me:8728: \$? = $ac_status" >&5 |
1cf3d07d SE |
8729 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8730 | then | |
8731 | # The compiler can only warn and ignore the option if not recognized | |
8732 | # So say no if there are warnings | |
8733 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8734 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8735 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8736 | lt_cv_prog_compiler_c_o=yes | |
8737 | fi | |
8738 | fi | |
8739 | chmod u+w . 2>&5 | |
8740 | $RM conftest* | |
8741 | # SGI C++ compiler will create directory out/ii_files/ for | |
8742 | # template instantiation | |
8743 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8744 | $RM out/* && rmdir out | |
8745 | cd .. | |
8746 | $RM -r conftest | |
8747 | $RM conftest* | |
8748 | ||
8749 | fi | |
8750 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
8751 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
8752 | ||
8753 | ||
8754 | ||
8755 | ||
8756 | ||
8757 | ||
8758 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8759 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
8760 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
8761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8762 | else | |
8763 | lt_cv_prog_compiler_c_o=no | |
8764 | $RM -r conftest 2>/dev/null | |
8765 | mkdir conftest | |
8766 | cd conftest | |
8767 | mkdir out | |
8768 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8769 | ||
8770 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8771 | # Insert the option either (1) after the last *FLAGS variable, or | |
8772 | # (2) before a word containing "conftest.", or (3) at the end. | |
8773 | # Note that $ac_compile itself does not contain backslashes and begins | |
8774 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8775 | lt_compile=`echo "$ac_compile" | $SED \ | |
8776 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8777 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8778 | -e 's:$: $lt_compiler_flag:'` | |
93e92f52 | 8779 | (eval echo "\"\$as_me:8779: $lt_compile\"" >&5) |
1cf3d07d SE |
8780 | (eval "$lt_compile" 2>out/conftest.err) |
8781 | ac_status=$? | |
8782 | cat out/conftest.err >&5 | |
93e92f52 | 8783 | echo "$as_me:8783: \$? = $ac_status" >&5 |
1cf3d07d SE |
8784 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8785 | then | |
8786 | # The compiler can only warn and ignore the option if not recognized | |
8787 | # So say no if there are warnings | |
8788 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8789 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8790 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8791 | lt_cv_prog_compiler_c_o=yes | |
8792 | fi | |
8793 | fi | |
8794 | chmod u+w . 2>&5 | |
8795 | $RM conftest* | |
8796 | # SGI C++ compiler will create directory out/ii_files/ for | |
8797 | # template instantiation | |
8798 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8799 | $RM out/* && rmdir out | |
8800 | cd .. | |
8801 | $RM -r conftest | |
8802 | $RM conftest* | |
8803 | ||
8804 | fi | |
8805 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
8806 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
8807 | ||
8808 | ||
8809 | ||
8810 | ||
8811 | hard_links="nottested" | |
8812 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8813 | # do not overwrite the value of need_locks provided by the user | |
8814 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
8815 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
8816 | hard_links=yes | |
8817 | $RM conftest* | |
8818 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8819 | touch conftest.a | |
8820 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8821 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8822 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
8823 | echo "${ECHO_T}$hard_links" >&6 | |
8824 | if test "$hard_links" = no; then | |
8825 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
8826 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
8827 | need_locks=warn | |
8828 | fi | |
8829 | else | |
8830 | need_locks=no | |
8831 | fi | |
8832 | ||
8833 | ||
8834 | ||
8835 | ||
8836 | ||
8837 | ||
8838 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
8839 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
8840 | ||
8841 | runpath_var= | |
8842 | allow_undefined_flag= | |
8843 | always_export_symbols=no | |
8844 | archive_cmds= | |
8845 | archive_expsym_cmds= | |
8846 | compiler_needs_object=no | |
8847 | enable_shared_with_static_runtimes=no | |
8848 | export_dynamic_flag_spec= | |
8849 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8850 | hardcode_automatic=no | |
8851 | hardcode_direct=no | |
8852 | hardcode_direct_absolute=no | |
8853 | hardcode_libdir_flag_spec= | |
8854 | hardcode_libdir_flag_spec_ld= | |
8855 | hardcode_libdir_separator= | |
8856 | hardcode_minus_L=no | |
8857 | hardcode_shlibpath_var=unsupported | |
8858 | inherit_rpath=no | |
8859 | link_all_deplibs=unknown | |
8860 | module_cmds= | |
8861 | module_expsym_cmds= | |
8862 | old_archive_from_new_cmds= | |
8863 | old_archive_from_expsyms_cmds= | |
8864 | thread_safe_flag_spec= | |
8865 | whole_archive_flag_spec= | |
8866 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8867 | # included in the symbol list | |
8868 | include_expsyms= | |
8869 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8870 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8871 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8872 | # as well as any symbol that contains `d'. | |
93e92f52 | 8873 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
1cf3d07d SE |
8874 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
8875 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8876 | # the symbol is explicitly referenced. Since portable code cannot | |
8877 | # rely on this symbol name, it's probably fine to never include it in | |
8878 | # preloaded symbol tables. | |
93e92f52 | 8879 | # Exclude shared library initialization/finalization symbols. |
1cf3d07d SE |
8880 | extract_expsyms_cmds= |
8881 | ||
8882 | case $host_os in | |
93e92f52 | 8883 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
8884 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
8885 | # When not using gcc, we currently assume that we are using | |
8886 | # Microsoft Visual C++. | |
8887 | if test "$GCC" != yes; then | |
8888 | with_gnu_ld=no | |
8889 | fi | |
8890 | ;; | |
8891 | interix*) | |
8892 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8893 | with_gnu_ld=yes | |
8894 | ;; | |
8895 | openbsd*) | |
8896 | with_gnu_ld=no | |
8897 | ;; | |
8898 | esac | |
8899 | ||
8900 | ld_shlibs=yes | |
8901 | if test "$with_gnu_ld" = yes; then | |
8902 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
8903 | wlarc='${wl}' | |
8904 | ||
8905 | # Set some defaults for GNU ld with shared library support. These | |
8906 | # are reset later if shared libraries are not supported. Putting them | |
8907 | # here allows them to be overridden if necessary. | |
8908 | runpath_var=LD_RUN_PATH | |
8909 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8910 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8911 | # ancient GNU ld didn't support --whole-archive et. al. | |
8912 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8913 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8914 | else | |
8915 | whole_archive_flag_spec= | |
8916 | fi | |
8917 | supports_anon_versioning=no | |
8918 | case `$LD -v 2>&1` in | |
8919 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
8920 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8921 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8922 | *\ 2.11.*) ;; # other 2.11 versions | |
8923 | *) supports_anon_versioning=yes ;; | |
8924 | esac | |
8925 | ||
8926 | # See if GNU ld supports shared libraries. | |
8927 | case $host_os in | |
f3641e7e | 8928 | aix[3-9]*) |
1cf3d07d SE |
8929 | # On AIX/PPC, the GNU linker is very broken |
8930 | if test "$host_cpu" != ia64; then | |
8931 | ld_shlibs=no | |
8932 | cat <<_LT_EOF 1>&2 | |
8933 | ||
8934 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
8935 | *** to be unable to reliably create shared libraries on AIX. | |
8936 | *** Therefore, libtool is disabling shared libraries support. If you | |
8937 | *** really care for shared libraries, you may want to modify your PATH | |
8938 | *** so that a non-GNU linker is found, and then restart. | |
8939 | ||
8940 | _LT_EOF | |
8941 | fi | |
8942 | ;; | |
8943 | ||
8944 | amigaos*) | |
93e92f52 PG |
8945 | case $host_cpu in |
8946 | powerpc) | |
8947 | # see comment about AmigaOS4 .so support | |
8948 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8949 | archive_expsym_cmds='' | |
8950 | ;; | |
8951 | m68k) | |
8952 | 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)' | |
8953 | hardcode_libdir_flag_spec='-L$libdir' | |
8954 | hardcode_minus_L=yes | |
8955 | ;; | |
8956 | esac | |
1cf3d07d SE |
8957 | ;; |
8958 | ||
8959 | beos*) | |
8960 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8961 | allow_undefined_flag=unsupported | |
8962 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8963 | # support --undefined. This deserves some investigation. FIXME | |
8964 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8965 | else | |
8966 | ld_shlibs=no | |
8967 | fi | |
8968 | ;; | |
8969 | ||
93e92f52 | 8970 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
8971 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
8972 | # as there is no search path for DLLs. | |
8973 | hardcode_libdir_flag_spec='-L$libdir' | |
8974 | allow_undefined_flag=unsupported | |
8975 | always_export_symbols=no | |
8976 | enable_shared_with_static_runtimes=yes | |
8977 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
8978 | ||
8979 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
8980 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8981 | # If the export-symbols file already is a .def file (1st line | |
8982 | # is EXPORTS), use it as is; otherwise, prepend... | |
8983 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8984 | cp $export_symbols $output_objdir/$soname.def; | |
8985 | else | |
8986 | echo EXPORTS > $output_objdir/$soname.def; | |
8987 | cat $export_symbols >> $output_objdir/$soname.def; | |
8988 | fi~ | |
8989 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8990 | else | |
8991 | ld_shlibs=no | |
8992 | fi | |
8993 | ;; | |
8994 | ||
8995 | interix[3-9]*) | |
8996 | hardcode_direct=no | |
8997 | hardcode_shlibpath_var=no | |
8998 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8999 | export_dynamic_flag_spec='${wl}-E' | |
9000 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9001 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9002 | # default) and relocated if they conflict, which is a slow very memory | |
9003 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9004 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9005 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9006 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9007 | 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' | |
9008 | ;; | |
9009 | ||
9010 | gnu* | linux* | tpf* | k*bsd*-gnu) | |
9011 | tmp_diet=no | |
9012 | if test "$host_os" = linux-dietlibc; then | |
9013 | case $cc_basename in | |
9014 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9015 | esac | |
9016 | fi | |
9017 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9018 | && test "$tmp_diet" = no | |
9019 | then | |
9020 | tmp_addflag= | |
93e92f52 | 9021 | tmp_sharedflag='-shared' |
1cf3d07d SE |
9022 | case $cc_basename,$host_cpu in |
9023 | pgcc*) # Portland Group C compiler | |
9024 | 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' | |
9025 | tmp_addflag=' $pic_flag' | |
9026 | ;; | |
9027 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
9028 | 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' | |
9029 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9030 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9031 | tmp_addflag=' -i_dynamic' ;; | |
9032 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9033 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9034 | ifc* | ifort*) # Intel Fortran compiler | |
9035 | tmp_addflag=' -nofor_main' ;; | |
93e92f52 PG |
9036 | lf95*) # Lahey Fortran 8.1 |
9037 | whole_archive_flag_spec= | |
9038 | tmp_sharedflag='--shared' ;; | |
9039 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9040 | tmp_sharedflag='-qmkshrobj' | |
9041 | tmp_addflag= ;; | |
1cf3d07d SE |
9042 | esac |
9043 | case `$CC -V 2>&1 | sed 5q` in | |
9044 | *Sun\ C*) # Sun C 5.9 | |
9045 | 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' | |
9046 | compiler_needs_object=yes | |
9047 | tmp_sharedflag='-G' ;; | |
9048 | *Sun\ F*) # Sun Fortran 8.3 | |
9049 | tmp_sharedflag='-G' ;; | |
1cf3d07d SE |
9050 | esac |
9051 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9052 | ||
9053 | if test "x$supports_anon_versioning" = xyes; then | |
9054 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9055 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9056 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9057 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9058 | fi | |
93e92f52 PG |
9059 | |
9060 | case $cc_basename in | |
9061 | xlf*) | |
9062 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9063 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9064 | hardcode_libdir_flag_spec= | |
9065 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
9066 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
9067 | if test "x$supports_anon_versioning" = xyes; then | |
9068 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9069 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9070 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9071 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9072 | fi | |
9073 | ;; | |
9074 | esac | |
1cf3d07d SE |
9075 | else |
9076 | ld_shlibs=no | |
9077 | fi | |
9078 | ;; | |
9079 | ||
9080 | netbsd*) | |
9081 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9082 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9083 | wlarc= | |
9084 | else | |
9085 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9086 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9087 | fi | |
9088 | ;; | |
9089 | ||
9090 | solaris*) | |
9091 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9092 | ld_shlibs=no | |
9093 | cat <<_LT_EOF 1>&2 | |
9094 | ||
9095 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9096 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9097 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9098 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9099 | *** your PATH or compiler configuration so that the native linker is | |
9100 | *** used, and then restart. | |
9101 | ||
9102 | _LT_EOF | |
9103 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9104 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9105 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9106 | else | |
9107 | ld_shlibs=no | |
9108 | fi | |
9109 | ;; | |
9110 | ||
9111 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9112 | case `$LD -v 2>&1` in | |
9113 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9114 | ld_shlibs=no | |
9115 | cat <<_LT_EOF 1>&2 | |
9116 | ||
9117 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
9118 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9119 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9120 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9121 | *** your PATH or compiler configuration so that the native linker is | |
9122 | *** used, and then restart. | |
9123 | ||
9124 | _LT_EOF | |
9125 | ;; | |
9126 | *) | |
9127 | # For security reasons, it is highly recommended that you always | |
9128 | # use absolute paths for naming shared libraries, and exclude the | |
9129 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9130 | # requires that you compile everything twice, which is a pain. | |
9131 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9132 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9133 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9134 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9135 | else | |
9136 | ld_shlibs=no | |
9137 | fi | |
9138 | ;; | |
9139 | esac | |
9140 | ;; | |
9141 | ||
9142 | sunos4*) | |
9143 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9144 | wlarc= | |
9145 | hardcode_direct=yes | |
9146 | hardcode_shlibpath_var=no | |
9147 | ;; | |
9148 | ||
9149 | *) | |
9150 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9151 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9152 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9153 | else | |
9154 | ld_shlibs=no | |
9155 | fi | |
9156 | ;; | |
9157 | esac | |
9158 | ||
9159 | if test "$ld_shlibs" = no; then | |
9160 | runpath_var= | |
9161 | hardcode_libdir_flag_spec= | |
9162 | export_dynamic_flag_spec= | |
9163 | whole_archive_flag_spec= | |
9164 | fi | |
9165 | else | |
9166 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9167 | case $host_os in | |
9168 | aix3*) | |
9169 | allow_undefined_flag=unsupported | |
9170 | always_export_symbols=yes | |
9171 | 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' | |
9172 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9173 | # are no directories specified by -L. | |
9174 | hardcode_minus_L=yes | |
9175 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9176 | # Neither direct hardcoding nor static linking is supported with a | |
9177 | # broken collect2. | |
9178 | hardcode_direct=unsupported | |
9179 | fi | |
9180 | ;; | |
9181 | ||
f3641e7e | 9182 | aix[4-9]*) |
1cf3d07d SE |
9183 | if test "$host_cpu" = ia64; then |
9184 | # On IA64, the linker does run time linking by default, so we don't | |
9185 | # have to do anything special. | |
9186 | aix_use_runtimelinking=no | |
9187 | exp_sym_flag='-Bexport' | |
9188 | no_entry_flag="" | |
9189 | else | |
9190 | # If we're using GNU nm, then we don't want the "-C" option. | |
9191 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9192 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9193 | 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' | |
9194 | else | |
9195 | 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' | |
9196 | fi | |
9197 | aix_use_runtimelinking=no | |
9198 | ||
9199 | # Test if we are trying to use run time linking or normal | |
9200 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9201 | # need to do runtime linking. | |
f3641e7e | 9202 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
1cf3d07d SE |
9203 | for ld_flag in $LDFLAGS; do |
9204 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9205 | aix_use_runtimelinking=yes | |
9206 | break | |
9207 | fi | |
9208 | done | |
9209 | ;; | |
9210 | esac | |
9211 | ||
9212 | exp_sym_flag='-bexport' | |
9213 | no_entry_flag='-bnoentry' | |
9214 | fi | |
9215 | ||
9216 | # When large executables or shared objects are built, AIX ld can | |
9217 | # have problems creating the table of contents. If linking a library | |
9218 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9219 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9220 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9221 | ||
9222 | archive_cmds='' | |
9223 | hardcode_direct=yes | |
9224 | hardcode_direct_absolute=yes | |
9225 | hardcode_libdir_separator=':' | |
9226 | link_all_deplibs=yes | |
9227 | file_list_spec='${wl}-f,' | |
9228 | ||
9229 | if test "$GCC" = yes; then | |
9230 | case $host_os in aix4.[012]|aix4.[012].*) | |
9231 | # We only want to do this on AIX 4.2 and lower, the check | |
9232 | # below for broken collect2 doesn't work under 4.3+ | |
9233 | collect2name=`${CC} -print-prog-name=collect2` | |
9234 | if test -f "$collect2name" && | |
9235 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9236 | then | |
9237 | # We have reworked collect2 | |
9238 | : | |
9239 | else | |
9240 | # We have old collect2 | |
9241 | hardcode_direct=unsupported | |
9242 | # It fails to find uninstalled libraries when the uninstalled | |
9243 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9244 | # to unsupported forces relinking | |
9245 | hardcode_minus_L=yes | |
9246 | hardcode_libdir_flag_spec='-L$libdir' | |
9247 | hardcode_libdir_separator= | |
9248 | fi | |
9249 | ;; | |
9250 | esac | |
9251 | shared_flag='-shared' | |
9252 | if test "$aix_use_runtimelinking" = yes; then | |
9253 | shared_flag="$shared_flag "'${wl}-G' | |
9254 | fi | |
9255 | else | |
9256 | # not using gcc | |
9257 | if test "$host_cpu" = ia64; then | |
9258 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9259 | # chokes on -Wl,-G. The following line is correct: | |
9260 | shared_flag='-G' | |
9261 | else | |
9262 | if test "$aix_use_runtimelinking" = yes; then | |
9263 | shared_flag='${wl}-G' | |
9264 | else | |
9265 | shared_flag='${wl}-bM:SRE' | |
9266 | fi | |
9267 | fi | |
9268 | fi | |
9269 | ||
93e92f52 | 9270 | export_dynamic_flag_spec='${wl}-bexpall' |
1cf3d07d SE |
9271 | # It seems that -bexpall does not export symbols beginning with |
9272 | # underscore (_), so it is better to generate a list of symbols to export. | |
9273 | always_export_symbols=yes | |
9274 | if test "$aix_use_runtimelinking" = yes; then | |
9275 | # Warning - without using the other runtime loading flags (-brtl), | |
9276 | # -berok will link without error, but may produce a broken library. | |
9277 | allow_undefined_flag='-berok' | |
9278 | # Determine the default libpath from the value encoded in an | |
9279 | # empty executable. | |
9280 | if test x$gcc_no_link = xyes; then | |
9281 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9282 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9283 | { (exit 1); exit 1; }; } | |
9284 | fi | |
9285 | cat >conftest.$ac_ext <<_ACEOF | |
9286 | /* confdefs.h. */ | |
9287 | _ACEOF | |
9288 | cat confdefs.h >>conftest.$ac_ext | |
9289 | cat >>conftest.$ac_ext <<_ACEOF | |
9290 | /* end confdefs.h. */ | |
9291 | ||
9292 | int | |
9293 | main () | |
9294 | { | |
9295 | ||
9296 | ; | |
9297 | return 0; | |
9298 | } | |
9299 | _ACEOF | |
9300 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9301 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9302 | (eval $ac_link) 2>conftest.er1 | |
9303 | ac_status=$? | |
9304 | grep -v '^ *+' conftest.er1 >conftest.err | |
9305 | rm -f conftest.er1 | |
9306 | cat conftest.err >&5 | |
9307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9308 | (exit $ac_status); } && | |
9309 | { ac_try='test -z "$ac_c_werror_flag" | |
9310 | || test ! -s conftest.err' | |
9311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9312 | (eval $ac_try) 2>&5 | |
9313 | ac_status=$? | |
9314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9315 | (exit $ac_status); }; } && | |
9316 | { ac_try='test -s conftest$ac_exeext' | |
9317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9318 | (eval $ac_try) 2>&5 | |
9319 | ac_status=$? | |
9320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9321 | (exit $ac_status); }; }; then | |
9322 | ||
9323 | lt_aix_libpath_sed=' | |
9324 | /Import File Strings/,/^$/ { | |
9325 | /^0/ { | |
9326 | s/^0 *\(.*\)$/\1/ | |
9327 | p | |
9328 | } | |
9329 | }' | |
9330 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9331 | # Check for a 64-bit object if we didn't find anything. | |
9332 | if test -z "$aix_libpath"; then | |
9333 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9334 | fi | |
9335 | else | |
9336 | echo "$as_me: failed program was:" >&5 | |
9337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9338 | ||
9339 | fi | |
9340 | rm -f conftest.err conftest.$ac_objext \ | |
9341 | conftest$ac_exeext conftest.$ac_ext | |
9342 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9343 | ||
9344 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9345 | 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" | |
9346 | else | |
9347 | if test "$host_cpu" = ia64; then | |
9348 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9349 | allow_undefined_flag="-z nodefs" | |
9350 | 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" | |
9351 | else | |
9352 | # Determine the default libpath from the value encoded in an | |
9353 | # empty executable. | |
9354 | if test x$gcc_no_link = xyes; then | |
9355 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9356 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9357 | { (exit 1); exit 1; }; } | |
9358 | fi | |
9359 | cat >conftest.$ac_ext <<_ACEOF | |
9360 | /* confdefs.h. */ | |
9361 | _ACEOF | |
9362 | cat confdefs.h >>conftest.$ac_ext | |
9363 | cat >>conftest.$ac_ext <<_ACEOF | |
9364 | /* end confdefs.h. */ | |
9365 | ||
9366 | int | |
9367 | main () | |
9368 | { | |
9369 | ||
9370 | ; | |
9371 | return 0; | |
9372 | } | |
9373 | _ACEOF | |
9374 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9375 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9376 | (eval $ac_link) 2>conftest.er1 | |
9377 | ac_status=$? | |
9378 | grep -v '^ *+' conftest.er1 >conftest.err | |
9379 | rm -f conftest.er1 | |
9380 | cat conftest.err >&5 | |
9381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9382 | (exit $ac_status); } && | |
9383 | { ac_try='test -z "$ac_c_werror_flag" | |
9384 | || test ! -s conftest.err' | |
9385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9386 | (eval $ac_try) 2>&5 | |
9387 | ac_status=$? | |
9388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9389 | (exit $ac_status); }; } && | |
9390 | { ac_try='test -s conftest$ac_exeext' | |
9391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9392 | (eval $ac_try) 2>&5 | |
9393 | ac_status=$? | |
9394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9395 | (exit $ac_status); }; }; then | |
9396 | ||
9397 | lt_aix_libpath_sed=' | |
9398 | /Import File Strings/,/^$/ { | |
9399 | /^0/ { | |
9400 | s/^0 *\(.*\)$/\1/ | |
9401 | p | |
9402 | } | |
9403 | }' | |
9404 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9405 | # Check for a 64-bit object if we didn't find anything. | |
9406 | if test -z "$aix_libpath"; then | |
9407 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9408 | fi | |
9409 | else | |
9410 | echo "$as_me: failed program was:" >&5 | |
9411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9412 | ||
9413 | fi | |
9414 | rm -f conftest.err conftest.$ac_objext \ | |
9415 | conftest$ac_exeext conftest.$ac_ext | |
9416 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9417 | ||
9418 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9419 | # Warning - without using the other run time loading flags, | |
9420 | # -berok will link without error, but may produce a broken library. | |
9421 | no_undefined_flag=' ${wl}-bernotok' | |
9422 | allow_undefined_flag=' ${wl}-berok' | |
9423 | # Exported symbols can be pulled into shared objects from archives | |
9424 | whole_archive_flag_spec='$convenience' | |
9425 | archive_cmds_need_lc=yes | |
9426 | # This is similar to how AIX traditionally builds its shared libraries. | |
9427 | 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' | |
9428 | fi | |
9429 | fi | |
9430 | ;; | |
9431 | ||
9432 | amigaos*) | |
93e92f52 PG |
9433 | case $host_cpu in |
9434 | powerpc) | |
9435 | # see comment about AmigaOS4 .so support | |
9436 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9437 | archive_expsym_cmds='' | |
9438 | ;; | |
9439 | m68k) | |
9440 | 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)' | |
9441 | hardcode_libdir_flag_spec='-L$libdir' | |
9442 | hardcode_minus_L=yes | |
9443 | ;; | |
9444 | esac | |
1cf3d07d SE |
9445 | ;; |
9446 | ||
9447 | bsdi[45]*) | |
9448 | export_dynamic_flag_spec=-rdynamic | |
9449 | ;; | |
9450 | ||
93e92f52 | 9451 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
9452 | # When not using gcc, we currently assume that we are using |
9453 | # Microsoft Visual C++. | |
9454 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9455 | # no search path for DLLs. | |
9456 | hardcode_libdir_flag_spec=' ' | |
9457 | allow_undefined_flag=unsupported | |
9458 | # Tell ltmain to make .lib files, not .a files. | |
9459 | libext=lib | |
9460 | # Tell ltmain to make .dll files, not .so files. | |
9461 | shrext_cmds=".dll" | |
9462 | # FIXME: Setting linknames here is a bad hack. | |
9463 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9464 | # The linker will automatically build a .lib file if we build a DLL. | |
9465 | old_archive_from_new_cmds='true' | |
9466 | # FIXME: Should let the user specify the lib program. | |
9467 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9468 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9469 | enable_shared_with_static_runtimes=yes | |
9470 | ;; | |
9471 | ||
9472 | darwin* | rhapsody*) | |
1cf3d07d | 9473 | |
93e92f52 PG |
9474 | |
9475 | archive_cmds_need_lc=no | |
9476 | hardcode_direct=no | |
9477 | hardcode_automatic=yes | |
9478 | hardcode_shlibpath_var=unsupported | |
9479 | whole_archive_flag_spec='' | |
9480 | link_all_deplibs=yes | |
9481 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9482 | case $cc_basename in | |
9483 | ifort*) _lt_dar_can_shared=yes ;; | |
9484 | *) _lt_dar_can_shared=$GCC ;; | |
9485 | esac | |
9486 | if test "$_lt_dar_can_shared" = "yes"; then | |
9487 | output_verbose_link_cmd=echo | |
9488 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
9489 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9490 | archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | |
9491 | module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" | |
9492 | ||
9493 | else | |
9494 | ld_shlibs=no | |
9495 | fi | |
9496 | ||
1cf3d07d SE |
9497 | ;; |
9498 | ||
9499 | dgux*) | |
9500 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9501 | hardcode_libdir_flag_spec='-L$libdir' | |
9502 | hardcode_shlibpath_var=no | |
9503 | ;; | |
9504 | ||
9505 | freebsd1*) | |
9506 | ld_shlibs=no | |
9507 | ;; | |
9508 | ||
9509 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
9510 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9511 | # does not break anything, and helps significantly (at the cost of a little | |
9512 | # extra space). | |
9513 | freebsd2.2*) | |
9514 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9515 | hardcode_libdir_flag_spec='-R$libdir' | |
9516 | hardcode_direct=yes | |
9517 | hardcode_shlibpath_var=no | |
9518 | ;; | |
9519 | ||
9520 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
9521 | freebsd2*) | |
9522 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9523 | hardcode_direct=yes | |
9524 | hardcode_minus_L=yes | |
9525 | hardcode_shlibpath_var=no | |
9526 | ;; | |
9527 | ||
9528 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
9529 | freebsd* | dragonfly*) | |
9530 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9531 | hardcode_libdir_flag_spec='-R$libdir' | |
9532 | hardcode_direct=yes | |
9533 | hardcode_shlibpath_var=no | |
9534 | ;; | |
9535 | ||
9536 | hpux9*) | |
9537 | if test "$GCC" = yes; then | |
9538 | 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' | |
9539 | else | |
9540 | 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' | |
9541 | fi | |
9542 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9543 | hardcode_libdir_separator=: | |
9544 | hardcode_direct=yes | |
9545 | ||
9546 | # hardcode_minus_L: Not really in the search PATH, | |
9547 | # but as the default location of the library. | |
9548 | hardcode_minus_L=yes | |
9549 | export_dynamic_flag_spec='${wl}-E' | |
9550 | ;; | |
9551 | ||
9552 | hpux10*) | |
9553 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9554 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9555 | else | |
9556 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9557 | fi | |
9558 | if test "$with_gnu_ld" = no; then | |
9559 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9560 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9561 | hardcode_libdir_separator=: | |
9562 | hardcode_direct=yes | |
9563 | hardcode_direct_absolute=yes | |
9564 | export_dynamic_flag_spec='${wl}-E' | |
9565 | # hardcode_minus_L: Not really in the search PATH, | |
9566 | # but as the default location of the library. | |
9567 | hardcode_minus_L=yes | |
9568 | fi | |
9569 | ;; | |
9570 | ||
9571 | hpux11*) | |
9572 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9573 | case $host_cpu in | |
9574 | hppa*64*) | |
9575 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9576 | ;; | |
9577 | ia64*) | |
93e92f52 | 9578 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
1cf3d07d SE |
9579 | ;; |
9580 | *) | |
9581 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9582 | ;; | |
9583 | esac | |
9584 | else | |
9585 | case $host_cpu in | |
9586 | hppa*64*) | |
9587 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9588 | ;; | |
9589 | ia64*) | |
9590 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9591 | ;; | |
9592 | *) | |
9593 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9594 | ;; | |
9595 | esac | |
9596 | fi | |
9597 | if test "$with_gnu_ld" = no; then | |
9598 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9599 | hardcode_libdir_separator=: | |
9600 | ||
9601 | case $host_cpu in | |
9602 | hppa*64*|ia64*) | |
9603 | hardcode_direct=no | |
9604 | hardcode_shlibpath_var=no | |
9605 | ;; | |
9606 | *) | |
9607 | hardcode_direct=yes | |
9608 | hardcode_direct_absolute=yes | |
9609 | export_dynamic_flag_spec='${wl}-E' | |
9610 | ||
9611 | # hardcode_minus_L: Not really in the search PATH, | |
9612 | # but as the default location of the library. | |
9613 | hardcode_minus_L=yes | |
9614 | ;; | |
9615 | esac | |
9616 | fi | |
9617 | ;; | |
9618 | ||
9619 | irix5* | irix6* | nonstopux*) | |
9620 | if test "$GCC" = yes; then | |
9621 | 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' | |
9622 | # Try to use the -exported_symbol ld option, if it does not | |
9623 | # work, assume that -exports_file does not work either and | |
9624 | # implicitly export all symbols. | |
9625 | save_LDFLAGS="$LDFLAGS" | |
9626 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9627 | if test x$gcc_no_link = xyes; then | |
9628 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9629 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9630 | { (exit 1); exit 1; }; } | |
9631 | fi | |
9632 | cat >conftest.$ac_ext <<_ACEOF | |
9633 | int foo(void) {} | |
9634 | _ACEOF | |
9635 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9636 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9637 | (eval $ac_link) 2>conftest.er1 | |
9638 | ac_status=$? | |
9639 | grep -v '^ *+' conftest.er1 >conftest.err | |
9640 | rm -f conftest.er1 | |
9641 | cat conftest.err >&5 | |
9642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9643 | (exit $ac_status); } && | |
9644 | { ac_try='test -z "$ac_c_werror_flag" | |
9645 | || test ! -s conftest.err' | |
9646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9647 | (eval $ac_try) 2>&5 | |
9648 | ac_status=$? | |
9649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9650 | (exit $ac_status); }; } && | |
9651 | { ac_try='test -s conftest$ac_exeext' | |
9652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9653 | (eval $ac_try) 2>&5 | |
9654 | ac_status=$? | |
9655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9656 | (exit $ac_status); }; }; then | |
9657 | 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' | |
9658 | ||
9659 | else | |
9660 | echo "$as_me: failed program was:" >&5 | |
9661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9662 | ||
9663 | fi | |
9664 | rm -f conftest.err conftest.$ac_objext \ | |
9665 | conftest$ac_exeext conftest.$ac_ext | |
9666 | LDFLAGS="$save_LDFLAGS" | |
9667 | else | |
9668 | 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' | |
9669 | 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' | |
9670 | fi | |
9671 | archive_cmds_need_lc='no' | |
9672 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9673 | hardcode_libdir_separator=: | |
9674 | inherit_rpath=yes | |
9675 | link_all_deplibs=yes | |
9676 | ;; | |
9677 | ||
9678 | netbsd*) | |
9679 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9680 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9681 | else | |
9682 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9683 | fi | |
9684 | hardcode_libdir_flag_spec='-R$libdir' | |
9685 | hardcode_direct=yes | |
9686 | hardcode_shlibpath_var=no | |
9687 | ;; | |
9688 | ||
9689 | newsos6) | |
9690 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9691 | hardcode_direct=yes | |
9692 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9693 | hardcode_libdir_separator=: | |
9694 | hardcode_shlibpath_var=no | |
9695 | ;; | |
9696 | ||
9697 | *nto* | *qnx*) | |
9698 | ;; | |
9699 | ||
9700 | openbsd*) | |
93e92f52 PG |
9701 | if test -f /usr/libexec/ld.so; then |
9702 | hardcode_direct=yes | |
9703 | hardcode_shlibpath_var=no | |
9704 | hardcode_direct_absolute=yes | |
9705 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
1cf3d07d | 9706 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
93e92f52 | 9707 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
1cf3d07d | 9708 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
93e92f52 PG |
9709 | export_dynamic_flag_spec='${wl}-E' |
9710 | else | |
9711 | case $host_os in | |
9712 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9713 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9714 | hardcode_libdir_flag_spec='-R$libdir' | |
9715 | ;; | |
9716 | *) | |
9717 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9718 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9719 | ;; | |
9720 | esac | |
9721 | fi | |
9722 | else | |
9723 | ld_shlibs=no | |
1cf3d07d SE |
9724 | fi |
9725 | ;; | |
9726 | ||
9727 | os2*) | |
9728 | hardcode_libdir_flag_spec='-L$libdir' | |
9729 | hardcode_minus_L=yes | |
9730 | allow_undefined_flag=unsupported | |
9731 | 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' | |
9732 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
9733 | ;; | |
9734 | ||
9735 | osf3*) | |
9736 | if test "$GCC" = yes; then | |
9737 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9738 | 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' | |
9739 | else | |
9740 | allow_undefined_flag=' -expect_unresolved \*' | |
9741 | 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' | |
9742 | fi | |
9743 | archive_cmds_need_lc='no' | |
9744 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9745 | hardcode_libdir_separator=: | |
9746 | ;; | |
9747 | ||
9748 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9749 | if test "$GCC" = yes; then | |
9750 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9751 | 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' | |
9752 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9753 | else | |
9754 | allow_undefined_flag=' -expect_unresolved \*' | |
9755 | 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' | |
9756 | 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~ | |
9757 | $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' | |
9758 | ||
9759 | # Both c and cxx compiler support -rpath directly | |
9760 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9761 | fi | |
9762 | archive_cmds_need_lc='no' | |
9763 | hardcode_libdir_separator=: | |
9764 | ;; | |
9765 | ||
9766 | solaris*) | |
9767 | no_undefined_flag=' -z defs' | |
9768 | if test "$GCC" = yes; then | |
9769 | wlarc='${wl}' | |
9770 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9771 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9772 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9773 | else | |
9774 | case `$CC -V 2>&1` in | |
9775 | *"Compilers 5.0"*) | |
9776 | wlarc='' | |
9777 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9778 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9779 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9780 | ;; | |
9781 | *) | |
9782 | wlarc='${wl}' | |
9783 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9784 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9785 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9786 | ;; | |
9787 | esac | |
9788 | fi | |
9789 | hardcode_libdir_flag_spec='-R$libdir' | |
9790 | hardcode_shlibpath_var=no | |
9791 | case $host_os in | |
9792 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9793 | *) | |
9794 | # The compiler driver will combine and reorder linker options, | |
9795 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9796 | # but is careful enough not to reorder. | |
9797 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9798 | if test "$GCC" = yes; then | |
9799 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9800 | else | |
9801 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9802 | fi | |
9803 | ;; | |
9804 | esac | |
9805 | link_all_deplibs=yes | |
9806 | ;; | |
9807 | ||
9808 | sunos4*) | |
9809 | if test "x$host_vendor" = xsequent; then | |
9810 | # Use $CC to link under sequent, because it throws in some extra .o | |
9811 | # files that make .init and .fini sections work. | |
9812 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9813 | else | |
9814 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9815 | fi | |
9816 | hardcode_libdir_flag_spec='-L$libdir' | |
9817 | hardcode_direct=yes | |
9818 | hardcode_minus_L=yes | |
9819 | hardcode_shlibpath_var=no | |
9820 | ;; | |
9821 | ||
9822 | sysv4) | |
9823 | case $host_vendor in | |
9824 | sni) | |
9825 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9826 | hardcode_direct=yes # is this really true??? | |
9827 | ;; | |
9828 | siemens) | |
9829 | ## LD is ld it makes a PLAMLIB | |
9830 | ## CC just makes a GrossModule. | |
9831 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9832 | reload_cmds='$CC -r -o $output$reload_objs' | |
9833 | hardcode_direct=no | |
9834 | ;; | |
9835 | motorola) | |
9836 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9837 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9838 | ;; | |
9839 | esac | |
9840 | runpath_var='LD_RUN_PATH' | |
9841 | hardcode_shlibpath_var=no | |
9842 | ;; | |
9843 | ||
9844 | sysv4.3*) | |
9845 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9846 | hardcode_shlibpath_var=no | |
9847 | export_dynamic_flag_spec='-Bexport' | |
9848 | ;; | |
9849 | ||
9850 | sysv4*MP*) | |
9851 | if test -d /usr/nec; then | |
9852 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9853 | hardcode_shlibpath_var=no | |
9854 | runpath_var=LD_RUN_PATH | |
9855 | hardcode_runpath_var=yes | |
9856 | ld_shlibs=yes | |
9857 | fi | |
9858 | ;; | |
9859 | ||
9860 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
9861 | no_undefined_flag='${wl}-z,text' | |
9862 | archive_cmds_need_lc=no | |
9863 | hardcode_shlibpath_var=no | |
9864 | runpath_var='LD_RUN_PATH' | |
9865 | ||
9866 | if test "$GCC" = yes; then | |
9867 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9868 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9869 | else | |
9870 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9871 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9872 | fi | |
9873 | ;; | |
9874 | ||
9875 | sysv5* | sco3.2v5* | sco5v6*) | |
9876 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9877 | # link with -lc, and that would cause any symbols used from libc to | |
9878 | # always be unresolved, which means just about no library would | |
9879 | # ever link correctly. If we're not using GNU ld we use -z text | |
9880 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9881 | # as -z defs. | |
9882 | no_undefined_flag='${wl}-z,text' | |
9883 | allow_undefined_flag='${wl}-z,nodefs' | |
9884 | archive_cmds_need_lc=no | |
9885 | hardcode_shlibpath_var=no | |
9886 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9887 | hardcode_libdir_separator=':' | |
9888 | link_all_deplibs=yes | |
9889 | export_dynamic_flag_spec='${wl}-Bexport' | |
9890 | runpath_var='LD_RUN_PATH' | |
9891 | ||
9892 | if test "$GCC" = yes; then | |
9893 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9894 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9895 | else | |
9896 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9897 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9898 | fi | |
9899 | ;; | |
9900 | ||
9901 | uts4*) | |
9902 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9903 | hardcode_libdir_flag_spec='-L$libdir' | |
9904 | hardcode_shlibpath_var=no | |
9905 | ;; | |
9906 | ||
9907 | *) | |
9908 | ld_shlibs=no | |
9909 | ;; | |
9910 | esac | |
9911 | ||
9912 | if test x$host_vendor = xsni; then | |
9913 | case $host in | |
9914 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9915 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9916 | ;; | |
9917 | esac | |
9918 | fi | |
9919 | fi | |
9920 | ||
9921 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
9922 | echo "${ECHO_T}$ld_shlibs" >&6 | |
9923 | test "$ld_shlibs" = no && can_build_shared=no | |
9924 | ||
9925 | with_gnu_ld=$with_gnu_ld | |
9926 | ||
9927 | ||
9928 | ||
9929 | ||
9930 | ||
9931 | ||
9932 | ||
9933 | ||
9934 | ||
9935 | ||
9936 | ||
9937 | ||
9938 | ||
9939 | ||
9940 | ||
9941 | # | |
9942 | # Do we need to explicitly link libc? | |
9943 | # | |
9944 | case "x$archive_cmds_need_lc" in | |
9945 | x|xyes) | |
9946 | # Assume -lc should be added | |
9947 | archive_cmds_need_lc=yes | |
9948 | ||
9949 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
9950 | case $archive_cmds in | |
9951 | *'~'*) | |
9952 | # FIXME: we may have to deal with multi-command sequences. | |
9953 | ;; | |
9954 | '$CC '*) | |
9955 | # Test whether the compiler implicitly links with -lc since on some | |
9956 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9957 | # to ld, don't add -lc before -lgcc. | |
9958 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
9959 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
baafc534 RW |
9960 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then |
9961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9962 | else | |
9963 | $RM conftest* | |
9964 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
1cf3d07d | 9965 | |
baafc534 | 9966 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1cf3d07d SE |
9967 | (eval $ac_compile) 2>&5 |
9968 | ac_status=$? | |
9969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9970 | (exit $ac_status); } 2>conftest.err; then | |
baafc534 RW |
9971 | soname=conftest |
9972 | lib=conftest | |
9973 | libobjs=conftest.$ac_objext | |
9974 | deplibs= | |
9975 | wl=$lt_prog_compiler_wl | |
9976 | pic_flag=$lt_prog_compiler_pic | |
9977 | compiler_flags=-v | |
9978 | linker_flags=-v | |
9979 | verstring= | |
9980 | output_objdir=. | |
9981 | libname=conftest | |
9982 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9983 | allow_undefined_flag= | |
9984 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
1cf3d07d SE |
9985 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
9986 | ac_status=$? | |
9987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9988 | (exit $ac_status); } | |
baafc534 RW |
9989 | then |
9990 | lt_cv_archive_cmds_need_lc=no | |
9991 | else | |
9992 | lt_cv_archive_cmds_need_lc=yes | |
9993 | fi | |
9994 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9995 | else | |
9996 | cat conftest.err 1>&5 | |
9997 | fi | |
9998 | $RM conftest* | |
9999 | ||
10000 | fi | |
10001 | echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10002 | echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 | |
10003 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
1cf3d07d SE |
10004 | ;; |
10005 | esac | |
10006 | fi | |
10007 | ;; | |
10008 | esac | |
10009 | ||
10010 | ||
10011 | ||
10012 | ||
10013 | ||
10014 | ||
10015 | ||
10016 | ||
10017 | ||
10018 | ||
10019 | ||
10020 | ||
10021 | ||
10022 | ||
10023 | ||
10024 | ||
10025 | ||
10026 | ||
10027 | ||
10028 | ||
10029 | ||
10030 | ||
10031 | ||
10032 | ||
10033 | ||
10034 | ||
10035 | ||
10036 | ||
10037 | ||
10038 | ||
10039 | ||
10040 | ||
10041 | ||
10042 | ||
10043 | ||
10044 | ||
10045 | ||
10046 | ||
10047 | ||
10048 | ||
10049 | ||
10050 | ||
10051 | ||
10052 | ||
10053 | ||
10054 | ||
10055 | ||
10056 | ||
10057 | ||
10058 | ||
10059 | ||
10060 | ||
10061 | ||
10062 | ||
10063 | ||
10064 | ||
10065 | ||
10066 | ||
10067 | ||
10068 | ||
10069 | ||
10070 | ||
10071 | ||
10072 | ||
10073 | ||
10074 | ||
10075 | ||
10076 | ||
10077 | ||
10078 | ||
10079 | ||
10080 | ||
10081 | ||
10082 | ||
10083 | ||
10084 | ||
10085 | ||
10086 | ||
10087 | ||
10088 | ||
10089 | ||
10090 | ||
10091 | ||
10092 | ||
10093 | ||
10094 | ||
10095 | ||
10096 | ||
10097 | ||
10098 | ||
10099 | ||
10100 | ||
10101 | ||
10102 | ||
10103 | ||
10104 | ||
10105 | ||
10106 | ||
10107 | ||
10108 | ||
10109 | ||
10110 | ||
10111 | ||
10112 | ||
10113 | ||
10114 | ||
10115 | ||
10116 | ||
10117 | ||
10118 | ||
10119 | ||
10120 | ||
10121 | ||
10122 | ||
10123 | ||
10124 | ||
10125 | ||
10126 | ||
10127 | ||
10128 | ||
10129 | ||
10130 | ||
10131 | ||
10132 | ||
10133 | ||
10134 | ||
10135 | ||
10136 | ||
10137 | ||
10138 | ||
10139 | ||
10140 | ||
10141 | ||
10142 | ||
10143 | ||
10144 | ||
10145 | ||
10146 | ||
10147 | ||
10148 | ||
10149 | ||
10150 | ||
10151 | ||
10152 | ||
10153 | ||
10154 | ||
10155 | ||
10156 | ||
10157 | ||
10158 | ||
10159 | ||
10160 | ||
10161 | ||
10162 | ||
10163 | ||
10164 | ||
10165 | ||
10166 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
10167 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
93e92f52 PG |
10168 | |
10169 | if test "$GCC" = yes; then | |
1cf3d07d SE |
10170 | case $host_os in |
10171 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10172 | *) lt_awk_arg="/^libraries:/" ;; | |
10173 | esac | |
10174 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
10175 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
10176 | # if the path contains ";" then we assume it to be the separator | |
10177 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10178 | # assumed that no part of a normal pathname contains ";" but that should | |
10179 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10180 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
10181 | else | |
10182 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10183 | fi | |
10184 | # Ok, now we have the path, separated by spaces, we can step through it | |
10185 | # and add multilib dir if necessary. | |
10186 | lt_tmp_lt_search_path_spec= | |
10187 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10188 | for lt_sys_path in $lt_search_path_spec; do | |
10189 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10190 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10191 | else | |
10192 | test -d "$lt_sys_path" && \ | |
10193 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10194 | fi | |
10195 | done | |
10196 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
10197 | BEGIN {RS=" "; FS="/|\n";} { | |
10198 | lt_foo=""; | |
10199 | lt_count=0; | |
10200 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10201 | if ($lt_i != "" && $lt_i != ".") { | |
10202 | if ($lt_i == "..") { | |
10203 | lt_count++; | |
10204 | } else { | |
10205 | if (lt_count == 0) { | |
10206 | lt_foo="/" $lt_i lt_foo; | |
10207 | } else { | |
10208 | lt_count--; | |
10209 | } | |
10210 | } | |
10211 | } | |
10212 | } | |
10213 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10214 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10215 | }'` | |
10216 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
10217 | else | |
10218 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10219 | fi | |
10220 | library_names_spec= | |
10221 | libname_spec='lib$name' | |
10222 | soname_spec= | |
10223 | shrext_cmds=".so" | |
10224 | postinstall_cmds= | |
10225 | postuninstall_cmds= | |
10226 | finish_cmds= | |
10227 | finish_eval= | |
10228 | shlibpath_var= | |
10229 | shlibpath_overrides_runpath=unknown | |
10230 | version_type=none | |
10231 | dynamic_linker="$host_os ld.so" | |
10232 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10233 | need_lib_prefix=unknown | |
10234 | hardcode_into_libs=no | |
10235 | ||
10236 | # when you set need_version to no, make sure it does not cause -set_version | |
10237 | # flags to be left without arguments | |
10238 | need_version=unknown | |
10239 | ||
10240 | case $host_os in | |
10241 | aix3*) | |
10242 | version_type=linux | |
10243 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10244 | shlibpath_var=LIBPATH | |
10245 | ||
10246 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10247 | soname_spec='${libname}${release}${shared_ext}$major' | |
10248 | ;; | |
10249 | ||
f3641e7e | 10250 | aix[4-9]*) |
1cf3d07d SE |
10251 | version_type=linux |
10252 | need_lib_prefix=no | |
10253 | need_version=no | |
10254 | hardcode_into_libs=yes | |
10255 | if test "$host_cpu" = ia64; then | |
10256 | # AIX 5 supports IA64 | |
10257 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10258 | shlibpath_var=LD_LIBRARY_PATH | |
10259 | else | |
10260 | # With GCC up to 2.95.x, collect2 would create an import file | |
10261 | # for dependence libraries. The import file would start with | |
10262 | # the line `#! .'. This would cause the generated library to | |
10263 | # depend on `.', always an invalid library. This was fixed in | |
10264 | # development snapshots of GCC prior to 3.0. | |
10265 | case $host_os in | |
10266 | aix4 | aix4.[01] | aix4.[01].*) | |
10267 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10268 | echo ' yes ' | |
10269 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10270 | : | |
10271 | else | |
10272 | can_build_shared=no | |
10273 | fi | |
10274 | ;; | |
10275 | esac | |
10276 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10277 | # soname into executable. Probably we can add versioning support to | |
10278 | # collect2, so additional links can be useful in future. | |
10279 | if test "$aix_use_runtimelinking" = yes; then | |
10280 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10281 | # instead of lib<name>.a to let people know that these are not | |
10282 | # typical AIX shared libraries. | |
10283 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10284 | else | |
10285 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10286 | # and later when we are not doing run time linking. | |
10287 | library_names_spec='${libname}${release}.a $libname.a' | |
10288 | soname_spec='${libname}${release}${shared_ext}$major' | |
10289 | fi | |
10290 | shlibpath_var=LIBPATH | |
10291 | fi | |
10292 | ;; | |
10293 | ||
10294 | amigaos*) | |
93e92f52 PG |
10295 | case $host_cpu in |
10296 | powerpc) | |
10297 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10298 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10299 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10300 | ;; | |
10301 | m68k) | |
1cf3d07d SE |
10302 | library_names_spec='$libname.ixlibrary $libname.a' |
10303 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10304 | 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' | |
93e92f52 PG |
10305 | ;; |
10306 | esac | |
1cf3d07d SE |
10307 | ;; |
10308 | ||
10309 | beos*) | |
10310 | library_names_spec='${libname}${shared_ext}' | |
10311 | dynamic_linker="$host_os ld.so" | |
10312 | shlibpath_var=LIBRARY_PATH | |
10313 | ;; | |
10314 | ||
10315 | bsdi[45]*) | |
10316 | version_type=linux | |
10317 | need_version=no | |
10318 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10319 | soname_spec='${libname}${release}${shared_ext}$major' | |
10320 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10321 | shlibpath_var=LD_LIBRARY_PATH | |
10322 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10323 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10324 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10325 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10326 | # libtool to hard-code these into programs | |
10327 | ;; | |
10328 | ||
93e92f52 | 10329 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
10330 | version_type=windows |
10331 | shrext_cmds=".dll" | |
10332 | need_version=no | |
10333 | need_lib_prefix=no | |
10334 | ||
93e92f52 PG |
10335 | case $GCC,$host_os in |
10336 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
1cf3d07d SE |
10337 | library_names_spec='$libname.dll.a' |
10338 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10339 | postinstall_cmds='base_file=`basename \${file}`~ | |
10340 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10341 | dldir=$destdir/`dirname \$dlpath`~ | |
10342 | test -d \$dldir || mkdir -p \$dldir~ | |
10343 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10344 | chmod a+x \$dldir/$dlname~ | |
10345 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10346 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10347 | fi' | |
10348 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10349 | dlpath=$dir/\$dldll~ | |
10350 | $RM \$dlpath' | |
10351 | shlibpath_overrides_runpath=yes | |
10352 | ||
10353 | case $host_os in | |
10354 | cygwin*) | |
10355 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10356 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10357 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
10358 | ;; | |
93e92f52 | 10359 | mingw* | cegcc*) |
1cf3d07d SE |
10360 | # MinGW DLLs use traditional 'lib' prefix |
10361 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10362 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
10363 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
10364 | # It is most probably a Windows format PATH printed by | |
10365 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
10366 | # path with ; separators, and with drive letters. We can handle the | |
10367 | # drive letters (cygwin fileutils understands them), so leave them, | |
10368 | # especially as we might pass files found there to a mingw objdump, | |
10369 | # which wouldn't understand a cygwinified path. Ahh. | |
10370 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10371 | else | |
10372 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10373 | fi | |
10374 | ;; | |
10375 | pw32*) | |
10376 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10377 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10378 | ;; | |
10379 | esac | |
10380 | ;; | |
10381 | ||
10382 | *) | |
10383 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10384 | ;; | |
10385 | esac | |
10386 | dynamic_linker='Win32 ld.exe' | |
10387 | # FIXME: first we should search . and the directory the executable is in | |
10388 | shlibpath_var=PATH | |
10389 | ;; | |
10390 | ||
10391 | darwin* | rhapsody*) | |
10392 | dynamic_linker="$host_os dyld" | |
10393 | version_type=darwin | |
10394 | need_lib_prefix=no | |
10395 | need_version=no | |
10396 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10397 | soname_spec='${libname}${release}${major}$shared_ext' | |
10398 | shlibpath_overrides_runpath=yes | |
10399 | shlibpath_var=DYLD_LIBRARY_PATH | |
10400 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10401 | ||
10402 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10403 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10404 | ;; | |
10405 | ||
10406 | dgux*) | |
10407 | version_type=linux | |
10408 | need_lib_prefix=no | |
10409 | need_version=no | |
10410 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10411 | soname_spec='${libname}${release}${shared_ext}$major' | |
10412 | shlibpath_var=LD_LIBRARY_PATH | |
10413 | ;; | |
10414 | ||
10415 | freebsd1*) | |
10416 | dynamic_linker=no | |
10417 | ;; | |
10418 | ||
10419 | freebsd* | dragonfly*) | |
10420 | # DragonFly does not have aout. When/if they implement a new | |
10421 | # versioning mechanism, adjust this. | |
10422 | if test -x /usr/bin/objformat; then | |
10423 | objformat=`/usr/bin/objformat` | |
10424 | else | |
10425 | case $host_os in | |
10426 | freebsd[123]*) objformat=aout ;; | |
10427 | *) objformat=elf ;; | |
10428 | esac | |
10429 | fi | |
10430 | version_type=freebsd-$objformat | |
10431 | case $version_type in | |
10432 | freebsd-elf*) | |
10433 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10434 | need_version=no | |
10435 | need_lib_prefix=no | |
10436 | ;; | |
10437 | freebsd-*) | |
10438 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10439 | need_version=yes | |
10440 | ;; | |
10441 | esac | |
10442 | shlibpath_var=LD_LIBRARY_PATH | |
10443 | case $host_os in | |
10444 | freebsd2*) | |
10445 | shlibpath_overrides_runpath=yes | |
10446 | ;; | |
10447 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10448 | shlibpath_overrides_runpath=yes | |
10449 | hardcode_into_libs=yes | |
10450 | ;; | |
10451 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10452 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10453 | shlibpath_overrides_runpath=no | |
10454 | hardcode_into_libs=yes | |
10455 | ;; | |
10456 | *) # from 4.6 on, and DragonFly | |
10457 | shlibpath_overrides_runpath=yes | |
10458 | hardcode_into_libs=yes | |
10459 | ;; | |
10460 | esac | |
10461 | ;; | |
10462 | ||
10463 | gnu*) | |
10464 | version_type=linux | |
10465 | need_lib_prefix=no | |
10466 | need_version=no | |
10467 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10468 | soname_spec='${libname}${release}${shared_ext}$major' | |
10469 | shlibpath_var=LD_LIBRARY_PATH | |
10470 | hardcode_into_libs=yes | |
10471 | ;; | |
10472 | ||
10473 | hpux9* | hpux10* | hpux11*) | |
10474 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10475 | # link against other versions. | |
10476 | version_type=sunos | |
10477 | need_lib_prefix=no | |
10478 | need_version=no | |
10479 | case $host_cpu in | |
10480 | ia64*) | |
10481 | shrext_cmds='.so' | |
10482 | hardcode_into_libs=yes | |
10483 | dynamic_linker="$host_os dld.so" | |
10484 | shlibpath_var=LD_LIBRARY_PATH | |
10485 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10486 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10487 | soname_spec='${libname}${release}${shared_ext}$major' | |
10488 | if test "X$HPUX_IA64_MODE" = X32; then | |
10489 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10490 | else | |
10491 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10492 | fi | |
10493 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10494 | ;; | |
10495 | hppa*64*) | |
10496 | shrext_cmds='.sl' | |
10497 | hardcode_into_libs=yes | |
10498 | dynamic_linker="$host_os dld.sl" | |
10499 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10500 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10501 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10502 | soname_spec='${libname}${release}${shared_ext}$major' | |
10503 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10504 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10505 | ;; | |
10506 | *) | |
10507 | shrext_cmds='.sl' | |
10508 | dynamic_linker="$host_os dld.sl" | |
10509 | shlibpath_var=SHLIB_PATH | |
10510 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10511 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10512 | soname_spec='${libname}${release}${shared_ext}$major' | |
10513 | ;; | |
10514 | esac | |
10515 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
10516 | postinstall_cmds='chmod 555 $lib' | |
10517 | ;; | |
10518 | ||
10519 | interix[3-9]*) | |
10520 | version_type=linux | |
10521 | need_lib_prefix=no | |
10522 | need_version=no | |
10523 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10524 | soname_spec='${libname}${release}${shared_ext}$major' | |
10525 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10526 | shlibpath_var=LD_LIBRARY_PATH | |
10527 | shlibpath_overrides_runpath=no | |
10528 | hardcode_into_libs=yes | |
10529 | ;; | |
10530 | ||
10531 | irix5* | irix6* | nonstopux*) | |
10532 | case $host_os in | |
10533 | nonstopux*) version_type=nonstopux ;; | |
10534 | *) | |
10535 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10536 | version_type=linux | |
10537 | else | |
10538 | version_type=irix | |
10539 | fi ;; | |
10540 | esac | |
10541 | need_lib_prefix=no | |
10542 | need_version=no | |
10543 | soname_spec='${libname}${release}${shared_ext}$major' | |
10544 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10545 | case $host_os in | |
10546 | irix5* | nonstopux*) | |
10547 | libsuff= shlibsuff= | |
10548 | ;; | |
10549 | *) | |
10550 | case $LD in # libtool.m4 will add one of these switches to LD | |
10551 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10552 | libsuff= shlibsuff= libmagic=32-bit;; | |
10553 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10554 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10555 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10556 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10557 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10558 | esac | |
10559 | ;; | |
10560 | esac | |
10561 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10562 | shlibpath_overrides_runpath=no | |
10563 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10564 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10565 | hardcode_into_libs=yes | |
10566 | ;; | |
10567 | ||
10568 | # No shared lib support for Linux oldld, aout, or coff. | |
10569 | linux*oldld* | linux*aout* | linux*coff*) | |
10570 | dynamic_linker=no | |
10571 | ;; | |
10572 | ||
10573 | # This must be Linux ELF. | |
10574 | linux* | k*bsd*-gnu) | |
10575 | version_type=linux | |
10576 | need_lib_prefix=no | |
10577 | need_version=no | |
10578 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10579 | soname_spec='${libname}${release}${shared_ext}$major' | |
10580 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10581 | shlibpath_var=LD_LIBRARY_PATH | |
10582 | shlibpath_overrides_runpath=no | |
baafc534 | 10583 | |
1cf3d07d | 10584 | # Some binutils ld are patched to set DT_RUNPATH |
baafc534 RW |
10585 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then |
10586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10587 | else | |
10588 | lt_cv_shlibpath_overrides_runpath=no | |
10589 | save_LDFLAGS=$LDFLAGS | |
10590 | save_libdir=$libdir | |
10591 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10592 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10593 | if test x$gcc_no_link = xyes; then | |
1cf3d07d SE |
10594 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 |
10595 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10596 | { (exit 1); exit 1; }; } | |
10597 | fi | |
10598 | cat >conftest.$ac_ext <<_ACEOF | |
10599 | /* confdefs.h. */ | |
10600 | _ACEOF | |
10601 | cat confdefs.h >>conftest.$ac_ext | |
10602 | cat >>conftest.$ac_ext <<_ACEOF | |
10603 | /* end confdefs.h. */ | |
10604 | ||
10605 | int | |
10606 | main () | |
10607 | { | |
10608 | ||
10609 | ; | |
10610 | return 0; | |
10611 | } | |
10612 | _ACEOF | |
10613 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10614 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10615 | (eval $ac_link) 2>conftest.er1 | |
10616 | ac_status=$? | |
10617 | grep -v '^ *+' conftest.er1 >conftest.err | |
10618 | rm -f conftest.er1 | |
10619 | cat conftest.err >&5 | |
10620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10621 | (exit $ac_status); } && | |
10622 | { ac_try='test -z "$ac_c_werror_flag" | |
10623 | || test ! -s conftest.err' | |
10624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10625 | (eval $ac_try) 2>&5 | |
10626 | ac_status=$? | |
10627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10628 | (exit $ac_status); }; } && | |
10629 | { ac_try='test -s conftest$ac_exeext' | |
10630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10631 | (eval $ac_try) 2>&5 | |
10632 | ac_status=$? | |
10633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10634 | (exit $ac_status); }; }; then | |
93e92f52 | 10635 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then |
baafc534 | 10636 | lt_cv_shlibpath_overrides_runpath=yes |
1cf3d07d SE |
10637 | fi |
10638 | ||
10639 | else | |
10640 | echo "$as_me: failed program was:" >&5 | |
10641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10642 | ||
10643 | fi | |
10644 | rm -f conftest.err conftest.$ac_objext \ | |
10645 | conftest$ac_exeext conftest.$ac_ext | |
baafc534 RW |
10646 | LDFLAGS=$save_LDFLAGS |
10647 | libdir=$save_libdir | |
10648 | ||
10649 | fi | |
10650 | ||
10651 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
1cf3d07d SE |
10652 | |
10653 | # This implies no fast_install, which is unacceptable. | |
10654 | # Some rework will be needed to allow for fast_install | |
10655 | # before this can be enabled. | |
10656 | hardcode_into_libs=yes | |
10657 | ||
10658 | # Append ld.so.conf contents to the search path | |
10659 | if test -f /etc/ld.so.conf; then | |
93e92f52 | 10660 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
1cf3d07d SE |
10661 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
10662 | fi | |
10663 | ||
10664 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10665 | # powerpc, because MkLinux only supported shared libraries with the | |
10666 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10667 | # most powerpc-linux boxes support dynamic linking these days and | |
10668 | # people can always --disable-shared, the test was removed, and we | |
10669 | # assume the GNU/Linux dynamic linker is in use. | |
10670 | dynamic_linker='GNU/Linux ld.so' | |
10671 | ;; | |
10672 | ||
10673 | netbsd*) | |
10674 | version_type=sunos | |
10675 | need_lib_prefix=no | |
10676 | need_version=no | |
10677 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10678 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10679 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10680 | dynamic_linker='NetBSD (a.out) ld.so' | |
10681 | else | |
10682 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10683 | soname_spec='${libname}${release}${shared_ext}$major' | |
10684 | dynamic_linker='NetBSD ld.elf_so' | |
10685 | fi | |
10686 | shlibpath_var=LD_LIBRARY_PATH | |
10687 | shlibpath_overrides_runpath=yes | |
10688 | hardcode_into_libs=yes | |
10689 | ;; | |
10690 | ||
10691 | newsos6) | |
10692 | version_type=linux | |
10693 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10694 | shlibpath_var=LD_LIBRARY_PATH | |
10695 | shlibpath_overrides_runpath=yes | |
10696 | ;; | |
10697 | ||
10698 | *nto* | *qnx*) | |
10699 | version_type=qnx | |
10700 | need_lib_prefix=no | |
10701 | need_version=no | |
10702 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10703 | soname_spec='${libname}${release}${shared_ext}$major' | |
10704 | shlibpath_var=LD_LIBRARY_PATH | |
10705 | shlibpath_overrides_runpath=no | |
10706 | hardcode_into_libs=yes | |
10707 | dynamic_linker='ldqnx.so' | |
10708 | ;; | |
10709 | ||
10710 | openbsd*) | |
10711 | version_type=sunos | |
10712 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10713 | need_lib_prefix=no | |
10714 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10715 | case $host_os in | |
10716 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10717 | *) need_version=no ;; | |
10718 | esac | |
10719 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10720 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10721 | shlibpath_var=LD_LIBRARY_PATH | |
10722 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10723 | case $host_os in | |
10724 | openbsd2.[89] | openbsd2.[89].*) | |
10725 | shlibpath_overrides_runpath=no | |
10726 | ;; | |
10727 | *) | |
10728 | shlibpath_overrides_runpath=yes | |
10729 | ;; | |
10730 | esac | |
10731 | else | |
10732 | shlibpath_overrides_runpath=yes | |
10733 | fi | |
10734 | ;; | |
10735 | ||
10736 | os2*) | |
10737 | libname_spec='$name' | |
10738 | shrext_cmds=".dll" | |
10739 | need_lib_prefix=no | |
10740 | library_names_spec='$libname${shared_ext} $libname.a' | |
10741 | dynamic_linker='OS/2 ld.exe' | |
10742 | shlibpath_var=LIBPATH | |
10743 | ;; | |
10744 | ||
10745 | osf3* | osf4* | osf5*) | |
10746 | version_type=osf | |
10747 | need_lib_prefix=no | |
10748 | need_version=no | |
10749 | soname_spec='${libname}${release}${shared_ext}$major' | |
10750 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10751 | shlibpath_var=LD_LIBRARY_PATH | |
10752 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10753 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10754 | ;; | |
10755 | ||
10756 | rdos*) | |
10757 | dynamic_linker=no | |
10758 | ;; | |
10759 | ||
10760 | solaris*) | |
10761 | version_type=linux | |
10762 | need_lib_prefix=no | |
10763 | need_version=no | |
10764 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10765 | soname_spec='${libname}${release}${shared_ext}$major' | |
10766 | shlibpath_var=LD_LIBRARY_PATH | |
10767 | shlibpath_overrides_runpath=yes | |
10768 | hardcode_into_libs=yes | |
10769 | # ldd complains unless libraries are executable | |
10770 | postinstall_cmds='chmod +x $lib' | |
10771 | ;; | |
10772 | ||
10773 | sunos4*) | |
10774 | version_type=sunos | |
10775 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10776 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10777 | shlibpath_var=LD_LIBRARY_PATH | |
10778 | shlibpath_overrides_runpath=yes | |
10779 | if test "$with_gnu_ld" = yes; then | |
10780 | need_lib_prefix=no | |
10781 | fi | |
10782 | need_version=yes | |
10783 | ;; | |
10784 | ||
10785 | sysv4 | sysv4.3*) | |
10786 | version_type=linux | |
10787 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10788 | soname_spec='${libname}${release}${shared_ext}$major' | |
10789 | shlibpath_var=LD_LIBRARY_PATH | |
10790 | case $host_vendor in | |
10791 | sni) | |
10792 | shlibpath_overrides_runpath=no | |
10793 | need_lib_prefix=no | |
10794 | runpath_var=LD_RUN_PATH | |
10795 | ;; | |
10796 | siemens) | |
10797 | need_lib_prefix=no | |
10798 | ;; | |
10799 | motorola) | |
10800 | need_lib_prefix=no | |
10801 | need_version=no | |
10802 | shlibpath_overrides_runpath=no | |
10803 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10804 | ;; | |
10805 | esac | |
10806 | ;; | |
10807 | ||
10808 | sysv4*MP*) | |
10809 | if test -d /usr/nec ;then | |
10810 | version_type=linux | |
10811 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10812 | soname_spec='$libname${shared_ext}.$major' | |
10813 | shlibpath_var=LD_LIBRARY_PATH | |
10814 | fi | |
10815 | ;; | |
10816 | ||
10817 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10818 | version_type=freebsd-elf | |
10819 | need_lib_prefix=no | |
10820 | need_version=no | |
10821 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10822 | soname_spec='${libname}${release}${shared_ext}$major' | |
10823 | shlibpath_var=LD_LIBRARY_PATH | |
10824 | shlibpath_overrides_runpath=yes | |
10825 | hardcode_into_libs=yes | |
10826 | if test "$with_gnu_ld" = yes; then | |
10827 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10828 | else | |
10829 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10830 | case $host_os in | |
10831 | sco3.2v5*) | |
10832 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10833 | ;; | |
10834 | esac | |
10835 | fi | |
10836 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10837 | ;; | |
10838 | ||
10839 | tpf*) | |
10840 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10841 | version_type=linux | |
10842 | need_lib_prefix=no | |
10843 | need_version=no | |
93e92f52 | 10844 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1cf3d07d SE |
10845 | shlibpath_var=LD_LIBRARY_PATH |
10846 | shlibpath_overrides_runpath=no | |
10847 | hardcode_into_libs=yes | |
10848 | ;; | |
10849 | ||
10850 | uts4*) | |
10851 | version_type=linux | |
10852 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10853 | soname_spec='${libname}${release}${shared_ext}$major' | |
10854 | shlibpath_var=LD_LIBRARY_PATH | |
10855 | ;; | |
10856 | ||
10857 | *) | |
10858 | dynamic_linker=no | |
10859 | ;; | |
10860 | esac | |
10861 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
10862 | echo "${ECHO_T}$dynamic_linker" >&6 | |
10863 | test "$dynamic_linker" = no && can_build_shared=no | |
10864 | ||
10865 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10866 | if test "$GCC" = yes; then | |
10867 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10868 | fi | |
10869 | ||
93e92f52 PG |
10870 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10871 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10872 | fi | |
10873 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10874 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10875 | fi | |
10876 | ||
1cf3d07d SE |
10877 | |
10878 | ||
10879 | ||
10880 | ||
10881 | ||
10882 | ||
10883 | ||
10884 | ||
10885 | ||
10886 | ||
10887 | ||
10888 | ||
10889 | ||
10890 | ||
10891 | ||
10892 | ||
10893 | ||
10894 | ||
10895 | ||
10896 | ||
10897 | ||
10898 | ||
10899 | ||
10900 | ||
10901 | ||
10902 | ||
10903 | ||
10904 | ||
10905 | ||
10906 | ||
10907 | ||
10908 | ||
10909 | ||
10910 | ||
10911 | ||
10912 | ||
10913 | ||
10914 | ||
10915 | ||
10916 | ||
10917 | ||
10918 | ||
10919 | ||
10920 | ||
10921 | ||
10922 | ||
10923 | ||
10924 | ||
10925 | ||
10926 | ||
10927 | ||
10928 | ||
10929 | ||
10930 | ||
10931 | ||
10932 | ||
10933 | ||
10934 | ||
10935 | ||
10936 | ||
10937 | ||
10938 | ||
10939 | ||
10940 | ||
10941 | ||
10942 | ||
10943 | ||
10944 | ||
10945 | ||
10946 | ||
10947 | ||
10948 | ||
10949 | ||
10950 | ||
10951 | ||
10952 | ||
10953 | ||
10954 | ||
10955 | ||
10956 | ||
10957 | ||
10958 | ||
10959 | ||
10960 | ||
10961 | ||
10962 | ||
10963 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
10964 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
10965 | hardcode_action= | |
10966 | if test -n "$hardcode_libdir_flag_spec" || | |
10967 | test -n "$runpath_var" || | |
10968 | test "X$hardcode_automatic" = "Xyes" ; then | |
10969 | ||
10970 | # We can hardcode non-existent directories. | |
10971 | if test "$hardcode_direct" != no && | |
10972 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10973 | # have to relink, otherwise we might link with an installed library | |
10974 | # when we should be linking with a yet-to-be-installed one | |
10975 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10976 | test "$hardcode_minus_L" != no; then | |
10977 | # Linking always hardcodes the temporary library directory. | |
10978 | hardcode_action=relink | |
10979 | else | |
10980 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10981 | hardcode_action=immediate | |
10982 | fi | |
10983 | else | |
10984 | # We cannot hardcode anything, or else we can only hardcode existing | |
10985 | # directories. | |
10986 | hardcode_action=unsupported | |
10987 | fi | |
10988 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
10989 | echo "${ECHO_T}$hardcode_action" >&6 | |
10990 | ||
10991 | if test "$hardcode_action" = relink || | |
10992 | test "$inherit_rpath" = yes; then | |
10993 | # Fast installation is not supported | |
10994 | enable_fast_install=no | |
10995 | elif test "$shlibpath_overrides_runpath" = yes || | |
10996 | test "$enable_shared" = no; then | |
10997 | # Fast installation is not necessary | |
10998 | enable_fast_install=needless | |
10999 | fi | |
11000 | ||
11001 | ||
11002 | ||
11003 | ||
11004 | ||
11005 | ||
11006 | if test "x$enable_dlopen" != xyes; then | |
11007 | enable_dlopen=unknown | |
11008 | enable_dlopen_self=unknown | |
11009 | enable_dlopen_self_static=unknown | |
11010 | else | |
11011 | lt_cv_dlopen=no | |
11012 | lt_cv_dlopen_libs= | |
11013 | ||
11014 | case $host_os in | |
11015 | beos*) | |
11016 | lt_cv_dlopen="load_add_on" | |
11017 | lt_cv_dlopen_libs= | |
11018 | lt_cv_dlopen_self=yes | |
11019 | ;; | |
11020 | ||
93e92f52 | 11021 | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
11022 | lt_cv_dlopen="LoadLibrary" |
11023 | lt_cv_dlopen_libs= | |
11024 | ;; | |
11025 | ||
11026 | cygwin*) | |
11027 | lt_cv_dlopen="dlopen" | |
11028 | lt_cv_dlopen_libs= | |
11029 | ;; | |
11030 | ||
11031 | darwin*) | |
11032 | # if libdl is installed we need to link against it | |
11033 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
11034 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
11035 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
11036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11037 | else | |
11038 | ac_check_lib_save_LIBS=$LIBS | |
11039 | LIBS="-ldl $LIBS" | |
11040 | if test x$gcc_no_link = xyes; then | |
11041 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11042 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11043 | { (exit 1); exit 1; }; } | |
11044 | fi | |
11045 | cat >conftest.$ac_ext <<_ACEOF | |
11046 | /* confdefs.h. */ | |
11047 | _ACEOF | |
11048 | cat confdefs.h >>conftest.$ac_ext | |
11049 | cat >>conftest.$ac_ext <<_ACEOF | |
11050 | /* end confdefs.h. */ | |
11051 | ||
11052 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11053 | #ifdef __cplusplus | |
11054 | extern "C" | |
11055 | #endif | |
11056 | /* We use char because int might match the return type of a gcc2 | |
11057 | builtin and then its argument prototype would still apply. */ | |
11058 | char dlopen (); | |
11059 | int | |
11060 | main () | |
11061 | { | |
11062 | dlopen (); | |
11063 | ; | |
11064 | return 0; | |
11065 | } | |
11066 | _ACEOF | |
11067 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11068 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11069 | (eval $ac_link) 2>conftest.er1 | |
11070 | ac_status=$? | |
11071 | grep -v '^ *+' conftest.er1 >conftest.err | |
11072 | rm -f conftest.er1 | |
11073 | cat conftest.err >&5 | |
11074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11075 | (exit $ac_status); } && | |
11076 | { ac_try='test -z "$ac_c_werror_flag" | |
11077 | || test ! -s conftest.err' | |
11078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11079 | (eval $ac_try) 2>&5 | |
11080 | ac_status=$? | |
11081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11082 | (exit $ac_status); }; } && | |
11083 | { ac_try='test -s conftest$ac_exeext' | |
11084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11085 | (eval $ac_try) 2>&5 | |
11086 | ac_status=$? | |
11087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11088 | (exit $ac_status); }; }; then | |
11089 | ac_cv_lib_dl_dlopen=yes | |
11090 | else | |
11091 | echo "$as_me: failed program was:" >&5 | |
11092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11093 | ||
11094 | ac_cv_lib_dl_dlopen=no | |
11095 | fi | |
11096 | rm -f conftest.err conftest.$ac_objext \ | |
11097 | conftest$ac_exeext conftest.$ac_ext | |
11098 | LIBS=$ac_check_lib_save_LIBS | |
11099 | fi | |
11100 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
11101 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
11102 | if test $ac_cv_lib_dl_dlopen = yes; then | |
11103 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11104 | else | |
11105 | ||
11106 | lt_cv_dlopen="dyld" | |
11107 | lt_cv_dlopen_libs= | |
11108 | lt_cv_dlopen_self=yes | |
11109 | ||
11110 | fi | |
11111 | ||
11112 | ;; | |
11113 | ||
11114 | *) | |
11115 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
11116 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
11117 | if test "${ac_cv_func_shl_load+set}" = set; then | |
11118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11119 | else | |
11120 | if test x$gcc_no_link = xyes; then | |
11121 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11122 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11123 | { (exit 1); exit 1; }; } | |
11124 | fi | |
11125 | cat >conftest.$ac_ext <<_ACEOF | |
11126 | /* confdefs.h. */ | |
11127 | _ACEOF | |
11128 | cat confdefs.h >>conftest.$ac_ext | |
11129 | cat >>conftest.$ac_ext <<_ACEOF | |
11130 | /* end confdefs.h. */ | |
11131 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
11132 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11133 | #define shl_load innocuous_shl_load | |
11134 | ||
11135 | /* System header to define __stub macros and hopefully few prototypes, | |
11136 | which can conflict with char shl_load (); below. | |
11137 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11138 | <limits.h> exists even on freestanding compilers. */ | |
11139 | ||
11140 | #ifdef __STDC__ | |
11141 | # include <limits.h> | |
11142 | #else | |
11143 | # include <assert.h> | |
11144 | #endif | |
11145 | ||
11146 | #undef shl_load | |
11147 | ||
11148 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11149 | #ifdef __cplusplus | |
11150 | extern "C" | |
11151 | { | |
11152 | #endif | |
11153 | /* We use char because int might match the return type of a gcc2 | |
11154 | builtin and then its argument prototype would still apply. */ | |
11155 | char shl_load (); | |
11156 | /* The GNU C library defines this for functions which it implements | |
11157 | to always fail with ENOSYS. Some functions are actually named | |
11158 | something starting with __ and the normal name is an alias. */ | |
11159 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
11160 | choke me | |
11161 | #else | |
11162 | char (*f) () = shl_load; | |
11163 | #endif | |
11164 | #ifdef __cplusplus | |
11165 | } | |
11166 | #endif | |
11167 | ||
11168 | int | |
11169 | main () | |
11170 | { | |
11171 | return f != shl_load; | |
11172 | ; | |
11173 | return 0; | |
11174 | } | |
11175 | _ACEOF | |
11176 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11177 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11178 | (eval $ac_link) 2>conftest.er1 | |
11179 | ac_status=$? | |
11180 | grep -v '^ *+' conftest.er1 >conftest.err | |
11181 | rm -f conftest.er1 | |
11182 | cat conftest.err >&5 | |
11183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11184 | (exit $ac_status); } && | |
11185 | { ac_try='test -z "$ac_c_werror_flag" | |
11186 | || test ! -s conftest.err' | |
11187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11188 | (eval $ac_try) 2>&5 | |
11189 | ac_status=$? | |
11190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11191 | (exit $ac_status); }; } && | |
11192 | { ac_try='test -s conftest$ac_exeext' | |
11193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11194 | (eval $ac_try) 2>&5 | |
11195 | ac_status=$? | |
11196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11197 | (exit $ac_status); }; }; then | |
11198 | ac_cv_func_shl_load=yes | |
11199 | else | |
11200 | echo "$as_me: failed program was:" >&5 | |
11201 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11202 | ||
11203 | ac_cv_func_shl_load=no | |
11204 | fi | |
11205 | rm -f conftest.err conftest.$ac_objext \ | |
11206 | conftest$ac_exeext conftest.$ac_ext | |
11207 | fi | |
11208 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
11209 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
11210 | if test $ac_cv_func_shl_load = yes; then | |
11211 | lt_cv_dlopen="shl_load" | |
11212 | else | |
11213 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
11214 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
11215 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
11216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11217 | else | |
11218 | ac_check_lib_save_LIBS=$LIBS | |
11219 | LIBS="-ldld $LIBS" | |
11220 | if test x$gcc_no_link = xyes; then | |
11221 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11222 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11223 | { (exit 1); exit 1; }; } | |
11224 | fi | |
11225 | cat >conftest.$ac_ext <<_ACEOF | |
11226 | /* confdefs.h. */ | |
11227 | _ACEOF | |
11228 | cat confdefs.h >>conftest.$ac_ext | |
11229 | cat >>conftest.$ac_ext <<_ACEOF | |
11230 | /* end confdefs.h. */ | |
11231 | ||
11232 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11233 | #ifdef __cplusplus | |
11234 | extern "C" | |
11235 | #endif | |
11236 | /* We use char because int might match the return type of a gcc2 | |
11237 | builtin and then its argument prototype would still apply. */ | |
11238 | char shl_load (); | |
11239 | int | |
11240 | main () | |
11241 | { | |
11242 | shl_load (); | |
11243 | ; | |
11244 | return 0; | |
11245 | } | |
11246 | _ACEOF | |
11247 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11248 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11249 | (eval $ac_link) 2>conftest.er1 | |
11250 | ac_status=$? | |
11251 | grep -v '^ *+' conftest.er1 >conftest.err | |
11252 | rm -f conftest.er1 | |
11253 | cat conftest.err >&5 | |
11254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11255 | (exit $ac_status); } && | |
11256 | { ac_try='test -z "$ac_c_werror_flag" | |
11257 | || test ! -s conftest.err' | |
11258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11259 | (eval $ac_try) 2>&5 | |
11260 | ac_status=$? | |
11261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11262 | (exit $ac_status); }; } && | |
11263 | { ac_try='test -s conftest$ac_exeext' | |
11264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11265 | (eval $ac_try) 2>&5 | |
11266 | ac_status=$? | |
11267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11268 | (exit $ac_status); }; }; then | |
11269 | ac_cv_lib_dld_shl_load=yes | |
11270 | else | |
11271 | echo "$as_me: failed program was:" >&5 | |
11272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11273 | ||
11274 | ac_cv_lib_dld_shl_load=no | |
11275 | fi | |
11276 | rm -f conftest.err conftest.$ac_objext \ | |
11277 | conftest$ac_exeext conftest.$ac_ext | |
11278 | LIBS=$ac_check_lib_save_LIBS | |
11279 | fi | |
11280 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
11281 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
11282 | if test $ac_cv_lib_dld_shl_load = yes; then | |
93e92f52 | 11283 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
1cf3d07d SE |
11284 | else |
11285 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
11286 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
11287 | if test "${ac_cv_func_dlopen+set}" = set; then | |
11288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11289 | else | |
11290 | if test x$gcc_no_link = xyes; then | |
11291 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11292 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11293 | { (exit 1); exit 1; }; } | |
11294 | fi | |
11295 | cat >conftest.$ac_ext <<_ACEOF | |
11296 | /* confdefs.h. */ | |
11297 | _ACEOF | |
11298 | cat confdefs.h >>conftest.$ac_ext | |
11299 | cat >>conftest.$ac_ext <<_ACEOF | |
11300 | /* end confdefs.h. */ | |
11301 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
11302 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11303 | #define dlopen innocuous_dlopen | |
11304 | ||
11305 | /* System header to define __stub macros and hopefully few prototypes, | |
11306 | which can conflict with char dlopen (); below. | |
11307 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11308 | <limits.h> exists even on freestanding compilers. */ | |
11309 | ||
11310 | #ifdef __STDC__ | |
11311 | # include <limits.h> | |
11312 | #else | |
11313 | # include <assert.h> | |
11314 | #endif | |
11315 | ||
11316 | #undef dlopen | |
11317 | ||
11318 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11319 | #ifdef __cplusplus | |
11320 | extern "C" | |
11321 | { | |
11322 | #endif | |
11323 | /* We use char because int might match the return type of a gcc2 | |
11324 | builtin and then its argument prototype would still apply. */ | |
11325 | char dlopen (); | |
11326 | /* The GNU C library defines this for functions which it implements | |
11327 | to always fail with ENOSYS. Some functions are actually named | |
11328 | something starting with __ and the normal name is an alias. */ | |
11329 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
11330 | choke me | |
11331 | #else | |
11332 | char (*f) () = dlopen; | |
11333 | #endif | |
11334 | #ifdef __cplusplus | |
11335 | } | |
11336 | #endif | |
11337 | ||
11338 | int | |
11339 | main () | |
11340 | { | |
11341 | return f != dlopen; | |
11342 | ; | |
11343 | return 0; | |
11344 | } | |
11345 | _ACEOF | |
11346 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11347 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11348 | (eval $ac_link) 2>conftest.er1 | |
11349 | ac_status=$? | |
11350 | grep -v '^ *+' conftest.er1 >conftest.err | |
11351 | rm -f conftest.er1 | |
11352 | cat conftest.err >&5 | |
11353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11354 | (exit $ac_status); } && | |
11355 | { ac_try='test -z "$ac_c_werror_flag" | |
11356 | || test ! -s conftest.err' | |
11357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11358 | (eval $ac_try) 2>&5 | |
11359 | ac_status=$? | |
11360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11361 | (exit $ac_status); }; } && | |
11362 | { ac_try='test -s conftest$ac_exeext' | |
11363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11364 | (eval $ac_try) 2>&5 | |
11365 | ac_status=$? | |
11366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11367 | (exit $ac_status); }; }; then | |
11368 | ac_cv_func_dlopen=yes | |
11369 | else | |
11370 | echo "$as_me: failed program was:" >&5 | |
11371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11372 | ||
11373 | ac_cv_func_dlopen=no | |
11374 | fi | |
11375 | rm -f conftest.err conftest.$ac_objext \ | |
11376 | conftest$ac_exeext conftest.$ac_ext | |
11377 | fi | |
11378 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
11379 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
11380 | if test $ac_cv_func_dlopen = yes; then | |
11381 | lt_cv_dlopen="dlopen" | |
11382 | else | |
11383 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
11384 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
11385 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
11386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11387 | else | |
11388 | ac_check_lib_save_LIBS=$LIBS | |
11389 | LIBS="-ldl $LIBS" | |
11390 | if test x$gcc_no_link = xyes; then | |
11391 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11392 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11393 | { (exit 1); exit 1; }; } | |
11394 | fi | |
11395 | cat >conftest.$ac_ext <<_ACEOF | |
11396 | /* confdefs.h. */ | |
11397 | _ACEOF | |
11398 | cat confdefs.h >>conftest.$ac_ext | |
11399 | cat >>conftest.$ac_ext <<_ACEOF | |
11400 | /* end confdefs.h. */ | |
11401 | ||
11402 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11403 | #ifdef __cplusplus | |
11404 | extern "C" | |
11405 | #endif | |
11406 | /* We use char because int might match the return type of a gcc2 | |
11407 | builtin and then its argument prototype would still apply. */ | |
11408 | char dlopen (); | |
11409 | int | |
11410 | main () | |
11411 | { | |
11412 | dlopen (); | |
11413 | ; | |
11414 | return 0; | |
11415 | } | |
11416 | _ACEOF | |
11417 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11418 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11419 | (eval $ac_link) 2>conftest.er1 | |
11420 | ac_status=$? | |
11421 | grep -v '^ *+' conftest.er1 >conftest.err | |
11422 | rm -f conftest.er1 | |
11423 | cat conftest.err >&5 | |
11424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11425 | (exit $ac_status); } && | |
11426 | { ac_try='test -z "$ac_c_werror_flag" | |
11427 | || test ! -s conftest.err' | |
11428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11429 | (eval $ac_try) 2>&5 | |
11430 | ac_status=$? | |
11431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11432 | (exit $ac_status); }; } && | |
11433 | { ac_try='test -s conftest$ac_exeext' | |
11434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11435 | (eval $ac_try) 2>&5 | |
11436 | ac_status=$? | |
11437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11438 | (exit $ac_status); }; }; then | |
11439 | ac_cv_lib_dl_dlopen=yes | |
11440 | else | |
11441 | echo "$as_me: failed program was:" >&5 | |
11442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11443 | ||
11444 | ac_cv_lib_dl_dlopen=no | |
11445 | fi | |
11446 | rm -f conftest.err conftest.$ac_objext \ | |
11447 | conftest$ac_exeext conftest.$ac_ext | |
11448 | LIBS=$ac_check_lib_save_LIBS | |
11449 | fi | |
11450 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
11451 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
11452 | if test $ac_cv_lib_dl_dlopen = yes; then | |
11453 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11454 | else | |
11455 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
11456 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
11457 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
11458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11459 | else | |
11460 | ac_check_lib_save_LIBS=$LIBS | |
11461 | LIBS="-lsvld $LIBS" | |
11462 | if test x$gcc_no_link = xyes; then | |
11463 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11464 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11465 | { (exit 1); exit 1; }; } | |
11466 | fi | |
11467 | cat >conftest.$ac_ext <<_ACEOF | |
11468 | /* confdefs.h. */ | |
11469 | _ACEOF | |
11470 | cat confdefs.h >>conftest.$ac_ext | |
11471 | cat >>conftest.$ac_ext <<_ACEOF | |
11472 | /* end confdefs.h. */ | |
11473 | ||
11474 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11475 | #ifdef __cplusplus | |
11476 | extern "C" | |
11477 | #endif | |
11478 | /* We use char because int might match the return type of a gcc2 | |
11479 | builtin and then its argument prototype would still apply. */ | |
11480 | char dlopen (); | |
11481 | int | |
11482 | main () | |
11483 | { | |
11484 | dlopen (); | |
11485 | ; | |
11486 | return 0; | |
11487 | } | |
11488 | _ACEOF | |
11489 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11490 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11491 | (eval $ac_link) 2>conftest.er1 | |
11492 | ac_status=$? | |
11493 | grep -v '^ *+' conftest.er1 >conftest.err | |
11494 | rm -f conftest.er1 | |
11495 | cat conftest.err >&5 | |
11496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11497 | (exit $ac_status); } && | |
11498 | { ac_try='test -z "$ac_c_werror_flag" | |
11499 | || test ! -s conftest.err' | |
11500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11501 | (eval $ac_try) 2>&5 | |
11502 | ac_status=$? | |
11503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11504 | (exit $ac_status); }; } && | |
11505 | { ac_try='test -s conftest$ac_exeext' | |
11506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11507 | (eval $ac_try) 2>&5 | |
11508 | ac_status=$? | |
11509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11510 | (exit $ac_status); }; }; then | |
11511 | ac_cv_lib_svld_dlopen=yes | |
11512 | else | |
11513 | echo "$as_me: failed program was:" >&5 | |
11514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11515 | ||
11516 | ac_cv_lib_svld_dlopen=no | |
11517 | fi | |
11518 | rm -f conftest.err conftest.$ac_objext \ | |
11519 | conftest$ac_exeext conftest.$ac_ext | |
11520 | LIBS=$ac_check_lib_save_LIBS | |
11521 | fi | |
11522 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
11523 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
11524 | if test $ac_cv_lib_svld_dlopen = yes; then | |
11525 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
11526 | else | |
11527 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
11528 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
11529 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
11530 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11531 | else | |
11532 | ac_check_lib_save_LIBS=$LIBS | |
11533 | LIBS="-ldld $LIBS" | |
11534 | if test x$gcc_no_link = xyes; then | |
11535 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11536 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11537 | { (exit 1); exit 1; }; } | |
11538 | fi | |
11539 | cat >conftest.$ac_ext <<_ACEOF | |
11540 | /* confdefs.h. */ | |
11541 | _ACEOF | |
11542 | cat confdefs.h >>conftest.$ac_ext | |
11543 | cat >>conftest.$ac_ext <<_ACEOF | |
11544 | /* end confdefs.h. */ | |
11545 | ||
11546 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11547 | #ifdef __cplusplus | |
11548 | extern "C" | |
11549 | #endif | |
11550 | /* We use char because int might match the return type of a gcc2 | |
11551 | builtin and then its argument prototype would still apply. */ | |
11552 | char dld_link (); | |
11553 | int | |
11554 | main () | |
11555 | { | |
11556 | dld_link (); | |
11557 | ; | |
11558 | return 0; | |
11559 | } | |
11560 | _ACEOF | |
11561 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11562 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11563 | (eval $ac_link) 2>conftest.er1 | |
11564 | ac_status=$? | |
11565 | grep -v '^ *+' conftest.er1 >conftest.err | |
11566 | rm -f conftest.er1 | |
11567 | cat conftest.err >&5 | |
11568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11569 | (exit $ac_status); } && | |
11570 | { ac_try='test -z "$ac_c_werror_flag" | |
11571 | || test ! -s conftest.err' | |
11572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11573 | (eval $ac_try) 2>&5 | |
11574 | ac_status=$? | |
11575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11576 | (exit $ac_status); }; } && | |
11577 | { ac_try='test -s conftest$ac_exeext' | |
11578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11579 | (eval $ac_try) 2>&5 | |
11580 | ac_status=$? | |
11581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11582 | (exit $ac_status); }; }; then | |
11583 | ac_cv_lib_dld_dld_link=yes | |
11584 | else | |
11585 | echo "$as_me: failed program was:" >&5 | |
11586 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11587 | ||
11588 | ac_cv_lib_dld_dld_link=no | |
11589 | fi | |
11590 | rm -f conftest.err conftest.$ac_objext \ | |
11591 | conftest$ac_exeext conftest.$ac_ext | |
11592 | LIBS=$ac_check_lib_save_LIBS | |
11593 | fi | |
11594 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
11595 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
11596 | if test $ac_cv_lib_dld_dld_link = yes; then | |
93e92f52 | 11597 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
1cf3d07d SE |
11598 | fi |
11599 | ||
11600 | ||
11601 | fi | |
11602 | ||
11603 | ||
11604 | fi | |
11605 | ||
11606 | ||
11607 | fi | |
11608 | ||
11609 | ||
11610 | fi | |
11611 | ||
11612 | ||
11613 | fi | |
11614 | ||
11615 | ;; | |
11616 | esac | |
11617 | ||
11618 | if test "x$lt_cv_dlopen" != xno; then | |
11619 | enable_dlopen=yes | |
11620 | else | |
11621 | enable_dlopen=no | |
11622 | fi | |
11623 | ||
11624 | case $lt_cv_dlopen in | |
11625 | dlopen) | |
11626 | save_CPPFLAGS="$CPPFLAGS" | |
11627 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11628 | ||
11629 | save_LDFLAGS="$LDFLAGS" | |
11630 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11631 | ||
11632 | save_LIBS="$LIBS" | |
11633 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11634 | ||
11635 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
11636 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
11637 | if test "${lt_cv_dlopen_self+set}" = set; then | |
11638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11639 | else | |
11640 | if test "$cross_compiling" = yes; then : | |
11641 | lt_cv_dlopen_self=cross | |
11642 | else | |
11643 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11644 | lt_status=$lt_dlunknown | |
11645 | cat > conftest.$ac_ext <<_LT_EOF | |
baafc534 | 11646 | #line 11646 "configure" |
1cf3d07d SE |
11647 | #include "confdefs.h" |
11648 | ||
11649 | #if HAVE_DLFCN_H | |
11650 | #include <dlfcn.h> | |
11651 | #endif | |
11652 | ||
11653 | #include <stdio.h> | |
11654 | ||
11655 | #ifdef RTLD_GLOBAL | |
11656 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11657 | #else | |
11658 | # ifdef DL_GLOBAL | |
11659 | # define LT_DLGLOBAL DL_GLOBAL | |
11660 | # else | |
11661 | # define LT_DLGLOBAL 0 | |
11662 | # endif | |
11663 | #endif | |
11664 | ||
11665 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11666 | find out it does not work in some platform. */ | |
11667 | #ifndef LT_DLLAZY_OR_NOW | |
11668 | # ifdef RTLD_LAZY | |
11669 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11670 | # else | |
11671 | # ifdef DL_LAZY | |
11672 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11673 | # else | |
11674 | # ifdef RTLD_NOW | |
11675 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11676 | # else | |
11677 | # ifdef DL_NOW | |
11678 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11679 | # else | |
11680 | # define LT_DLLAZY_OR_NOW 0 | |
11681 | # endif | |
11682 | # endif | |
11683 | # endif | |
11684 | # endif | |
11685 | #endif | |
11686 | ||
1cf3d07d SE |
11687 | void fnord() { int i=42;} |
11688 | int main () | |
11689 | { | |
11690 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11691 | int status = $lt_dlunknown; | |
11692 | ||
11693 | if (self) | |
11694 | { | |
11695 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11696 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11697 | /* dlclose (self); */ | |
11698 | } | |
11699 | else | |
11700 | puts (dlerror ()); | |
11701 | ||
93e92f52 | 11702 | return status; |
1cf3d07d SE |
11703 | } |
11704 | _LT_EOF | |
11705 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11706 | (eval $ac_link) 2>&5 | |
11707 | ac_status=$? | |
11708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11709 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11710 | (./conftest; exit; ) >&5 2>/dev/null | |
11711 | lt_status=$? | |
11712 | case x$lt_status in | |
11713 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11714 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11715 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11716 | esac | |
11717 | else : | |
11718 | # compilation failed | |
11719 | lt_cv_dlopen_self=no | |
11720 | fi | |
11721 | fi | |
11722 | rm -fr conftest* | |
11723 | ||
11724 | ||
11725 | fi | |
11726 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
11727 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
11728 | ||
11729 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11730 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11731 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
11732 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
11733 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
11734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11735 | else | |
11736 | if test "$cross_compiling" = yes; then : | |
11737 | lt_cv_dlopen_self_static=cross | |
11738 | else | |
11739 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11740 | lt_status=$lt_dlunknown | |
11741 | cat > conftest.$ac_ext <<_LT_EOF | |
baafc534 | 11742 | #line 11742 "configure" |
1cf3d07d SE |
11743 | #include "confdefs.h" |
11744 | ||
11745 | #if HAVE_DLFCN_H | |
11746 | #include <dlfcn.h> | |
11747 | #endif | |
11748 | ||
11749 | #include <stdio.h> | |
11750 | ||
11751 | #ifdef RTLD_GLOBAL | |
11752 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11753 | #else | |
11754 | # ifdef DL_GLOBAL | |
11755 | # define LT_DLGLOBAL DL_GLOBAL | |
11756 | # else | |
11757 | # define LT_DLGLOBAL 0 | |
11758 | # endif | |
11759 | #endif | |
11760 | ||
11761 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11762 | find out it does not work in some platform. */ | |
11763 | #ifndef LT_DLLAZY_OR_NOW | |
11764 | # ifdef RTLD_LAZY | |
11765 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11766 | # else | |
11767 | # ifdef DL_LAZY | |
11768 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11769 | # else | |
11770 | # ifdef RTLD_NOW | |
11771 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11772 | # else | |
11773 | # ifdef DL_NOW | |
11774 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11775 | # else | |
11776 | # define LT_DLLAZY_OR_NOW 0 | |
11777 | # endif | |
11778 | # endif | |
11779 | # endif | |
11780 | # endif | |
11781 | #endif | |
11782 | ||
1cf3d07d SE |
11783 | void fnord() { int i=42;} |
11784 | int main () | |
11785 | { | |
11786 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11787 | int status = $lt_dlunknown; | |
11788 | ||
11789 | if (self) | |
11790 | { | |
11791 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11792 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11793 | /* dlclose (self); */ | |
11794 | } | |
11795 | else | |
11796 | puts (dlerror ()); | |
11797 | ||
93e92f52 | 11798 | return status; |
1cf3d07d SE |
11799 | } |
11800 | _LT_EOF | |
11801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11802 | (eval $ac_link) 2>&5 | |
11803 | ac_status=$? | |
11804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11805 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11806 | (./conftest; exit; ) >&5 2>/dev/null | |
11807 | lt_status=$? | |
11808 | case x$lt_status in | |
11809 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11810 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11811 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11812 | esac | |
11813 | else : | |
11814 | # compilation failed | |
11815 | lt_cv_dlopen_self_static=no | |
11816 | fi | |
11817 | fi | |
11818 | rm -fr conftest* | |
11819 | ||
11820 | ||
11821 | fi | |
11822 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
11823 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
11824 | fi | |
11825 | ||
11826 | CPPFLAGS="$save_CPPFLAGS" | |
11827 | LDFLAGS="$save_LDFLAGS" | |
11828 | LIBS="$save_LIBS" | |
11829 | ;; | |
11830 | esac | |
11831 | ||
11832 | case $lt_cv_dlopen_self in | |
11833 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11834 | *) enable_dlopen_self=unknown ;; | |
11835 | esac | |
11836 | ||
11837 | case $lt_cv_dlopen_self_static in | |
11838 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11839 | *) enable_dlopen_self_static=unknown ;; | |
11840 | esac | |
11841 | fi | |
11842 | ||
11843 | ||
11844 | ||
11845 | ||
11846 | ||
11847 | ||
11848 | ||
11849 | ||
11850 | ||
11851 | ||
11852 | ||
11853 | ||
11854 | ||
11855 | ||
11856 | ||
11857 | ||
11858 | ||
11859 | striplib= | |
11860 | old_striplib= | |
11861 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
11862 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
11863 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11864 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11865 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11866 | echo "$as_me:$LINENO: result: yes" >&5 | |
11867 | echo "${ECHO_T}yes" >&6 | |
11868 | else | |
11869 | # FIXME - insert some real tests, host_os isn't really good enough | |
11870 | case $host_os in | |
11871 | darwin*) | |
11872 | if test -n "$STRIP" ; then | |
11873 | striplib="$STRIP -x" | |
11874 | old_striplib="$STRIP -S" | |
11875 | echo "$as_me:$LINENO: result: yes" >&5 | |
11876 | echo "${ECHO_T}yes" >&6 | |
11877 | else | |
11878 | echo "$as_me:$LINENO: result: no" >&5 | |
11879 | echo "${ECHO_T}no" >&6 | |
11880 | fi | |
11881 | ;; | |
11882 | *) | |
11883 | echo "$as_me:$LINENO: result: no" >&5 | |
11884 | echo "${ECHO_T}no" >&6 | |
11885 | ;; | |
11886 | esac | |
11887 | fi | |
11888 | ||
11889 | ||
11890 | ||
11891 | ||
11892 | ||
11893 | ||
11894 | ||
11895 | ||
11896 | ||
11897 | ||
11898 | ||
11899 | ||
11900 | # Report which library types will actually be built | |
11901 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
11902 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
11903 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
11904 | echo "${ECHO_T}$can_build_shared" >&6 | |
11905 | ||
11906 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
11907 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
11908 | test "$can_build_shared" = "no" && enable_shared=no | |
11909 | ||
11910 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11911 | # are all built from PIC. | |
11912 | case $host_os in | |
11913 | aix3*) | |
11914 | test "$enable_shared" = yes && enable_static=no | |
11915 | if test -n "$RANLIB"; then | |
11916 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11917 | postinstall_cmds='$RANLIB $lib' | |
11918 | fi | |
11919 | ;; | |
11920 | ||
f3641e7e | 11921 | aix[4-9]*) |
1cf3d07d SE |
11922 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
11923 | test "$enable_shared" = yes && enable_static=no | |
11924 | fi | |
11925 | ;; | |
11926 | esac | |
11927 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
11928 | echo "${ECHO_T}$enable_shared" >&6 | |
11929 | ||
11930 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
11931 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
11932 | # Make sure either enable_shared or enable_static is yes. | |
11933 | test "$enable_shared" = yes || enable_static=yes | |
11934 | echo "$as_me:$LINENO: result: $enable_static" >&5 | |
11935 | echo "${ECHO_T}$enable_static" >&6 | |
11936 | ||
11937 | ||
11938 | ||
11939 | ||
11940 | fi | |
11941 | ac_ext=c | |
11942 | ac_cpp='$CPP $CPPFLAGS' | |
11943 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11944 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11945 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11946 | ||
11947 | CC="$lt_save_CC" | |
11948 | ||
11949 | ||
11950 | ac_ext=cc | |
11951 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11952 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11953 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11954 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11955 | ||
11956 | archive_cmds_need_lc_CXX=no | |
11957 | allow_undefined_flag_CXX= | |
11958 | always_export_symbols_CXX=no | |
11959 | archive_expsym_cmds_CXX= | |
11960 | compiler_needs_object_CXX=no | |
11961 | export_dynamic_flag_spec_CXX= | |
11962 | hardcode_direct_CXX=no | |
11963 | hardcode_direct_absolute_CXX=no | |
11964 | hardcode_libdir_flag_spec_CXX= | |
11965 | hardcode_libdir_flag_spec_ld_CXX= | |
11966 | hardcode_libdir_separator_CXX= | |
11967 | hardcode_minus_L_CXX=no | |
11968 | hardcode_shlibpath_var_CXX=unsupported | |
11969 | hardcode_automatic_CXX=no | |
11970 | inherit_rpath_CXX=no | |
11971 | module_cmds_CXX= | |
11972 | module_expsym_cmds_CXX= | |
11973 | link_all_deplibs_CXX=unknown | |
11974 | old_archive_cmds_CXX=$old_archive_cmds | |
11975 | no_undefined_flag_CXX= | |
11976 | whole_archive_flag_spec_CXX= | |
11977 | enable_shared_with_static_runtimes_CXX=no | |
11978 | ||
11979 | # Source file extension for C++ test sources. | |
11980 | ac_ext=cpp | |
11981 | ||
11982 | # Object file extension for compiled C++ test sources. | |
11983 | objext=o | |
11984 | objext_CXX=$objext | |
11985 | ||
11986 | # No sense in running all these tests if we already determined that | |
11987 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
11988 | # are currently assumed to apply to all compilers on this platform, | |
11989 | # and will be corrupted by setting them based on a non-working compiler. | |
11990 | if test "$_lt_caught_CXX_error" != yes; then | |
11991 | # Code to be used in simple compile tests | |
11992 | lt_simple_compile_test_code="int some_variable = 0;" | |
11993 | ||
11994 | # Code to be used in simple link tests | |
11995 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
11996 | ||
11997 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
11998 | ||
11999 | ||
12000 | ||
12001 | ||
12002 | ||
12003 | ||
12004 | # If no C compiler was specified, use CC. | |
12005 | LTCC=${LTCC-"$CC"} | |
12006 | ||
12007 | # If no C compiler flags were specified, use CFLAGS. | |
12008 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
12009 | ||
12010 | # Allow CC to be a program name with arguments. | |
12011 | compiler=$CC | |
12012 | ||
12013 | ||
12014 | # save warnings/boilerplate of simple test code | |
12015 | ac_outfile=conftest.$ac_objext | |
12016 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
12017 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12018 | _lt_compiler_boilerplate=`cat conftest.err` | |
12019 | $RM conftest* | |
12020 | ||
12021 | ac_outfile=conftest.$ac_objext | |
12022 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
12023 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12024 | _lt_linker_boilerplate=`cat conftest.err` | |
93e92f52 | 12025 | $RM -r conftest* |
1cf3d07d SE |
12026 | |
12027 | ||
12028 | # Allow CC to be a program name with arguments. | |
12029 | lt_save_CC=$CC | |
12030 | lt_save_LD=$LD | |
12031 | lt_save_GCC=$GCC | |
12032 | GCC=$GXX | |
12033 | lt_save_with_gnu_ld=$with_gnu_ld | |
12034 | lt_save_path_LD=$lt_cv_path_LD | |
12035 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
12036 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
12037 | else | |
12038 | $as_unset lt_cv_prog_gnu_ld | |
12039 | fi | |
12040 | if test -n "${lt_cv_path_LDCXX+set}"; then | |
12041 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
12042 | else | |
12043 | $as_unset lt_cv_path_LD | |
12044 | fi | |
12045 | test -z "${LDCXX+set}" || LD=$LDCXX | |
12046 | CC=${CXX-"c++"} | |
12047 | compiler=$CC | |
12048 | compiler_CXX=$CC | |
12049 | for cc_temp in $compiler""; do | |
12050 | case $cc_temp in | |
12051 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
12052 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
12053 | \-*) ;; | |
12054 | *) break;; | |
12055 | esac | |
12056 | done | |
12057 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
12058 | ||
12059 | ||
12060 | if test -n "$compiler"; then | |
12061 | # We don't want -fno-exception when compiling C++ code, so set the | |
12062 | # no_builtin_flag separately | |
12063 | if test "$GXX" = yes; then | |
12064 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
12065 | else | |
12066 | lt_prog_compiler_no_builtin_flag_CXX= | |
12067 | fi | |
12068 | ||
12069 | if test "$GXX" = yes; then | |
12070 | # Set up default GNU C++ configuration | |
12071 | ||
12072 | ||
12073 | ||
12074 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
12075 | if test "${with_gnu_ld+set}" = set; then | |
12076 | withval="$with_gnu_ld" | |
12077 | test "$withval" = no || with_gnu_ld=yes | |
12078 | else | |
12079 | with_gnu_ld=no | |
12080 | fi; | |
12081 | ac_prog=ld | |
12082 | if test "$GCC" = yes; then | |
12083 | # Check if gcc -print-prog-name=ld gives a path. | |
12084 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
12085 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
12086 | case $host in | |
12087 | *-*-mingw*) | |
12088 | # gcc leaves a trailing carriage return which upsets mingw | |
12089 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
12090 | *) | |
12091 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
12092 | esac | |
12093 | case $ac_prog in | |
12094 | # Accept absolute paths. | |
12095 | [\\/]* | ?:[\\/]*) | |
12096 | re_direlt='/[^/][^/]*/\.\./' | |
12097 | # Canonicalize the pathname of ld | |
12098 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
12099 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
12100 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
12101 | done | |
12102 | test -z "$LD" && LD="$ac_prog" | |
12103 | ;; | |
12104 | "") | |
12105 | # If it fails, then pretend we aren't using GCC. | |
12106 | ac_prog=ld | |
12107 | ;; | |
12108 | *) | |
12109 | # If it is relative, then search for the first ld in PATH. | |
12110 | with_gnu_ld=unknown | |
12111 | ;; | |
12112 | esac | |
12113 | elif test "$with_gnu_ld" = yes; then | |
12114 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
12115 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
12116 | else | |
12117 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
12118 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
12119 | fi | |
12120 | if test "${lt_cv_path_LD+set}" = set; then | |
12121 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12122 | else | |
12123 | if test -z "$LD"; then | |
12124 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
12125 | for ac_dir in $PATH; do | |
12126 | IFS="$lt_save_ifs" | |
12127 | test -z "$ac_dir" && ac_dir=. | |
12128 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
12129 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
12130 | # Check to see if the program is GNU ld. I'd rather use --version, | |
12131 | # but apparently some variants of GNU ld only accept -v. | |
12132 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
12133 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
12134 | *GNU* | *'with BFD'*) | |
12135 | test "$with_gnu_ld" != no && break | |
12136 | ;; | |
12137 | *) | |
12138 | test "$with_gnu_ld" != yes && break | |
12139 | ;; | |
12140 | esac | |
12141 | fi | |
12142 | done | |
12143 | IFS="$lt_save_ifs" | |
12144 | else | |
12145 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
12146 | fi | |
12147 | fi | |
12148 | ||
12149 | LD="$lt_cv_path_LD" | |
12150 | if test -n "$LD"; then | |
12151 | echo "$as_me:$LINENO: result: $LD" >&5 | |
12152 | echo "${ECHO_T}$LD" >&6 | |
12153 | else | |
12154 | echo "$as_me:$LINENO: result: no" >&5 | |
12155 | echo "${ECHO_T}no" >&6 | |
12156 | fi | |
12157 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
12158 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
12159 | { (exit 1); exit 1; }; } | |
12160 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
12161 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
12162 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
12163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12164 | else | |
12165 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
12166 | case `$LD -v 2>&1 </dev/null` in | |
12167 | *GNU* | *'with BFD'*) | |
12168 | lt_cv_prog_gnu_ld=yes | |
12169 | ;; | |
12170 | *) | |
12171 | lt_cv_prog_gnu_ld=no | |
12172 | ;; | |
12173 | esac | |
12174 | fi | |
12175 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
12176 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
12177 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
12178 | ||
12179 | ||
12180 | ||
12181 | ||
12182 | ||
12183 | ||
12184 | ||
12185 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
12186 | # archiving commands below assume that GNU ld is being used. | |
12187 | if test "$with_gnu_ld" = yes; then | |
12188 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12189 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12190 | ||
12191 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12192 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12193 | ||
12194 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
12195 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
12196 | # investigate it a little bit more. (MM) | |
12197 | wlarc='${wl}' | |
12198 | ||
12199 | # ancient GNU ld didn't support --whole-archive et. al. | |
12200 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
12201 | $GREP 'no-whole-archive' > /dev/null; then | |
12202 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12203 | else | |
12204 | whole_archive_flag_spec_CXX= | |
12205 | fi | |
12206 | else | |
12207 | with_gnu_ld=no | |
12208 | wlarc= | |
12209 | ||
12210 | # A generic and very simple default shared library creation | |
12211 | # command for GNU C++ for the case where it uses the native | |
12212 | # linker, instead of GNU ld. If possible, this setting should | |
12213 | # overridden to take advantage of the native linker features on | |
12214 | # the platform it is being used on. | |
12215 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
12216 | fi | |
12217 | ||
12218 | # Commands to make compiler produce verbose output that lists | |
12219 | # what "hidden" libraries, object files and flags are used when | |
12220 | # linking a shared library. | |
12221 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
12222 | ||
12223 | else | |
12224 | GXX=no | |
12225 | with_gnu_ld=no | |
12226 | wlarc= | |
12227 | fi | |
12228 | ||
12229 | # PORTME: fill in a description of your system's C++ link characteristics | |
12230 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
12231 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
12232 | ld_shlibs_CXX=yes | |
12233 | case $host_os in | |
12234 | aix3*) | |
12235 | # FIXME: insert proper C++ library support | |
12236 | ld_shlibs_CXX=no | |
12237 | ;; | |
f3641e7e | 12238 | aix[4-9]*) |
1cf3d07d SE |
12239 | if test "$host_cpu" = ia64; then |
12240 | # On IA64, the linker does run time linking by default, so we don't | |
12241 | # have to do anything special. | |
12242 | aix_use_runtimelinking=no | |
12243 | exp_sym_flag='-Bexport' | |
12244 | no_entry_flag="" | |
12245 | else | |
12246 | aix_use_runtimelinking=no | |
12247 | ||
12248 | # Test if we are trying to use run time linking or normal | |
12249 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
12250 | # need to do runtime linking. | |
f3641e7e | 12251 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
1cf3d07d SE |
12252 | for ld_flag in $LDFLAGS; do |
12253 | case $ld_flag in | |
12254 | *-brtl*) | |
12255 | aix_use_runtimelinking=yes | |
12256 | break | |
12257 | ;; | |
12258 | esac | |
12259 | done | |
12260 | ;; | |
12261 | esac | |
12262 | ||
12263 | exp_sym_flag='-bexport' | |
12264 | no_entry_flag='-bnoentry' | |
12265 | fi | |
12266 | ||
12267 | # When large executables or shared objects are built, AIX ld can | |
12268 | # have problems creating the table of contents. If linking a library | |
12269 | # or program results in "error TOC overflow" add -mminimal-toc to | |
12270 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
12271 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
12272 | ||
12273 | archive_cmds_CXX='' | |
12274 | hardcode_direct_CXX=yes | |
12275 | hardcode_direct_absolute_CXX=yes | |
12276 | hardcode_libdir_separator_CXX=':' | |
12277 | link_all_deplibs_CXX=yes | |
12278 | file_list_spec_CXX='${wl}-f,' | |
12279 | ||
12280 | if test "$GXX" = yes; then | |
12281 | case $host_os in aix4.[012]|aix4.[012].*) | |
12282 | # We only want to do this on AIX 4.2 and lower, the check | |
12283 | # below for broken collect2 doesn't work under 4.3+ | |
12284 | collect2name=`${CC} -print-prog-name=collect2` | |
12285 | if test -f "$collect2name" && | |
12286 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
12287 | then | |
12288 | # We have reworked collect2 | |
12289 | : | |
12290 | else | |
12291 | # We have old collect2 | |
12292 | hardcode_direct_CXX=unsupported | |
12293 | # It fails to find uninstalled libraries when the uninstalled | |
12294 | # path is not listed in the libpath. Setting hardcode_minus_L | |
12295 | # to unsupported forces relinking | |
12296 | hardcode_minus_L_CXX=yes | |
12297 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
12298 | hardcode_libdir_separator_CXX= | |
12299 | fi | |
12300 | esac | |
12301 | shared_flag='-shared' | |
12302 | if test "$aix_use_runtimelinking" = yes; then | |
12303 | shared_flag="$shared_flag "'${wl}-G' | |
12304 | fi | |
12305 | else | |
12306 | # not using gcc | |
12307 | if test "$host_cpu" = ia64; then | |
12308 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
12309 | # chokes on -Wl,-G. The following line is correct: | |
12310 | shared_flag='-G' | |
12311 | else | |
12312 | if test "$aix_use_runtimelinking" = yes; then | |
12313 | shared_flag='${wl}-G' | |
12314 | else | |
12315 | shared_flag='${wl}-bM:SRE' | |
12316 | fi | |
12317 | fi | |
12318 | fi | |
12319 | ||
93e92f52 | 12320 | export_dynamic_flag_spec_CXX='${wl}-bexpall' |
1cf3d07d SE |
12321 | # It seems that -bexpall does not export symbols beginning with |
12322 | # underscore (_), so it is better to generate a list of symbols to | |
12323 | # export. | |
12324 | always_export_symbols_CXX=yes | |
12325 | if test "$aix_use_runtimelinking" = yes; then | |
12326 | # Warning - without using the other runtime loading flags (-brtl), | |
12327 | # -berok will link without error, but may produce a broken library. | |
12328 | allow_undefined_flag_CXX='-berok' | |
12329 | # Determine the default libpath from the value encoded in an empty | |
12330 | # executable. | |
12331 | if test x$gcc_no_link = xyes; then | |
12332 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12333 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12334 | { (exit 1); exit 1; }; } | |
12335 | fi | |
12336 | cat >conftest.$ac_ext <<_ACEOF | |
12337 | /* confdefs.h. */ | |
12338 | _ACEOF | |
12339 | cat confdefs.h >>conftest.$ac_ext | |
12340 | cat >>conftest.$ac_ext <<_ACEOF | |
12341 | /* end confdefs.h. */ | |
12342 | ||
12343 | int | |
12344 | main () | |
12345 | { | |
12346 | ||
12347 | ; | |
12348 | return 0; | |
12349 | } | |
12350 | _ACEOF | |
12351 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12352 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12353 | (eval $ac_link) 2>conftest.er1 | |
12354 | ac_status=$? | |
12355 | grep -v '^ *+' conftest.er1 >conftest.err | |
12356 | rm -f conftest.er1 | |
12357 | cat conftest.err >&5 | |
12358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12359 | (exit $ac_status); } && | |
12360 | { ac_try='test -z "$ac_cxx_werror_flag" | |
12361 | || test ! -s conftest.err' | |
12362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12363 | (eval $ac_try) 2>&5 | |
12364 | ac_status=$? | |
12365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12366 | (exit $ac_status); }; } && | |
12367 | { ac_try='test -s conftest$ac_exeext' | |
12368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12369 | (eval $ac_try) 2>&5 | |
12370 | ac_status=$? | |
12371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12372 | (exit $ac_status); }; }; then | |
12373 | ||
12374 | lt_aix_libpath_sed=' | |
12375 | /Import File Strings/,/^$/ { | |
12376 | /^0/ { | |
12377 | s/^0 *\(.*\)$/\1/ | |
12378 | p | |
12379 | } | |
12380 | }' | |
12381 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12382 | # Check for a 64-bit object if we didn't find anything. | |
12383 | if test -z "$aix_libpath"; then | |
12384 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12385 | fi | |
12386 | else | |
12387 | echo "$as_me: failed program was:" >&5 | |
12388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12389 | ||
12390 | fi | |
12391 | rm -f conftest.err conftest.$ac_objext \ | |
12392 | conftest$ac_exeext conftest.$ac_ext | |
12393 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
12394 | ||
12395 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12396 | ||
12397 | archive_expsym_cmds_CXX='$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" | |
12398 | else | |
12399 | if test "$host_cpu" = ia64; then | |
12400 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
12401 | allow_undefined_flag_CXX="-z nodefs" | |
12402 | archive_expsym_cmds_CXX="\$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" | |
12403 | else | |
12404 | # Determine the default libpath from the value encoded in an | |
12405 | # empty executable. | |
12406 | if test x$gcc_no_link = xyes; then | |
12407 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12408 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12409 | { (exit 1); exit 1; }; } | |
12410 | fi | |
12411 | cat >conftest.$ac_ext <<_ACEOF | |
12412 | /* confdefs.h. */ | |
12413 | _ACEOF | |
12414 | cat confdefs.h >>conftest.$ac_ext | |
12415 | cat >>conftest.$ac_ext <<_ACEOF | |
12416 | /* end confdefs.h. */ | |
12417 | ||
12418 | int | |
12419 | main () | |
12420 | { | |
12421 | ||
12422 | ; | |
12423 | return 0; | |
12424 | } | |
12425 | _ACEOF | |
12426 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12427 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12428 | (eval $ac_link) 2>conftest.er1 | |
12429 | ac_status=$? | |
12430 | grep -v '^ *+' conftest.er1 >conftest.err | |
12431 | rm -f conftest.er1 | |
12432 | cat conftest.err >&5 | |
12433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12434 | (exit $ac_status); } && | |
12435 | { ac_try='test -z "$ac_cxx_werror_flag" | |
12436 | || test ! -s conftest.err' | |
12437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12438 | (eval $ac_try) 2>&5 | |
12439 | ac_status=$? | |
12440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12441 | (exit $ac_status); }; } && | |
12442 | { ac_try='test -s conftest$ac_exeext' | |
12443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12444 | (eval $ac_try) 2>&5 | |
12445 | ac_status=$? | |
12446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12447 | (exit $ac_status); }; }; then | |
12448 | ||
12449 | lt_aix_libpath_sed=' | |
12450 | /Import File Strings/,/^$/ { | |
12451 | /^0/ { | |
12452 | s/^0 *\(.*\)$/\1/ | |
12453 | p | |
12454 | } | |
12455 | }' | |
12456 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12457 | # Check for a 64-bit object if we didn't find anything. | |
12458 | if test -z "$aix_libpath"; then | |
12459 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12460 | fi | |
12461 | else | |
12462 | echo "$as_me: failed program was:" >&5 | |
12463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12464 | ||
12465 | fi | |
12466 | rm -f conftest.err conftest.$ac_objext \ | |
12467 | conftest$ac_exeext conftest.$ac_ext | |
12468 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
12469 | ||
12470 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12471 | # Warning - without using the other run time loading flags, | |
12472 | # -berok will link without error, but may produce a broken library. | |
12473 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
12474 | allow_undefined_flag_CXX=' ${wl}-berok' | |
12475 | # Exported symbols can be pulled into shared objects from archives | |
12476 | whole_archive_flag_spec_CXX='$convenience' | |
12477 | archive_cmds_need_lc_CXX=yes | |
12478 | # This is similar to how AIX traditionally builds its shared | |
12479 | # libraries. | |
12480 | archive_expsym_cmds_CXX="\$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' | |
12481 | fi | |
12482 | fi | |
12483 | ;; | |
12484 | ||
12485 | beos*) | |
12486 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
12487 | allow_undefined_flag_CXX=unsupported | |
12488 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
12489 | # support --undefined. This deserves some investigation. FIXME | |
12490 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12491 | else | |
12492 | ld_shlibs_CXX=no | |
12493 | fi | |
12494 | ;; | |
12495 | ||
12496 | chorus*) | |
12497 | case $cc_basename in | |
12498 | *) | |
12499 | # FIXME: insert proper C++ library support | |
12500 | ld_shlibs_CXX=no | |
12501 | ;; | |
12502 | esac | |
12503 | ;; | |
12504 | ||
93e92f52 | 12505 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
12506 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
12507 | # as there is no search path for DLLs. | |
12508 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
12509 | allow_undefined_flag_CXX=unsupported | |
12510 | always_export_symbols_CXX=no | |
12511 | enable_shared_with_static_runtimes_CXX=yes | |
12512 | ||
12513 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
12514 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
12515 | # If the export-symbols file already is a .def file (1st line | |
12516 | # is EXPORTS), use it as is; otherwise, prepend... | |
12517 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
12518 | cp $export_symbols $output_objdir/$soname.def; | |
12519 | else | |
12520 | echo EXPORTS > $output_objdir/$soname.def; | |
12521 | cat $export_symbols >> $output_objdir/$soname.def; | |
12522 | fi~ | |
12523 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
12524 | else | |
12525 | ld_shlibs_CXX=no | |
12526 | fi | |
12527 | ;; | |
12528 | darwin* | rhapsody*) | |
1cf3d07d | 12529 | |
1cf3d07d | 12530 | |
93e92f52 PG |
12531 | archive_cmds_need_lc_CXX=no |
12532 | hardcode_direct_CXX=no | |
12533 | hardcode_automatic_CXX=yes | |
12534 | hardcode_shlibpath_var_CXX=unsupported | |
12535 | whole_archive_flag_spec_CXX='' | |
12536 | link_all_deplibs_CXX=yes | |
12537 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | |
12538 | case $cc_basename in | |
12539 | ifort*) _lt_dar_can_shared=yes ;; | |
12540 | *) _lt_dar_can_shared=$GCC ;; | |
12541 | esac | |
12542 | if test "$_lt_dar_can_shared" = "yes"; then | |
12543 | output_verbose_link_cmd=echo | |
12544 | archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
12545 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
12546 | archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | |
12547 | module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" | |
12548 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
12549 | archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" | |
12550 | archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" | |
12551 | fi | |
12552 | ||
12553 | else | |
12554 | ld_shlibs_CXX=no | |
12555 | fi | |
12556 | ||
1cf3d07d SE |
12557 | ;; |
12558 | ||
12559 | dgux*) | |
12560 | case $cc_basename in | |
12561 | ec++*) | |
12562 | # FIXME: insert proper C++ library support | |
12563 | ld_shlibs_CXX=no | |
12564 | ;; | |
12565 | ghcx*) | |
12566 | # Green Hills C++ Compiler | |
12567 | # FIXME: insert proper C++ library support | |
12568 | ld_shlibs_CXX=no | |
12569 | ;; | |
12570 | *) | |
12571 | # FIXME: insert proper C++ library support | |
12572 | ld_shlibs_CXX=no | |
12573 | ;; | |
12574 | esac | |
12575 | ;; | |
12576 | ||
12577 | freebsd[12]*) | |
12578 | # C++ shared libraries reported to be fairly broken before | |
12579 | # switch to ELF | |
12580 | ld_shlibs_CXX=no | |
12581 | ;; | |
12582 | ||
12583 | freebsd-elf*) | |
12584 | archive_cmds_need_lc_CXX=no | |
12585 | ;; | |
12586 | ||
12587 | freebsd* | dragonfly*) | |
12588 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
12589 | # conventions | |
12590 | ld_shlibs_CXX=yes | |
12591 | ;; | |
12592 | ||
12593 | gnu*) | |
12594 | ;; | |
12595 | ||
12596 | hpux9*) | |
12597 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
12598 | hardcode_libdir_separator_CXX=: | |
12599 | export_dynamic_flag_spec_CXX='${wl}-E' | |
12600 | hardcode_direct_CXX=yes | |
12601 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
12602 | # but as the default | |
12603 | # location of the library. | |
12604 | ||
12605 | case $cc_basename in | |
12606 | CC*) | |
12607 | # FIXME: insert proper C++ library support | |
12608 | ld_shlibs_CXX=no | |
12609 | ;; | |
12610 | aCC*) | |
12611 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
12612 | # Commands to make compiler produce verbose output that lists | |
12613 | # what "hidden" libraries, object files and flags are used when | |
12614 | # linking a shared library. | |
12615 | # | |
12616 | # There doesn't appear to be a way to prevent this compiler from | |
12617 | # explicitly linking system object files so we need to strip them | |
12618 | # from the output so that they don't get included in the library | |
12619 | # dependencies. | |
12620 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
12621 | ;; | |
12622 | *) | |
12623 | if test "$GXX" = yes; then | |
12624 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
12625 | else | |
12626 | # FIXME: insert proper C++ library support | |
12627 | ld_shlibs_CXX=no | |
12628 | fi | |
12629 | ;; | |
12630 | esac | |
12631 | ;; | |
12632 | ||
12633 | hpux10*|hpux11*) | |
12634 | if test $with_gnu_ld = no; then | |
12635 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
12636 | hardcode_libdir_separator_CXX=: | |
12637 | ||
12638 | case $host_cpu in | |
12639 | hppa*64*|ia64*) | |
12640 | ;; | |
12641 | *) | |
12642 | export_dynamic_flag_spec_CXX='${wl}-E' | |
12643 | ;; | |
12644 | esac | |
12645 | fi | |
12646 | case $host_cpu in | |
12647 | hppa*64*|ia64*) | |
12648 | hardcode_direct_CXX=no | |
12649 | hardcode_shlibpath_var_CXX=no | |
12650 | ;; | |
12651 | *) | |
12652 | hardcode_direct_CXX=yes | |
12653 | hardcode_direct_absolute_CXX=yes | |
12654 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
12655 | # but as the default | |
12656 | # location of the library. | |
12657 | ;; | |
12658 | esac | |
12659 | ||
12660 | case $cc_basename in | |
12661 | CC*) | |
12662 | # FIXME: insert proper C++ library support | |
12663 | ld_shlibs_CXX=no | |
12664 | ;; | |
12665 | aCC*) | |
12666 | case $host_cpu in | |
12667 | hppa*64*) | |
12668 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12669 | ;; | |
12670 | ia64*) | |
12671 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12672 | ;; | |
12673 | *) | |
12674 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12675 | ;; | |
12676 | esac | |
12677 | # Commands to make compiler produce verbose output that lists | |
12678 | # what "hidden" libraries, object files and flags are used when | |
12679 | # linking a shared library. | |
12680 | # | |
12681 | # There doesn't appear to be a way to prevent this compiler from | |
12682 | # explicitly linking system object files so we need to strip them | |
12683 | # from the output so that they don't get included in the library | |
12684 | # dependencies. | |
12685 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
12686 | ;; | |
12687 | *) | |
12688 | if test "$GXX" = yes; then | |
12689 | if test $with_gnu_ld = no; then | |
12690 | case $host_cpu in | |
12691 | hppa*64*) | |
12692 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12693 | ;; | |
12694 | ia64*) | |
12695 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12696 | ;; | |
12697 | *) | |
12698 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12699 | ;; | |
12700 | esac | |
12701 | fi | |
12702 | else | |
12703 | # FIXME: insert proper C++ library support | |
12704 | ld_shlibs_CXX=no | |
12705 | fi | |
12706 | ;; | |
12707 | esac | |
12708 | ;; | |
12709 | ||
12710 | interix[3-9]*) | |
12711 | hardcode_direct_CXX=no | |
12712 | hardcode_shlibpath_var_CXX=no | |
12713 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12714 | export_dynamic_flag_spec_CXX='${wl}-E' | |
12715 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
12716 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
12717 | # default) and relocated if they conflict, which is a slow very memory | |
12718 | # consuming and fragmenting process. To avoid this, we pick a random, | |
12719 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
12720 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
12721 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
12722 | archive_expsym_cmds_CXX='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' | |
12723 | ;; | |
12724 | irix5* | irix6*) | |
12725 | case $cc_basename in | |
12726 | CC*) | |
12727 | # SGI C++ | |
12728 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
12729 | ||
12730 | # Archives containing C++ object files must be created using | |
12731 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
12732 | # necessary to make sure instantiated templates are included | |
12733 | # in the archive. | |
12734 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
12735 | ;; | |
12736 | *) | |
12737 | if test "$GXX" = yes; then | |
12738 | if test "$with_gnu_ld" = no; then | |
12739 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' | |
12740 | else | |
12741 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' | |
12742 | fi | |
12743 | fi | |
12744 | link_all_deplibs_CXX=yes | |
12745 | ;; | |
12746 | esac | |
12747 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12748 | hardcode_libdir_separator_CXX=: | |
12749 | inherit_rpath_CXX=yes | |
12750 | ;; | |
12751 | ||
12752 | linux* | k*bsd*-gnu) | |
12753 | case $cc_basename in | |
12754 | KCC*) | |
12755 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
12756 | ||
12757 | # KCC will only create a shared library if the output file | |
12758 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
12759 | # to its proper name (with version) after linking. | |
12760 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
12761 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' | |
12762 | # Commands to make compiler produce verbose output that lists | |
12763 | # what "hidden" libraries, object files and flags are used when | |
12764 | # linking a shared library. | |
12765 | # | |
12766 | # There doesn't appear to be a way to prevent this compiler from | |
12767 | # explicitly linking system object files so we need to strip them | |
12768 | # from the output so that they don't get included in the library | |
12769 | # dependencies. | |
12770 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
12771 | ||
12772 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12773 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12774 | ||
12775 | # Archives containing C++ object files must be created using | |
12776 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
12777 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
12778 | ;; | |
12779 | icpc* | ecpc* ) | |
12780 | # Intel C++ | |
12781 | with_gnu_ld=yes | |
12782 | # version 8.0 and above of icpc choke on multiply defined symbols | |
12783 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
12784 | # earlier do not add the objects themselves. | |
12785 | case `$CC -V 2>&1` in | |
12786 | *"Version 7."*) | |
12787 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12788 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12789 | ;; | |
12790 | *) # Version 8.0 or newer | |
12791 | tmp_idyn= | |
12792 | case $host_cpu in | |
12793 | ia64*) tmp_idyn=' -i_dynamic';; | |
12794 | esac | |
12795 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12796 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12797 | ;; | |
12798 | esac | |
12799 | archive_cmds_need_lc_CXX=no | |
12800 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12801 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12802 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
12803 | ;; | |
93e92f52 | 12804 | pgCC* | pgcpp*) |
1cf3d07d SE |
12805 | # Portland Group C++ compiler |
12806 | case `$CC -V` in | |
93e92f52 | 12807 | *pgCC\ [1-5]* | *pgcpp\ [1-5]*) |
1cf3d07d SE |
12808 | prelink_cmds_CXX='tpldir=Template.dir~ |
12809 | rm -rf $tpldir~ | |
12810 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
12811 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' | |
12812 | old_archive_cmds_CXX='tpldir=Template.dir~ | |
12813 | rm -rf $tpldir~ | |
12814 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
12815 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ | |
12816 | $RANLIB $oldlib' | |
12817 | archive_cmds_CXX='tpldir=Template.dir~ | |
12818 | rm -rf $tpldir~ | |
12819 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
12820 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
12821 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | |
12822 | rm -rf $tpldir~ | |
12823 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
12824 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
12825 | ;; | |
12826 | *) # Version 6 will use weak symbols | |
12827 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
12828 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
12829 | ;; | |
12830 | esac | |
12831 | ||
12832 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
12833 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12834 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
12835 | ;; | |
12836 | cxx*) | |
12837 | # Compaq C++ | |
12838 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12839 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' | |
12840 | ||
12841 | runpath_var=LD_RUN_PATH | |
12842 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
12843 | hardcode_libdir_separator_CXX=: | |
12844 | ||
12845 | # Commands to make compiler produce verbose output that lists | |
12846 | # what "hidden" libraries, object files and flags are used when | |
12847 | # linking a shared library. | |
12848 | # | |
12849 | # There doesn't appear to be a way to prevent this compiler from | |
12850 | # explicitly linking system object files so we need to strip them | |
12851 | # from the output so that they don't get included in the library | |
12852 | # dependencies. | |
12853 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
12854 | ;; | |
93e92f52 PG |
12855 | xl*) |
12856 | # IBM XL 8.0 on PPC, with GNU ld | |
12857 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12858 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12859 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12860 | if test "x$supports_anon_versioning" = xyes; then | |
12861 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
12862 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
12863 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
12864 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
12865 | fi | |
12866 | ;; | |
1cf3d07d SE |
12867 | *) |
12868 | case `$CC -V 2>&1 | sed 5q` in | |
12869 | *Sun\ C*) | |
12870 | # Sun C++ 5.9 | |
12871 | no_undefined_flag_CXX=' -zdefs' | |
12872 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
12873 | archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' | |
12874 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
12875 | whole_archive_flag_spec_CXX='${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' | |
12876 | compiler_needs_object_CXX=yes | |
12877 | ||
12878 | # Not sure whether something based on | |
12879 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
12880 | # would be better. | |
12881 | output_verbose_link_cmd='echo' | |
12882 | ||
12883 | # Archives containing C++ object files must be created using | |
12884 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
12885 | # necessary to make sure instantiated templates are included | |
12886 | # in the archive. | |
12887 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
12888 | ;; | |
12889 | esac | |
12890 | ;; | |
12891 | esac | |
12892 | ;; | |
12893 | ||
12894 | lynxos*) | |
12895 | # FIXME: insert proper C++ library support | |
12896 | ld_shlibs_CXX=no | |
12897 | ;; | |
12898 | ||
12899 | m88k*) | |
12900 | # FIXME: insert proper C++ library support | |
12901 | ld_shlibs_CXX=no | |
12902 | ;; | |
12903 | ||
12904 | mvs*) | |
12905 | case $cc_basename in | |
12906 | cxx*) | |
12907 | # FIXME: insert proper C++ library support | |
12908 | ld_shlibs_CXX=no | |
12909 | ;; | |
12910 | *) | |
12911 | # FIXME: insert proper C++ library support | |
12912 | ld_shlibs_CXX=no | |
12913 | ;; | |
12914 | esac | |
12915 | ;; | |
12916 | ||
12917 | netbsd*) | |
12918 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
12919 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
12920 | wlarc= | |
12921 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
12922 | hardcode_direct_CXX=yes | |
12923 | hardcode_shlibpath_var_CXX=no | |
12924 | fi | |
12925 | # Workaround some broken pre-1.5 toolchains | |
12926 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
12927 | ;; | |
12928 | ||
12929 | *nto* | *qnx*) | |
12930 | ld_shlibs_CXX=yes | |
12931 | ;; | |
12932 | ||
12933 | openbsd2*) | |
12934 | # C++ shared libraries are fairly broken | |
12935 | ld_shlibs_CXX=no | |
12936 | ;; | |
12937 | ||
12938 | openbsd*) | |
93e92f52 PG |
12939 | if test -f /usr/libexec/ld.so; then |
12940 | hardcode_direct_CXX=yes | |
12941 | hardcode_shlibpath_var_CXX=no | |
12942 | hardcode_direct_absolute_CXX=yes | |
12943 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
12944 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12945 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12946 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
12947 | export_dynamic_flag_spec_CXX='${wl}-E' | |
12948 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12949 | fi | |
12950 | output_verbose_link_cmd=echo | |
12951 | else | |
12952 | ld_shlibs_CXX=no | |
1cf3d07d | 12953 | fi |
1cf3d07d SE |
12954 | ;; |
12955 | ||
12956 | osf3* | osf4* | osf5*) | |
12957 | case $cc_basename in | |
12958 | KCC*) | |
12959 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
12960 | ||
12961 | # KCC will only create a shared library if the output file | |
12962 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
12963 | # to its proper name (with version) after linking. | |
12964 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
12965 | ||
12966 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
12967 | hardcode_libdir_separator_CXX=: | |
12968 | ||
12969 | # Archives containing C++ object files must be created using | |
12970 | # the KAI C++ compiler. | |
12971 | case $host in | |
12972 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
12973 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
12974 | esac | |
12975 | ;; | |
12976 | RCC*) | |
12977 | # Rational C++ 2.4.1 | |
12978 | # FIXME: insert proper C++ library support | |
12979 | ld_shlibs_CXX=no | |
12980 | ;; | |
12981 | cxx*) | |
12982 | case $host in | |
12983 | osf3*) | |
12984 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
12985 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
12986 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12987 | ;; | |
12988 | *) | |
12989 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
12990 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
12991 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
12992 | echo "-hidden">> $lib.exp~ | |
12993 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ | |
12994 | $RM $lib.exp' | |
12995 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
12996 | ;; | |
12997 | esac | |
12998 | ||
12999 | hardcode_libdir_separator_CXX=: | |
13000 | ||
13001 | # Commands to make compiler produce verbose output that lists | |
13002 | # what "hidden" libraries, object files and flags are used when | |
13003 | # linking a shared library. | |
13004 | # | |
13005 | # There doesn't appear to be a way to prevent this compiler from | |
13006 | # explicitly linking system object files so we need to strip them | |
13007 | # from the output so that they don't get included in the library | |
13008 | # dependencies. | |
13009 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' | |
13010 | ;; | |
13011 | *) | |
13012 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13013 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13014 | case $host in | |
13015 | osf3*) | |
13016 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' | |
13017 | ;; | |
13018 | *) | |
13019 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
13020 | ;; | |
13021 | esac | |
13022 | ||
13023 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13024 | hardcode_libdir_separator_CXX=: | |
13025 | ||
13026 | # Commands to make compiler produce verbose output that lists | |
13027 | # what "hidden" libraries, object files and flags are used when | |
13028 | # linking a shared library. | |
13029 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
13030 | ||
13031 | else | |
13032 | # FIXME: insert proper C++ library support | |
13033 | ld_shlibs_CXX=no | |
13034 | fi | |
13035 | ;; | |
13036 | esac | |
13037 | ;; | |
13038 | ||
13039 | psos*) | |
13040 | # FIXME: insert proper C++ library support | |
13041 | ld_shlibs_CXX=no | |
13042 | ;; | |
13043 | ||
13044 | sunos4*) | |
13045 | case $cc_basename in | |
13046 | CC*) | |
13047 | # Sun C++ 4.x | |
13048 | # FIXME: insert proper C++ library support | |
13049 | ld_shlibs_CXX=no | |
13050 | ;; | |
13051 | lcc*) | |
13052 | # Lucid | |
13053 | # FIXME: insert proper C++ library support | |
13054 | ld_shlibs_CXX=no | |
13055 | ;; | |
13056 | *) | |
13057 | # FIXME: insert proper C++ library support | |
13058 | ld_shlibs_CXX=no | |
13059 | ;; | |
13060 | esac | |
13061 | ;; | |
13062 | ||
13063 | solaris*) | |
13064 | case $cc_basename in | |
13065 | CC*) | |
13066 | # Sun C++ 4.2, 5.x and Centerline C++ | |
13067 | archive_cmds_need_lc_CXX=yes | |
13068 | no_undefined_flag_CXX=' -zdefs' | |
13069 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13070 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13071 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
13072 | ||
13073 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13074 | hardcode_shlibpath_var_CXX=no | |
13075 | case $host_os in | |
13076 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13077 | *) | |
13078 | # The compiler driver will combine and reorder linker options, | |
13079 | # but understands `-z linker_flag'. | |
13080 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
13081 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
13082 | ;; | |
13083 | esac | |
13084 | link_all_deplibs_CXX=yes | |
13085 | ||
13086 | output_verbose_link_cmd='echo' | |
13087 | ||
13088 | # Archives containing C++ object files must be created using | |
13089 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13090 | # necessary to make sure instantiated templates are included | |
13091 | # in the archive. | |
13092 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13093 | ;; | |
13094 | gcx*) | |
13095 | # Green Hills C++ Compiler | |
13096 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13097 | ||
13098 | # The C++ compiler must be used to create the archive. | |
13099 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
13100 | ;; | |
13101 | *) | |
13102 | # GNU C++ compiler with Solaris linker | |
13103 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13104 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
13105 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
13106 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13107 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13108 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
13109 | ||
13110 | # Commands to make compiler produce verbose output that lists | |
13111 | # what "hidden" libraries, object files and flags are used when | |
13112 | # linking a shared library. | |
13113 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
13114 | else | |
13115 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
13116 | # platform. | |
13117 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13118 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13119 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
13120 | ||
13121 | # Commands to make compiler produce verbose output that lists | |
13122 | # what "hidden" libraries, object files and flags are used when | |
13123 | # linking a shared library. | |
13124 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' | |
13125 | fi | |
13126 | ||
13127 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
13128 | case $host_os in | |
13129 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13130 | *) | |
13131 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
13132 | ;; | |
13133 | esac | |
13134 | fi | |
13135 | ;; | |
13136 | esac | |
13137 | ;; | |
13138 | ||
13139 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
13140 | no_undefined_flag_CXX='${wl}-z,text' | |
13141 | archive_cmds_need_lc_CXX=no | |
13142 | hardcode_shlibpath_var_CXX=no | |
13143 | runpath_var='LD_RUN_PATH' | |
13144 | ||
13145 | case $cc_basename in | |
13146 | CC*) | |
13147 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13148 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13149 | ;; | |
13150 | *) | |
13151 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13152 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13153 | ;; | |
13154 | esac | |
13155 | ;; | |
13156 | ||
13157 | sysv5* | sco3.2v5* | sco5v6*) | |
13158 | # Note: We can NOT use -z defs as we might desire, because we do not | |
13159 | # link with -lc, and that would cause any symbols used from libc to | |
13160 | # always be unresolved, which means just about no library would | |
13161 | # ever link correctly. If we're not using GNU ld we use -z text | |
13162 | # though, which does catch some bad symbols but isn't as heavy-handed | |
13163 | # as -z defs. | |
13164 | no_undefined_flag_CXX='${wl}-z,text' | |
13165 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
13166 | archive_cmds_need_lc_CXX=no | |
13167 | hardcode_shlibpath_var_CXX=no | |
13168 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
13169 | hardcode_libdir_separator_CXX=':' | |
13170 | link_all_deplibs_CXX=yes | |
13171 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
13172 | runpath_var='LD_RUN_PATH' | |
13173 | ||
13174 | case $cc_basename in | |
13175 | CC*) | |
13176 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13177 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13178 | ;; | |
13179 | *) | |
13180 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13181 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13182 | ;; | |
13183 | esac | |
13184 | ;; | |
13185 | ||
13186 | tandem*) | |
13187 | case $cc_basename in | |
13188 | NCC*) | |
13189 | # NonStop-UX NCC 3.20 | |
13190 | # FIXME: insert proper C++ library support | |
13191 | ld_shlibs_CXX=no | |
13192 | ;; | |
13193 | *) | |
13194 | # FIXME: insert proper C++ library support | |
13195 | ld_shlibs_CXX=no | |
13196 | ;; | |
13197 | esac | |
13198 | ;; | |
13199 | ||
13200 | vxworks*) | |
13201 | # FIXME: insert proper C++ library support | |
13202 | ld_shlibs_CXX=no | |
13203 | ;; | |
13204 | ||
13205 | *) | |
13206 | # FIXME: insert proper C++ library support | |
13207 | ld_shlibs_CXX=no | |
13208 | ;; | |
13209 | esac | |
13210 | ||
13211 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
13212 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | |
13213 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
13214 | ||
13215 | GCC_CXX="$GXX" | |
13216 | LD_CXX="$LD" | |
13217 | ||
13218 | ## CAVEAT EMPTOR: | |
13219 | ## There is no encapsulation within the following macros, do not change | |
13220 | ## the running order or otherwise move them around unless you know exactly | |
13221 | ## what you are doing... | |
13222 | # Dependencies to place before and after the object being linked: | |
13223 | predep_objects_CXX= | |
13224 | postdep_objects_CXX= | |
13225 | predeps_CXX= | |
13226 | postdeps_CXX= | |
13227 | compiler_lib_search_path_CXX= | |
13228 | ||
13229 | cat > conftest.$ac_ext <<_LT_EOF | |
13230 | class Foo | |
13231 | { | |
13232 | public: | |
13233 | Foo (void) { a = 0; } | |
13234 | private: | |
13235 | int a; | |
13236 | }; | |
13237 | _LT_EOF | |
13238 | ||
13239 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13240 | (eval $ac_compile) 2>&5 | |
13241 | ac_status=$? | |
13242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13243 | (exit $ac_status); }; then | |
13244 | # Parse the compiler output and extract the necessary | |
13245 | # objects, libraries and library flags. | |
13246 | ||
13247 | # Sentinel used to keep track of whether or not we are before | |
13248 | # the conftest object file. | |
13249 | pre_test_object_deps_done=no | |
13250 | ||
93e92f52 | 13251 | for p in `eval "$output_verbose_link_cmd"`; do |
1cf3d07d SE |
13252 | case $p in |
13253 | ||
13254 | -L* | -R* | -l*) | |
13255 | # Some compilers place space between "-{L,R}" and the path. | |
13256 | # Remove the space. | |
13257 | if test $p = "-L" || | |
13258 | test $p = "-R"; then | |
13259 | prev=$p | |
13260 | continue | |
13261 | else | |
13262 | prev= | |
13263 | fi | |
13264 | ||
13265 | if test "$pre_test_object_deps_done" = no; then | |
13266 | case $p in | |
13267 | -L* | -R*) | |
13268 | # Internal compiler library paths should come after those | |
13269 | # provided the user. The postdeps already come after the | |
13270 | # user supplied libs so there is no need to process them. | |
13271 | if test -z "$compiler_lib_search_path_CXX"; then | |
13272 | compiler_lib_search_path_CXX="${prev}${p}" | |
13273 | else | |
13274 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
13275 | fi | |
13276 | ;; | |
13277 | # The "-l" case would never come before the object being | |
13278 | # linked, so don't bother handling this case. | |
13279 | esac | |
13280 | else | |
13281 | if test -z "$postdeps_CXX"; then | |
13282 | postdeps_CXX="${prev}${p}" | |
13283 | else | |
13284 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
13285 | fi | |
13286 | fi | |
13287 | ;; | |
13288 | ||
13289 | *.$objext) | |
13290 | # This assumes that the test object file only shows up | |
13291 | # once in the compiler output. | |
13292 | if test "$p" = "conftest.$objext"; then | |
13293 | pre_test_object_deps_done=yes | |
13294 | continue | |
13295 | fi | |
13296 | ||
13297 | if test "$pre_test_object_deps_done" = no; then | |
13298 | if test -z "$predep_objects_CXX"; then | |
13299 | predep_objects_CXX="$p" | |
13300 | else | |
13301 | predep_objects_CXX="$predep_objects_CXX $p" | |
13302 | fi | |
13303 | else | |
13304 | if test -z "$postdep_objects_CXX"; then | |
13305 | postdep_objects_CXX="$p" | |
13306 | else | |
13307 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
13308 | fi | |
13309 | fi | |
13310 | ;; | |
13311 | ||
13312 | *) ;; # Ignore the rest. | |
13313 | ||
13314 | esac | |
13315 | done | |
13316 | ||
13317 | # Clean up. | |
13318 | rm -f a.out a.exe | |
13319 | else | |
13320 | echo "libtool.m4: error: problem compiling CXX test program" | |
13321 | fi | |
13322 | ||
13323 | $RM -f confest.$objext | |
13324 | ||
13325 | # PORTME: override above test on systems where it is broken | |
13326 | case $host_os in | |
13327 | interix[3-9]*) | |
13328 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
13329 | # hack all around it, let's just trust "g++" to DTRT. | |
13330 | predep_objects_CXX= | |
13331 | postdep_objects_CXX= | |
13332 | postdeps_CXX= | |
13333 | ;; | |
13334 | ||
13335 | linux*) | |
13336 | case `$CC -V 2>&1 | sed 5q` in | |
13337 | *Sun\ C*) | |
13338 | # Sun C++ 5.9 | |
13339 | ||
13340 | # The more standards-conforming stlport4 library is | |
13341 | # incompatible with the Cstd library. Avoid specifying | |
13342 | # it if it's in CXXFLAGS. Ignore libCrun as | |
13343 | # -library=stlport4 depends on it. | |
13344 | case " $CXX $CXXFLAGS " in | |
13345 | *" -library=stlport4 "*) | |
13346 | solaris_use_stlport4=yes | |
3343fdd2 | 13347 | ;; |
1cf3d07d SE |
13348 | esac |
13349 | ||
13350 | if test "$solaris_use_stlport4" != yes; then | |
13351 | postdeps_CXX='-library=Cstd -library=Crun' | |
13352 | fi | |
13353 | ;; | |
13354 | esac | |
13355 | ;; | |
13356 | ||
13357 | solaris*) | |
13358 | case $cc_basename in | |
13359 | CC*) | |
13360 | # The more standards-conforming stlport4 library is | |
13361 | # incompatible with the Cstd library. Avoid specifying | |
13362 | # it if it's in CXXFLAGS. Ignore libCrun as | |
13363 | # -library=stlport4 depends on it. | |
13364 | case " $CXX $CXXFLAGS " in | |
13365 | *" -library=stlport4 "*) | |
13366 | solaris_use_stlport4=yes | |
3343fdd2 AO |
13367 | ;; |
13368 | esac | |
1cf3d07d SE |
13369 | |
13370 | # Adding this requires a known-good setup of shared libraries for | |
13371 | # Sun compiler versions before 5.6, else PIC objects from an old | |
13372 | # archive will be linked into the output, leading to subtle bugs. | |
13373 | if test "$solaris_use_stlport4" != yes; then | |
13374 | postdeps_CXX='-library=Cstd -library=Crun' | |
13375 | fi | |
13376 | ;; | |
13377 | esac | |
13378 | ;; | |
13379 | esac | |
13380 | ||
13381 | ||
13382 | case " $postdeps_CXX " in | |
13383 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
13384 | esac | |
93e92f52 PG |
13385 | compiler_lib_search_dirs_CXX= |
13386 | if test -n "${compiler_lib_search_path_CXX}"; then | |
13387 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
13388 | fi | |
13389 | ||
13390 | ||
13391 | ||
13392 | ||
13393 | ||
1cf3d07d SE |
13394 | |
13395 | ||
13396 | ||
13397 | ||
13398 | ||
13399 | ||
13400 | ||
13401 | ||
13402 | ||
13403 | ||
13404 | ||
13405 | ||
13406 | ||
13407 | ||
13408 | ||
13409 | ||
13410 | ||
13411 | ||
13412 | ||
13413 | ||
13414 | ||
13415 | ||
13416 | ||
13417 | ||
13418 | ||
13419 | ||
13420 | lt_prog_compiler_wl_CXX= | |
13421 | lt_prog_compiler_pic_CXX= | |
13422 | lt_prog_compiler_static_CXX= | |
13423 | ||
13424 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
13425 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
13426 | ||
13427 | # C++ specific cases for pic, static, wl, etc. | |
13428 | if test "$GXX" = yes; then | |
13429 | lt_prog_compiler_wl_CXX='-Wl,' | |
13430 | lt_prog_compiler_static_CXX='-static' | |
13431 | ||
13432 | case $host_os in | |
13433 | aix*) | |
13434 | # All AIX code is PIC. | |
13435 | if test "$host_cpu" = ia64; then | |
13436 | # AIX 5 now supports IA64 processor | |
13437 | lt_prog_compiler_static_CXX='-Bstatic' | |
13438 | fi | |
66deb2be | 13439 | ;; |
93e92f52 | 13440 | |
1cf3d07d | 13441 | amigaos*) |
93e92f52 PG |
13442 | case $host_cpu in |
13443 | powerpc) | |
13444 | # see comment about AmigaOS4 .so support | |
13445 | lt_prog_compiler_pic_CXX='-fPIC' | |
13446 | ;; | |
13447 | m68k) | |
13448 | # FIXME: we need at least 68020 code to build shared libraries, but | |
13449 | # adding the `-m68020' flag to GCC prevents building anything better, | |
13450 | # like `-m68040'. | |
13451 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
13452 | ;; | |
13453 | esac | |
66deb2be | 13454 | ;; |
93e92f52 | 13455 | |
1cf3d07d SE |
13456 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
13457 | # PIC is the default for these OSes. | |
13458 | ;; | |
93e92f52 | 13459 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
1cf3d07d SE |
13460 | # This hack is so that the source file can tell whether it is being |
13461 | # built for inclusion in a dll (and should export symbols for example). | |
13462 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
13463 | # (--disable-auto-import) libraries | |
13464 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
13465 | ;; | |
13466 | darwin* | rhapsody*) | |
13467 | # PIC is the default on this platform | |
13468 | # Common symbols not allowed in MH_DYLIB files | |
13469 | lt_prog_compiler_pic_CXX='-fno-common' | |
13470 | ;; | |
13471 | *djgpp*) | |
13472 | # DJGPP does not support shared libraries at all | |
13473 | lt_prog_compiler_pic_CXX= | |
13474 | ;; | |
13475 | interix[3-9]*) | |
13476 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
13477 | # Instead, we relocate shared libraries at runtime. | |
13478 | ;; | |
13479 | sysv4*MP*) | |
13480 | if test -d /usr/nec; then | |
13481 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
13482 | fi | |
66deb2be | 13483 | ;; |
1cf3d07d | 13484 | hpux*) |
93e92f52 PG |
13485 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
13486 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
13487 | # sets the default TLS model and affects inlining. | |
1cf3d07d | 13488 | case $host_cpu in |
93e92f52 | 13489 | hppa*64*) |
1cf3d07d SE |
13490 | ;; |
13491 | *) | |
13492 | lt_prog_compiler_pic_CXX='-fPIC' | |
13493 | ;; | |
13494 | esac | |
13495 | ;; | |
13496 | *qnx* | *nto*) | |
13497 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13498 | # it will coredump. | |
13499 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
13500 | ;; | |
13501 | *) | |
13502 | lt_prog_compiler_pic_CXX='-fPIC' | |
13503 | ;; | |
13504 | esac | |
13505 | else | |
13506 | case $host_os in | |
f3641e7e | 13507 | aix[4-9]*) |
1cf3d07d SE |
13508 | # All AIX code is PIC. |
13509 | if test "$host_cpu" = ia64; then | |
13510 | # AIX 5 now supports IA64 processor | |
13511 | lt_prog_compiler_static_CXX='-Bstatic' | |
13512 | else | |
13513 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
13514 | fi | |
13515 | ;; | |
13516 | chorus*) | |
13517 | case $cc_basename in | |
13518 | cxch68*) | |
13519 | # Green Hills C++ Compiler | |
13520 | # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" | |
13521 | ;; | |
13522 | esac | |
13523 | ;; | |
1cf3d07d SE |
13524 | dgux*) |
13525 | case $cc_basename in | |
13526 | ec++*) | |
13527 | lt_prog_compiler_pic_CXX='-KPIC' | |
13528 | ;; | |
13529 | ghcx*) | |
13530 | # Green Hills C++ Compiler | |
13531 | lt_prog_compiler_pic_CXX='-pic' | |
13532 | ;; | |
13533 | *) | |
13534 | ;; | |
13535 | esac | |
13536 | ;; | |
13537 | freebsd* | dragonfly*) | |
13538 | # FreeBSD uses GNU C++ | |
13539 | ;; | |
13540 | hpux9* | hpux10* | hpux11*) | |
13541 | case $cc_basename in | |
13542 | CC*) | |
13543 | lt_prog_compiler_wl_CXX='-Wl,' | |
13544 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
13545 | if test "$host_cpu" != ia64; then | |
13546 | lt_prog_compiler_pic_CXX='+Z' | |
13547 | fi | |
13548 | ;; | |
13549 | aCC*) | |
13550 | lt_prog_compiler_wl_CXX='-Wl,' | |
13551 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
13552 | case $host_cpu in | |
13553 | hppa*64*|ia64*) | |
13554 | # +Z the default | |
13555 | ;; | |
13556 | *) | |
13557 | lt_prog_compiler_pic_CXX='+Z' | |
13558 | ;; | |
13559 | esac | |
13560 | ;; | |
13561 | *) | |
13562 | ;; | |
13563 | esac | |
13564 | ;; | |
13565 | interix*) | |
13566 | # This is c89, which is MS Visual C++ (no shared libs) | |
13567 | # Anyone wants to do a port? | |
13568 | ;; | |
13569 | irix5* | irix6* | nonstopux*) | |
13570 | case $cc_basename in | |
13571 | CC*) | |
13572 | lt_prog_compiler_wl_CXX='-Wl,' | |
13573 | lt_prog_compiler_static_CXX='-non_shared' | |
13574 | # CC pic flag -KPIC is the default. | |
13575 | ;; | |
13576 | *) | |
13577 | ;; | |
13578 | esac | |
13579 | ;; | |
13580 | linux* | k*bsd*-gnu) | |
13581 | case $cc_basename in | |
13582 | KCC*) | |
13583 | # KAI C++ Compiler | |
13584 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
13585 | lt_prog_compiler_pic_CXX='-fPIC' | |
13586 | ;; | |
93e92f52 PG |
13587 | ecpc* ) |
13588 | # old Intel C++ for x86_64 which still supported -KPIC. | |
1cf3d07d SE |
13589 | lt_prog_compiler_wl_CXX='-Wl,' |
13590 | lt_prog_compiler_pic_CXX='-KPIC' | |
13591 | lt_prog_compiler_static_CXX='-static' | |
13592 | ;; | |
93e92f52 PG |
13593 | icpc* ) |
13594 | # Intel C++, used to be incompatible with GCC. | |
13595 | # ICC 10 doesn't accept -KPIC any more. | |
13596 | lt_prog_compiler_wl_CXX='-Wl,' | |
13597 | lt_prog_compiler_pic_CXX='-fPIC' | |
13598 | lt_prog_compiler_static_CXX='-static' | |
13599 | ;; | |
13600 | pgCC* | pgcpp*) | |
1cf3d07d SE |
13601 | # Portland Group C++ compiler |
13602 | lt_prog_compiler_wl_CXX='-Wl,' | |
13603 | lt_prog_compiler_pic_CXX='-fpic' | |
13604 | lt_prog_compiler_static_CXX='-Bstatic' | |
13605 | ;; | |
13606 | cxx*) | |
13607 | # Compaq C++ | |
13608 | # Make sure the PIC flag is empty. It appears that all Alpha | |
13609 | # Linux and Compaq Tru64 Unix objects are PIC. | |
13610 | lt_prog_compiler_pic_CXX= | |
13611 | lt_prog_compiler_static_CXX='-non_shared' | |
13612 | ;; | |
93e92f52 PG |
13613 | xlc* | xlC*) |
13614 | # IBM XL 8.0 on PPC | |
13615 | lt_prog_compiler_wl_CXX='-Wl,' | |
13616 | lt_prog_compiler_pic_CXX='-qpic' | |
13617 | lt_prog_compiler_static_CXX='-qstaticlink' | |
13618 | ;; | |
1cf3d07d SE |
13619 | *) |
13620 | case `$CC -V 2>&1 | sed 5q` in | |
13621 | *Sun\ C*) | |
13622 | # Sun C++ 5.9 | |
13623 | lt_prog_compiler_pic_CXX='-KPIC' | |
13624 | lt_prog_compiler_static_CXX='-Bstatic' | |
13625 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
13626 | ;; | |
13627 | esac | |
13628 | ;; | |
13629 | esac | |
13630 | ;; | |
13631 | lynxos*) | |
13632 | ;; | |
13633 | m88k*) | |
13634 | ;; | |
13635 | mvs*) | |
13636 | case $cc_basename in | |
13637 | cxx*) | |
13638 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
13639 | ;; | |
13640 | *) | |
13641 | ;; | |
13642 | esac | |
13643 | ;; | |
13644 | netbsd*) | |
13645 | ;; | |
13646 | *qnx* | *nto*) | |
13647 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13648 | # it will coredump. | |
13649 | lt_prog_compiler_pic_CXX='-fPIC -shared' | |
13650 | ;; | |
13651 | osf3* | osf4* | osf5*) | |
13652 | case $cc_basename in | |
13653 | KCC*) | |
13654 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
13655 | ;; | |
13656 | RCC*) | |
13657 | # Rational C++ 2.4.1 | |
13658 | lt_prog_compiler_pic_CXX='-pic' | |
13659 | ;; | |
13660 | cxx*) | |
13661 | # Digital/Compaq C++ | |
13662 | lt_prog_compiler_wl_CXX='-Wl,' | |
13663 | # Make sure the PIC flag is empty. It appears that all Alpha | |
13664 | # Linux and Compaq Tru64 Unix objects are PIC. | |
13665 | lt_prog_compiler_pic_CXX= | |
13666 | lt_prog_compiler_static_CXX='-non_shared' | |
13667 | ;; | |
13668 | *) | |
13669 | ;; | |
13670 | esac | |
13671 | ;; | |
13672 | psos*) | |
13673 | ;; | |
13674 | solaris*) | |
13675 | case $cc_basename in | |
13676 | CC*) | |
13677 | # Sun C++ 4.2, 5.x and Centerline C++ | |
13678 | lt_prog_compiler_pic_CXX='-KPIC' | |
13679 | lt_prog_compiler_static_CXX='-Bstatic' | |
13680 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
13681 | ;; | |
13682 | gcx*) | |
13683 | # Green Hills C++ Compiler | |
13684 | lt_prog_compiler_pic_CXX='-PIC' | |
13685 | ;; | |
13686 | *) | |
13687 | ;; | |
13688 | esac | |
13689 | ;; | |
13690 | sunos4*) | |
13691 | case $cc_basename in | |
13692 | CC*) | |
13693 | # Sun C++ 4.x | |
13694 | lt_prog_compiler_pic_CXX='-pic' | |
13695 | lt_prog_compiler_static_CXX='-Bstatic' | |
13696 | ;; | |
13697 | lcc*) | |
13698 | # Lucid | |
13699 | lt_prog_compiler_pic_CXX='-pic' | |
13700 | ;; | |
13701 | *) | |
13702 | ;; | |
13703 | esac | |
13704 | ;; | |
13705 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
13706 | case $cc_basename in | |
13707 | CC*) | |
13708 | lt_prog_compiler_wl_CXX='-Wl,' | |
13709 | lt_prog_compiler_pic_CXX='-KPIC' | |
13710 | lt_prog_compiler_static_CXX='-Bstatic' | |
13711 | ;; | |
13712 | esac | |
13713 | ;; | |
13714 | tandem*) | |
13715 | case $cc_basename in | |
13716 | NCC*) | |
13717 | # NonStop-UX NCC 3.20 | |
13718 | lt_prog_compiler_pic_CXX='-KPIC' | |
13719 | ;; | |
13720 | *) | |
13721 | ;; | |
13722 | esac | |
13723 | ;; | |
13724 | vxworks*) | |
13725 | ;; | |
13726 | *) | |
13727 | lt_prog_compiler_can_build_shared_CXX=no | |
13728 | ;; | |
66deb2be | 13729 | esac |
1cf3d07d SE |
13730 | fi |
13731 | ||
13732 | case $host_os in | |
13733 | # For platforms which do not support PIC, -DPIC is meaningless: | |
13734 | *djgpp*) | |
13735 | lt_prog_compiler_pic_CXX= | |
13736 | ;; | |
13737 | *) | |
13738 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
13739 | ;; | |
13740 | esac | |
13741 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | |
13742 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 | |
13743 | ||
13744 | ||
13745 | ||
13746 | # | |
13747 | # Check to make sure the PIC flag actually works. | |
13748 | # | |
13749 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
13750 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
13751 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 | |
93e92f52 | 13752 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then |
1cf3d07d SE |
13753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13754 | else | |
93e92f52 | 13755 | lt_cv_prog_compiler_pic_works_CXX=no |
1cf3d07d SE |
13756 | ac_outfile=conftest.$ac_objext |
13757 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13758 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
13759 | # Insert the option either (1) after the last *FLAGS variable, or | |
13760 | # (2) before a word containing "conftest.", or (3) at the end. | |
13761 | # Note that $ac_compile itself does not contain backslashes and begins | |
13762 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13763 | # The option is referenced via a variable to avoid confusing sed. | |
13764 | lt_compile=`echo "$ac_compile" | $SED \ | |
13765 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13766 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13767 | -e 's:$: $lt_compiler_flag:'` | |
baafc534 | 13768 | (eval echo "\"\$as_me:13768: $lt_compile\"" >&5) |
1cf3d07d SE |
13769 | (eval "$lt_compile" 2>conftest.err) |
13770 | ac_status=$? | |
13771 | cat conftest.err >&5 | |
baafc534 | 13772 | echo "$as_me:13772: \$? = $ac_status" >&5 |
1cf3d07d SE |
13773 | if (exit $ac_status) && test -s "$ac_outfile"; then |
13774 | # The compiler can only warn and ignore the option if not recognized | |
13775 | # So say no if there are warnings other than the usual output. | |
13776 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
13777 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
13778 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
93e92f52 | 13779 | lt_cv_prog_compiler_pic_works_CXX=yes |
1cf3d07d SE |
13780 | fi |
13781 | fi | |
13782 | $RM conftest* | |
13783 | ||
13784 | fi | |
93e92f52 PG |
13785 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
13786 | echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6 | |
1cf3d07d | 13787 | |
93e92f52 | 13788 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then |
1cf3d07d SE |
13789 | case $lt_prog_compiler_pic_CXX in |
13790 | "" | " "*) ;; | |
13791 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
13792 | esac | |
13793 | else | |
13794 | lt_prog_compiler_pic_CXX= | |
13795 | lt_prog_compiler_can_build_shared_CXX=no | |
13796 | fi | |
13797 | ||
13798 | fi | |
13799 | ||
13800 | ||
13801 | ||
13802 | # | |
13803 | # Check to make sure the static flag actually works. | |
13804 | # | |
13805 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
13806 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
13807 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
93e92f52 | 13808 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then |
1cf3d07d SE |
13809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13810 | else | |
93e92f52 | 13811 | lt_cv_prog_compiler_static_works_CXX=no |
1cf3d07d SE |
13812 | save_LDFLAGS="$LDFLAGS" |
13813 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
13814 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
13815 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
13816 | # The linker can only warn and ignore the option if not recognized | |
13817 | # So say no if there are warnings | |
13818 | if test -s conftest.err; then | |
13819 | # Append any errors to the config.log. | |
13820 | cat conftest.err 1>&5 | |
13821 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
13822 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
13823 | if diff conftest.exp conftest.er2 >/dev/null; then | |
93e92f52 | 13824 | lt_cv_prog_compiler_static_works_CXX=yes |
1cf3d07d SE |
13825 | fi |
13826 | else | |
93e92f52 | 13827 | lt_cv_prog_compiler_static_works_CXX=yes |
1cf3d07d SE |
13828 | fi |
13829 | fi | |
93e92f52 | 13830 | $RM -r conftest* |
1cf3d07d SE |
13831 | LDFLAGS="$save_LDFLAGS" |
13832 | ||
13833 | fi | |
93e92f52 PG |
13834 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
13835 | echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6 | |
1cf3d07d | 13836 | |
93e92f52 | 13837 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then |
1cf3d07d SE |
13838 | : |
13839 | else | |
13840 | lt_prog_compiler_static_CXX= | |
13841 | fi | |
13842 | ||
13843 | ||
13844 | ||
13845 | ||
13846 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
13847 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
13848 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | |
13849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13850 | else | |
13851 | lt_cv_prog_compiler_c_o_CXX=no | |
13852 | $RM -r conftest 2>/dev/null | |
13853 | mkdir conftest | |
13854 | cd conftest | |
13855 | mkdir out | |
13856 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13857 | ||
13858 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13859 | # Insert the option either (1) after the last *FLAGS variable, or | |
13860 | # (2) before a word containing "conftest.", or (3) at the end. | |
13861 | # Note that $ac_compile itself does not contain backslashes and begins | |
13862 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13863 | lt_compile=`echo "$ac_compile" | $SED \ | |
13864 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13865 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13866 | -e 's:$: $lt_compiler_flag:'` | |
baafc534 | 13867 | (eval echo "\"\$as_me:13867: $lt_compile\"" >&5) |
1cf3d07d SE |
13868 | (eval "$lt_compile" 2>out/conftest.err) |
13869 | ac_status=$? | |
13870 | cat out/conftest.err >&5 | |
baafc534 | 13871 | echo "$as_me:13871: \$? = $ac_status" >&5 |
1cf3d07d SE |
13872 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13873 | then | |
13874 | # The compiler can only warn and ignore the option if not recognized | |
13875 | # So say no if there are warnings | |
13876 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
13877 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
13878 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
13879 | lt_cv_prog_compiler_c_o_CXX=yes | |
13880 | fi | |
13881 | fi | |
13882 | chmod u+w . 2>&5 | |
13883 | $RM conftest* | |
13884 | # SGI C++ compiler will create directory out/ii_files/ for | |
13885 | # template instantiation | |
13886 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
13887 | $RM out/* && rmdir out | |
13888 | cd .. | |
13889 | $RM -r conftest | |
13890 | $RM conftest* | |
13891 | ||
13892 | fi | |
13893 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
13894 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 | |
13895 | ||
13896 | ||
13897 | ||
13898 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
13899 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
13900 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | |
13901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13902 | else | |
13903 | lt_cv_prog_compiler_c_o_CXX=no | |
13904 | $RM -r conftest 2>/dev/null | |
13905 | mkdir conftest | |
13906 | cd conftest | |
13907 | mkdir out | |
13908 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13909 | ||
13910 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13911 | # Insert the option either (1) after the last *FLAGS variable, or | |
13912 | # (2) before a word containing "conftest.", or (3) at the end. | |
13913 | # Note that $ac_compile itself does not contain backslashes and begins | |
13914 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13915 | lt_compile=`echo "$ac_compile" | $SED \ | |
13916 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
13917 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
13918 | -e 's:$: $lt_compiler_flag:'` | |
baafc534 | 13919 | (eval echo "\"\$as_me:13919: $lt_compile\"" >&5) |
1cf3d07d SE |
13920 | (eval "$lt_compile" 2>out/conftest.err) |
13921 | ac_status=$? | |
13922 | cat out/conftest.err >&5 | |
baafc534 | 13923 | echo "$as_me:13923: \$? = $ac_status" >&5 |
1cf3d07d SE |
13924 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13925 | then | |
13926 | # The compiler can only warn and ignore the option if not recognized | |
13927 | # So say no if there are warnings | |
13928 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
13929 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
13930 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
13931 | lt_cv_prog_compiler_c_o_CXX=yes | |
13932 | fi | |
3343fdd2 | 13933 | fi |
1cf3d07d SE |
13934 | chmod u+w . 2>&5 |
13935 | $RM conftest* | |
13936 | # SGI C++ compiler will create directory out/ii_files/ for | |
13937 | # template instantiation | |
13938 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
13939 | $RM out/* && rmdir out | |
13940 | cd .. | |
13941 | $RM -r conftest | |
13942 | $RM conftest* | |
13943 | ||
13944 | fi | |
13945 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
13946 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 | |
13947 | ||
13948 | ||
13949 | ||
13950 | ||
13951 | hard_links="nottested" | |
13952 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
13953 | # do not overwrite the value of need_locks provided by the user | |
13954 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
13955 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
13956 | hard_links=yes | |
13957 | $RM conftest* | |
13958 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13959 | touch conftest.a | |
13960 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
13961 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13962 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
13963 | echo "${ECHO_T}$hard_links" >&6 | |
13964 | if test "$hard_links" = no; then | |
13965 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
13966 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
13967 | need_locks=warn | |
66deb2be | 13968 | fi |
1cf3d07d SE |
13969 | else |
13970 | need_locks=no | |
13971 | fi | |
13972 | ||
13973 | ||
13974 | ||
13975 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
13976 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
13977 | ||
13978 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
13979 | case $host_os in | |
f3641e7e | 13980 | aix[4-9]*) |
1cf3d07d SE |
13981 | # If we're using GNU nm, then we don't want the "-C" option. |
13982 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
13983 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
13984 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
13985 | else | |
13986 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
13987 | fi | |
13988 | ;; | |
13989 | pw32*) | |
13990 | export_symbols_cmds_CXX="$ltdll_cmds" | |
13991 | ;; | |
93e92f52 | 13992 | cygwin* | mingw* | cegcc*) |
1cf3d07d SE |
13993 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
13994 | ;; | |
13995 | *) | |
13996 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
66deb2be | 13997 | ;; |
1cf3d07d | 13998 | esac |
93e92f52 | 13999 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
66deb2be | 14000 | |
1cf3d07d SE |
14001 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
14002 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | |
14003 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
14004 | ||
14005 | with_gnu_ld_CXX=$with_gnu_ld | |
14006 | ||
14007 | ||
14008 | ||
14009 | ||
14010 | ||
14011 | ||
14012 | # | |
14013 | # Do we need to explicitly link libc? | |
14014 | # | |
14015 | case "x$archive_cmds_need_lc_CXX" in | |
14016 | x|xyes) | |
14017 | # Assume -lc should be added | |
14018 | archive_cmds_need_lc_CXX=yes | |
14019 | ||
14020 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
14021 | case $archive_cmds_CXX in | |
14022 | *'~'*) | |
14023 | # FIXME: we may have to deal with multi-command sequences. | |
14024 | ;; | |
14025 | '$CC '*) | |
14026 | # Test whether the compiler implicitly links with -lc since on some | |
14027 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
14028 | # to ld, don't add -lc before -lgcc. | |
14029 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
14030 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
baafc534 RW |
14031 | if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then |
14032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14033 | else | |
14034 | $RM conftest* | |
14035 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
1cf3d07d | 14036 | |
baafc534 | 14037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
47935194 NN |
14038 | (eval $ac_compile) 2>&5 |
14039 | ac_status=$? | |
14040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1cf3d07d | 14041 | (exit $ac_status); } 2>conftest.err; then |
baafc534 RW |
14042 | soname=conftest |
14043 | lib=conftest | |
14044 | libobjs=conftest.$ac_objext | |
14045 | deplibs= | |
14046 | wl=$lt_prog_compiler_wl_CXX | |
14047 | pic_flag=$lt_prog_compiler_pic_CXX | |
14048 | compiler_flags=-v | |
14049 | linker_flags=-v | |
14050 | verstring= | |
14051 | output_objdir=. | |
14052 | libname=conftest | |
14053 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
14054 | allow_undefined_flag_CXX= | |
14055 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
1cf3d07d | 14056 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
47935194 NN |
14057 | ac_status=$? |
14058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1cf3d07d | 14059 | (exit $ac_status); } |
baafc534 RW |
14060 | then |
14061 | lt_cv_archive_cmds_need_lc_CXX=no | |
14062 | else | |
14063 | lt_cv_archive_cmds_need_lc_CXX=yes | |
14064 | fi | |
14065 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
14066 | else | |
14067 | cat conftest.err 1>&5 | |
14068 | fi | |
14069 | $RM conftest* | |
14070 | ||
14071 | fi | |
14072 | echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 | |
14073 | echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_CXX" >&6 | |
14074 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX | |
13b6e5b4 AO |
14075 | ;; |
14076 | esac | |
14077 | fi | |
13b6e5b4 | 14078 | ;; |
1cf3d07d | 14079 | esac |
13b6e5b4 | 14080 | |
115dabb8 | 14081 | |
115dabb8 | 14082 | |
47935194 | 14083 | |
47935194 | 14084 | |
47935194 | 14085 | |
47935194 | 14086 | |
2f7bf5b7 | 14087 | |
66deb2be | 14088 | |
66deb2be | 14089 | |
66deb2be | 14090 | |
115dabb8 | 14091 | |
47935194 | 14092 | |
47935194 | 14093 | |
1cf3d07d SE |
14094 | |
14095 | ||
14096 | ||
14097 | ||
14098 | ||
14099 | ||
14100 | ||
14101 | ||
14102 | ||
14103 | ||
14104 | ||
14105 | ||
14106 | ||
14107 | ||
14108 | ||
14109 | ||
14110 | ||
14111 | ||
14112 | ||
14113 | ||
14114 | ||
14115 | ||
14116 | ||
14117 | ||
14118 | ||
14119 | ||
14120 | ||
14121 | ||
14122 | ||
14123 | ||
14124 | ||
14125 | ||
14126 | ||
14127 | ||
14128 | ||
14129 | ||
14130 | ||
14131 | ||
14132 | ||
14133 | ||
14134 | ||
14135 | ||
14136 | ||
14137 | ||
14138 | ||
14139 | ||
14140 | ||
14141 | ||
14142 | ||
14143 | ||
14144 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
14145 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
93e92f52 | 14146 | |
1cf3d07d SE |
14147 | library_names_spec= |
14148 | libname_spec='lib$name' | |
14149 | soname_spec= | |
14150 | shrext_cmds=".so" | |
14151 | postinstall_cmds= | |
14152 | postuninstall_cmds= | |
14153 | finish_cmds= | |
14154 | finish_eval= | |
14155 | shlibpath_var= | |
14156 | shlibpath_overrides_runpath=unknown | |
14157 | version_type=none | |
14158 | dynamic_linker="$host_os ld.so" | |
14159 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
14160 | need_lib_prefix=unknown | |
14161 | hardcode_into_libs=no | |
14162 | ||
14163 | # when you set need_version to no, make sure it does not cause -set_version | |
14164 | # flags to be left without arguments | |
14165 | need_version=unknown | |
14166 | ||
14167 | case $host_os in | |
14168 | aix3*) | |
14169 | version_type=linux | |
14170 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
14171 | shlibpath_var=LIBPATH | |
14172 | ||
14173 | # AIX 3 has no versioning support, so we append a major version to the name. | |
14174 | soname_spec='${libname}${release}${shared_ext}$major' | |
14175 | ;; | |
14176 | ||
f3641e7e | 14177 | aix[4-9]*) |
1cf3d07d SE |
14178 | version_type=linux |
14179 | need_lib_prefix=no | |
14180 | need_version=no | |
14181 | hardcode_into_libs=yes | |
14182 | if test "$host_cpu" = ia64; then | |
14183 | # AIX 5 supports IA64 | |
14184 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
14185 | shlibpath_var=LD_LIBRARY_PATH | |
14186 | else | |
14187 | # With GCC up to 2.95.x, collect2 would create an import file | |
14188 | # for dependence libraries. The import file would start with | |
14189 | # the line `#! .'. This would cause the generated library to | |
14190 | # depend on `.', always an invalid library. This was fixed in | |
14191 | # development snapshots of GCC prior to 3.0. | |
14192 | case $host_os in | |
14193 | aix4 | aix4.[01] | aix4.[01].*) | |
14194 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
14195 | echo ' yes ' | |
14196 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
14197 | : | |
14198 | else | |
14199 | can_build_shared=no | |
14200 | fi | |
47935194 | 14201 | ;; |
1cf3d07d SE |
14202 | esac |
14203 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
14204 | # soname into executable. Probably we can add versioning support to | |
14205 | # collect2, so additional links can be useful in future. | |
14206 | if test "$aix_use_runtimelinking" = yes; then | |
14207 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
14208 | # instead of lib<name>.a to let people know that these are not | |
14209 | # typical AIX shared libraries. | |
14210 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14211 | else | |
14212 | # We preserve .a as extension for shared libraries through AIX4.2 | |
14213 | # and later when we are not doing run time linking. | |
14214 | library_names_spec='${libname}${release}.a $libname.a' | |
14215 | soname_spec='${libname}${release}${shared_ext}$major' | |
14216 | fi | |
14217 | shlibpath_var=LIBPATH | |
14218 | fi | |
14219 | ;; | |
14220 | ||
14221 | amigaos*) | |
93e92f52 PG |
14222 | case $host_cpu in |
14223 | powerpc) | |
14224 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
14225 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
14226 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14227 | ;; | |
14228 | m68k) | |
1cf3d07d SE |
14229 | library_names_spec='$libname.ixlibrary $libname.a' |
14230 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
14231 | 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' | |
93e92f52 PG |
14232 | ;; |
14233 | esac | |
1cf3d07d | 14234 | ;; |
115dabb8 | 14235 | |
1cf3d07d SE |
14236 | beos*) |
14237 | library_names_spec='${libname}${shared_ext}' | |
14238 | dynamic_linker="$host_os ld.so" | |
14239 | shlibpath_var=LIBRARY_PATH | |
14240 | ;; | |
66deb2be | 14241 | |
1cf3d07d SE |
14242 | bsdi[45]*) |
14243 | version_type=linux | |
14244 | need_version=no | |
14245 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14246 | soname_spec='${libname}${release}${shared_ext}$major' | |
14247 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
14248 | shlibpath_var=LD_LIBRARY_PATH | |
14249 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
14250 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
14251 | # the default ld.so.conf also contains /usr/contrib/lib and | |
14252 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
14253 | # libtool to hard-code these into programs | |
14254 | ;; | |
14255 | ||
93e92f52 | 14256 | cygwin* | mingw* | pw32* | cegcc*) |
1cf3d07d SE |
14257 | version_type=windows |
14258 | shrext_cmds=".dll" | |
14259 | need_version=no | |
14260 | need_lib_prefix=no | |
14261 | ||
93e92f52 PG |
14262 | case $GCC,$host_os in |
14263 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
1cf3d07d SE |
14264 | library_names_spec='$libname.dll.a' |
14265 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
14266 | postinstall_cmds='base_file=`basename \${file}`~ | |
14267 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
14268 | dldir=$destdir/`dirname \$dlpath`~ | |
14269 | test -d \$dldir || mkdir -p \$dldir~ | |
14270 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
14271 | chmod a+x \$dldir/$dlname~ | |
14272 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
14273 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
14274 | fi' | |
14275 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
14276 | dlpath=$dir/\$dldll~ | |
14277 | $RM \$dlpath' | |
14278 | shlibpath_overrides_runpath=yes | |
14279 | ||
14280 | case $host_os in | |
14281 | cygwin*) | |
14282 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
14283 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14284 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
14285 | ;; | |
93e92f52 | 14286 | mingw* | cegcc*) |
1cf3d07d SE |
14287 | # MinGW DLLs use traditional 'lib' prefix |
14288 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14289 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
14290 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
14291 | # It is most probably a Windows format PATH printed by | |
14292 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
14293 | # path with ; separators, and with drive letters. We can handle the | |
14294 | # drive letters (cygwin fileutils understands them), so leave them, | |
14295 | # especially as we might pass files found there to a mingw objdump, | |
14296 | # which wouldn't understand a cygwinified path. Ahh. | |
14297 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
14298 | else | |
14299 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
14300 | fi | |
14301 | ;; | |
14302 | pw32*) | |
14303 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
14304 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14305 | ;; | |
47935194 | 14306 | esac |
1cf3d07d | 14307 | ;; |
115dabb8 | 14308 | |
1cf3d07d SE |
14309 | *) |
14310 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
14311 | ;; | |
14312 | esac | |
14313 | dynamic_linker='Win32 ld.exe' | |
14314 | # FIXME: first we should search . and the directory the executable is in | |
14315 | shlibpath_var=PATH | |
14316 | ;; | |
115dabb8 | 14317 | |
1cf3d07d SE |
14318 | darwin* | rhapsody*) |
14319 | dynamic_linker="$host_os dyld" | |
14320 | version_type=darwin | |
14321 | need_lib_prefix=no | |
14322 | need_version=no | |
14323 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
14324 | soname_spec='${libname}${release}${major}$shared_ext' | |
14325 | shlibpath_overrides_runpath=yes | |
14326 | shlibpath_var=DYLD_LIBRARY_PATH | |
14327 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
14328 | ||
14329 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
14330 | ;; | |
115dabb8 | 14331 | |
1cf3d07d SE |
14332 | dgux*) |
14333 | version_type=linux | |
14334 | need_lib_prefix=no | |
14335 | need_version=no | |
14336 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
14337 | soname_spec='${libname}${release}${shared_ext}$major' | |
14338 | shlibpath_var=LD_LIBRARY_PATH | |
14339 | ;; | |
115dabb8 | 14340 | |
1cf3d07d SE |
14341 | freebsd1*) |
14342 | dynamic_linker=no | |
14343 | ;; | |
66deb2be | 14344 | |
1cf3d07d SE |
14345 | freebsd* | dragonfly*) |
14346 | # DragonFly does not have aout. When/if they implement a new | |
14347 | # versioning mechanism, adjust this. | |
14348 | if test -x /usr/bin/objformat; then | |
14349 | objformat=`/usr/bin/objformat` | |
47935194 | 14350 | else |
1cf3d07d SE |
14351 | case $host_os in |
14352 | freebsd[123]*) objformat=aout ;; | |
14353 | *) objformat=elf ;; | |
14354 | esac | |
47935194 | 14355 | fi |
1cf3d07d SE |
14356 | version_type=freebsd-$objformat |
14357 | case $version_type in | |
14358 | freebsd-elf*) | |
14359 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14360 | need_version=no | |
14361 | need_lib_prefix=no | |
14362 | ;; | |
14363 | freebsd-*) | |
14364 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
14365 | need_version=yes | |
14366 | ;; | |
14367 | esac | |
14368 | shlibpath_var=LD_LIBRARY_PATH | |
14369 | case $host_os in | |
14370 | freebsd2*) | |
14371 | shlibpath_overrides_runpath=yes | |
14372 | ;; | |
14373 | freebsd3.[01]* | freebsdelf3.[01]*) | |
14374 | shlibpath_overrides_runpath=yes | |
14375 | hardcode_into_libs=yes | |
14376 | ;; | |
14377 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
14378 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
14379 | shlibpath_overrides_runpath=no | |
14380 | hardcode_into_libs=yes | |
14381 | ;; | |
14382 | *) # from 4.6 on, and DragonFly | |
14383 | shlibpath_overrides_runpath=yes | |
14384 | hardcode_into_libs=yes | |
14385 | ;; | |
14386 | esac | |
14387 | ;; | |
47935194 | 14388 | |
1cf3d07d SE |
14389 | gnu*) |
14390 | version_type=linux | |
14391 | need_lib_prefix=no | |
14392 | need_version=no | |
14393 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14394 | soname_spec='${libname}${release}${shared_ext}$major' | |
14395 | shlibpath_var=LD_LIBRARY_PATH | |
14396 | hardcode_into_libs=yes | |
14397 | ;; | |
47935194 | 14398 | |
1cf3d07d SE |
14399 | hpux9* | hpux10* | hpux11*) |
14400 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
14401 | # link against other versions. | |
14402 | version_type=sunos | |
14403 | need_lib_prefix=no | |
14404 | need_version=no | |
14405 | case $host_cpu in | |
14406 | ia64*) | |
14407 | shrext_cmds='.so' | |
14408 | hardcode_into_libs=yes | |
14409 | dynamic_linker="$host_os dld.so" | |
14410 | shlibpath_var=LD_LIBRARY_PATH | |
14411 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14412 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14413 | soname_spec='${libname}${release}${shared_ext}$major' | |
14414 | if test "X$HPUX_IA64_MODE" = X32; then | |
14415 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
14416 | else | |
14417 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
14418 | fi | |
14419 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14420 | ;; | |
14421 | hppa*64*) | |
14422 | shrext_cmds='.sl' | |
14423 | hardcode_into_libs=yes | |
14424 | dynamic_linker="$host_os dld.sl" | |
14425 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
14426 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14427 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14428 | soname_spec='${libname}${release}${shared_ext}$major' | |
14429 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
14430 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14431 | ;; | |
14432 | *) | |
14433 | shrext_cmds='.sl' | |
14434 | dynamic_linker="$host_os dld.sl" | |
14435 | shlibpath_var=SHLIB_PATH | |
14436 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
14437 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14438 | soname_spec='${libname}${release}${shared_ext}$major' | |
14439 | ;; | |
14440 | esac | |
14441 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
14442 | postinstall_cmds='chmod 555 $lib' | |
14443 | ;; | |
47935194 | 14444 | |
1cf3d07d SE |
14445 | interix[3-9]*) |
14446 | version_type=linux | |
14447 | need_lib_prefix=no | |
14448 | need_version=no | |
14449 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14450 | soname_spec='${libname}${release}${shared_ext}$major' | |
14451 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
14452 | shlibpath_var=LD_LIBRARY_PATH | |
14453 | shlibpath_overrides_runpath=no | |
14454 | hardcode_into_libs=yes | |
14455 | ;; | |
47935194 | 14456 | |
1cf3d07d SE |
14457 | irix5* | irix6* | nonstopux*) |
14458 | case $host_os in | |
14459 | nonstopux*) version_type=nonstopux ;; | |
14460 | *) | |
14461 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
14462 | version_type=linux | |
14463 | else | |
14464 | version_type=irix | |
14465 | fi ;; | |
14466 | esac | |
14467 | need_lib_prefix=no | |
14468 | need_version=no | |
14469 | soname_spec='${libname}${release}${shared_ext}$major' | |
14470 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14471 | case $host_os in | |
14472 | irix5* | nonstopux*) | |
14473 | libsuff= shlibsuff= | |
14474 | ;; | |
14475 | *) | |
14476 | case $LD in # libtool.m4 will add one of these switches to LD | |
14477 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
14478 | libsuff= shlibsuff= libmagic=32-bit;; | |
14479 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
14480 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
14481 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
14482 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
14483 | *) libsuff= shlibsuff= libmagic=never-match;; | |
14484 | esac | |
14485 | ;; | |
14486 | esac | |
14487 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
14488 | shlibpath_overrides_runpath=no | |
14489 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
14490 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
14491 | hardcode_into_libs=yes | |
14492 | ;; | |
47935194 | 14493 | |
1cf3d07d SE |
14494 | # No shared lib support for Linux oldld, aout, or coff. |
14495 | linux*oldld* | linux*aout* | linux*coff*) | |
14496 | dynamic_linker=no | |
14497 | ;; | |
47935194 | 14498 | |
1cf3d07d SE |
14499 | # This must be Linux ELF. |
14500 | linux* | k*bsd*-gnu) | |
14501 | version_type=linux | |
14502 | need_lib_prefix=no | |
14503 | need_version=no | |
14504 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14505 | soname_spec='${libname}${release}${shared_ext}$major' | |
14506 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
14507 | shlibpath_var=LD_LIBRARY_PATH | |
14508 | shlibpath_overrides_runpath=no | |
baafc534 | 14509 | |
1cf3d07d | 14510 | # Some binutils ld are patched to set DT_RUNPATH |
baafc534 RW |
14511 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then |
14512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14513 | else | |
14514 | lt_cv_shlibpath_overrides_runpath=no | |
14515 | save_LDFLAGS=$LDFLAGS | |
14516 | save_libdir=$libdir | |
14517 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
14518 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
14519 | if test x$gcc_no_link = xyes; then | |
1cf3d07d SE |
14520 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 |
14521 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14522 | { (exit 1); exit 1; }; } | |
47935194 | 14523 | fi |
1cf3d07d | 14524 | cat >conftest.$ac_ext <<_ACEOF |
47935194 NN |
14525 | /* confdefs.h. */ |
14526 | _ACEOF | |
14527 | cat confdefs.h >>conftest.$ac_ext | |
14528 | cat >>conftest.$ac_ext <<_ACEOF | |
14529 | /* end confdefs.h. */ | |
47935194 | 14530 | |
1cf3d07d SE |
14531 | int |
14532 | main () | |
14533 | { | |
47935194 | 14534 | |
1cf3d07d SE |
14535 | ; |
14536 | return 0; | |
14537 | } | |
47935194 | 14538 | _ACEOF |
1cf3d07d SE |
14539 | rm -f conftest.$ac_objext conftest$ac_exeext |
14540 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14541 | (eval $ac_link) 2>conftest.er1 | |
47935194 NN |
14542 | ac_status=$? |
14543 | grep -v '^ *+' conftest.er1 >conftest.err | |
14544 | rm -f conftest.er1 | |
14545 | cat conftest.err >&5 | |
14546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1cf3d07d SE |
14547 | (exit $ac_status); } && |
14548 | { ac_try='test -z "$ac_cxx_werror_flag" | |
14549 | || test ! -s conftest.err' | |
14550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14551 | (eval $ac_try) 2>&5 | |
14552 | ac_status=$? | |
14553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14554 | (exit $ac_status); }; } && | |
14555 | { ac_try='test -s conftest$ac_exeext' | |
14556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14557 | (eval $ac_try) 2>&5 | |
14558 | ac_status=$? | |
14559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14560 | (exit $ac_status); }; }; then | |
93e92f52 | 14561 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then |
baafc534 | 14562 | lt_cv_shlibpath_overrides_runpath=yes |
47935194 | 14563 | fi |
1cf3d07d | 14564 | |
47935194 NN |
14565 | else |
14566 | echo "$as_me: failed program was:" >&5 | |
14567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14568 | ||
47935194 | 14569 | fi |
1cf3d07d SE |
14570 | rm -f conftest.err conftest.$ac_objext \ |
14571 | conftest$ac_exeext conftest.$ac_ext | |
baafc534 RW |
14572 | LDFLAGS=$save_LDFLAGS |
14573 | libdir=$save_libdir | |
14574 | ||
14575 | fi | |
14576 | ||
14577 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
1cf3d07d SE |
14578 | |
14579 | # This implies no fast_install, which is unacceptable. | |
14580 | # Some rework will be needed to allow for fast_install | |
14581 | # before this can be enabled. | |
14582 | hardcode_into_libs=yes | |
14583 | ||
14584 | # Append ld.so.conf contents to the search path | |
14585 | if test -f /etc/ld.so.conf; then | |
93e92f52 | 14586 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
1cf3d07d SE |
14587 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
14588 | fi | |
47935194 | 14589 | |
1cf3d07d SE |
14590 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
14591 | # powerpc, because MkLinux only supported shared libraries with the | |
14592 | # GNU dynamic linker. Since this was broken with cross compilers, | |
14593 | # most powerpc-linux boxes support dynamic linking these days and | |
14594 | # people can always --disable-shared, the test was removed, and we | |
14595 | # assume the GNU/Linux dynamic linker is in use. | |
14596 | dynamic_linker='GNU/Linux ld.so' | |
14597 | ;; | |
14598 | ||
14599 | netbsd*) | |
14600 | version_type=sunos | |
14601 | need_lib_prefix=no | |
14602 | need_version=no | |
14603 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
14604 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14605 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14606 | dynamic_linker='NetBSD (a.out) ld.so' | |
14607 | else | |
14608 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14609 | soname_spec='${libname}${release}${shared_ext}$major' | |
14610 | dynamic_linker='NetBSD ld.elf_so' | |
14611 | fi | |
14612 | shlibpath_var=LD_LIBRARY_PATH | |
14613 | shlibpath_overrides_runpath=yes | |
14614 | hardcode_into_libs=yes | |
14615 | ;; | |
14616 | ||
14617 | newsos6) | |
14618 | version_type=linux | |
14619 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14620 | shlibpath_var=LD_LIBRARY_PATH | |
14621 | shlibpath_overrides_runpath=yes | |
14622 | ;; | |
14623 | ||
14624 | *nto* | *qnx*) | |
14625 | version_type=qnx | |
14626 | need_lib_prefix=no | |
14627 | need_version=no | |
14628 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14629 | soname_spec='${libname}${release}${shared_ext}$major' | |
14630 | shlibpath_var=LD_LIBRARY_PATH | |
14631 | shlibpath_overrides_runpath=no | |
14632 | hardcode_into_libs=yes | |
14633 | dynamic_linker='ldqnx.so' | |
14634 | ;; | |
14635 | ||
14636 | openbsd*) | |
14637 | version_type=sunos | |
14638 | sys_lib_dlsearch_path_spec="/usr/lib" | |
14639 | need_lib_prefix=no | |
14640 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
14641 | case $host_os in | |
14642 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
14643 | *) need_version=no ;; | |
14644 | esac | |
14645 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14646 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14647 | shlibpath_var=LD_LIBRARY_PATH | |
14648 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
14649 | case $host_os in | |
14650 | openbsd2.[89] | openbsd2.[89].*) | |
14651 | shlibpath_overrides_runpath=no | |
14652 | ;; | |
14653 | *) | |
14654 | shlibpath_overrides_runpath=yes | |
14655 | ;; | |
14656 | esac | |
14657 | else | |
14658 | shlibpath_overrides_runpath=yes | |
14659 | fi | |
14660 | ;; | |
14661 | ||
14662 | os2*) | |
14663 | libname_spec='$name' | |
14664 | shrext_cmds=".dll" | |
14665 | need_lib_prefix=no | |
14666 | library_names_spec='$libname${shared_ext} $libname.a' | |
14667 | dynamic_linker='OS/2 ld.exe' | |
14668 | shlibpath_var=LIBPATH | |
14669 | ;; | |
14670 | ||
14671 | osf3* | osf4* | osf5*) | |
14672 | version_type=osf | |
14673 | need_lib_prefix=no | |
14674 | need_version=no | |
14675 | soname_spec='${libname}${release}${shared_ext}$major' | |
14676 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14677 | shlibpath_var=LD_LIBRARY_PATH | |
14678 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
14679 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
14680 | ;; | |
14681 | ||
14682 | rdos*) | |
14683 | dynamic_linker=no | |
14684 | ;; | |
14685 | ||
14686 | solaris*) | |
14687 | version_type=linux | |
14688 | need_lib_prefix=no | |
14689 | need_version=no | |
14690 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14691 | soname_spec='${libname}${release}${shared_ext}$major' | |
14692 | shlibpath_var=LD_LIBRARY_PATH | |
14693 | shlibpath_overrides_runpath=yes | |
14694 | hardcode_into_libs=yes | |
14695 | # ldd complains unless libraries are executable | |
14696 | postinstall_cmds='chmod +x $lib' | |
14697 | ;; | |
14698 | ||
14699 | sunos4*) | |
14700 | version_type=sunos | |
14701 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14702 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
14703 | shlibpath_var=LD_LIBRARY_PATH | |
14704 | shlibpath_overrides_runpath=yes | |
14705 | if test "$with_gnu_ld" = yes; then | |
14706 | need_lib_prefix=no | |
14707 | fi | |
14708 | need_version=yes | |
14709 | ;; | |
14710 | ||
14711 | sysv4 | sysv4.3*) | |
14712 | version_type=linux | |
14713 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14714 | soname_spec='${libname}${release}${shared_ext}$major' | |
14715 | shlibpath_var=LD_LIBRARY_PATH | |
14716 | case $host_vendor in | |
14717 | sni) | |
14718 | shlibpath_overrides_runpath=no | |
14719 | need_lib_prefix=no | |
14720 | runpath_var=LD_RUN_PATH | |
14721 | ;; | |
14722 | siemens) | |
14723 | need_lib_prefix=no | |
14724 | ;; | |
14725 | motorola) | |
14726 | need_lib_prefix=no | |
14727 | need_version=no | |
14728 | shlibpath_overrides_runpath=no | |
14729 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
14730 | ;; | |
14731 | esac | |
14732 | ;; | |
14733 | ||
14734 | sysv4*MP*) | |
14735 | if test -d /usr/nec ;then | |
14736 | version_type=linux | |
14737 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
14738 | soname_spec='$libname${shared_ext}.$major' | |
14739 | shlibpath_var=LD_LIBRARY_PATH | |
14740 | fi | |
14741 | ;; | |
14742 | ||
14743 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
14744 | version_type=freebsd-elf | |
14745 | need_lib_prefix=no | |
14746 | need_version=no | |
14747 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14748 | soname_spec='${libname}${release}${shared_ext}$major' | |
14749 | shlibpath_var=LD_LIBRARY_PATH | |
14750 | shlibpath_overrides_runpath=yes | |
14751 | hardcode_into_libs=yes | |
14752 | if test "$with_gnu_ld" = yes; then | |
14753 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
14754 | else | |
14755 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
14756 | case $host_os in | |
14757 | sco3.2v5*) | |
14758 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
14759 | ;; | |
14760 | esac | |
14761 | fi | |
14762 | sys_lib_dlsearch_path_spec='/usr/lib' | |
14763 | ;; | |
14764 | ||
14765 | tpf*) | |
14766 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
14767 | version_type=linux | |
14768 | need_lib_prefix=no | |
14769 | need_version=no | |
93e92f52 | 14770 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
1cf3d07d SE |
14771 | shlibpath_var=LD_LIBRARY_PATH |
14772 | shlibpath_overrides_runpath=no | |
14773 | hardcode_into_libs=yes | |
14774 | ;; | |
14775 | ||
14776 | uts4*) | |
14777 | version_type=linux | |
14778 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14779 | soname_spec='${libname}${release}${shared_ext}$major' | |
14780 | shlibpath_var=LD_LIBRARY_PATH | |
14781 | ;; | |
14782 | ||
14783 | *) | |
14784 | dynamic_linker=no | |
14785 | ;; | |
14786 | esac | |
14787 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
14788 | echo "${ECHO_T}$dynamic_linker" >&6 | |
14789 | test "$dynamic_linker" = no && can_build_shared=no | |
14790 | ||
14791 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
14792 | if test "$GCC" = yes; then | |
14793 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
47935194 NN |
14794 | fi |
14795 | ||
93e92f52 PG |
14796 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
14797 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
14798 | fi | |
14799 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
14800 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
14801 | fi | |
14802 | ||
47935194 | 14803 | |
66deb2be | 14804 | |
2f7bf5b7 | 14805 | |
2f7bf5b7 | 14806 | |
2f7bf5b7 | 14807 | |
2f7bf5b7 | 14808 | |
47935194 NN |
14809 | |
14810 | ||
14811 | ||
14812 | ||
14813 | ||
2f7bf5b7 | 14814 | |
47935194 | 14815 | |
1530be84 | 14816 | |
1530be84 TT |
14817 | |
14818 | ||
1cf3d07d SE |
14819 | |
14820 | ||
14821 | ||
14822 | ||
14823 | ||
14824 | ||
14825 | ||
14826 | ||
14827 | ||
14828 | ||
14829 | ||
14830 | ||
14831 | ||
14832 | ||
14833 | ||
14834 | ||
14835 | ||
14836 | ||
14837 | ||
14838 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
14839 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
14840 | hardcode_action_CXX= | |
14841 | if test -n "$hardcode_libdir_flag_spec_CXX" || | |
14842 | test -n "$runpath_var_CXX" || | |
14843 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
14844 | ||
14845 | # We can hardcode non-existent directories. | |
14846 | if test "$hardcode_direct_CXX" != no && | |
14847 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
14848 | # have to relink, otherwise we might link with an installed library | |
14849 | # when we should be linking with a yet-to-be-installed one | |
14850 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
14851 | test "$hardcode_minus_L_CXX" != no; then | |
14852 | # Linking always hardcodes the temporary library directory. | |
14853 | hardcode_action_CXX=relink | |
14854 | else | |
14855 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
14856 | hardcode_action_CXX=immediate | |
14857 | fi | |
14858 | else | |
14859 | # We cannot hardcode anything, or else we can only hardcode existing | |
14860 | # directories. | |
14861 | hardcode_action_CXX=unsupported | |
5a2586cf | 14862 | fi |
1cf3d07d SE |
14863 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
14864 | echo "${ECHO_T}$hardcode_action_CXX" >&6 | |
5a2586cf | 14865 | |
1cf3d07d SE |
14866 | if test "$hardcode_action_CXX" = relink || |
14867 | test "$inherit_rpath_CXX" = yes; then | |
14868 | # Fast installation is not supported | |
14869 | enable_fast_install=no | |
14870 | elif test "$shlibpath_overrides_runpath" = yes || | |
14871 | test "$enable_shared" = no; then | |
14872 | # Fast installation is not necessary | |
14873 | enable_fast_install=needless | |
14874 | fi | |
5a2586cf | 14875 | |
1530be84 | 14876 | |
5572488d | 14877 | |
5a2586cf | 14878 | |
5572488d | 14879 | |
5a2586cf | 14880 | |
5572488d | 14881 | |
1cf3d07d | 14882 | fi # test -n "$compiler" |
5a2586cf | 14883 | |
1cf3d07d SE |
14884 | CC=$lt_save_CC |
14885 | LDCXX=$LD | |
14886 | LD=$lt_save_LD | |
14887 | GCC=$lt_save_GCC | |
14888 | with_gnu_ld=$lt_save_with_gnu_ld | |
14889 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
14890 | lt_cv_path_LD=$lt_save_path_LD | |
14891 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
14892 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
14893 | fi # test "$_lt_caught_CXX_error" != yes | |
5572488d | 14894 | |
1cf3d07d SE |
14895 | ac_ext=c |
14896 | ac_cpp='$CPP $CPPFLAGS' | |
14897 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14898 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14899 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5a2586cf | 14900 | |
1530be84 | 14901 | |
30c3de1f | 14902 | |
5572488d | 14903 | |
30c3de1f | 14904 | |
1530be84 | 14905 | |
5572488d | 14906 | |
5a2586cf | 14907 | |
5572488d | 14908 | |
5a2586cf | 14909 | |
5a2586cf | 14910 | |
5a2586cf | 14911 | |
d0c03515 | 14912 | |
1cf3d07d | 14913 | ac_config_commands="$ac_config_commands libtool" |
d0c03515 | 14914 | |
eb496303 | 14915 | |
eb496303 | 14916 | |
eb496303 | 14917 | |
1cf3d07d | 14918 | # Only expand once: |
eb496303 | 14919 | |
9a35ada5 | 14920 | |
eb496303 | 14921 | |
5572488d | 14922 | |
1cf3d07d SE |
14923 | # Check whether --with-target-subdir or --without-target-subdir was given. |
14924 | if test "${with_target_subdir+set}" = set; then | |
14925 | withval="$with_target_subdir" | |
62aa6b06 | 14926 | |
1cf3d07d | 14927 | fi; |
5572488d | 14928 | |
1cf3d07d SE |
14929 | # Check whether --with-cross-host or --without-cross-host was given. |
14930 | if test "${with_cross_host+set}" = set; then | |
14931 | withval="$with_cross_host" | |
1530be84 | 14932 | |
1cf3d07d | 14933 | fi; |
5572488d | 14934 | |
1cf3d07d SE |
14935 | echo "$as_me:$LINENO: checking for thread model used by GCC" >&5 |
14936 | echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6 | |
14937 | THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'` | |
14938 | if test -z "$THREADS"; then | |
14939 | THREADS=no | |
14940 | fi | |
14941 | echo "$as_me:$LINENO: result: $THREADS" >&5 | |
14942 | echo "${ECHO_T}$THREADS" >&6 | |
14caa62f | 14943 | |
1cf3d07d SE |
14944 | # Check whether --enable-parallel-mark or --disable-parallel-mark was given. |
14945 | if test "${enable_parallel_mark+set}" = set; then | |
14946 | enableval="$enable_parallel_mark" | |
14947 | case "$THREADS" in | |
14948 | no | none | single) | |
14949 | { { echo "$as_me:$LINENO: error: Parallel mark requires --enable-threads=x spec" >&5 | |
14950 | echo "$as_me: error: Parallel mark requires --enable-threads=x spec" >&2;} | |
14951 | { (exit 1); exit 1; }; } | |
14caa62f | 14952 | ;; |
1cf3d07d | 14953 | esac |
5572488d | 14954 | |
1cf3d07d | 14955 | fi; |
1530be84 | 14956 | |
1cf3d07d SE |
14957 | AM_CPPFLAGS="-I`cd $srcdir && ${PWDCMD-pwd}`/include" |
14958 | THREADLIBS= | |
14959 | case "$THREADS" in | |
14960 | no | none | single) | |
14961 | THREADS=none | |
14962 | ;; | |
14963 | posix | posix95 | pthreads) | |
14964 | THREADS=posix | |
14965 | THREADLIBS=-lpthread | |
14966 | case "$host" in | |
14967 | x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*) | |
5572488d KC |
14968 | |
14969 | cat >>confdefs.h <<\_ACEOF | |
1cf3d07d | 14970 | #define GC_LINUX_THREADS 1 |
47935194 | 14971 | _ACEOF |
30c3de1f | 14972 | |
5572488d KC |
14973 | |
14974 | cat >>confdefs.h <<\_ACEOF | |
1cf3d07d | 14975 | #define _REENTRANT 1 |
47935194 | 14976 | _ACEOF |
30c3de1f | 14977 | |
1cf3d07d | 14978 | if test "${enable_parallel_mark}" = yes; then |
30c3de1f | 14979 | |
1cf3d07d | 14980 | cat >>confdefs.h <<\_ACEOF |
30c3de1f | 14981 | #define PARALLEL_MARK 1 |
47935194 | 14982 | _ACEOF |
30c3de1f JS |
14983 | |
14984 | fi | |
5572488d KC |
14985 | |
14986 | cat >>confdefs.h <<\_ACEOF | |
30c3de1f | 14987 | #define THREAD_LOCAL_ALLOC 1 |
47935194 | 14988 | _ACEOF |
30c3de1f | 14989 | |
1530be84 | 14990 | ;; |
1cf3d07d SE |
14991 | *-*-linux*) |
14992 | cat >>confdefs.h <<\_ACEOF | |
14993 | #define GC_LINUX_THREADS 1 | |
47935194 | 14994 | _ACEOF |
30c3de1f | 14995 | |
1cf3d07d SE |
14996 | cat >>confdefs.h <<\_ACEOF |
14997 | #define _REENTRANT 1 | |
47935194 | 14998 | _ACEOF |
30c3de1f | 14999 | |
1cf3d07d SE |
15000 | ;; |
15001 | *-*-aix*) | |
5572488d KC |
15002 | |
15003 | cat >>confdefs.h <<\_ACEOF | |
30c3de1f | 15004 | #define GC_AIX_THREADS 1 |
47935194 | 15005 | _ACEOF |
30c3de1f | 15006 | |
1cf3d07d | 15007 | cat >>confdefs.h <<\_ACEOF |
30c3de1f | 15008 | #define _REENTRANT 1 |
47935194 | 15009 | _ACEOF |
30c3de1f | 15010 | |
1cf3d07d SE |
15011 | ;; |
15012 | *-*-hpux11*) | |
15013 | { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5 | |
15014 | echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;} | |
bf9a420e | 15015 | |
1cf3d07d SE |
15016 | cat >>confdefs.h <<\_ACEOF |
15017 | #define GC_HPUX_THREADS 1 | |
4f6d8cc8 | 15018 | _ACEOF |
4f6d8cc8 | 15019 | |
1cf3d07d SE |
15020 | |
15021 | cat >>confdefs.h <<\_ACEOF | |
15022 | #define _POSIX_C_SOURCE 199506L | |
4f6d8cc8 | 15023 | _ACEOF |
4f6d8cc8 | 15024 | |
1cf3d07d SE |
15025 | if test "${enable_parallel_mark}" = yes; then |
15026 | cat >>confdefs.h <<\_ACEOF | |
15027 | #define PARALLEL_MARK 1 | |
4f6d8cc8 | 15028 | _ACEOF |
4f6d8cc8 | 15029 | |
1cf3d07d SE |
15030 | fi |
15031 | cat >>confdefs.h <<\_ACEOF | |
15032 | #define THREAD_LOCAL_ALLOC 1 | |
4f6d8cc8 | 15033 | _ACEOF |
4f6d8cc8 | 15034 | |
1cf3d07d SE |
15035 | THREADLIBS="-lpthread -lrt" |
15036 | # HPUX needs REENTRANT for the _r calls. | |
4f6d8cc8 GK |
15037 | |
15038 | cat >>confdefs.h <<\_ACEOF | |
1cf3d07d | 15039 | #define _REENTRANT 1 |
4f6d8cc8 GK |
15040 | _ACEOF |
15041 | ||
1cf3d07d SE |
15042 | ;; |
15043 | *-*-hpux10*) | |
15044 | { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5 | |
15045 | echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;} | |
15046 | ;; | |
15047 | *-*-kfreebsd*-gnu) | |
15048 | cat >>confdefs.h <<\_ACEOF | |
15049 | #define GC_FREEBSD_THREADS 1 | |
15050 | _ACEOF | |
4f6d8cc8 | 15051 | |
1cf3d07d SE |
15052 | INCLUDES="$INCLUDES -pthread" |
15053 | THREADDLLIBS=-pthread | |
15054 | cat >>confdefs.h <<\_ACEOF | |
15055 | #define _REENTRANT 1 | |
4f6d8cc8 | 15056 | _ACEOF |
4f6d8cc8 | 15057 | |
1cf3d07d SE |
15058 | if test "${enable_parallel_mark}" = yes; then |
15059 | cat >>confdefs.h <<\_ACEOF | |
15060 | #define PARALLEL_MARK 1 | |
4f6d8cc8 | 15061 | _ACEOF |
4f6d8cc8 | 15062 | |
1cf3d07d SE |
15063 | fi |
15064 | cat >>confdefs.h <<\_ACEOF | |
15065 | #define THREAD_LOCAL_ALLOC 1 | |
4f6d8cc8 | 15066 | _ACEOF |
4f6d8cc8 | 15067 | |
1cf3d07d SE |
15068 | |
15069 | cat >>confdefs.h <<\_ACEOF | |
15070 | #define USE_COMPILER_TLS 1 | |
4f6d8cc8 | 15071 | _ACEOF |
4f6d8cc8 | 15072 | |
1cf3d07d SE |
15073 | ;; |
15074 | *-*-freebsd*) | |
15075 | { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5 | |
15076 | echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;} | |
4f6d8cc8 GK |
15077 | |
15078 | cat >>confdefs.h <<\_ACEOF | |
1cf3d07d | 15079 | #define GC_FREEBSD_THREADS 1 |
4f6d8cc8 GK |
15080 | _ACEOF |
15081 | ||
1cf3d07d SE |
15082 | AM_CPPFLAGS="$AM_CPPFLAGS -pthread" |
15083 | THREADLIBS=-pthread | |
15084 | ;; | |
15085 | *-*-solaris*) | |
4f6d8cc8 | 15086 | |
1cf3d07d SE |
15087 | cat >>confdefs.h <<\_ACEOF |
15088 | #define GC_SOLARIS_PTHREADS 1 | |
4f6d8cc8 | 15089 | _ACEOF |
4f6d8cc8 | 15090 | |
28e2ff77 RO |
15091 | # Need to use alternate thread library, otherwise gctest hangs |
15092 | # on Solaris 8. | |
15093 | multi_os_directory=`$CC -print-multi-os-directory` | |
15094 | THREADLIBS="-L/usr/lib/lwp/$multi_os_directory \ | |
15095 | -R/usr/lib/lwp/$multi_os_directory -lpthread -lthread -lrt" | |
1cf3d07d SE |
15096 | ;; |
15097 | *-*-irix*) | |
15098 | ||
15099 | cat >>confdefs.h <<\_ACEOF | |
15100 | #define GC_IRIX_THREADS 1 | |
4f6d8cc8 | 15101 | _ACEOF |
4f6d8cc8 | 15102 | |
1cf3d07d SE |
15103 | ;; |
15104 | *-*-cygwin*) | |
15105 | ||
15106 | cat >>confdefs.h <<\_ACEOF | |
15107 | #define GC_WIN32_THREADS 1 | |
4f6d8cc8 | 15108 | _ACEOF |
4f6d8cc8 | 15109 | |
1cf3d07d SE |
15110 | ;; |
15111 | *-*-darwin*) | |
15112 | ||
15113 | cat >>confdefs.h <<\_ACEOF | |
15114 | #define GC_DARWIN_THREADS 1 | |
15115 | _ACEOF | |
15116 | ||
15117 | cat >>confdefs.h <<\_ACEOF | |
15118 | #define THREAD_LOCAL_ALLOC 1 | |
15119 | _ACEOF | |
15120 | ||
15121 | if test "${enable_parallel_mark}" = yes; then | |
15122 | cat >>confdefs.h <<\_ACEOF | |
15123 | #define PARALLEL_MARK 1 | |
15124 | _ACEOF | |
15125 | ||
15126 | fi | |
15127 | ;; | |
15128 | *-*-osf*) | |
4f6d8cc8 GK |
15129 | |
15130 | cat >>confdefs.h <<\_ACEOF | |
1cf3d07d | 15131 | #define GC_OSF1_THREADS 1 |
4f6d8cc8 GK |
15132 | _ACEOF |
15133 | ||
1cf3d07d SE |
15134 | if test "${enable_parallel_mark}" = yes; then |
15135 | cat >>confdefs.h <<\_ACEOF | |
15136 | #define PARALLEL_MARK 1 | |
15137 | _ACEOF | |
4f6d8cc8 | 15138 | |
1cf3d07d SE |
15139 | cat >>confdefs.h <<\_ACEOF |
15140 | #define THREAD_LOCAL_ALLOC 1 | |
4f6d8cc8 | 15141 | _ACEOF |
4f6d8cc8 | 15142 | |
1cf3d07d SE |
15143 | # May want to enable it in other cases, too. |
15144 | # Measurements havent yet been done. | |
15145 | fi | |
15146 | AM_CPPFLAGS="$AM_CPPFLAGS -pthread" | |
15147 | THREADLIBS="-lpthread -lrt" | |
15148 | ;; | |
15149 | esac | |
15150 | ;; | |
15151 | win32) | |
15152 | cat >>confdefs.h <<\_ACEOF | |
15153 | #define GC_WIN32_THREADS 1 | |
4f6d8cc8 | 15154 | _ACEOF |
4f6d8cc8 | 15155 | |
1cf3d07d SE |
15156 | ;; |
15157 | dgux386) | |
15158 | THREADS=dgux386 | |
15159 | echo "$as_me:$LINENO: result: $THREADLIBS" >&5 | |
15160 | echo "${ECHO_T}$THREADLIBS" >&6 | |
15161 | # Use pthread GCC switch | |
15162 | THREADLIBS=-pthread | |
15163 | if test "${enable_parallel_mark}" = yes; then | |
15164 | cat >>confdefs.h <<\_ACEOF | |
15165 | #define PARALLEL_MARK 1 | |
4f6d8cc8 | 15166 | _ACEOF |
4f6d8cc8 | 15167 | |
1cf3d07d SE |
15168 | fi |
15169 | cat >>confdefs.h <<\_ACEOF | |
15170 | #define THREAD_LOCAL_ALLOC 1 | |
4f6d8cc8 | 15171 | _ACEOF |
4f6d8cc8 | 15172 | |
4f6d8cc8 GK |
15173 | |
15174 | cat >>confdefs.h <<\_ACEOF | |
1cf3d07d | 15175 | #define GC_DGUX386_THREADS 1 |
4f6d8cc8 GK |
15176 | _ACEOF |
15177 | ||
4f6d8cc8 | 15178 | |
1cf3d07d SE |
15179 | cat >>confdefs.h <<\_ACEOF |
15180 | #define DGUX_THREADS 1 | |
15181 | _ACEOF | |
15182 | ||
15183 | # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread | |
15184 | AM_CPPFLAGS="-pthread $AM_CPPFLAGS" | |
4f6d8cc8 | 15185 | ;; |
1cf3d07d SE |
15186 | aix) |
15187 | THREADS=posix | |
15188 | THREADLIBS=-lpthread | |
15189 | cat >>confdefs.h <<\_ACEOF | |
15190 | #define GC_AIX_THREADS 1 | |
15191 | _ACEOF | |
15192 | ||
15193 | cat >>confdefs.h <<\_ACEOF | |
15194 | #define _REENTRANT 1 | |
15195 | _ACEOF | |
15196 | ||
15197 | ;; | |
15198 | decosf1 | irix | mach | os2 | solaris | dce | vxworks) | |
15199 | { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5 | |
15200 | echo "$as_me: error: thread package $THREADS not yet supported" >&2;} | |
15201 | { (exit 1); exit 1; }; } | |
15202 | ;; | |
15203 | *) | |
15204 | { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5 | |
15205 | echo "$as_me: error: $THREADS is an unknown thread package" >&2;} | |
15206 | { (exit 1); exit 1; }; } | |
15207 | ;; | |
15208 | esac | |
15209 | ||
15210 | ||
15211 | case "$host" in | |
15212 | powerpc-*-darwin*) | |
15213 | powerpc_darwin=true | |
15214 | ;; | |
15215 | esac | |
15216 | ||
15217 | ||
15218 | if test x$powerpc_darwin = xtrue; then | |
15219 | POWERPC_DARWIN_TRUE= | |
15220 | POWERPC_DARWIN_FALSE='#' | |
15221 | else | |
15222 | POWERPC_DARWIN_TRUE='#' | |
15223 | POWERPC_DARWIN_FALSE= | |
15224 | fi | |
15225 | ||
15226 | ||
15227 | # Darwin needs a few extra special tests to deal with variation in the | |
15228 | # system headers. | |
15229 | case "$host" in | |
15230 | powerpc*-*-darwin*) | |
15231 | echo "$as_me:$LINENO: checking for ppc_thread_state_t.r0" >&5 | |
15232 | echo $ECHO_N "checking for ppc_thread_state_t.r0... $ECHO_C" >&6 | |
15233 | if test "${ac_cv_member_ppc_thread_state_t_r0+set}" = set; then | |
4f6d8cc8 GK |
15234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15235 | else | |
15236 | cat >conftest.$ac_ext <<_ACEOF | |
15237 | /* confdefs.h. */ | |
15238 | _ACEOF | |
15239 | cat confdefs.h >>conftest.$ac_ext | |
15240 | cat >>conftest.$ac_ext <<_ACEOF | |
15241 | /* end confdefs.h. */ | |
1cf3d07d | 15242 | #include <mach/thread_status.h> |
4f6d8cc8 GK |
15243 | |
15244 | int | |
15245 | main () | |
15246 | { | |
1cf3d07d SE |
15247 | static ppc_thread_state_t ac_aggr; |
15248 | if (ac_aggr.r0) | |
4f6d8cc8 GK |
15249 | return 0; |
15250 | ; | |
15251 | return 0; | |
15252 | } | |
15253 | _ACEOF | |
15254 | rm -f conftest.$ac_objext | |
15255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15256 | (eval $ac_compile) 2>conftest.er1 | |
15257 | ac_status=$? | |
15258 | grep -v '^ *+' conftest.er1 >conftest.err | |
15259 | rm -f conftest.er1 | |
15260 | cat conftest.err >&5 | |
15261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15262 | (exit $ac_status); } && | |
15263 | { ac_try='test -z "$ac_c_werror_flag" | |
15264 | || test ! -s conftest.err' | |
15265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15266 | (eval $ac_try) 2>&5 | |
15267 | ac_status=$? | |
15268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15269 | (exit $ac_status); }; } && | |
15270 | { ac_try='test -s conftest.$ac_objext' | |
15271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15272 | (eval $ac_try) 2>&5 | |
15273 | ac_status=$? | |
15274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15275 | (exit $ac_status); }; }; then | |
1cf3d07d | 15276 | ac_cv_member_ppc_thread_state_t_r0=yes |
4f6d8cc8 GK |
15277 | else |
15278 | echo "$as_me: failed program was:" >&5 | |
15279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15280 | ||
15281 | cat >conftest.$ac_ext <<_ACEOF | |
15282 | /* confdefs.h. */ | |
15283 | _ACEOF | |
15284 | cat confdefs.h >>conftest.$ac_ext | |
15285 | cat >>conftest.$ac_ext <<_ACEOF | |
15286 | /* end confdefs.h. */ | |
1cf3d07d | 15287 | #include <mach/thread_status.h> |
4f6d8cc8 GK |
15288 | |
15289 | int | |
15290 | main () | |
15291 | { | |
1cf3d07d SE |
15292 | static ppc_thread_state_t ac_aggr; |
15293 | if (sizeof ac_aggr.r0) | |
4f6d8cc8 GK |
15294 | return 0; |
15295 | ; | |
15296 | return 0; | |
15297 | } | |
15298 | _ACEOF | |
15299 | rm -f conftest.$ac_objext | |
15300 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15301 | (eval $ac_compile) 2>conftest.er1 | |
15302 | ac_status=$? | |
15303 | grep -v '^ *+' conftest.er1 >conftest.err | |
15304 | rm -f conftest.er1 | |
15305 | cat conftest.err >&5 | |
15306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15307 | (exit $ac_status); } && | |
15308 | { ac_try='test -z "$ac_c_werror_flag" | |
15309 | || test ! -s conftest.err' | |
15310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15311 | (eval $ac_try) 2>&5 | |
15312 | ac_status=$? | |
15313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15314 | (exit $ac_status); }; } && | |
15315 | { ac_try='test -s conftest.$ac_objext' | |
15316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15317 | (eval $ac_try) 2>&5 | |
15318 | ac_status=$? | |
15319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15320 | (exit $ac_status); }; }; then | |
1cf3d07d | 15321 | ac_cv_member_ppc_thread_state_t_r0=yes |
4f6d8cc8 GK |
15322 | else |
15323 | echo "$as_me: failed program was:" >&5 | |
15324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15325 | ||
1cf3d07d | 15326 | ac_cv_member_ppc_thread_state_t_r0=no |
4f6d8cc8 GK |
15327 | fi |
15328 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15329 | fi | |
15330 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15331 | fi | |
1cf3d07d SE |
15332 | echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t_r0" >&5 |
15333 | echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t_r0" >&6 | |
15334 | if test $ac_cv_member_ppc_thread_state_t_r0 = yes; then | |
4f6d8cc8 GK |
15335 | |
15336 | cat >>confdefs.h <<\_ACEOF | |
1cf3d07d | 15337 | #define HAS_PPC_THREAD_STATE_R0 1 |
4f6d8cc8 GK |
15338 | _ACEOF |
15339 | ||
15340 | fi | |
15341 | ||
1cf3d07d SE |
15342 | echo "$as_me:$LINENO: checking for ppc_thread_state_t.__r0" >&5 |
15343 | echo $ECHO_N "checking for ppc_thread_state_t.__r0... $ECHO_C" >&6 | |
15344 | if test "${ac_cv_member_ppc_thread_state_t___r0+set}" = set; then | |
4f6d8cc8 GK |
15345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15346 | else | |
15347 | cat >conftest.$ac_ext <<_ACEOF | |
15348 | /* confdefs.h. */ | |
15349 | _ACEOF | |
15350 | cat confdefs.h >>conftest.$ac_ext | |
15351 | cat >>conftest.$ac_ext <<_ACEOF | |
15352 | /* end confdefs.h. */ | |
1cf3d07d | 15353 | #include <mach/thread_status.h> |
4f6d8cc8 GK |
15354 | |
15355 | int | |
15356 | main () | |
15357 | { | |
1cf3d07d SE |
15358 | static ppc_thread_state_t ac_aggr; |
15359 | if (ac_aggr.__r0) | |
4f6d8cc8 GK |
15360 | return 0; |
15361 | ; | |
15362 | return 0; | |
15363 | } | |
15364 | _ACEOF | |
15365 | rm -f conftest.$ac_objext | |
15366 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15367 | (eval $ac_compile) 2>conftest.er1 | |
15368 | ac_status=$? | |
15369 | grep -v '^ *+' conftest.er1 >conftest.err | |
15370 | rm -f conftest.er1 | |
15371 | cat conftest.err >&5 | |
15372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15373 | (exit $ac_status); } && | |
15374 | { ac_try='test -z "$ac_c_werror_flag" | |
15375 | || test ! -s conftest.err' | |
15376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15377 | (eval $ac_try) 2>&5 | |
15378 | ac_status=$? | |
15379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15380 | (exit $ac_status); }; } && | |
15381 | { ac_try='test -s conftest.$ac_objext' | |
15382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15383 | (eval $ac_try) 2>&5 | |
15384 | ac_status=$? | |
15385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15386 | (exit $ac_status); }; }; then | |
1cf3d07d | 15387 | ac_cv_member_ppc_thread_state_t___r0=yes |
4f6d8cc8 GK |
15388 | else |
15389 | echo "$as_me: failed program was:" >&5 | |
15390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15391 | ||
15392 | cat >conftest.$ac_ext <<_ACEOF | |
15393 | /* confdefs.h. */ | |
15394 | _ACEOF | |
15395 | cat confdefs.h >>conftest.$ac_ext | |
15396 | cat >>conftest.$ac_ext <<_ACEOF | |
15397 | /* end confdefs.h. */ | |
1cf3d07d | 15398 | #include <mach/thread_status.h> |
4f6d8cc8 GK |
15399 | |
15400 | int | |
15401 | main () | |
15402 | { | |
1cf3d07d SE |
15403 | static ppc_thread_state_t ac_aggr; |
15404 | if (sizeof ac_aggr.__r0) | |
4f6d8cc8 GK |
15405 | return 0; |
15406 | ; | |
15407 | return 0; | |
15408 | } | |
15409 | _ACEOF | |
15410 | rm -f conftest.$ac_objext | |
15411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15412 | (eval $ac_compile) 2>conftest.er1 | |
15413 | ac_status=$? | |
15414 | grep -v '^ *+' conftest.er1 >conftest.err | |
15415 | rm -f conftest.er1 | |
15416 | cat conftest.err >&5 | |
15417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15418 | (exit $ac_status); } && | |
15419 | { ac_try='test -z "$ac_c_werror_flag" | |
15420 | || test ! -s conftest.err' | |
15421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15422 | (eval $ac_try) 2>&5 | |
15423 | ac_status=$? | |
15424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15425 | (exit $ac_status); }; } && | |
15426 | { ac_try='test -s conftest.$ac_objext' | |
15427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15428 | (eval $ac_try) 2>&5 | |
15429 | ac_status=$? | |
15430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15431 | (exit $ac_status); }; }; then | |
1cf3d07d | 15432 | ac_cv_member_ppc_thread_state_t___r0=yes |
4f6d8cc8 GK |
15433 | else |
15434 | echo "$as_me: failed program was:" >&5 | |
15435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15436 | ||
1cf3d07d | 15437 | ac_cv_member_ppc_thread_state_t___r0=no |
4f6d8cc8 GK |
15438 | fi |
15439 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15440 | fi | |
15441 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15442 | fi | |
1cf3d07d SE |
15443 | echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t___r0" >&5 |
15444 | echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t___r0" >&6 | |
15445 | if test $ac_cv_member_ppc_thread_state_t___r0 = yes; then | |
4f6d8cc8 GK |
15446 | |
15447 | cat >>confdefs.h <<\_ACEOF | |
1cf3d07d | 15448 | #define HAS_PPC_THREAD_STATE___R0 1 |
4f6d8cc8 GK |
15449 | _ACEOF |
15450 | ||
15451 | fi | |
15452 | ||
1cf3d07d SE |
15453 | echo "$as_me:$LINENO: checking for ppc_thread_state64_t.r0" >&5 |
15454 | echo $ECHO_N "checking for ppc_thread_state64_t.r0... $ECHO_C" >&6 | |
15455 | if test "${ac_cv_member_ppc_thread_state64_t_r0+set}" = set; then | |
583cb3d3 AT |
15456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15457 | else | |
15458 | cat >conftest.$ac_ext <<_ACEOF | |
15459 | /* confdefs.h. */ | |
15460 | _ACEOF | |
15461 | cat confdefs.h >>conftest.$ac_ext | |
15462 | cat >>conftest.$ac_ext <<_ACEOF | |
15463 | /* end confdefs.h. */ | |
1cf3d07d | 15464 | #include <mach/thread_status.h> |
583cb3d3 AT |
15465 | |
15466 | int | |
15467 | main () | |
15468 | { | |
1cf3d07d SE |
15469 | static ppc_thread_state64_t ac_aggr; |
15470 | if (ac_aggr.r0) | |
583cb3d3 AT |
15471 | return 0; |
15472 | ; | |
15473 | return 0; | |
15474 | } | |
15475 | _ACEOF | |
15476 | rm -f conftest.$ac_objext | |
15477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15478 | (eval $ac_compile) 2>conftest.er1 | |
15479 | ac_status=$? | |
15480 | grep -v '^ *+' conftest.er1 >conftest.err | |
15481 | rm -f conftest.er1 | |
15482 | cat conftest.err >&5 | |
15483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15484 | (exit $ac_status); } && | |
15485 | { ac_try='test -z "$ac_c_werror_flag" | |
15486 | || test ! -s conftest.err' | |
15487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15488 | (eval $ac_try) 2>&5 | |
15489 | ac_status=$? | |
15490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15491 | (exit $ac_status); }; } && | |
15492 | { ac_try='test -s conftest.$ac_objext' | |
15493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15494 | (eval $ac_try) 2>&5 | |
15495 | ac_status=$? | |
15496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15497 | (exit $ac_status); }; }; then | |
1cf3d07d | 15498 | ac_cv_member_ppc_thread_state64_t_r0=yes |
583cb3d3 AT |
15499 | else |
15500 | echo "$as_me: failed program was:" >&5 | |
15501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15502 | ||
15503 | cat >conftest.$ac_ext <<_ACEOF | |
15504 | /* confdefs.h. */ | |
15505 | _ACEOF | |
15506 | cat confdefs.h >>conftest.$ac_ext | |
15507 | cat >>conftest.$ac_ext <<_ACEOF | |
15508 | /* end confdefs.h. */ | |
1cf3d07d | 15509 | #include <mach/thread_status.h> |
583cb3d3 AT |
15510 | |
15511 | int | |
15512 | main () | |
15513 | { | |
1cf3d07d SE |
15514 | static ppc_thread_state64_t ac_aggr; |
15515 | if (sizeof ac_aggr.r0) | |
583cb3d3 AT |
15516 | return 0; |
15517 | ; | |
15518 | return 0; | |
15519 | } | |
15520 | _ACEOF | |
15521 | rm -f conftest.$ac_objext | |
15522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15523 | (eval $ac_compile) 2>conftest.er1 | |
15524 | ac_status=$? | |
15525 | grep -v '^ *+' conftest.er1 >conftest.err | |
15526 | rm -f conftest.er1 | |
15527 | cat conftest.err >&5 | |
15528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15529 | (exit $ac_status); } && | |
15530 | { ac_try='test -z "$ac_c_werror_flag" | |
15531 | || test ! -s conftest.err' | |
15532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15533 | (eval $ac_try) 2>&5 | |
15534 | ac_status=$? | |
15535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15536 | (exit $ac_status); }; } && | |
15537 | { ac_try='test -s conftest.$ac_objext' | |
15538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15539 | (eval $ac_try) 2>&5 | |
15540 | ac_status=$? | |
15541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15542 | (exit $ac_status); }; }; then | |
1cf3d07d | 15543 | ac_cv_member_ppc_thread_state64_t_r0=yes |
583cb3d3 AT |
15544 | else |
15545 | echo "$as_me: failed program was:" >&5 | |
15546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15547 | ||
1cf3d07d | 15548 | ac_cv_member_ppc_thread_state64_t_r0=no |
583cb3d3 AT |
15549 | fi |
15550 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15551 | fi | |
15552 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15553 | fi | |
1cf3d07d SE |
15554 | echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t_r0" >&5 |
15555 | echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t_r0" >&6 | |
15556 | if test $ac_cv_member_ppc_thread_state64_t_r0 = yes; then | |
583cb3d3 AT |
15557 | |
15558 | cat >>confdefs.h <<\_ACEOF | |
1cf3d07d | 15559 | #define HAS_PPC_THREAD_STATE64_R0 1 |
583cb3d3 AT |
15560 | _ACEOF |
15561 | ||
15562 | fi | |
15563 | ||
1cf3d07d SE |
15564 | echo "$as_me:$LINENO: checking for ppc_thread_state64_t.__r0" >&5 |
15565 | echo $ECHO_N "checking for ppc_thread_state64_t.__r0... $ECHO_C" >&6 | |
15566 | if test "${ac_cv_member_ppc_thread_state64_t___r0+set}" = set; then | |
583cb3d3 AT |
15567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15568 | else | |
15569 | cat >conftest.$ac_ext <<_ACEOF | |
15570 | /* confdefs.h. */ | |
15571 | _ACEOF | |
15572 | cat confdefs.h >>conftest.$ac_ext | |
15573 | cat >>conftest.$ac_ext <<_ACEOF | |
15574 | /* end confdefs.h. */ | |
1cf3d07d | 15575 | #include <mach/thread_status.h> |
583cb3d3 AT |
15576 | |
15577 | int | |
15578 | main () | |
15579 | { | |
1cf3d07d SE |
15580 | static ppc_thread_state64_t ac_aggr; |
15581 | if (ac_aggr.__r0) | |
583cb3d3 AT |
15582 | return 0; |
15583 | ; | |
15584 | return 0; | |
15585 | } | |
15586 | _ACEOF | |
15587 | rm -f conftest.$ac_objext | |
15588 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15589 | (eval $ac_compile) 2>conftest.er1 | |
15590 | ac_status=$? | |
15591 | grep -v '^ *+' conftest.er1 >conftest.err | |
15592 | rm -f conftest.er1 | |
15593 | cat conftest.err >&5 | |
15594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15595 | (exit $ac_status); } && | |
15596 | { ac_try='test -z "$ac_c_werror_flag" | |
15597 | || test ! -s conftest.err' | |
15598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15599 | (eval $ac_try) 2>&5 | |
15600 | ac_status=$? | |
15601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15602 | (exit $ac_status); }; } && | |
15603 | { ac_try='test -s conftest.$ac_objext' | |
15604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15605 | (eval $ac_try) 2>&5 | |
15606 | ac_status=$? | |
15607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15608 | (exit $ac_status); }; }; then | |
1cf3d07d | 15609 | ac_cv_member_ppc_thread_state64_t___r0=yes |
583cb3d3 AT |
15610 | else |
15611 | echo "$as_me: failed program was:" >&5 | |
15612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15613 | ||
15614 | cat >conftest.$ac_ext <<_ACEOF | |
15615 | /* confdefs.h. */ | |
15616 | _ACEOF | |
15617 | cat confdefs.h >>conftest.$ac_ext | |
15618 | cat >>conftest.$ac_ext <<_ACEOF | |
15619 | /* end confdefs.h. */ | |
1cf3d07d | 15620 | #include <mach/thread_status.h> |
583cb3d3 AT |
15621 | |
15622 | int | |
15623 | main () | |
15624 | { | |
1cf3d07d SE |
15625 | static ppc_thread_state64_t ac_aggr; |
15626 | if (sizeof ac_aggr.__r0) | |
583cb3d3 AT |
15627 | return 0; |
15628 | ; | |
15629 | return 0; | |
15630 | } | |
15631 | _ACEOF | |
15632 | rm -f conftest.$ac_objext | |
15633 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15634 | (eval $ac_compile) 2>conftest.er1 | |
15635 | ac_status=$? | |
15636 | grep -v '^ *+' conftest.er1 >conftest.err | |
15637 | rm -f conftest.er1 | |
15638 | cat conftest.err >&5 | |
15639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15640 | (exit $ac_status); } && | |
15641 | { ac_try='test -z "$ac_c_werror_flag" | |
15642 | || test ! -s conftest.err' | |
15643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15644 | (eval $ac_try) 2>&5 | |
15645 | ac_status=$? | |
15646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15647 | (exit $ac_status); }; } && | |
15648 | { ac_try='test -s conftest.$ac_objext' | |
15649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15650 | (eval $ac_try) 2>&5 | |
15651 | ac_status=$? | |
15652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15653 | (exit $ac_status); }; }; then | |
1cf3d07d | 15654 | ac_cv_member_ppc_thread_state64_t___r0=yes |
583cb3d3 AT |
15655 | else |
15656 | echo "$as_me: failed program was:" >&5 | |
15657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15658 | ||
1cf3d07d | 15659 | ac_cv_member_ppc_thread_state64_t___r0=no |
583cb3d3 AT |
15660 | fi |
15661 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15662 | fi | |
15663 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15664 | fi | |
1cf3d07d SE |
15665 | echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t___r0" >&5 |
15666 | echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t___r0" >&6 | |
15667 | if test $ac_cv_member_ppc_thread_state64_t___r0 = yes; then | |
583cb3d3 AT |
15668 | |
15669 | cat >>confdefs.h <<\_ACEOF | |
1cf3d07d | 15670 | #define HAS_PPC_THREAD_STATE64___R0 1 |
583cb3d3 AT |
15671 | _ACEOF |
15672 | ||
15673 | fi | |
15674 | ||
1cf3d07d SE |
15675 | ;; |
15676 | i?86*-*-darwin*) | |
15677 | echo "$as_me:$LINENO: checking for x86_thread_state32_t.eax" >&5 | |
15678 | echo $ECHO_N "checking for x86_thread_state32_t.eax... $ECHO_C" >&6 | |
15679 | if test "${ac_cv_member_x86_thread_state32_t_eax+set}" = set; then | |
47935194 NN |
15680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15681 | else | |
1cf3d07d | 15682 | cat >conftest.$ac_ext <<_ACEOF |
47935194 NN |
15683 | /* confdefs.h. */ |
15684 | _ACEOF | |
15685 | cat confdefs.h >>conftest.$ac_ext | |
15686 | cat >>conftest.$ac_ext <<_ACEOF | |
15687 | /* end confdefs.h. */ | |
1cf3d07d SE |
15688 | #include <sys/cdefs.h> |
15689 | #include <mach/thread_status.h> | |
47935194 | 15690 | |
47935194 NN |
15691 | int |
15692 | main () | |
15693 | { | |
1cf3d07d SE |
15694 | static x86_thread_state32_t ac_aggr; |
15695 | if (ac_aggr.eax) | |
15696 | return 0; | |
47935194 NN |
15697 | ; |
15698 | return 0; | |
15699 | } | |
1cf3d07d SE |
15700 | _ACEOF |
15701 | rm -f conftest.$ac_objext | |
15702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15703 | (eval $ac_compile) 2>conftest.er1 | |
15704 | ac_status=$? | |
15705 | grep -v '^ *+' conftest.er1 >conftest.err | |
15706 | rm -f conftest.er1 | |
15707 | cat conftest.err >&5 | |
15708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15709 | (exit $ac_status); } && | |
15710 | { ac_try='test -z "$ac_c_werror_flag" | |
15711 | || test ! -s conftest.err' | |
15712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15713 | (eval $ac_try) 2>&5 | |
15714 | ac_status=$? | |
15715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15716 | (exit $ac_status); }; } && | |
15717 | { ac_try='test -s conftest.$ac_objext' | |
15718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15719 | (eval $ac_try) 2>&5 | |
15720 | ac_status=$? | |
15721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15722 | (exit $ac_status); }; }; then | |
15723 | ac_cv_member_x86_thread_state32_t_eax=yes | |
7ddf92a8 | 15724 | else |
1cf3d07d SE |
15725 | echo "$as_me: failed program was:" >&5 |
15726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15727 | ||
7ddf92a8 BM |
15728 | cat >conftest.$ac_ext <<_ACEOF |
15729 | /* confdefs.h. */ | |
15730 | _ACEOF | |
15731 | cat confdefs.h >>conftest.$ac_ext | |
15732 | cat >>conftest.$ac_ext <<_ACEOF | |
15733 | /* end confdefs.h. */ | |
1cf3d07d SE |
15734 | #include <sys/cdefs.h> |
15735 | #include <mach/thread_status.h> | |
7ddf92a8 BM |
15736 | |
15737 | int | |
15738 | main () | |
15739 | { | |
1cf3d07d SE |
15740 | static x86_thread_state32_t ac_aggr; |
15741 | if (sizeof ac_aggr.eax) | |
15742 | return 0; | |
7ddf92a8 BM |
15743 | ; |
15744 | return 0; | |
15745 | } | |
15746 | _ACEOF | |
1cf3d07d SE |
15747 | rm -f conftest.$ac_objext |
15748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15749 | (eval $ac_compile) 2>conftest.er1 | |
7ddf92a8 BM |
15750 | ac_status=$? |
15751 | grep -v '^ *+' conftest.er1 >conftest.err | |
15752 | rm -f conftest.er1 | |
15753 | cat conftest.err >&5 | |
15754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15755 | (exit $ac_status); } && | |
15756 | { ac_try='test -z "$ac_c_werror_flag" | |
15757 | || test ! -s conftest.err' | |
15758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15759 | (eval $ac_try) 2>&5 | |
15760 | ac_status=$? | |
15761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15762 | (exit $ac_status); }; } && | |
1cf3d07d | 15763 | { ac_try='test -s conftest.$ac_objext' |
7ddf92a8 BM |
15764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15765 | (eval $ac_try) 2>&5 | |
15766 | ac_status=$? | |
15767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15768 | (exit $ac_status); }; }; then | |
1cf3d07d | 15769 | ac_cv_member_x86_thread_state32_t_eax=yes |
7ddf92a8 BM |
15770 | else |
15771 | echo "$as_me: failed program was:" >&5 | |
15772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15773 | ||
1cf3d07d | 15774 | ac_cv_member_x86_thread_state32_t_eax=no |
7ddf92a8 | 15775 | fi |
1cf3d07d | 15776 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ddf92a8 | 15777 | fi |
1cf3d07d | 15778 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ddf92a8 | 15779 | fi |
1cf3d07d SE |
15780 | echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t_eax" >&5 |
15781 | echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t_eax" >&6 | |
15782 | if test $ac_cv_member_x86_thread_state32_t_eax = yes; then | |
5572488d KC |
15783 | |
15784 | cat >>confdefs.h <<\_ACEOF | |
1cf3d07d | 15785 | #define HAS_X86_THREAD_STATE32_EAX 1 |
47935194 | 15786 | _ACEOF |
b27317b5 | 15787 | |
1530be84 | 15788 | fi |
1530be84 | 15789 | |
1cf3d07d SE |
15790 | echo "$as_me:$LINENO: checking for x86_thread_state32_t.__eax" >&5 |
15791 | echo $ECHO_N "checking for x86_thread_state32_t.__eax... $ECHO_C" >&6 | |
15792 | if test "${ac_cv_member_x86_thread_state32_t___eax+set}" = set; then | |
47935194 | 15793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
30c3de1f | 15794 | else |
47935194 NN |
15795 | cat >conftest.$ac_ext <<_ACEOF |
15796 | /* confdefs.h. */ | |
15797 | _ACEOF | |
15798 | cat confdefs.h >>conftest.$ac_ext | |
15799 | cat >>conftest.$ac_ext <<_ACEOF | |
15800 | /* end confdefs.h. */ | |
1cf3d07d SE |
15801 | #include <sys/cdefs.h> |
15802 | #include <mach/thread_status.h> | |
15803 | ||
15804 | int | |
15805 | main () | |
15806 | { | |
15807 | static x86_thread_state32_t ac_aggr; | |
15808 | if (ac_aggr.__eax) | |
15809 | return 0; | |
15810 | ; | |
15811 | return 0; | |
15812 | } | |
47935194 | 15813 | _ACEOF |
1cf3d07d SE |
15814 | rm -f conftest.$ac_objext |
15815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15816 | (eval $ac_compile) 2>conftest.er1 | |
15817 | ac_status=$? | |
15818 | grep -v '^ *+' conftest.er1 >conftest.err | |
15819 | rm -f conftest.er1 | |
15820 | cat conftest.err >&5 | |
15821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15822 | (exit $ac_status); } && | |
15823 | { ac_try='test -z "$ac_c_werror_flag" | |
15824 | || test ! -s conftest.err' | |
15825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15826 | (eval $ac_try) 2>&5 | |
15827 | ac_status=$? | |
15828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15829 | (exit $ac_status); }; } && | |
15830 | { ac_try='test -s conftest.$ac_objext' | |
15831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15832 | (eval $ac_try) 2>&5 | |
47935194 | 15833 | ac_status=$? |
47935194 | 15834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
1cf3d07d SE |
15835 | (exit $ac_status); }; }; then |
15836 | ac_cv_member_x86_thread_state32_t___eax=yes | |
30c3de1f | 15837 | else |
47935194 NN |
15838 | echo "$as_me: failed program was:" >&5 |
15839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15840 | ||
1cf3d07d | 15841 | cat >conftest.$ac_ext <<_ACEOF |
47935194 NN |
15842 | /* confdefs.h. */ |
15843 | _ACEOF | |
15844 | cat confdefs.h >>conftest.$ac_ext | |
15845 | cat >>conftest.$ac_ext <<_ACEOF | |
15846 | /* end confdefs.h. */ | |
1cf3d07d SE |
15847 | #include <sys/cdefs.h> |
15848 | #include <mach/thread_status.h> | |
15849 | ||
15850 | int | |
15851 | main () | |
15852 | { | |
15853 | static x86_thread_state32_t ac_aggr; | |
15854 | if (sizeof ac_aggr.__eax) | |
15855 | return 0; | |
15856 | ; | |
15857 | return 0; | |
15858 | } | |
47935194 | 15859 | _ACEOF |
1cf3d07d SE |
15860 | rm -f conftest.$ac_objext |
15861 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15862 | (eval $ac_compile) 2>conftest.er1 | |
47935194 NN |
15863 | ac_status=$? |
15864 | grep -v '^ *+' conftest.er1 >conftest.err | |
15865 | rm -f conftest.er1 | |
15866 | cat conftest.err >&5 | |
15867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1cf3d07d SE |
15868 | (exit $ac_status); } && |
15869 | { ac_try='test -z "$ac_c_werror_flag" | |
15870 | || test ! -s conftest.err' | |
15871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15872 | (eval $ac_try) 2>&5 | |
15873 | ac_status=$? | |
15874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15875 | (exit $ac_status); }; } && | |
15876 | { ac_try='test -s conftest.$ac_objext' | |
15877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15878 | (eval $ac_try) 2>&5 | |
15879 | ac_status=$? | |
15880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15881 | (exit $ac_status); }; }; then | |
15882 | ac_cv_member_x86_thread_state32_t___eax=yes | |
47935194 NN |
15883 | else |
15884 | echo "$as_me: failed program was:" >&5 | |
15885 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15886 | ||
1cf3d07d | 15887 | ac_cv_member_x86_thread_state32_t___eax=no |
30c3de1f | 15888 | fi |
1cf3d07d | 15889 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
47935194 | 15890 | fi |
1cf3d07d SE |
15891 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15892 | fi | |
15893 | echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t___eax" >&5 | |
15894 | echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t___eax" >&6 | |
15895 | if test $ac_cv_member_x86_thread_state32_t___eax = yes; then | |
47935194 | 15896 | |
1cf3d07d SE |
15897 | cat >>confdefs.h <<\_ACEOF |
15898 | #define HAS_X86_THREAD_STATE32___EAX 1 | |
15899 | _ACEOF | |
47935194 NN |
15900 | |
15901 | fi | |
1cf3d07d SE |
15902 | |
15903 | ;; | |
15904 | x86_64-*-darwin*) | |
15905 | echo "$as_me:$LINENO: checking for x86_thread_state64_t.rax" >&5 | |
15906 | echo $ECHO_N "checking for x86_thread_state64_t.rax... $ECHO_C" >&6 | |
15907 | if test "${ac_cv_member_x86_thread_state64_t_rax+set}" = set; then | |
15908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
47935194 | 15909 | else |
47935194 NN |
15910 | cat >conftest.$ac_ext <<_ACEOF |
15911 | /* confdefs.h. */ | |
15912 | _ACEOF | |
15913 | cat confdefs.h >>conftest.$ac_ext | |
15914 | cat >>conftest.$ac_ext <<_ACEOF | |
15915 | /* end confdefs.h. */ | |
1cf3d07d SE |
15916 | #include <sys/cdefs.h> |
15917 | #include <mach/thread_status.h> | |
15918 | ||
15919 | int | |
15920 | main () | |
15921 | { | |
15922 | static x86_thread_state64_t ac_aggr; | |
15923 | if (ac_aggr.rax) | |
15924 | return 0; | |
15925 | ; | |
15926 | return 0; | |
15927 | } | |
47935194 | 15928 | _ACEOF |
1cf3d07d SE |
15929 | rm -f conftest.$ac_objext |
15930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15931 | (eval $ac_compile) 2>conftest.er1 | |
47935194 NN |
15932 | ac_status=$? |
15933 | grep -v '^ *+' conftest.er1 >conftest.err | |
15934 | rm -f conftest.er1 | |
15935 | cat conftest.err >&5 | |
15936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1cf3d07d SE |
15937 | (exit $ac_status); } && |
15938 | { ac_try='test -z "$ac_c_werror_flag" | |
15939 | || test ! -s conftest.err' | |
15940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15941 | (eval $ac_try) 2>&5 | |
15942 | ac_status=$? | |
15943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15944 | (exit $ac_status); }; } && | |
15945 | { ac_try='test -s conftest.$ac_objext' | |
15946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15947 | (eval $ac_try) 2>&5 | |
15948 | ac_status=$? | |
15949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15950 | (exit $ac_status); }; }; then | |
15951 | ac_cv_member_x86_thread_state64_t_rax=yes | |
47935194 NN |
15952 | else |
15953 | echo "$as_me: failed program was:" >&5 | |
15954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15955 | ||
1cf3d07d | 15956 | cat >conftest.$ac_ext <<_ACEOF |
47935194 NN |
15957 | /* confdefs.h. */ |
15958 | _ACEOF | |
15959 | cat confdefs.h >>conftest.$ac_ext | |
15960 | cat >>conftest.$ac_ext <<_ACEOF | |
15961 | /* end confdefs.h. */ | |
1cf3d07d SE |
15962 | #include <sys/cdefs.h> |
15963 | #include <mach/thread_status.h> | |
15964 | ||
15965 | int | |
15966 | main () | |
15967 | { | |
15968 | static x86_thread_state64_t ac_aggr; | |
15969 | if (sizeof ac_aggr.rax) | |
15970 | return 0; | |
15971 | ; | |
15972 | return 0; | |
15973 | } | |
47935194 | 15974 | _ACEOF |
1cf3d07d SE |
15975 | rm -f conftest.$ac_objext |
15976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15977 | (eval $ac_compile) 2>conftest.er1 | |
47935194 NN |
15978 | ac_status=$? |
15979 | grep -v '^ *+' conftest.er1 >conftest.err | |
15980 | rm -f conftest.er1 | |
15981 | cat conftest.err >&5 | |
15982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1cf3d07d SE |
15983 | (exit $ac_status); } && |
15984 | { ac_try='test -z "$ac_c_werror_flag" | |
15985 | || test ! -s conftest.err' | |
15986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15987 | (eval $ac_try) 2>&5 | |
15988 | ac_status=$? | |
15989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15990 | (exit $ac_status); }; } && | |
15991 | { ac_try='test -s conftest.$ac_objext' | |
15992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15993 | (eval $ac_try) 2>&5 | |
15994 | ac_status=$? | |
15995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15996 | (exit $ac_status); }; }; then | |
15997 | ac_cv_member_x86_thread_state64_t_rax=yes | |
47935194 NN |
15998 | else |
15999 | echo "$as_me: failed program was:" >&5 | |
16000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16001 | ||
1cf3d07d | 16002 | ac_cv_member_x86_thread_state64_t_rax=no |
47935194 | 16003 | fi |
1cf3d07d | 16004 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
47935194 | 16005 | fi |
1cf3d07d SE |
16006 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
16007 | fi | |
16008 | echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t_rax" >&5 | |
16009 | echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t_rax" >&6 | |
16010 | if test $ac_cv_member_x86_thread_state64_t_rax = yes; then | |
47935194 | 16011 | |
1cf3d07d SE |
16012 | cat >>confdefs.h <<\_ACEOF |
16013 | #define HAS_X86_THREAD_STATE64_RAX 1 | |
16014 | _ACEOF | |
47935194 | 16015 | |
1cf3d07d SE |
16016 | fi |
16017 | ||
16018 | echo "$as_me:$LINENO: checking for x86_thread_state64_t.__rax" >&5 | |
16019 | echo $ECHO_N "checking for x86_thread_state64_t.__rax... $ECHO_C" >&6 | |
16020 | if test "${ac_cv_member_x86_thread_state64_t___rax+set}" = set; then | |
47935194 NN |
16021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16022 | else | |
16023 | cat >conftest.$ac_ext <<_ACEOF | |
16024 | /* confdefs.h. */ | |
16025 | _ACEOF | |
16026 | cat confdefs.h >>conftest.$ac_ext | |
16027 | cat >>conftest.$ac_ext <<_ACEOF | |
16028 | /* end confdefs.h. */ | |
1cf3d07d SE |
16029 | #include <sys/cdefs.h> |
16030 | #include <mach/thread_status.h> | |
47935194 NN |
16031 | |
16032 | int | |
16033 | main () | |
16034 | { | |
1cf3d07d SE |
16035 | static x86_thread_state64_t ac_aggr; |
16036 | if (ac_aggr.__rax) | |
16037 | return 0; | |
47935194 NN |
16038 | ; |
16039 | return 0; | |
16040 | } | |
16041 | _ACEOF | |
16042 | rm -f conftest.$ac_objext | |
16043 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8ab705be | 16044 | (eval $ac_compile) 2>conftest.er1 |
47935194 | 16045 | ac_status=$? |
8ab705be KC |
16046 | grep -v '^ *+' conftest.er1 >conftest.err |
16047 | rm -f conftest.er1 | |
16048 | cat conftest.err >&5 | |
47935194 NN |
16049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16050 | (exit $ac_status); } && | |
5572488d KC |
16051 | { ac_try='test -z "$ac_c_werror_flag" |
16052 | || test ! -s conftest.err' | |
8ab705be KC |
16053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16054 | (eval $ac_try) 2>&5 | |
16055 | ac_status=$? | |
16056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16057 | (exit $ac_status); }; } && | |
16058 | { ac_try='test -s conftest.$ac_objext' | |
47935194 NN |
16059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16060 | (eval $ac_try) 2>&5 | |
16061 | ac_status=$? | |
16062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16063 | (exit $ac_status); }; }; then | |
1cf3d07d | 16064 | ac_cv_member_x86_thread_state64_t___rax=yes |
47935194 NN |
16065 | else |
16066 | echo "$as_me: failed program was:" >&5 | |
16067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16068 | ||
1cf3d07d | 16069 | cat >conftest.$ac_ext <<_ACEOF |
47935194 NN |
16070 | /* confdefs.h. */ |
16071 | _ACEOF | |
16072 | cat confdefs.h >>conftest.$ac_ext | |
16073 | cat >>conftest.$ac_ext <<_ACEOF | |
16074 | /* end confdefs.h. */ | |
1cf3d07d SE |
16075 | #include <sys/cdefs.h> |
16076 | #include <mach/thread_status.h> | |
47935194 | 16077 | |
1cf3d07d SE |
16078 | int |
16079 | main () | |
16080 | { | |
16081 | static x86_thread_state64_t ac_aggr; | |
16082 | if (sizeof ac_aggr.__rax) | |
16083 | return 0; | |
16084 | ; | |
16085 | return 0; | |
16086 | } | |
47935194 | 16087 | _ACEOF |
1cf3d07d SE |
16088 | rm -f conftest.$ac_objext |
16089 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16090 | (eval $ac_compile) 2>conftest.er1 | |
16091 | ac_status=$? | |
16092 | grep -v '^ *+' conftest.er1 >conftest.err | |
16093 | rm -f conftest.er1 | |
16094 | cat conftest.err >&5 | |
16095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16096 | (exit $ac_status); } && | |
16097 | { ac_try='test -z "$ac_c_werror_flag" | |
16098 | || test ! -s conftest.err' | |
16099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16100 | (eval $ac_try) 2>&5 | |
16101 | ac_status=$? | |
16102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16103 | (exit $ac_status); }; } && | |
16104 | { ac_try='test -s conftest.$ac_objext' | |
16105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16106 | (eval $ac_try) 2>&5 | |
16107 | ac_status=$? | |
16108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16109 | (exit $ac_status); }; }; then | |
16110 | ac_cv_member_x86_thread_state64_t___rax=yes | |
47935194 | 16111 | else |
1cf3d07d SE |
16112 | echo "$as_me: failed program was:" >&5 |
16113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
47935194 | 16114 | |
1cf3d07d SE |
16115 | ac_cv_member_x86_thread_state64_t___rax=no |
16116 | fi | |
16117 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16118 | fi | |
16119 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
47935194 | 16120 | fi |
1cf3d07d SE |
16121 | echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t___rax" >&5 |
16122 | echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t___rax" >&6 | |
16123 | if test $ac_cv_member_x86_thread_state64_t___rax = yes; then | |
47935194 | 16124 | |
1cf3d07d SE |
16125 | cat >>confdefs.h <<\_ACEOF |
16126 | #define HAS_X86_THREAD_STATE64___RAX 1 | |
47935194 | 16127 | _ACEOF |
47935194 | 16128 | |
47935194 | 16129 | fi |
47935194 | 16130 | |
1cf3d07d SE |
16131 | ;; |
16132 | *) ;; | |
16133 | esac | |
47935194 | 16134 | |
1cf3d07d SE |
16135 | # We never want libdl on darwin. It is a fake libdl that just ends up making |
16136 | # dyld calls anyway | |
16137 | case "$host" in | |
16138 | *-*-darwin*) ;; | |
16139 | *) | |
16140 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
16141 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
16142 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
16143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
47935194 | 16144 | else |
1cf3d07d SE |
16145 | ac_check_lib_save_LIBS=$LIBS |
16146 | LIBS="-ldl $LIBS" | |
16147 | if test x$gcc_no_link = xyes; then | |
16148 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16149 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16150 | { (exit 1); exit 1; }; } | |
16151 | fi | |
16152 | cat >conftest.$ac_ext <<_ACEOF | |
47935194 NN |
16153 | /* confdefs.h. */ |
16154 | _ACEOF | |
16155 | cat confdefs.h >>conftest.$ac_ext | |
16156 | cat >>conftest.$ac_ext <<_ACEOF | |
16157 | /* end confdefs.h. */ | |
47935194 | 16158 | |
1cf3d07d SE |
16159 | /* Override any gcc2 internal prototype to avoid an error. */ |
16160 | #ifdef __cplusplus | |
16161 | extern "C" | |
16162 | #endif | |
16163 | /* We use char because int might match the return type of a gcc2 | |
16164 | builtin and then its argument prototype would still apply. */ | |
16165 | char dlopen (); | |
47935194 NN |
16166 | int |
16167 | main () | |
16168 | { | |
1cf3d07d SE |
16169 | dlopen (); |
16170 | ; | |
16171 | return 0; | |
47935194 NN |
16172 | } |
16173 | _ACEOF | |
1cf3d07d | 16174 | rm -f conftest.$ac_objext conftest$ac_exeext |
47935194 | 16175 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
1cf3d07d SE |
16176 | (eval $ac_link) 2>conftest.er1 |
16177 | ac_status=$? | |
16178 | grep -v '^ *+' conftest.er1 >conftest.err | |
16179 | rm -f conftest.er1 | |
16180 | cat conftest.err >&5 | |
16181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16182 | (exit $ac_status); } && | |
16183 | { ac_try='test -z "$ac_c_werror_flag" | |
16184 | || test ! -s conftest.err' | |
16185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16186 | (eval $ac_try) 2>&5 | |
47935194 NN |
16187 | ac_status=$? |
16188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1cf3d07d SE |
16189 | (exit $ac_status); }; } && |
16190 | { ac_try='test -s conftest$ac_exeext' | |
47935194 NN |
16191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16192 | (eval $ac_try) 2>&5 | |
16193 | ac_status=$? | |
16194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16195 | (exit $ac_status); }; }; then | |
1cf3d07d | 16196 | ac_cv_lib_dl_dlopen=yes |
30c3de1f | 16197 | else |
1cf3d07d | 16198 | echo "$as_me: failed program was:" >&5 |
47935194 NN |
16199 | sed 's/^/| /' conftest.$ac_ext >&5 |
16200 | ||
1cf3d07d | 16201 | ac_cv_lib_dl_dlopen=no |
47935194 | 16202 | fi |
1cf3d07d SE |
16203 | rm -f conftest.err conftest.$ac_objext \ |
16204 | conftest$ac_exeext conftest.$ac_ext | |
16205 | LIBS=$ac_check_lib_save_LIBS | |
16206 | fi | |
16207 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
16208 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
16209 | if test $ac_cv_lib_dl_dlopen = yes; then | |
16210 | EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl" | |
47935194 | 16211 | fi |
1cf3d07d SE |
16212 | |
16213 | ;; | |
16214 | esac | |
16215 | ||
16216 | # extra LD Flags which are required for targets | |
16217 | case "${host}" in | |
16218 | *-*-darwin*) | |
16219 | extra_ldflags_libgc=-Wl,-single_module | |
16220 | ;; | |
16221 | esac | |
16222 | ||
16223 | ||
16224 | ||
16225 | ||
16226 | target_all=libgcjgc.la | |
16227 | ||
16228 | ||
16229 | TARGET_ECOS="no" | |
16230 | ||
16231 | # Check whether --with-ecos or --without-ecos was given. | |
16232 | if test "${with_ecos+set}" = set; then | |
16233 | withval="$with_ecos" | |
16234 | TARGET_ECOS="$with_ecos" | |
16235 | ||
16236 | fi; | |
16237 | ||
16238 | addobjs= | |
16239 | addlibs= | |
16240 | addincludes= | |
16241 | addtests= | |
16242 | case "$TARGET_ECOS" in | |
16243 | no) | |
16244 | ;; | |
16245 | *) | |
16246 | ||
16247 | cat >>confdefs.h <<\_ACEOF | |
16248 | #define ECOS 1 | |
16249 | _ACEOF | |
16250 | ||
16251 | AM_CPPFLAGS="${AM_CPPFLAGS} -I${TARGET_ECOS}/include" | |
16252 | addobjs="$addobjs ecos.lo" | |
16253 | ;; | |
16254 | esac | |
16255 | ||
16256 | if test "${enable_cplusplus}" = yes; then | |
16257 | addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h" | |
16258 | addtests="$addtests test_cpp" | |
30c3de1f | 16259 | fi |
1cf3d07d SE |
16260 | |
16261 | ||
16262 | ||
16263 | if test "${enable_cplusplus}" = yes; then | |
16264 | CPLUSPLUS_TRUE= | |
16265 | CPLUSPLUS_FALSE='#' | |
16266 | else | |
16267 | CPLUSPLUS_TRUE='#' | |
16268 | CPLUSPLUS_FALSE= | |
47935194 | 16269 | fi |
47935194 | 16270 | |
47935194 | 16271 | |
47935194 | 16272 | |
47935194 NN |
16273 | |
16274 | ||
16275 | ||
1cf3d07d SE |
16276 | # Configuration of shared libraries |
16277 | # | |
16278 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
16279 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
16280 | # Check whether --enable-shared or --disable-shared was given. | |
16281 | if test "${enable_shared+set}" = set; then | |
16282 | enableval="$enable_shared" | |
16283 | p=${PACKAGE-default} | |
16284 | case $enableval in | |
16285 | yes) enable_shared=yes ;; | |
16286 | no) enable_shared=no ;; | |
16287 | *) | |
16288 | enable_shared=no | |
16289 | # Look at the argument we got. We use all the common list separators. | |
16290 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
16291 | for pkg in $enableval; do | |
16292 | IFS="$lt_save_ifs" | |
16293 | if test "X$pkg" = "X$p"; then | |
16294 | enable_shared=yes | |
16295 | fi | |
16296 | done | |
16297 | IFS="$lt_save_ifs" | |
16298 | ;; | |
16299 | esac | |
16300 | else | |
16301 | enable_shared=yes | |
16302 | fi; | |
16303 | ||
16304 | ||
47935194 NN |
16305 | |
16306 | ||
16307 | ||
16308 | ||
1cf3d07d SE |
16309 | case "$host" in |
16310 | alpha-*-openbsd*) | |
16311 | enable_shared=no | |
16312 | echo "$as_me:$LINENO: result: no" >&5 | |
16313 | echo "${ECHO_T}no" >&6 | |
16314 | ;; | |
16315 | *) | |
16316 | echo "$as_me:$LINENO: result: yes" >&5 | |
16317 | echo "${ECHO_T}yes" >&6 | |
16318 | ;; | |
16319 | esac | |
47935194 | 16320 | |
1cf3d07d SE |
16321 | # Checks for pthreads functions |
16322 | # | |
16323 | oldLIBS="$LIBS" | |
16324 | LIBS="$LIBS $THREADLIBS" | |
47935194 | 16325 | |
1cf3d07d | 16326 | for ac_func in pthread_getattr_np |
47935194 | 16327 | do |
1cf3d07d SE |
16328 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16329 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16330 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16331 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
47935194 NN |
16332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16333 | else | |
1cf3d07d SE |
16334 | if test x$gcc_no_link = xyes; then |
16335 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16336 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16337 | { (exit 1); exit 1; }; } | |
16338 | fi | |
16339 | cat >conftest.$ac_ext <<_ACEOF | |
47935194 NN |
16340 | /* confdefs.h. */ |
16341 | _ACEOF | |
16342 | cat confdefs.h >>conftest.$ac_ext | |
16343 | cat >>conftest.$ac_ext <<_ACEOF | |
16344 | /* end confdefs.h. */ | |
1cf3d07d SE |
16345 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16346 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16347 | #define $ac_func innocuous_$ac_func | |
47935194 | 16348 | |
1cf3d07d SE |
16349 | /* System header to define __stub macros and hopefully few prototypes, |
16350 | which can conflict with char $ac_func (); below. | |
16351 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16352 | <limits.h> exists even on freestanding compilers. */ | |
16353 | ||
16354 | #ifdef __STDC__ | |
16355 | # include <limits.h> | |
16356 | #else | |
16357 | # include <assert.h> | |
16358 | #endif | |
16359 | ||
16360 | #undef $ac_func | |
16361 | ||
16362 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16363 | #ifdef __cplusplus | |
16364 | extern "C" | |
16365 | { | |
16366 | #endif | |
16367 | /* We use char because int might match the return type of a gcc2 | |
16368 | builtin and then its argument prototype would still apply. */ | |
16369 | char $ac_func (); | |
16370 | /* The GNU C library defines this for functions which it implements | |
16371 | to always fail with ENOSYS. Some functions are actually named | |
16372 | something starting with __ and the normal name is an alias. */ | |
16373 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16374 | choke me | |
16375 | #else | |
16376 | char (*f) () = $ac_func; | |
16377 | #endif | |
16378 | #ifdef __cplusplus | |
16379 | } | |
16380 | #endif | |
16381 | ||
16382 | int | |
16383 | main () | |
16384 | { | |
16385 | return f != $ac_func; | |
16386 | ; | |
16387 | return 0; | |
16388 | } | |
47935194 | 16389 | _ACEOF |
1cf3d07d SE |
16390 | rm -f conftest.$ac_objext conftest$ac_exeext |
16391 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16392 | (eval $ac_link) 2>conftest.er1 | |
47935194 | 16393 | ac_status=$? |
8ab705be KC |
16394 | grep -v '^ *+' conftest.er1 >conftest.err |
16395 | rm -f conftest.er1 | |
16396 | cat conftest.err >&5 | |
47935194 NN |
16397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16398 | (exit $ac_status); } && | |
5572488d KC |
16399 | { ac_try='test -z "$ac_c_werror_flag" |
16400 | || test ! -s conftest.err' | |
8ab705be KC |
16401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16402 | (eval $ac_try) 2>&5 | |
16403 | ac_status=$? | |
16404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16405 | (exit $ac_status); }; } && | |
1cf3d07d | 16406 | { ac_try='test -s conftest$ac_exeext' |
47935194 NN |
16407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16408 | (eval $ac_try) 2>&5 | |
16409 | ac_status=$? | |
16410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16411 | (exit $ac_status); }; }; then | |
1cf3d07d | 16412 | eval "$as_ac_var=yes" |
47935194 NN |
16413 | else |
16414 | echo "$as_me: failed program was:" >&5 | |
16415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16416 | ||
1cf3d07d | 16417 | eval "$as_ac_var=no" |
47935194 | 16418 | fi |
1cf3d07d SE |
16419 | rm -f conftest.err conftest.$ac_objext \ |
16420 | conftest$ac_exeext conftest.$ac_ext | |
47935194 | 16421 | fi |
1cf3d07d SE |
16422 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
16423 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
16424 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
47935194 | 16425 | cat >>confdefs.h <<_ACEOF |
1cf3d07d | 16426 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
47935194 NN |
16427 | _ACEOF |
16428 | ||
16429 | fi | |
47935194 NN |
16430 | done |
16431 | ||
1cf3d07d SE |
16432 | LIBS="$oldLIBS" |
16433 | ||
16434 | # Configuration of machine-dependent code | |
16435 | # | |
16436 | # Set NO_EXECUTE_PERMISSION by default because gcj already uses | |
16437 | # ffi_closure_{alloc,free} which takes care of allocating trampolines | |
16438 | # in executable memory. | |
16439 | # | |
16440 | echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5 | |
16441 | echo $ECHO_N "checking which machine-dependent code should be used... $ECHO_C" >&6 | |
16442 | machdep= | |
16443 | case "$host" in | |
16444 | alpha*-*-openbsd*) | |
16445 | machdep="alpha_mach_dep.lo" | |
16446 | if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then | |
16447 | { echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5 | |
16448 | echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;} | |
16449 | fi | |
16450 | ;; | |
16451 | alpha*-*-linux*) | |
16452 | machdep="alpha_mach_dep.lo" | |
16453 | ;; | |
16454 | i?86-*-solaris2.[89] | i?86-*-solaris2.1?) | |
16455 | ||
16456 | cat >>confdefs.h <<\_ACEOF | |
16457 | #define SOLARIS25_PROC_VDB_BUG_FIXED 1 | |
16458 | _ACEOF | |
16459 | ||
16460 | ;; | |
16461 | mipstx39-*-elf*) | |
16462 | machdep="mips_ultrix_mach_dep.lo" | |
16463 | ||
16464 | cat >>confdefs.h <<\_ACEOF | |
16465 | #define STACKBASE __stackbase | |
16466 | _ACEOF | |
16467 | ||
16468 | ||
16469 | cat >>confdefs.h <<\_ACEOF | |
16470 | #define DATASTART_IS_ETEXT 1 | |
16471 | _ACEOF | |
16472 | ||
16473 | ;; | |
16474 | mips-dec-ultrix*) | |
16475 | machdep="mips_ultrix_mach-dep.lo" | |
16476 | ;; | |
16477 | mips-nec-sysv*|mips-unknown-sysv*) | |
16478 | ;; | |
16479 | mips*-*-linux*) | |
16480 | ;; | |
16481 | mips-*-*) | |
16482 | machdep="mips_sgi_mach_dep.lo" | |
16483 | ;; | |
16484 | sparc-*-netbsd*) | |
16485 | machdep="sparc_netbsd_mach_dep.lo" | |
16486 | ;; | |
16487 | sparc-sun-solaris2.3) | |
16488 | machdep="sparc_mach_dep.lo" | |
16489 | ||
16490 | cat >>confdefs.h <<\_ACEOF | |
16491 | #define SUNOS53_SHARED_LIB 1 | |
16492 | _ACEOF | |
16493 | ||
16494 | ;; | |
16495 | sparc*-sun-solaris2.*) | |
16496 | machdep="sparc_mach_dep.lo" | |
16497 | ;; | |
16498 | ia64-*-*) | |
16499 | machdep="mach_dep.lo ia64_save_regs_in_stack.lo" | |
16500 | ;; | |
16501 | esac | |
16502 | ||
16503 | cat >>confdefs.h <<\_ACEOF | |
16504 | #define NO_EXECUTE_PERMISSION 1 | |
16505 | _ACEOF | |
16506 | ||
16507 | if test x"$machdep" = x; then | |
16508 | echo "$as_me:$LINENO: result: $machdep" >&5 | |
16509 | echo "${ECHO_T}$machdep" >&6 | |
16510 | machdep="mach_dep.lo" | |
16511 | fi | |
16512 | addobjs="$addobjs $machdep" | |
16513 | ||
16514 | ||
16515 | ||
16516 | ||
30c3de1f | 16517 | |
1cf3d07d SE |
16518 | # |
16519 | # Check for AViiON Machines running DGUX | |
16520 | # | |
16521 | echo "$as_me:$LINENO: checking if host is AViiON running DGUX" >&5 | |
16522 | echo $ECHO_N "checking if host is AViiON running DGUX... $ECHO_C" >&6 | |
16523 | ac_is_dgux=no | |
47935194 NN |
16524 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then |
16525 | echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 | |
16526 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 | |
16527 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
16528 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16529 | fi | |
16530 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 | |
16531 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 | |
30c3de1f | 16532 | else |
47935194 NN |
16533 | # Is the header compilable? |
16534 | echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5 | |
16535 | echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6 | |
16536 | cat >conftest.$ac_ext <<_ACEOF | |
16537 | /* confdefs.h. */ | |
16538 | _ACEOF | |
16539 | cat confdefs.h >>conftest.$ac_ext | |
16540 | cat >>conftest.$ac_ext <<_ACEOF | |
16541 | /* end confdefs.h. */ | |
16542 | $ac_includes_default | |
30c3de1f | 16543 | #include <sys/dg_sys_info.h> |
47935194 NN |
16544 | _ACEOF |
16545 | rm -f conftest.$ac_objext | |
16546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8ab705be | 16547 | (eval $ac_compile) 2>conftest.er1 |
47935194 | 16548 | ac_status=$? |
8ab705be KC |
16549 | grep -v '^ *+' conftest.er1 >conftest.err |
16550 | rm -f conftest.er1 | |
16551 | cat conftest.err >&5 | |
47935194 NN |
16552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16553 | (exit $ac_status); } && | |
5572488d KC |
16554 | { ac_try='test -z "$ac_c_werror_flag" |
16555 | || test ! -s conftest.err' | |
8ab705be KC |
16556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16557 | (eval $ac_try) 2>&5 | |
16558 | ac_status=$? | |
16559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16560 | (exit $ac_status); }; } && | |
16561 | { ac_try='test -s conftest.$ac_objext' | |
47935194 NN |
16562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16563 | (eval $ac_try) 2>&5 | |
16564 | ac_status=$? | |
16565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16566 | (exit $ac_status); }; }; then | |
16567 | ac_header_compiler=yes | |
30c3de1f | 16568 | else |
47935194 NN |
16569 | echo "$as_me: failed program was:" >&5 |
16570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16571 | ||
16572 | ac_header_compiler=no | |
16573 | fi | |
8ab705be | 16574 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
47935194 NN |
16575 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16576 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16577 | ||
16578 | # Is the header present? | |
16579 | echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5 | |
16580 | echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6 | |
16581 | cat >conftest.$ac_ext <<_ACEOF | |
16582 | /* confdefs.h. */ | |
16583 | _ACEOF | |
16584 | cat confdefs.h >>conftest.$ac_ext | |
16585 | cat >>conftest.$ac_ext <<_ACEOF | |
16586 | /* end confdefs.h. */ | |
16587 | #include <sys/dg_sys_info.h> | |
16588 | _ACEOF | |
16589 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16590 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16591 | ac_status=$? | |
16592 | grep -v '^ *+' conftest.er1 >conftest.err | |
16593 | rm -f conftest.er1 | |
16594 | cat conftest.err >&5 | |
16595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16596 | (exit $ac_status); } >/dev/null; then | |
16597 | if test -s conftest.err; then | |
16598 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8ab705be | 16599 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
47935194 NN |
16600 | else |
16601 | ac_cpp_err= | |
16602 | fi | |
16603 | else | |
16604 | ac_cpp_err=yes | |
30c3de1f | 16605 | fi |
47935194 NN |
16606 | if test -z "$ac_cpp_err"; then |
16607 | ac_header_preproc=yes | |
16608 | else | |
16609 | echo "$as_me: failed program was:" >&5 | |
16610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16611 | ||
16612 | ac_header_preproc=no | |
16613 | fi | |
16614 | rm -f conftest.err conftest.$ac_ext | |
16615 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16616 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16617 | ||
16618 | # So? What about this header? | |
8ab705be KC |
16619 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16620 | yes:no: ) | |
47935194 NN |
16621 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
16622 | echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8ab705be KC |
16623 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5 |
16624 | echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;} | |
16625 | ac_header_preproc=yes | |
47935194 | 16626 | ;; |
8ab705be | 16627 | no:yes:* ) |
47935194 NN |
16628 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5 |
16629 | echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;} | |
8ab705be KC |
16630 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5 |
16631 | echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;} | |
16632 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5 | |
16633 | echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;} | |
16634 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5 | |
16635 | echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
47935194 NN |
16636 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5 |
16637 | echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;} | |
8ab705be KC |
16638 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5 |
16639 | echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;} | |
47935194 NN |
16640 | ( |
16641 | cat <<\_ASBOX | |
8ab705be KC |
16642 | ## ------------------------------------------ ## |
16643 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
16644 | ## ------------------------------------------ ## | |
47935194 NN |
16645 | _ASBOX |
16646 | ) | | |
16647 | sed "s/^/$as_me: WARNING: /" >&2 | |
16648 | ;; | |
16649 | esac | |
16650 | echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 | |
16651 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 | |
16652 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
16653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16654 | else | |
16655 | ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc | |
30c3de1f | 16656 | fi |
47935194 NN |
16657 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 |
16658 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 | |
16659 | ||
16660 | fi | |
16661 | if test $ac_cv_header_sys_dg_sys_info_h = yes; then | |
30c3de1f | 16662 | ac_is_dgux=yes; |
30c3de1f JS |
16663 | fi |
16664 | ||
16665 | ||
47935194 NN |
16666 | |
16667 | echo "$as_me:$LINENO: result: $ac_is_dgux" >&5 | |
16668 | echo "${ECHO_T}$ac_is_dgux" >&6 | |
30c3de1f JS |
16669 | ## :GOTCHA: we do not check anything but sys/dg_sys_info.h |
16670 | if test $ac_is_dgux = yes; then | |
16671 | if test "$enable_full_debug" = "yes"; then | |
16672 | CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2" | |
16673 | CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2" | |
16674 | else | |
16675 | CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2" | |
16676 | CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2" | |
16677 | fi | |
47935194 NN |
16678 | |
16679 | ||
30c3de1f JS |
16680 | fi |
16681 | ||
47935194 NN |
16682 | echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5 |
16683 | echo $ECHO_N "checking whether Solaris gcc optimization fix is necessary... $ECHO_C" >&6 | |
1530be84 | 16684 | case "$host" in |
ab52d207 | 16685 | *aix*) |
1530be84 | 16686 | if test "$GCC" = yes; then |
47935194 NN |
16687 | echo "$as_me:$LINENO: result: yes" >&5 |
16688 | echo "${ECHO_T}yes" >&6 | |
1530be84 TT |
16689 | new_CFLAGS= |
16690 | for i in $CFLAGS; do | |
16691 | case "$i" in | |
16692 | -O*) | |
16693 | ;; | |
16694 | *) | |
16695 | new_CFLAGS="$new_CFLAGS $i" | |
16696 | ;; | |
16697 | esac | |
16698 | done | |
16699 | CFLAGS="$new_CFLAGS" | |
30c3de1f | 16700 | else |
47935194 NN |
16701 | echo "$as_me:$LINENO: result: no" >&5 |
16702 | echo "${ECHO_T}no" >&6 | |
1530be84 TT |
16703 | fi |
16704 | ;; | |
47935194 NN |
16705 | *) echo "$as_me:$LINENO: result: no" >&5 |
16706 | echo "${ECHO_T}no" >&6 ;; | |
1530be84 TT |
16707 | esac |
16708 | ||
16709 | MY_CFLAGS="$CFLAGS" | |
16710 | ||
16711 | ||
5572488d | 16712 | |
47935194 | 16713 | cat >>confdefs.h <<\_ACEOF |
1530be84 | 16714 | #define SILENT 1 |
47935194 | 16715 | _ACEOF |
1530be84 | 16716 | |
5572488d | 16717 | |
47935194 | 16718 | cat >>confdefs.h <<\_ACEOF |
1530be84 | 16719 | #define NO_SIGNALS 1 |
47935194 | 16720 | _ACEOF |
1530be84 | 16721 | |
5572488d | 16722 | |
47935194 | 16723 | cat >>confdefs.h <<\_ACEOF |
5a2586cf | 16724 | #define ALL_INTERIOR_POINTERS 1 |
47935194 | 16725 | _ACEOF |
5a2586cf TT |
16726 | |
16727 | ||
5572488d | 16728 | |
47935194 | 16729 | cat >>confdefs.h <<\_ACEOF |
0476f098 | 16730 | #define JAVA_FINALIZATION 1 |
47935194 | 16731 | _ACEOF |
1530be84 | 16732 | |
5572488d | 16733 | |
47935194 | 16734 | cat >>confdefs.h <<\_ACEOF |
0476f098 | 16735 | #define GC_GCJ_SUPPORT 1 |
47935194 | 16736 | _ACEOF |
1530be84 | 16737 | |
5572488d | 16738 | |
47935194 | 16739 | cat >>confdefs.h <<\_ACEOF |
5a2586cf | 16740 | #define ATOMIC_UNCOLLECTABLE 1 |
47935194 | 16741 | _ACEOF |
5a2586cf | 16742 | |
1530be84 | 16743 | |
3c1cbf58 HB |
16744 | # Check whether --enable-gc-debug or --disable-gc-debug was given. |
16745 | if test "${enable_gc_debug+set}" = set; then | |
16746 | enableval="$enable_gc_debug" | |
16747 | if test "$enable_gc_debug" = "yes"; then | |
47935194 NN |
16748 | { echo "$as_me:$LINENO: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5 |
16749 | echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;} | |
5572488d KC |
16750 | |
16751 | cat >>confdefs.h <<\_ACEOF | |
5a2586cf | 16752 | #define KEEP_BACK_PTRS 1 |
47935194 | 16753 | _ACEOF |
5a2586cf | 16754 | |
5572488d KC |
16755 | |
16756 | cat >>confdefs.h <<\_ACEOF | |
5a2586cf | 16757 | #define DBG_HDRS_ALL 1 |
47935194 | 16758 | _ACEOF |
5a2586cf TT |
16759 | |
16760 | case $host in | |
79f777fd | 16761 | ia64-*-linux* ) |
5572488d KC |
16762 | |
16763 | cat >>confdefs.h <<\_ACEOF | |
79f777fd | 16764 | #define MAKE_BACK_GRAPH 1 |
47935194 | 16765 | _ACEOF |
79f777fd BM |
16766 | |
16767 | ;; | |
48528b67 | 16768 | x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* ) |
47935194 | 16769 | cat >>confdefs.h <<\_ACEOF |
79f777fd | 16770 | #define MAKE_BACK_GRAPH 1 |
47935194 | 16771 | _ACEOF |
79f777fd | 16772 | |
47935194 NN |
16773 | { echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5 |
16774 | echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;} | |
5572488d KC |
16775 | |
16776 | cat >>confdefs.h <<\_ACEOF | |
5a2586cf | 16777 | #define SAVE_CALL_COUNT 8 |
47935194 | 16778 | _ACEOF |
30c3de1f JS |
16779 | |
16780 | ;; | |
16781 | i345686-*-dgux*) | |
47935194 | 16782 | cat >>confdefs.h <<\_ACEOF |
30c3de1f | 16783 | #define MAKE_BACK_GRAPH 1 |
47935194 | 16784 | _ACEOF |
5a2586cf TT |
16785 | |
16786 | ;; | |
47935194 | 16787 | esac |
5a2586cf | 16788 | fi |
47935194 | 16789 | fi; |
5a2586cf | 16790 | |
5909b034 BM |
16791 | if test "${gc_use_mmap}" = "yes"; then |
16792 | ||
16793 | cat >>confdefs.h <<\_ACEOF | |
16794 | #define USE_MMAP 1 | |
16795 | _ACEOF | |
16796 | ||
16797 | fi | |
16798 | ||
13b6e5b4 AO |
16799 | if test -n "$with_cross_host" && |
16800 | test x"$with_cross_host" != x"no"; then | |
d38d6003 | 16801 | toolexecdir='$(exec_prefix)/$(target_noncanonical)' |
13b6e5b4 | 16802 | toolexeclibdir='$(toolexecdir)/lib' |
b48ed568 | 16803 | else |
d38d6003 | 16804 | toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)' |
13b6e5b4 | 16805 | toolexeclibdir='$(libdir)' |
b48ed568 | 16806 | fi |
ff8b9ca8 AS |
16807 | multi_os_directory=`$CC -print-multi-os-directory` |
16808 | case $multi_os_directory in | |
16809 | .) ;; # Avoid trailing /. | |
16810 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
16811 | esac | |
13b6e5b4 AO |
16812 | |
16813 | ||
b48ed568 | 16814 | |
1530be84 TT |
16815 | if test "${multilib}" = "yes"; then |
16816 | multilib_arg="--enable-multilib" | |
16817 | else | |
16818 | multilib_arg= | |
16819 | fi | |
16820 | ||
9a060b37 | 16821 | ac_config_headers="$ac_config_headers include/gc_config.h include/gc_ext_config.h" |
4109fe85 | 16822 | |
bf9a420e | 16823 | |
785fad0a | 16824 | ac_config_files="$ac_config_files Makefile include/Makefile threads.mk" |
bf9a420e | 16825 | |
47935194 | 16826 | cat >confcache <<\_ACEOF |
1530be84 TT |
16827 | # This file is a shell script that caches the results of configure |
16828 | # tests run on this system so they can be shared between configure | |
47935194 NN |
16829 | # scripts and configure runs, see configure's option --config-cache. |
16830 | # It is not useful on other systems. If it contains results you don't | |
16831 | # want to keep, you may remove or edit it. | |
1530be84 | 16832 | # |
47935194 NN |
16833 | # config.status only pays attention to the cache file if you give it |
16834 | # the --recheck option to rerun configure. | |
1530be84 | 16835 | # |
47935194 NN |
16836 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
16837 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
16838 | # following values. | |
16839 | ||
16840 | _ACEOF | |
16841 | ||
1530be84 TT |
16842 | # The following way of writing the cache mishandles newlines in values, |
16843 | # but we know of no workaround that is simple, portable, and efficient. | |
16844 | # So, don't put newlines in cache variables' values. | |
16845 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
16846 | # and sets the high bit in the cache file unless we assign to the vars. | |
47935194 NN |
16847 | { |
16848 | (set) 2>&1 | | |
16849 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
16850 | *ac_space=\ *) | |
16851 | # `set' does not quote correctly, so add quotes (double-quote | |
16852 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
16853 | sed -n \ | |
8ab705be KC |
16854 | "s/'/'\\\\''/g; |
16855 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
47935194 NN |
16856 | ;; |
16857 | *) | |
16858 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
16859 | sed -n \ | |
8ab705be | 16860 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
47935194 NN |
16861 | ;; |
16862 | esac; | |
16863 | } | | |
16864 | sed ' | |
16865 | t clear | |
16866 | : clear | |
16867 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
16868 | t end | |
16869 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
16870 | : end' >>confcache | |
16871 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
1530be84 | 16872 | if test -w $cache_file; then |
47935194 NN |
16873 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
16874 | cat confcache >$cache_file | |
1530be84 TT |
16875 | else |
16876 | echo "not updating unwritable cache $cache_file" | |
16877 | fi | |
16878 | fi | |
16879 | rm -f confcache | |
16880 | ||
1530be84 TT |
16881 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
16882 | # Let make expand exec_prefix. | |
16883 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
16884 | ||
47935194 NN |
16885 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
16886 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
16887 | # trailing colons and then remove the whole line if VPATH becomes empty | |
16888 | # (actually we leave an empty line to preserve line numbers). | |
1530be84 | 16889 | if test "x$srcdir" = x.; then |
8ab705be | 16890 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
47935194 NN |
16891 | s/:*\$(srcdir):*/:/; |
16892 | s/:*\${srcdir}:*/:/; | |
16893 | s/:*@srcdir@:*/:/; | |
8ab705be | 16894 | s/^\([^=]*=[ ]*\):*/\1/; |
47935194 | 16895 | s/:*$//; |
8ab705be | 16896 | s/^[^=]*=[ ]*$//; |
47935194 | 16897 | }' |
1530be84 TT |
16898 | fi |
16899 | ||
4109fe85 | 16900 | DEFS=-DHAVE_CONFIG_H |
47935194 NN |
16901 | |
16902 | ac_libobjs= | |
16903 | ac_ltlibobjs= | |
16904 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
16905 | # 1. Remove the extension, and $U if already installed. | |
16906 | ac_i=`echo "$ac_i" | | |
8ab705be | 16907 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
47935194 NN |
16908 | # 2. Add them. |
16909 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
16910 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
16911 | done | |
16912 | LIBOBJS=$ac_libobjs | |
1530be84 | 16913 | |
47935194 | 16914 | LTLIBOBJS=$ac_ltlibobjs |
1530be84 | 16915 | |
1530be84 | 16916 | |
bf9a420e PB |
16917 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
16918 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
16919 | Usually this means the macro was only invoked conditionally." >&5 | |
16920 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
16921 | Usually this means the macro was only invoked conditionally." >&2;} | |
16922 | { (exit 1); exit 1; }; } | |
16923 | fi | |
16924 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
16925 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
16926 | Usually this means the macro was only invoked conditionally." >&5 | |
16927 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
16928 | Usually this means the macro was only invoked conditionally." >&2;} | |
16929 | { (exit 1); exit 1; }; } | |
16930 | fi | |
16931 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
16932 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. | |
16933 | Usually this means the macro was only invoked conditionally." >&5 | |
16934 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. | |
16935 | Usually this means the macro was only invoked conditionally." >&2;} | |
16936 | { (exit 1); exit 1; }; } | |
16937 | fi | |
16938 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
16939 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
16940 | Usually this means the macro was only invoked conditionally." >&5 | |
16941 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
16942 | Usually this means the macro was only invoked conditionally." >&2;} | |
16943 | { (exit 1); exit 1; }; } | |
16944 | fi | |
1cf3d07d SE |
16945 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
16946 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. | |
16947 | Usually this means the macro was only invoked conditionally." >&5 | |
16948 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. | |
16949 | Usually this means the macro was only invoked conditionally." >&2;} | |
16950 | { (exit 1); exit 1; }; } | |
16951 | fi | |
bf9a420e PB |
16952 | if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then |
16953 | { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined. | |
16954 | Usually this means the macro was only invoked conditionally." >&5 | |
16955 | echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined. | |
16956 | Usually this means the macro was only invoked conditionally." >&2;} | |
16957 | { (exit 1); exit 1; }; } | |
16958 | fi | |
16959 | if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then | |
16960 | { { echo "$as_me:$LINENO: error: conditional \"CPLUSPLUS\" was never defined. | |
16961 | Usually this means the macro was only invoked conditionally." >&5 | |
16962 | echo "$as_me: error: conditional \"CPLUSPLUS\" was never defined. | |
16963 | Usually this means the macro was only invoked conditionally." >&2;} | |
16964 | { (exit 1); exit 1; }; } | |
16965 | fi | |
47935194 NN |
16966 | |
16967 | : ${CONFIG_STATUS=./config.status} | |
16968 | ac_clean_files_save=$ac_clean_files | |
16969 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
16970 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
16971 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
16972 | cat >$CONFIG_STATUS <<_ACEOF | |
16973 | #! $SHELL | |
16974 | # Generated by $as_me. | |
1530be84 | 16975 | # Run this file to recreate the current configuration. |
1530be84 | 16976 | # Compiler output produced by configure, useful for debugging |
47935194 NN |
16977 | # configure, is in config.log if it exists. |
16978 | ||
16979 | debug=false | |
16980 | ac_cs_recheck=false | |
16981 | ac_cs_silent=false | |
16982 | SHELL=\${CONFIG_SHELL-$SHELL} | |
16983 | _ACEOF | |
16984 | ||
16985 | cat >>$CONFIG_STATUS <<\_ACEOF | |
16986 | ## --------------------- ## | |
16987 | ## M4sh Initialization. ## | |
16988 | ## --------------------- ## | |
16989 | ||
16990 | # Be Bourne compatible | |
16991 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
16992 | emulate sh | |
16993 | NULLCMD=: | |
16994 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
16995 | # is contrary to our usage. Disable this feature. | |
16996 | alias -g '${1+"$@"}'='"$@"' | |
16997 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
16998 | set -o posix | |
16999 | fi | |
8ab705be | 17000 | DUALCASE=1; export DUALCASE # for MKS sh |
47935194 NN |
17001 | |
17002 | # Support unset when possible. | |
8ab705be | 17003 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
47935194 NN |
17004 | as_unset=unset |
17005 | else | |
17006 | as_unset=false | |
17007 | fi | |
1530be84 | 17008 | |
47935194 NN |
17009 | |
17010 | # Work around bugs in pre-3.0 UWIN ksh. | |
17011 | $as_unset ENV MAIL MAILPATH | |
17012 | PS1='$ ' | |
17013 | PS2='> ' | |
17014 | PS4='+ ' | |
17015 | ||
17016 | # NLS nuisances. | |
17017 | for as_var in \ | |
17018 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
17019 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
17020 | LC_TELEPHONE LC_TIME | |
1530be84 | 17021 | do |
8ab705be | 17022 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
47935194 NN |
17023 | eval $as_var=C; export $as_var |
17024 | else | |
17025 | $as_unset $as_var | |
17026 | fi | |
1530be84 TT |
17027 | done |
17028 | ||
47935194 NN |
17029 | # Required to use basename. |
17030 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
17031 | as_expr=expr | |
17032 | else | |
17033 | as_expr=false | |
17034 | fi | |
1530be84 | 17035 | |
47935194 NN |
17036 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
17037 | as_basename=basename | |
17038 | else | |
17039 | as_basename=false | |
17040 | fi | |
17041 | ||
17042 | ||
17043 | # Name of the executable. | |
17044 | as_me=`$as_basename "$0" || | |
17045 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
17046 | X"$0" : 'X\(//\)$' \| \ | |
17047 | X"$0" : 'X\(/\)$' \| \ | |
17048 | . : '\(.\)' 2>/dev/null || | |
17049 | echo X/"$0" | | |
17050 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
17051 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
17052 | /^X\/\(\/\).*/{ s//\1/; q; } | |
17053 | s/.*/./; q'` | |
17054 | ||
17055 | ||
17056 | # PATH needs CR, and LINENO needs CR and PATH. | |
17057 | # Avoid depending upon Character Ranges. | |
17058 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
17059 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
17060 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
17061 | as_cr_digits='0123456789' | |
17062 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
17063 | ||
17064 | # The user is always right. | |
17065 | if test "${PATH_SEPARATOR+set}" != set; then | |
17066 | echo "#! /bin/sh" >conf$$.sh | |
17067 | echo "exit 0" >>conf$$.sh | |
17068 | chmod +x conf$$.sh | |
17069 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
17070 | PATH_SEPARATOR=';' | |
17071 | else | |
17072 | PATH_SEPARATOR=: | |
17073 | fi | |
17074 | rm -f conf$$.sh | |
17075 | fi | |
1530be84 | 17076 | |
1530be84 | 17077 | |
47935194 NN |
17078 | as_lineno_1=$LINENO |
17079 | as_lineno_2=$LINENO | |
17080 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
17081 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
17082 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
17083 | # Find who we are. Look in the path if we contain no path at all | |
17084 | # relative or not. | |
17085 | case $0 in | |
17086 | *[\\/]* ) as_myself=$0 ;; | |
17087 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17088 | for as_dir in $PATH | |
17089 | do | |
17090 | IFS=$as_save_IFS | |
17091 | test -z "$as_dir" && as_dir=. | |
17092 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
17093 | done | |
1530be84 | 17094 | |
47935194 NN |
17095 | ;; |
17096 | esac | |
17097 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
17098 | # in which case we are not to be found in the path. | |
17099 | if test "x$as_myself" = x; then | |
17100 | as_myself=$0 | |
1530be84 | 17101 | fi |
47935194 NN |
17102 | if test ! -f "$as_myself"; then |
17103 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
17104 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
17105 | { (exit 1); exit 1; }; } | |
1530be84 | 17106 | fi |
47935194 NN |
17107 | case $CONFIG_SHELL in |
17108 | '') | |
17109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17110 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
17111 | do | |
17112 | IFS=$as_save_IFS | |
17113 | test -z "$as_dir" && as_dir=. | |
17114 | for as_base in sh bash ksh sh5; do | |
17115 | case $as_dir in | |
17116 | /*) | |
17117 | if ("$as_dir/$as_base" -c ' | |
17118 | as_lineno_1=$LINENO | |
17119 | as_lineno_2=$LINENO | |
17120 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
17121 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
17122 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
17123 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
17124 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
17125 | CONFIG_SHELL=$as_dir/$as_base | |
17126 | export CONFIG_SHELL | |
17127 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
17128 | fi;; | |
17129 | esac | |
17130 | done | |
1530be84 | 17131 | done |
47935194 | 17132 | ;; |
1530be84 TT |
17133 | esac |
17134 | ||
47935194 NN |
17135 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
17136 | # uniformly replaced by the line number. The first 'sed' inserts a | |
17137 | # line-number line before each line; the second 'sed' does the real | |
17138 | # work. The second script uses 'N' to pair each line-number line | |
17139 | # with the numbered line, and appends trailing '-' during | |
17140 | # substitution so that $LINENO is not a special case at line end. | |
17141 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
17142 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
17143 | sed '=' <$as_myself | | |
17144 | sed ' | |
17145 | N | |
17146 | s,$,-, | |
17147 | : loop | |
17148 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
17149 | t loop | |
17150 | s,-$,, | |
17151 | s,^['$as_cr_digits']*\n,, | |
17152 | ' >$as_me.lineno && | |
17153 | chmod +x $as_me.lineno || | |
17154 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
17155 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
17156 | { (exit 1); exit 1; }; } | |
17157 | ||
17158 | # Don't try to exec as it changes $[0], causing all sort of problems | |
17159 | # (the dirname of $[0] is not the place where we might find the | |
17160 | # original and so on. Autoconf is especially sensible to this). | |
17161 | . ./$as_me.lineno | |
17162 | # Exit status is that of the last command. | |
17163 | exit | |
17164 | } | |
17165 | ||
17166 | ||
17167 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
17168 | *c*,-n*) ECHO_N= ECHO_C=' | |
17169 | ' ECHO_T=' ' ;; | |
17170 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
17171 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
17172 | esac | |
17173 | ||
17174 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
17175 | as_expr=expr | |
17176 | else | |
17177 | as_expr=false | |
17178 | fi | |
1530be84 | 17179 | |
47935194 NN |
17180 | rm -f conf$$ conf$$.exe conf$$.file |
17181 | echo >conf$$.file | |
17182 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
17183 | # We could just check for DJGPP; but this test a) works b) is more generic | |
17184 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
17185 | if test -f conf$$.exe; then | |
17186 | # Don't use ln at all; we don't have any links | |
17187 | as_ln_s='cp -p' | |
1530be84 | 17188 | else |
47935194 | 17189 | as_ln_s='ln -s' |
1530be84 | 17190 | fi |
47935194 NN |
17191 | elif ln conf$$.file conf$$ 2>/dev/null; then |
17192 | as_ln_s=ln | |
17193 | else | |
17194 | as_ln_s='cp -p' | |
17195 | fi | |
17196 | rm -f conf$$ conf$$.exe conf$$.file | |
1530be84 | 17197 | |
47935194 NN |
17198 | if mkdir -p . 2>/dev/null; then |
17199 | as_mkdir_p=: | |
17200 | else | |
8ab705be | 17201 | test -d ./-p && rmdir ./-p |
47935194 NN |
17202 | as_mkdir_p=false |
17203 | fi | |
17204 | ||
17205 | as_executable_p="test -f" | |
17206 | ||
17207 | # Sed expression to map a string onto a valid CPP name. | |
8ab705be | 17208 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
47935194 NN |
17209 | |
17210 | # Sed expression to map a string onto a valid variable name. | |
8ab705be | 17211 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
47935194 NN |
17212 | |
17213 | ||
17214 | # IFS | |
17215 | # We need space, tab and new line, in precisely that order. | |
17216 | as_nl=' | |
17217 | ' | |
17218 | IFS=" $as_nl" | |
17219 | ||
17220 | # CDPATH. | |
17221 | $as_unset CDPATH | |
17222 | ||
17223 | exec 6>&1 | |
17224 | ||
17225 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
17226 | # report actual input values of CONFIG_FILES etc. instead of their | |
17227 | # values after options handling. Logging --version etc. is OK. | |
17228 | exec 5>>config.log | |
17229 | { | |
17230 | echo | |
17231 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
17232 | ## Running $as_me. ## | |
17233 | _ASBOX | |
17234 | } >&5 | |
17235 | cat >&5 <<_CSEOF | |
17236 | ||
17237 | This file was extended by $as_me, which was | |
8ab705be | 17238 | generated by GNU Autoconf 2.59. Invocation command line was |
47935194 NN |
17239 | |
17240 | CONFIG_FILES = $CONFIG_FILES | |
17241 | CONFIG_HEADERS = $CONFIG_HEADERS | |
17242 | CONFIG_LINKS = $CONFIG_LINKS | |
17243 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
17244 | $ $0 $@ | |
17245 | ||
17246 | _CSEOF | |
17247 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
17248 | echo >&5 | |
17249 | _ACEOF | |
1530be84 | 17250 | |
47935194 NN |
17251 | # Files that config.status was made for. |
17252 | if test -n "$ac_config_files"; then | |
17253 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
17254 | fi | |
17255 | ||
17256 | if test -n "$ac_config_headers"; then | |
17257 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
17258 | fi | |
17259 | ||
17260 | if test -n "$ac_config_links"; then | |
17261 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
17262 | fi | |
17263 | ||
17264 | if test -n "$ac_config_commands"; then | |
17265 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
17266 | fi | |
17267 | ||
17268 | cat >>$CONFIG_STATUS <<\_ACEOF | |
17269 | ||
17270 | ac_cs_usage="\ | |
17271 | \`$as_me' instantiates files from templates according to the | |
17272 | current configuration. | |
17273 | ||
17274 | Usage: $0 [OPTIONS] [FILE]... | |
17275 | ||
17276 | -h, --help print this help, then exit | |
17277 | -V, --version print version number, then exit | |
17278 | -q, --quiet do not print progress messages | |
17279 | -d, --debug don't remove temporary files | |
17280 | --recheck update $as_me by reconfiguring in the same conditions | |
17281 | --file=FILE[:TEMPLATE] | |
8ab705be | 17282 | instantiate the configuration file FILE |
4109fe85 BM |
17283 | --header=FILE[:TEMPLATE] |
17284 | instantiate the configuration header FILE | |
47935194 NN |
17285 | |
17286 | Configuration files: | |
17287 | $config_files | |
17288 | ||
4109fe85 BM |
17289 | Configuration headers: |
17290 | $config_headers | |
17291 | ||
47935194 NN |
17292 | Configuration commands: |
17293 | $config_commands | |
17294 | ||
17295 | Report bugs to <bug-autoconf@gnu.org>." | |
17296 | _ACEOF | |
17297 | ||
17298 | cat >>$CONFIG_STATUS <<_ACEOF | |
17299 | ac_cs_version="\\ | |
17300 | config.status | |
8ab705be | 17301 | configured by $0, generated by GNU Autoconf 2.59, |
47935194 NN |
17302 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
17303 | ||
8ab705be | 17304 | Copyright (C) 2003 Free Software Foundation, Inc. |
47935194 NN |
17305 | This config.status script is free software; the Free Software Foundation |
17306 | gives unlimited permission to copy, distribute and modify it." | |
17307 | srcdir=$srcdir | |
17308 | INSTALL="$INSTALL" | |
17309 | _ACEOF | |
17310 | ||
17311 | cat >>$CONFIG_STATUS <<\_ACEOF | |
17312 | # If no file are specified by the user, then we need to provide default | |
17313 | # value. By we need to know if files were specified by the user. | |
17314 | ac_need_defaults=: | |
17315 | while test $# != 0 | |
17316 | do | |
17317 | case $1 in | |
17318 | --*=*) | |
17319 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
17320 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
17321 | ac_shift=: | |
17322 | ;; | |
17323 | -*) | |
17324 | ac_option=$1 | |
17325 | ac_optarg=$2 | |
17326 | ac_shift=shift | |
17327 | ;; | |
17328 | *) # This is not an option, so the user has probably given explicit | |
17329 | # arguments. | |
17330 | ac_option=$1 | |
17331 | ac_need_defaults=false;; | |
1530be84 TT |
17332 | esac |
17333 | ||
47935194 NN |
17334 | case $ac_option in |
17335 | # Handling of the options. | |
17336 | _ACEOF | |
17337 | cat >>$CONFIG_STATUS <<\_ACEOF | |
17338 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
17339 | ac_cs_recheck=: ;; | |
17340 | --version | --vers* | -V ) | |
17341 | echo "$ac_cs_version"; exit 0 ;; | |
17342 | --he | --h) | |
17343 | # Conflict between --help and --header | |
17344 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
17345 | Try \`$0 --help' for more information." >&5 | |
17346 | echo "$as_me: error: ambiguous option: $1 | |
17347 | Try \`$0 --help' for more information." >&2;} | |
17348 | { (exit 1); exit 1; }; };; | |
17349 | --help | --hel | -h ) | |
17350 | echo "$ac_cs_usage"; exit 0 ;; | |
17351 | --debug | --d* | -d ) | |
17352 | debug=: ;; | |
17353 | --file | --fil | --fi | --f ) | |
17354 | $ac_shift | |
17355 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
17356 | ac_need_defaults=false;; | |
17357 | --header | --heade | --head | --hea ) | |
17358 | $ac_shift | |
17359 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
17360 | ac_need_defaults=false;; | |
17361 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
17362 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
17363 | ac_cs_silent=: ;; | |
17364 | ||
17365 | # This is an error. | |
17366 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
17367 | Try \`$0 --help' for more information." >&5 | |
17368 | echo "$as_me: error: unrecognized option: $1 | |
17369 | Try \`$0 --help' for more information." >&2;} | |
17370 | { (exit 1); exit 1; }; } ;; | |
17371 | ||
17372 | *) ac_config_targets="$ac_config_targets $1" ;; | |
17373 | ||
1530be84 | 17374 | esac |
47935194 NN |
17375 | shift |
17376 | done | |
1530be84 | 17377 | |
47935194 NN |
17378 | ac_configure_extra_args= |
17379 | ||
17380 | if $ac_cs_silent; then | |
17381 | exec 6>/dev/null | |
17382 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
17383 | fi | |
17384 | ||
17385 | _ACEOF | |
17386 | cat >>$CONFIG_STATUS <<_ACEOF | |
17387 | if \$ac_cs_recheck; then | |
17388 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
17389 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
17390 | fi | |
17391 | ||
1cf3d07d SE |
17392 | _ACEOF |
17393 | ||
17394 | cat >>$CONFIG_STATUS <<_ACEOF | |
17395 | # | |
17396 | # INIT-COMMANDS section. | |
17397 | # | |
17398 | ||
17399 | ||
17400 | srcdir="$srcdir" | |
17401 | host="$host" | |
17402 | target="$target" | |
17403 | with_multisubdir="$with_multisubdir" | |
17404 | with_multisrctop="$with_multisrctop" | |
17405 | with_target_subdir="$with_target_subdir" | |
17406 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
17407 | multi_basedir="$multi_basedir" | |
17408 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
17409 | CC="$CC" | |
17410 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
17411 | ||
17412 | ||
17413 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
17414 | # if CDPATH is set. | |
17415 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
17416 | ||
17417 | sed_quote_subst='$sed_quote_subst' | |
17418 | double_quote_subst='$double_quote_subst' | |
17419 | delay_variable_subst='$delay_variable_subst' | |
17420 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
17421 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
17422 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
17423 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
17424 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
17425 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
17426 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
17427 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
17428 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
17429 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
17430 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
17431 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
17432 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
17433 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
17434 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
17435 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
17436 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
17437 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
17438 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
17439 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
17440 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
17441 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
17442 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
17443 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
17444 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
17445 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
17446 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
17447 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
93e92f52 | 17448 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' |
1cf3d07d SE |
17449 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
17450 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
17451 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
17452 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
17453 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
17454 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
17455 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17456 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17457 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17458 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
17459 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
17460 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
17461 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
17462 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
17463 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
17464 | 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"`' | |
93e92f52 | 17465 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
1cf3d07d SE |
17466 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
17467 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
17468 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
17469 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
17470 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
17471 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
17472 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
17473 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
17474 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
17475 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
93e92f52 PG |
17476 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
17477 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
17478 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
17479 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
17480 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
1cf3d07d SE |
17481 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
17482 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17483 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17484 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
17485 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
17486 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17487 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17488 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
17489 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17490 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17491 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17492 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17493 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17494 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17495 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
17496 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
17497 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
17498 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17499 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
17500 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
17501 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
17502 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
17503 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
17504 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
17505 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
17506 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
17507 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
17508 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
17509 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
17510 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17511 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
17512 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
17513 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17514 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17515 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
17516 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
17517 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
17518 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
17519 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
17520 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
17521 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
17522 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17523 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17524 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17525 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17526 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17527 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
17528 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
17529 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
17530 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17531 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
17532 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
17533 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
17534 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
17535 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
17536 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
17537 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
93e92f52 | 17538 | compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' |
1cf3d07d SE |
17539 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' |
17540 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' | |
17541 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' | |
17542 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' | |
17543 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' | |
17544 | LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17545 | old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17546 | compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17547 | GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17548 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17549 | lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17550 | lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17551 | lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17552 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17553 | archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17554 | enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17555 | export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17556 | whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17557 | compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17558 | old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17559 | old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17560 | archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17561 | archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17562 | module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17563 | module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17564 | with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17565 | allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17566 | no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17567 | hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17568 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17569 | hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17570 | hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17571 | hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17572 | hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17573 | hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17574 | hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17575 | inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17576 | link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17577 | fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17578 | always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17579 | export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17580 | exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17581 | include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17582 | prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17583 | file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17584 | hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
93e92f52 | 17585 | compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
1cf3d07d SE |
17586 | predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
17587 | postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17588 | predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17589 | postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17590 | compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' | |
17591 | ||
17592 | LTCC='$LTCC' | |
17593 | LTCFLAGS='$LTCFLAGS' | |
17594 | compiler='$compiler_DEFAULT' | |
17595 | ||
17596 | # Quote evaled strings. | |
17597 | for var in SED \ | |
17598 | GREP \ | |
17599 | EGREP \ | |
17600 | FGREP \ | |
17601 | LD \ | |
17602 | NM \ | |
17603 | LN_S \ | |
17604 | lt_SP2NL \ | |
17605 | lt_NL2SP \ | |
17606 | reload_flag \ | |
93e92f52 | 17607 | OBJDUMP \ |
1cf3d07d SE |
17608 | deplibs_check_method \ |
17609 | file_magic_cmd \ | |
17610 | AR \ | |
17611 | AR_FLAGS \ | |
17612 | STRIP \ | |
17613 | RANLIB \ | |
17614 | CC \ | |
17615 | CFLAGS \ | |
17616 | compiler \ | |
17617 | lt_cv_sys_global_symbol_pipe \ | |
17618 | lt_cv_sys_global_symbol_to_cdecl \ | |
17619 | lt_cv_sys_global_symbol_to_c_name_address \ | |
93e92f52 | 17620 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
1cf3d07d SE |
17621 | SHELL \ |
17622 | ECHO \ | |
17623 | lt_prog_compiler_no_builtin_flag \ | |
17624 | lt_prog_compiler_wl \ | |
17625 | lt_prog_compiler_pic \ | |
17626 | lt_prog_compiler_static \ | |
17627 | lt_cv_prog_compiler_c_o \ | |
17628 | need_locks \ | |
93e92f52 PG |
17629 | DSYMUTIL \ |
17630 | NMEDIT \ | |
17631 | LIPO \ | |
17632 | OTOOL \ | |
17633 | OTOOL64 \ | |
1cf3d07d SE |
17634 | shrext_cmds \ |
17635 | export_dynamic_flag_spec \ | |
17636 | whole_archive_flag_spec \ | |
17637 | compiler_needs_object \ | |
17638 | with_gnu_ld \ | |
17639 | allow_undefined_flag \ | |
17640 | no_undefined_flag \ | |
17641 | hardcode_libdir_flag_spec \ | |
17642 | hardcode_libdir_flag_spec_ld \ | |
17643 | hardcode_libdir_separator \ | |
17644 | fix_srcfile_path \ | |
17645 | exclude_expsyms \ | |
17646 | include_expsyms \ | |
17647 | file_list_spec \ | |
17648 | variables_saved_for_relink \ | |
17649 | libname_spec \ | |
17650 | library_names_spec \ | |
17651 | soname_spec \ | |
17652 | finish_eval \ | |
17653 | old_striplib \ | |
17654 | striplib \ | |
93e92f52 | 17655 | compiler_lib_search_dirs \ |
1cf3d07d SE |
17656 | predep_objects \ |
17657 | postdep_objects \ | |
17658 | predeps \ | |
17659 | postdeps \ | |
17660 | compiler_lib_search_path \ | |
17661 | LD_CXX \ | |
17662 | compiler_CXX \ | |
17663 | lt_prog_compiler_no_builtin_flag_CXX \ | |
17664 | lt_prog_compiler_wl_CXX \ | |
17665 | lt_prog_compiler_pic_CXX \ | |
17666 | lt_prog_compiler_static_CXX \ | |
17667 | lt_cv_prog_compiler_c_o_CXX \ | |
17668 | export_dynamic_flag_spec_CXX \ | |
17669 | whole_archive_flag_spec_CXX \ | |
17670 | compiler_needs_object_CXX \ | |
17671 | with_gnu_ld_CXX \ | |
17672 | allow_undefined_flag_CXX \ | |
17673 | no_undefined_flag_CXX \ | |
17674 | hardcode_libdir_flag_spec_CXX \ | |
17675 | hardcode_libdir_flag_spec_ld_CXX \ | |
17676 | hardcode_libdir_separator_CXX \ | |
17677 | fix_srcfile_path_CXX \ | |
17678 | exclude_expsyms_CXX \ | |
17679 | include_expsyms_CXX \ | |
17680 | file_list_spec_CXX \ | |
93e92f52 | 17681 | compiler_lib_search_dirs_CXX \ |
1cf3d07d SE |
17682 | predep_objects_CXX \ |
17683 | postdep_objects_CXX \ | |
17684 | predeps_CXX \ | |
17685 | postdeps_CXX \ | |
17686 | compiler_lib_search_path_CXX; do | |
17687 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
17688 | *[\\\\\\\`\\"\\\$]*) | |
17689 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
17690 | ;; | |
17691 | *) | |
17692 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
17693 | ;; | |
17694 | esac | |
17695 | done | |
17696 | ||
17697 | # Double-quote double-evaled strings. | |
17698 | for var in reload_cmds \ | |
17699 | old_postinstall_cmds \ | |
17700 | old_postuninstall_cmds \ | |
17701 | old_archive_cmds \ | |
17702 | extract_expsyms_cmds \ | |
17703 | old_archive_from_new_cmds \ | |
17704 | old_archive_from_expsyms_cmds \ | |
17705 | archive_cmds \ | |
17706 | archive_expsym_cmds \ | |
17707 | module_cmds \ | |
17708 | module_expsym_cmds \ | |
17709 | export_symbols_cmds \ | |
17710 | prelink_cmds \ | |
17711 | postinstall_cmds \ | |
17712 | postuninstall_cmds \ | |
17713 | finish_cmds \ | |
17714 | sys_lib_search_path_spec \ | |
17715 | sys_lib_dlsearch_path_spec \ | |
17716 | old_archive_cmds_CXX \ | |
17717 | old_archive_from_new_cmds_CXX \ | |
17718 | old_archive_from_expsyms_cmds_CXX \ | |
17719 | archive_cmds_CXX \ | |
17720 | archive_expsym_cmds_CXX \ | |
17721 | module_cmds_CXX \ | |
17722 | module_expsym_cmds_CXX \ | |
17723 | export_symbols_cmds_CXX \ | |
17724 | prelink_cmds_CXX; do | |
17725 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
17726 | *[\\\\\\\`\\"\\\$]*) | |
17727 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
17728 | ;; | |
17729 | *) | |
17730 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
17731 | ;; | |
17732 | esac | |
17733 | done | |
17734 | ||
17735 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
17736 | case \$lt_ECHO in | |
17737 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
17738 | ;; | |
17739 | esac | |
17740 | ||
17741 | ac_aux_dir='$ac_aux_dir' | |
17742 | xsi_shell='$xsi_shell' | |
17743 | lt_shell_append='$lt_shell_append' | |
17744 | ||
17745 | # See if we are running on zsh, and set the options which allow our | |
17746 | # commands through without removal of \ escapes INIT. | |
17747 | if test -n "\${ZSH_VERSION+set}" ; then | |
17748 | setopt NO_GLOB_SUBST | |
17749 | fi | |
17750 | ||
17751 | ||
17752 | PACKAGE='$PACKAGE' | |
17753 | VERSION='$VERSION' | |
17754 | TIMESTAMP='$TIMESTAMP' | |
17755 | RM='$RM' | |
17756 | ofile='$ofile' | |
17757 | ||
17758 | ||
47935194 | 17759 | |
1530be84 | 17760 | |
bf9a420e | 17761 | |
1530be84 | 17762 | |
47935194 NN |
17763 | _ACEOF |
17764 | ||
17765 | ||
17766 | ||
17767 | cat >>$CONFIG_STATUS <<\_ACEOF | |
17768 | for ac_config_target in $ac_config_targets | |
17769 | do | |
17770 | case "$ac_config_target" in | |
17771 | # Handling of arguments. | |
17772 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
17773 | "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
785fad0a | 17774 | "threads.mk" ) CONFIG_FILES="$CONFIG_FILES threads.mk" ;; |
bf9a420e PB |
17775 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
17776 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
1cf3d07d | 17777 | "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
4109fe85 | 17778 | "include/gc_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/gc_config.h" ;; |
9a060b37 | 17779 | "include/gc_ext_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/gc_ext_config.h" ;; |
47935194 NN |
17780 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
17781 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
17782 | { (exit 1); exit 1; }; };; | |
17783 | esac | |
17784 | done | |
17785 | ||
17786 | # If the user did not use the arguments to specify the items to instantiate, | |
17787 | # then the envvar interface is used. Set only those that are not. | |
17788 | # We use the long form for the default assignment because of an extremely | |
17789 | # bizarre bug on SunOS 4.1.3. | |
17790 | if $ac_need_defaults; then | |
17791 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
4109fe85 | 17792 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
47935194 NN |
17793 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
17794 | fi | |
17795 | ||
17796 | # Have a temporary directory for convenience. Make it in the build tree | |
17797 | # simply because there is no reason to put it here, and in addition, | |
17798 | # creating and moving files from /tmp can sometimes cause problems. | |
17799 | # Create a temporary directory, and hook for its removal unless debugging. | |
17800 | $debug || | |
17801 | { | |
17802 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
17803 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
17804 | } | |
17805 | ||
17806 | # Create a (secure) tmp directory for tmp files. | |
17807 | ||
17808 | { | |
17809 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
17810 | test -n "$tmp" && test -d "$tmp" | |
17811 | } || | |
17812 | { | |
17813 | tmp=./confstat$$-$RANDOM | |
17814 | (umask 077 && mkdir $tmp) | |
17815 | } || | |
17816 | { | |
17817 | echo "$me: cannot create a temporary directory in ." >&2 | |
17818 | { (exit 1); exit 1; } | |
17819 | } | |
17820 | ||
17821 | _ACEOF | |
17822 | ||
17823 | cat >>$CONFIG_STATUS <<_ACEOF | |
17824 | ||
17825 | # | |
17826 | # CONFIG_FILES section. | |
17827 | # | |
17828 | ||
17829 | # No need to generate the scripts if there are no CONFIG_FILES. | |
17830 | # This happens for instance when ./config.status config.h | |
17831 | if test -n "\$CONFIG_FILES"; then | |
17832 | # Protect against being on the right side of a sed subst in config.status. | |
17833 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
17834 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
17835 | s,@SHELL@,$SHELL,;t t | |
17836 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
17837 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
17838 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
17839 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
17840 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
17841 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
17842 | s,@exec_prefix@,$exec_prefix,;t t | |
17843 | s,@prefix@,$prefix,;t t | |
17844 | s,@program_transform_name@,$program_transform_name,;t t | |
17845 | s,@bindir@,$bindir,;t t | |
17846 | s,@sbindir@,$sbindir,;t t | |
17847 | s,@libexecdir@,$libexecdir,;t t | |
17848 | s,@datadir@,$datadir,;t t | |
17849 | s,@sysconfdir@,$sysconfdir,;t t | |
17850 | s,@sharedstatedir@,$sharedstatedir,;t t | |
17851 | s,@localstatedir@,$localstatedir,;t t | |
17852 | s,@libdir@,$libdir,;t t | |
17853 | s,@includedir@,$includedir,;t t | |
17854 | s,@oldincludedir@,$oldincludedir,;t t | |
17855 | s,@infodir@,$infodir,;t t | |
17856 | s,@mandir@,$mandir,;t t | |
17857 | s,@build_alias@,$build_alias,;t t | |
17858 | s,@host_alias@,$host_alias,;t t | |
17859 | s,@target_alias@,$target_alias,;t t | |
17860 | s,@DEFS@,$DEFS,;t t | |
17861 | s,@ECHO_C@,$ECHO_C,;t t | |
17862 | s,@ECHO_N@,$ECHO_N,;t t | |
17863 | s,@ECHO_T@,$ECHO_T,;t t | |
17864 | s,@LIBS@,$LIBS,;t t | |
bf9a420e | 17865 | s,@multi_basedir@,$multi_basedir,;t t |
47935194 NN |
17866 | s,@build@,$build,;t t |
17867 | s,@build_cpu@,$build_cpu,;t t | |
17868 | s,@build_vendor@,$build_vendor,;t t | |
17869 | s,@build_os@,$build_os,;t t | |
17870 | s,@host@,$host,;t t | |
17871 | s,@host_cpu@,$host_cpu,;t t | |
17872 | s,@host_vendor@,$host_vendor,;t t | |
17873 | s,@host_os@,$host_os,;t t | |
17874 | s,@target@,$target,;t t | |
17875 | s,@target_cpu@,$target_cpu,;t t | |
17876 | s,@target_vendor@,$target_vendor,;t t | |
17877 | s,@target_os@,$target_os,;t t | |
13b040f1 | 17878 | s,@target_noncanonical@,$target_noncanonical,;t t |
47935194 NN |
17879 | s,@mkinstalldirs@,$mkinstalldirs,;t t |
17880 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
17881 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
17882 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
bf9a420e | 17883 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
47935194 NN |
17884 | s,@PACKAGE@,$PACKAGE,;t t |
17885 | s,@VERSION@,$VERSION,;t t | |
17886 | s,@ACLOCAL@,$ACLOCAL,;t t | |
17887 | s,@AUTOCONF@,$AUTOCONF,;t t | |
17888 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
17889 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
17890 | s,@MAKEINFO@,$MAKEINFO,;t t | |
bf9a420e PB |
17891 | s,@install_sh@,$install_sh,;t t |
17892 | s,@STRIP@,$STRIP,;t t | |
17893 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
17894 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
17895 | s,@mkdir_p@,$mkdir_p,;t t | |
17896 | s,@AWK@,$AWK,;t t | |
47935194 | 17897 | s,@SET_MAKE@,$SET_MAKE,;t t |
bf9a420e | 17898 | s,@am__leading_dot@,$am__leading_dot,;t t |
4109fe85 BM |
17899 | s,@AMTAR@,$AMTAR,;t t |
17900 | s,@am__tar@,$am__tar,;t t | |
17901 | s,@am__untar@,$am__untar,;t t | |
47935194 | 17902 | s,@CC@,$CC,;t t |
47935194 NN |
17903 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
17904 | s,@EXEEXT@,$EXEEXT,;t t | |
17905 | s,@OBJEXT@,$OBJEXT,;t t | |
bf9a420e PB |
17906 | s,@DEPDIR@,$DEPDIR,;t t |
17907 | s,@am__include@,$am__include,;t t | |
17908 | s,@am__quote@,$am__quote,;t t | |
17909 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
17910 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
17911 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
17912 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
17913 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
17914 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
47935194 | 17915 | s,@CXX@,$CXX,;t t |
47935194 | 17916 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
bf9a420e PB |
17917 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
17918 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t | |
17919 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t | |
e22db4bf NN |
17920 | s,@CFLAGS@,$CFLAGS,;t t |
17921 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
7664e6f8 NN |
17922 | s,@CCAS@,$CCAS,;t t |
17923 | s,@CCASFLAGS@,$CCASFLAGS,;t t | |
47935194 NN |
17924 | s,@AS@,$AS,;t t |
17925 | s,@ac_ct_AS@,$ac_ct_AS,;t t | |
17926 | s,@AR@,$AR,;t t | |
17927 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
17928 | s,@RANLIB@,$RANLIB,;t t | |
17929 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
17930 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
17931 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
17932 | s,@MAINT@,$MAINT,;t t | |
17933 | s,@GC_CFLAGS@,$GC_CFLAGS,;t t | |
47935194 | 17934 | s,@LIBTOOL@,$LIBTOOL,;t t |
1cf3d07d SE |
17935 | s,@SED@,$SED,;t t |
17936 | s,@EGREP@,$EGREP,;t t | |
17937 | s,@FGREP@,$FGREP,;t t | |
17938 | s,@GREP@,$GREP,;t t | |
17939 | s,@LD@,$LD,;t t | |
17940 | s,@DUMPBIN@,$DUMPBIN,;t t | |
17941 | s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t | |
17942 | s,@NM@,$NM,;t t | |
17943 | s,@LN_S@,$LN_S,;t t | |
93e92f52 PG |
17944 | s,@OBJDUMP@,$OBJDUMP,;t t |
17945 | s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t | |
1cf3d07d | 17946 | s,@lt_ECHO@,$lt_ECHO,;t t |
93e92f52 PG |
17947 | s,@DSYMUTIL@,$DSYMUTIL,;t t |
17948 | s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t | |
17949 | s,@NMEDIT@,$NMEDIT,;t t | |
17950 | s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t | |
17951 | s,@LIPO@,$LIPO,;t t | |
17952 | s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t | |
17953 | s,@OTOOL@,$OTOOL,;t t | |
17954 | s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t | |
17955 | s,@OTOOL64@,$OTOOL64,;t t | |
17956 | s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t | |
1cf3d07d | 17957 | s,@CPP@,$CPP,;t t |
e22db4bf | 17958 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
1cf3d07d SE |
17959 | s,@LDFLAGS@,$LDFLAGS,;t t |
17960 | s,@CXXCPP@,$CXXCPP,;t t | |
47935194 NN |
17961 | s,@THREADLIBS@,$THREADLIBS,;t t |
17962 | s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t | |
17963 | s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t | |
53630715 | 17964 | s,@extra_ldflags_libgc@,$extra_ldflags_libgc,;t t |
47935194 NN |
17965 | s,@EXTRA_TEST_LIBS@,$EXTRA_TEST_LIBS,;t t |
17966 | s,@target_all@,$target_all,;t t | |
47935194 NN |
17967 | s,@CPLUSPLUS_TRUE@,$CPLUSPLUS_TRUE,;t t |
17968 | s,@CPLUSPLUS_FALSE@,$CPLUSPLUS_FALSE,;t t | |
bf9a420e | 17969 | s,@AM_CPPFLAGS@,$AM_CPPFLAGS,;t t |
47935194 NN |
17970 | s,@addobjs@,$addobjs,;t t |
17971 | s,@addincludes@,$addincludes,;t t | |
17972 | s,@addlibs@,$addlibs,;t t | |
17973 | s,@addtests@,$addtests,;t t | |
47935194 NN |
17974 | s,@MY_CFLAGS@,$MY_CFLAGS,;t t |
17975 | s,@toolexecdir@,$toolexecdir,;t t | |
17976 | s,@toolexeclibdir@,$toolexeclibdir,;t t | |
17977 | s,@LIBOBJS@,$LIBOBJS,;t t | |
17978 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
17979 | CEOF | |
17980 | ||
17981 | _ACEOF | |
17982 | ||
17983 | cat >>$CONFIG_STATUS <<\_ACEOF | |
17984 | # Split the substitutions into bite-sized pieces for seds with | |
17985 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
17986 | ac_max_sed_lines=48 | |
17987 | ac_sed_frag=1 # Number of current file. | |
17988 | ac_beg=1 # First line for current file. | |
17989 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
17990 | ac_more_lines=: | |
17991 | ac_sed_cmds= | |
17992 | while $ac_more_lines; do | |
17993 | if test $ac_beg -gt 1; then | |
17994 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
17995 | else | |
17996 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
17997 | fi | |
17998 | if test ! -s $tmp/subs.frag; then | |
17999 | ac_more_lines=false | |
18000 | else | |
18001 | # The purpose of the label and of the branching condition is to | |
18002 | # speed up the sed processing (if there are no `@' at all, there | |
18003 | # is no need to browse any of the substitutions). | |
18004 | # These are the two extra sed commands mentioned above. | |
18005 | (echo ':t | |
18006 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
18007 | if test -z "$ac_sed_cmds"; then | |
8ab705be | 18008 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
47935194 | 18009 | else |
8ab705be | 18010 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
47935194 NN |
18011 | fi |
18012 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
18013 | ac_beg=$ac_end | |
18014 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
18015 | fi | |
18016 | done | |
18017 | if test -z "$ac_sed_cmds"; then | |
18018 | ac_sed_cmds=cat | |
18019 | fi | |
18020 | fi # test -n "$CONFIG_FILES" | |
18021 | ||
18022 | _ACEOF | |
18023 | cat >>$CONFIG_STATUS <<\_ACEOF | |
18024 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
18025 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
18026 | case $ac_file in | |
18027 | - | *:- | *:-:* ) # input from stdin | |
8ab705be KC |
18028 | cat >$tmp/stdin |
18029 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
18030 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
47935194 | 18031 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
8ab705be | 18032 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
47935194 NN |
18033 | * ) ac_file_in=$ac_file.in ;; |
18034 | esac | |
18035 | ||
18036 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
18037 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
18038 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8ab705be KC |
18039 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
18040 | X"$ac_file" : 'X\(//\)$' \| \ | |
18041 | X"$ac_file" : 'X\(/\)' \| \ | |
18042 | . : '\(.\)' 2>/dev/null || | |
47935194 NN |
18043 | echo X"$ac_file" | |
18044 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
18045 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
18046 | /^X\(\/\/\)$/{ s//\1/; q; } | |
18047 | /^X\(\/\).*/{ s//\1/; q; } | |
18048 | s/.*/./; q'` | |
18049 | { if $as_mkdir_p; then | |
18050 | mkdir -p "$ac_dir" | |
18051 | else | |
18052 | as_dir="$ac_dir" | |
18053 | as_dirs= | |
18054 | while test ! -d "$as_dir"; do | |
18055 | as_dirs="$as_dir $as_dirs" | |
18056 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
18057 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8ab705be KC |
18058 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
18059 | X"$as_dir" : 'X\(//\)$' \| \ | |
18060 | X"$as_dir" : 'X\(/\)' \| \ | |
18061 | . : '\(.\)' 2>/dev/null || | |
47935194 NN |
18062 | echo X"$as_dir" | |
18063 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
18064 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
18065 | /^X\(\/\/\)$/{ s//\1/; q; } | |
18066 | /^X\(\/\).*/{ s//\1/; q; } | |
18067 | s/.*/./; q'` | |
18068 | done | |
18069 | test ! -n "$as_dirs" || mkdir $as_dirs | |
18070 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
18071 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
18072 | { (exit 1); exit 1; }; }; } | |
18073 | ||
18074 | ac_builddir=. | |
18075 | ||
18076 | if test "$ac_dir" != .; then | |
18077 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
18078 | # A "../" for each directory in $ac_dir_suffix. | |
18079 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
18080 | else | |
18081 | ac_dir_suffix= ac_top_builddir= | |
18082 | fi | |
18083 | ||
18084 | case $srcdir in | |
18085 | .) # No --srcdir option. We are building in place. | |
18086 | ac_srcdir=. | |
18087 | if test -z "$ac_top_builddir"; then | |
18088 | ac_top_srcdir=. | |
18089 | else | |
18090 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
18091 | fi ;; | |
18092 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
18093 | ac_srcdir=$srcdir$ac_dir_suffix; | |
18094 | ac_top_srcdir=$srcdir ;; | |
18095 | *) # Relative path. | |
18096 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
18097 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
18098 | esac | |
8ab705be KC |
18099 | |
18100 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
18101 | # the directories may not exist. | |
18102 | case `pwd` in | |
18103 | .) ac_abs_builddir="$ac_dir";; | |
18104 | *) | |
18105 | case "$ac_dir" in | |
18106 | .) ac_abs_builddir=`pwd`;; | |
18107 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
18108 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
18109 | esac;; | |
18110 | esac | |
18111 | case $ac_abs_builddir in | |
18112 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
18113 | *) | |
18114 | case ${ac_top_builddir}. in | |
18115 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
18116 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
18117 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
18118 | esac;; | |
18119 | esac | |
18120 | case $ac_abs_builddir in | |
18121 | .) ac_abs_srcdir=$ac_srcdir;; | |
18122 | *) | |
18123 | case $ac_srcdir in | |
18124 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
18125 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
18126 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
18127 | esac;; | |
18128 | esac | |
18129 | case $ac_abs_builddir in | |
18130 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
18131 | *) | |
18132 | case $ac_top_srcdir in | |
18133 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
18134 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
18135 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
18136 | esac;; | |
18137 | esac | |
47935194 NN |
18138 | |
18139 | ||
18140 | case $INSTALL in | |
18141 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
18142 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
18143 | esac | |
18144 | ||
5572488d KC |
18145 | if test x"$ac_file" != x-; then |
18146 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
18147 | echo "$as_me: creating $ac_file" >&6;} | |
18148 | rm -f "$ac_file" | |
18149 | fi | |
47935194 NN |
18150 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
18151 | # use $as_me), people would be surprised to read: | |
18152 | # /* config.h. Generated by config.status. */ | |
18153 | if test x"$ac_file" = x-; then | |
18154 | configure_input= | |
18155 | else | |
18156 | configure_input="$ac_file. " | |
18157 | fi | |
18158 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
8ab705be | 18159 | sed 's,.*/,,'` by configure." |
47935194 NN |
18160 | |
18161 | # First look for the input files in the build tree, otherwise in the | |
18162 | # src tree. | |
18163 | ac_file_inputs=`IFS=: | |
18164 | for f in $ac_file_in; do | |
18165 | case $f in | |
18166 | -) echo $tmp/stdin ;; | |
18167 | [\\/$]*) | |
8ab705be KC |
18168 | # Absolute (can't be DOS-style, as IFS=:) |
18169 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
47935194 NN |
18170 | echo "$as_me: error: cannot find input file: $f" >&2;} |
18171 | { (exit 1); exit 1; }; } | |
8ab705be | 18172 | echo "$f";; |
47935194 | 18173 | *) # Relative |
8ab705be KC |
18174 | if test -f "$f"; then |
18175 | # Build tree | |
18176 | echo "$f" | |
18177 | elif test -f "$srcdir/$f"; then | |
18178 | # Source tree | |
18179 | echo "$srcdir/$f" | |
18180 | else | |
18181 | # /dev/null tree | |
18182 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
47935194 NN |
18183 | echo "$as_me: error: cannot find input file: $f" >&2;} |
18184 | { (exit 1); exit 1; }; } | |
8ab705be | 18185 | fi;; |
47935194 NN |
18186 | esac |
18187 | done` || { (exit 1); exit 1; } | |
47935194 NN |
18188 | _ACEOF |
18189 | cat >>$CONFIG_STATUS <<_ACEOF | |
18190 | sed "$ac_vpsub | |
18191 | $extrasub | |
18192 | _ACEOF | |
18193 | cat >>$CONFIG_STATUS <<\_ACEOF | |
18194 | :t | |
18195 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
18196 | s,@configure_input@,$configure_input,;t t | |
18197 | s,@srcdir@,$ac_srcdir,;t t | |
18198 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
18199 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
18200 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
18201 | s,@builddir@,$ac_builddir,;t t | |
18202 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
18203 | s,@top_builddir@,$ac_top_builddir,;t t | |
18204 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
18205 | s,@INSTALL@,$ac_INSTALL,;t t | |
18206 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
18207 | rm -f $tmp/stdin | |
18208 | if test x"$ac_file" != x-; then | |
18209 | mv $tmp/out $ac_file | |
18210 | else | |
18211 | cat $tmp/out | |
18212 | rm -f $tmp/out | |
18213 | fi | |
18214 | ||
18215 | done | |
18216 | _ACEOF | |
18217 | cat >>$CONFIG_STATUS <<\_ACEOF | |
18218 | ||
4109fe85 BM |
18219 | # |
18220 | # CONFIG_HEADER section. | |
18221 | # | |
18222 | ||
18223 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
18224 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
18225 | # | |
18226 | # ac_d sets the value in "#define NAME VALUE" lines. | |
18227 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
18228 | ac_dB='[ ].*$,\1#\2' | |
18229 | ac_dC=' ' | |
18230 | ac_dD=',;t' | |
18231 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
18232 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
18233 | ac_uB='$,\1#\2define\3' | |
18234 | ac_uC=' ' | |
18235 | ac_uD=',;t' | |
18236 | ||
18237 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
18238 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
18239 | case $ac_file in | |
18240 | - | *:- | *:-:* ) # input from stdin | |
18241 | cat >$tmp/stdin | |
18242 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
18243 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
18244 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
18245 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
18246 | * ) ac_file_in=$ac_file.in ;; | |
18247 | esac | |
18248 | ||
18249 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
18250 | echo "$as_me: creating $ac_file" >&6;} | |
18251 | ||
18252 | # First look for the input files in the build tree, otherwise in the | |
18253 | # src tree. | |
18254 | ac_file_inputs=`IFS=: | |
18255 | for f in $ac_file_in; do | |
18256 | case $f in | |
18257 | -) echo $tmp/stdin ;; | |
18258 | [\\/$]*) | |
18259 | # Absolute (can't be DOS-style, as IFS=:) | |
18260 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
18261 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
18262 | { (exit 1); exit 1; }; } | |
18263 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
18264 | echo "$f";; | |
18265 | *) # Relative | |
18266 | if test -f "$f"; then | |
18267 | # Build tree | |
18268 | echo "$f" | |
18269 | elif test -f "$srcdir/$f"; then | |
18270 | # Source tree | |
18271 | echo "$srcdir/$f" | |
18272 | else | |
18273 | # /dev/null tree | |
18274 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
18275 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
18276 | { (exit 1); exit 1; }; } | |
18277 | fi;; | |
18278 | esac | |
18279 | done` || { (exit 1); exit 1; } | |
18280 | # Remove the trailing spaces. | |
18281 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
18282 | ||
18283 | _ACEOF | |
18284 | ||
18285 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
18286 | # `conftest.undefs', that substitutes the proper values into | |
18287 | # config.h.in to produce config.h. The first handles `#define' | |
18288 | # templates, and the second `#undef' templates. | |
18289 | # And first: Protect against being on the right side of a sed subst in | |
18290 | # config.status. Protect against being in an unquoted here document | |
18291 | # in config.status. | |
18292 | rm -f conftest.defines conftest.undefs | |
18293 | # Using a here document instead of a string reduces the quoting nightmare. | |
18294 | # Putting comments in sed scripts is not portable. | |
18295 | # | |
18296 | # `end' is used to avoid that the second main sed command (meant for | |
18297 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
18298 | # See the Autoconf documentation for `clear'. | |
18299 | cat >confdef2sed.sed <<\_ACEOF | |
18300 | s/[\\&,]/\\&/g | |
18301 | s,[\\$`],\\&,g | |
18302 | t clear | |
18303 | : clear | |
18304 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
18305 | t end | |
18306 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
18307 | : end | |
18308 | _ACEOF | |
18309 | # If some macros were called several times there might be several times | |
18310 | # the same #defines, which is useless. Nevertheless, we may not want to | |
18311 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
18312 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
18313 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
18314 | rm -f confdef2sed.sed | |
18315 | ||
18316 | # This sed command replaces #undef with comments. This is necessary, for | |
18317 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
18318 | # on some systems where configure will not decide to define it. | |
18319 | cat >>conftest.undefs <<\_ACEOF | |
18320 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
18321 | _ACEOF | |
18322 | ||
18323 | # Break up conftest.defines because some shells have a limit on the size | |
18324 | # of here documents, and old seds have small limits too (100 cmds). | |
18325 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
18326 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
18327 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
18328 | echo ' :' >>$CONFIG_STATUS | |
18329 | rm -f conftest.tail | |
18330 | while grep . conftest.defines >/dev/null | |
18331 | do | |
18332 | # Write a limited-size here document to $tmp/defines.sed. | |
18333 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
18334 | # Speed up: don't consider the non `#define' lines. | |
18335 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
18336 | # Work around the forget-to-reset-the-flag bug. | |
18337 | echo 't clr' >>$CONFIG_STATUS | |
18338 | echo ': clr' >>$CONFIG_STATUS | |
18339 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
18340 | echo 'CEOF | |
18341 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
18342 | rm -f $tmp/in | |
18343 | mv $tmp/out $tmp/in | |
18344 | ' >>$CONFIG_STATUS | |
18345 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
18346 | rm -f conftest.defines | |
18347 | mv conftest.tail conftest.defines | |
18348 | done | |
18349 | rm -f conftest.defines | |
18350 | echo ' fi # grep' >>$CONFIG_STATUS | |
18351 | echo >>$CONFIG_STATUS | |
18352 | ||
18353 | # Break up conftest.undefs because some shells have a limit on the size | |
18354 | # of here documents, and old seds have small limits too (100 cmds). | |
18355 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
18356 | rm -f conftest.tail | |
18357 | while grep . conftest.undefs >/dev/null | |
18358 | do | |
18359 | # Write a limited-size here document to $tmp/undefs.sed. | |
18360 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
18361 | # Speed up: don't consider the non `#undef' | |
18362 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
18363 | # Work around the forget-to-reset-the-flag bug. | |
18364 | echo 't clr' >>$CONFIG_STATUS | |
18365 | echo ': clr' >>$CONFIG_STATUS | |
18366 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
18367 | echo 'CEOF | |
18368 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
18369 | rm -f $tmp/in | |
18370 | mv $tmp/out $tmp/in | |
18371 | ' >>$CONFIG_STATUS | |
18372 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
18373 | rm -f conftest.undefs | |
18374 | mv conftest.tail conftest.undefs | |
18375 | done | |
18376 | rm -f conftest.undefs | |
18377 | ||
18378 | cat >>$CONFIG_STATUS <<\_ACEOF | |
18379 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
18380 | # use $as_me), people would be surprised to read: | |
18381 | # /* config.h. Generated by config.status. */ | |
18382 | if test x"$ac_file" = x-; then | |
18383 | echo "/* Generated by configure. */" >$tmp/config.h | |
18384 | else | |
18385 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
18386 | fi | |
18387 | cat $tmp/in >>$tmp/config.h | |
18388 | rm -f $tmp/in | |
18389 | if test x"$ac_file" != x-; then | |
18390 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
18391 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
18392 | echo "$as_me: $ac_file is unchanged" >&6;} | |
18393 | else | |
18394 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
18395 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18396 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
18397 | X"$ac_file" : 'X\(//\)$' \| \ | |
18398 | X"$ac_file" : 'X\(/\)' \| \ | |
18399 | . : '\(.\)' 2>/dev/null || | |
18400 | echo X"$ac_file" | | |
18401 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
18402 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
18403 | /^X\(\/\/\)$/{ s//\1/; q; } | |
18404 | /^X\(\/\).*/{ s//\1/; q; } | |
18405 | s/.*/./; q'` | |
18406 | { if $as_mkdir_p; then | |
18407 | mkdir -p "$ac_dir" | |
18408 | else | |
18409 | as_dir="$ac_dir" | |
18410 | as_dirs= | |
18411 | while test ! -d "$as_dir"; do | |
18412 | as_dirs="$as_dir $as_dirs" | |
18413 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
18414 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18415 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18416 | X"$as_dir" : 'X\(//\)$' \| \ | |
18417 | X"$as_dir" : 'X\(/\)' \| \ | |
18418 | . : '\(.\)' 2>/dev/null || | |
18419 | echo X"$as_dir" | | |
18420 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
18421 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
18422 | /^X\(\/\/\)$/{ s//\1/; q; } | |
18423 | /^X\(\/\).*/{ s//\1/; q; } | |
18424 | s/.*/./; q'` | |
18425 | done | |
18426 | test ! -n "$as_dirs" || mkdir $as_dirs | |
18427 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
18428 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
18429 | { (exit 1); exit 1; }; }; } | |
18430 | ||
18431 | rm -f $ac_file | |
18432 | mv $tmp/config.h $ac_file | |
18433 | fi | |
18434 | else | |
18435 | cat $tmp/config.h | |
18436 | rm -f $tmp/config.h | |
18437 | fi | |
18438 | # Compute $ac_file's index in $config_headers. | |
18439 | _am_stamp_count=1 | |
18440 | for _am_header in $config_headers :; do | |
18441 | case $_am_header in | |
18442 | $ac_file | $ac_file:* ) | |
18443 | break ;; | |
18444 | * ) | |
18445 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
18446 | esac | |
18447 | done | |
18448 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
18449 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18450 | X$ac_file : 'X\(//\)[^/]' \| \ | |
18451 | X$ac_file : 'X\(//\)$' \| \ | |
18452 | X$ac_file : 'X\(/\)' \| \ | |
18453 | . : '\(.\)' 2>/dev/null || | |
18454 | echo X$ac_file | | |
18455 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
18456 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
18457 | /^X\(\/\/\)$/{ s//\1/; q; } | |
18458 | /^X\(\/\).*/{ s//\1/; q; } | |
18459 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
18460 | done | |
18461 | _ACEOF | |
18462 | cat >>$CONFIG_STATUS <<\_ACEOF | |
18463 | ||
47935194 NN |
18464 | # |
18465 | # CONFIG_COMMANDS section. | |
18466 | # | |
18467 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
18468 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
18469 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
18470 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
18471 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8ab705be KC |
18472 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
18473 | X"$ac_dest" : 'X\(//\)$' \| \ | |
18474 | X"$ac_dest" : 'X\(/\)' \| \ | |
18475 | . : '\(.\)' 2>/dev/null || | |
47935194 NN |
18476 | echo X"$ac_dest" | |
18477 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
18478 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
18479 | /^X\(\/\/\)$/{ s//\1/; q; } | |
18480 | /^X\(\/\).*/{ s//\1/; q; } | |
18481 | s/.*/./; q'` | |
8ab705be KC |
18482 | { if $as_mkdir_p; then |
18483 | mkdir -p "$ac_dir" | |
18484 | else | |
18485 | as_dir="$ac_dir" | |
18486 | as_dirs= | |
18487 | while test ! -d "$as_dir"; do | |
18488 | as_dirs="$as_dir $as_dirs" | |
18489 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
18490 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18491 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18492 | X"$as_dir" : 'X\(//\)$' \| \ | |
18493 | X"$as_dir" : 'X\(/\)' \| \ | |
18494 | . : '\(.\)' 2>/dev/null || | |
18495 | echo X"$as_dir" | | |
18496 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
18497 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
18498 | /^X\(\/\/\)$/{ s//\1/; q; } | |
18499 | /^X\(\/\).*/{ s//\1/; q; } | |
18500 | s/.*/./; q'` | |
18501 | done | |
18502 | test ! -n "$as_dirs" || mkdir $as_dirs | |
18503 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
18504 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
18505 | { (exit 1); exit 1; }; }; } | |
18506 | ||
47935194 NN |
18507 | ac_builddir=. |
18508 | ||
18509 | if test "$ac_dir" != .; then | |
18510 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
18511 | # A "../" for each directory in $ac_dir_suffix. | |
18512 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
18513 | else | |
18514 | ac_dir_suffix= ac_top_builddir= | |
18515 | fi | |
18516 | ||
18517 | case $srcdir in | |
18518 | .) # No --srcdir option. We are building in place. | |
18519 | ac_srcdir=. | |
18520 | if test -z "$ac_top_builddir"; then | |
18521 | ac_top_srcdir=. | |
18522 | else | |
18523 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
18524 | fi ;; | |
18525 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
18526 | ac_srcdir=$srcdir$ac_dir_suffix; | |
18527 | ac_top_srcdir=$srcdir ;; | |
18528 | *) # Relative path. | |
18529 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
18530 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
18531 | esac | |
8ab705be KC |
18532 | |
18533 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
18534 | # the directories may not exist. | |
18535 | case `pwd` in | |
18536 | .) ac_abs_builddir="$ac_dir";; | |
18537 | *) | |
18538 | case "$ac_dir" in | |
18539 | .) ac_abs_builddir=`pwd`;; | |
18540 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
18541 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
18542 | esac;; | |
18543 | esac | |
18544 | case $ac_abs_builddir in | |
18545 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
18546 | *) | |
18547 | case ${ac_top_builddir}. in | |
18548 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
18549 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
18550 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
18551 | esac;; | |
18552 | esac | |
18553 | case $ac_abs_builddir in | |
18554 | .) ac_abs_srcdir=$ac_srcdir;; | |
18555 | *) | |
18556 | case $ac_srcdir in | |
18557 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
18558 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
18559 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
18560 | esac;; | |
18561 | esac | |
18562 | case $ac_abs_builddir in | |
18563 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
18564 | *) | |
18565 | case $ac_top_srcdir in | |
18566 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
18567 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
18568 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
18569 | esac;; | |
18570 | esac | |
47935194 NN |
18571 | |
18572 | ||
18573 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
18574 | echo "$as_me: executing $ac_dest commands" >&6;} | |
18575 | case $ac_dest in | |
bf9a420e PB |
18576 | default-1 ) |
18577 | # Only add multilib support code if we just rebuilt the top-level | |
18578 | # Makefile. | |
18579 | case " $CONFIG_FILES " in | |
18580 | *" Makefile "*) | |
18581 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
18582 | ;; | |
18583 | esac ;; | |
18584 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
18585 | # Strip MF so we end up with the name of the file. | |
18586 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
18587 | # Check whether this is an Automake generated Makefile or not. | |
18588 | # We used to match only the files named `Makefile.in', but | |
18589 | # some people rename them; so instead we look at the file content. | |
18590 | # Grep'ing the first line is not enough: some people post-process | |
18591 | # each Makefile.in and add a new line on top of each file to say so. | |
18592 | # So let's grep whole file. | |
18593 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
18594 | dirpart=`(dirname "$mf") 2>/dev/null || | |
18595 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18596 | X"$mf" : 'X\(//\)[^/]' \| \ | |
18597 | X"$mf" : 'X\(//\)$' \| \ | |
18598 | X"$mf" : 'X\(/\)' \| \ | |
18599 | . : '\(.\)' 2>/dev/null || | |
18600 | echo X"$mf" | | |
18601 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
18602 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
18603 | /^X\(\/\/\)$/{ s//\1/; q; } | |
18604 | /^X\(\/\).*/{ s//\1/; q; } | |
18605 | s/.*/./; q'` | |
18606 | else | |
18607 | continue | |
18608 | fi | |
4109fe85 BM |
18609 | # Extract the definition of DEPDIR, am__include, and am__quote |
18610 | # from the Makefile without running `make'. | |
bf9a420e PB |
18611 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
18612 | test -z "$DEPDIR" && continue | |
4109fe85 BM |
18613 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
18614 | test -z "am__include" && continue | |
18615 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
bf9a420e PB |
18616 | # When using ansi2knr, U may be empty or an underscore; expand it |
18617 | U=`sed -n 's/^U = //p' < "$mf"` | |
4109fe85 BM |
18618 | # Find all dependency output files, they are included files with |
18619 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
18620 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
18621 | # expansion. | |
18622 | for file in `sed -n " | |
18623 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
bf9a420e PB |
18624 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
18625 | # Make sure the directory exists. | |
18626 | test -f "$dirpart/$file" && continue | |
18627 | fdir=`(dirname "$file") 2>/dev/null || | |
18628 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18629 | X"$file" : 'X\(//\)[^/]' \| \ | |
18630 | X"$file" : 'X\(//\)$' \| \ | |
18631 | X"$file" : 'X\(/\)' \| \ | |
18632 | . : '\(.\)' 2>/dev/null || | |
18633 | echo X"$file" | | |
18634 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
18635 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
18636 | /^X\(\/\/\)$/{ s//\1/; q; } | |
18637 | /^X\(\/\).*/{ s//\1/; q; } | |
18638 | s/.*/./; q'` | |
18639 | { if $as_mkdir_p; then | |
18640 | mkdir -p $dirpart/$fdir | |
18641 | else | |
18642 | as_dir=$dirpart/$fdir | |
18643 | as_dirs= | |
18644 | while test ! -d "$as_dir"; do | |
18645 | as_dirs="$as_dir $as_dirs" | |
18646 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
18647 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18648 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18649 | X"$as_dir" : 'X\(//\)$' \| \ | |
18650 | X"$as_dir" : 'X\(/\)' \| \ | |
18651 | . : '\(.\)' 2>/dev/null || | |
18652 | echo X"$as_dir" | | |
18653 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
18654 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
18655 | /^X\(\/\/\)$/{ s//\1/; q; } | |
18656 | /^X\(\/\).*/{ s//\1/; q; } | |
18657 | s/.*/./; q'` | |
18658 | done | |
18659 | test ! -n "$as_dirs" || mkdir $as_dirs | |
18660 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
18661 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
18662 | { (exit 1); exit 1; }; }; } | |
1530be84 | 18663 | |
bf9a420e PB |
18664 | # echo "creating $dirpart/$file" |
18665 | echo '# dummy' > "$dirpart/$file" | |
18666 | done | |
18667 | done | |
1cf3d07d SE |
18668 | ;; |
18669 | libtool ) | |
18670 | ||
18671 | # See if we are running on zsh, and set the options which allow our | |
18672 | # commands through without removal of \ escapes. | |
18673 | if test -n "${ZSH_VERSION+set}" ; then | |
18674 | setopt NO_GLOB_SUBST | |
18675 | fi | |
18676 | ||
18677 | cfgfile="${ofile}T" | |
18678 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
18679 | $RM "$cfgfile" | |
18680 | ||
18681 | cat <<_LT_EOF >> "$cfgfile" | |
18682 | #! $SHELL | |
18683 | ||
18684 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
93e92f52 | 18685 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
1cf3d07d SE |
18686 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18687 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
18688 | # | |
93e92f52 PG |
18689 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
18690 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
18691 | # Written by Gordon Matzigkeit, 1996 | |
1cf3d07d | 18692 | # |
93e92f52 | 18693 | # This file is part of GNU Libtool. |
1cf3d07d | 18694 | # |
93e92f52 PG |
18695 | # GNU Libtool is free software; you can redistribute it and/or |
18696 | # modify it under the terms of the GNU General Public License as | |
18697 | # published by the Free Software Foundation; either version 2 of | |
18698 | # the License, or (at your option) any later version. | |
1cf3d07d | 18699 | # |
93e92f52 PG |
18700 | # As a special exception to the GNU General Public License, |
18701 | # if you distribute this file as part of a program or library that | |
18702 | # is built using GNU Libtool, you may include this file under the | |
18703 | # same distribution terms that you use for the rest of that program. | |
1cf3d07d | 18704 | # |
93e92f52 PG |
18705 | # GNU Libtool is distributed in the hope that it will be useful, |
18706 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18707 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18708 | # GNU General Public License for more details. | |
1cf3d07d | 18709 | # |
93e92f52 PG |
18710 | # You should have received a copy of the GNU General Public License |
18711 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
18712 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
18713 | # obtained by writing to the Free Software Foundation, Inc., | |
18714 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
1cf3d07d SE |
18715 | |
18716 | ||
18717 | # The names of the tagged configurations supported by this script. | |
18718 | available_tags="CXX " | |
18719 | ||
18720 | # ### BEGIN LIBTOOL CONFIG | |
18721 | ||
18722 | # Which release of libtool.m4 was used? | |
18723 | macro_version=$macro_version | |
18724 | macro_revision=$macro_revision | |
18725 | ||
18726 | # Whether or not to build shared libraries. | |
18727 | build_libtool_libs=$enable_shared | |
18728 | ||
18729 | # Whether or not to build static libraries. | |
18730 | build_old_libs=$enable_static | |
18731 | ||
18732 | # What type of objects to build. | |
18733 | pic_mode=$pic_mode | |
18734 | ||
18735 | # Whether or not to optimize for fast installation. | |
18736 | fast_install=$enable_fast_install | |
18737 | ||
18738 | # The host system. | |
18739 | host_alias=$host_alias | |
18740 | host=$host | |
18741 | host_os=$host_os | |
18742 | ||
18743 | # The build system. | |
18744 | build_alias=$build_alias | |
18745 | build=$build | |
18746 | build_os=$build_os | |
18747 | ||
18748 | # A sed program that does not truncate output. | |
18749 | SED=$lt_SED | |
18750 | ||
18751 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
18752 | Xsed="\$SED -e 1s/^X//" | |
18753 | ||
18754 | # A grep program that handles long lines. | |
18755 | GREP=$lt_GREP | |
18756 | ||
18757 | # An ERE matcher. | |
18758 | EGREP=$lt_EGREP | |
18759 | ||
18760 | # A literal string matcher. | |
18761 | FGREP=$lt_FGREP | |
18762 | ||
18763 | # A BSD- or MS-compatible name lister. | |
18764 | NM=$lt_NM | |
18765 | ||
18766 | # Whether we need soft or hard links. | |
18767 | LN_S=$lt_LN_S | |
18768 | ||
18769 | # What is the maximum length of a command? | |
18770 | max_cmd_len=$max_cmd_len | |
18771 | ||
18772 | # Object file suffix (normally "o"). | |
18773 | objext=$ac_objext | |
18774 | ||
18775 | # Executable file suffix (normally ""). | |
18776 | exeext=$exeext | |
18777 | ||
18778 | # whether the shell understands "unset". | |
18779 | lt_unset=$lt_unset | |
18780 | ||
18781 | # turn spaces into newlines. | |
18782 | SP2NL=$lt_lt_SP2NL | |
18783 | ||
18784 | # turn newlines into spaces. | |
18785 | NL2SP=$lt_lt_NL2SP | |
18786 | ||
18787 | # How to create reloadable object files. | |
18788 | reload_flag=$lt_reload_flag | |
18789 | reload_cmds=$lt_reload_cmds | |
18790 | ||
93e92f52 PG |
18791 | # An object symbol dumper. |
18792 | OBJDUMP=$lt_OBJDUMP | |
18793 | ||
1cf3d07d SE |
18794 | # Method to check whether dependent libraries are shared objects. |
18795 | deplibs_check_method=$lt_deplibs_check_method | |
18796 | ||
18797 | # Command to use when deplibs_check_method == "file_magic". | |
18798 | file_magic_cmd=$lt_file_magic_cmd | |
18799 | ||
18800 | # The archiver. | |
18801 | AR=$lt_AR | |
18802 | AR_FLAGS=$lt_AR_FLAGS | |
18803 | ||
18804 | # A symbol stripping program. | |
18805 | STRIP=$lt_STRIP | |
18806 | ||
18807 | # Commands used to install an old-style archive. | |
18808 | RANLIB=$lt_RANLIB | |
18809 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
18810 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
18811 | ||
18812 | # A C compiler. | |
18813 | LTCC=$lt_CC | |
18814 | ||
18815 | # LTCC compiler flags. | |
18816 | LTCFLAGS=$lt_CFLAGS | |
18817 | ||
18818 | # Take the output of nm and produce a listing of raw symbols and C names. | |
18819 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
18820 | ||
18821 | # Transform the output of nm in a proper C declaration. | |
18822 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
18823 | ||
18824 | # Transform the output of nm in a C name address pair. | |
18825 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
18826 | ||
93e92f52 PG |
18827 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
18828 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
18829 | ||
1cf3d07d SE |
18830 | # The name of the directory that contains temporary libtool files. |
18831 | objdir=$objdir | |
18832 | ||
18833 | # Shell to use when invoking shell scripts. | |
18834 | SHELL=$lt_SHELL | |
18835 | ||
18836 | # An echo program that does not interpret backslashes. | |
18837 | ECHO=$lt_ECHO | |
18838 | ||
18839 | # Used to examine libraries when file_magic_cmd begins with "file". | |
18840 | MAGIC_CMD=$MAGIC_CMD | |
18841 | ||
18842 | # Must we lock files when doing compilation? | |
18843 | need_locks=$lt_need_locks | |
18844 | ||
93e92f52 PG |
18845 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
18846 | DSYMUTIL=$lt_DSYMUTIL | |
18847 | ||
18848 | # Tool to change global to local symbols on Mac OS X. | |
18849 | NMEDIT=$lt_NMEDIT | |
18850 | ||
18851 | # Tool to manipulate fat objects and archives on Mac OS X. | |
18852 | LIPO=$lt_LIPO | |
18853 | ||
18854 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
18855 | OTOOL=$lt_OTOOL | |
18856 | ||
18857 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
18858 | OTOOL64=$lt_OTOOL64 | |
18859 | ||
1cf3d07d SE |
18860 | # Old archive suffix (normally "a"). |
18861 | libext=$libext | |
18862 | ||
18863 | # Shared library suffix (normally ".so"). | |
18864 | shrext_cmds=$lt_shrext_cmds | |
18865 | ||
18866 | # The commands to extract the exported symbol list from a shared archive. | |
18867 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
18868 | ||
18869 | # Variables whose values should be saved in libtool wrapper scripts and | |
18870 | # restored at link time. | |
18871 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
18872 | ||
18873 | # Do we need the "lib" prefix for modules? | |
18874 | need_lib_prefix=$need_lib_prefix | |
18875 | ||
18876 | # Do we need a version for libraries? | |
18877 | need_version=$need_version | |
18878 | ||
18879 | # Library versioning type. | |
18880 | version_type=$version_type | |
18881 | ||
18882 | # Shared library runtime path variable. | |
18883 | runpath_var=$runpath_var | |
18884 | ||
18885 | # Shared library path variable. | |
18886 | shlibpath_var=$shlibpath_var | |
18887 | ||
18888 | # Is shlibpath searched before the hard-coded library search path? | |
18889 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
18890 | ||
18891 | # Format of library name prefix. | |
18892 | libname_spec=$lt_libname_spec | |
18893 | ||
18894 | # List of archive names. First name is the real one, the rest are links. | |
18895 | # The last name is the one that the linker finds with -lNAME | |
18896 | library_names_spec=$lt_library_names_spec | |
18897 | ||
18898 | # The coded name of the library, if different from the real name. | |
18899 | soname_spec=$lt_soname_spec | |
18900 | ||
18901 | # Command to use after installation of a shared archive. | |
18902 | postinstall_cmds=$lt_postinstall_cmds | |
18903 | ||
18904 | # Command to use after uninstallation of a shared archive. | |
18905 | postuninstall_cmds=$lt_postuninstall_cmds | |
18906 | ||
18907 | # Commands used to finish a libtool library installation in a directory. | |
18908 | finish_cmds=$lt_finish_cmds | |
18909 | ||
18910 | # As "finish_cmds", except a single script fragment to be evaled but | |
18911 | # not shown. | |
18912 | finish_eval=$lt_finish_eval | |
18913 | ||
18914 | # Whether we should hardcode library paths into libraries. | |
18915 | hardcode_into_libs=$hardcode_into_libs | |
18916 | ||
18917 | # Compile-time system search path for libraries. | |
18918 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
18919 | ||
18920 | # Run-time system search path for libraries. | |
18921 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
18922 | ||
18923 | # Whether dlopen is supported. | |
18924 | dlopen_support=$enable_dlopen | |
18925 | ||
18926 | # Whether dlopen of programs is supported. | |
18927 | dlopen_self=$enable_dlopen_self | |
18928 | ||
18929 | # Whether dlopen of statically linked programs is supported. | |
18930 | dlopen_self_static=$enable_dlopen_self_static | |
18931 | ||
18932 | # Commands to strip libraries. | |
18933 | old_striplib=$lt_old_striplib | |
18934 | striplib=$lt_striplib | |
18935 | ||
18936 | ||
18937 | # The linker used to build libraries. | |
18938 | LD=$lt_LD | |
18939 | ||
18940 | # Commands used to build an old-style archive. | |
18941 | old_archive_cmds=$lt_old_archive_cmds | |
18942 | ||
18943 | # A language specific compiler. | |
18944 | CC=$lt_compiler | |
18945 | ||
18946 | # Is the compiler the GNU compiler? | |
18947 | with_gcc=$GCC | |
18948 | ||
18949 | # Compiler flag to turn off builtin functions. | |
18950 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
18951 | ||
18952 | # How to pass a linker flag through the compiler. | |
18953 | wl=$lt_lt_prog_compiler_wl | |
18954 | ||
18955 | # Additional compiler flags for building library objects. | |
18956 | pic_flag=$lt_lt_prog_compiler_pic | |
18957 | ||
18958 | # Compiler flag to prevent dynamic linking. | |
18959 | link_static_flag=$lt_lt_prog_compiler_static | |
18960 | ||
18961 | # Does compiler simultaneously support -c and -o options? | |
18962 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
18963 | ||
18964 | # Whether or not to add -lc for building shared libraries. | |
18965 | build_libtool_need_lc=$archive_cmds_need_lc | |
18966 | ||
18967 | # Whether or not to disallow shared libs when runtime libs are static. | |
18968 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
18969 | ||
18970 | # Compiler flag to allow reflexive dlopens. | |
18971 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
18972 | ||
18973 | # Compiler flag to generate shared objects directly from archives. | |
18974 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
18975 | ||
18976 | # Whether the compiler copes with passing no objects directly. | |
18977 | compiler_needs_object=$lt_compiler_needs_object | |
18978 | ||
18979 | # Create an old-style archive from a shared archive. | |
18980 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
18981 | ||
18982 | # Create a temporary old-style archive to link instead of a shared archive. | |
18983 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
18984 | ||
18985 | # Commands used to build a shared archive. | |
18986 | archive_cmds=$lt_archive_cmds | |
18987 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
18988 | ||
18989 | # Commands used to build a loadable module if different from building | |
18990 | # a shared archive. | |
18991 | module_cmds=$lt_module_cmds | |
18992 | module_expsym_cmds=$lt_module_expsym_cmds | |
18993 | ||
18994 | # Whether we are building with GNU ld or not. | |
18995 | with_gnu_ld=$lt_with_gnu_ld | |
18996 | ||
18997 | # Flag that allows shared libraries with undefined symbols to be built. | |
18998 | allow_undefined_flag=$lt_allow_undefined_flag | |
18999 | ||
19000 | # Flag that enforces no undefined symbols. | |
19001 | no_undefined_flag=$lt_no_undefined_flag | |
19002 | ||
19003 | # Flag to hardcode \$libdir into a binary during linking. | |
19004 | # This must work even if \$libdir does not exist | |
19005 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
19006 | ||
19007 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
19008 | # during linking. This must work even if \$libdir does not exist. | |
19009 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
19010 | ||
19011 | # Whether we need a single "-rpath" flag with a separated argument. | |
19012 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
19013 | ||
19014 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19015 | # DIR into the resulting binary. | |
19016 | hardcode_direct=$hardcode_direct | |
19017 | ||
19018 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19019 | # DIR into the resulting binary and the resulting library dependency is | |
19020 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19021 | # library is relocated. | |
19022 | hardcode_direct_absolute=$hardcode_direct_absolute | |
19023 | ||
19024 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
19025 | # into the resulting binary. | |
19026 | hardcode_minus_L=$hardcode_minus_L | |
19027 | ||
19028 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
19029 | # into the resulting binary. | |
19030 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
19031 | ||
19032 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
19033 | # into the library and all subsequent libraries and executables linked | |
19034 | # against it. | |
19035 | hardcode_automatic=$hardcode_automatic | |
19036 | ||
19037 | # Set to yes if linker adds runtime paths of dependent libraries | |
19038 | # to runtime path list. | |
19039 | inherit_rpath=$inherit_rpath | |
19040 | ||
19041 | # Whether libtool must link a program against all its dependency libraries. | |
19042 | link_all_deplibs=$link_all_deplibs | |
19043 | ||
19044 | # Fix the shell variable \$srcfile for the compiler. | |
19045 | fix_srcfile_path=$lt_fix_srcfile_path | |
19046 | ||
19047 | # Set to "yes" if exported symbols are required. | |
19048 | always_export_symbols=$always_export_symbols | |
19049 | ||
19050 | # The commands to list exported symbols. | |
19051 | export_symbols_cmds=$lt_export_symbols_cmds | |
19052 | ||
19053 | # Symbols that should not be listed in the preloaded symbols. | |
19054 | exclude_expsyms=$lt_exclude_expsyms | |
19055 | ||
19056 | # Symbols that must always be exported. | |
19057 | include_expsyms=$lt_include_expsyms | |
19058 | ||
19059 | # Commands necessary for linking programs (against libraries) with templates. | |
19060 | prelink_cmds=$lt_prelink_cmds | |
19061 | ||
19062 | # Specify filename containing input files. | |
19063 | file_list_spec=$lt_file_list_spec | |
19064 | ||
19065 | # How to hardcode a shared library path into an executable. | |
19066 | hardcode_action=$hardcode_action | |
19067 | ||
93e92f52 PG |
19068 | # The directories searched by this compiler when creating a shared library. |
19069 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
19070 | ||
1cf3d07d SE |
19071 | # Dependencies to place before and after the objects being linked to |
19072 | # create a shared library. | |
19073 | predep_objects=$lt_predep_objects | |
19074 | postdep_objects=$lt_postdep_objects | |
19075 | predeps=$lt_predeps | |
19076 | postdeps=$lt_postdeps | |
19077 | ||
19078 | # The library search path used internally by the compiler when linking | |
19079 | # a shared library. | |
19080 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
19081 | ||
19082 | # ### END LIBTOOL CONFIG | |
19083 | ||
19084 | _LT_EOF | |
19085 | ||
19086 | case $host_os in | |
19087 | aix3*) | |
19088 | cat <<\_LT_EOF >> "$cfgfile" | |
19089 | # AIX sometimes has problems with the GCC collect2 program. For some | |
19090 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
19091 | # vanish in a puff of smoke. | |
19092 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
19093 | COLLECT_NAMES= | |
19094 | export COLLECT_NAMES | |
19095 | fi | |
19096 | _LT_EOF | |
19097 | ;; | |
19098 | esac | |
19099 | ||
19100 | ||
19101 | ltmain="$ac_aux_dir/ltmain.sh" | |
19102 | ||
19103 | ||
19104 | # We use sed instead of cat because bash on DJGPP gets confused if | |
19105 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
19106 | # text mode, it properly converts lines to CR/LF. This bash problem | |
19107 | # is reportedly fixed, but why not run on old versions too? | |
19108 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
19109 | || (rm -f "$cfgfile"; exit 1) | |
19110 | ||
19111 | case $xsi_shell in | |
19112 | yes) | |
19113 | cat << \_LT_EOF >> "$cfgfile" | |
93e92f52 | 19114 | |
1cf3d07d SE |
19115 | # func_dirname file append nondir_replacement |
19116 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
19117 | # otherwise set result to NONDIR_REPLACEMENT. | |
19118 | func_dirname () | |
19119 | { | |
19120 | case ${1} in | |
19121 | */*) func_dirname_result="${1%/*}${2}" ;; | |
19122 | * ) func_dirname_result="${3}" ;; | |
19123 | esac | |
19124 | } | |
19125 | ||
19126 | # func_basename file | |
19127 | func_basename () | |
19128 | { | |
19129 | func_basename_result="${1##*/}" | |
19130 | } | |
19131 | ||
93e92f52 PG |
19132 | # func_dirname_and_basename file append nondir_replacement |
19133 | # perform func_basename and func_dirname in a single function | |
19134 | # call: | |
19135 | # dirname: Compute the dirname of FILE. If nonempty, | |
19136 | # add APPEND to the result, otherwise set result | |
19137 | # to NONDIR_REPLACEMENT. | |
19138 | # value returned in "$func_dirname_result" | |
19139 | # basename: Compute filename of FILE. | |
19140 | # value retuned in "$func_basename_result" | |
19141 | # Implementation must be kept synchronized with func_dirname | |
19142 | # and func_basename. For efficiency, we do not delegate to | |
19143 | # those functions but instead duplicate the functionality here. | |
19144 | func_dirname_and_basename () | |
19145 | { | |
19146 | case ${1} in | |
19147 | */*) func_dirname_result="${1%/*}${2}" ;; | |
19148 | * ) func_dirname_result="${3}" ;; | |
19149 | esac | |
19150 | func_basename_result="${1##*/}" | |
19151 | } | |
19152 | ||
1cf3d07d SE |
19153 | # func_stripname prefix suffix name |
19154 | # strip PREFIX and SUFFIX off of NAME. | |
19155 | # PREFIX and SUFFIX must not contain globbing or regex special | |
19156 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
19157 | # dot (in which case that matches only a dot). | |
19158 | func_stripname () | |
19159 | { | |
19160 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
19161 | # positional parameters, so assign one to ordinary parameter first. | |
19162 | func_stripname_result=${3} | |
19163 | func_stripname_result=${func_stripname_result#"${1}"} | |
19164 | func_stripname_result=${func_stripname_result%"${2}"} | |
19165 | } | |
19166 | ||
19167 | # func_opt_split | |
19168 | func_opt_split () | |
19169 | { | |
19170 | func_opt_split_opt=${1%%=*} | |
19171 | func_opt_split_arg=${1#*=} | |
19172 | } | |
19173 | ||
19174 | # func_lo2o object | |
19175 | func_lo2o () | |
19176 | { | |
19177 | case ${1} in | |
19178 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
19179 | *) func_lo2o_result=${1} ;; | |
19180 | esac | |
19181 | } | |
93e92f52 PG |
19182 | |
19183 | # func_xform libobj-or-source | |
19184 | func_xform () | |
19185 | { | |
19186 | func_xform_result=${1%.*}.lo | |
19187 | } | |
19188 | ||
19189 | # func_arith arithmetic-term... | |
19190 | func_arith () | |
19191 | { | |
19192 | func_arith_result=$(( $* )) | |
19193 | } | |
19194 | ||
19195 | # func_len string | |
19196 | # STRING may not start with a hyphen. | |
19197 | func_len () | |
19198 | { | |
19199 | func_len_result=${#1} | |
19200 | } | |
19201 | ||
1cf3d07d SE |
19202 | _LT_EOF |
19203 | ;; | |
19204 | *) # Bourne compatible functions. | |
19205 | cat << \_LT_EOF >> "$cfgfile" | |
93e92f52 | 19206 | |
1cf3d07d SE |
19207 | # func_dirname file append nondir_replacement |
19208 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
19209 | # otherwise set result to NONDIR_REPLACEMENT. | |
19210 | func_dirname () | |
19211 | { | |
19212 | # Extract subdirectory from the argument. | |
19213 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
19214 | if test "X$func_dirname_result" = "X${1}"; then | |
19215 | func_dirname_result="${3}" | |
19216 | else | |
19217 | func_dirname_result="$func_dirname_result${2}" | |
19218 | fi | |
19219 | } | |
19220 | ||
19221 | # func_basename file | |
19222 | func_basename () | |
19223 | { | |
19224 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
19225 | } | |
19226 | ||
93e92f52 | 19227 | |
1cf3d07d SE |
19228 | # func_stripname prefix suffix name |
19229 | # strip PREFIX and SUFFIX off of NAME. | |
19230 | # PREFIX and SUFFIX must not contain globbing or regex special | |
19231 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
19232 | # dot (in which case that matches only a dot). | |
19233 | # func_strip_suffix prefix name | |
19234 | func_stripname () | |
19235 | { | |
19236 | case ${2} in | |
19237 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
19238 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
19239 | *) func_stripname_result=`$ECHO "X${3}" \ | |
19240 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
19241 | esac | |
19242 | } | |
19243 | ||
19244 | # sed scripts: | |
19245 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
19246 | my_sed_long_arg='1s/^-[^=]*=//' | |
19247 | ||
19248 | # func_opt_split | |
19249 | func_opt_split () | |
19250 | { | |
19251 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
19252 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
19253 | } | |
19254 | ||
19255 | # func_lo2o object | |
19256 | func_lo2o () | |
19257 | { | |
19258 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
19259 | } | |
93e92f52 PG |
19260 | |
19261 | # func_xform libobj-or-source | |
19262 | func_xform () | |
19263 | { | |
19264 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
19265 | } | |
19266 | ||
19267 | # func_arith arithmetic-term... | |
19268 | func_arith () | |
19269 | { | |
19270 | func_arith_result=`expr "$@"` | |
19271 | } | |
19272 | ||
19273 | # func_len string | |
19274 | # STRING may not start with a hyphen. | |
19275 | func_len () | |
19276 | { | |
19277 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
19278 | } | |
19279 | ||
1cf3d07d SE |
19280 | _LT_EOF |
19281 | esac | |
19282 | ||
19283 | case $lt_shell_append in | |
19284 | yes) | |
19285 | cat << \_LT_EOF >> "$cfgfile" | |
19286 | ||
19287 | # func_append var value | |
19288 | # Append VALUE to the end of shell variable VAR. | |
19289 | func_append () | |
19290 | { | |
19291 | eval "$1+=\$2" | |
19292 | } | |
19293 | _LT_EOF | |
19294 | ;; | |
19295 | *) | |
19296 | cat << \_LT_EOF >> "$cfgfile" | |
19297 | ||
19298 | # func_append var value | |
19299 | # Append VALUE to the end of shell variable VAR. | |
19300 | func_append () | |
19301 | { | |
19302 | eval "$1=\$$1\$2" | |
19303 | } | |
93e92f52 | 19304 | |
1cf3d07d SE |
19305 | _LT_EOF |
19306 | ;; | |
19307 | esac | |
19308 | ||
19309 | ||
19310 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
19311 | || (rm -f "$cfgfile"; exit 1) | |
19312 | ||
19313 | mv -f "$cfgfile" "$ofile" || | |
19314 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
19315 | chmod +x "$ofile" | |
19316 | ||
19317 | ||
19318 | cat <<_LT_EOF >> "$ofile" | |
19319 | ||
19320 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
19321 | ||
19322 | # The linker used to build libraries. | |
19323 | LD=$lt_LD_CXX | |
19324 | ||
19325 | # Commands used to build an old-style archive. | |
19326 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
19327 | ||
19328 | # A language specific compiler. | |
19329 | CC=$lt_compiler_CXX | |
19330 | ||
19331 | # Is the compiler the GNU compiler? | |
19332 | with_gcc=$GCC_CXX | |
19333 | ||
19334 | # Compiler flag to turn off builtin functions. | |
19335 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
19336 | ||
19337 | # How to pass a linker flag through the compiler. | |
19338 | wl=$lt_lt_prog_compiler_wl_CXX | |
19339 | ||
19340 | # Additional compiler flags for building library objects. | |
19341 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
19342 | ||
19343 | # Compiler flag to prevent dynamic linking. | |
19344 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
19345 | ||
19346 | # Does compiler simultaneously support -c and -o options? | |
19347 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
19348 | ||
19349 | # Whether or not to add -lc for building shared libraries. | |
19350 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
19351 | ||
19352 | # Whether or not to disallow shared libs when runtime libs are static. | |
19353 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
19354 | ||
19355 | # Compiler flag to allow reflexive dlopens. | |
19356 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
19357 | ||
19358 | # Compiler flag to generate shared objects directly from archives. | |
19359 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
19360 | ||
19361 | # Whether the compiler copes with passing no objects directly. | |
19362 | compiler_needs_object=$lt_compiler_needs_object_CXX | |
19363 | ||
19364 | # Create an old-style archive from a shared archive. | |
19365 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
19366 | ||
19367 | # Create a temporary old-style archive to link instead of a shared archive. | |
19368 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
19369 | ||
19370 | # Commands used to build a shared archive. | |
19371 | archive_cmds=$lt_archive_cmds_CXX | |
19372 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
19373 | ||
19374 | # Commands used to build a loadable module if different from building | |
19375 | # a shared archive. | |
19376 | module_cmds=$lt_module_cmds_CXX | |
19377 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
19378 | ||
19379 | # Whether we are building with GNU ld or not. | |
19380 | with_gnu_ld=$lt_with_gnu_ld_CXX | |
19381 | ||
19382 | # Flag that allows shared libraries with undefined symbols to be built. | |
19383 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
19384 | ||
19385 | # Flag that enforces no undefined symbols. | |
19386 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
19387 | ||
19388 | # Flag to hardcode \$libdir into a binary during linking. | |
19389 | # This must work even if \$libdir does not exist | |
19390 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
19391 | ||
19392 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
19393 | # during linking. This must work even if \$libdir does not exist. | |
19394 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
19395 | ||
19396 | # Whether we need a single "-rpath" flag with a separated argument. | |
19397 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
19398 | ||
19399 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19400 | # DIR into the resulting binary. | |
19401 | hardcode_direct=$hardcode_direct_CXX | |
19402 | ||
19403 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19404 | # DIR into the resulting binary and the resulting library dependency is | |
19405 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19406 | # library is relocated. | |
19407 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
19408 | ||
19409 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
19410 | # into the resulting binary. | |
19411 | hardcode_minus_L=$hardcode_minus_L_CXX | |
19412 | ||
19413 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
19414 | # into the resulting binary. | |
19415 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
19416 | ||
19417 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
19418 | # into the library and all subsequent libraries and executables linked | |
19419 | # against it. | |
19420 | hardcode_automatic=$hardcode_automatic_CXX | |
19421 | ||
19422 | # Set to yes if linker adds runtime paths of dependent libraries | |
19423 | # to runtime path list. | |
19424 | inherit_rpath=$inherit_rpath_CXX | |
19425 | ||
19426 | # Whether libtool must link a program against all its dependency libraries. | |
19427 | link_all_deplibs=$link_all_deplibs_CXX | |
19428 | ||
19429 | # Fix the shell variable \$srcfile for the compiler. | |
19430 | fix_srcfile_path=$lt_fix_srcfile_path_CXX | |
19431 | ||
19432 | # Set to "yes" if exported symbols are required. | |
19433 | always_export_symbols=$always_export_symbols_CXX | |
19434 | ||
19435 | # The commands to list exported symbols. | |
19436 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
19437 | ||
19438 | # Symbols that should not be listed in the preloaded symbols. | |
19439 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
19440 | ||
19441 | # Symbols that must always be exported. | |
19442 | include_expsyms=$lt_include_expsyms_CXX | |
19443 | ||
19444 | # Commands necessary for linking programs (against libraries) with templates. | |
19445 | prelink_cmds=$lt_prelink_cmds_CXX | |
19446 | ||
19447 | # Specify filename containing input files. | |
19448 | file_list_spec=$lt_file_list_spec_CXX | |
19449 | ||
19450 | # How to hardcode a shared library path into an executable. | |
19451 | hardcode_action=$hardcode_action_CXX | |
19452 | ||
93e92f52 PG |
19453 | # The directories searched by this compiler when creating a shared library. |
19454 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
19455 | ||
1cf3d07d SE |
19456 | # Dependencies to place before and after the objects being linked to |
19457 | # create a shared library. | |
19458 | predep_objects=$lt_predep_objects_CXX | |
19459 | postdep_objects=$lt_postdep_objects_CXX | |
19460 | predeps=$lt_predeps_CXX | |
19461 | postdeps=$lt_postdeps_CXX | |
19462 | ||
19463 | # The library search path used internally by the compiler when linking | |
19464 | # a shared library. | |
19465 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
19466 | ||
19467 | # ### END LIBTOOL TAG CONFIG: CXX | |
19468 | _LT_EOF | |
19469 | ||
bf9a420e | 19470 | ;; |
47935194 NN |
19471 | esac |
19472 | done | |
19473 | _ACEOF | |
19474 | ||
19475 | cat >>$CONFIG_STATUS <<\_ACEOF | |
19476 | ||
19477 | { (exit 0); exit 0; } | |
19478 | _ACEOF | |
1530be84 | 19479 | chmod +x $CONFIG_STATUS |
47935194 NN |
19480 | ac_clean_files=$ac_clean_files_save |
19481 | ||
19482 | ||
19483 | # configure is writing to config.log, and then calls config.status. | |
19484 | # config.status does its own redirection, appending to config.log. | |
19485 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
19486 | # by configure, so config.status won't be able to write to it; its | |
19487 | # output is simply discarded. So we exec the FD to /dev/null, | |
19488 | # effectively closing config.log, so it can be properly (re)opened and | |
19489 | # appended to by config.status. When coming back to configure, we | |
19490 | # need to make the FD available again. | |
19491 | if test "$no_create" != yes; then | |
19492 | ac_cs_success=: | |
19493 | ac_config_status_args= | |
19494 | test "$silent" = yes && | |
19495 | ac_config_status_args="$ac_config_status_args --quiet" | |
19496 | exec 5>/dev/null | |
19497 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
19498 | exec 5>>config.log | |
19499 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
19500 | # would make configure fail if this is the last instruction. | |
19501 | $ac_cs_success || { (exit 1); exit 1; } | |
19502 | fi | |
1530be84 | 19503 |