Commit | Line | Data |
---|---|---|
50850385 TJ |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
e61fbf76 | 3 | # Generated by Autoconf 2.52. |
50850385 | 4 | # |
e61fbf76 | 5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
50850385 TJ |
6 | # Free Software Foundation, Inc. |
7 | # This configure script is free software; the Free Software Foundation | |
8 | # gives unlimited permission to copy, distribute and modify it. | |
9 | ||
50850385 TJ |
10 | # Check that we are running under the correct shell. |
11 | SHELL=${CONFIG_SHELL-/bin/sh} | |
12 | ||
13 | case X$ECHO in | |
14 | X*--fallback-echo) | |
15 | # Remove one level of quotation (which was required for Make). | |
16 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
17 | ;; | |
18 | esac | |
19 | ||
20 | echo=${ECHO-echo} | |
21 | if test "X$1" = X--no-reexec; then | |
22 | # Discard the --no-reexec flag, and continue. | |
23 | shift | |
24 | elif test "X$1" = X--fallback-echo; then | |
25 | # Avoid inline document here, it may be left over | |
26 | : | |
27 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then | |
28 | # Yippee, $echo works! | |
29 | : | |
30 | else | |
31 | # Restart under the correct shell. | |
32 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
33 | fi | |
34 | ||
35 | if test "X$1" = X--fallback-echo; then | |
36 | # used as fallback echo | |
37 | shift | |
38 | cat <<EOF | |
39 | $* | |
40 | EOF | |
41 | exit 0 | |
42 | fi | |
43 | ||
44 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
45 | # if CDPATH is set. | |
46 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | |
47 | ||
48 | if test -z "$ECHO"; then | |
49 | if test "X${echo_test_string+set}" != Xset; then | |
50 | # find a string as large as possible, as long as the shell can cope with it | |
51 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
52 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
53 | if (echo_test_string="`eval $cmd`") 2>/dev/null && | |
54 | echo_test_string="`eval $cmd`" && | |
55 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | |
56 | then | |
57 | break | |
58 | fi | |
59 | done | |
60 | fi | |
61 | ||
62 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
63 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
64 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
65 | : | |
66 | else | |
67 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
68 | # backslashes. This makes it impossible to quote backslashes using | |
69 | # echo "$something" | sed 's/\\/\\\\/g' | |
70 | # | |
71 | # So, first we look for a working echo in the user's PATH. | |
72 | ||
73 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
74 | for dir in $PATH /usr/ucb; do | |
75 | IFS="$lt_save_ifs" | |
76 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
77 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
78 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
79 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
80 | echo="$dir/echo" | |
81 | break | |
82 | fi | |
83 | done | |
84 | IFS="$lt_save_ifs" | |
85 | ||
86 | if test "X$echo" = Xecho; then | |
87 | # We didn't find a better echo, so look for alternatives. | |
88 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | |
89 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | |
90 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
91 | # This shell has a builtin print -r that does the trick. | |
92 | echo='print -r' | |
93 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | |
94 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
95 | # If we have ksh, try running configure again with it. | |
96 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
97 | export ORIGINAL_CONFIG_SHELL | |
98 | CONFIG_SHELL=/bin/ksh | |
99 | export CONFIG_SHELL | |
100 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
101 | else | |
102 | # Try using printf. | |
103 | echo='printf %s\n' | |
104 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
105 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
106 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
107 | # Cool, printf works | |
108 | : | |
109 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
110 | test "X$echo_testing_string" = 'X\t' && | |
111 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
112 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
113 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
114 | export CONFIG_SHELL | |
115 | SHELL="$CONFIG_SHELL" | |
116 | export SHELL | |
117 | echo="$CONFIG_SHELL $0 --fallback-echo" | |
118 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
119 | test "X$echo_testing_string" = 'X\t' && | |
120 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
121 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
122 | echo="$CONFIG_SHELL $0 --fallback-echo" | |
123 | else | |
124 | # maybe with a smaller string... | |
125 | prev=: | |
126 | ||
127 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
128 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | |
129 | then | |
130 | break | |
131 | fi | |
132 | prev="$cmd" | |
133 | done | |
134 | ||
135 | if test "$prev" != 'sed 50q "$0"'; then | |
136 | echo_test_string=`eval $prev` | |
137 | export echo_test_string | |
138 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
139 | else | |
140 | # Oops. We lost completely, so just stick with echo. | |
141 | echo=echo | |
142 | fi | |
143 | fi | |
144 | fi | |
145 | fi | |
146 | fi | |
147 | fi | |
148 | ||
149 | # Copy echo and quote the copy suitably for passing to libtool from | |
150 | # the Makefile, instead of quoting the original, which is used later. | |
151 | ECHO=$echo | |
152 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
153 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
154 | fi | |
155 | ||
50850385 TJ |
156 | # Check that we are running under the correct shell. |
157 | SHELL=${CONFIG_SHELL-/bin/sh} | |
158 | ||
159 | case X$ECHO in | |
160 | X*--fallback-echo) | |
161 | # Remove one level of quotation (which was required for Make). | |
162 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
163 | ;; | |
164 | esac | |
165 | ||
166 | echo=${ECHO-echo} | |
167 | if test "X$1" = X--no-reexec; then | |
168 | # Discard the --no-reexec flag, and continue. | |
169 | shift | |
170 | elif test "X$1" = X--fallback-echo; then | |
171 | # Avoid inline document here, it may be left over | |
172 | : | |
173 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then | |
174 | # Yippee, $echo works! | |
175 | : | |
176 | else | |
177 | # Restart under the correct shell. | |
178 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
179 | fi | |
180 | ||
181 | if test "X$1" = X--fallback-echo; then | |
182 | # used as fallback echo | |
183 | shift | |
184 | cat <<EOF | |
185 | $* | |
186 | EOF | |
187 | exit 0 | |
188 | fi | |
189 | ||
190 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
191 | # if CDPATH is set. | |
192 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | |
193 | ||
194 | if test -z "$ECHO"; then | |
195 | if test "X${echo_test_string+set}" != Xset; then | |
196 | # find a string as large as possible, as long as the shell can cope with it | |
197 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
198 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
199 | if (echo_test_string="`eval $cmd`") 2>/dev/null && | |
200 | echo_test_string="`eval $cmd`" && | |
201 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | |
202 | then | |
203 | break | |
204 | fi | |
205 | done | |
206 | fi | |
207 | ||
208 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
209 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
210 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
211 | : | |
212 | else | |
213 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
214 | # backslashes. This makes it impossible to quote backslashes using | |
215 | # echo "$something" | sed 's/\\/\\\\/g' | |
216 | # | |
217 | # So, first we look for a working echo in the user's PATH. | |
218 | ||
219 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
220 | for dir in $PATH /usr/ucb; do | |
221 | IFS="$lt_save_ifs" | |
222 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
223 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
224 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
225 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
226 | echo="$dir/echo" | |
227 | break | |
228 | fi | |
229 | done | |
230 | IFS="$lt_save_ifs" | |
231 | ||
232 | if test "X$echo" = Xecho; then | |
233 | # We didn't find a better echo, so look for alternatives. | |
234 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | |
235 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | |
236 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
237 | # This shell has a builtin print -r that does the trick. | |
238 | echo='print -r' | |
239 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | |
240 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
241 | # If we have ksh, try running configure again with it. | |
242 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
243 | export ORIGINAL_CONFIG_SHELL | |
244 | CONFIG_SHELL=/bin/ksh | |
245 | export CONFIG_SHELL | |
246 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
247 | else | |
248 | # Try using printf. | |
249 | echo='printf %s\n' | |
250 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
251 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
252 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
253 | # Cool, printf works | |
254 | : | |
255 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
256 | test "X$echo_testing_string" = 'X\t' && | |
257 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
258 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
259 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
260 | export CONFIG_SHELL | |
261 | SHELL="$CONFIG_SHELL" | |
262 | export SHELL | |
263 | echo="$CONFIG_SHELL $0 --fallback-echo" | |
264 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
265 | test "X$echo_testing_string" = 'X\t' && | |
266 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
267 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
268 | echo="$CONFIG_SHELL $0 --fallback-echo" | |
269 | else | |
270 | # maybe with a smaller string... | |
271 | prev=: | |
272 | ||
273 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
274 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | |
275 | then | |
276 | break | |
277 | fi | |
278 | prev="$cmd" | |
279 | done | |
280 | ||
281 | if test "$prev" != 'sed 50q "$0"'; then | |
282 | echo_test_string=`eval $prev` | |
283 | export echo_test_string | |
284 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
285 | else | |
286 | # Oops. We lost completely, so just stick with echo. | |
287 | echo=echo | |
288 | fi | |
289 | fi | |
290 | fi | |
291 | fi | |
292 | fi | |
293 | fi | |
294 | ||
295 | # Copy echo and quote the copy suitably for passing to libtool from | |
296 | # the Makefile, instead of quoting the original, which is used later. | |
297 | ECHO=$echo | |
298 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
299 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
300 | fi | |
301 | ||
e61fbf76 TJ |
302 | # Avoid depending upon Character Ranges. |
303 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
304 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
305 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
306 | as_cr_digits='0123456789' | |
307 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
50850385 | 308 | |
e61fbf76 TJ |
309 | # Sed expression to map a string onto a valid variable name. |
310 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
50850385 | 311 | |
e61fbf76 TJ |
312 | # Sed expression to map a string onto a valid CPP name. |
313 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
50850385 TJ |
314 | |
315 | # Be Bourne compatible | |
316 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
317 | emulate sh | |
318 | NULLCMD=: | |
319 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
320 | set -o posix | |
321 | fi | |
322 | ||
50850385 | 323 | # Name of the executable. |
e61fbf76 | 324 | as_me=`echo "$0" |sed 's,.*[\\/],,'` |
50850385 TJ |
325 | |
326 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
327 | as_expr=expr | |
328 | else | |
329 | as_expr=false | |
330 | fi | |
331 | ||
332 | rm -f conf$$ conf$$.exe conf$$.file | |
333 | echo >conf$$.file | |
334 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
335 | # We could just check for DJGPP; but this test a) works b) is more generic | |
336 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
337 | if test -f conf$$.exe; then | |
338 | # Don't use ln at all; we don't have any links | |
339 | as_ln_s='cp -p' | |
340 | else | |
341 | as_ln_s='ln -s' | |
342 | fi | |
343 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
344 | as_ln_s=ln | |
345 | else | |
346 | as_ln_s='cp -p' | |
347 | fi | |
348 | rm -f conf$$ conf$$.exe conf$$.file | |
349 | ||
350 | as_executable_p="test -f" | |
351 | ||
e61fbf76 TJ |
352 | # Support unset when possible. |
353 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
354 | as_unset=unset | |
355 | else | |
356 | as_unset=false | |
357 | fi | |
50850385 | 358 | |
e61fbf76 TJ |
359 | # NLS nuisances. |
360 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
361 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
362 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
363 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
364 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
365 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
366 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
367 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
50850385 TJ |
368 | |
369 | # IFS | |
370 | # We need space, tab and new line, in precisely that order. | |
371 | as_nl=' | |
372 | ' | |
373 | IFS=" $as_nl" | |
374 | ||
375 | # CDPATH. | |
e61fbf76 | 376 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } |
50850385 TJ |
377 | |
378 | # Name of the host. | |
379 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
380 | # so uname gets run too. | |
381 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
382 | ||
383 | exec 6>&1 | |
384 | ||
385 | # | |
386 | # Initializations. | |
387 | # | |
388 | ac_default_prefix=/usr/local | |
389 | cross_compiling=no | |
390 | subdirs= | |
e61fbf76 | 391 | MFLAGS= MAKEFLAGS= |
50850385 TJ |
392 | SHELL=${CONFIG_SHELL-/bin/sh} |
393 | ||
394 | # Maximum number of lines to put in a shell here document. | |
395 | # This variable seems obsolete. It should probably be removed, and | |
396 | # only ac_max_sed_lines should be used. | |
397 | : ${ac_max_here_lines=38} | |
398 | ||
50850385 TJ |
399 | ac_unique_file="acinclude.m4" |
400 | ac_default_prefix=/usr/local | |
50850385 TJ |
401 | |
402 | # Initialize some variables set by options. | |
403 | ac_init_help= | |
404 | ac_init_version=false | |
405 | # The variables have the same names as the options, with | |
406 | # dashes changed to underlines. | |
407 | cache_file=/dev/null | |
408 | exec_prefix=NONE | |
409 | no_create= | |
410 | no_recursion= | |
411 | prefix=NONE | |
412 | program_prefix=NONE | |
413 | program_suffix=NONE | |
414 | program_transform_name=s,x,x, | |
415 | silent= | |
416 | site= | |
417 | srcdir= | |
418 | verbose= | |
419 | x_includes=NONE | |
420 | x_libraries=NONE | |
421 | ||
422 | # Installation directory options. | |
423 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
424 | # and all the variables that are supposed to be based on exec_prefix | |
425 | # by default will actually change. | |
426 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
427 | bindir='${exec_prefix}/bin' | |
428 | sbindir='${exec_prefix}/sbin' | |
429 | libexecdir='${exec_prefix}/libexec' | |
430 | datadir='${prefix}/share' | |
431 | sysconfdir='${prefix}/etc' | |
432 | sharedstatedir='${prefix}/com' | |
433 | localstatedir='${prefix}/var' | |
434 | libdir='${exec_prefix}/lib' | |
435 | includedir='${prefix}/include' | |
436 | oldincludedir='/usr/include' | |
437 | infodir='${prefix}/info' | |
438 | mandir='${prefix}/man' | |
439 | ||
e61fbf76 TJ |
440 | # Identity of this package. |
441 | PACKAGE_NAME= | |
442 | PACKAGE_TARNAME= | |
443 | PACKAGE_VERSION= | |
444 | PACKAGE_STRING= | |
445 | PACKAGE_BUGREPORT= | |
446 | ||
50850385 TJ |
447 | ac_prev= |
448 | for ac_option | |
449 | do | |
450 | # If the previous option needs an argument, assign it. | |
451 | if test -n "$ac_prev"; then | |
452 | eval "$ac_prev=\$ac_option" | |
453 | ac_prev= | |
454 | continue | |
455 | fi | |
456 | ||
457 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
458 | ||
459 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
460 | ||
461 | case $ac_option in | |
462 | ||
463 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
464 | ac_prev=bindir ;; | |
465 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
466 | bindir=$ac_optarg ;; | |
467 | ||
468 | -build | --build | --buil | --bui | --bu) | |
469 | ac_prev=build_alias ;; | |
470 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
471 | build_alias=$ac_optarg ;; | |
472 | ||
473 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
474 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
475 | ac_prev=cache_file ;; | |
476 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
477 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
478 | cache_file=$ac_optarg ;; | |
479 | ||
480 | --config-cache | -C) | |
481 | cache_file=config.cache ;; | |
482 | ||
483 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
484 | ac_prev=datadir ;; | |
485 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
486 | | --da=*) | |
487 | datadir=$ac_optarg ;; | |
488 | ||
489 | -disable-* | --disable-*) | |
490 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
491 | # Reject names that are not valid shell variable names. | |
492 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
493 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
494 | { (exit 1); exit 1; }; } | |
495 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
496 | eval "enable_$ac_feature=no" ;; | |
497 | ||
498 | -enable-* | --enable-*) | |
499 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
500 | # Reject names that are not valid shell variable names. | |
501 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
502 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
503 | { (exit 1); exit 1; }; } | |
504 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
505 | case $ac_option in | |
506 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
507 | *) ac_optarg=yes ;; | |
508 | esac | |
509 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
510 | ||
511 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
512 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
513 | | --exec | --exe | --ex) | |
514 | ac_prev=exec_prefix ;; | |
515 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
516 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
517 | | --exec=* | --exe=* | --ex=*) | |
518 | exec_prefix=$ac_optarg ;; | |
519 | ||
520 | -gas | --gas | --ga | --g) | |
521 | # Obsolete; use --with-gas. | |
522 | with_gas=yes ;; | |
523 | ||
524 | -help | --help | --hel | --he | -h) | |
525 | ac_init_help=long ;; | |
526 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
527 | ac_init_help=recursive ;; | |
528 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
529 | ac_init_help=short ;; | |
530 | ||
531 | -host | --host | --hos | --ho) | |
532 | ac_prev=host_alias ;; | |
533 | -host=* | --host=* | --hos=* | --ho=*) | |
534 | host_alias=$ac_optarg ;; | |
535 | ||
536 | -includedir | --includedir | --includedi | --included | --include \ | |
537 | | --includ | --inclu | --incl | --inc) | |
538 | ac_prev=includedir ;; | |
539 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
540 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
541 | includedir=$ac_optarg ;; | |
542 | ||
543 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
544 | ac_prev=infodir ;; | |
545 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
546 | infodir=$ac_optarg ;; | |
547 | ||
548 | -libdir | --libdir | --libdi | --libd) | |
549 | ac_prev=libdir ;; | |
550 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
551 | libdir=$ac_optarg ;; | |
552 | ||
553 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
554 | | --libexe | --libex | --libe) | |
555 | ac_prev=libexecdir ;; | |
556 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
557 | | --libexe=* | --libex=* | --libe=*) | |
558 | libexecdir=$ac_optarg ;; | |
559 | ||
560 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
561 | | --localstate | --localstat | --localsta | --localst \ | |
562 | | --locals | --local | --loca | --loc | --lo) | |
563 | ac_prev=localstatedir ;; | |
564 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
565 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
566 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
567 | localstatedir=$ac_optarg ;; | |
568 | ||
569 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
570 | ac_prev=mandir ;; | |
571 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
572 | mandir=$ac_optarg ;; | |
573 | ||
574 | -nfp | --nfp | --nf) | |
575 | # Obsolete; use --without-fp. | |
576 | with_fp=no ;; | |
577 | ||
578 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
e61fbf76 | 579 | | --no-cr | --no-c) |
50850385 TJ |
580 | no_create=yes ;; |
581 | ||
582 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
583 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
584 | no_recursion=yes ;; | |
585 | ||
586 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
587 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
588 | | --oldin | --oldi | --old | --ol | --o) | |
589 | ac_prev=oldincludedir ;; | |
590 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
591 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
592 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
593 | oldincludedir=$ac_optarg ;; | |
594 | ||
595 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
596 | ac_prev=prefix ;; | |
597 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
598 | prefix=$ac_optarg ;; | |
599 | ||
600 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
601 | | --program-pre | --program-pr | --program-p) | |
602 | ac_prev=program_prefix ;; | |
603 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
604 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
605 | program_prefix=$ac_optarg ;; | |
606 | ||
607 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
608 | | --program-suf | --program-su | --program-s) | |
609 | ac_prev=program_suffix ;; | |
610 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
611 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
612 | program_suffix=$ac_optarg ;; | |
613 | ||
614 | -program-transform-name | --program-transform-name \ | |
615 | | --program-transform-nam | --program-transform-na \ | |
616 | | --program-transform-n | --program-transform- \ | |
617 | | --program-transform | --program-transfor \ | |
618 | | --program-transfo | --program-transf \ | |
619 | | --program-trans | --program-tran \ | |
620 | | --progr-tra | --program-tr | --program-t) | |
621 | ac_prev=program_transform_name ;; | |
622 | -program-transform-name=* | --program-transform-name=* \ | |
623 | | --program-transform-nam=* | --program-transform-na=* \ | |
624 | | --program-transform-n=* | --program-transform-=* \ | |
625 | | --program-transform=* | --program-transfor=* \ | |
626 | | --program-transfo=* | --program-transf=* \ | |
627 | | --program-trans=* | --program-tran=* \ | |
628 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
629 | program_transform_name=$ac_optarg ;; | |
630 | ||
631 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
632 | | -silent | --silent | --silen | --sile | --sil) | |
633 | silent=yes ;; | |
634 | ||
635 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
636 | ac_prev=sbindir ;; | |
637 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
638 | | --sbi=* | --sb=*) | |
639 | sbindir=$ac_optarg ;; | |
640 | ||
641 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
642 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
643 | | --sharedst | --shareds | --shared | --share | --shar \ | |
644 | | --sha | --sh) | |
645 | ac_prev=sharedstatedir ;; | |
646 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
647 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
648 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
649 | | --sha=* | --sh=*) | |
650 | sharedstatedir=$ac_optarg ;; | |
651 | ||
652 | -site | --site | --sit) | |
653 | ac_prev=site ;; | |
654 | -site=* | --site=* | --sit=*) | |
655 | site=$ac_optarg ;; | |
656 | ||
657 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
658 | ac_prev=srcdir ;; | |
659 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
660 | srcdir=$ac_optarg ;; | |
661 | ||
662 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
663 | | --syscon | --sysco | --sysc | --sys | --sy) | |
664 | ac_prev=sysconfdir ;; | |
665 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
666 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
667 | sysconfdir=$ac_optarg ;; | |
668 | ||
669 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
670 | ac_prev=target_alias ;; | |
671 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
672 | target_alias=$ac_optarg ;; | |
673 | ||
674 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
675 | verbose=yes ;; | |
676 | ||
677 | -version | --version | --versio | --versi | --vers | -V) | |
678 | ac_init_version=: ;; | |
679 | ||
680 | -with-* | --with-*) | |
681 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
682 | # Reject names that are not valid shell variable names. | |
683 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
684 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
685 | { (exit 1); exit 1; }; } | |
686 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
687 | case $ac_option in | |
688 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
689 | *) ac_optarg=yes ;; | |
690 | esac | |
691 | eval "with_$ac_package='$ac_optarg'" ;; | |
692 | ||
693 | -without-* | --without-*) | |
694 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
695 | # Reject names that are not valid shell variable names. | |
696 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
697 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
698 | { (exit 1); exit 1; }; } | |
699 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
700 | eval "with_$ac_package=no" ;; | |
701 | ||
702 | --x) | |
703 | # Obsolete; use --with-x. | |
704 | with_x=yes ;; | |
705 | ||
706 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
707 | | --x-incl | --x-inc | --x-in | --x-i) | |
708 | ac_prev=x_includes ;; | |
709 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
710 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
711 | x_includes=$ac_optarg ;; | |
712 | ||
713 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
714 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
715 | ac_prev=x_libraries ;; | |
716 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
717 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
718 | x_libraries=$ac_optarg ;; | |
719 | ||
720 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
721 | Try \`$0 --help' for more information." >&2 | |
722 | { (exit 1); exit 1; }; } | |
723 | ;; | |
724 | ||
725 | *=*) | |
726 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
727 | # Reject names that are not valid shell variable names. | |
728 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
729 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
730 | { (exit 1); exit 1; }; } | |
731 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
732 | eval "$ac_envvar='$ac_optarg'" | |
733 | export $ac_envvar ;; | |
734 | ||
735 | *) | |
736 | # FIXME: should be removed in autoconf 3.0. | |
737 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
738 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
739 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
740 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
741 | ;; | |
742 | ||
743 | esac | |
744 | done | |
745 | ||
746 | if test -n "$ac_prev"; then | |
747 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
748 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
749 | { (exit 1); exit 1; }; } | |
750 | fi | |
751 | ||
752 | # Be sure to have absolute paths. | |
753 | for ac_var in exec_prefix prefix | |
754 | do | |
755 | eval ac_val=$`echo $ac_var` | |
756 | case $ac_val in | |
757 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
e61fbf76 | 758 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 |
50850385 TJ |
759 | { (exit 1); exit 1; }; };; |
760 | esac | |
761 | done | |
762 | ||
763 | # Be sure to have absolute paths. | |
764 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
765 | localstatedir libdir includedir oldincludedir infodir mandir | |
766 | do | |
767 | eval ac_val=$`echo $ac_var` | |
768 | case $ac_val in | |
769 | [\\/$]* | ?:[\\/]* ) ;; | |
e61fbf76 | 770 | *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 |
50850385 TJ |
771 | { (exit 1); exit 1; }; };; |
772 | esac | |
773 | done | |
774 | ||
775 | # There might be people who depend on the old broken behavior: `$host' | |
776 | # used to hold the argument of --host etc. | |
50850385 TJ |
777 | build=$build_alias |
778 | host=$host_alias | |
779 | target=$target_alias | |
780 | ||
e61fbf76 | 781 | # FIXME: should be removed in autoconf 3.0. |
50850385 TJ |
782 | if test "x$host_alias" != x; then |
783 | if test "x$build_alias" = x; then | |
784 | cross_compiling=maybe | |
785 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
786 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
787 | elif test "x$build_alias" != "x$host_alias"; then | |
788 | cross_compiling=yes | |
789 | fi | |
790 | fi | |
791 | ||
792 | ac_tool_prefix= | |
793 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
794 | ||
795 | test "$silent" = yes && exec 6>/dev/null | |
796 | ||
50850385 TJ |
797 | # Find the source files, if location was not specified. |
798 | if test -z "$srcdir"; then | |
799 | ac_srcdir_defaulted=yes | |
800 | # Try the directory containing this script, then its parent. | |
e61fbf76 TJ |
801 | ac_prog=$0 |
802 | ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` | |
803 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
50850385 TJ |
804 | srcdir=$ac_confdir |
805 | if test ! -r $srcdir/$ac_unique_file; then | |
806 | srcdir=.. | |
807 | fi | |
808 | else | |
809 | ac_srcdir_defaulted=no | |
810 | fi | |
811 | if test ! -r $srcdir/$ac_unique_file; then | |
812 | if test "$ac_srcdir_defaulted" = yes; then | |
e61fbf76 | 813 | { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 |
50850385 TJ |
814 | { (exit 1); exit 1; }; } |
815 | else | |
e61fbf76 | 816 | { echo "$as_me: error: cannot find sources in $srcdir" >&2 |
50850385 TJ |
817 | { (exit 1); exit 1; }; } |
818 | fi | |
819 | fi | |
820 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
821 | ac_env_build_alias_set=${build_alias+set} | |
822 | ac_env_build_alias_value=$build_alias | |
823 | ac_cv_env_build_alias_set=${build_alias+set} | |
824 | ac_cv_env_build_alias_value=$build_alias | |
825 | ac_env_host_alias_set=${host_alias+set} | |
826 | ac_env_host_alias_value=$host_alias | |
827 | ac_cv_env_host_alias_set=${host_alias+set} | |
828 | ac_cv_env_host_alias_value=$host_alias | |
829 | ac_env_target_alias_set=${target_alias+set} | |
830 | ac_env_target_alias_value=$target_alias | |
831 | ac_cv_env_target_alias_set=${target_alias+set} | |
832 | ac_cv_env_target_alias_value=$target_alias | |
833 | ac_env_CC_set=${CC+set} | |
834 | ac_env_CC_value=$CC | |
835 | ac_cv_env_CC_set=${CC+set} | |
836 | ac_cv_env_CC_value=$CC | |
837 | ac_env_CFLAGS_set=${CFLAGS+set} | |
838 | ac_env_CFLAGS_value=$CFLAGS | |
839 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
840 | ac_cv_env_CFLAGS_value=$CFLAGS | |
841 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
842 | ac_env_LDFLAGS_value=$LDFLAGS | |
843 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
844 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
845 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
846 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
847 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
848 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
849 | ac_env_CXX_set=${CXX+set} | |
850 | ac_env_CXX_value=$CXX | |
851 | ac_cv_env_CXX_set=${CXX+set} | |
852 | ac_cv_env_CXX_value=$CXX | |
853 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
854 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
855 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
856 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
857 | ac_env_CPP_set=${CPP+set} | |
858 | ac_env_CPP_value=$CPP | |
859 | ac_cv_env_CPP_set=${CPP+set} | |
860 | ac_cv_env_CPP_value=$CPP | |
861 | ac_env_CXXCPP_set=${CXXCPP+set} | |
862 | ac_env_CXXCPP_value=$CXXCPP | |
863 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
864 | ac_cv_env_CXXCPP_value=$CXXCPP | |
865 | ||
866 | # | |
867 | # Report the --help message. | |
868 | # | |
869 | if test "$ac_init_help" = "long"; then | |
870 | # Omit some internal or obsolete options to make the list less imposing. | |
871 | # This message is too long to be a string in the A/UX 3.1 sh. | |
e61fbf76 | 872 | cat <<EOF |
50850385 TJ |
873 | \`configure' configures this package to adapt to many kinds of systems. |
874 | ||
875 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
876 | ||
877 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
878 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
879 | ||
880 | Defaults for the options are specified in brackets. | |
881 | ||
882 | Configuration: | |
883 | -h, --help display this help and exit | |
884 | --help=short display options specific to this package | |
885 | --help=recursive display the short help of all the included packages | |
886 | -V, --version display version information and exit | |
887 | -q, --quiet, --silent do not print \`checking...' messages | |
888 | --cache-file=FILE cache test results in FILE [disabled] | |
889 | -C, --config-cache alias for \`--cache-file=config.cache' | |
890 | -n, --no-create do not create output files | |
891 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
892 | ||
e61fbf76 | 893 | EOF |
50850385 | 894 | |
e61fbf76 | 895 | cat <<EOF |
50850385 TJ |
896 | Installation directories: |
897 | --prefix=PREFIX install architecture-independent files in PREFIX | |
898 | [$ac_default_prefix] | |
899 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
900 | [PREFIX] | |
901 | ||
902 | By default, \`make install' will install all the files in | |
903 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
904 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
905 | for instance \`--prefix=\$HOME'. | |
906 | ||
907 | For better control, use the options below. | |
908 | ||
909 | Fine tuning of the installation directories: | |
910 | --bindir=DIR user executables [EPREFIX/bin] | |
911 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
912 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
913 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
914 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
915 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
916 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
917 | --libdir=DIR object code libraries [EPREFIX/lib] | |
918 | --includedir=DIR C header files [PREFIX/include] | |
919 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
920 | --infodir=DIR info documentation [PREFIX/info] | |
921 | --mandir=DIR man documentation [PREFIX/man] | |
e61fbf76 | 922 | EOF |
50850385 | 923 | |
e61fbf76 | 924 | cat <<\EOF |
50850385 TJ |
925 | |
926 | Program names: | |
927 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
928 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
929 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
930 | ||
931 | System types: | |
932 | --build=BUILD configure for building on BUILD [guessed] | |
e61fbf76 | 933 | --host=HOST build programs to run on HOST [BUILD] |
50850385 | 934 | --target=TARGET configure for building compilers for TARGET [HOST] |
e61fbf76 | 935 | EOF |
50850385 TJ |
936 | fi |
937 | ||
938 | if test -n "$ac_init_help"; then | |
939 | ||
e61fbf76 | 940 | cat <<\EOF |
50850385 TJ |
941 | |
942 | Optional Features: | |
943 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
944 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
945 | --disable-fast-perl disable fast Makefile generation (needs perl) | |
946 | --enable-debug enables debug symbols default=no | |
947 | --disable-debug disables debug output and debug symbols default=no | |
948 | --enable-strict compiles with strict compiler options (may not work!) | |
949 | --enable-profile creates profiling infos default=no | |
950 | --disable-dependency-tracking Speeds up one-time builds | |
951 | --enable-dependency-tracking Do not reject slow dependency extractors | |
952 | --enable-final build size optimized apps (experimental - needs lots of memory) | |
953 | --disable-closure don't delay template instantiation | |
954 | --enable-shared[=PKGS] | |
955 | build shared libraries [default=yes] | |
956 | --enable-static[=PKGS] | |
957 | build static libraries [default=no] | |
958 | --enable-fast-install[=PKGS] | |
959 | optimize for fast installation [default=yes] | |
960 | --disable-libtool-lock avoid locking (might break parallel builds) | |
961 | ||
962 | Optional Packages: | |
963 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
964 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
965 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
966 | --with-pic try to use only PIC/non-PIC objects [default=use | |
967 | both] | |
968 | --with-tags=TAGS include additional configurations [CXX,GCJ] | |
969 | --with-extra-includes=DIR | |
970 | adds non standard include paths | |
971 | --with-extra-libs=DIR adds non standard library paths | |
972 | ||
973 | Some influential environment variables: | |
974 | CC C compiler command | |
975 | CFLAGS C compiler flags | |
976 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
977 | nonstandard directory <lib dir> | |
978 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
979 | headers in a nonstandard directory <include dir> | |
980 | CXX C++ compiler command | |
981 | CXXFLAGS C++ compiler flags | |
982 | CPP C preprocessor | |
983 | CXXCPP C++ preprocessor | |
984 | ||
985 | Use these variables to override the choices made by `configure' or to help | |
986 | it to find libraries and programs with nonstandard names/locations. | |
987 | ||
e61fbf76 | 988 | EOF |
50850385 TJ |
989 | fi |
990 | ||
991 | if test "$ac_init_help" = "recursive"; then | |
992 | # If there are subdirs, report their specific --help. | |
993 | ac_popdir=`pwd` | |
e61fbf76 TJ |
994 | for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue |
995 | cd $ac_subdir | |
996 | # A "../" for each directory in /$ac_subdir. | |
997 | ac_dots=`echo $ac_subdir | | |
998 | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` | |
999 | ||
1000 | case $srcdir in | |
1001 | .) # No --srcdir option. We are building in place. | |
1002 | ac_sub_srcdir=$srcdir ;; | |
1003 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1004 | ac_sub_srcdir=$srcdir/$ac_subdir ;; | |
1005 | *) # Relative path. | |
1006 | ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; | |
1007 | esac | |
50850385 | 1008 | |
50850385 | 1009 | # Check for guested configure; otherwise get Cygnus style configure. |
e61fbf76 | 1010 | if test -f $ac_sub_srcdir/configure.gnu; then |
50850385 | 1011 | echo |
e61fbf76 TJ |
1012 | $SHELL $ac_sub_srcdir/configure.gnu --help=recursive |
1013 | elif test -f $ac_sub_srcdir/configure; then | |
50850385 | 1014 | echo |
e61fbf76 TJ |
1015 | $SHELL $ac_sub_srcdir/configure --help=recursive |
1016 | elif test -f $ac_sub_srcdir/configure.ac || | |
1017 | test -f $ac_sub_srcdir/configure.in; then | |
50850385 TJ |
1018 | echo |
1019 | $ac_configure --help | |
1020 | else | |
e61fbf76 | 1021 | echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 |
50850385 TJ |
1022 | fi |
1023 | cd $ac_popdir | |
1024 | done | |
1025 | fi | |
1026 | ||
1027 | test -n "$ac_init_help" && exit 0 | |
1028 | if $ac_init_version; then | |
e61fbf76 | 1029 | cat <<\EOF |
50850385 | 1030 | |
e61fbf76 | 1031 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
50850385 TJ |
1032 | Free Software Foundation, Inc. |
1033 | This configure script is free software; the Free Software Foundation | |
1034 | gives unlimited permission to copy, distribute and modify it. | |
e61fbf76 | 1035 | EOF |
50850385 TJ |
1036 | exit 0 |
1037 | fi | |
1038 | exec 5>config.log | |
e61fbf76 | 1039 | cat >&5 <<EOF |
50850385 TJ |
1040 | This file contains any messages produced by compilers while |
1041 | running configure, to aid debugging if configure makes a mistake. | |
1042 | ||
1043 | It was created by $as_me, which was | |
e61fbf76 | 1044 | generated by GNU Autoconf 2.52. Invocation command line was |
50850385 TJ |
1045 | |
1046 | $ $0 $@ | |
1047 | ||
e61fbf76 | 1048 | EOF |
50850385 TJ |
1049 | { |
1050 | cat <<_ASUNAME | |
e61fbf76 TJ |
1051 | ## ---------- ## |
1052 | ## Platform. ## | |
1053 | ## ---------- ## | |
50850385 TJ |
1054 | |
1055 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1056 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1057 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1058 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1059 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1060 | ||
1061 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1062 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1063 | ||
1064 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1065 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1066 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1067 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1068 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1069 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1070 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1071 | ||
e61fbf76 | 1072 | PATH = $PATH |
50850385 | 1073 | |
e61fbf76 | 1074 | _ASUNAME |
50850385 TJ |
1075 | } >&5 |
1076 | ||
e61fbf76 TJ |
1077 | cat >&5 <<EOF |
1078 | ## ------------ ## | |
1079 | ## Core tests. ## | |
1080 | ## ------------ ## | |
50850385 | 1081 | |
e61fbf76 | 1082 | EOF |
50850385 TJ |
1083 | |
1084 | # Keep a trace of the command line. | |
1085 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1086 | # Also quote any args containing shell meta-characters. | |
1087 | ac_configure_args= | |
1088 | ac_sep= | |
1089 | for ac_arg | |
1090 | do | |
1091 | case $ac_arg in | |
1092 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
e61fbf76 | 1093 | | --no-cr | --no-c) ;; |
50850385 | 1094 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
e61fbf76 | 1095 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
50850385 | 1096 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
e61fbf76 TJ |
1097 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` |
1098 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1099 | ac_sep=" " ;; | |
1100 | *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" | |
1101 | ac_sep=" " ;; | |
50850385 TJ |
1102 | esac |
1103 | # Get rid of the leading space. | |
1104 | done | |
1105 | ||
1106 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1107 | # config.log. We remove comments because anyway the quotes in there | |
1108 | # would cause problems or look ugly. | |
50850385 TJ |
1109 | trap 'exit_status=$? |
1110 | # Save into config.log some information that might help in debugging. | |
e61fbf76 TJ |
1111 | echo >&5 |
1112 | echo "## ----------------- ##" >&5 | |
1113 | echo "## Cache variables. ##" >&5 | |
1114 | echo "## ----------------- ##" >&5 | |
1115 | echo >&5 | |
1116 | # The following way of writing the cache mishandles newlines in values, | |
50850385 TJ |
1117 | { |
1118 | (set) 2>&1 | | |
1119 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1120 | *ac_space=\ *) | |
1121 | sed -n \ | |
1122 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1123 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1124 | ;; | |
1125 | *) | |
1126 | sed -n \ | |
1127 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1128 | ;; | |
1129 | esac; | |
e61fbf76 TJ |
1130 | } >&5 |
1131 | sed "/^$/d" confdefs.h >conftest.log | |
1132 | if test -s conftest.log; then | |
1133 | echo >&5 | |
1134 | echo "## ------------ ##" >&5 | |
1135 | echo "## confdefs.h. ##" >&5 | |
1136 | echo "## ------------ ##" >&5 | |
1137 | echo >&5 | |
1138 | cat conftest.log >&5 | |
1139 | fi | |
1140 | (echo; echo) >&5 | |
1141 | test "$ac_signal" != 0 && | |
1142 | echo "$as_me: caught signal $ac_signal" >&5 | |
1143 | echo "$as_me: exit $exit_status" >&5 | |
1144 | rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && | |
50850385 TJ |
1145 | exit $exit_status |
1146 | ' 0 | |
1147 | for ac_signal in 1 2 13 15; do | |
1148 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1149 | done | |
1150 | ac_signal=0 | |
1151 | ||
1152 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1153 | rm -rf conftest* confdefs.h | |
1154 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1155 | echo >confdefs.h | |
1156 | ||
50850385 TJ |
1157 | # Let the site file select an alternate cache file if it wants to. |
1158 | # Prefer explicitly selected file to automatically selected ones. | |
1159 | if test -z "$CONFIG_SITE"; then | |
1160 | if test "x$prefix" != xNONE; then | |
1161 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1162 | else | |
1163 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1164 | fi | |
1165 | fi | |
1166 | for ac_site_file in $CONFIG_SITE; do | |
1167 | if test -r "$ac_site_file"; then | |
e61fbf76 | 1168 | { echo "$as_me:1168: loading site script $ac_site_file" >&5 |
50850385 | 1169 | echo "$as_me: loading site script $ac_site_file" >&6;} |
e61fbf76 | 1170 | cat "$ac_site_file" >&5 |
50850385 TJ |
1171 | . "$ac_site_file" |
1172 | fi | |
1173 | done | |
1174 | ||
1175 | if test -r "$cache_file"; then | |
1176 | # Some versions of bash will fail to source /dev/null (special | |
1177 | # files actually), so we avoid doing that. | |
1178 | if test -f "$cache_file"; then | |
e61fbf76 | 1179 | { echo "$as_me:1179: loading cache $cache_file" >&5 |
50850385 TJ |
1180 | echo "$as_me: loading cache $cache_file" >&6;} |
1181 | case $cache_file in | |
1182 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1183 | *) . ./$cache_file;; | |
1184 | esac | |
1185 | fi | |
1186 | else | |
e61fbf76 | 1187 | { echo "$as_me:1187: creating cache $cache_file" >&5 |
50850385 TJ |
1188 | echo "$as_me: creating cache $cache_file" >&6;} |
1189 | >$cache_file | |
1190 | fi | |
1191 | ||
1192 | # Check that the precious variables saved in the cache have kept the same | |
1193 | # value. | |
1194 | ac_cache_corrupted=false | |
1195 | for ac_var in `(set) 2>&1 | | |
1196 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1197 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1198 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1199 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1200 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1201 | case $ac_old_set,$ac_new_set in | |
1202 | set,) | |
e61fbf76 | 1203 | { echo "$as_me:1203: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
50850385 TJ |
1204 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1205 | ac_cache_corrupted=: ;; | |
1206 | ,set) | |
e61fbf76 | 1207 | { echo "$as_me:1207: error: \`$ac_var' was not set in the previous run" >&5 |
50850385 TJ |
1208 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1209 | ac_cache_corrupted=: ;; | |
1210 | ,);; | |
1211 | *) | |
1212 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
e61fbf76 | 1213 | { echo "$as_me:1213: error: \`$ac_var' has changed since the previous run:" >&5 |
50850385 | 1214 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
e61fbf76 | 1215 | { echo "$as_me:1215: former value: $ac_old_val" >&5 |
50850385 | 1216 | echo "$as_me: former value: $ac_old_val" >&2;} |
e61fbf76 | 1217 | { echo "$as_me:1217: current value: $ac_new_val" >&5 |
50850385 TJ |
1218 | echo "$as_me: current value: $ac_new_val" >&2;} |
1219 | ac_cache_corrupted=: | |
1220 | fi;; | |
1221 | esac | |
e61fbf76 TJ |
1222 | # Pass precious variables to config.status. It doesn't matter if |
1223 | # we pass some twice (in addition to the command line arguments). | |
50850385 TJ |
1224 | if test "$ac_new_set" = set; then |
1225 | case $ac_new_val in | |
1226 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
e61fbf76 TJ |
1227 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` |
1228 | ac_configure_args="$ac_configure_args '$ac_arg'" | |
1229 | ;; | |
1230 | *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" | |
1231 | ;; | |
50850385 TJ |
1232 | esac |
1233 | fi | |
1234 | done | |
1235 | if $ac_cache_corrupted; then | |
e61fbf76 | 1236 | { echo "$as_me:1236: error: changes in the environment can compromise the build" >&5 |
50850385 | 1237 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
e61fbf76 | 1238 | { { echo "$as_me:1238: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
50850385 TJ |
1239 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1240 | { (exit 1); exit 1; }; } | |
1241 | fi | |
1242 | ||
1243 | ac_ext=c | |
1244 | ac_cpp='$CPP $CPPFLAGS' | |
1245 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1246 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1247 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1248 | ||
e61fbf76 TJ |
1249 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
1250 | *c*,-n*) ECHO_N= ECHO_C=' | |
1251 | ' ECHO_T=' ' ;; | |
1252 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
1253 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
1254 | esac | |
1255 | echo "#! $SHELL" >conftest.sh | |
1256 | echo "exit 0" >>conftest.sh | |
1257 | chmod +x conftest.sh | |
1258 | if { (echo "$as_me:1258: PATH=\".;.\"; conftest.sh") >&5 | |
1259 | (PATH=".;."; conftest.sh) 2>&5 | |
1260 | ac_status=$? | |
1261 | echo "$as_me:1261: \$? = $ac_status" >&5 | |
1262 | (exit $ac_status); }; then | |
1263 | ac_path_separator=';' | |
1264 | else | |
1265 | ac_path_separator=: | |
1266 | fi | |
1267 | PATH_SEPARATOR="$ac_path_separator" | |
1268 | rm -f conftest.sh | |
50850385 TJ |
1269 | |
1270 | ac_aux_dir= | |
1271 | for ac_dir in admin $srcdir/admin; do | |
1272 | if test -f $ac_dir/install-sh; then | |
1273 | ac_aux_dir=$ac_dir | |
1274 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1275 | break | |
1276 | elif test -f $ac_dir/install.sh; then | |
1277 | ac_aux_dir=$ac_dir | |
1278 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1279 | break | |
1280 | elif test -f $ac_dir/shtool; then | |
1281 | ac_aux_dir=$ac_dir | |
1282 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1283 | break | |
1284 | fi | |
1285 | done | |
1286 | if test -z "$ac_aux_dir"; then | |
e61fbf76 | 1287 | { { echo "$as_me:1287: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&5 |
50850385 TJ |
1288 | echo "$as_me: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&2;} |
1289 | { (exit 1); exit 1; }; } | |
1290 | fi | |
1291 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1292 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1293 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1294 | ||
50850385 TJ |
1295 | unset CDPATH |
1296 | ||
1297 | # Make sure we can run config.sub. | |
1298 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
e61fbf76 | 1299 | { { echo "$as_me:1299: error: cannot run $ac_config_sub" >&5 |
50850385 TJ |
1300 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
1301 | { (exit 1); exit 1; }; } | |
1302 | ||
e61fbf76 | 1303 | echo "$as_me:1303: checking build system type" >&5 |
50850385 TJ |
1304 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
1305 | if test "${ac_cv_build+set}" = set; then | |
1306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1307 | else | |
1308 | ac_cv_build_alias=$build_alias | |
1309 | test -z "$ac_cv_build_alias" && | |
1310 | ac_cv_build_alias=`$ac_config_guess` | |
1311 | test -z "$ac_cv_build_alias" && | |
e61fbf76 | 1312 | { { echo "$as_me:1312: error: cannot guess build type; you must specify one" >&5 |
50850385 TJ |
1313 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
1314 | { (exit 1); exit 1; }; } | |
1315 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
e61fbf76 TJ |
1316 | { { echo "$as_me:1316: error: $ac_config_sub $ac_cv_build_alias failed." >&5 |
1317 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} | |
50850385 TJ |
1318 | { (exit 1); exit 1; }; } |
1319 | ||
1320 | fi | |
e61fbf76 | 1321 | echo "$as_me:1321: result: $ac_cv_build" >&5 |
50850385 TJ |
1322 | echo "${ECHO_T}$ac_cv_build" >&6 |
1323 | build=$ac_cv_build | |
1324 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1325 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1326 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1327 | ||
e61fbf76 | 1328 | echo "$as_me:1328: checking host system type" >&5 |
50850385 TJ |
1329 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
1330 | if test "${ac_cv_host+set}" = set; then | |
1331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1332 | else | |
1333 | ac_cv_host_alias=$host_alias | |
1334 | test -z "$ac_cv_host_alias" && | |
1335 | ac_cv_host_alias=$ac_cv_build_alias | |
1336 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
e61fbf76 | 1337 | { { echo "$as_me:1337: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
50850385 TJ |
1338 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
1339 | { (exit 1); exit 1; }; } | |
1340 | ||
1341 | fi | |
e61fbf76 | 1342 | echo "$as_me:1342: result: $ac_cv_host" >&5 |
50850385 TJ |
1343 | echo "${ECHO_T}$ac_cv_host" >&6 |
1344 | host=$ac_cv_host | |
1345 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1346 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1347 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1348 | ||
e61fbf76 | 1349 | echo "$as_me:1349: checking target system type" >&5 |
50850385 TJ |
1350 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
1351 | if test "${ac_cv_target+set}" = set; then | |
1352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1353 | else | |
1354 | ac_cv_target_alias=$target_alias | |
1355 | test "x$ac_cv_target_alias" = "x" && | |
1356 | ac_cv_target_alias=$ac_cv_host_alias | |
1357 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
e61fbf76 | 1358 | { { echo "$as_me:1358: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
50850385 TJ |
1359 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
1360 | { (exit 1); exit 1; }; } | |
1361 | ||
1362 | fi | |
e61fbf76 | 1363 | echo "$as_me:1363: result: $ac_cv_target" >&5 |
50850385 TJ |
1364 | echo "${ECHO_T}$ac_cv_target" >&6 |
1365 | target=$ac_cv_target | |
1366 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1367 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1368 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1369 | ||
50850385 TJ |
1370 | # The aliases save the names the user supplied, while $host etc. |
1371 | # will get canonicalized. | |
1372 | test -n "$target_alias" && | |
1373 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1374 | NONENONEs,x,x, && | |
1375 | program_prefix=${target_alias}- | |
1376 | test "$program_prefix" != NONE && | |
1377 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1378 | # Use a double $ so make ignores it. | |
1379 | test "$program_suffix" != NONE && | |
1380 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1381 | # Double any \ or $. echo might interpret backslashes. | |
1382 | # By default was `s,x,x', remove it if useless. | |
1383 | cat <<\_ACEOF >conftest.sed | |
1384 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1385 | _ACEOF | |
1386 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1387 | rm conftest.sed | |
1388 | ||
50850385 TJ |
1389 | am__api_version="1.6" |
1390 | ||
50850385 TJ |
1391 | test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL |
1392 | test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM | |
1393 | test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT | |
1394 | # Find a good install program. We prefer a C program (faster), | |
1395 | # so one script is as good as another. But avoid the broken or | |
1396 | # incompatible versions: | |
1397 | # SysV /etc/install, /usr/sbin/install | |
1398 | # SunOS /usr/etc/install | |
1399 | # IRIX /sbin/install | |
1400 | # AIX /bin/install | |
1401 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1402 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1403 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1404 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1405 | # ./install, which can be erroneously created by make from ./install.sh. | |
e61fbf76 TJ |
1406 | echo "$as_me:1406: checking for a BSD compatible install" >&5 |
1407 | echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 | |
50850385 TJ |
1408 | if test -z "$INSTALL"; then |
1409 | if test "${ac_cv_path_install+set}" = set; then | |
1410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1411 | else | |
e61fbf76 TJ |
1412 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
1413 | for ac_dir in $PATH; do | |
1414 | IFS=$ac_save_IFS | |
1415 | # Account for people who put trailing slashes in PATH elements. | |
1416 | case $ac_dir/ in | |
1417 | / | ./ | .// | /cC/* \ | |
1418 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ | |
1419 | | /usr/ucb/* ) ;; | |
1420 | *) | |
1421 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1422 | # Don't use installbsd from OSF since it installs stuff as root | |
1423 | # by default. | |
1424 | for ac_prog in ginstall scoinst install; do | |
1425 | if $as_executable_p "$ac_dir/$ac_prog"; then | |
1426 | if test $ac_prog = install && | |
1427 | grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
1428 | # AIX install. It has an incompatible calling convention. | |
1429 | : | |
1430 | elif test $ac_prog = install && | |
1431 | grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
1432 | # program-specific install script used by HP pwplus--don't use. | |
1433 | : | |
1434 | else | |
1435 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1436 | break 2 | |
1437 | fi | |
1438 | fi | |
50850385 | 1439 | done |
e61fbf76 TJ |
1440 | ;; |
1441 | esac | |
1442 | done | |
50850385 TJ |
1443 | |
1444 | fi | |
1445 | if test "${ac_cv_path_install+set}" = set; then | |
1446 | INSTALL=$ac_cv_path_install | |
1447 | else | |
1448 | # As a last resort, use the slow shell script. We don't cache a | |
1449 | # path for INSTALL within a source directory, because that will | |
1450 | # break other packages using the cache if that directory is | |
1451 | # removed, or if the path is relative. | |
1452 | INSTALL=$ac_install_sh | |
1453 | fi | |
1454 | fi | |
e61fbf76 | 1455 | echo "$as_me:1455: result: $INSTALL" >&5 |
50850385 TJ |
1456 | echo "${ECHO_T}$INSTALL" >&6 |
1457 | ||
1458 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1459 | # It thinks the first close brace ends the variable substitution. | |
1460 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1461 | ||
1462 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1463 | ||
1464 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1465 | ||
50850385 TJ |
1466 | if test -z "$kde_save_INSTALL_given" ; then |
1467 | # OK, user hasn't given any INSTALL, autoconf found one for us | |
1468 | # now we test, if it supports the -p flag | |
e61fbf76 | 1469 | echo "$as_me:1469: checking for -p flag to install" >&5 |
50850385 TJ |
1470 | echo $ECHO_N "checking for -p flag to install... $ECHO_C" >&6 |
1471 | rm -f confinst.$$.* > /dev/null 2>&1 | |
1472 | echo "Testtest" > confinst.$$.orig | |
1473 | ac_res=no | |
1474 | if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then | |
1475 | if test -f confinst.$$.new ; then | |
1476 | # OK, -p seems to do no harm to install | |
1477 | INSTALL="${INSTALL} -p" | |
1478 | ac_res=yes | |
1479 | fi | |
1480 | fi | |
1481 | rm -f confinst.$$.* | |
e61fbf76 | 1482 | echo "$as_me:1482: result: $ac_res" >&5 |
50850385 TJ |
1483 | echo "${ECHO_T}$ac_res" >&6 |
1484 | fi | |
1485 | ||
1486 | if test -z "$kde_save_INSTALL_PROGRAM_given" ; then | |
1487 | INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)' | |
1488 | fi | |
1489 | if test -z "$kde_save_INSTALL_SCRIPT_given" ; then | |
1490 | INSTALL_SCRIPT='${INSTALL}' | |
1491 | fi | |
1492 | ||
e61fbf76 | 1493 | echo "$as_me:1493: checking whether build environment is sane" >&5 |
50850385 TJ |
1494 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
1495 | # Just in case | |
1496 | sleep 1 | |
1497 | echo timestamp > conftest.file | |
1498 | # Do `set' in a subshell so we don't clobber the current shell's | |
1499 | # arguments. Must try -L first in case configure is actually a | |
1500 | # symlink; some systems play weird games with the mod time of symlinks | |
1501 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1502 | # directory). | |
1503 | if ( | |
1504 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1505 | if test "$*" = "X"; then | |
1506 | # -L didn't work. | |
1507 | set X `ls -t $srcdir/configure conftest.file` | |
1508 | fi | |
1509 | rm -f conftest.file | |
1510 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1511 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
1512 | ||
1513 | # If neither matched, then we have a broken ls. This can happen | |
1514 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1515 | # broken ls alias from the environment. This has actually | |
1516 | # happened. Such a system could not be considered "sane". | |
e61fbf76 | 1517 | { { echo "$as_me:1517: error: ls -t appears to fail. Make sure there is not a broken |
50850385 TJ |
1518 | alias in your environment" >&5 |
1519 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1520 | alias in your environment" >&2;} | |
1521 | { (exit 1); exit 1; }; } | |
1522 | fi | |
1523 | ||
1524 | test "$2" = conftest.file | |
1525 | ) | |
1526 | then | |
1527 | # Ok. | |
1528 | : | |
1529 | else | |
e61fbf76 | 1530 | { { echo "$as_me:1530: error: newly created file is older than distributed files! |
50850385 TJ |
1531 | Check your system clock" >&5 |
1532 | echo "$as_me: error: newly created file is older than distributed files! | |
1533 | Check your system clock" >&2;} | |
1534 | { (exit 1); exit 1; }; } | |
1535 | fi | |
e61fbf76 | 1536 | echo "$as_me:1536: result: yes" >&5 |
50850385 TJ |
1537 | echo "${ECHO_T}yes" >&6 |
1538 | ||
1539 | # expand $ac_aux_dir to an absolute path | |
1540 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
1541 | ||
1542 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1543 | # Use eval to expand $SHELL | |
1544 | if eval "$MISSING --run true"; then | |
1545 | am_missing_run="$MISSING --run " | |
1546 | else | |
1547 | am_missing_run= | |
e61fbf76 | 1548 | { echo "$as_me:1548: WARNING: \`missing' script is too old or missing" >&5 |
50850385 TJ |
1549 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
1550 | fi | |
1551 | ||
e61fbf76 | 1552 | for ac_prog in mawk gawk nawk awk |
50850385 TJ |
1553 | do |
1554 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1555 | set dummy $ac_prog; ac_word=$2 | |
e61fbf76 | 1556 | echo "$as_me:1556: checking for $ac_word" >&5 |
50850385 TJ |
1557 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1558 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1560 | else | |
1561 | if test -n "$AWK"; then | |
1562 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1563 | else | |
e61fbf76 TJ |
1564 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
1565 | ac_dummy="$PATH" | |
1566 | for ac_dir in $ac_dummy; do | |
1567 | IFS=$ac_save_IFS | |
1568 | test -z "$ac_dir" && ac_dir=. | |
1569 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1570 | ac_cv_prog_AWK="$ac_prog" | |
1571 | echo "$as_me:1571: found $ac_dir/$ac_word" >&5 | |
1572 | break | |
50850385 TJ |
1573 | done |
1574 | ||
1575 | fi | |
1576 | fi | |
1577 | AWK=$ac_cv_prog_AWK | |
1578 | if test -n "$AWK"; then | |
e61fbf76 | 1579 | echo "$as_me:1579: result: $AWK" >&5 |
50850385 TJ |
1580 | echo "${ECHO_T}$AWK" >&6 |
1581 | else | |
e61fbf76 | 1582 | echo "$as_me:1582: result: no" >&5 |
50850385 TJ |
1583 | echo "${ECHO_T}no" >&6 |
1584 | fi | |
1585 | ||
1586 | test -n "$AWK" && break | |
1587 | done | |
1588 | ||
e61fbf76 | 1589 | echo "$as_me:1589: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
50850385 TJ |
1590 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
1591 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
1592 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1594 | else | |
e61fbf76 | 1595 | cat >conftest.make <<\EOF |
50850385 TJ |
1596 | all: |
1597 | @echo 'ac_maketemp="${MAKE}"' | |
e61fbf76 | 1598 | EOF |
50850385 TJ |
1599 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
1600 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1601 | if test -n "$ac_maketemp"; then | |
1602 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1603 | else | |
1604 | eval ac_cv_prog_make_${ac_make}_set=no | |
1605 | fi | |
1606 | rm -f conftest.make | |
1607 | fi | |
1608 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
e61fbf76 | 1609 | echo "$as_me:1609: result: yes" >&5 |
50850385 TJ |
1610 | echo "${ECHO_T}yes" >&6 |
1611 | SET_MAKE= | |
1612 | else | |
e61fbf76 | 1613 | echo "$as_me:1613: result: no" >&5 |
50850385 TJ |
1614 | echo "${ECHO_T}no" >&6 |
1615 | SET_MAKE="MAKE=${MAKE-make}" | |
1616 | fi | |
1617 | ||
1618 | # test to see if srcdir already configured | |
1619 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
1620 | test -f $srcdir/config.status; then | |
e61fbf76 | 1621 | { { echo "$as_me:1621: error: source directory already configured; run \"make distclean\" there first" >&5 |
50850385 TJ |
1622 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
1623 | { (exit 1); exit 1; }; } | |
1624 | fi | |
1625 | ||
1626 | # Define the identity of the package. | |
1627 | PACKAGE=ftdi_eeprom | |
e61fbf76 | 1628 | VERSION=0.2 |
50850385 | 1629 | |
e61fbf76 | 1630 | cat >>confdefs.h <<EOF |
50850385 | 1631 | #define PACKAGE "$PACKAGE" |
e61fbf76 | 1632 | EOF |
50850385 | 1633 | |
e61fbf76 | 1634 | cat >>confdefs.h <<EOF |
50850385 | 1635 | #define VERSION "$VERSION" |
e61fbf76 | 1636 | EOF |
50850385 TJ |
1637 | |
1638 | # Some tools Automake needs. | |
1639 | ||
1640 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
1641 | ||
50850385 TJ |
1642 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
1643 | ||
50850385 TJ |
1644 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
1645 | ||
50850385 TJ |
1646 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
1647 | ||
50850385 TJ |
1648 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
1649 | ||
50850385 TJ |
1650 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
1651 | ||
1652 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
1653 | ||
1654 | # Installed binaries are usually stripped using `strip' when the user | |
1655 | # run `make install-strip'. However `strip' might not be the right | |
1656 | # tool to use in cross-compilation environments, therefore Automake | |
1657 | # will honor the `STRIP' environment variable to overrule this program. | |
1658 | if test "$cross_compiling" != no; then | |
1659 | if test -n "$ac_tool_prefix"; then | |
1660 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
1661 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
e61fbf76 | 1662 | echo "$as_me:1662: checking for $ac_word" >&5 |
50850385 TJ |
1663 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1664 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
1665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1666 | else | |
1667 | if test -n "$STRIP"; then | |
1668 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1669 | else | |
e61fbf76 TJ |
1670 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
1671 | ac_dummy="$PATH" | |
1672 | for ac_dir in $ac_dummy; do | |
1673 | IFS=$ac_save_IFS | |
1674 | test -z "$ac_dir" && ac_dir=. | |
1675 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1676 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1677 | echo "$as_me:1677: found $ac_dir/$ac_word" >&5 | |
1678 | break | |
50850385 TJ |
1679 | done |
1680 | ||
1681 | fi | |
1682 | fi | |
1683 | STRIP=$ac_cv_prog_STRIP | |
1684 | if test -n "$STRIP"; then | |
e61fbf76 | 1685 | echo "$as_me:1685: result: $STRIP" >&5 |
50850385 TJ |
1686 | echo "${ECHO_T}$STRIP" >&6 |
1687 | else | |
e61fbf76 | 1688 | echo "$as_me:1688: result: no" >&5 |
50850385 TJ |
1689 | echo "${ECHO_T}no" >&6 |
1690 | fi | |
1691 | ||
1692 | fi | |
1693 | if test -z "$ac_cv_prog_STRIP"; then | |
1694 | ac_ct_STRIP=$STRIP | |
1695 | # Extract the first word of "strip", so it can be a program name with args. | |
1696 | set dummy strip; ac_word=$2 | |
e61fbf76 | 1697 | echo "$as_me:1697: checking for $ac_word" >&5 |
50850385 TJ |
1698 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1699 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
1700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1701 | else | |
1702 | if test -n "$ac_ct_STRIP"; then | |
1703 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
1704 | else | |
e61fbf76 TJ |
1705 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
1706 | ac_dummy="$PATH" | |
1707 | for ac_dir in $ac_dummy; do | |
1708 | IFS=$ac_save_IFS | |
1709 | test -z "$ac_dir" && ac_dir=. | |
1710 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1711 | ac_cv_prog_ac_ct_STRIP="strip" | |
1712 | echo "$as_me:1712: found $ac_dir/$ac_word" >&5 | |
1713 | break | |
50850385 TJ |
1714 | done |
1715 | ||
1716 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
1717 | fi | |
1718 | fi | |
1719 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
1720 | if test -n "$ac_ct_STRIP"; then | |
e61fbf76 | 1721 | echo "$as_me:1721: result: $ac_ct_STRIP" >&5 |
50850385 TJ |
1722 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
1723 | else | |
e61fbf76 | 1724 | echo "$as_me:1724: result: no" >&5 |
50850385 TJ |
1725 | echo "${ECHO_T}no" >&6 |
1726 | fi | |
1727 | ||
1728 | STRIP=$ac_ct_STRIP | |
1729 | else | |
1730 | STRIP="$ac_cv_prog_STRIP" | |
1731 | fi | |
1732 | ||
1733 | fi | |
1734 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
1735 | ||
1736 | # We need awk for the "check" target. The system "awk" is bad on | |
1737 | # some platforms. | |
1738 | ||
50850385 TJ |
1739 | unset CDPATH |
1740 | ||
50850385 TJ |
1741 | if test "x$prefix" = "xNONE"; then |
1742 | prefix=$ac_default_prefix | |
1743 | ac_configure_args="$ac_configure_args --prefix $prefix" | |
1744 | fi | |
1745 | ||
1746 | # Check whether --enable-fast-perl or --disable-fast-perl was given. | |
1747 | if test "${enable_fast_perl+set}" = set; then | |
1748 | enableval="$enable_fast_perl" | |
1749 | with_fast_perl=$enableval | |
1750 | else | |
1751 | with_fast_perl=yes | |
1752 | fi; | |
1753 | ||
50850385 TJ |
1754 | val= |
1755 | if test -f $srcdir/configure.files ; then | |
1756 | val=`sed -e 's%^%\$(top_srcdir)/%' $srcdir/configure.files` | |
1757 | fi | |
1758 | CONF_FILES= | |
1759 | if test -n "$val" ; then | |
1760 | for i in $val ; do | |
1761 | CONF_FILES="$CONF_FILES $i" | |
1762 | done | |
1763 | fi | |
1764 | ||
50850385 TJ |
1765 | # Add the stamp file to the list of files AC keeps track of, |
1766 | # along with our hook. | |
1767 | ac_config_headers="$ac_config_headers config.h" | |
1768 | ||
50850385 TJ |
1769 | rm -f .deps 2>/dev/null |
1770 | mkdir .deps 2>/dev/null | |
1771 | if test -d .deps; then | |
1772 | DEPDIR=.deps | |
1773 | else | |
1774 | # MS-DOS does not allow filenames that begin with a dot. | |
1775 | DEPDIR=_deps | |
1776 | fi | |
1777 | rmdir .deps 2>/dev/null | |
1778 | ||
50850385 TJ |
1779 | ac_config_commands="$ac_config_commands depfiles" |
1780 | ||
50850385 TJ |
1781 | am_make=${MAKE-make} |
1782 | cat > confinc << 'END' | |
1783 | doit: | |
1784 | @echo done | |
1785 | END | |
1786 | # If we don't find an include directive, just comment out the code. | |
e61fbf76 | 1787 | echo "$as_me:1787: checking for style of include used by $am_make" >&5 |
50850385 TJ |
1788 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
1789 | am__include="#" | |
1790 | am__quote= | |
1791 | _am_result=none | |
1792 | # First try GNU make style include. | |
1793 | echo "include confinc" > confmf | |
1794 | # We grep out `Entering directory' and `Leaving directory' | |
1795 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
1796 | # In particular we don't look at `^make:' because GNU make might | |
1797 | # be invoked under some other name (usually "gmake"), in which | |
1798 | # case it prints its new name instead of `make'. | |
1799 | if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then | |
1800 | am__include=include | |
1801 | am__quote= | |
1802 | _am_result=GNU | |
1803 | fi | |
1804 | # Now try BSD make style include. | |
1805 | if test "$am__include" = "#"; then | |
1806 | echo '.include "confinc"' > confmf | |
1807 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
1808 | am__include=.include | |
1809 | am__quote="\"" | |
1810 | _am_result=BSD | |
1811 | fi | |
1812 | fi | |
1813 | ||
e61fbf76 | 1814 | echo "$as_me:1814: result: $_am_result" >&5 |
50850385 TJ |
1815 | echo "${ECHO_T}$_am_result" >&6 |
1816 | rm -f confinc confmf | |
1817 | ||
1818 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
1819 | if test "${enable_dependency_tracking+set}" = set; then | |
1820 | enableval="$enable_dependency_tracking" | |
1821 | ||
1822 | fi; | |
1823 | if test "x$enable_dependency_tracking" != xno; then | |
1824 | am_depcomp="$ac_aux_dir/depcomp" | |
1825 | AMDEPBACKSLASH='\' | |
1826 | fi | |
1827 | ||
50850385 TJ |
1828 | if test "x$enable_dependency_tracking" != xno; then |
1829 | AMDEP_TRUE= | |
1830 | AMDEP_FALSE='#' | |
1831 | else | |
1832 | AMDEP_TRUE='#' | |
1833 | AMDEP_FALSE= | |
1834 | fi | |
1835 | ||
50850385 TJ |
1836 | ac_ext=cc |
1837 | ac_cpp='$CXXCPP $CPPFLAGS' | |
1838 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1839 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1840 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
1841 | if test -n "$ac_tool_prefix"; then | |
1842 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
1843 | do | |
1844 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1845 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
e61fbf76 | 1846 | echo "$as_me:1846: checking for $ac_word" >&5 |
50850385 TJ |
1847 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1848 | if test "${ac_cv_prog_CXX+set}" = set; then | |
1849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1850 | else | |
1851 | if test -n "$CXX"; then | |
1852 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
1853 | else | |
e61fbf76 TJ |
1854 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
1855 | ac_dummy="$PATH" | |
1856 | for ac_dir in $ac_dummy; do | |
1857 | IFS=$ac_save_IFS | |
1858 | test -z "$ac_dir" && ac_dir=. | |
1859 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1860 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
1861 | echo "$as_me:1861: found $ac_dir/$ac_word" >&5 | |
1862 | break | |
50850385 TJ |
1863 | done |
1864 | ||
1865 | fi | |
1866 | fi | |
1867 | CXX=$ac_cv_prog_CXX | |
1868 | if test -n "$CXX"; then | |
e61fbf76 | 1869 | echo "$as_me:1869: result: $CXX" >&5 |
50850385 TJ |
1870 | echo "${ECHO_T}$CXX" >&6 |
1871 | else | |
e61fbf76 | 1872 | echo "$as_me:1872: result: no" >&5 |
50850385 TJ |
1873 | echo "${ECHO_T}no" >&6 |
1874 | fi | |
1875 | ||
1876 | test -n "$CXX" && break | |
1877 | done | |
1878 | fi | |
1879 | if test -z "$CXX"; then | |
1880 | ac_ct_CXX=$CXX | |
1881 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
1882 | do | |
1883 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1884 | set dummy $ac_prog; ac_word=$2 | |
e61fbf76 | 1885 | echo "$as_me:1885: checking for $ac_word" >&5 |
50850385 TJ |
1886 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1887 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
1888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1889 | else | |
1890 | if test -n "$ac_ct_CXX"; then | |
1891 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
1892 | else | |
e61fbf76 TJ |
1893 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
1894 | ac_dummy="$PATH" | |
1895 | for ac_dir in $ac_dummy; do | |
1896 | IFS=$ac_save_IFS | |
1897 | test -z "$ac_dir" && ac_dir=. | |
1898 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1899 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
1900 | echo "$as_me:1900: found $ac_dir/$ac_word" >&5 | |
1901 | break | |
50850385 TJ |
1902 | done |
1903 | ||
1904 | fi | |
1905 | fi | |
1906 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
1907 | if test -n "$ac_ct_CXX"; then | |
e61fbf76 | 1908 | echo "$as_me:1908: result: $ac_ct_CXX" >&5 |
50850385 TJ |
1909 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
1910 | else | |
e61fbf76 | 1911 | echo "$as_me:1911: result: no" >&5 |
50850385 TJ |
1912 | echo "${ECHO_T}no" >&6 |
1913 | fi | |
1914 | ||
1915 | test -n "$ac_ct_CXX" && break | |
1916 | done | |
1917 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
1918 | ||
1919 | CXX=$ac_ct_CXX | |
1920 | fi | |
1921 | ||
50850385 | 1922 | # Provide some information about the compiler. |
e61fbf76 | 1923 | echo "$as_me:1923:" \ |
50850385 TJ |
1924 | "checking for C++ compiler version" >&5 |
1925 | ac_compiler=`set X $ac_compile; echo $2` | |
e61fbf76 | 1926 | { (eval echo "$as_me:1926: \"$ac_compiler --version </dev/null >&5\"") >&5 |
50850385 TJ |
1927 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
1928 | ac_status=$? | |
e61fbf76 | 1929 | echo "$as_me:1929: \$? = $ac_status" >&5 |
50850385 | 1930 | (exit $ac_status); } |
e61fbf76 | 1931 | { (eval echo "$as_me:1931: \"$ac_compiler -v </dev/null >&5\"") >&5 |
50850385 TJ |
1932 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
1933 | ac_status=$? | |
e61fbf76 | 1934 | echo "$as_me:1934: \$? = $ac_status" >&5 |
50850385 | 1935 | (exit $ac_status); } |
e61fbf76 | 1936 | { (eval echo "$as_me:1936: \"$ac_compiler -V </dev/null >&5\"") >&5 |
50850385 TJ |
1937 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
1938 | ac_status=$? | |
e61fbf76 | 1939 | echo "$as_me:1939: \$? = $ac_status" >&5 |
50850385 TJ |
1940 | (exit $ac_status); } |
1941 | ||
e61fbf76 | 1942 | echo "$as_me:1942: checking whether we are using the GNU C++ compiler" >&5 |
50850385 TJ |
1943 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
1944 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
1945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1946 | else | |
1947 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 1948 | #line 1948 "configure" |
50850385 TJ |
1949 | #include "confdefs.h" |
1950 | ||
50850385 TJ |
1951 | int |
1952 | main () | |
1953 | { | |
1954 | #ifndef __GNUC__ | |
1955 | choke me | |
1956 | #endif | |
1957 | ||
1958 | ; | |
1959 | return 0; | |
1960 | } | |
1961 | _ACEOF | |
1962 | rm -f conftest.$ac_objext | |
e61fbf76 | 1963 | if { (eval echo "$as_me:1963: \"$ac_compile\"") >&5 |
50850385 TJ |
1964 | (eval $ac_compile) 2>&5 |
1965 | ac_status=$? | |
e61fbf76 | 1966 | echo "$as_me:1966: \$? = $ac_status" >&5 |
50850385 TJ |
1967 | (exit $ac_status); } && |
1968 | { ac_try='test -s conftest.$ac_objext' | |
e61fbf76 | 1969 | { (eval echo "$as_me:1969: \"$ac_try\"") >&5 |
50850385 TJ |
1970 | (eval $ac_try) 2>&5 |
1971 | ac_status=$? | |
e61fbf76 | 1972 | echo "$as_me:1972: \$? = $ac_status" >&5 |
50850385 TJ |
1973 | (exit $ac_status); }; }; then |
1974 | ac_compiler_gnu=yes | |
1975 | else | |
1976 | echo "$as_me: failed program was:" >&5 | |
1977 | cat conftest.$ac_ext >&5 | |
1978 | ac_compiler_gnu=no | |
1979 | fi | |
1980 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1981 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
1982 | ||
1983 | fi | |
e61fbf76 | 1984 | echo "$as_me:1984: result: $ac_cv_cxx_compiler_gnu" >&5 |
50850385 TJ |
1985 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
1986 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
1987 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
1988 | ac_save_CXXFLAGS=$CXXFLAGS | |
1989 | CXXFLAGS="-g" | |
e61fbf76 | 1990 | echo "$as_me:1990: checking whether $CXX accepts -g" >&5 |
50850385 TJ |
1991 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
1992 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
1993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1994 | else | |
1995 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 1996 | #line 1996 "configure" |
50850385 TJ |
1997 | #include "confdefs.h" |
1998 | ||
50850385 TJ |
1999 | int |
2000 | main () | |
2001 | { | |
2002 | ||
2003 | ; | |
2004 | return 0; | |
2005 | } | |
2006 | _ACEOF | |
2007 | rm -f conftest.$ac_objext | |
e61fbf76 | 2008 | if { (eval echo "$as_me:2008: \"$ac_compile\"") >&5 |
50850385 TJ |
2009 | (eval $ac_compile) 2>&5 |
2010 | ac_status=$? | |
e61fbf76 | 2011 | echo "$as_me:2011: \$? = $ac_status" >&5 |
50850385 TJ |
2012 | (exit $ac_status); } && |
2013 | { ac_try='test -s conftest.$ac_objext' | |
e61fbf76 | 2014 | { (eval echo "$as_me:2014: \"$ac_try\"") >&5 |
50850385 TJ |
2015 | (eval $ac_try) 2>&5 |
2016 | ac_status=$? | |
e61fbf76 | 2017 | echo "$as_me:2017: \$? = $ac_status" >&5 |
50850385 TJ |
2018 | (exit $ac_status); }; }; then |
2019 | ac_cv_prog_cxx_g=yes | |
2020 | else | |
2021 | echo "$as_me: failed program was:" >&5 | |
2022 | cat conftest.$ac_ext >&5 | |
2023 | ac_cv_prog_cxx_g=no | |
2024 | fi | |
2025 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2026 | fi | |
e61fbf76 | 2027 | echo "$as_me:2027: result: $ac_cv_prog_cxx_g" >&5 |
50850385 TJ |
2028 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
2029 | if test "$ac_test_CXXFLAGS" = set; then | |
2030 | CXXFLAGS=$ac_save_CXXFLAGS | |
2031 | elif test $ac_cv_prog_cxx_g = yes; then | |
2032 | if test "$GXX" = yes; then | |
2033 | CXXFLAGS="-g -O2" | |
2034 | else | |
2035 | CXXFLAGS="-g" | |
2036 | fi | |
2037 | else | |
2038 | if test "$GXX" = yes; then | |
2039 | CXXFLAGS="-O2" | |
2040 | else | |
2041 | CXXFLAGS= | |
2042 | fi | |
2043 | fi | |
2044 | for ac_declaration in \ | |
2045 | ''\ | |
2046 | '#include <stdlib.h>' \ | |
2047 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2048 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2049 | 'extern "C" void exit (int) throw ();' \ | |
2050 | 'extern "C" void exit (int);' \ | |
2051 | 'void exit (int);' | |
2052 | do | |
2053 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 2054 | #line 2054 "configure" |
50850385 TJ |
2055 | #include "confdefs.h" |
2056 | #include <stdlib.h> | |
2057 | $ac_declaration | |
50850385 TJ |
2058 | int |
2059 | main () | |
2060 | { | |
2061 | exit (42); | |
2062 | ; | |
2063 | return 0; | |
2064 | } | |
2065 | _ACEOF | |
2066 | rm -f conftest.$ac_objext | |
e61fbf76 | 2067 | if { (eval echo "$as_me:2067: \"$ac_compile\"") >&5 |
50850385 TJ |
2068 | (eval $ac_compile) 2>&5 |
2069 | ac_status=$? | |
e61fbf76 | 2070 | echo "$as_me:2070: \$? = $ac_status" >&5 |
50850385 TJ |
2071 | (exit $ac_status); } && |
2072 | { ac_try='test -s conftest.$ac_objext' | |
e61fbf76 | 2073 | { (eval echo "$as_me:2073: \"$ac_try\"") >&5 |
50850385 TJ |
2074 | (eval $ac_try) 2>&5 |
2075 | ac_status=$? | |
e61fbf76 | 2076 | echo "$as_me:2076: \$? = $ac_status" >&5 |
50850385 TJ |
2077 | (exit $ac_status); }; }; then |
2078 | : | |
2079 | else | |
2080 | echo "$as_me: failed program was:" >&5 | |
2081 | cat conftest.$ac_ext >&5 | |
2082 | continue | |
2083 | fi | |
2084 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2085 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 2086 | #line 2086 "configure" |
50850385 TJ |
2087 | #include "confdefs.h" |
2088 | $ac_declaration | |
50850385 TJ |
2089 | int |
2090 | main () | |
2091 | { | |
2092 | exit (42); | |
2093 | ; | |
2094 | return 0; | |
2095 | } | |
2096 | _ACEOF | |
2097 | rm -f conftest.$ac_objext | |
e61fbf76 | 2098 | if { (eval echo "$as_me:2098: \"$ac_compile\"") >&5 |
50850385 TJ |
2099 | (eval $ac_compile) 2>&5 |
2100 | ac_status=$? | |
e61fbf76 | 2101 | echo "$as_me:2101: \$? = $ac_status" >&5 |
50850385 TJ |
2102 | (exit $ac_status); } && |
2103 | { ac_try='test -s conftest.$ac_objext' | |
e61fbf76 | 2104 | { (eval echo "$as_me:2104: \"$ac_try\"") >&5 |
50850385 TJ |
2105 | (eval $ac_try) 2>&5 |
2106 | ac_status=$? | |
e61fbf76 | 2107 | echo "$as_me:2107: \$? = $ac_status" >&5 |
50850385 TJ |
2108 | (exit $ac_status); }; }; then |
2109 | break | |
2110 | else | |
2111 | echo "$as_me: failed program was:" >&5 | |
2112 | cat conftest.$ac_ext >&5 | |
2113 | fi | |
2114 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2115 | done | |
2116 | rm -f conftest* | |
2117 | if test -n "$ac_declaration"; then | |
2118 | echo '#ifdef __cplusplus' >>confdefs.h | |
2119 | echo $ac_declaration >>confdefs.h | |
2120 | echo '#endif' >>confdefs.h | |
2121 | fi | |
2122 | ||
2123 | ac_ext=cc | |
2124 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2125 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2126 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2127 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
2128 | ||
2129 | depcc="$CXX" am_compiler_list= | |
2130 | ||
e61fbf76 | 2131 | echo "$as_me:2131: checking dependency style of $depcc" >&5 |
50850385 TJ |
2132 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
2133 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then | |
2134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2135 | else | |
2136 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
2137 | # We make a subdir and do the tests there. Otherwise we can end up | |
2138 | # making bogus files that we don't know about and never remove. For | |
2139 | # instance it was reported that on HP-UX the gcc test will end up | |
2140 | # making a dummy file named `D' -- because `-MD' means `put the output | |
2141 | # in D'. | |
2142 | mkdir conftest.dir | |
2143 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
2144 | # using a relative directory. | |
2145 | cp "$am_depcomp" conftest.dir | |
2146 | cd conftest.dir | |
2147 | ||
2148 | am_cv_CXX_dependencies_compiler_type=none | |
2149 | if test "$am_compiler_list" = ""; then | |
2150 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
2151 | fi | |
2152 | for depmode in $am_compiler_list; do | |
2153 | # We need to recreate these files for each test, as the compiler may | |
2154 | # overwrite some of them when testing with obscure command lines. | |
2155 | # This happens at least with the AIX C compiler. | |
2156 | echo '#include "conftest.h"' > conftest.c | |
2157 | echo 'int i;' > conftest.h | |
2158 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf | |
2159 | ||
2160 | case $depmode in | |
2161 | nosideeffect) | |
2162 | # after this tag, mechanisms are not by side-effect, so they'll | |
2163 | # only be used when explicitly requested | |
2164 | if test "x$enable_dependency_tracking" = xyes; then | |
2165 | continue | |
2166 | else | |
2167 | break | |
2168 | fi | |
2169 | ;; | |
2170 | none) break ;; | |
2171 | esac | |
2172 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
2173 | # mode. It turns out that the SunPro C++ compiler does not properly | |
2174 | # handle `-M -o', and we need to detect this. | |
2175 | if depmode=$depmode \ | |
2176 | source=conftest.c object=conftest.o \ | |
2177 | depfile=conftest.Po tmpdepfile=conftest.TPo \ | |
2178 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && | |
2179 | grep conftest.h conftest.Po > /dev/null 2>&1 && | |
2180 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
2181 | am_cv_CXX_dependencies_compiler_type=$depmode | |
2182 | break | |
2183 | fi | |
2184 | done | |
2185 | ||
2186 | cd .. | |
2187 | rm -rf conftest.dir | |
2188 | else | |
2189 | am_cv_CXX_dependencies_compiler_type=none | |
2190 | fi | |
2191 | ||
2192 | fi | |
e61fbf76 | 2193 | echo "$as_me:2193: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
50850385 TJ |
2194 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
2195 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
2196 | ||
50850385 TJ |
2197 | # Check whether --enable-debug or --disable-debug was given. |
2198 | if test "${enable_debug+set}" = set; then | |
2199 | enableval="$enable_debug" | |
2200 | ||
2201 | if test $enableval = "no"; then | |
2202 | kde_use_debug_code="no" | |
2203 | kde_use_debug_define=yes | |
2204 | else | |
2205 | kde_use_debug_code="yes" | |
2206 | kde_use_debug_define=no | |
2207 | fi | |
2208 | ||
2209 | else | |
2210 | kde_use_debug_code="no" | |
2211 | kde_use_debug_define=no | |
2212 | ||
2213 | fi; | |
2214 | ||
2215 | # Check whether --enable-dummyoption or --disable-dummyoption was given. | |
2216 | if test "${enable_dummyoption+set}" = set; then | |
2217 | enableval="$enable_dummyoption" | |
2218 | ||
2219 | fi; | |
2220 | ||
2221 | # Check whether --enable-strict or --disable-strict was given. | |
2222 | if test "${enable_strict+set}" = set; then | |
2223 | enableval="$enable_strict" | |
2224 | ||
2225 | if test $enableval = "no"; then | |
2226 | kde_use_strict_options="no" | |
2227 | else | |
2228 | kde_use_strict_options="yes" | |
2229 | fi | |
2230 | ||
2231 | else | |
2232 | kde_use_strict_options="no" | |
2233 | fi; | |
2234 | ||
2235 | # Check whether --enable-profile or --disable-profile was given. | |
2236 | if test "${enable_profile+set}" = set; then | |
2237 | enableval="$enable_profile" | |
2238 | kde_use_profiling=$enableval | |
2239 | else | |
2240 | kde_use_profiling="no" | |
2241 | ||
2242 | fi; | |
2243 | ||
2244 | CFLAGS=" $CFLAGS" | |
2245 | ||
2246 | ac_ext=c | |
2247 | ac_cpp='$CPP $CPPFLAGS' | |
2248 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2249 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2250 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2251 | if test -n "$ac_tool_prefix"; then | |
2252 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2253 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
e61fbf76 | 2254 | echo "$as_me:2254: checking for $ac_word" >&5 |
50850385 TJ |
2255 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2256 | if test "${ac_cv_prog_CC+set}" = set; then | |
2257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2258 | else | |
2259 | if test -n "$CC"; then | |
2260 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2261 | else | |
e61fbf76 TJ |
2262 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
2263 | ac_dummy="$PATH" | |
2264 | for ac_dir in $ac_dummy; do | |
2265 | IFS=$ac_save_IFS | |
2266 | test -z "$ac_dir" && ac_dir=. | |
2267 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2268 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2269 | echo "$as_me:2269: found $ac_dir/$ac_word" >&5 | |
2270 | break | |
50850385 TJ |
2271 | done |
2272 | ||
2273 | fi | |
2274 | fi | |
2275 | CC=$ac_cv_prog_CC | |
2276 | if test -n "$CC"; then | |
e61fbf76 | 2277 | echo "$as_me:2277: result: $CC" >&5 |
50850385 TJ |
2278 | echo "${ECHO_T}$CC" >&6 |
2279 | else | |
e61fbf76 | 2280 | echo "$as_me:2280: result: no" >&5 |
50850385 TJ |
2281 | echo "${ECHO_T}no" >&6 |
2282 | fi | |
2283 | ||
2284 | fi | |
2285 | if test -z "$ac_cv_prog_CC"; then | |
2286 | ac_ct_CC=$CC | |
2287 | # Extract the first word of "gcc", so it can be a program name with args. | |
2288 | set dummy gcc; ac_word=$2 | |
e61fbf76 | 2289 | echo "$as_me:2289: checking for $ac_word" >&5 |
50850385 TJ |
2290 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2291 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2293 | else | |
2294 | if test -n "$ac_ct_CC"; then | |
2295 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2296 | else | |
e61fbf76 TJ |
2297 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
2298 | ac_dummy="$PATH" | |
2299 | for ac_dir in $ac_dummy; do | |
2300 | IFS=$ac_save_IFS | |
2301 | test -z "$ac_dir" && ac_dir=. | |
2302 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2303 | ac_cv_prog_ac_ct_CC="gcc" | |
2304 | echo "$as_me:2304: found $ac_dir/$ac_word" >&5 | |
2305 | break | |
50850385 TJ |
2306 | done |
2307 | ||
2308 | fi | |
2309 | fi | |
2310 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2311 | if test -n "$ac_ct_CC"; then | |
e61fbf76 | 2312 | echo "$as_me:2312: result: $ac_ct_CC" >&5 |
50850385 TJ |
2313 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2314 | else | |
e61fbf76 | 2315 | echo "$as_me:2315: result: no" >&5 |
50850385 TJ |
2316 | echo "${ECHO_T}no" >&6 |
2317 | fi | |
2318 | ||
2319 | CC=$ac_ct_CC | |
2320 | else | |
2321 | CC="$ac_cv_prog_CC" | |
2322 | fi | |
2323 | ||
2324 | if test -z "$CC"; then | |
2325 | if test -n "$ac_tool_prefix"; then | |
2326 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2327 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
e61fbf76 | 2328 | echo "$as_me:2328: checking for $ac_word" >&5 |
50850385 TJ |
2329 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2330 | if test "${ac_cv_prog_CC+set}" = set; then | |
2331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2332 | else | |
2333 | if test -n "$CC"; then | |
2334 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2335 | else | |
e61fbf76 TJ |
2336 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
2337 | ac_dummy="$PATH" | |
2338 | for ac_dir in $ac_dummy; do | |
2339 | IFS=$ac_save_IFS | |
2340 | test -z "$ac_dir" && ac_dir=. | |
2341 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2342 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2343 | echo "$as_me:2343: found $ac_dir/$ac_word" >&5 | |
2344 | break | |
50850385 TJ |
2345 | done |
2346 | ||
2347 | fi | |
2348 | fi | |
2349 | CC=$ac_cv_prog_CC | |
2350 | if test -n "$CC"; then | |
e61fbf76 | 2351 | echo "$as_me:2351: result: $CC" >&5 |
50850385 TJ |
2352 | echo "${ECHO_T}$CC" >&6 |
2353 | else | |
e61fbf76 | 2354 | echo "$as_me:2354: result: no" >&5 |
50850385 TJ |
2355 | echo "${ECHO_T}no" >&6 |
2356 | fi | |
2357 | ||
2358 | fi | |
2359 | if test -z "$ac_cv_prog_CC"; then | |
2360 | ac_ct_CC=$CC | |
2361 | # Extract the first word of "cc", so it can be a program name with args. | |
2362 | set dummy cc; ac_word=$2 | |
e61fbf76 | 2363 | echo "$as_me:2363: checking for $ac_word" >&5 |
50850385 TJ |
2364 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2365 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2367 | else | |
2368 | if test -n "$ac_ct_CC"; then | |
2369 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2370 | else | |
e61fbf76 TJ |
2371 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
2372 | ac_dummy="$PATH" | |
2373 | for ac_dir in $ac_dummy; do | |
2374 | IFS=$ac_save_IFS | |
2375 | test -z "$ac_dir" && ac_dir=. | |
2376 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2377 | ac_cv_prog_ac_ct_CC="cc" | |
2378 | echo "$as_me:2378: found $ac_dir/$ac_word" >&5 | |
2379 | break | |
50850385 TJ |
2380 | done |
2381 | ||
2382 | fi | |
2383 | fi | |
2384 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2385 | if test -n "$ac_ct_CC"; then | |
e61fbf76 | 2386 | echo "$as_me:2386: result: $ac_ct_CC" >&5 |
50850385 TJ |
2387 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2388 | else | |
e61fbf76 | 2389 | echo "$as_me:2389: result: no" >&5 |
50850385 TJ |
2390 | echo "${ECHO_T}no" >&6 |
2391 | fi | |
2392 | ||
2393 | CC=$ac_ct_CC | |
2394 | else | |
2395 | CC="$ac_cv_prog_CC" | |
2396 | fi | |
2397 | ||
2398 | fi | |
2399 | if test -z "$CC"; then | |
2400 | # Extract the first word of "cc", so it can be a program name with args. | |
2401 | set dummy cc; ac_word=$2 | |
e61fbf76 | 2402 | echo "$as_me:2402: checking for $ac_word" >&5 |
50850385 TJ |
2403 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2404 | if test "${ac_cv_prog_CC+set}" = set; then | |
2405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2406 | else | |
2407 | if test -n "$CC"; then | |
2408 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2409 | else | |
2410 | ac_prog_rejected=no | |
e61fbf76 TJ |
2411 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
2412 | ac_dummy="$PATH" | |
2413 | for ac_dir in $ac_dummy; do | |
2414 | IFS=$ac_save_IFS | |
2415 | test -z "$ac_dir" && ac_dir=. | |
2416 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2417 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
2418 | ac_prog_rejected=yes | |
2419 | continue | |
2420 | fi | |
2421 | ac_cv_prog_CC="cc" | |
2422 | echo "$as_me:2422: found $ac_dir/$ac_word" >&5 | |
2423 | break | |
50850385 TJ |
2424 | done |
2425 | ||
2426 | if test $ac_prog_rejected = yes; then | |
2427 | # We found a bogon in the path, so make sure we never use it. | |
2428 | set dummy $ac_cv_prog_CC | |
2429 | shift | |
2430 | if test $# != 0; then | |
2431 | # We chose a different compiler from the bogus one. | |
2432 | # However, it has the same basename, so the bogon will be chosen | |
2433 | # first if we set CC to just the basename; use the full file name. | |
2434 | shift | |
e61fbf76 | 2435 | set dummy "$ac_dir/$ac_word" ${1+"$@"} |
50850385 TJ |
2436 | shift |
2437 | ac_cv_prog_CC="$@" | |
2438 | fi | |
2439 | fi | |
2440 | fi | |
2441 | fi | |
2442 | CC=$ac_cv_prog_CC | |
2443 | if test -n "$CC"; then | |
e61fbf76 | 2444 | echo "$as_me:2444: result: $CC" >&5 |
50850385 TJ |
2445 | echo "${ECHO_T}$CC" >&6 |
2446 | else | |
e61fbf76 | 2447 | echo "$as_me:2447: result: no" >&5 |
50850385 TJ |
2448 | echo "${ECHO_T}no" >&6 |
2449 | fi | |
2450 | ||
2451 | fi | |
2452 | if test -z "$CC"; then | |
2453 | if test -n "$ac_tool_prefix"; then | |
2454 | for ac_prog in cl | |
2455 | do | |
2456 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2457 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
e61fbf76 | 2458 | echo "$as_me:2458: checking for $ac_word" >&5 |
50850385 TJ |
2459 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2460 | if test "${ac_cv_prog_CC+set}" = set; then | |
2461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2462 | else | |
2463 | if test -n "$CC"; then | |
2464 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2465 | else | |
e61fbf76 TJ |
2466 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
2467 | ac_dummy="$PATH" | |
2468 | for ac_dir in $ac_dummy; do | |
2469 | IFS=$ac_save_IFS | |
2470 | test -z "$ac_dir" && ac_dir=. | |
2471 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2472 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2473 | echo "$as_me:2473: found $ac_dir/$ac_word" >&5 | |
2474 | break | |
50850385 TJ |
2475 | done |
2476 | ||
2477 | fi | |
2478 | fi | |
2479 | CC=$ac_cv_prog_CC | |
2480 | if test -n "$CC"; then | |
e61fbf76 | 2481 | echo "$as_me:2481: result: $CC" >&5 |
50850385 TJ |
2482 | echo "${ECHO_T}$CC" >&6 |
2483 | else | |
e61fbf76 | 2484 | echo "$as_me:2484: result: no" >&5 |
50850385 TJ |
2485 | echo "${ECHO_T}no" >&6 |
2486 | fi | |
2487 | ||
2488 | test -n "$CC" && break | |
2489 | done | |
2490 | fi | |
2491 | if test -z "$CC"; then | |
2492 | ac_ct_CC=$CC | |
2493 | for ac_prog in cl | |
2494 | do | |
2495 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2496 | set dummy $ac_prog; ac_word=$2 | |
e61fbf76 | 2497 | echo "$as_me:2497: checking for $ac_word" >&5 |
50850385 TJ |
2498 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2499 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2501 | else | |
2502 | if test -n "$ac_ct_CC"; then | |
2503 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2504 | else | |
e61fbf76 TJ |
2505 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
2506 | ac_dummy="$PATH" | |
2507 | for ac_dir in $ac_dummy; do | |
2508 | IFS=$ac_save_IFS | |
2509 | test -z "$ac_dir" && ac_dir=. | |
2510 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2511 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2512 | echo "$as_me:2512: found $ac_dir/$ac_word" >&5 | |
2513 | break | |
50850385 TJ |
2514 | done |
2515 | ||
2516 | fi | |
2517 | fi | |
2518 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2519 | if test -n "$ac_ct_CC"; then | |
e61fbf76 | 2520 | echo "$as_me:2520: result: $ac_ct_CC" >&5 |
50850385 TJ |
2521 | echo "${ECHO_T}$ac_ct_CC" >&6 |
2522 | else | |
e61fbf76 | 2523 | echo "$as_me:2523: result: no" >&5 |
50850385 TJ |
2524 | echo "${ECHO_T}no" >&6 |
2525 | fi | |
2526 | ||
2527 | test -n "$ac_ct_CC" && break | |
2528 | done | |
2529 | ||
2530 | CC=$ac_ct_CC | |
2531 | fi | |
2532 | ||
2533 | fi | |
2534 | ||
e61fbf76 TJ |
2535 | test -z "$CC" && { { echo "$as_me:2535: error: no acceptable cc found in \$PATH" >&5 |
2536 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} | |
50850385 TJ |
2537 | { (exit 1); exit 1; }; } |
2538 | ||
2539 | # Provide some information about the compiler. | |
e61fbf76 | 2540 | echo "$as_me:2540:" \ |
50850385 TJ |
2541 | "checking for C compiler version" >&5 |
2542 | ac_compiler=`set X $ac_compile; echo $2` | |
e61fbf76 | 2543 | { (eval echo "$as_me:2543: \"$ac_compiler --version </dev/null >&5\"") >&5 |
50850385 TJ |
2544 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
2545 | ac_status=$? | |
e61fbf76 | 2546 | echo "$as_me:2546: \$? = $ac_status" >&5 |
50850385 | 2547 | (exit $ac_status); } |
e61fbf76 | 2548 | { (eval echo "$as_me:2548: \"$ac_compiler -v </dev/null >&5\"") >&5 |
50850385 TJ |
2549 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
2550 | ac_status=$? | |
e61fbf76 | 2551 | echo "$as_me:2551: \$? = $ac_status" >&5 |
50850385 | 2552 | (exit $ac_status); } |
e61fbf76 | 2553 | { (eval echo "$as_me:2553: \"$ac_compiler -V </dev/null >&5\"") >&5 |
50850385 TJ |
2554 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
2555 | ac_status=$? | |
e61fbf76 | 2556 | echo "$as_me:2556: \$? = $ac_status" >&5 |
50850385 TJ |
2557 | (exit $ac_status); } |
2558 | ||
2559 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 2560 | #line 2560 "configure" |
50850385 TJ |
2561 | #include "confdefs.h" |
2562 | ||
50850385 TJ |
2563 | int |
2564 | main () | |
2565 | { | |
2566 | ||
2567 | ; | |
2568 | return 0; | |
2569 | } | |
2570 | _ACEOF | |
2571 | ac_clean_files_save=$ac_clean_files | |
2572 | ac_clean_files="$ac_clean_files a.out a.exe" | |
2573 | # Try to create an executable without -o first, disregard a.out. | |
2574 | # It will help us diagnose broken compilers, and finding out an intuition | |
2575 | # of exeext. | |
e61fbf76 | 2576 | echo "$as_me:2576: checking for C compiler default output" >&5 |
50850385 TJ |
2577 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
2578 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
e61fbf76 | 2579 | if { (eval echo "$as_me:2579: \"$ac_link_default\"") >&5 |
50850385 TJ |
2580 | (eval $ac_link_default) 2>&5 |
2581 | ac_status=$? | |
e61fbf76 | 2582 | echo "$as_me:2582: \$? = $ac_status" >&5 |
50850385 TJ |
2583 | (exit $ac_status); }; then |
2584 | # Find the output, starting from the most likely. This scheme is | |
2585 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2586 | # resort. | |
e61fbf76 | 2587 | for ac_file in `ls a.exe conftest.exe 2>/dev/null; |
50850385 TJ |
2588 | ls a.out conftest 2>/dev/null; |
2589 | ls a.* conftest.* 2>/dev/null`; do | |
2590 | case $ac_file in | |
e61fbf76 | 2591 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
50850385 TJ |
2592 | a.out ) # We found the default executable, but exeext='' is most |
2593 | # certainly right. | |
2594 | break;; | |
2595 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2596 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. | |
2597 | export ac_cv_exeext | |
2598 | break;; | |
2599 | * ) break;; | |
2600 | esac | |
2601 | done | |
2602 | else | |
2603 | echo "$as_me: failed program was:" >&5 | |
2604 | cat conftest.$ac_ext >&5 | |
e61fbf76 | 2605 | { { echo "$as_me:2605: error: C compiler cannot create executables" >&5 |
50850385 TJ |
2606 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
2607 | { (exit 77); exit 77; }; } | |
2608 | fi | |
2609 | ||
2610 | ac_exeext=$ac_cv_exeext | |
e61fbf76 | 2611 | echo "$as_me:2611: result: $ac_file" >&5 |
50850385 TJ |
2612 | echo "${ECHO_T}$ac_file" >&6 |
2613 | ||
2614 | # Check the compiler produces executables we can run. If not, either | |
2615 | # the compiler is broken, or we cross compile. | |
e61fbf76 | 2616 | echo "$as_me:2616: checking whether the C compiler works" >&5 |
50850385 TJ |
2617 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
2618 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2619 | # If not cross compiling, check that we can run a simple program. | |
2620 | if test "$cross_compiling" != yes; then | |
2621 | if { ac_try='./$ac_file' | |
e61fbf76 | 2622 | { (eval echo "$as_me:2622: \"$ac_try\"") >&5 |
50850385 TJ |
2623 | (eval $ac_try) 2>&5 |
2624 | ac_status=$? | |
e61fbf76 | 2625 | echo "$as_me:2625: \$? = $ac_status" >&5 |
50850385 TJ |
2626 | (exit $ac_status); }; }; then |
2627 | cross_compiling=no | |
2628 | else | |
2629 | if test "$cross_compiling" = maybe; then | |
2630 | cross_compiling=yes | |
2631 | else | |
e61fbf76 | 2632 | { { echo "$as_me:2632: error: cannot run C compiled programs. |
50850385 TJ |
2633 | If you meant to cross compile, use \`--host'." >&5 |
2634 | echo "$as_me: error: cannot run C compiled programs. | |
2635 | If you meant to cross compile, use \`--host'." >&2;} | |
2636 | { (exit 1); exit 1; }; } | |
2637 | fi | |
2638 | fi | |
2639 | fi | |
e61fbf76 | 2640 | echo "$as_me:2640: result: yes" >&5 |
50850385 TJ |
2641 | echo "${ECHO_T}yes" >&6 |
2642 | ||
2643 | rm -f a.out a.exe conftest$ac_cv_exeext | |
2644 | ac_clean_files=$ac_clean_files_save | |
2645 | # Check the compiler produces executables we can run. If not, either | |
2646 | # the compiler is broken, or we cross compile. | |
e61fbf76 | 2647 | echo "$as_me:2647: checking whether we are cross compiling" >&5 |
50850385 | 2648 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
e61fbf76 | 2649 | echo "$as_me:2649: result: $cross_compiling" >&5 |
50850385 TJ |
2650 | echo "${ECHO_T}$cross_compiling" >&6 |
2651 | ||
e61fbf76 TJ |
2652 | echo "$as_me:2652: checking for executable suffix" >&5 |
2653 | echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 | |
2654 | if { (eval echo "$as_me:2654: \"$ac_link\"") >&5 | |
50850385 TJ |
2655 | (eval $ac_link) 2>&5 |
2656 | ac_status=$? | |
e61fbf76 | 2657 | echo "$as_me:2657: \$? = $ac_status" >&5 |
50850385 TJ |
2658 | (exit $ac_status); }; then |
2659 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2660 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2661 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2662 | # `rm'. | |
2663 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | |
2664 | case $ac_file in | |
2665 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
2666 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2667 | export ac_cv_exeext | |
2668 | break;; | |
2669 | * ) break;; | |
2670 | esac | |
2671 | done | |
2672 | else | |
e61fbf76 TJ |
2673 | { { echo "$as_me:2673: error: cannot compute EXEEXT: cannot compile and link" >&5 |
2674 | echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} | |
50850385 TJ |
2675 | { (exit 1); exit 1; }; } |
2676 | fi | |
2677 | ||
2678 | rm -f conftest$ac_cv_exeext | |
e61fbf76 | 2679 | echo "$as_me:2679: result: $ac_cv_exeext" >&5 |
50850385 TJ |
2680 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
2681 | ||
2682 | rm -f conftest.$ac_ext | |
2683 | EXEEXT=$ac_cv_exeext | |
2684 | ac_exeext=$EXEEXT | |
e61fbf76 TJ |
2685 | echo "$as_me:2685: checking for object suffix" >&5 |
2686 | echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 | |
50850385 TJ |
2687 | if test "${ac_cv_objext+set}" = set; then |
2688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2689 | else | |
2690 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 2691 | #line 2691 "configure" |
50850385 TJ |
2692 | #include "confdefs.h" |
2693 | ||
50850385 TJ |
2694 | int |
2695 | main () | |
2696 | { | |
2697 | ||
2698 | ; | |
2699 | return 0; | |
2700 | } | |
2701 | _ACEOF | |
2702 | rm -f conftest.o conftest.obj | |
e61fbf76 | 2703 | if { (eval echo "$as_me:2703: \"$ac_compile\"") >&5 |
50850385 TJ |
2704 | (eval $ac_compile) 2>&5 |
2705 | ac_status=$? | |
e61fbf76 | 2706 | echo "$as_me:2706: \$? = $ac_status" >&5 |
50850385 TJ |
2707 | (exit $ac_status); }; then |
2708 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2709 | case $ac_file in | |
2710 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
2711 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2712 | break;; | |
2713 | esac | |
2714 | done | |
2715 | else | |
2716 | echo "$as_me: failed program was:" >&5 | |
2717 | cat conftest.$ac_ext >&5 | |
e61fbf76 TJ |
2718 | { { echo "$as_me:2718: error: cannot compute OBJEXT: cannot compile" >&5 |
2719 | echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} | |
50850385 TJ |
2720 | { (exit 1); exit 1; }; } |
2721 | fi | |
2722 | ||
2723 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2724 | fi | |
e61fbf76 | 2725 | echo "$as_me:2725: result: $ac_cv_objext" >&5 |
50850385 TJ |
2726 | echo "${ECHO_T}$ac_cv_objext" >&6 |
2727 | OBJEXT=$ac_cv_objext | |
2728 | ac_objext=$OBJEXT | |
e61fbf76 | 2729 | echo "$as_me:2729: checking whether we are using the GNU C compiler" >&5 |
50850385 TJ |
2730 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
2731 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2733 | else | |
2734 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 2735 | #line 2735 "configure" |
50850385 TJ |
2736 | #include "confdefs.h" |
2737 | ||
50850385 TJ |
2738 | int |
2739 | main () | |
2740 | { | |
2741 | #ifndef __GNUC__ | |
2742 | choke me | |
2743 | #endif | |
2744 | ||
2745 | ; | |
2746 | return 0; | |
2747 | } | |
2748 | _ACEOF | |
2749 | rm -f conftest.$ac_objext | |
e61fbf76 | 2750 | if { (eval echo "$as_me:2750: \"$ac_compile\"") >&5 |
50850385 TJ |
2751 | (eval $ac_compile) 2>&5 |
2752 | ac_status=$? | |
e61fbf76 | 2753 | echo "$as_me:2753: \$? = $ac_status" >&5 |
50850385 TJ |
2754 | (exit $ac_status); } && |
2755 | { ac_try='test -s conftest.$ac_objext' | |
e61fbf76 | 2756 | { (eval echo "$as_me:2756: \"$ac_try\"") >&5 |
50850385 TJ |
2757 | (eval $ac_try) 2>&5 |
2758 | ac_status=$? | |
e61fbf76 | 2759 | echo "$as_me:2759: \$? = $ac_status" >&5 |
50850385 TJ |
2760 | (exit $ac_status); }; }; then |
2761 | ac_compiler_gnu=yes | |
2762 | else | |
2763 | echo "$as_me: failed program was:" >&5 | |
2764 | cat conftest.$ac_ext >&5 | |
2765 | ac_compiler_gnu=no | |
2766 | fi | |
2767 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2768 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2769 | ||
2770 | fi | |
e61fbf76 | 2771 | echo "$as_me:2771: result: $ac_cv_c_compiler_gnu" >&5 |
50850385 TJ |
2772 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
2773 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2774 | ac_test_CFLAGS=${CFLAGS+set} | |
2775 | ac_save_CFLAGS=$CFLAGS | |
2776 | CFLAGS="-g" | |
e61fbf76 | 2777 | echo "$as_me:2777: checking whether $CC accepts -g" >&5 |
50850385 TJ |
2778 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
2779 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2781 | else | |
2782 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 2783 | #line 2783 "configure" |
50850385 TJ |
2784 | #include "confdefs.h" |
2785 | ||
50850385 TJ |
2786 | int |
2787 | main () | |
2788 | { | |
2789 | ||
2790 | ; | |
2791 | return 0; | |
2792 | } | |
2793 | _ACEOF | |
2794 | rm -f conftest.$ac_objext | |
e61fbf76 | 2795 | if { (eval echo "$as_me:2795: \"$ac_compile\"") >&5 |
50850385 TJ |
2796 | (eval $ac_compile) 2>&5 |
2797 | ac_status=$? | |
e61fbf76 | 2798 | echo "$as_me:2798: \$? = $ac_status" >&5 |
50850385 TJ |
2799 | (exit $ac_status); } && |
2800 | { ac_try='test -s conftest.$ac_objext' | |
e61fbf76 | 2801 | { (eval echo "$as_me:2801: \"$ac_try\"") >&5 |
50850385 TJ |
2802 | (eval $ac_try) 2>&5 |
2803 | ac_status=$? | |
e61fbf76 | 2804 | echo "$as_me:2804: \$? = $ac_status" >&5 |
50850385 TJ |
2805 | (exit $ac_status); }; }; then |
2806 | ac_cv_prog_cc_g=yes | |
2807 | else | |
2808 | echo "$as_me: failed program was:" >&5 | |
2809 | cat conftest.$ac_ext >&5 | |
2810 | ac_cv_prog_cc_g=no | |
2811 | fi | |
2812 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2813 | fi | |
e61fbf76 | 2814 | echo "$as_me:2814: result: $ac_cv_prog_cc_g" >&5 |
50850385 TJ |
2815 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
2816 | if test "$ac_test_CFLAGS" = set; then | |
2817 | CFLAGS=$ac_save_CFLAGS | |
2818 | elif test $ac_cv_prog_cc_g = yes; then | |
2819 | if test "$GCC" = yes; then | |
2820 | CFLAGS="-g -O2" | |
2821 | else | |
2822 | CFLAGS="-g" | |
2823 | fi | |
2824 | else | |
2825 | if test "$GCC" = yes; then | |
2826 | CFLAGS="-O2" | |
2827 | else | |
2828 | CFLAGS= | |
2829 | fi | |
2830 | fi | |
2831 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2832 | # in C++ we need to declare it. In case someone uses the same compiler | |
2833 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2834 | # the declaration of exit, since it's the most demanding environment. | |
2835 | cat >conftest.$ac_ext <<_ACEOF | |
2836 | #ifndef __cplusplus | |
2837 | choke me | |
2838 | #endif | |
2839 | _ACEOF | |
2840 | rm -f conftest.$ac_objext | |
e61fbf76 | 2841 | if { (eval echo "$as_me:2841: \"$ac_compile\"") >&5 |
50850385 TJ |
2842 | (eval $ac_compile) 2>&5 |
2843 | ac_status=$? | |
e61fbf76 | 2844 | echo "$as_me:2844: \$? = $ac_status" >&5 |
50850385 TJ |
2845 | (exit $ac_status); } && |
2846 | { ac_try='test -s conftest.$ac_objext' | |
e61fbf76 | 2847 | { (eval echo "$as_me:2847: \"$ac_try\"") >&5 |
50850385 TJ |
2848 | (eval $ac_try) 2>&5 |
2849 | ac_status=$? | |
e61fbf76 | 2850 | echo "$as_me:2850: \$? = $ac_status" >&5 |
50850385 TJ |
2851 | (exit $ac_status); }; }; then |
2852 | for ac_declaration in \ | |
2853 | ''\ | |
2854 | '#include <stdlib.h>' \ | |
2855 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2856 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2857 | 'extern "C" void exit (int) throw ();' \ | |
2858 | 'extern "C" void exit (int);' \ | |
2859 | 'void exit (int);' | |
2860 | do | |
2861 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 2862 | #line 2862 "configure" |
50850385 TJ |
2863 | #include "confdefs.h" |
2864 | #include <stdlib.h> | |
2865 | $ac_declaration | |
50850385 TJ |
2866 | int |
2867 | main () | |
2868 | { | |
2869 | exit (42); | |
2870 | ; | |
2871 | return 0; | |
2872 | } | |
2873 | _ACEOF | |
2874 | rm -f conftest.$ac_objext | |
e61fbf76 | 2875 | if { (eval echo "$as_me:2875: \"$ac_compile\"") >&5 |
50850385 TJ |
2876 | (eval $ac_compile) 2>&5 |
2877 | ac_status=$? | |
e61fbf76 | 2878 | echo "$as_me:2878: \$? = $ac_status" >&5 |
50850385 TJ |
2879 | (exit $ac_status); } && |
2880 | { ac_try='test -s conftest.$ac_objext' | |
e61fbf76 | 2881 | { (eval echo "$as_me:2881: \"$ac_try\"") >&5 |
50850385 TJ |
2882 | (eval $ac_try) 2>&5 |
2883 | ac_status=$? | |
e61fbf76 | 2884 | echo "$as_me:2884: \$? = $ac_status" >&5 |
50850385 TJ |
2885 | (exit $ac_status); }; }; then |
2886 | : | |
2887 | else | |
2888 | echo "$as_me: failed program was:" >&5 | |
2889 | cat conftest.$ac_ext >&5 | |
2890 | continue | |
2891 | fi | |
2892 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2893 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 2894 | #line 2894 "configure" |
50850385 TJ |
2895 | #include "confdefs.h" |
2896 | $ac_declaration | |
50850385 TJ |
2897 | int |
2898 | main () | |
2899 | { | |
2900 | exit (42); | |
2901 | ; | |
2902 | return 0; | |
2903 | } | |
2904 | _ACEOF | |
2905 | rm -f conftest.$ac_objext | |
e61fbf76 | 2906 | if { (eval echo "$as_me:2906: \"$ac_compile\"") >&5 |
50850385 TJ |
2907 | (eval $ac_compile) 2>&5 |
2908 | ac_status=$? | |
e61fbf76 | 2909 | echo "$as_me:2909: \$? = $ac_status" >&5 |
50850385 TJ |
2910 | (exit $ac_status); } && |
2911 | { ac_try='test -s conftest.$ac_objext' | |
e61fbf76 | 2912 | { (eval echo "$as_me:2912: \"$ac_try\"") >&5 |
50850385 TJ |
2913 | (eval $ac_try) 2>&5 |
2914 | ac_status=$? | |
e61fbf76 | 2915 | echo "$as_me:2915: \$? = $ac_status" >&5 |
50850385 TJ |
2916 | (exit $ac_status); }; }; then |
2917 | break | |
2918 | else | |
2919 | echo "$as_me: failed program was:" >&5 | |
2920 | cat conftest.$ac_ext >&5 | |
2921 | fi | |
2922 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2923 | done | |
2924 | rm -f conftest* | |
2925 | if test -n "$ac_declaration"; then | |
2926 | echo '#ifdef __cplusplus' >>confdefs.h | |
2927 | echo $ac_declaration >>confdefs.h | |
2928 | echo '#endif' >>confdefs.h | |
2929 | fi | |
2930 | ||
2931 | else | |
2932 | echo "$as_me: failed program was:" >&5 | |
2933 | cat conftest.$ac_ext >&5 | |
2934 | fi | |
2935 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2936 | ac_ext=c | |
2937 | ac_cpp='$CPP $CPPFLAGS' | |
2938 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2939 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2940 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2941 | ||
2942 | depcc="$CC" am_compiler_list= | |
2943 | ||
e61fbf76 | 2944 | echo "$as_me:2944: checking dependency style of $depcc" >&5 |
50850385 TJ |
2945 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
2946 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
2947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2948 | else | |
2949 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
2950 | # We make a subdir and do the tests there. Otherwise we can end up | |
2951 | # making bogus files that we don't know about and never remove. For | |
2952 | # instance it was reported that on HP-UX the gcc test will end up | |
2953 | # making a dummy file named `D' -- because `-MD' means `put the output | |
2954 | # in D'. | |
2955 | mkdir conftest.dir | |
2956 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
2957 | # using a relative directory. | |
2958 | cp "$am_depcomp" conftest.dir | |
2959 | cd conftest.dir | |
2960 | ||
2961 | am_cv_CC_dependencies_compiler_type=none | |
2962 | if test "$am_compiler_list" = ""; then | |
2963 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
2964 | fi | |
2965 | for depmode in $am_compiler_list; do | |
2966 | # We need to recreate these files for each test, as the compiler may | |
2967 | # overwrite some of them when testing with obscure command lines. | |
2968 | # This happens at least with the AIX C compiler. | |
2969 | echo '#include "conftest.h"' > conftest.c | |
2970 | echo 'int i;' > conftest.h | |
2971 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf | |
2972 | ||
2973 | case $depmode in | |
2974 | nosideeffect) | |
2975 | # after this tag, mechanisms are not by side-effect, so they'll | |
2976 | # only be used when explicitly requested | |
2977 | if test "x$enable_dependency_tracking" = xyes; then | |
2978 | continue | |
2979 | else | |
2980 | break | |
2981 | fi | |
2982 | ;; | |
2983 | none) break ;; | |
2984 | esac | |
2985 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
2986 | # mode. It turns out that the SunPro C++ compiler does not properly | |
2987 | # handle `-M -o', and we need to detect this. | |
2988 | if depmode=$depmode \ | |
2989 | source=conftest.c object=conftest.o \ | |
2990 | depfile=conftest.Po tmpdepfile=conftest.TPo \ | |
2991 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && | |
2992 | grep conftest.h conftest.Po > /dev/null 2>&1 && | |
2993 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
2994 | am_cv_CC_dependencies_compiler_type=$depmode | |
2995 | break | |
2996 | fi | |
2997 | done | |
2998 | ||
2999 | cd .. | |
3000 | rm -rf conftest.dir | |
3001 | else | |
3002 | am_cv_CC_dependencies_compiler_type=none | |
3003 | fi | |
3004 | ||
3005 | fi | |
e61fbf76 | 3006 | echo "$as_me:3006: result: $am_cv_CC_dependencies_compiler_type" >&5 |
50850385 TJ |
3007 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
3008 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3009 | ||
50850385 TJ |
3010 | if test "$GCC" = "yes"; then |
3011 | if test "$kde_use_debug_code" = "yes"; then | |
3012 | CFLAGS="-g -O2 $CFLAGS" | |
3013 | case $host in | |
3014 | *-*-linux-gnu) | |
3015 | CFLAGS="-ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS" | |
3016 | ;; | |
3017 | esac | |
3018 | else | |
3019 | CFLAGS="-O2 $CFLAGS" | |
3020 | fi | |
3021 | fi | |
3022 | ||
3023 | if test "$kde_use_debug_define" = "yes"; then | |
3024 | CFLAGS="-DNDEBUG $CFLAGS" | |
3025 | fi | |
3026 | ||
3027 | case "$host" in | |
3028 | *-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";; | |
3029 | *-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";; | |
3030 | esac | |
3031 | ||
3032 | if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then | |
3033 | LDFLAGS="" | |
3034 | fi | |
3035 | ||
3036 | if test "$kde_use_profiling" = "yes"; then | |
3037 | ||
e61fbf76 | 3038 | echo "$as_me:3038: checking whether $CXX supports -pg" >&5 |
50850385 TJ |
3039 | echo $ECHO_N "checking whether $CXX supports -pg... $ECHO_C" >&6 |
3040 | kde_cache=`echo pg | sed 'y% .=/+-%____p_%'` | |
3041 | if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then | |
3042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3043 | else | |
3044 | ||
50850385 TJ |
3045 | ac_ext=cc |
3046 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3047 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3048 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3049 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3050 | ||
3051 | ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3052 | ||
50850385 TJ |
3053 | save_CXXFLAGS="$CXXFLAGS" |
3054 | CXXFLAGS="$CXXFLAGS -pg" | |
3055 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 3056 | #line 3056 "configure" |
50850385 TJ |
3057 | #include "confdefs.h" |
3058 | ||
50850385 TJ |
3059 | int |
3060 | main () | |
3061 | { | |
3062 | return 0; | |
3063 | ; | |
3064 | return 0; | |
3065 | } | |
3066 | _ACEOF | |
3067 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 3068 | if { (eval echo "$as_me:3068: \"$ac_link\"") >&5 |
50850385 TJ |
3069 | (eval $ac_link) 2>&5 |
3070 | ac_status=$? | |
e61fbf76 | 3071 | echo "$as_me:3071: \$? = $ac_status" >&5 |
50850385 TJ |
3072 | (exit $ac_status); } && |
3073 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 3074 | { (eval echo "$as_me:3074: \"$ac_try\"") >&5 |
50850385 TJ |
3075 | (eval $ac_try) 2>&5 |
3076 | ac_status=$? | |
e61fbf76 | 3077 | echo "$as_me:3077: \$? = $ac_status" >&5 |
50850385 TJ |
3078 | (exit $ac_status); }; }; then |
3079 | eval "kde_cv_prog_cxx_$kde_cache=yes" | |
3080 | else | |
3081 | echo "$as_me: failed program was:" >&5 | |
3082 | cat conftest.$ac_ext >&5 | |
3083 | fi | |
3084 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3085 | CXXFLAGS="$save_CXXFLAGS" | |
3086 | ac_ext=c | |
3087 | ac_cpp='$CPP $CPPFLAGS' | |
3088 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3089 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3090 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3091 | ||
50850385 TJ |
3092 | fi |
3093 | ||
3094 | if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then | |
e61fbf76 | 3095 | echo "$as_me:3095: result: yes" >&5 |
50850385 TJ |
3096 | echo "${ECHO_T}yes" >&6 |
3097 | : | |
3098 | ||
3099 | CFLAGS="-pg $CFLAGS" | |
3100 | ||
3101 | else | |
e61fbf76 | 3102 | echo "$as_me:3102: result: no" >&5 |
50850385 TJ |
3103 | echo "${ECHO_T}no" >&6 |
3104 | : | |
3105 | ||
3106 | fi | |
3107 | ||
3108 | fi | |
3109 | ||
3110 | USE_EXCEPTIONS= | |
3111 | ||
3112 | USE_RTTI= | |
3113 | ||
50850385 TJ |
3114 | ac_ext=c |
3115 | ac_cpp='$CPP $CPPFLAGS' | |
3116 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3117 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3118 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
e61fbf76 | 3119 | echo "$as_me:3119: checking how to run the C preprocessor" >&5 |
50850385 TJ |
3120 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
3121 | # On Suns, sometimes $CPP names a directory. | |
3122 | if test -n "$CPP" && test -d "$CPP"; then | |
3123 | CPP= | |
3124 | fi | |
3125 | if test -z "$CPP"; then | |
3126 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3128 | else | |
3129 | # Double quotes because CPP needs to be expanded | |
3130 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3131 | do | |
3132 | ac_preproc_ok=false | |
3133 | for ac_c_preproc_warn_flag in '' yes | |
3134 | do | |
3135 | # Use a header file that comes with gcc, so configuring glibc | |
3136 | # with a fresh cross-compiler works. | |
3137 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3138 | # not just through cpp. "Syntax error" is here to catch this case. | |
3139 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 3140 | #line 3140 "configure" |
50850385 TJ |
3141 | #include "confdefs.h" |
3142 | #include <assert.h> | |
3143 | Syntax error | |
3144 | _ACEOF | |
e61fbf76 | 3145 | if { (eval echo "$as_me:3145: \"$ac_cpp conftest.$ac_ext\"") >&5 |
50850385 TJ |
3146 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3147 | ac_status=$? | |
3148 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3149 | rm -f conftest.er1 | |
3150 | cat conftest.err >&5 | |
e61fbf76 | 3151 | echo "$as_me:3151: \$? = $ac_status" >&5 |
50850385 TJ |
3152 | (exit $ac_status); } >/dev/null; then |
3153 | if test -s conftest.err; then | |
3154 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3155 | else | |
3156 | ac_cpp_err= | |
3157 | fi | |
3158 | else | |
3159 | ac_cpp_err=yes | |
3160 | fi | |
3161 | if test -z "$ac_cpp_err"; then | |
3162 | : | |
3163 | else | |
3164 | echo "$as_me: failed program was:" >&5 | |
3165 | cat conftest.$ac_ext >&5 | |
3166 | # Broken: fails on valid input. | |
3167 | continue | |
3168 | fi | |
3169 | rm -f conftest.err conftest.$ac_ext | |
3170 | ||
3171 | # OK, works on sane cases. Now check whether non-existent headers | |
3172 | # can be detected and how. | |
3173 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 3174 | #line 3174 "configure" |
50850385 TJ |
3175 | #include "confdefs.h" |
3176 | #include <ac_nonexistent.h> | |
3177 | _ACEOF | |
e61fbf76 | 3178 | if { (eval echo "$as_me:3178: \"$ac_cpp conftest.$ac_ext\"") >&5 |
50850385 TJ |
3179 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3180 | ac_status=$? | |
3181 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3182 | rm -f conftest.er1 | |
3183 | cat conftest.err >&5 | |
e61fbf76 | 3184 | echo "$as_me:3184: \$? = $ac_status" >&5 |
50850385 TJ |
3185 | (exit $ac_status); } >/dev/null; then |
3186 | if test -s conftest.err; then | |
3187 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3188 | else | |
3189 | ac_cpp_err= | |
3190 | fi | |
3191 | else | |
3192 | ac_cpp_err=yes | |
3193 | fi | |
3194 | if test -z "$ac_cpp_err"; then | |
3195 | # Broken: success on invalid input. | |
3196 | continue | |
3197 | else | |
3198 | echo "$as_me: failed program was:" >&5 | |
3199 | cat conftest.$ac_ext >&5 | |
3200 | # Passes both tests. | |
3201 | ac_preproc_ok=: | |
3202 | break | |
3203 | fi | |
3204 | rm -f conftest.err conftest.$ac_ext | |
3205 | ||
3206 | done | |
3207 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3208 | rm -f conftest.err conftest.$ac_ext | |
3209 | if $ac_preproc_ok; then | |
3210 | break | |
3211 | fi | |
3212 | ||
3213 | done | |
3214 | ac_cv_prog_CPP=$CPP | |
3215 | ||
3216 | fi | |
3217 | CPP=$ac_cv_prog_CPP | |
3218 | else | |
3219 | ac_cv_prog_CPP=$CPP | |
3220 | fi | |
e61fbf76 | 3221 | echo "$as_me:3221: result: $CPP" >&5 |
50850385 TJ |
3222 | echo "${ECHO_T}$CPP" >&6 |
3223 | ac_preproc_ok=false | |
3224 | for ac_c_preproc_warn_flag in '' yes | |
3225 | do | |
3226 | # Use a header file that comes with gcc, so configuring glibc | |
3227 | # with a fresh cross-compiler works. | |
3228 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3229 | # not just through cpp. "Syntax error" is here to catch this case. | |
3230 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 3231 | #line 3231 "configure" |
50850385 TJ |
3232 | #include "confdefs.h" |
3233 | #include <assert.h> | |
3234 | Syntax error | |
3235 | _ACEOF | |
e61fbf76 | 3236 | if { (eval echo "$as_me:3236: \"$ac_cpp conftest.$ac_ext\"") >&5 |
50850385 TJ |
3237 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3238 | ac_status=$? | |
3239 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3240 | rm -f conftest.er1 | |
3241 | cat conftest.err >&5 | |
e61fbf76 | 3242 | echo "$as_me:3242: \$? = $ac_status" >&5 |
50850385 TJ |
3243 | (exit $ac_status); } >/dev/null; then |
3244 | if test -s conftest.err; then | |
3245 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3246 | else | |
3247 | ac_cpp_err= | |
3248 | fi | |
3249 | else | |
3250 | ac_cpp_err=yes | |
3251 | fi | |
3252 | if test -z "$ac_cpp_err"; then | |
3253 | : | |
3254 | else | |
3255 | echo "$as_me: failed program was:" >&5 | |
3256 | cat conftest.$ac_ext >&5 | |
3257 | # Broken: fails on valid input. | |
3258 | continue | |
3259 | fi | |
3260 | rm -f conftest.err conftest.$ac_ext | |
3261 | ||
3262 | # OK, works on sane cases. Now check whether non-existent headers | |
3263 | # can be detected and how. | |
3264 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 3265 | #line 3265 "configure" |
50850385 TJ |
3266 | #include "confdefs.h" |
3267 | #include <ac_nonexistent.h> | |
3268 | _ACEOF | |
e61fbf76 | 3269 | if { (eval echo "$as_me:3269: \"$ac_cpp conftest.$ac_ext\"") >&5 |
50850385 TJ |
3270 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3271 | ac_status=$? | |
3272 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3273 | rm -f conftest.er1 | |
3274 | cat conftest.err >&5 | |
e61fbf76 | 3275 | echo "$as_me:3275: \$? = $ac_status" >&5 |
50850385 TJ |
3276 | (exit $ac_status); } >/dev/null; then |
3277 | if test -s conftest.err; then | |
3278 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3279 | else | |
3280 | ac_cpp_err= | |
3281 | fi | |
3282 | else | |
3283 | ac_cpp_err=yes | |
3284 | fi | |
3285 | if test -z "$ac_cpp_err"; then | |
3286 | # Broken: success on invalid input. | |
3287 | continue | |
3288 | else | |
3289 | echo "$as_me: failed program was:" >&5 | |
3290 | cat conftest.$ac_ext >&5 | |
3291 | # Passes both tests. | |
3292 | ac_preproc_ok=: | |
3293 | break | |
3294 | fi | |
3295 | rm -f conftest.err conftest.$ac_ext | |
3296 | ||
3297 | done | |
3298 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3299 | rm -f conftest.err conftest.$ac_ext | |
3300 | if $ac_preproc_ok; then | |
3301 | : | |
3302 | else | |
e61fbf76 | 3303 | { { echo "$as_me:3303: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
50850385 TJ |
3304 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
3305 | { (exit 1); exit 1; }; } | |
3306 | fi | |
3307 | ||
3308 | ac_ext=c | |
3309 | ac_cpp='$CPP $CPPFLAGS' | |
3310 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3311 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3312 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3313 | ||
50850385 TJ |
3314 | # the following is to allow programs, that are known to |
3315 | # have problems when compiled with -O2 | |
3316 | if test -n "$CFLAGS"; then | |
3317 | kde_safe_IFS=$IFS | |
3318 | IFS=" " | |
3319 | NOOPT_CFLAGS="" | |
3320 | for i in $CFLAGS; do | |
3321 | case $i in | |
3322 | -O*) | |
3323 | ;; | |
3324 | *) | |
3325 | NOOPT_CFLAGS="$NOOPT_CFLAGS $i" | |
3326 | ;; | |
3327 | esac | |
3328 | done | |
3329 | IFS=$kde_safe_IFS | |
3330 | fi | |
3331 | ||
50850385 TJ |
3332 | # Check whether --enable-final or --disable-final was given. |
3333 | if test "${enable_final+set}" = set; then | |
3334 | enableval="$enable_final" | |
3335 | kde_use_final=$enableval | |
3336 | else | |
3337 | kde_use_final=no | |
3338 | fi; | |
3339 | ||
50850385 TJ |
3340 | REPO="" |
3341 | NOREPO="" | |
3342 | ||
e61fbf76 | 3343 | echo "$as_me:3343: checking whether $CXX supports -frepo" >&5 |
50850385 TJ |
3344 | echo $ECHO_N "checking whether $CXX supports -frepo... $ECHO_C" >&6 |
3345 | kde_cache=`echo frepo | sed 'y% .=/+-%____p_%'` | |
3346 | if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then | |
3347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3348 | else | |
3349 | ||
50850385 TJ |
3350 | ac_ext=cc |
3351 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3352 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3353 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3354 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3355 | ||
3356 | ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3357 | ||
50850385 TJ |
3358 | save_CXXFLAGS="$CXXFLAGS" |
3359 | CXXFLAGS="$CXXFLAGS -frepo" | |
3360 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 3361 | #line 3361 "configure" |
50850385 TJ |
3362 | #include "confdefs.h" |
3363 | ||
50850385 TJ |
3364 | int |
3365 | main () | |
3366 | { | |
3367 | return 0; | |
3368 | ; | |
3369 | return 0; | |
3370 | } | |
3371 | _ACEOF | |
3372 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 3373 | if { (eval echo "$as_me:3373: \"$ac_link\"") >&5 |
50850385 TJ |
3374 | (eval $ac_link) 2>&5 |
3375 | ac_status=$? | |
e61fbf76 | 3376 | echo "$as_me:3376: \$? = $ac_status" >&5 |
50850385 TJ |
3377 | (exit $ac_status); } && |
3378 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 3379 | { (eval echo "$as_me:3379: \"$ac_try\"") >&5 |
50850385 TJ |
3380 | (eval $ac_try) 2>&5 |
3381 | ac_status=$? | |
e61fbf76 | 3382 | echo "$as_me:3382: \$? = $ac_status" >&5 |
50850385 TJ |
3383 | (exit $ac_status); }; }; then |
3384 | eval "kde_cv_prog_cxx_$kde_cache=yes" | |
3385 | else | |
3386 | echo "$as_me: failed program was:" >&5 | |
3387 | cat conftest.$ac_ext >&5 | |
3388 | fi | |
3389 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3390 | CXXFLAGS="$save_CXXFLAGS" | |
3391 | ac_ext=c | |
3392 | ac_cpp='$CPP $CPPFLAGS' | |
3393 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3394 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3395 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3396 | ||
50850385 TJ |
3397 | fi |
3398 | ||
3399 | if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then | |
e61fbf76 | 3400 | echo "$as_me:3400: result: yes" >&5 |
50850385 TJ |
3401 | echo "${ECHO_T}yes" >&6 |
3402 | : | |
3403 | ||
3404 | REPO="-frepo" | |
3405 | NOREPO="-fno-repo" | |
3406 | ||
3407 | else | |
e61fbf76 | 3408 | echo "$as_me:3408: result: no" >&5 |
50850385 TJ |
3409 | echo "${ECHO_T}no" >&6 |
3410 | : | |
3411 | ||
3412 | fi | |
3413 | ||
50850385 TJ |
3414 | if test -z "$REPO"; then |
3415 | ||
e61fbf76 | 3416 | echo "$as_me:3416: checking whether $CXX supports -instances=explicit" >&5 |
50850385 TJ |
3417 | echo $ECHO_N "checking whether $CXX supports -instances=explicit... $ECHO_C" >&6 |
3418 | kde_cache=`echo instances=explicit | sed 'y% .=/+-%____p_%'` | |
3419 | if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then | |
3420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3421 | else | |
3422 | ||
50850385 TJ |
3423 | ac_ext=cc |
3424 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3425 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3426 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3427 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3428 | ||
3429 | ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
3430 | ||
50850385 TJ |
3431 | save_CXXFLAGS="$CXXFLAGS" |
3432 | CXXFLAGS="$CXXFLAGS -instances=explicit" | |
3433 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 3434 | #line 3434 "configure" |
50850385 TJ |
3435 | #include "confdefs.h" |
3436 | ||
50850385 TJ |
3437 | int |
3438 | main () | |
3439 | { | |
3440 | return 0; | |
3441 | ; | |
3442 | return 0; | |
3443 | } | |
3444 | _ACEOF | |
3445 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 3446 | if { (eval echo "$as_me:3446: \"$ac_link\"") >&5 |
50850385 TJ |
3447 | (eval $ac_link) 2>&5 |
3448 | ac_status=$? | |
e61fbf76 | 3449 | echo "$as_me:3449: \$? = $ac_status" >&5 |
50850385 TJ |
3450 | (exit $ac_status); } && |
3451 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 3452 | { (eval echo "$as_me:3452: \"$ac_try\"") >&5 |
50850385 TJ |
3453 | (eval $ac_try) 2>&5 |
3454 | ac_status=$? | |
e61fbf76 | 3455 | echo "$as_me:3455: \$? = $ac_status" >&5 |
50850385 TJ |
3456 | (exit $ac_status); }; }; then |
3457 | eval "kde_cv_prog_cxx_$kde_cache=yes" | |
3458 | else | |
3459 | echo "$as_me: failed program was:" >&5 | |
3460 | cat conftest.$ac_ext >&5 | |
3461 | fi | |
3462 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3463 | CXXFLAGS="$save_CXXFLAGS" | |
3464 | ac_ext=c | |
3465 | ac_cpp='$CPP $CPPFLAGS' | |
3466 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3467 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3468 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3469 | ||
50850385 TJ |
3470 | fi |
3471 | ||
3472 | if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then | |
e61fbf76 | 3473 | echo "$as_me:3473: result: yes" >&5 |
50850385 TJ |
3474 | echo "${ECHO_T}yes" >&6 |
3475 | : | |
3476 | ||
3477 | REPO="-instances=explicit" | |
3478 | NOREPO="-instances=extern" | |
3479 | ||
3480 | else | |
e61fbf76 | 3481 | echo "$as_me:3481: result: no" >&5 |
50850385 TJ |
3482 | echo "${ECHO_T}no" >&6 |
3483 | : | |
3484 | ||
3485 | fi | |
3486 | ||
3487 | fi | |
3488 | ||
3489 | if test -n "$REPO"; then | |
3490 | ||
e61fbf76 | 3491 | cat >>confdefs.h <<EOF |
50850385 | 3492 | #define HAVE_TEMPLATE_REPOSITORY 1 |
e61fbf76 | 3493 | EOF |
50850385 TJ |
3494 | |
3495 | fi | |
3496 | ||
50850385 TJ |
3497 | if test "x$kde_use_final" = "xyes"; then |
3498 | KDE_USE_FINAL_TRUE="" | |
3499 | KDE_USE_FINAL_FALSE="#" | |
3500 | else | |
3501 | KDE_USE_FINAL_TRUE="#" | |
3502 | KDE_USE_FINAL_FALSE="" | |
3503 | fi | |
3504 | ||
50850385 TJ |
3505 | # Check whether --enable-closure or --disable-closure was given. |
3506 | if test "${enable_closure+set}" = set; then | |
3507 | enableval="$enable_closure" | |
3508 | kde_use_closure=$enableval | |
3509 | else | |
3510 | kde_use_closure=yes | |
3511 | fi; | |
3512 | ||
3513 | if test "x$kde_use_closure" = "xyes"; then | |
3514 | KDE_USE_CLOSURE_TRUE="" | |
3515 | KDE_USE_CLOSURE_FALSE="#" | |
3516 | # CXXFLAGS="$CXXFLAGS $REPO" | |
3517 | else | |
3518 | KDE_USE_CLOSURE_TRUE="#" | |
3519 | KDE_USE_CLOSURE_FALSE="" | |
3520 | fi | |
3521 | ||
50850385 TJ |
3522 | KDE_CXXFLAGS= |
3523 | ||
50850385 TJ |
3524 | # Check whether --enable-shared or --disable-shared was given. |
3525 | if test "${enable_shared+set}" = set; then | |
3526 | enableval="$enable_shared" | |
3527 | p=${PACKAGE-default} | |
3528 | case $enableval in | |
3529 | yes) enable_shared=yes ;; | |
3530 | no) enable_shared=no ;; | |
3531 | *) | |
3532 | enable_shared=no | |
3533 | # Look at the argument we got. We use all the common list separators. | |
3534 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3535 | for pkg in $enableval; do | |
3536 | IFS="$lt_save_ifs" | |
3537 | if test "X$pkg" = "X$p"; then | |
3538 | enable_shared=yes | |
3539 | fi | |
3540 | done | |
3541 | IFS="$lt_save_ifs" | |
3542 | ;; | |
3543 | esac | |
3544 | else | |
3545 | enable_shared=yes | |
3546 | fi; | |
3547 | ||
50850385 TJ |
3548 | # Check whether --enable-static or --disable-static was given. |
3549 | if test "${enable_static+set}" = set; then | |
3550 | enableval="$enable_static" | |
3551 | p=${PACKAGE-default} | |
3552 | case $enableval in | |
3553 | yes) enable_static=yes ;; | |
3554 | no) enable_static=no ;; | |
3555 | *) | |
3556 | enable_static=no | |
3557 | # Look at the argument we got. We use all the common list separators. | |
3558 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3559 | for pkg in $enableval; do | |
3560 | IFS="$lt_save_ifs" | |
3561 | if test "X$pkg" = "X$p"; then | |
3562 | enable_static=yes | |
3563 | fi | |
3564 | done | |
3565 | IFS="$lt_save_ifs" | |
3566 | ;; | |
3567 | esac | |
3568 | else | |
3569 | enable_static=no | |
3570 | fi; | |
3571 | ||
50850385 TJ |
3572 | # Check whether --enable-fast-install or --disable-fast-install was given. |
3573 | if test "${enable_fast_install+set}" = set; then | |
3574 | enableval="$enable_fast_install" | |
3575 | p=${PACKAGE-default} | |
3576 | case $enableval in | |
3577 | yes) enable_fast_install=yes ;; | |
3578 | no) enable_fast_install=no ;; | |
3579 | *) | |
3580 | enable_fast_install=no | |
3581 | # Look at the argument we got. We use all the common list separators. | |
3582 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3583 | for pkg in $enableval; do | |
3584 | IFS="$lt_save_ifs" | |
3585 | if test "X$pkg" = "X$p"; then | |
3586 | enable_fast_install=yes | |
3587 | fi | |
3588 | done | |
3589 | IFS="$lt_save_ifs" | |
3590 | ;; | |
3591 | esac | |
3592 | else | |
3593 | enable_fast_install=yes | |
3594 | fi; | |
3595 | ||
50850385 TJ |
3596 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3597 | if test "${with_gnu_ld+set}" = set; then | |
3598 | withval="$with_gnu_ld" | |
3599 | test "$withval" = no || with_gnu_ld=yes | |
3600 | else | |
3601 | with_gnu_ld=no | |
3602 | fi; | |
3603 | ac_prog=ld | |
3604 | if test "$GCC" = yes; then | |
3605 | # Check if gcc -print-prog-name=ld gives a path. | |
e61fbf76 | 3606 | echo "$as_me:3606: checking for ld used by GCC" >&5 |
50850385 TJ |
3607 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
3608 | case $host in | |
3609 | *-*-mingw*) | |
3610 | # gcc leaves a trailing carriage return which upsets mingw | |
3611 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3612 | *) | |
3613 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3614 | esac | |
3615 | case $ac_prog in | |
3616 | # Accept absolute paths. | |
3617 | [\\/]* | ?:[\\/]*) | |
3618 | re_direlt='/[^/][^/]*/\.\./' | |
3619 | # Canonicalize the path of ld | |
3620 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
3621 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3622 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
3623 | done | |
3624 | test -z "$LD" && LD="$ac_prog" | |
3625 | ;; | |
3626 | "") | |
3627 | # If it fails, then pretend we aren't using GCC. | |
3628 | ac_prog=ld | |
3629 | ;; | |
3630 | *) | |
3631 | # If it is relative, then search for the first ld in PATH. | |
3632 | with_gnu_ld=unknown | |
3633 | ;; | |
3634 | esac | |
3635 | elif test "$with_gnu_ld" = yes; then | |
e61fbf76 | 3636 | echo "$as_me:3636: checking for GNU ld" >&5 |
50850385 TJ |
3637 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
3638 | else | |
e61fbf76 | 3639 | echo "$as_me:3639: checking for non-GNU ld" >&5 |
50850385 TJ |
3640 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
3641 | fi | |
3642 | if test "${lt_cv_path_LD+set}" = set; then | |
3643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3644 | else | |
3645 | if test -z "$LD"; then | |
3646 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3647 | for ac_dir in $PATH; do | |
3648 | IFS="$lt_save_ifs" | |
3649 | test -z "$ac_dir" && ac_dir=. | |
3650 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3651 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
3652 | # Check to see if the program is GNU ld. I'd rather use --version, | |
3653 | # but apparently some GNU ld's only accept -v. | |
3654 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
3655 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
3656 | test "$with_gnu_ld" != no && break | |
3657 | else | |
3658 | test "$with_gnu_ld" != yes && break | |
3659 | fi | |
3660 | fi | |
3661 | done | |
3662 | IFS="$lt_save_ifs" | |
3663 | else | |
3664 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
3665 | fi | |
3666 | fi | |
3667 | ||
3668 | LD="$lt_cv_path_LD" | |
3669 | if test -n "$LD"; then | |
e61fbf76 | 3670 | echo "$as_me:3670: result: $LD" >&5 |
50850385 TJ |
3671 | echo "${ECHO_T}$LD" >&6 |
3672 | else | |
e61fbf76 | 3673 | echo "$as_me:3673: result: no" >&5 |
50850385 TJ |
3674 | echo "${ECHO_T}no" >&6 |
3675 | fi | |
e61fbf76 | 3676 | test -z "$LD" && { { echo "$as_me:3676: error: no acceptable ld found in \$PATH" >&5 |
50850385 TJ |
3677 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
3678 | { (exit 1); exit 1; }; } | |
e61fbf76 | 3679 | echo "$as_me:3679: checking if the linker ($LD) is GNU ld" >&5 |
50850385 TJ |
3680 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
3681 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3683 | else | |
3684 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3685 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
3686 | lt_cv_prog_gnu_ld=yes | |
3687 | else | |
3688 | lt_cv_prog_gnu_ld=no | |
3689 | fi | |
3690 | fi | |
e61fbf76 | 3691 | echo "$as_me:3691: result: $lt_cv_prog_gnu_ld" >&5 |
50850385 TJ |
3692 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
3693 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
3694 | ||
e61fbf76 | 3695 | echo "$as_me:3695: checking for $LD option to reload object files" >&5 |
50850385 TJ |
3696 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
3697 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
3698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3699 | else | |
3700 | lt_cv_ld_reload_flag='-r' | |
3701 | fi | |
e61fbf76 | 3702 | echo "$as_me:3702: result: $lt_cv_ld_reload_flag" >&5 |
50850385 TJ |
3703 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
3704 | reload_flag=$lt_cv_ld_reload_flag | |
3705 | case $reload_flag in | |
3706 | "" | " "*) ;; | |
3707 | *) reload_flag=" $reload_flag" ;; | |
3708 | esac | |
3709 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
3710 | ||
e61fbf76 | 3711 | echo "$as_me:3711: checking for BSD-compatible nm" >&5 |
50850385 TJ |
3712 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
3713 | if test "${lt_cv_path_NM+set}" = set; then | |
3714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3715 | else | |
3716 | if test -n "$NM"; then | |
3717 | # Let the user override the test. | |
3718 | lt_cv_path_NM="$NM" | |
3719 | else | |
3720 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3721 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | |
3722 | IFS="$lt_save_ifs" | |
3723 | test -z "$ac_dir" && ac_dir=. | |
3724 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" | |
3725 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
3726 | # Check to see if the nm accepts a BSD-compat flag. | |
3727 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3728 | # nm: unknown option "B" ignored | |
3729 | # Tru64's nm complains that /dev/null is an invalid object file | |
3730 | if ("$tmp_nm" -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
3731 | lt_cv_path_NM="$tmp_nm -B" | |
3732 | break | |
3733 | elif ("$tmp_nm" -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | |
3734 | lt_cv_path_NM="$tmp_nm -p" | |
3735 | break | |
3736 | else | |
3737 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
3738 | continue # so that we can try to find one that supports BSD flags | |
3739 | fi | |
3740 | fi | |
3741 | done | |
3742 | IFS="$lt_save_ifs" | |
3743 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | |
3744 | fi | |
3745 | fi | |
e61fbf76 | 3746 | echo "$as_me:3746: result: $lt_cv_path_NM" >&5 |
50850385 TJ |
3747 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
3748 | NM="$lt_cv_path_NM" | |
3749 | ||
e61fbf76 | 3750 | echo "$as_me:3750: checking for a sed that does not truncate output" >&5 |
50850385 TJ |
3751 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
3752 | if test "${lt_cv_path_SED+set}" = set; then | |
3753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3754 | else | |
3755 | # Loop through the user's path and test for sed and gsed. | |
3756 | # Then use that list of sed's as ones to test for truncation. | |
3757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3758 | for as_dir in $PATH | |
3759 | do | |
3760 | IFS=$as_save_IFS | |
3761 | test -z "$as_dir" && as_dir=. | |
3762 | for ac_prog in sed gsed; do | |
3763 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3764 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
3765 | _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext" | |
3766 | fi | |
3767 | done | |
3768 | done | |
3769 | done | |
3770 | ||
3771 | # Create a temporary directory, and hook for its removal unless debugging. | |
3772 | $debug || | |
3773 | { | |
3774 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
3775 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
3776 | } | |
3777 | ||
3778 | # Create a (secure) tmp directory for tmp files. | |
3779 | : ${TMPDIR=/tmp} | |
3780 | { | |
3781 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` && | |
3782 | test -n "$tmp" && test -d "$tmp" | |
3783 | } || | |
3784 | { | |
3785 | tmp=$TMPDIR/sed$$-$RANDOM | |
3786 | (umask 077 && mkdir $tmp) | |
3787 | } || | |
3788 | { | |
3789 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
3790 | { (exit 1); exit 1; } | |
3791 | } | |
3792 | _max=0 | |
3793 | _count=0 | |
3794 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
3795 | # along with /bin/sed that truncates output. | |
3796 | for _sed in $_sed_list /usr/xpg4/bin/sed; do | |
3797 | test ! -f ${_sed} && break | |
3798 | cat /dev/null > "$tmp/sed.in" | |
3799 | _count=0 | |
3800 | echo $ECHO_N "0123456789$ECHO_C" >"$tmp/sed.in" | |
3801 | # Check for GNU sed and select it if it is found. | |
3802 | if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then | |
3803 | lt_cv_path_SED=${_sed} | |
3804 | break; | |
3805 | fi | |
3806 | while true; do | |
3807 | cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp" | |
3808 | mv "$tmp/sed.tmp" "$tmp/sed.in" | |
3809 | cp "$tmp/sed.in" "$tmp/sed.nl" | |
3810 | echo >>"$tmp/sed.nl" | |
3811 | ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break | |
3812 | cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break | |
3813 | # 10000 chars as input seems more than enough | |
3814 | test $_count -gt 10 && break | |
3815 | _count=`expr $_count + 1` | |
3816 | if test $_count -gt $_max; then | |
3817 | _max=$_count | |
3818 | lt_cv_path_SED=$_sed | |
3819 | fi | |
3820 | done | |
3821 | done | |
3822 | rm -rf "$tmp" | |
3823 | ||
3824 | fi | |
3825 | ||
e61fbf76 | 3826 | echo "$as_me:3826: result: $SED" >&5 |
50850385 TJ |
3827 | echo "${ECHO_T}$SED" >&6 |
3828 | ||
e61fbf76 | 3829 | echo "$as_me:3829: checking whether ln -s works" >&5 |
50850385 TJ |
3830 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
3831 | LN_S=$as_ln_s | |
3832 | if test "$LN_S" = "ln -s"; then | |
e61fbf76 | 3833 | echo "$as_me:3833: result: yes" >&5 |
50850385 TJ |
3834 | echo "${ECHO_T}yes" >&6 |
3835 | else | |
e61fbf76 | 3836 | echo "$as_me:3836: result: no, using $LN_S" >&5 |
50850385 TJ |
3837 | echo "${ECHO_T}no, using $LN_S" >&6 |
3838 | fi | |
3839 | ||
e61fbf76 | 3840 | echo "$as_me:3840: checking how to recognise dependant libraries" >&5 |
50850385 TJ |
3841 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 |
3842 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3844 | else | |
3845 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
3846 | lt_cv_file_magic_test_file= | |
3847 | lt_cv_deplibs_check_method='unknown' | |
3848 | # Need to set the preceding variable on all platforms that support | |
3849 | # interlibrary dependencies. | |
3850 | # 'none' -- dependencies not supported. | |
3851 | # `unknown' -- same as none, but documents that we really don't know. | |
3852 | # 'pass_all' -- all dependencies passed with no checks. | |
3853 | # 'test_compile' -- check by making test program. | |
3854 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
3855 | # which responds to the $file_magic_cmd with a given egrep regex. | |
3856 | # If you have `file' or equivalent on your system and you're not sure | |
3857 | # whether `pass_all' will *always* work, you probably want this one. | |
3858 | ||
3859 | case $host_os in | |
3860 | aix4* | aix5*) | |
3861 | lt_cv_deplibs_check_method=pass_all | |
3862 | ;; | |
3863 | ||
3864 | beos*) | |
3865 | lt_cv_deplibs_check_method=pass_all | |
3866 | ;; | |
3867 | ||
3868 | bsdi4*) | |
3869 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
3870 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3871 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3872 | ;; | |
3873 | ||
3874 | cygwin* | mingw* | pw32*) | |
3875 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
3876 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
3877 | ;; | |
3878 | ||
3879 | darwin* | rhapsody*) | |
3880 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
3881 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3882 | case "$host_os" in | |
3883 | rhapsody* | darwin1.[012]) | |
3884 | lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` | |
3885 | ;; | |
3886 | *) # Darwin 1.3 on | |
3887 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
3888 | ;; | |
3889 | esac | |
3890 | ;; | |
3891 | ||
3892 | freebsd*) | |
3893 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3894 | case $host_cpu in | |
3895 | i*86 ) | |
3896 | # Not sure whether the presence of OpenBSD here was a mistake. | |
3897 | # Let's accept both of them until this is cleared up. | |
3898 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | |
3899 | lt_cv_file_magic_cmd=/usr/bin/file | |
3900 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
3901 | ;; | |
3902 | esac | |
3903 | else | |
3904 | lt_cv_deplibs_check_method=pass_all | |
3905 | fi | |
3906 | ;; | |
3907 | ||
3908 | gnu*) | |
3909 | lt_cv_deplibs_check_method=pass_all | |
3910 | ;; | |
3911 | ||
3912 | hpux10.20* | hpux11*) | |
3913 | lt_cv_file_magic_cmd=/usr/bin/file | |
3914 | if test "$host_cpu" = ia64; then | |
3915 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3916 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3917 | else | |
3918 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3919 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3920 | fi | |
3921 | ;; | |
3922 | ||
3923 | irix5* | irix6* | nonstopux*) | |
3924 | case $host_os in | |
3925 | irix5* | nonstopux*) | |
3926 | # this will be overridden with pass_all, but let us keep it just in case | |
3927 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
3928 | ;; | |
3929 | *) | |
3930 | case $LD in | |
3931 | *-32|*"-32 ") libmagic=32-bit;; | |
3932 | *-n32|*"-n32 ") libmagic=N32;; | |
3933 | *-64|*"-64 ") libmagic=64-bit;; | |
3934 | *) libmagic=never-match;; | |
3935 | esac | |
3936 | # this will be overridden with pass_all, but let us keep it just in case | |
3937 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" | |
3938 | ;; | |
3939 | esac | |
3940 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
3941 | lt_cv_deplibs_check_method=pass_all | |
3942 | ;; | |
3943 | ||
3944 | # This must be Linux ELF. | |
3945 | linux*) | |
3946 | case $host_cpu in | |
3947 | alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh* | x86_64* ) | |
3948 | lt_cv_deplibs_check_method=pass_all ;; | |
3949 | *) | |
3950 | # glibc up to 2.1.1 does not perform some relocations on ARM | |
3951 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; | |
3952 | esac | |
3953 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` | |
3954 | ;; | |
3955 | ||
3956 | netbsd*) | |
3957 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3958 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | |
3959 | else | |
3960 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' | |
3961 | fi | |
3962 | ;; | |
3963 | ||
3964 | newos6*) | |
3965 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3966 | lt_cv_file_magic_cmd=/usr/bin/file | |
3967 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3968 | ;; | |
3969 | ||
3970 | nto-qnx) | |
3971 | lt_cv_deplibs_check_method=unknown | |
3972 | ;; | |
3973 | ||
3974 | openbsd*) | |
3975 | lt_cv_file_magic_cmd=/usr/bin/file | |
3976 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
3977 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
3978 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' | |
3979 | else | |
3980 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' | |
3981 | fi | |
3982 | ;; | |
3983 | ||
3984 | osf3* | osf4* | osf5*) | |
3985 | # this will be overridden with pass_all, but let us keep it just in case | |
3986 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
3987 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3988 | lt_cv_deplibs_check_method=pass_all | |
3989 | ;; | |
3990 | ||
3991 | sco3.2v5*) | |
3992 | lt_cv_deplibs_check_method=pass_all | |
3993 | ;; | |
3994 | ||
3995 | solaris*) | |
3996 | lt_cv_deplibs_check_method=pass_all | |
3997 | lt_cv_file_magic_test_file=/lib/libc.so | |
3998 | ;; | |
3999 | ||
4000 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
4001 | case $host_vendor in | |
4002 | motorola) | |
4003 | 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]' | |
4004 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
4005 | ;; | |
4006 | ncr) | |
4007 | lt_cv_deplibs_check_method=pass_all | |
4008 | ;; | |
4009 | sequent) | |
4010 | lt_cv_file_magic_cmd='/bin/file' | |
4011 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
4012 | ;; | |
4013 | sni) | |
4014 | lt_cv_file_magic_cmd='/bin/file' | |
4015 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
4016 | lt_cv_file_magic_test_file=/lib/libc.so | |
4017 | ;; | |
4018 | esac | |
4019 | ;; | |
4020 | ||
4021 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) | |
4022 | lt_cv_deplibs_check_method=pass_all | |
4023 | ;; | |
4024 | esac | |
4025 | ||
4026 | fi | |
e61fbf76 | 4027 | echo "$as_me:4027: result: $lt_cv_deplibs_check_method" >&5 |
50850385 TJ |
4028 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
4029 | file_magic_cmd=$lt_cv_file_magic_cmd | |
4030 | deplibs_check_method=$lt_cv_deplibs_check_method | |
4031 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
4032 | ||
50850385 TJ |
4033 | # If no C compiler was specified, use CC. |
4034 | LTCC=${LTCC-"$CC"} | |
4035 | ||
4036 | # Allow CC to be a program name with arguments. | |
4037 | set dummy $CC | |
4038 | compiler="$2" | |
4039 | ||
50850385 TJ |
4040 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
4041 | if test "${enable_libtool_lock+set}" = set; then | |
4042 | enableval="$enable_libtool_lock" | |
4043 | ||
4044 | fi; | |
4045 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
4046 | ||
4047 | # Some flags need to be propagated to the compiler or linker for good | |
4048 | # libtool support. | |
4049 | case $host in | |
4050 | ia64-*-hpux*) | |
4051 | # Find out which ABI we are using. | |
4052 | echo 'int i;' > conftest.$ac_ext | |
e61fbf76 | 4053 | if { (eval echo "$as_me:4053: \"$ac_compile\"") >&5 |
50850385 TJ |
4054 | (eval $ac_compile) 2>&5 |
4055 | ac_status=$? | |
e61fbf76 | 4056 | echo "$as_me:4056: \$? = $ac_status" >&5 |
50850385 TJ |
4057 | (exit $ac_status); }; then |
4058 | case `/usr/bin/file conftest.$ac_objext` in | |
4059 | *ELF-32*) | |
4060 | HPUX_IA64_MODE="32" | |
4061 | ;; | |
4062 | *ELF-64*) | |
4063 | HPUX_IA64_MODE="64" | |
4064 | ;; | |
4065 | esac | |
4066 | fi | |
4067 | rm -rf conftest* | |
4068 | ;; | |
4069 | *-*-irix6*) | |
4070 | # Find out which ABI we are using. | |
e61fbf76 TJ |
4071 | echo '#line 4071 "configure"' > conftest.$ac_ext |
4072 | if { (eval echo "$as_me:4072: \"$ac_compile\"") >&5 | |
50850385 TJ |
4073 | (eval $ac_compile) 2>&5 |
4074 | ac_status=$? | |
e61fbf76 | 4075 | echo "$as_me:4075: \$? = $ac_status" >&5 |
50850385 TJ |
4076 | (exit $ac_status); }; then |
4077 | case `/usr/bin/file conftest.$ac_objext` in | |
4078 | *32-bit*) | |
4079 | LD="${LD-ld} -32" | |
4080 | ;; | |
4081 | *N32*) | |
4082 | LD="${LD-ld} -n32" | |
4083 | ;; | |
4084 | *64-bit*) | |
4085 | LD="${LD-ld} -64" | |
4086 | ;; | |
4087 | esac | |
4088 | fi | |
4089 | rm -rf conftest* | |
4090 | ;; | |
4091 | ||
4092 | *-*-linux*) | |
4093 | # Test if the compiler is 64bit | |
4094 | echo 'int i;' > conftest.$ac_ext | |
e61fbf76 | 4095 | if { (eval echo "$as_me:4095: \"$ac_compile\"") >&5 |
50850385 TJ |
4096 | (eval $ac_compile) 2>&5 |
4097 | ac_status=$? | |
e61fbf76 | 4098 | echo "$as_me:4098: \$? = $ac_status" >&5 |
50850385 TJ |
4099 | (exit $ac_status); }; then |
4100 | case `/usr/bin/file conftest.$ac_objext` in | |
4101 | *"ELF 32"*) | |
4102 | LINUX_64_MODE="32" | |
4103 | ;; | |
4104 | *"ELF 64"*) | |
4105 | LINUX_64_MODE="64" | |
4106 | ;; | |
4107 | esac | |
4108 | fi | |
4109 | rm -rf conftest* | |
4110 | ;; | |
4111 | ||
4112 | *-*-sco3.2v5*) | |
4113 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
4114 | SAVE_CFLAGS="$CFLAGS" | |
4115 | CFLAGS="$CFLAGS -belf" | |
e61fbf76 | 4116 | echo "$as_me:4116: checking whether the C compiler needs -belf" >&5 |
50850385 TJ |
4117 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
4118 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
4119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4120 | else | |
4121 | ac_ext=c | |
4122 | ac_cpp='$CPP $CPPFLAGS' | |
4123 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4124 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4125 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4126 | ||
4127 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 4128 | #line 4128 "configure" |
50850385 TJ |
4129 | #include "confdefs.h" |
4130 | ||
50850385 TJ |
4131 | int |
4132 | main () | |
4133 | { | |
4134 | ||
4135 | ; | |
4136 | return 0; | |
4137 | } | |
4138 | _ACEOF | |
4139 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 4140 | if { (eval echo "$as_me:4140: \"$ac_link\"") >&5 |
50850385 TJ |
4141 | (eval $ac_link) 2>&5 |
4142 | ac_status=$? | |
e61fbf76 | 4143 | echo "$as_me:4143: \$? = $ac_status" >&5 |
50850385 TJ |
4144 | (exit $ac_status); } && |
4145 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 4146 | { (eval echo "$as_me:4146: \"$ac_try\"") >&5 |
50850385 TJ |
4147 | (eval $ac_try) 2>&5 |
4148 | ac_status=$? | |
e61fbf76 | 4149 | echo "$as_me:4149: \$? = $ac_status" >&5 |
50850385 TJ |
4150 | (exit $ac_status); }; }; then |
4151 | lt_cv_cc_needs_belf=yes | |
4152 | else | |
4153 | echo "$as_me: failed program was:" >&5 | |
4154 | cat conftest.$ac_ext >&5 | |
4155 | lt_cv_cc_needs_belf=no | |
4156 | fi | |
4157 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
4158 | ac_ext=c | |
4159 | ac_cpp='$CPP $CPPFLAGS' | |
4160 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4161 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4162 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4163 | ||
4164 | fi | |
e61fbf76 | 4165 | echo "$as_me:4165: result: $lt_cv_cc_needs_belf" >&5 |
50850385 TJ |
4166 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
4167 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
4168 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4169 | CFLAGS="$SAVE_CFLAGS" | |
4170 | fi | |
4171 | ;; | |
4172 | ||
4173 | esac | |
4174 | ||
4175 | need_locks="$enable_libtool_lock" | |
4176 | ||
50850385 TJ |
4177 | for ac_header in dlfcn.h |
4178 | do | |
4179 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
e61fbf76 | 4180 | echo "$as_me:4180: checking for $ac_header" >&5 |
50850385 TJ |
4181 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4182 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
50850385 | 4184 | else |
e61fbf76 TJ |
4185 | cat >conftest.$ac_ext <<_ACEOF |
4186 | #line 4186 "configure" | |
50850385 TJ |
4187 | #include "confdefs.h" |
4188 | #include <$ac_header> | |
4189 | _ACEOF | |
e61fbf76 | 4190 | if { (eval echo "$as_me:4190: \"$ac_cpp conftest.$ac_ext\"") >&5 |
50850385 TJ |
4191 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4192 | ac_status=$? | |
4193 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4194 | rm -f conftest.er1 | |
4195 | cat conftest.err >&5 | |
e61fbf76 | 4196 | echo "$as_me:4196: \$? = $ac_status" >&5 |
50850385 TJ |
4197 | (exit $ac_status); } >/dev/null; then |
4198 | if test -s conftest.err; then | |
4199 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4200 | else | |
4201 | ac_cpp_err= | |
4202 | fi | |
4203 | else | |
4204 | ac_cpp_err=yes | |
4205 | fi | |
4206 | if test -z "$ac_cpp_err"; then | |
e61fbf76 | 4207 | eval "$as_ac_Header=yes" |
50850385 TJ |
4208 | else |
4209 | echo "$as_me: failed program was:" >&5 | |
4210 | cat conftest.$ac_ext >&5 | |
e61fbf76 | 4211 | eval "$as_ac_Header=no" |
50850385 TJ |
4212 | fi |
4213 | rm -f conftest.err conftest.$ac_ext | |
50850385 | 4214 | fi |
e61fbf76 | 4215 | echo "$as_me:4215: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
50850385 | 4216 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
50850385 | 4217 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
e61fbf76 | 4218 | cat >>confdefs.h <<EOF |
50850385 | 4219 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
e61fbf76 | 4220 | EOF |
50850385 TJ |
4221 | |
4222 | fi | |
50850385 TJ |
4223 | done |
4224 | ||
4225 | ac_ext=cc | |
4226 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4227 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4228 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4229 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
e61fbf76 | 4230 | echo "$as_me:4230: checking how to run the C++ preprocessor" >&5 |
50850385 TJ |
4231 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
4232 | if test -z "$CXXCPP"; then | |
4233 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
4234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4235 | else | |
4236 | # Double quotes because CXXCPP needs to be expanded | |
4237 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
4238 | do | |
4239 | ac_preproc_ok=false | |
4240 | for ac_cxx_preproc_warn_flag in '' yes | |
4241 | do | |
4242 | # Use a header file that comes with gcc, so configuring glibc | |
4243 | # with a fresh cross-compiler works. | |
4244 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4245 | # not just through cpp. "Syntax error" is here to catch this case. | |
4246 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 4247 | #line 4247 "configure" |
50850385 TJ |
4248 | #include "confdefs.h" |
4249 | #include <assert.h> | |
4250 | Syntax error | |
4251 | _ACEOF | |
e61fbf76 | 4252 | if { (eval echo "$as_me:4252: \"$ac_cpp conftest.$ac_ext\"") >&5 |
50850385 TJ |
4253 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4254 | ac_status=$? | |
4255 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4256 | rm -f conftest.er1 | |
4257 | cat conftest.err >&5 | |
e61fbf76 | 4258 | echo "$as_me:4258: \$? = $ac_status" >&5 |
50850385 TJ |
4259 | (exit $ac_status); } >/dev/null; then |
4260 | if test -s conftest.err; then | |
4261 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
4262 | else | |
4263 | ac_cpp_err= | |
4264 | fi | |
4265 | else | |
4266 | ac_cpp_err=yes | |
4267 | fi | |
4268 | if test -z "$ac_cpp_err"; then | |
4269 | : | |
4270 | else | |
4271 | echo "$as_me: failed program was:" >&5 | |
4272 | cat conftest.$ac_ext >&5 | |
4273 | # Broken: fails on valid input. | |
4274 | continue | |
4275 | fi | |
4276 | rm -f conftest.err conftest.$ac_ext | |
4277 | ||
4278 | # OK, works on sane cases. Now check whether non-existent headers | |
4279 | # can be detected and how. | |
4280 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 4281 | #line 4281 "configure" |
50850385 TJ |
4282 | #include "confdefs.h" |
4283 | #include <ac_nonexistent.h> | |
4284 | _ACEOF | |
e61fbf76 | 4285 | if { (eval echo "$as_me:4285: \"$ac_cpp conftest.$ac_ext\"") >&5 |
50850385 TJ |
4286 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4287 | ac_status=$? | |
4288 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4289 | rm -f conftest.er1 | |
4290 | cat conftest.err >&5 | |
e61fbf76 | 4291 | echo "$as_me:4291: \$? = $ac_status" >&5 |
50850385 TJ |
4292 | (exit $ac_status); } >/dev/null; then |
4293 | if test -s conftest.err; then | |
4294 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
4295 | else | |
4296 | ac_cpp_err= | |
4297 | fi | |
4298 | else | |
4299 | ac_cpp_err=yes | |
4300 | fi | |
4301 | if test -z "$ac_cpp_err"; then | |
4302 | # Broken: success on invalid input. | |
4303 | continue | |
4304 | else | |
4305 | echo "$as_me: failed program was:" >&5 | |
4306 | cat conftest.$ac_ext >&5 | |
4307 | # Passes both tests. | |
4308 | ac_preproc_ok=: | |
4309 | break | |
4310 | fi | |
4311 | rm -f conftest.err conftest.$ac_ext | |
4312 | ||
4313 | done | |
4314 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4315 | rm -f conftest.err conftest.$ac_ext | |
4316 | if $ac_preproc_ok; then | |
4317 | break | |
4318 | fi | |
4319 | ||
4320 | done | |
4321 | ac_cv_prog_CXXCPP=$CXXCPP | |
4322 | ||
4323 | fi | |
4324 | CXXCPP=$ac_cv_prog_CXXCPP | |
4325 | else | |
4326 | ac_cv_prog_CXXCPP=$CXXCPP | |
4327 | fi | |
e61fbf76 | 4328 | echo "$as_me:4328: result: $CXXCPP" >&5 |
50850385 TJ |
4329 | echo "${ECHO_T}$CXXCPP" >&6 |
4330 | ac_preproc_ok=false | |
4331 | for ac_cxx_preproc_warn_flag in '' yes | |
4332 | do | |
4333 | # Use a header file that comes with gcc, so configuring glibc | |
4334 | # with a fresh cross-compiler works. | |
4335 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4336 | # not just through cpp. "Syntax error" is here to catch this case. | |
4337 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 4338 | #line 4338 "configure" |
50850385 TJ |
4339 | #include "confdefs.h" |
4340 | #include <assert.h> | |
4341 | Syntax error | |
4342 | _ACEOF | |
e61fbf76 | 4343 | if { (eval echo "$as_me:4343: \"$ac_cpp conftest.$ac_ext\"") >&5 |
50850385 TJ |
4344 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4345 | ac_status=$? | |
4346 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4347 | rm -f conftest.er1 | |
4348 | cat conftest.err >&5 | |
e61fbf76 | 4349 | echo "$as_me:4349: \$? = $ac_status" >&5 |
50850385 TJ |
4350 | (exit $ac_status); } >/dev/null; then |
4351 | if test -s conftest.err; then | |
4352 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
4353 | else | |
4354 | ac_cpp_err= | |
4355 | fi | |
4356 | else | |
4357 | ac_cpp_err=yes | |
4358 | fi | |
4359 | if test -z "$ac_cpp_err"; then | |
4360 | : | |
4361 | else | |
4362 | echo "$as_me: failed program was:" >&5 | |
4363 | cat conftest.$ac_ext >&5 | |
4364 | # Broken: fails on valid input. | |
4365 | continue | |
4366 | fi | |
4367 | rm -f conftest.err conftest.$ac_ext | |
4368 | ||
4369 | # OK, works on sane cases. Now check whether non-existent headers | |
4370 | # can be detected and how. | |
4371 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 4372 | #line 4372 "configure" |
50850385 TJ |
4373 | #include "confdefs.h" |
4374 | #include <ac_nonexistent.h> | |
4375 | _ACEOF | |
e61fbf76 | 4376 | if { (eval echo "$as_me:4376: \"$ac_cpp conftest.$ac_ext\"") >&5 |
50850385 TJ |
4377 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4378 | ac_status=$? | |
4379 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4380 | rm -f conftest.er1 | |
4381 | cat conftest.err >&5 | |
e61fbf76 | 4382 | echo "$as_me:4382: \$? = $ac_status" >&5 |
50850385 TJ |
4383 | (exit $ac_status); } >/dev/null; then |
4384 | if test -s conftest.err; then | |
4385 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
4386 | else | |
4387 | ac_cpp_err= | |
4388 | fi | |
4389 | else | |
4390 | ac_cpp_err=yes | |
4391 | fi | |
4392 | if test -z "$ac_cpp_err"; then | |
4393 | # Broken: success on invalid input. | |
4394 | continue | |
4395 | else | |
4396 | echo "$as_me: failed program was:" >&5 | |
4397 | cat conftest.$ac_ext >&5 | |
4398 | # Passes both tests. | |
4399 | ac_preproc_ok=: | |
4400 | break | |
4401 | fi | |
4402 | rm -f conftest.err conftest.$ac_ext | |
4403 | ||
4404 | done | |
4405 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4406 | rm -f conftest.err conftest.$ac_ext | |
4407 | if $ac_preproc_ok; then | |
4408 | : | |
4409 | else | |
e61fbf76 | 4410 | { { echo "$as_me:4410: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5 |
50850385 TJ |
4411 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;} |
4412 | { (exit 1); exit 1; }; } | |
4413 | fi | |
4414 | ||
4415 | ac_ext=cc | |
4416 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4417 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4418 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4419 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4420 | ||
50850385 TJ |
4421 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
4422 | ||
4423 | # find the maximum length of command line arguments | |
e61fbf76 | 4424 | echo "$as_me:4424: checking the maximum length of command line arguments" >&5 |
50850385 TJ |
4425 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
4426 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
4427 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4428 | else | |
4429 | i=0 | |
4430 | testring="ABCD" | |
4431 | ||
4432 | case $host_os in | |
4433 | msdosdjgpp*) | |
4434 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4435 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4436 | # during glob expansion). Even if it were fixed, the result of this | |
4437 | # check would be larger than it should be. | |
4438 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4439 | ;; | |
4440 | ||
4441 | gnu*) | |
4442 | # Under GNU Hurd, this test is not required because there is | |
4443 | # no limit to the length of command line arguments. | |
4444 | # Libtool will interpret -1 as no limit whatsoever | |
4445 | lt_cv_sys_max_cmd_len=-1; | |
4446 | ;; | |
4447 | ||
4448 | *) | |
4449 | # If test is not a shell built-in, we'll probably end up computing a | |
4450 | # maximum length that is only half of the actual maximum length, but | |
4451 | # we can't tell. | |
4452 | while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ | |
4453 | = "XX$testring") >/dev/null 2>&1 && | |
4454 | new_result=`expr "X$testring" : ".*" 2>&1` && | |
4455 | lt_cv_sys_max_cmd_len=$new_result && | |
4456 | test $i != 17 # 1/2 MB should be enough | |
4457 | do | |
4458 | i=`expr $i + 1` | |
4459 | testring=$testring$testring | |
4460 | done | |
4461 | testring= | |
4462 | # Add a significant safety factor because C++ compilers can tack on massive | |
4463 | # amounts of additional arguments before passing them to the linker. | |
4464 | # It appears as though 1/2 is a usable value. | |
4465 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4466 | ;; | |
4467 | esac | |
4468 | ||
4469 | fi | |
4470 | ||
4471 | if test -n $lt_cv_sys_max_cmd_len ; then | |
e61fbf76 | 4472 | echo "$as_me:4472: result: $lt_cv_sys_max_cmd_len" >&5 |
50850385 TJ |
4473 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
4474 | else | |
e61fbf76 | 4475 | echo "$as_me:4475: result: none" >&5 |
50850385 TJ |
4476 | echo "${ECHO_T}none" >&6 |
4477 | fi | |
4478 | ||
50850385 | 4479 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
e61fbf76 | 4480 | echo "$as_me:4480: checking command to parse $NM output from $compiler object" >&5 |
50850385 TJ |
4481 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
4482 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
4483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4484 | else | |
4485 | ||
4486 | # These are sane defaults that work on at least a few old systems. | |
4487 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
4488 | ||
4489 | # Character class describing NM global symbol codes. | |
4490 | symcode='[BCDEGRST]' | |
4491 | ||
4492 | # Regexp to match symbols that can be accessed directly from C. | |
4493 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
4494 | ||
4495 | # Transform the above into a raw symbol and a C symbol. | |
4496 | symxfrm='\1 \2\3 \3' | |
4497 | ||
4498 | # Transform an extracted symbol line into a proper C declaration | |
4499 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | |
4500 | ||
4501 | # Transform an extracted symbol line into symbol name and symbol address | |
4502 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | |
4503 | ||
4504 | # Define system-specific variables. | |
4505 | case $host_os in | |
4506 | aix*) | |
4507 | symcode='[BCDT]' | |
4508 | ;; | |
4509 | cygwin* | mingw* | pw32*) | |
4510 | symcode='[ABCDGISTW]' | |
4511 | ;; | |
4512 | hpux*) # Its linker distinguishes data from code symbols | |
4513 | if test "$host_cpu" = ia64; then | |
4514 | symcode='[ABCDEGRST]' | |
4515 | fi | |
4516 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
4517 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | |
4518 | ;; | |
4519 | irix* | nonstopux*) | |
4520 | symcode='[BCDEGRST]' | |
4521 | ;; | |
4522 | solaris* | sysv5*) | |
4523 | symcode='[BDT]' | |
4524 | ;; | |
4525 | sysv4) | |
4526 | symcode='[DFNSTU]' | |
4527 | ;; | |
4528 | esac | |
4529 | ||
4530 | # Handle CRLF in mingw tool chain | |
4531 | opt_cr= | |
4532 | case $host_os in | |
4533 | mingw*) | |
4534 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
4535 | ;; | |
4536 | esac | |
4537 | ||
4538 | # If we're using GNU nm, then use its standard symbol codes. | |
4539 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then | |
4540 | symcode='[ABCDGISTW]' | |
4541 | fi | |
4542 | ||
4543 | # Try without a prefix undercore, then with it. | |
4544 | for ac_symprfx in "" "_"; do | |
4545 | ||
4546 | # Write the raw and C identifiers. | |
4547 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" | |
4548 | ||
4549 | # Check to see that the pipe works correctly. | |
4550 | pipe_works=no | |
4551 | ||
4552 | rm -f conftest* | |
4553 | cat > conftest.$ac_ext <<EOF | |
4554 | #ifdef __cplusplus | |
4555 | extern "C" { | |
4556 | #endif | |
4557 | char nm_test_var; | |
4558 | void nm_test_func(){} | |
4559 | #ifdef __cplusplus | |
4560 | } | |
4561 | #endif | |
4562 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
4563 | EOF | |
4564 | ||
e61fbf76 | 4565 | if { (eval echo "$as_me:4565: \"$ac_compile\"") >&5 |
50850385 TJ |
4566 | (eval $ac_compile) 2>&5 |
4567 | ac_status=$? | |
e61fbf76 | 4568 | echo "$as_me:4568: \$? = $ac_status" >&5 |
50850385 TJ |
4569 | (exit $ac_status); }; then |
4570 | # Now try to grab the symbols. | |
4571 | nlist=conftest.nm | |
e61fbf76 | 4572 | if { (eval echo "$as_me:4572: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
50850385 TJ |
4573 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
4574 | ac_status=$? | |
e61fbf76 | 4575 | echo "$as_me:4575: \$? = $ac_status" >&5 |
50850385 TJ |
4576 | (exit $ac_status); } && test -s "$nlist"; then |
4577 | # Try sorting and uniquifying the output. | |
4578 | if sort "$nlist" | uniq > "$nlist"T; then | |
4579 | mv -f "$nlist"T "$nlist" | |
4580 | else | |
4581 | rm -f "$nlist"T | |
4582 | fi | |
4583 | ||
4584 | # Make sure that we snagged all the symbols we need. | |
4585 | if egrep ' nm_test_var$' "$nlist" >/dev/null; then | |
4586 | if egrep ' nm_test_func$' "$nlist" >/dev/null; then | |
4587 | cat <<EOF > conftest.$ac_ext | |
4588 | #ifdef __cplusplus | |
4589 | extern "C" { | |
4590 | #endif | |
4591 | ||
4592 | EOF | |
4593 | # Now generate the symbol file. | |
4594 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | |
4595 | ||
4596 | cat <<EOF >> conftest.$ac_ext | |
4597 | #if defined (__STDC__) && __STDC__ | |
4598 | # define lt_ptr_t void * | |
4599 | #else | |
4600 | # define lt_ptr_t char * | |
4601 | # define const | |
4602 | #endif | |
4603 | ||
4604 | /* The mapping between symbol names and symbols. */ | |
4605 | const struct { | |
4606 | const char *name; | |
4607 | lt_ptr_t address; | |
4608 | } | |
4609 | lt_preloaded_symbols[] = | |
4610 | { | |
4611 | EOF | |
4612 | sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | |
4613 | cat <<\EOF >> conftest.$ac_ext | |
4614 | {0, (lt_ptr_t) 0} | |
4615 | }; | |
4616 | ||
4617 | #ifdef __cplusplus | |
4618 | } | |
4619 | #endif | |
4620 | EOF | |
4621 | # Now try linking the two files. | |
4622 | mv conftest.$ac_objext conftstm.$ac_objext | |
4623 | lt_save_LIBS="$LIBS" | |
4624 | lt_save_CFLAGS="$CFLAGS" | |
4625 | LIBS="conftstm.$ac_objext" | |
4626 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
e61fbf76 | 4627 | if { (eval echo "$as_me:4627: \"$ac_link\"") >&5 |
50850385 TJ |
4628 | (eval $ac_link) 2>&5 |
4629 | ac_status=$? | |
e61fbf76 | 4630 | echo "$as_me:4630: \$? = $ac_status" >&5 |
50850385 TJ |
4631 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
4632 | pipe_works=yes | |
4633 | fi | |
4634 | LIBS="$lt_save_LIBS" | |
4635 | CFLAGS="$lt_save_CFLAGS" | |
4636 | else | |
4637 | echo "cannot find nm_test_func in $nlist" >&5 | |
4638 | fi | |
4639 | else | |
4640 | echo "cannot find nm_test_var in $nlist" >&5 | |
4641 | fi | |
4642 | else | |
4643 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
4644 | fi | |
4645 | else | |
4646 | echo "$progname: failed program was:" >&5 | |
4647 | cat conftest.$ac_ext >&5 | |
4648 | fi | |
4649 | rm -f conftest* conftst* | |
4650 | ||
4651 | # Do not use the global_symbol_pipe unless it works. | |
4652 | if test "$pipe_works" = yes; then | |
4653 | break | |
4654 | else | |
4655 | lt_cv_sys_global_symbol_pipe= | |
4656 | fi | |
4657 | done | |
4658 | ||
4659 | fi | |
4660 | ||
4661 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
4662 | lt_cv_sys_global_symbol_to_cdecl= | |
4663 | fi | |
4664 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
e61fbf76 | 4665 | echo "$as_me:4665: result: failed" >&5 |
50850385 TJ |
4666 | echo "${ECHO_T}failed" >&6 |
4667 | else | |
e61fbf76 | 4668 | echo "$as_me:4668: result: ok" >&5 |
50850385 TJ |
4669 | echo "${ECHO_T}ok" >&6 |
4670 | fi | |
4671 | ||
e61fbf76 | 4672 | echo "$as_me:4672: checking for objdir" >&5 |
50850385 TJ |
4673 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
4674 | if test "${lt_cv_objdir+set}" = set; then | |
4675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4676 | else | |
4677 | rm -f .libs 2>/dev/null | |
4678 | mkdir .libs 2>/dev/null | |
4679 | if test -d .libs; then | |
4680 | lt_cv_objdir=.libs | |
4681 | else | |
4682 | # MS-DOS does not allow filenames that begin with a dot. | |
4683 | lt_cv_objdir=_libs | |
4684 | fi | |
4685 | rmdir .libs 2>/dev/null | |
4686 | fi | |
e61fbf76 | 4687 | echo "$as_me:4687: result: $lt_cv_objdir" >&5 |
50850385 TJ |
4688 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
4689 | objdir=$lt_cv_objdir | |
4690 | ||
50850385 TJ |
4691 | case $host_os in |
4692 | aix3*) | |
4693 | # AIX sometimes has problems with the GCC collect2 program. For some | |
4694 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
4695 | # vanish in a puff of smoke. | |
4696 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
4697 | COLLECT_NAMES= | |
4698 | export COLLECT_NAMES | |
4699 | fi | |
4700 | ;; | |
4701 | esac | |
4702 | ||
4703 | # Sed substitution that helps us do robust quoting. It backslashifies | |
4704 | # metacharacters that are still active within double-quoted strings. | |
4705 | Xsed='sed -e s/^X//' | |
4706 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | |
4707 | ||
4708 | # Same as above, but do not quote variable references. | |
4709 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | |
4710 | ||
4711 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4712 | # double_quote_subst'ed string. | |
4713 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4714 | ||
4715 | # Sed substitution to avoid accidental globbing in evaled expressions | |
4716 | no_glob_subst='s/\*/\\\*/g' | |
4717 | ||
4718 | # Constants: | |
4719 | rm="rm -f" | |
4720 | ||
4721 | # Global variables: | |
4722 | default_ofile=libtool | |
4723 | can_build_shared=yes | |
4724 | ||
4725 | # All known linkers require a `.a' archive for static linking (except M$VC, | |
4726 | # which needs '.lib'). | |
4727 | libext=a | |
4728 | ltmain="$ac_aux_dir/ltmain.sh" | |
4729 | ofile="$default_ofile" | |
4730 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
4731 | ||
4732 | if test -n "$ac_tool_prefix"; then | |
4733 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4734 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
e61fbf76 | 4735 | echo "$as_me:4735: checking for $ac_word" >&5 |
50850385 TJ |
4736 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4737 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
4738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4739 | else | |
4740 | if test -n "$RANLIB"; then | |
4741 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4742 | else | |
e61fbf76 TJ |
4743 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
4744 | ac_dummy="$PATH" | |
4745 | for ac_dir in $ac_dummy; do | |
4746 | IFS=$ac_save_IFS | |
4747 | test -z "$ac_dir" && ac_dir=. | |
4748 | $as_executable_p "$ac_dir/$ac_word" || continue | |
4749 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4750 | echo "$as_me:4750: found $ac_dir/$ac_word" >&5 | |
4751 | break | |
50850385 TJ |
4752 | done |
4753 | ||
4754 | fi | |
4755 | fi | |
4756 | RANLIB=$ac_cv_prog_RANLIB | |
4757 | if test -n "$RANLIB"; then | |
e61fbf76 | 4758 | echo "$as_me:4758: result: $RANLIB" >&5 |
50850385 TJ |
4759 | echo "${ECHO_T}$RANLIB" >&6 |
4760 | else | |
e61fbf76 | 4761 | echo "$as_me:4761: result: no" >&5 |
50850385 TJ |
4762 | echo "${ECHO_T}no" >&6 |
4763 | fi | |
4764 | ||
4765 | fi | |
4766 | if test -z "$ac_cv_prog_RANLIB"; then | |
4767 | ac_ct_RANLIB=$RANLIB | |
4768 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4769 | set dummy ranlib; ac_word=$2 | |
e61fbf76 | 4770 | echo "$as_me:4770: checking for $ac_word" >&5 |
50850385 TJ |
4771 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4772 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
4773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4774 | else | |
4775 | if test -n "$ac_ct_RANLIB"; then | |
4776 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4777 | else | |
e61fbf76 TJ |
4778 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
4779 | ac_dummy="$PATH" | |
4780 | for ac_dir in $ac_dummy; do | |
4781 | IFS=$ac_save_IFS | |
4782 | test -z "$ac_dir" && ac_dir=. | |
4783 | $as_executable_p "$ac_dir/$ac_word" || continue | |
4784 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4785 | echo "$as_me:4785: found $ac_dir/$ac_word" >&5 | |
4786 | break | |
50850385 TJ |
4787 | done |
4788 | ||
4789 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
4790 | fi | |
4791 | fi | |
4792 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4793 | if test -n "$ac_ct_RANLIB"; then | |
e61fbf76 | 4794 | echo "$as_me:4794: result: $ac_ct_RANLIB" >&5 |
50850385 TJ |
4795 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
4796 | else | |
e61fbf76 | 4797 | echo "$as_me:4797: result: no" >&5 |
50850385 TJ |
4798 | echo "${ECHO_T}no" >&6 |
4799 | fi | |
4800 | ||
4801 | RANLIB=$ac_ct_RANLIB | |
4802 | else | |
4803 | RANLIB="$ac_cv_prog_RANLIB" | |
4804 | fi | |
4805 | ||
4806 | if test -n "$ac_tool_prefix"; then | |
4807 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4808 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
e61fbf76 | 4809 | echo "$as_me:4809: checking for $ac_word" >&5 |
50850385 TJ |
4810 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4811 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
4812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4813 | else | |
4814 | if test -n "$STRIP"; then | |
4815 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4816 | else | |
e61fbf76 TJ |
4817 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
4818 | ac_dummy="$PATH" | |
4819 | for ac_dir in $ac_dummy; do | |
4820 | IFS=$ac_save_IFS | |
4821 | test -z "$ac_dir" && ac_dir=. | |
4822 | $as_executable_p "$ac_dir/$ac_word" || continue | |
4823 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4824 | echo "$as_me:4824: found $ac_dir/$ac_word" >&5 | |
4825 | break | |
50850385 TJ |
4826 | done |
4827 | ||
4828 | fi | |
4829 | fi | |
4830 | STRIP=$ac_cv_prog_STRIP | |
4831 | if test -n "$STRIP"; then | |
e61fbf76 | 4832 | echo "$as_me:4832: result: $STRIP" >&5 |
50850385 TJ |
4833 | echo "${ECHO_T}$STRIP" >&6 |
4834 | else | |
e61fbf76 | 4835 | echo "$as_me:4835: result: no" >&5 |
50850385 TJ |
4836 | echo "${ECHO_T}no" >&6 |
4837 | fi | |
4838 | ||
4839 | fi | |
4840 | if test -z "$ac_cv_prog_STRIP"; then | |
4841 | ac_ct_STRIP=$STRIP | |
4842 | # Extract the first word of "strip", so it can be a program name with args. | |
4843 | set dummy strip; ac_word=$2 | |
e61fbf76 | 4844 | echo "$as_me:4844: checking for $ac_word" >&5 |
50850385 TJ |
4845 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4846 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
4847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4848 | else | |
4849 | if test -n "$ac_ct_STRIP"; then | |
4850 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4851 | else | |
e61fbf76 TJ |
4852 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
4853 | ac_dummy="$PATH" | |
4854 | for ac_dir in $ac_dummy; do | |
4855 | IFS=$ac_save_IFS | |
4856 | test -z "$ac_dir" && ac_dir=. | |
4857 | $as_executable_p "$ac_dir/$ac_word" || continue | |
4858 | ac_cv_prog_ac_ct_STRIP="strip" | |
4859 | echo "$as_me:4859: found $ac_dir/$ac_word" >&5 | |
4860 | break | |
50850385 TJ |
4861 | done |
4862 | ||
4863 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
4864 | fi | |
4865 | fi | |
4866 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
4867 | if test -n "$ac_ct_STRIP"; then | |
e61fbf76 | 4868 | echo "$as_me:4868: result: $ac_ct_STRIP" >&5 |
50850385 TJ |
4869 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
4870 | else | |
e61fbf76 | 4871 | echo "$as_me:4871: result: no" >&5 |
50850385 TJ |
4872 | echo "${ECHO_T}no" >&6 |
4873 | fi | |
4874 | ||
4875 | STRIP=$ac_ct_STRIP | |
4876 | else | |
4877 | STRIP="$ac_cv_prog_STRIP" | |
4878 | fi | |
4879 | ||
50850385 TJ |
4880 | old_CC="$CC" |
4881 | old_CFLAGS="$CFLAGS" | |
4882 | ||
4883 | # Set sane defaults for various variables | |
4884 | test -z "$AR" && AR=ar | |
4885 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
4886 | test -z "$AS" && AS=as | |
4887 | test -z "$CC" && CC=cc | |
4888 | test -z "$LTCC" && LTCC=$CC | |
4889 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
4890 | test -z "$LD" && LD=ld | |
4891 | test -z "$LN_S" && LN_S="ln -s" | |
4892 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
4893 | test -z "$NM" && NM=nm | |
4894 | test -z "$SED" && SED=sed | |
4895 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
4896 | test -z "$RANLIB" && RANLIB=: | |
4897 | test -z "$STRIP" && STRIP=: | |
4898 | test -z "$ac_objext" && ac_objext=o | |
4899 | ||
4900 | # Determine commands to create old-style static archives. | |
4901 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | |
4902 | old_postinstall_cmds='chmod 644 $oldlib' | |
4903 | old_postuninstall_cmds= | |
4904 | ||
4905 | if test -n "$RANLIB"; then | |
4906 | case $host_os in | |
4907 | openbsd*) | |
4908 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" | |
4909 | ;; | |
4910 | *) | |
4911 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" | |
4912 | ;; | |
4913 | esac | |
4914 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
4915 | fi | |
4916 | ||
4917 | # Only perform the check for file, if the check method requires it | |
4918 | case $deplibs_check_method in | |
4919 | file_magic*) | |
4920 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
e61fbf76 | 4921 | echo "$as_me:4921: checking for ${ac_tool_prefix}file" >&5 |
50850385 TJ |
4922 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
4923 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
4924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4925 | else | |
4926 | case $MAGIC_CMD in | |
4927 | [\\/*] | ?:[\\/]*) | |
4928 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
4929 | ;; | |
4930 | *) | |
4931 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
4932 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4933 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
4934 | for ac_dir in $ac_dummy; do | |
4935 | IFS="$lt_save_ifs" | |
4936 | test -z "$ac_dir" && ac_dir=. | |
4937 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
4938 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
4939 | if test -n "$file_magic_test_file"; then | |
4940 | case $deplibs_check_method in | |
4941 | "file_magic "*) | |
4942 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
4943 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
4944 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
4945 | egrep "$file_magic_regex" > /dev/null; then | |
4946 | : | |
4947 | else | |
4948 | cat <<EOF 1>&2 | |
4949 | ||
4950 | *** Warning: the command libtool uses to detect shared libraries, | |
4951 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
4952 | *** The result is that libtool may fail to recognize shared libraries | |
4953 | *** as such. This will affect the creation of libtool libraries that | |
4954 | *** depend on shared libraries, but programs linked with such libtool | |
4955 | *** libraries will work regardless of this problem. Nevertheless, you | |
4956 | *** may want to report the problem to your system manager and/or to | |
4957 | *** bug-libtool@gnu.org | |
4958 | ||
4959 | EOF | |
4960 | fi ;; | |
4961 | esac | |
4962 | fi | |
4963 | break | |
4964 | fi | |
4965 | done | |
4966 | IFS="$lt_save_ifs" | |
4967 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
4968 | ;; | |
4969 | esac | |
4970 | fi | |
4971 | ||
4972 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
4973 | if test -n "$MAGIC_CMD"; then | |
e61fbf76 | 4974 | echo "$as_me:4974: result: $MAGIC_CMD" >&5 |
50850385 TJ |
4975 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
4976 | else | |
e61fbf76 | 4977 | echo "$as_me:4977: result: no" >&5 |
50850385 TJ |
4978 | echo "${ECHO_T}no" >&6 |
4979 | fi | |
4980 | ||
4981 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
4982 | if test -n "$ac_tool_prefix"; then | |
e61fbf76 | 4983 | echo "$as_me:4983: checking for file" >&5 |
50850385 TJ |
4984 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
4985 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
4986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4987 | else | |
4988 | case $MAGIC_CMD in | |
4989 | [\\/*] | ?:[\\/]*) | |
4990 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
4991 | ;; | |
4992 | *) | |
4993 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
4994 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4995 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
4996 | for ac_dir in $ac_dummy; do | |
4997 | IFS="$lt_save_ifs" | |
4998 | test -z "$ac_dir" && ac_dir=. | |
4999 | if test -f $ac_dir/file; then | |
5000 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
5001 | if test -n "$file_magic_test_file"; then | |
5002 | case $deplibs_check_method in | |
5003 | "file_magic "*) | |
5004 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
5005 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
5006 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
5007 | egrep "$file_magic_regex" > /dev/null; then | |
5008 | : | |
5009 | else | |
5010 | cat <<EOF 1>&2 | |
5011 | ||
5012 | *** Warning: the command libtool uses to detect shared libraries, | |
5013 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
5014 | *** The result is that libtool may fail to recognize shared libraries | |
5015 | *** as such. This will affect the creation of libtool libraries that | |
5016 | *** depend on shared libraries, but programs linked with such libtool | |
5017 | *** libraries will work regardless of this problem. Nevertheless, you | |
5018 | *** may want to report the problem to your system manager and/or to | |
5019 | *** bug-libtool@gnu.org | |
5020 | ||
5021 | EOF | |
5022 | fi ;; | |
5023 | esac | |
5024 | fi | |
5025 | break | |
5026 | fi | |
5027 | done | |
5028 | IFS="$lt_save_ifs" | |
5029 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
5030 | ;; | |
5031 | esac | |
5032 | fi | |
5033 | ||
5034 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
5035 | if test -n "$MAGIC_CMD"; then | |
e61fbf76 | 5036 | echo "$as_me:5036: result: $MAGIC_CMD" >&5 |
50850385 TJ |
5037 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
5038 | else | |
e61fbf76 | 5039 | echo "$as_me:5039: result: no" >&5 |
50850385 TJ |
5040 | echo "${ECHO_T}no" >&6 |
5041 | fi | |
5042 | ||
5043 | else | |
5044 | MAGIC_CMD=: | |
5045 | fi | |
5046 | fi | |
5047 | ||
5048 | fi | |
5049 | ;; | |
5050 | esac | |
5051 | ||
e61fbf76 | 5052 | enable_dlopen=yes |
50850385 TJ |
5053 | enable_win32_dll=no |
5054 | ||
5055 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
5056 | if test "${enable_libtool_lock+set}" = set; then | |
5057 | enableval="$enable_libtool_lock" | |
5058 | ||
5059 | fi; | |
5060 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
5061 | ||
50850385 TJ |
5062 | # Check whether --with-pic or --without-pic was given. |
5063 | if test "${with_pic+set}" = set; then | |
5064 | withval="$with_pic" | |
5065 | pic_mode="$withval" | |
5066 | else | |
5067 | pic_mode=default | |
5068 | fi; | |
5069 | test -z "$pic_mode" && pic_mode=default | |
5070 | ||
5071 | # Use C for the default configuration in the libtool script | |
5072 | tagname= | |
5073 | lt_save_CC="$CC" | |
5074 | ac_ext=c | |
5075 | ac_cpp='$CPP $CPPFLAGS' | |
5076 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5077 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5078 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5079 | ||
50850385 TJ |
5080 | # Source file extension for C test sources. |
5081 | ac_ext=c | |
5082 | ||
5083 | # Object file extension for compiled C test sources. | |
5084 | objext=o | |
5085 | objext=$objext | |
5086 | ||
5087 | # Code to be used in simple compile tests | |
5088 | lt_simple_compile_test_code="int some_variable = 0;" | |
5089 | ||
5090 | # Code to be used in simple link tests | |
5091 | lt_simple_link_test_code='main(){return(0);}' | |
5092 | ||
50850385 TJ |
5093 | # If no C compiler was specified, use CC. |
5094 | LTCC=${LTCC-"$CC"} | |
5095 | ||
5096 | # Allow CC to be a program name with arguments. | |
5097 | set dummy $CC | |
5098 | compiler="$2" | |
5099 | ||
50850385 TJ |
5100 | # |
5101 | # Check for any special shared library compilation flags. | |
5102 | # | |
5103 | lt_prog_cc_shlib= | |
5104 | if test "$GCC" = no; then | |
5105 | case $host_os in | |
5106 | sco3.2v5*) | |
5107 | lt_prog_cc_shlib='-belf' | |
5108 | ;; | |
5109 | esac | |
5110 | fi | |
5111 | if test -n "$lt_prog_cc_shlib"; then | |
e61fbf76 | 5112 | { echo "$as_me:5112: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
50850385 TJ |
5113 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
5114 | if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : | |
5115 | else | |
e61fbf76 | 5116 | { echo "$as_me:5116: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
50850385 TJ |
5117 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
5118 | lt_cv_prog_cc_can_build_shared=no | |
5119 | fi | |
5120 | fi | |
5121 | ||
50850385 TJ |
5122 | # |
5123 | # Check to make sure the static flag actually works. | |
5124 | # | |
e61fbf76 | 5125 | echo "$as_me:5125: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
50850385 TJ |
5126 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
5127 | if test "${lt_prog_compiler_static_works+set}" = set; then | |
5128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5129 | else | |
5130 | lt_prog_compiler_static_works=no | |
5131 | save_LDFLAGS="$LDFLAGS" | |
5132 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" | |
5133 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
5134 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
5135 | # The compiler can only warn and ignore the option if not recognized | |
5136 | # So say no if there are warnings | |
5137 | if test -s conftest.err; then | |
5138 | # Append any errors to the config.log. | |
5139 | cat conftest.err 1>&5 | |
5140 | else | |
5141 | lt_prog_compiler_static_works=yes | |
5142 | fi | |
5143 | fi | |
5144 | $rm conftest* | |
5145 | LDFLAGS="$save_LDFLAGS" | |
5146 | ||
5147 | fi | |
e61fbf76 | 5148 | echo "$as_me:5148: result: $lt_prog_compiler_static_works" >&5 |
50850385 TJ |
5149 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
5150 | ||
5151 | if test x"$lt_prog_compiler_static_works" = xyes; then | |
5152 | : | |
5153 | else | |
5154 | lt_prog_compiler_static= | |
5155 | fi | |
5156 | ||
50850385 TJ |
5157 | lt_prog_compiler_no_builtin_flag= |
5158 | ||
5159 | if test "$GCC" = yes; then | |
5160 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
5161 | ||
e61fbf76 | 5162 | echo "$as_me:5162: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
50850385 TJ |
5163 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
5164 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
5165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5166 | else | |
5167 | lt_cv_prog_compiler_rtti_exceptions=no | |
5168 | ac_outfile=conftest.$ac_objext | |
5169 | save_CFLAGS="$CFLAGS" | |
5170 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" | |
5171 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
5172 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
5173 | # The compiler can only warn and ignore the option if not recognized | |
5174 | # So say no if there are warnings | |
5175 | if test -s conftest.err; then | |
5176 | # Append any errors to the config.log. | |
5177 | cat conftest.err 1>&5 | |
5178 | else | |
5179 | lt_cv_prog_compiler_rtti_exceptions=yes | |
5180 | fi | |
5181 | fi | |
5182 | $rm conftest* | |
5183 | CFLAGS="$save_CFLAGS" | |
5184 | ||
5185 | fi | |
e61fbf76 | 5186 | echo "$as_me:5186: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
50850385 TJ |
5187 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
5188 | ||
5189 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
5190 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
5191 | else | |
5192 | : | |
5193 | fi | |
5194 | ||
5195 | fi | |
5196 | ||
5197 | lt_prog_compiler_wl= | |
5198 | lt_prog_compiler_pic= | |
5199 | lt_prog_compiler_static= | |
5200 | ||
e61fbf76 | 5201 | echo "$as_me:5201: checking for $compiler option to produce PIC" >&5 |
50850385 TJ |
5202 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
5203 | ||
5204 | if test "$GCC" = yes; then | |
5205 | lt_prog_compiler_wl='-Wl,' | |
5206 | lt_prog_compiler_static='-static' | |
5207 | ||
5208 | case $host_os in | |
5209 | aix*) | |
5210 | # All AIX code is PIC. | |
5211 | if test "$host_cpu" = ia64; then | |
5212 | # AIX 5 now supports IA64 processor | |
5213 | lt_prog_compiler_static='-Bstatic' | |
5214 | fi | |
5215 | ;; | |
5216 | ||
5217 | amigaos*) | |
5218 | # FIXME: we need at least 68020 code to build shared libraries, but | |
5219 | # adding the `-m68020' flag to GCC prevents building anything better, | |
5220 | # like `-m68040'. | |
5221 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
5222 | ;; | |
5223 | ||
5224 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
5225 | # PIC is the default for these OSes. | |
5226 | ;; | |
5227 | ||
5228 | cygwin* | mingw* | pw32* | os2*) | |
5229 | # This hack is so that the source file can tell whether it is being | |
5230 | # built for inclusion in a dll (and should export symbols for example). | |
5231 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
5232 | ;; | |
5233 | ||
5234 | darwin* | rhapsody*) | |
5235 | # PIC is the default on this platform | |
5236 | # Common symbols not allowed in MH_DYLIB files | |
5237 | lt_prog_compiler_pic='-fno-common' | |
5238 | ;; | |
5239 | ||
5240 | msdosdjgpp*) | |
5241 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
5242 | # on systems that don't support them. | |
5243 | lt_prog_compiler_can_build_shared=no | |
5244 | enable_shared=no | |
5245 | ;; | |
5246 | ||
5247 | sysv4*MP*) | |
5248 | if test -d /usr/nec; then | |
5249 | lt_prog_compiler_pic=-Kconform_pic | |
5250 | fi | |
5251 | ;; | |
5252 | ||
5253 | hpux*) | |
5254 | # PIC is the default for IA64 HP-UX, but not for PA HP-UX. | |
5255 | if test "$host_cpu" != ia64; then | |
5256 | lt_prog_compiler_pic='-fPIC' | |
5257 | fi | |
5258 | ;; | |
5259 | ||
5260 | *) | |
5261 | lt_prog_compiler_pic='-fPIC' | |
5262 | ;; | |
5263 | esac | |
5264 | else | |
5265 | # PORTME Check for flag to pass linker flags through the system compiler. | |
5266 | case $host_os in | |
5267 | aix*) | |
5268 | lt_prog_compiler_wl='-Wl,' | |
5269 | if test "$host_cpu" = ia64; then | |
5270 | # AIX 5 now supports IA64 processor | |
5271 | lt_prog_compiler_static='-Bstatic' | |
5272 | else | |
5273 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
5274 | fi | |
5275 | ;; | |
5276 | ||
5277 | cygwin* | mingw* | pw32* | os2*) | |
5278 | # This hack is so that the source file can tell whether it is being | |
5279 | # built for inclusion in a dll (and should export symbols for example). | |
5280 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
5281 | ;; | |
5282 | ||
5283 | hpux9* | hpux10* | hpux11*) | |
5284 | lt_prog_compiler_wl='-Wl,' | |
5285 | if test "$host_cpu" != ia64; then | |
5286 | lt_prog_compiler_pic='+Z' | |
5287 | fi | |
5288 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
5289 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
5290 | ;; | |
5291 | ||
5292 | irix5* | irix6* | nonstopux*) | |
5293 | lt_prog_compiler_wl='-Wl,' | |
5294 | # PIC (with -KPIC) is the default. | |
5295 | lt_prog_compiler_static='-non_shared' | |
5296 | ;; | |
5297 | ||
5298 | newsos6) | |
5299 | lt_prog_compiler_pic='-KPIC' | |
5300 | lt_prog_compiler_static='-Bstatic' | |
5301 | ;; | |
5302 | ||
5303 | osf3* | osf4* | osf5*) | |
5304 | lt_prog_compiler_wl='-Wl,' | |
5305 | # All OSF/1 code is PIC. | |
5306 | lt_prog_compiler_static='-non_shared' | |
5307 | ;; | |
5308 | ||
5309 | sco3.2v5*) | |
5310 | lt_prog_compiler_pic='-Kpic' | |
5311 | lt_prog_compiler_static='-dn' | |
5312 | ;; | |
5313 | ||
5314 | solaris*) | |
5315 | lt_prog_compiler_wl='-Wl,' | |
5316 | lt_prog_compiler_pic='-KPIC' | |
5317 | lt_prog_compiler_static='-Bstatic' | |
5318 | ;; | |
5319 | ||
5320 | sunos4*) | |
5321 | lt_prog_compiler_wl='-Qoption ld ' | |
5322 | lt_prog_compiler_pic='-PIC' | |
5323 | lt_prog_compiler_static='-Bstatic' | |
5324 | ;; | |
5325 | ||
5326 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
5327 | if test "x$host_vendor" = xsni; then | |
5328 | lt_prog_compiler_wl='-LD' | |
5329 | else | |
5330 | lt_prog_compiler_wl='-Wl,' | |
5331 | fi | |
5332 | lt_prog_compiler_pic='-KPIC' | |
5333 | lt_prog_compiler_static='-Bstatic' | |
5334 | ;; | |
5335 | ||
5336 | sysv4*MP*) | |
5337 | if test -d /usr/nec ;then | |
5338 | lt_prog_compiler_pic='-Kconform_pic' | |
5339 | lt_prog_compiler_static='-Bstatic' | |
5340 | fi | |
5341 | ;; | |
5342 | ||
5343 | uts4*) | |
5344 | lt_prog_compiler_pic='-pic' | |
5345 | lt_prog_compiler_static='-Bstatic' | |
5346 | ;; | |
5347 | ||
5348 | *) | |
5349 | lt_prog_compiler_can_build_shared=no | |
5350 | ;; | |
5351 | esac | |
5352 | fi | |
5353 | ||
e61fbf76 | 5354 | echo "$as_me:5354: result: $lt_prog_compiler_pic" >&5 |
50850385 TJ |
5355 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
5356 | ||
5357 | # | |
5358 | # Check to make sure the PIC flag actually works. | |
5359 | # | |
5360 | if test -n "$lt_prog_compiler_pic"; then | |
e61fbf76 | 5361 | echo "$as_me:5361: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
50850385 TJ |
5362 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
5363 | if test "${lt_prog_compiler_pic_works+set}" = set; then | |
5364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5365 | else | |
5366 | lt_prog_compiler_pic_works=no | |
5367 | ac_outfile=conftest.$ac_objext | |
5368 | save_CFLAGS="$CFLAGS" | |
5369 | CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC" | |
5370 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
5371 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
5372 | # The compiler can only warn and ignore the option if not recognized | |
5373 | # So say no if there are warnings | |
5374 | if test -s conftest.err; then | |
5375 | # Append any errors to the config.log. | |
5376 | cat conftest.err 1>&5 | |
5377 | else | |
5378 | lt_prog_compiler_pic_works=yes | |
5379 | fi | |
5380 | fi | |
5381 | $rm conftest* | |
5382 | CFLAGS="$save_CFLAGS" | |
5383 | ||
5384 | fi | |
e61fbf76 | 5385 | echo "$as_me:5385: result: $lt_prog_compiler_pic_works" >&5 |
50850385 TJ |
5386 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
5387 | ||
5388 | if test x"$lt_prog_compiler_pic_works" = xyes; then | |
5389 | case $lt_prog_compiler_pic in | |
5390 | "" | " "*) ;; | |
5391 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
5392 | esac | |
5393 | else | |
5394 | lt_prog_compiler_pic= | |
5395 | lt_prog_compiler_can_build_shared=no | |
5396 | fi | |
5397 | ||
5398 | fi | |
5399 | case "$host_os" in | |
5400 | # For platforms which do not support PIC, -DPIC is meaningless: | |
5401 | *djgpp*) | |
5402 | lt_prog_compiler_pic= | |
5403 | ;; | |
5404 | *) | |
5405 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
5406 | ;; | |
5407 | esac | |
5408 | ||
e61fbf76 | 5409 | echo "$as_me:5409: checking if $compiler supports -c -o file.$ac_objext" >&5 |
50850385 TJ |
5410 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
5411 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
5412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5413 | else | |
5414 | lt_cv_prog_compiler_c_o=no | |
5415 | $rm -r conftest 2>/dev/null | |
5416 | mkdir conftest | |
5417 | cd conftest | |
5418 | mkdir out | |
5419 | save_CFLAGS="$CFLAGS" | |
5420 | CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" | |
5421 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
5422 | ||
5423 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | |
5424 | # that will create temporary files in the current directory regardless of | |
5425 | # the output directory. Thus, making CWD read-only will cause this test | |
5426 | # to fail, enabling locking or at least warning the user not to do parallel | |
5427 | # builds. | |
5428 | chmod -w . | |
5429 | ||
5430 | if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext | |
5431 | then | |
5432 | # The compiler can only warn and ignore the option if not recognized | |
5433 | # So say no if there are warnings | |
5434 | if test -s out/conftest.err; then | |
5435 | # Append any errors to the config.log. | |
5436 | cat out/conftest.err 1>&5 | |
5437 | else | |
5438 | lt_cv_prog_compiler_c_o=yes | |
5439 | fi | |
5440 | fi | |
5441 | CFLAGS="$save_CFLAGS" | |
5442 | chmod u+w . | |
5443 | $rm conftest* out/* | |
5444 | rmdir out | |
5445 | cd .. | |
5446 | rmdir conftest | |
5447 | $rm conftest* | |
5448 | ||
5449 | fi | |
e61fbf76 | 5450 | echo "$as_me:5450: result: $lt_cv_prog_compiler_c_o" >&5 |
50850385 TJ |
5451 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
5452 | ||
50850385 TJ |
5453 | hard_links="nottested" |
5454 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
5455 | # do not overwrite the value of need_locks provided by the user | |
e61fbf76 | 5456 | echo "$as_me:5456: checking if we can lock with hard links" >&5 |
50850385 TJ |
5457 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
5458 | hard_links=yes | |
5459 | $rm conftest* | |
5460 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
5461 | touch conftest.a | |
5462 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
5463 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
e61fbf76 | 5464 | echo "$as_me:5464: result: $hard_links" >&5 |
50850385 TJ |
5465 | echo "${ECHO_T}$hard_links" >&6 |
5466 | if test "$hard_links" = no; then | |
e61fbf76 | 5467 | { echo "$as_me:5467: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
50850385 TJ |
5468 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
5469 | need_locks=warn | |
5470 | fi | |
5471 | else | |
5472 | need_locks=no | |
5473 | fi | |
5474 | ||
e61fbf76 | 5475 | echo "$as_me:5475: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
50850385 TJ |
5476 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
5477 | ||
5478 | runpath_var= | |
5479 | allow_undefined_flag= | |
5480 | ||
5481 | archive_cmds= | |
5482 | archive_cmds_need_lc= | |
5483 | archive_expsym_cmds= | |
5484 | old_archive_From_new_cmds= | |
5485 | old_archive_from_expsyms_cmds= | |
5486 | export_dynamic_flag_spec= | |
5487 | whole_archive_flag_spec= | |
5488 | thread_safe_flag_spec= | |
5489 | hardcode_libdir_flag_spec= | |
5490 | hardcode_libdir_separator= | |
5491 | hardcode_direct=no | |
5492 | hardcode_minus_L=no | |
5493 | hardcode_shlibpath_var=unsupported | |
5494 | link_all_deplibs=unknown | |
5495 | always_export_symbols=no | |
5496 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
5497 | # include_expsyms should be a list of space-separated symbols to be *always* | |
5498 | # included in the symbol list | |
5499 | include_expsyms= | |
5500 | # exclude_expsyms can be an egrep regular expression of symbols to exclude | |
5501 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
5502 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
5503 | # as well as any symbol that contains `d'. | |
5504 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | |
5505 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
5506 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
5507 | # the symbol is explicitly referenced. Since portable code cannot | |
5508 | # rely on this symbol name, it's probably fine to never include it in | |
5509 | # preloaded symbol tables. | |
5510 | extract_expsyms_cmds= | |
5511 | ||
5512 | case $host_os in | |
5513 | cygwin* | mingw* | pw32*) | |
5514 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
5515 | # When not using gcc, we currently assume that we are using | |
5516 | # Microsoft Visual C++. | |
5517 | if test "$GCC" != yes; then | |
5518 | with_gnu_ld=no | |
5519 | fi | |
5520 | ;; | |
5521 | openbsd*) | |
5522 | with_gnu_ld=no | |
5523 | ;; | |
5524 | esac | |
5525 | ||
5526 | ld_shlibs=yes | |
5527 | if test "$with_gnu_ld" = yes; then | |
5528 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
5529 | wlarc='${wl}' | |
5530 | ||
5531 | # See if GNU ld supports shared libraries. | |
5532 | case $host_os in | |
5533 | aix3* | aix4* | aix5*) | |
5534 | # On AIX/PPC, the GNU linker is very broken | |
5535 | if test "$host_cpu" != ia64; then | |
5536 | ld_shlibs=no | |
5537 | cat <<EOF 1>&2 | |
5538 | ||
5539 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
5540 | *** to be unable to reliably create shared libraries on AIX. | |
5541 | *** Therefore, libtool is disabling shared libraries support. If you | |
5542 | *** really care for shared libraries, you may want to modify your PATH | |
5543 | *** so that a non-GNU linker is found, and then restart. | |
5544 | ||
5545 | EOF | |
5546 | fi | |
5547 | ;; | |
5548 | ||
5549 | amigaos*) | |
5550 | 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)' | |
5551 | hardcode_libdir_flag_spec='-L$libdir' | |
5552 | hardcode_minus_L=yes | |
5553 | ||
5554 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
5555 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
5556 | # to version 4, is to share data among multiple programs linked | |
5557 | # with the same dynamic library. Since this doesn't match the | |
5558 | # behavior of shared libraries on other platforms, we can't use | |
5559 | # them. | |
5560 | ld_shlibs=no | |
5561 | ;; | |
5562 | ||
5563 | beos*) | |
5564 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
5565 | allow_undefined_flag=unsupported | |
5566 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
5567 | # support --undefined. This deserves some investigation. FIXME | |
5568 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
5569 | else | |
5570 | ld_shlibs=no | |
5571 | fi | |
5572 | ;; | |
5573 | ||
5574 | cygwin* | mingw* | pw32*) | |
5575 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is | |
5576 | # no search path for DLLs. | |
5577 | hardcode_libdir_flag_spec='-L$libdir' | |
5578 | allow_undefined_flag=unsupported | |
5579 | always_export_symbols=yes | |
5580 | ||
5581 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ | |
5582 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ | |
5583 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ | |
5584 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ | |
5585 | else $CC -o impgen impgen.c ; fi)~ | |
5586 | $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' | |
5587 | ||
5588 | old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' | |
5589 | ||
5590 | # cygwin and mingw dlls have different entry points and sets of symbols | |
5591 | # to exclude. | |
5592 | # FIXME: what about values for MSVC? | |
5593 | dll_entry=__cygwin_dll_entry@12 | |
5594 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ | |
5595 | case $host_os in | |
5596 | mingw*) | |
5597 | # mingw values | |
5598 | dll_entry=_DllMainCRTStartup@12 | |
5599 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ | |
5600 | ;; | |
5601 | esac | |
5602 | ||
5603 | # mingw and cygwin differ, and it's simplest to just exclude the union | |
5604 | # of the two symbol sets. | |
5605 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 | |
5606 | ||
5607 | # recent cygwin and mingw systems supply a stub DllMain which the user | |
5608 | # can override, but on older systems we have to supply one (in ltdll.c) | |
5609 | if test "x$lt_cv_need_dllmain" = "xyes"; then | |
5610 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " | |
5611 | ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ | |
5612 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' | |
5613 | else | |
5614 | ltdll_obj= | |
5615 | ltdll_cmds= | |
5616 | fi | |
5617 | ||
5618 | # Extract the symbol export list from an `--export-all' def file, | |
5619 | # then regenerate the def file from the symbol export list, so that | |
5620 | # the compiled dll only exports the symbol export list. | |
5621 | # Be careful not to strip the DATA tag left by newer dlltools. | |
5622 | export_symbols_cmds="$ltdll_cmds"' | |
5623 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ | |
5624 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' | |
5625 | ||
5626 | # If the export-symbols file already is a .def file (1st line | |
5627 | # is EXPORTS), use it as is. | |
5628 | # If DATA tags from a recent dlltool are present, honour them! | |
5629 | archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then | |
5630 | cp $export_symbols $output_objdir/$soname-def; | |
5631 | else | |
5632 | echo EXPORTS > $output_objdir/$soname-def; | |
5633 | _lt_hint=1; | |
5634 | cat $export_symbols | while read symbol; do | |
5635 | set dummy \$symbol; | |
5636 | case \$# in | |
5637 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; | |
5638 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; | |
5639 | esac; | |
5640 | _lt_hint=`expr 1 + \$_lt_hint`; | |
5641 | done; | |
5642 | fi~ | |
5643 | '"$ltdll_cmds"' | |
5644 | $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ | |
5645 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ | |
5646 | $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ | |
5647 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ | |
5648 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' | |
5649 | ;; | |
5650 | ||
5651 | netbsd*) | |
5652 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
5653 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
5654 | wlarc= | |
5655 | else | |
5656 | archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
5657 | archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
5658 | fi | |
5659 | ;; | |
5660 | ||
5661 | solaris* | sysv5*) | |
5662 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then | |
5663 | ld_shlibs=no | |
5664 | cat <<EOF 1>&2 | |
5665 | ||
5666 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
5667 | *** create shared libraries on Solaris systems. Therefore, libtool | |
5668 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
5669 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
5670 | *** your PATH or compiler configuration so that the native linker is | |
5671 | *** used, and then restart. | |
5672 | ||
5673 | EOF | |
5674 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
5675 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
5676 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
5677 | else | |
5678 | ld_shlibs=no | |
5679 | fi | |
5680 | ;; | |
5681 | ||
5682 | sunos4*) | |
5683 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
5684 | wlarc= | |
5685 | hardcode_direct=yes | |
5686 | hardcode_shlibpath_var=no | |
5687 | ;; | |
5688 | ||
5689 | *) | |
5690 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
5691 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
5692 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
5693 | else | |
5694 | ld_shlibs=no | |
5695 | fi | |
5696 | ;; | |
5697 | esac | |
5698 | ||
5699 | if test "$ld_shlibs" = yes; then | |
5700 | runpath_var=LD_RUN_PATH | |
5701 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | |
5702 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
5703 | case $host_os in | |
5704 | cygwin* | mingw* | pw32*) | |
5705 | # dlltool doesn't understand --whole-archive et. al. | |
5706 | whole_archive_flag_spec= | |
5707 | ;; | |
5708 | *) | |
5709 | # ancient GNU ld didn't support --whole-archive et. al. | |
5710 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then | |
5711 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
5712 | else | |
5713 | whole_archive_flag_spec= | |
5714 | fi | |
5715 | ;; | |
5716 | esac | |
5717 | fi | |
5718 | else | |
5719 | # PORTME fill in a description of your system's linker (not GNU ld) | |
5720 | case $host_os in | |
5721 | aix3*) | |
5722 | allow_undefined_flag=unsupported | |
5723 | always_export_symbols=yes | |
5724 | 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' | |
5725 | # Note: this linker hardcodes the directories in LIBPATH if there | |
5726 | # are no directories specified by -L. | |
5727 | hardcode_minus_L=yes | |
5728 | if test "$GCC" = yes && test -z "$link_static_flag"; then | |
5729 | # Neither direct hardcoding nor static linking is supported with a | |
5730 | # broken collect2. | |
5731 | hardcode_direct=unsupported | |
5732 | fi | |
5733 | ;; | |
5734 | ||
5735 | aix4* | aix5*) | |
5736 | if test "$host_cpu" = ia64; then | |
5737 | # On IA64, the linker does run time linking by default, so we don't | |
5738 | # have to do anything special. | |
5739 | aix_use_runtimelinking=no | |
5740 | exp_sym_flag='-Bexport' | |
5741 | no_entry_flag="" | |
5742 | else | |
5743 | # If we're using GNU nm, then we don't want the "-C" option. | |
5744 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
5745 | if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then | |
5746 | 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' | |
5747 | else | |
5748 | 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' | |
5749 | fi | |
5750 | ||
5751 | # KDE requires run time linking. Make it the default. | |
5752 | aix_use_runtimelinking=yes | |
5753 | exp_sym_flag='-bexport' | |
5754 | no_entry_flag='-bnoentry' | |
5755 | fi | |
5756 | ||
5757 | # When large executables or shared objects are built, AIX ld can | |
5758 | # have problems creating the table of contents. If linking a library | |
5759 | # or program results in "error TOC overflow" add -mminimal-toc to | |
5760 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
5761 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
5762 | ||
5763 | archive_cmds='' | |
5764 | hardcode_direct=yes | |
5765 | hardcode_libdir_separator=':' | |
5766 | link_all_deplibs=yes | |
5767 | ||
5768 | if test "$GCC" = yes; then | |
5769 | case $host_os in aix4.012|aix4.012.*) | |
5770 | # We only want to do this on AIX 4.2 and lower, the check | |
5771 | # below for broken collect2 doesn't work under 4.3+ | |
5772 | collect2name=`${CC} -print-prog-name=collect2` | |
5773 | if test -f "$collect2name" && \ | |
5774 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
5775 | then | |
5776 | # We have reworked collect2 | |
5777 | hardcode_direct=yes | |
5778 | else | |
5779 | # We have old collect2 | |
5780 | hardcode_direct=unsupported | |
5781 | # It fails to find uninstalled libraries when the uninstalled | |
5782 | # path is not listed in the libpath. Setting hardcode_minus_L | |
5783 | # to unsupported forces relinking | |
5784 | hardcode_minus_L=yes | |
5785 | hardcode_libdir_flag_spec='-L$libdir' | |
5786 | hardcode_libdir_separator= | |
5787 | fi | |
5788 | esac | |
5789 | shared_flag='-shared' | |
5790 | else | |
5791 | # not using gcc | |
5792 | if test "$host_cpu" = ia64; then | |
5793 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
5794 | # chokes on -Wl,-G. The following line is correct: | |
5795 | shared_flag='-G' | |
5796 | else | |
5797 | if test "$aix_use_runtimelinking" = yes; then | |
5798 | shared_flag='-qmkshrobj ${wl}-G' | |
5799 | else | |
5800 | shared_flag='-qmkshrobj' | |
5801 | fi | |
5802 | fi | |
5803 | fi | |
5804 | ||
5805 | # Let the compiler handle the export list. | |
5806 | always_export_symbols=no | |
5807 | if test "$aix_use_runtimelinking" = yes; then | |
5808 | # Warning - without using the other runtime loading flags (-brtl), | |
5809 | # -berok will link without error, but may produce a broken library. | |
5810 | allow_undefined_flag='-berok' | |
5811 | # Determine the default libpath from the value encoded in an empty executable. | |
5812 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 5813 | #line 5813 "configure" |
50850385 TJ |
5814 | #include "confdefs.h" |
5815 | ||
50850385 TJ |
5816 | int |
5817 | main () | |
5818 | { | |
5819 | ||
5820 | ; | |
5821 | return 0; | |
5822 | } | |
5823 | _ACEOF | |
5824 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 5825 | if { (eval echo "$as_me:5825: \"$ac_link\"") >&5 |
50850385 TJ |
5826 | (eval $ac_link) 2>&5 |
5827 | ac_status=$? | |
e61fbf76 | 5828 | echo "$as_me:5828: \$? = $ac_status" >&5 |
50850385 TJ |
5829 | (exit $ac_status); } && |
5830 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 5831 | { (eval echo "$as_me:5831: \"$ac_try\"") >&5 |
50850385 TJ |
5832 | (eval $ac_try) 2>&5 |
5833 | ac_status=$? | |
e61fbf76 | 5834 | echo "$as_me:5834: \$? = $ac_status" >&5 |
50850385 TJ |
5835 | (exit $ac_status); }; }; then |
5836 | ||
5837 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
5838 | }'` | |
5839 | # Check for a 64-bit object if we didn't find anything. | |
5840 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
5841 | }'`; fi | |
5842 | else | |
5843 | echo "$as_me: failed program was:" >&5 | |
5844 | cat conftest.$ac_ext >&5 | |
5845 | fi | |
5846 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5847 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
5848 | ||
5849 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
5850 | archive_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag" | |
5851 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
5852 | else | |
5853 | if test "$host_cpu" = ia64; then | |
5854 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
5855 | allow_undefined_flag="-z nodefs" | |
5856 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | |
5857 | else | |
5858 | # Determine the default libpath from the value encoded in an empty executable. | |
5859 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 5860 | #line 5860 "configure" |
50850385 TJ |
5861 | #include "confdefs.h" |
5862 | ||
50850385 TJ |
5863 | int |
5864 | main () | |
5865 | { | |
5866 | ||
5867 | ; | |
5868 | return 0; | |
5869 | } | |
5870 | _ACEOF | |
5871 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 5872 | if { (eval echo "$as_me:5872: \"$ac_link\"") >&5 |
50850385 TJ |
5873 | (eval $ac_link) 2>&5 |
5874 | ac_status=$? | |
e61fbf76 | 5875 | echo "$as_me:5875: \$? = $ac_status" >&5 |
50850385 TJ |
5876 | (exit $ac_status); } && |
5877 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 5878 | { (eval echo "$as_me:5878: \"$ac_try\"") >&5 |
50850385 TJ |
5879 | (eval $ac_try) 2>&5 |
5880 | ac_status=$? | |
e61fbf76 | 5881 | echo "$as_me:5881: \$? = $ac_status" >&5 |
50850385 TJ |
5882 | (exit $ac_status); }; }; then |
5883 | ||
5884 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
5885 | }'` | |
5886 | # Check for a 64-bit object if we didn't find anything. | |
5887 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
5888 | }'`; fi | |
5889 | else | |
5890 | echo "$as_me: failed program was:" >&5 | |
5891 | cat conftest.$ac_ext >&5 | |
5892 | fi | |
5893 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5894 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
5895 | ||
5896 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
5897 | # Warning - without using the other run time loading flags, | |
5898 | # -berok will link without error, but may produce a broken library. | |
5899 | no_undefined_flag=' ${wl}-bernotok' | |
5900 | allow_undefined_flag=' ${wl}-berok' | |
5901 | # -bexpall does not export symbols beginning with underscore (_) | |
5902 | always_export_symbols=yes | |
5903 | # Exported symbols can be pulled into shared objects from archives | |
5904 | whole_archive_flag_spec=' ' | |
5905 | archive_cmds_need_lc=yes | |
5906 | # This is similar to how AIX traditionally builds it's shared libraries. | |
5907 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
5908 | fi | |
5909 | fi | |
5910 | ;; | |
5911 | ||
5912 | amigaos*) | |
5913 | 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)' | |
5914 | hardcode_libdir_flag_spec='-L$libdir' | |
5915 | hardcode_minus_L=yes | |
5916 | # see comment about different semantics on the GNU ld section | |
5917 | ld_shlibs=no | |
5918 | ;; | |
5919 | ||
5920 | bsdi4*) | |
5921 | export_dynamic_flag_spec=-rdynamic | |
5922 | ;; | |
5923 | ||
5924 | cygwin* | mingw* | pw32*) | |
5925 | # When not using gcc, we currently assume that we are using | |
5926 | # Microsoft Visual C++. | |
5927 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
5928 | # no search path for DLLs. | |
5929 | hardcode_libdir_flag_spec=' ' | |
5930 | allow_undefined_flag=unsupported | |
5931 | # Tell ltmain to make .lib files, not .a files. | |
5932 | libext=lib | |
5933 | # FIXME: Setting linknames here is a bad hack. | |
5934 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
5935 | # The linker will automatically build a .lib file if we build a DLL. | |
5936 | old_archive_From_new_cmds='true' | |
5937 | # FIXME: Should let the user specify the lib program. | |
5938 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
5939 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
5940 | ;; | |
5941 | ||
5942 | darwin* | rhapsody*) | |
5943 | case "$host_os" in | |
5944 | rhapsody* | darwin1.[012]) | |
5945 | allow_undefined_flag='-undefined suppress' | |
5946 | ;; | |
5947 | *) # Darwin 1.3 on | |
5948 | allow_undefined_flag='-flat_namespace -undefined suppress' | |
5949 | ;; | |
5950 | esac | |
5951 | ||
5952 | # FIXME: Relying on posixy $() will cause problems for | |
5953 | # cross-compilation, but unfortunately the echo tests do not | |
5954 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles | |
5955 | # `"' quotes if we put them in here... so don't! | |
5956 | archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' | |
5957 | # We need to add '_' to the symbols in $export_symbols first | |
5958 | #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols' | |
5959 | hardcode_direct=yes | |
5960 | hardcode_shlibpath_var=no | |
5961 | whole_archive_flag_spec='-all_load $convenience' | |
5962 | ;; | |
5963 | ||
5964 | dgux*) | |
5965 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
5966 | hardcode_libdir_flag_spec='-L$libdir' | |
5967 | hardcode_shlibpath_var=no | |
5968 | ;; | |
5969 | ||
5970 | freebsd1*) | |
5971 | ld_shlibs=no | |
5972 | ;; | |
5973 | ||
5974 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
5975 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
5976 | # does not break anything, and helps significantly (at the cost of a little | |
5977 | # extra space). | |
5978 | freebsd2.2*) | |
5979 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
5980 | hardcode_libdir_flag_spec='-R$libdir' | |
5981 | hardcode_direct=yes | |
5982 | hardcode_shlibpath_var=no | |
5983 | ;; | |
5984 | ||
5985 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
5986 | freebsd2*) | |
5987 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
5988 | hardcode_direct=yes | |
5989 | hardcode_minus_L=yes | |
5990 | hardcode_shlibpath_var=no | |
5991 | ;; | |
5992 | ||
5993 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
5994 | freebsd*) | |
5995 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
5996 | hardcode_libdir_flag_spec='-R$libdir' | |
5997 | hardcode_direct=yes | |
5998 | hardcode_shlibpath_var=no | |
5999 | ;; | |
6000 | ||
6001 | hpux9* | hpux10* | hpux11*) | |
6002 | if test "$GCC" = yes; then | |
6003 | case $host_os in | |
6004 | hpux9*) | |
6005 | 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' | |
6006 | ;; | |
6007 | *) | |
6008 | if test "$host_cpu" = ia64; then | |
6009 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6010 | else | |
6011 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
6012 | fi | |
6013 | ;; | |
6014 | esac | |
6015 | else | |
6016 | case $host_os in | |
6017 | hpux9*) | |
6018 | 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' | |
6019 | ;; | |
6020 | *) | |
6021 | if test "$host_cpu" = ia64; then | |
6022 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6023 | else | |
6024 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
6025 | fi | |
6026 | ;; | |
6027 | esac | |
6028 | fi | |
6029 | if test "$host_cpu" = ia64; then | |
6030 | hardcode_libdir_flag_spec='-L$libdir' | |
6031 | hardcode_direct=no | |
6032 | hardcode_shlibpath_var=no | |
6033 | else | |
6034 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
6035 | hardcode_libdir_separator=: | |
6036 | hardcode_direct=yes | |
6037 | fi | |
6038 | # hardcode_minus_L: Not really in the search PATH, | |
6039 | # but as the default location of the library. | |
6040 | hardcode_minus_L=yes | |
6041 | export_dynamic_flag_spec='${wl}-E' | |
6042 | ;; | |
6043 | ||
6044 | irix5* | irix6* | nonstopux*) | |
6045 | if test "$GCC" = yes; then | |
6046 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
6047 | else | |
6048 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
6049 | fi | |
6050 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
6051 | hardcode_libdir_separator=: | |
6052 | link_all_deplibs=yes | |
6053 | ;; | |
6054 | ||
6055 | netbsd*) | |
6056 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
6057 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
6058 | else | |
6059 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
6060 | fi | |
6061 | hardcode_libdir_flag_spec='-R$libdir' | |
6062 | hardcode_direct=yes | |
6063 | hardcode_shlibpath_var=no | |
6064 | ;; | |
6065 | ||
6066 | newsos6) | |
6067 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6068 | hardcode_direct=yes | |
6069 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
6070 | hardcode_libdir_separator=: | |
6071 | hardcode_shlibpath_var=no | |
6072 | ;; | |
6073 | ||
6074 | openbsd*) | |
6075 | hardcode_direct=yes | |
6076 | hardcode_shlibpath_var=no | |
6077 | ||
6078 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6079 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | |
6080 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
6081 | export_dynamic_flag_spec='${wl}-E' | |
6082 | else | |
6083 | case $host_os in | |
6084 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
6085 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
6086 | hardcode_libdir_flag_spec='-R$libdir' | |
6087 | ;; | |
6088 | *) | |
6089 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | |
6090 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
6091 | ;; | |
6092 | esac | |
6093 | fi | |
6094 | ;; | |
6095 | ||
6096 | os2*) | |
6097 | hardcode_libdir_flag_spec='-L$libdir' | |
6098 | hardcode_minus_L=yes | |
6099 | allow_undefined_flag=unsupported | |
6100 | 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' | |
6101 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
6102 | ;; | |
6103 | ||
6104 | osf3*) | |
6105 | if test "$GCC" = yes; then | |
6106 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
6107 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
6108 | else | |
6109 | allow_undefined_flag=' -expect_unresolved \*' | |
6110 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
6111 | fi | |
6112 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
6113 | hardcode_libdir_separator=: | |
6114 | ;; | |
6115 | ||
6116 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
6117 | if test "$GCC" = yes; then | |
6118 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
6119 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
6120 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
6121 | else | |
6122 | allow_undefined_flag=' -expect_unresolved \*' | |
6123 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
6124 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
6125 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' | |
6126 | ||
6127 | # Both c and cxx compiler support -rpath directly | |
6128 | hardcode_libdir_flag_spec='-rpath $libdir' | |
6129 | fi | |
6130 | hardcode_libdir_separator=: | |
6131 | ;; | |
6132 | ||
6133 | sco3.2v5*) | |
6134 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6135 | hardcode_shlibpath_var=no | |
6136 | export_dynamic_flag_spec='${wl}-Bexport' | |
6137 | runpath_var=LD_RUN_PATH | |
6138 | hardcode_runpath_var=yes | |
6139 | ;; | |
6140 | ||
6141 | solaris*) | |
6142 | no_undefined_flag=' -z text' | |
6143 | if test "$GCC" = yes; then | |
6144 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6145 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
6146 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
6147 | else | |
6148 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6149 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
6150 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
6151 | fi | |
6152 | hardcode_libdir_flag_spec='-R$libdir' | |
6153 | hardcode_shlibpath_var=no | |
6154 | case $host_os in | |
6155 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
6156 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | |
6157 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | |
6158 | esac | |
6159 | link_all_deplibs=yes | |
6160 | ;; | |
6161 | ||
6162 | sunos4*) | |
6163 | if test "x$host_vendor" = xsequent; then | |
6164 | # Use $CC to link under sequent, because it throws in some extra .o | |
6165 | # files that make .init and .fini sections work. | |
6166 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
6167 | else | |
6168 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
6169 | fi | |
6170 | hardcode_libdir_flag_spec='-L$libdir' | |
6171 | hardcode_direct=yes | |
6172 | hardcode_minus_L=yes | |
6173 | hardcode_shlibpath_var=no | |
6174 | ;; | |
6175 | ||
6176 | sysv4) | |
6177 | if test "x$host_vendor" = xsni; then | |
6178 | archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6179 | hardcode_direct=yes # is this really true??? | |
6180 | else | |
6181 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6182 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
6183 | fi | |
6184 | runpath_var='LD_RUN_PATH' | |
6185 | hardcode_shlibpath_var=no | |
6186 | ;; | |
6187 | ||
6188 | sysv4.3*) | |
6189 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6190 | hardcode_shlibpath_var=no | |
6191 | export_dynamic_flag_spec='-Bexport' | |
6192 | ;; | |
6193 | ||
6194 | sysv4*MP*) | |
6195 | if test -d /usr/nec; then | |
6196 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6197 | hardcode_shlibpath_var=no | |
6198 | runpath_var=LD_RUN_PATH | |
6199 | hardcode_runpath_var=yes | |
6200 | ld_shlibs=yes | |
6201 | fi | |
6202 | ;; | |
6203 | ||
6204 | sysv4.2uw2*) | |
6205 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
6206 | hardcode_direct=yes | |
6207 | hardcode_minus_L=no | |
6208 | hardcode_shlibpath_var=no | |
6209 | hardcode_runpath_var=yes | |
6210 | runpath_var=LD_RUN_PATH | |
6211 | ;; | |
6212 | ||
6213 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
6214 | no_undefined_flag='${wl}-z ${wl}text' | |
6215 | if test "$GCC" = yes; then | |
6216 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6217 | else | |
6218 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6219 | fi | |
6220 | runpath_var='LD_RUN_PATH' | |
6221 | hardcode_shlibpath_var=no | |
6222 | ;; | |
6223 | ||
6224 | sysv5*) | |
6225 | no_undefined_flag=' -z text' | |
6226 | # $CC -shared without GNU ld will not create a library from C++ | |
6227 | # object files and a static libstdc++, better avoid it by now | |
6228 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6229 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
6230 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
6231 | hardcode_libdir_flag_spec= | |
6232 | hardcode_shlibpath_var=no | |
6233 | runpath_var='LD_RUN_PATH' | |
6234 | ;; | |
6235 | ||
6236 | uts4*) | |
6237 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6238 | hardcode_libdir_flag_spec='-L$libdir' | |
6239 | hardcode_shlibpath_var=no | |
6240 | ;; | |
6241 | ||
6242 | *) | |
6243 | ld_shlibs=no | |
6244 | ;; | |
6245 | esac | |
6246 | fi | |
6247 | ||
e61fbf76 | 6248 | echo "$as_me:6248: result: $ld_shlibs" >&5 |
50850385 TJ |
6249 | echo "${ECHO_T}$ld_shlibs" >&6 |
6250 | test "$ld_shlibs" = no && can_build_shared=no | |
6251 | ||
6252 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
6253 | if test "$GCC" = yes; then | |
6254 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
6255 | fi | |
6256 | ||
6257 | # | |
6258 | # Do we need to explicitly link libc? | |
6259 | # | |
6260 | archive_cmds_need_lc=yes | |
6261 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
6262 | case $archive_cmds in | |
6263 | *'~'*) | |
6264 | # FIXME: we may have to deal with multi-command sequences. | |
6265 | ;; | |
6266 | '$CC '*) | |
6267 | # Test whether the compiler implicitly links with -lc since on some | |
6268 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
6269 | # to ld, don't add -lc before -lgcc. | |
e61fbf76 | 6270 | echo "$as_me:6270: checking whether -lc should be explicitly linked in" >&5 |
50850385 TJ |
6271 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
6272 | $rm conftest* | |
6273 | echo 'static int dummy;' > conftest.$ac_ext | |
6274 | ||
e61fbf76 | 6275 | if { (eval echo "$as_me:6275: \"$ac_compile\"") >&5 |
50850385 TJ |
6276 | (eval $ac_compile) 2>&5 |
6277 | ac_status=$? | |
e61fbf76 | 6278 | echo "$as_me:6278: \$? = $ac_status" >&5 |
50850385 TJ |
6279 | (exit $ac_status); } 2>conftest.err; then |
6280 | soname=conftest | |
6281 | lib=conftest | |
6282 | libobjs=conftest.$ac_objext | |
6283 | deplibs= | |
6284 | wl=$lt_prog_compiler_wl | |
6285 | compiler_flags=-v | |
6286 | linker_flags=-v | |
6287 | verstring= | |
6288 | output_objdir=. | |
6289 | libname=conftest | |
6290 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
6291 | allow_undefined_flag= | |
e61fbf76 | 6292 | if { (eval echo "$as_me:6292: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
50850385 TJ |
6293 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
6294 | ac_status=$? | |
e61fbf76 | 6295 | echo "$as_me:6295: \$? = $ac_status" >&5 |
50850385 TJ |
6296 | (exit $ac_status); } |
6297 | then | |
6298 | archive_cmds_need_lc=no | |
6299 | else | |
6300 | archive_cmds_need_lc=yes | |
6301 | fi | |
6302 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
6303 | else | |
6304 | cat conftest.err 1>&5 | |
6305 | fi | |
6306 | $rm conftest* | |
e61fbf76 | 6307 | echo "$as_me:6307: result: $archive_cmds_need_lc" >&5 |
50850385 TJ |
6308 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
6309 | ;; | |
6310 | esac | |
6311 | fi | |
6312 | ||
e61fbf76 | 6313 | echo "$as_me:6313: checking how to hardcode library paths into programs" >&5 |
50850385 TJ |
6314 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
6315 | hardcode_action= | |
6316 | if test -n "$hardcode_libdir_flag_spec" || \ | |
6317 | test -n "$runpath_var "; then | |
6318 | ||
6319 | # We can hardcode non-existant directories. | |
6320 | if test "$hardcode_direct" != no && | |
6321 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
6322 | # have to relink, otherwise we might link with an installed library | |
6323 | # when we should be linking with a yet-to-be-installed one | |
6324 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | |
6325 | test "$hardcode_minus_L" != no; then | |
6326 | # Linking always hardcodes the temporary library directory. | |
6327 | hardcode_action=relink | |
6328 | else | |
6329 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
6330 | hardcode_action=immediate | |
6331 | fi | |
6332 | else | |
6333 | # We cannot hardcode anything, or else we can only hardcode existing | |
6334 | # directories. | |
6335 | hardcode_action=unsupported | |
6336 | fi | |
e61fbf76 | 6337 | echo "$as_me:6337: result: $hardcode_action" >&5 |
50850385 TJ |
6338 | echo "${ECHO_T}$hardcode_action" >&6 |
6339 | ||
6340 | if test "$hardcode_action" = relink; then | |
6341 | # Fast installation is not supported | |
6342 | enable_fast_install=no | |
6343 | elif test "$shlibpath_overrides_runpath" = yes || | |
6344 | test "$enable_shared" = no; then | |
6345 | # Fast installation is not necessary | |
6346 | enable_fast_install=needless | |
6347 | fi | |
6348 | ||
6349 | striplib= | |
6350 | old_striplib= | |
e61fbf76 | 6351 | echo "$as_me:6351: checking whether stripping libraries is possible" >&5 |
50850385 TJ |
6352 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
6353 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
6354 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
6355 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
e61fbf76 | 6356 | echo "$as_me:6356: result: yes" >&5 |
50850385 TJ |
6357 | echo "${ECHO_T}yes" >&6 |
6358 | else | |
e61fbf76 | 6359 | echo "$as_me:6359: result: no" >&5 |
50850385 TJ |
6360 | echo "${ECHO_T}no" >&6 |
6361 | fi | |
6362 | ||
e61fbf76 | 6363 | echo "$as_me:6363: checking dynamic linker characteristics" >&5 |
50850385 TJ |
6364 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
6365 | library_names_spec= | |
6366 | libname_spec='lib$name' | |
6367 | soname_spec= | |
6368 | postinstall_cmds= | |
6369 | postuninstall_cmds= | |
6370 | finish_cmds= | |
6371 | finish_eval= | |
6372 | shlibpath_var= | |
6373 | shlibpath_overrides_runpath=unknown | |
6374 | version_type=none | |
6375 | dynamic_linker="$host_os ld.so" | |
6376 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
6377 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
6378 | need_lib_prefix=unknown | |
6379 | hardcode_into_libs=no | |
6380 | ||
6381 | # when you set need_version to no, make sure it does not cause -set_version | |
6382 | # flags to be left without arguments | |
6383 | need_version=unknown | |
6384 | ||
6385 | case $host_os in | |
6386 | aix3*) | |
6387 | version_type=linux | |
6388 | library_names_spec='${libname}${release}.so$versuffix $libname.a' | |
6389 | shlibpath_var=LIBPATH | |
6390 | ||
6391 | # AIX 3 has no versioning support, so we append a major version to the name. | |
6392 | soname_spec='${libname}${release}.so$major' | |
6393 | ;; | |
6394 | ||
6395 | aix4* | aix5*) | |
6396 | version_type=linux | |
6397 | if test "$host_cpu" = ia64; then | |
6398 | # AIX 5 supports IA64 | |
6399 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' | |
6400 | shlibpath_var=LD_LIBRARY_PATH | |
6401 | else | |
6402 | # With GCC up to 2.95.x, collect2 would create an import file | |
6403 | # for dependence libraries. The import file would start with | |
6404 | # the line `#! .'. This would cause the generated library to | |
6405 | # depend on `.', always an invalid library. This was fixed in | |
6406 | # development snapshots of GCC prior to 3.0. | |
6407 | case $host_os in | |
6408 | aix4 | aix4.[01] | aix4.[01].*) | |
6409 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
6410 | echo ' yes ' | |
6411 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
6412 | : | |
6413 | else | |
6414 | can_build_shared=no | |
6415 | fi | |
6416 | ;; | |
6417 | esac | |
6418 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
6419 | # soname into executable. Probably we can add versioning support to | |
6420 | # collect2, so additional links can be useful in future. | |
6421 | if test "$aix_use_runtimelinking" = yes; then | |
6422 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
6423 | # instead of lib<name>.a to let people know that these are not | |
6424 | # typical AIX shared libraries. | |
6425 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
6426 | else | |
6427 | # We preserve .a as extension for shared libraries through AIX4.2 | |
6428 | # and later when we are not doing run time linking. | |
6429 | library_names_spec='${libname}${release}.a $libname.a' | |
6430 | soname_spec='${libname}${release}.so$major' | |
6431 | fi | |
6432 | shlibpath_var=LIBPATH | |
6433 | fi | |
6434 | ;; | |
6435 | ||
6436 | amigaos*) | |
6437 | library_names_spec='$libname.ixlibrary $libname.a' | |
6438 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
6439 | 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' | |
6440 | ;; | |
6441 | ||
6442 | beos*) | |
6443 | library_names_spec='${libname}.so' | |
6444 | dynamic_linker="$host_os ld.so" | |
6445 | shlibpath_var=LIBRARY_PATH | |
6446 | ;; | |
6447 | ||
6448 | bsdi4*) | |
6449 | version_type=linux | |
6450 | need_version=no | |
6451 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
6452 | soname_spec='${libname}${release}.so$major' | |
6453 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
6454 | shlibpath_var=LD_LIBRARY_PATH | |
6455 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
6456 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
6457 | # the default ld.so.conf also contains /usr/contrib/lib and | |
6458 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
6459 | # libtool to hard-code these into programs | |
6460 | ;; | |
6461 | ||
6462 | cygwin* | mingw* | pw32*) | |
6463 | version_type=windows | |
6464 | need_version=no | |
6465 | need_lib_prefix=no | |
6466 | case $GCC,$host_os in | |
6467 | yes,cygwin*) | |
6468 | library_names_spec='$libname.dll.a' | |
6469 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" | |
6470 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
6471 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ | |
6472 | dldir=$destdir/`dirname \$dlpath`~ | |
6473 | test -d \$dldir || mkdir -p \$dldir~ | |
6474 | $install_prog .libs/$dlname \$dldir/$dlname' | |
6475 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
6476 | dlpath=$dir/\$dldll~ | |
6477 | $rm \$dlpath' | |
6478 | ;; | |
6479 | yes,mingw*) | |
6480 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
6481 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"` | |
6482 | if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then | |
6483 | # It is most probably a Windows format PATH printed by | |
6484 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
6485 | # path with ; separators, and with drive letters. We can handle the | |
6486 | # drive letters (cygwin fileutils understands them), so leave them, | |
6487 | # especially as we might pass files found there to a mingw objdump, | |
6488 | # which wouldn't understand a cygwinified path. Ahh. | |
6489 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` | |
6490 | else | |
6491 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` | |
6492 | fi | |
6493 | ;; | |
6494 | yes,pw32*) | |
6495 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' | |
6496 | ;; | |
6497 | *) | |
6498 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' | |
6499 | ;; | |
6500 | esac | |
6501 | dynamic_linker='Win32 ld.exe' | |
6502 | # FIXME: first we should search . and the directory the executable is in | |
6503 | shlibpath_var=PATH | |
6504 | ;; | |
6505 | ||
6506 | darwin* | rhapsody*) | |
6507 | dynamic_linker="$host_os dyld" | |
6508 | version_type=darwin | |
6509 | need_lib_prefix=no | |
6510 | need_version=no | |
6511 | # FIXME: Relying on posixy $() will cause problems for | |
6512 | # cross-compilation, but unfortunately the echo tests do not | |
6513 | # yet detect zsh echo's removal of \ escapes. | |
6514 | library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' | |
6515 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' | |
6516 | shlibpath_overrides_runpath=yes | |
6517 | shlibpath_var=DYLD_LIBRARY_PATH | |
6518 | ;; | |
6519 | ||
6520 | dgux*) | |
6521 | version_type=linux | |
6522 | need_lib_prefix=no | |
6523 | need_version=no | |
6524 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
6525 | soname_spec='${libname}${release}.so$major' | |
6526 | shlibpath_var=LD_LIBRARY_PATH | |
6527 | ;; | |
6528 | ||
6529 | freebsd1*) | |
6530 | dynamic_linker=no | |
6531 | ;; | |
6532 | ||
6533 | freebsd*) | |
6534 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
6535 | version_type=freebsd-$objformat | |
6536 | case $version_type in | |
6537 | freebsd-elf*) | |
6538 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
6539 | need_version=no | |
6540 | need_lib_prefix=no | |
6541 | ;; | |
6542 | freebsd-*) | |
6543 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' | |
6544 | need_version=yes | |
6545 | ;; | |
6546 | esac | |
6547 | shlibpath_var=LD_LIBRARY_PATH | |
6548 | case $host_os in | |
6549 | freebsd2*) | |
6550 | shlibpath_overrides_runpath=yes | |
6551 | ;; | |
6552 | freebsd3.01* | freebsdelf3.01*) | |
6553 | shlibpath_overrides_runpath=yes | |
6554 | hardcode_into_libs=yes | |
6555 | ;; | |
6556 | *) # from 3.2 on | |
6557 | shlibpath_overrides_runpath=no | |
6558 | hardcode_into_libs=yes | |
6559 | ;; | |
6560 | esac | |
6561 | ;; | |
6562 | ||
6563 | gnu*) | |
6564 | version_type=linux | |
6565 | need_lib_prefix=no | |
6566 | need_version=no | |
6567 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' | |
6568 | soname_spec='${libname}${release}.so$major' | |
6569 | shlibpath_var=LD_LIBRARY_PATH | |
6570 | hardcode_into_libs=yes | |
6571 | ;; | |
6572 | ||
6573 | hpux9* | hpux10* | hpux11*) | |
6574 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
6575 | # link against other versions. | |
6576 | version_type=sunos | |
6577 | need_lib_prefix=no | |
6578 | need_version=no | |
6579 | if test "$host_cpu" = ia64; then | |
6580 | hardcode_into_libs=yes | |
6581 | dynamic_linker="$host_os dld.so" | |
6582 | shlibpath_var=LD_LIBRARY_PATH | |
6583 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
6584 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
6585 | soname_spec='${libname}${release}.so$major' | |
6586 | if test "X$HPUX_IA64_MODE" = X32; then | |
6587 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
6588 | else | |
6589 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
6590 | fi | |
6591 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
6592 | else | |
6593 | dynamic_linker="$host_os dld.sl" | |
6594 | shlibpath_var=SHLIB_PATH | |
6595 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
6596 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' | |
6597 | soname_spec='${libname}${release}.sl$major' | |
6598 | fi | |
6599 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
6600 | postinstall_cmds='chmod 555 $lib' | |
6601 | ;; | |
6602 | ||
6603 | irix5* | irix6* | nonstopux*) | |
6604 | case $host_os in | |
6605 | nonstopux*) version_type=nonstopux ;; | |
6606 | *) version_type=irix ;; | |
6607 | esac | |
6608 | need_lib_prefix=no | |
6609 | need_version=no | |
6610 | soname_spec='${libname}${release}.so$major' | |
6611 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' | |
6612 | case $host_os in | |
6613 | irix5* | nonstopux*) | |
6614 | libsuff= shlibsuff= | |
6615 | ;; | |
6616 | *) | |
6617 | case $LD in # libtool.m4 will add one of these switches to LD | |
6618 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; | |
6619 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; | |
6620 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
6621 | *) libsuff= shlibsuff= libmagic=never-match;; | |
6622 | esac | |
6623 | ;; | |
6624 | esac | |
6625 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
6626 | shlibpath_overrides_runpath=no | |
6627 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
6628 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
6629 | ;; | |
6630 | ||
6631 | # No shared lib support for Linux oldld, aout, or coff. | |
6632 | linux*oldld* | linux*aout* | linux*coff*) | |
6633 | dynamic_linker=no | |
6634 | ;; | |
6635 | ||
6636 | # This must be Linux ELF. | |
6637 | linux*) | |
6638 | version_type=linux | |
6639 | need_lib_prefix=no | |
6640 | need_version=no | |
6641 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
6642 | soname_spec='${libname}${release}.so$major' | |
6643 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
6644 | libsuff= | |
6645 | if test "x$LINUX_64_MODE" = x64; then | |
6646 | # Some platforms are per default 64-bit, so there's no /lib64 | |
6647 | if test -d /lib64; then | |
6648 | libsuff=64 | |
6649 | fi | |
6650 | fi | |
6651 | shlibpath_var=LD_LIBRARY_PATH | |
6652 | shlibpath_overrides_runpath=no | |
6653 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" | |
6654 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
6655 | # This implies no fast_install, which is unacceptable. | |
6656 | # Some rework will be needed to allow for fast_install | |
6657 | # before this can be enabled. | |
6658 | hardcode_into_libs=yes | |
6659 | ||
6660 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
6661 | # powerpc, because MkLinux only supported shared libraries with the | |
6662 | # GNU dynamic linker. Since this was broken with cross compilers, | |
6663 | # most powerpc-linux boxes support dynamic linking these days and | |
6664 | # people can always --disable-shared, the test was removed, and we | |
6665 | # assume the GNU/Linux dynamic linker is in use. | |
6666 | dynamic_linker='GNU/Linux ld.so' | |
6667 | ;; | |
6668 | ||
6669 | netbsd*) | |
6670 | version_type=sunos | |
6671 | need_lib_prefix=no | |
6672 | need_version=no | |
6673 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
6674 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
6675 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
6676 | dynamic_linker='NetBSD (a.out) ld.so' | |
6677 | else | |
6678 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' | |
6679 | soname_spec='${libname}${release}.so$major' | |
6680 | dynamic_linker='NetBSD ld.elf_so' | |
6681 | fi | |
6682 | shlibpath_var=LD_LIBRARY_PATH | |
6683 | shlibpath_overrides_runpath=yes | |
6684 | hardcode_into_libs=yes | |
6685 | ;; | |
6686 | ||
6687 | newsos6) | |
6688 | version_type=linux | |
6689 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
6690 | shlibpath_var=LD_LIBRARY_PATH | |
6691 | shlibpath_overrides_runpath=yes | |
6692 | ;; | |
6693 | ||
6694 | nto-qnx) | |
6695 | version_type=linux | |
6696 | need_lib_prefix=no | |
6697 | need_version=no | |
6698 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
6699 | soname_spec='${libname}${release}.so$major' | |
6700 | shlibpath_var=LD_LIBRARY_PATH | |
6701 | shlibpath_overrides_runpath=yes | |
6702 | ;; | |
6703 | ||
6704 | openbsd*) | |
6705 | version_type=sunos | |
6706 | need_lib_prefix=no | |
6707 | need_version=no | |
6708 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
6709 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
6710 | shlibpath_var=LD_LIBRARY_PATH | |
6711 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6712 | case $host_os in | |
6713 | openbsd2.[89] | openbsd2.[89].*) | |
6714 | shlibpath_overrides_runpath=no | |
6715 | ;; | |
6716 | *) | |
6717 | shlibpath_overrides_runpath=yes | |
6718 | ;; | |
6719 | esac | |
6720 | else | |
6721 | shlibpath_overrides_runpath=yes | |
6722 | fi | |
6723 | ;; | |
6724 | ||
6725 | os2*) | |
6726 | libname_spec='$name' | |
6727 | need_lib_prefix=no | |
6728 | library_names_spec='$libname.dll $libname.a' | |
6729 | dynamic_linker='OS/2 ld.exe' | |
6730 | shlibpath_var=LIBPATH | |
6731 | ;; | |
6732 | ||
6733 | osf3* | osf4* | osf5*) | |
6734 | version_type=osf | |
6735 | need_lib_prefix=no | |
6736 | need_version=no | |
6737 | soname_spec='${libname}${release}.so' | |
6738 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
6739 | shlibpath_var=LD_LIBRARY_PATH | |
6740 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
6741 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
6742 | ;; | |
6743 | ||
6744 | sco3.2v5*) | |
6745 | version_type=osf | |
6746 | soname_spec='${libname}${release}.so$major' | |
6747 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
6748 | shlibpath_var=LD_LIBRARY_PATH | |
6749 | ;; | |
6750 | ||
6751 | solaris*) | |
6752 | version_type=linux | |
6753 | need_lib_prefix=no | |
6754 | need_version=no | |
6755 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
6756 | soname_spec='${libname}${release}.so$major' | |
6757 | shlibpath_var=LD_LIBRARY_PATH | |
6758 | shlibpath_overrides_runpath=yes | |
6759 | hardcode_into_libs=yes | |
6760 | # ldd complains unless libraries are executable | |
6761 | postinstall_cmds='chmod +x $lib' | |
6762 | ;; | |
6763 | ||
6764 | sunos4*) | |
6765 | version_type=sunos | |
6766 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
6767 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
6768 | shlibpath_var=LD_LIBRARY_PATH | |
6769 | shlibpath_overrides_runpath=yes | |
6770 | if test "$with_gnu_ld" = yes; then | |
6771 | need_lib_prefix=no | |
6772 | fi | |
6773 | need_version=yes | |
6774 | ;; | |
6775 | ||
6776 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
6777 | version_type=linux | |
6778 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
6779 | soname_spec='${libname}${release}.so$major' | |
6780 | shlibpath_var=LD_LIBRARY_PATH | |
6781 | case $host_vendor in | |
6782 | sni) | |
6783 | shlibpath_overrides_runpath=no | |
6784 | ;; | |
6785 | motorola) | |
6786 | need_lib_prefix=no | |
6787 | need_version=no | |
6788 | shlibpath_overrides_runpath=no | |
6789 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
6790 | ;; | |
6791 | esac | |
6792 | ;; | |
6793 | ||
6794 | sysv4*MP*) | |
6795 | if test -d /usr/nec ;then | |
6796 | version_type=linux | |
6797 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' | |
6798 | soname_spec='$libname.so.$major' | |
6799 | shlibpath_var=LD_LIBRARY_PATH | |
6800 | fi | |
6801 | ;; | |
6802 | ||
6803 | uts4*) | |
6804 | version_type=linux | |
6805 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
6806 | soname_spec='${libname}${release}.so$major' | |
6807 | shlibpath_var=LD_LIBRARY_PATH | |
6808 | ;; | |
6809 | ||
6810 | *) | |
6811 | dynamic_linker=no | |
6812 | ;; | |
6813 | esac | |
e61fbf76 | 6814 | echo "$as_me:6814: result: $dynamic_linker" >&5 |
50850385 TJ |
6815 | echo "${ECHO_T}$dynamic_linker" >&6 |
6816 | test "$dynamic_linker" = no && can_build_shared=no | |
6817 | ||
6818 | if test "x$enable_dlopen" != xyes; then | |
6819 | enable_dlopen=unknown | |
6820 | enable_dlopen_self=unknown | |
6821 | enable_dlopen_self_static=unknown | |
6822 | else | |
6823 | lt_cv_dlopen=no | |
6824 | lt_cv_dlopen_libs= | |
6825 | ||
6826 | case $host_os in | |
6827 | beos*) | |
6828 | lt_cv_dlopen="load_add_on" | |
6829 | lt_cv_dlopen_libs= | |
6830 | lt_cv_dlopen_self=yes | |
6831 | ;; | |
6832 | ||
6833 | cygwin* | mingw* | pw32*) | |
6834 | lt_cv_dlopen="LoadLibrary" | |
6835 | lt_cv_dlopen_libs= | |
6836 | ;; | |
6837 | ||
6838 | *) | |
e61fbf76 | 6839 | echo "$as_me:6839: checking for shl_load" >&5 |
50850385 TJ |
6840 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
6841 | if test "${ac_cv_func_shl_load+set}" = set; then | |
6842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6843 | else | |
6844 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 6845 | #line 6845 "configure" |
50850385 TJ |
6846 | #include "confdefs.h" |
6847 | /* System header to define __stub macros and hopefully few prototypes, | |
6848 | which can conflict with char shl_load (); below. */ | |
6849 | #include <assert.h> | |
6850 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6851 | #ifdef __cplusplus | |
6852 | extern "C" | |
6853 | #endif | |
6854 | /* We use char because int might match the return type of a gcc2 | |
6855 | builtin and then its argument prototype would still apply. */ | |
6856 | char shl_load (); | |
6857 | char (*f) (); | |
6858 | ||
50850385 TJ |
6859 | int |
6860 | main () | |
6861 | { | |
6862 | /* The GNU C library defines this for functions which it implements | |
6863 | to always fail with ENOSYS. Some functions are actually named | |
6864 | something starting with __ and the normal name is an alias. */ | |
6865 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
6866 | choke me | |
6867 | #else | |
6868 | f = shl_load; | |
6869 | #endif | |
6870 | ||
6871 | ; | |
6872 | return 0; | |
6873 | } | |
6874 | _ACEOF | |
6875 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 6876 | if { (eval echo "$as_me:6876: \"$ac_link\"") >&5 |
50850385 TJ |
6877 | (eval $ac_link) 2>&5 |
6878 | ac_status=$? | |
e61fbf76 | 6879 | echo "$as_me:6879: \$? = $ac_status" >&5 |
50850385 TJ |
6880 | (exit $ac_status); } && |
6881 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 6882 | { (eval echo "$as_me:6882: \"$ac_try\"") >&5 |
50850385 TJ |
6883 | (eval $ac_try) 2>&5 |
6884 | ac_status=$? | |
e61fbf76 | 6885 | echo "$as_me:6885: \$? = $ac_status" >&5 |
50850385 TJ |
6886 | (exit $ac_status); }; }; then |
6887 | ac_cv_func_shl_load=yes | |
6888 | else | |
6889 | echo "$as_me: failed program was:" >&5 | |
6890 | cat conftest.$ac_ext >&5 | |
6891 | ac_cv_func_shl_load=no | |
6892 | fi | |
6893 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6894 | fi | |
e61fbf76 | 6895 | echo "$as_me:6895: result: $ac_cv_func_shl_load" >&5 |
50850385 TJ |
6896 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
6897 | if test $ac_cv_func_shl_load = yes; then | |
6898 | lt_cv_dlopen="shl_load" | |
6899 | else | |
e61fbf76 | 6900 | echo "$as_me:6900: checking for shl_load in -ldld" >&5 |
50850385 TJ |
6901 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
6902 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
6903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6904 | else | |
6905 | ac_check_lib_save_LIBS=$LIBS | |
6906 | LIBS="-ldld $LIBS" | |
6907 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 6908 | #line 6908 "configure" |
50850385 TJ |
6909 | #include "confdefs.h" |
6910 | ||
6911 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6912 | #ifdef __cplusplus | |
6913 | extern "C" | |
6914 | #endif | |
6915 | /* We use char because int might match the return type of a gcc2 | |
6916 | builtin and then its argument prototype would still apply. */ | |
6917 | char shl_load (); | |
50850385 TJ |
6918 | int |
6919 | main () | |
6920 | { | |
6921 | shl_load (); | |
6922 | ; | |
6923 | return 0; | |
6924 | } | |
6925 | _ACEOF | |
6926 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 6927 | if { (eval echo "$as_me:6927: \"$ac_link\"") >&5 |
50850385 TJ |
6928 | (eval $ac_link) 2>&5 |
6929 | ac_status=$? | |
e61fbf76 | 6930 | echo "$as_me:6930: \$? = $ac_status" >&5 |
50850385 TJ |
6931 | (exit $ac_status); } && |
6932 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 6933 | { (eval echo "$as_me:6933: \"$ac_try\"") >&5 |
50850385 TJ |
6934 | (eval $ac_try) 2>&5 |
6935 | ac_status=$? | |
e61fbf76 | 6936 | echo "$as_me:6936: \$? = $ac_status" >&5 |
50850385 TJ |
6937 | (exit $ac_status); }; }; then |
6938 | ac_cv_lib_dld_shl_load=yes | |
6939 | else | |
6940 | echo "$as_me: failed program was:" >&5 | |
6941 | cat conftest.$ac_ext >&5 | |
6942 | ac_cv_lib_dld_shl_load=no | |
6943 | fi | |
6944 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6945 | LIBS=$ac_check_lib_save_LIBS | |
6946 | fi | |
e61fbf76 | 6947 | echo "$as_me:6947: result: $ac_cv_lib_dld_shl_load" >&5 |
50850385 TJ |
6948 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
6949 | if test $ac_cv_lib_dld_shl_load = yes; then | |
6950 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
6951 | else | |
e61fbf76 | 6952 | echo "$as_me:6952: checking for dlopen" >&5 |
50850385 TJ |
6953 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
6954 | if test "${ac_cv_func_dlopen+set}" = set; then | |
6955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6956 | else | |
6957 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 6958 | #line 6958 "configure" |
50850385 TJ |
6959 | #include "confdefs.h" |
6960 | /* System header to define __stub macros and hopefully few prototypes, | |
6961 | which can conflict with char dlopen (); below. */ | |
6962 | #include <assert.h> | |
6963 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6964 | #ifdef __cplusplus | |
6965 | extern "C" | |
6966 | #endif | |
6967 | /* We use char because int might match the return type of a gcc2 | |
6968 | builtin and then its argument prototype would still apply. */ | |
6969 | char dlopen (); | |
6970 | char (*f) (); | |
6971 | ||
50850385 TJ |
6972 | int |
6973 | main () | |
6974 | { | |
6975 | /* The GNU C library defines this for functions which it implements | |
6976 | to always fail with ENOSYS. Some functions are actually named | |
6977 | something starting with __ and the normal name is an alias. */ | |
6978 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
6979 | choke me | |
6980 | #else | |
6981 | f = dlopen; | |
6982 | #endif | |
6983 | ||
6984 | ; | |
6985 | return 0; | |
6986 | } | |
6987 | _ACEOF | |
6988 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 6989 | if { (eval echo "$as_me:6989: \"$ac_link\"") >&5 |
50850385 TJ |
6990 | (eval $ac_link) 2>&5 |
6991 | ac_status=$? | |
e61fbf76 | 6992 | echo "$as_me:6992: \$? = $ac_status" >&5 |
50850385 TJ |
6993 | (exit $ac_status); } && |
6994 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 6995 | { (eval echo "$as_me:6995: \"$ac_try\"") >&5 |
50850385 TJ |
6996 | (eval $ac_try) 2>&5 |
6997 | ac_status=$? | |
e61fbf76 | 6998 | echo "$as_me:6998: \$? = $ac_status" >&5 |
50850385 TJ |
6999 | (exit $ac_status); }; }; then |
7000 | ac_cv_func_dlopen=yes | |
7001 | else | |
7002 | echo "$as_me: failed program was:" >&5 | |
7003 | cat conftest.$ac_ext >&5 | |
7004 | ac_cv_func_dlopen=no | |
7005 | fi | |
7006 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7007 | fi | |
e61fbf76 | 7008 | echo "$as_me:7008: result: $ac_cv_func_dlopen" >&5 |
50850385 TJ |
7009 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
7010 | if test $ac_cv_func_dlopen = yes; then | |
7011 | lt_cv_dlopen="dlopen" | |
7012 | else | |
e61fbf76 | 7013 | echo "$as_me:7013: checking for dlopen in -ldl" >&5 |
50850385 TJ |
7014 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
7015 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
7016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7017 | else | |
7018 | ac_check_lib_save_LIBS=$LIBS | |
7019 | LIBS="-ldl $LIBS" | |
7020 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 7021 | #line 7021 "configure" |
50850385 TJ |
7022 | #include "confdefs.h" |
7023 | ||
7024 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7025 | #ifdef __cplusplus | |
7026 | extern "C" | |
7027 | #endif | |
7028 | /* We use char because int might match the return type of a gcc2 | |
7029 | builtin and then its argument prototype would still apply. */ | |
7030 | char dlopen (); | |
50850385 TJ |
7031 | int |
7032 | main () | |
7033 | { | |
7034 | dlopen (); | |
7035 | ; | |
7036 | return 0; | |
7037 | } | |
7038 | _ACEOF | |
7039 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 7040 | if { (eval echo "$as_me:7040: \"$ac_link\"") >&5 |
50850385 TJ |
7041 | (eval $ac_link) 2>&5 |
7042 | ac_status=$? | |
e61fbf76 | 7043 | echo "$as_me:7043: \$? = $ac_status" >&5 |
50850385 TJ |
7044 | (exit $ac_status); } && |
7045 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 7046 | { (eval echo "$as_me:7046: \"$ac_try\"") >&5 |
50850385 TJ |
7047 | (eval $ac_try) 2>&5 |
7048 | ac_status=$? | |
e61fbf76 | 7049 | echo "$as_me:7049: \$? = $ac_status" >&5 |
50850385 TJ |
7050 | (exit $ac_status); }; }; then |
7051 | ac_cv_lib_dl_dlopen=yes | |
7052 | else | |
7053 | echo "$as_me: failed program was:" >&5 | |
7054 | cat conftest.$ac_ext >&5 | |
7055 | ac_cv_lib_dl_dlopen=no | |
7056 | fi | |
7057 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7058 | LIBS=$ac_check_lib_save_LIBS | |
7059 | fi | |
e61fbf76 | 7060 | echo "$as_me:7060: result: $ac_cv_lib_dl_dlopen" >&5 |
50850385 TJ |
7061 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
7062 | if test $ac_cv_lib_dl_dlopen = yes; then | |
7063 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
7064 | else | |
e61fbf76 | 7065 | echo "$as_me:7065: checking for dlopen in -lsvld" >&5 |
50850385 TJ |
7066 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
7067 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
7068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7069 | else | |
7070 | ac_check_lib_save_LIBS=$LIBS | |
7071 | LIBS="-lsvld $LIBS" | |
7072 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 7073 | #line 7073 "configure" |
50850385 TJ |
7074 | #include "confdefs.h" |
7075 | ||
7076 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7077 | #ifdef __cplusplus | |
7078 | extern "C" | |
7079 | #endif | |
7080 | /* We use char because int might match the return type of a gcc2 | |
7081 | builtin and then its argument prototype would still apply. */ | |
7082 | char dlopen (); | |
50850385 TJ |
7083 | int |
7084 | main () | |
7085 | { | |
7086 | dlopen (); | |
7087 | ; | |
7088 | return 0; | |
7089 | } | |
7090 | _ACEOF | |
7091 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 7092 | if { (eval echo "$as_me:7092: \"$ac_link\"") >&5 |
50850385 TJ |
7093 | (eval $ac_link) 2>&5 |
7094 | ac_status=$? | |
e61fbf76 | 7095 | echo "$as_me:7095: \$? = $ac_status" >&5 |
50850385 TJ |
7096 | (exit $ac_status); } && |
7097 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 7098 | { (eval echo "$as_me:7098: \"$ac_try\"") >&5 |
50850385 TJ |
7099 | (eval $ac_try) 2>&5 |
7100 | ac_status=$? | |
e61fbf76 | 7101 | echo "$as_me:7101: \$? = $ac_status" >&5 |
50850385 TJ |
7102 | (exit $ac_status); }; }; then |
7103 | ac_cv_lib_svld_dlopen=yes | |
7104 | else | |
7105 | echo "$as_me: failed program was:" >&5 | |
7106 | cat conftest.$ac_ext >&5 | |
7107 | ac_cv_lib_svld_dlopen=no | |
7108 | fi | |
7109 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7110 | LIBS=$ac_check_lib_save_LIBS | |
7111 | fi | |
e61fbf76 | 7112 | echo "$as_me:7112: result: $ac_cv_lib_svld_dlopen" >&5 |
50850385 TJ |
7113 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
7114 | if test $ac_cv_lib_svld_dlopen = yes; then | |
7115 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
7116 | else | |
e61fbf76 | 7117 | echo "$as_me:7117: checking for dld_link in -ldld" >&5 |
50850385 TJ |
7118 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
7119 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
7120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7121 | else | |
7122 | ac_check_lib_save_LIBS=$LIBS | |
7123 | LIBS="-ldld $LIBS" | |
7124 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 7125 | #line 7125 "configure" |
50850385 TJ |
7126 | #include "confdefs.h" |
7127 | ||
7128 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7129 | #ifdef __cplusplus | |
7130 | extern "C" | |
7131 | #endif | |
7132 | /* We use char because int might match the return type of a gcc2 | |
7133 | builtin and then its argument prototype would still apply. */ | |
7134 | char dld_link (); | |
50850385 TJ |
7135 | int |
7136 | main () | |
7137 | { | |
7138 | dld_link (); | |
7139 | ; | |
7140 | return 0; | |
7141 | } | |
7142 | _ACEOF | |
7143 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 7144 | if { (eval echo "$as_me:7144: \"$ac_link\"") >&5 |
50850385 TJ |
7145 | (eval $ac_link) 2>&5 |
7146 | ac_status=$? | |
e61fbf76 | 7147 | echo "$as_me:7147: \$? = $ac_status" >&5 |
50850385 TJ |
7148 | (exit $ac_status); } && |
7149 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 7150 | { (eval echo "$as_me:7150: \"$ac_try\"") >&5 |
50850385 TJ |
7151 | (eval $ac_try) 2>&5 |
7152 | ac_status=$? | |
e61fbf76 | 7153 | echo "$as_me:7153: \$? = $ac_status" >&5 |
50850385 TJ |
7154 | (exit $ac_status); }; }; then |
7155 | ac_cv_lib_dld_dld_link=yes | |
7156 | else | |
7157 | echo "$as_me: failed program was:" >&5 | |
7158 | cat conftest.$ac_ext >&5 | |
7159 | ac_cv_lib_dld_dld_link=no | |
7160 | fi | |
7161 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7162 | LIBS=$ac_check_lib_save_LIBS | |
7163 | fi | |
e61fbf76 | 7164 | echo "$as_me:7164: result: $ac_cv_lib_dld_dld_link" >&5 |
50850385 TJ |
7165 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
7166 | if test $ac_cv_lib_dld_dld_link = yes; then | |
7167 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
7168 | fi | |
7169 | ||
50850385 TJ |
7170 | fi |
7171 | ||
50850385 TJ |
7172 | fi |
7173 | ||
50850385 TJ |
7174 | fi |
7175 | ||
50850385 TJ |
7176 | fi |
7177 | ||
50850385 TJ |
7178 | fi |
7179 | ||
7180 | ;; | |
7181 | esac | |
7182 | ||
7183 | if test "x$lt_cv_dlopen" != xno; then | |
7184 | enable_dlopen=yes | |
7185 | else | |
7186 | enable_dlopen=no | |
7187 | fi | |
7188 | ||
7189 | case $lt_cv_dlopen in | |
7190 | dlopen) | |
7191 | save_CPPFLAGS="$CPPFLAGS" | |
7192 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
7193 | ||
7194 | save_LDFLAGS="$LDFLAGS" | |
7195 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
7196 | ||
7197 | save_LIBS="$LIBS" | |
7198 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
7199 | ||
e61fbf76 | 7200 | echo "$as_me:7200: checking whether a program can dlopen itself" >&5 |
50850385 TJ |
7201 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
7202 | if test "${lt_cv_dlopen_self+set}" = set; then | |
7203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7204 | else | |
7205 | if test "$cross_compiling" = yes; then : | |
7206 | lt_cv_dlopen_self=cross | |
7207 | else | |
7208 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
7209 | lt_status=$lt_dlunknown | |
7210 | cat > conftest.$ac_ext <<EOF | |
e61fbf76 | 7211 | #line 7211 "configure" |
50850385 TJ |
7212 | #include "confdefs.h" |
7213 | ||
7214 | #if HAVE_DLFCN_H | |
7215 | #include <dlfcn.h> | |
7216 | #endif | |
7217 | ||
7218 | #include <stdio.h> | |
7219 | ||
7220 | #ifdef RTLD_GLOBAL | |
7221 | # define LT_DLGLOBAL RTLD_GLOBAL | |
7222 | #else | |
7223 | # ifdef DL_GLOBAL | |
7224 | # define LT_DLGLOBAL DL_GLOBAL | |
7225 | # else | |
7226 | # define LT_DLGLOBAL 0 | |
7227 | # endif | |
7228 | #endif | |
7229 | ||
7230 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
7231 | find out it does not work in some platform. */ | |
7232 | #ifndef LT_DLLAZY_OR_NOW | |
7233 | # ifdef RTLD_LAZY | |
7234 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
7235 | # else | |
7236 | # ifdef DL_LAZY | |
7237 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
7238 | # else | |
7239 | # ifdef RTLD_NOW | |
7240 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
7241 | # else | |
7242 | # ifdef DL_NOW | |
7243 | # define LT_DLLAZY_OR_NOW DL_NOW | |
7244 | # else | |
7245 | # define LT_DLLAZY_OR_NOW 0 | |
7246 | # endif | |
7247 | # endif | |
7248 | # endif | |
7249 | # endif | |
7250 | #endif | |
7251 | ||
7252 | #ifdef __cplusplus | |
7253 | extern "C" void exit (int); | |
7254 | #endif | |
7255 | ||
7256 | void fnord() { int i=42;} | |
7257 | int main () | |
7258 | { | |
7259 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
7260 | int status = $lt_dlunknown; | |
7261 | ||
7262 | if (self) | |
7263 | { | |
7264 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
7265 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
7266 | /* dlclose (self); */ | |
7267 | } | |
7268 | ||
7269 | exit (status); | |
7270 | } | |
7271 | EOF | |
e61fbf76 | 7272 | if { (eval echo "$as_me:7272: \"$ac_link\"") >&5 |
50850385 TJ |
7273 | (eval $ac_link) 2>&5 |
7274 | ac_status=$? | |
e61fbf76 | 7275 | echo "$as_me:7275: \$? = $ac_status" >&5 |
50850385 TJ |
7276 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
7277 | (./conftest; exit; ) 2>/dev/null | |
7278 | lt_status=$? | |
7279 | case x$lt_status in | |
7280 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
7281 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
7282 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
7283 | esac | |
7284 | else : | |
7285 | # compilation failed | |
7286 | lt_cv_dlopen_self=no | |
7287 | fi | |
7288 | fi | |
7289 | rm -fr conftest* | |
7290 | ||
50850385 | 7291 | fi |
e61fbf76 | 7292 | echo "$as_me:7292: result: $lt_cv_dlopen_self" >&5 |
50850385 TJ |
7293 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
7294 | ||
7295 | if test "x$lt_cv_dlopen_self" = xyes; then | |
7296 | LDFLAGS="$LDFLAGS $link_static_flag" | |
e61fbf76 | 7297 | echo "$as_me:7297: checking whether a statically linked program can dlopen itself" >&5 |
50850385 TJ |
7298 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
7299 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
7300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7301 | else | |
7302 | if test "$cross_compiling" = yes; then : | |
7303 | lt_cv_dlopen_self_static=cross | |
7304 | else | |
7305 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
7306 | lt_status=$lt_dlunknown | |
7307 | cat > conftest.$ac_ext <<EOF | |
e61fbf76 | 7308 | #line 7308 "configure" |
50850385 TJ |
7309 | #include "confdefs.h" |
7310 | ||
7311 | #if HAVE_DLFCN_H | |
7312 | #include <dlfcn.h> | |
7313 | #endif | |
7314 | ||
7315 | #include <stdio.h> | |
7316 | ||
7317 | #ifdef RTLD_GLOBAL | |
7318 | # define LT_DLGLOBAL RTLD_GLOBAL | |
7319 | #else | |
7320 | # ifdef DL_GLOBAL | |
7321 | # define LT_DLGLOBAL DL_GLOBAL | |
7322 | # else | |
7323 | # define LT_DLGLOBAL 0 | |
7324 | # endif | |
7325 | #endif | |
7326 | ||
7327 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
7328 | find out it does not work in some platform. */ | |
7329 | #ifndef LT_DLLAZY_OR_NOW | |
7330 | # ifdef RTLD_LAZY | |
7331 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
7332 | # else | |
7333 | # ifdef DL_LAZY | |
7334 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
7335 | # else | |
7336 | # ifdef RTLD_NOW | |
7337 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
7338 | # else | |
7339 | # ifdef DL_NOW | |
7340 | # define LT_DLLAZY_OR_NOW DL_NOW | |
7341 | # else | |
7342 | # define LT_DLLAZY_OR_NOW 0 | |
7343 | # endif | |
7344 | # endif | |
7345 | # endif | |
7346 | # endif | |
7347 | #endif | |
7348 | ||
7349 | #ifdef __cplusplus | |
7350 | extern "C" void exit (int); | |
7351 | #endif | |
7352 | ||
7353 | void fnord() { int i=42;} | |
7354 | int main () | |
7355 | { | |
7356 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
7357 | int status = $lt_dlunknown; | |
7358 | ||
7359 | if (self) | |
7360 | { | |
7361 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
7362 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
7363 | /* dlclose (self); */ | |
7364 | } | |
7365 | ||
7366 | exit (status); | |
7367 | } | |
7368 | EOF | |
e61fbf76 | 7369 | if { (eval echo "$as_me:7369: \"$ac_link\"") >&5 |
50850385 TJ |
7370 | (eval $ac_link) 2>&5 |
7371 | ac_status=$? | |
e61fbf76 | 7372 | echo "$as_me:7372: \$? = $ac_status" >&5 |
50850385 TJ |
7373 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
7374 | (./conftest; exit; ) 2>/dev/null | |
7375 | lt_status=$? | |
7376 | case x$lt_status in | |
7377 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
7378 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
7379 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
7380 | esac | |
7381 | else : | |
7382 | # compilation failed | |
7383 | lt_cv_dlopen_self_static=no | |
7384 | fi | |
7385 | fi | |
7386 | rm -fr conftest* | |
7387 | ||
50850385 | 7388 | fi |
e61fbf76 | 7389 | echo "$as_me:7389: result: $lt_cv_dlopen_self_static" >&5 |
50850385 TJ |
7390 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
7391 | fi | |
7392 | ||
7393 | CPPFLAGS="$save_CPPFLAGS" | |
7394 | LDFLAGS="$save_LDFLAGS" | |
7395 | LIBS="$save_LIBS" | |
7396 | ;; | |
7397 | esac | |
7398 | ||
7399 | case $lt_cv_dlopen_self in | |
7400 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
7401 | *) enable_dlopen_self=unknown ;; | |
7402 | esac | |
7403 | ||
7404 | case $lt_cv_dlopen_self_static in | |
7405 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
7406 | *) enable_dlopen_self_static=unknown ;; | |
7407 | esac | |
7408 | fi | |
7409 | ||
50850385 | 7410 | # Report which librarie types wil actually be built |
e61fbf76 | 7411 | echo "$as_me:7411: checking if libtool supports shared libraries" >&5 |
50850385 | 7412 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
e61fbf76 | 7413 | echo "$as_me:7413: result: $can_build_shared" >&5 |
50850385 TJ |
7414 | echo "${ECHO_T}$can_build_shared" >&6 |
7415 | ||
e61fbf76 | 7416 | echo "$as_me:7416: checking whether to build shared libraries" >&5 |
50850385 TJ |
7417 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
7418 | test "$can_build_shared" = "no" && enable_shared=no | |
7419 | ||
7420 | # On AIX, shared libraries and static libraries use the same namespace, and | |
7421 | # are all built from PIC. | |
7422 | case "$host_os" in | |
7423 | aix3*) | |
7424 | test "$enable_shared" = yes && enable_static=no | |
7425 | if test -n "$RANLIB"; then | |
7426 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
7427 | postinstall_cmds='$RANLIB $lib' | |
7428 | fi | |
7429 | ;; | |
7430 | ||
7431 | aix4*) | |
7432 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
7433 | test "$enable_shared" = yes && enable_static=no | |
7434 | fi | |
7435 | ;; | |
7436 | esac | |
e61fbf76 | 7437 | echo "$as_me:7437: result: $enable_shared" >&5 |
50850385 TJ |
7438 | echo "${ECHO_T}$enable_shared" >&6 |
7439 | ||
e61fbf76 | 7440 | echo "$as_me:7440: checking whether to build static libraries" >&5 |
50850385 TJ |
7441 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
7442 | # Make sure either enable_shared or enable_static is yes. | |
7443 | test "$enable_shared" = yes || enable_static=yes | |
e61fbf76 | 7444 | echo "$as_me:7444: result: $enable_static" >&5 |
50850385 TJ |
7445 | echo "${ECHO_T}$enable_static" >&6 |
7446 | ||
7447 | # The else clause should only fire when bootstrapping the | |
7448 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
7449 | # with your package, and you will get complaints that there are | |
7450 | # no rules to generate ltmain.sh. | |
7451 | if test -f "$ltmain"; then | |
7452 | # Now quote all the things that may contain metacharacters while being | |
7453 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
7454 | # variables and quote the copies for generation of the libtool script. | |
7455 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \ | |
7456 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
7457 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
7458 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
7459 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
7460 | lt_cv_sys_global_symbol_to_c_name_address \ | |
7461 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
7462 | old_postinstall_cmds old_postuninstall_cmds \ | |
7463 | compiler \ | |
7464 | CC \ | |
7465 | LD \ | |
7466 | lt_prog_compiler_wl \ | |
7467 | lt_prog_compiler_pic \ | |
7468 | lt_prog_compiler_static \ | |
7469 | lt_prog_compiler_no_builtin_flag \ | |
7470 | export_dynamic_flag_spec \ | |
7471 | thread_safe_flag_spec \ | |
7472 | whole_archive_flag_spec \ | |
7473 | old_archive_cmds \ | |
7474 | old_archive_from_new_cmds \ | |
7475 | predep_objects \ | |
7476 | postdep_objects \ | |
7477 | predeps \ | |
7478 | postdeps \ | |
7479 | compiler_lib_search_path \ | |
7480 | archive_cmds \ | |
7481 | archive_expsym_cmds \ | |
7482 | postinstall_cmds \ | |
7483 | postuninstall_cmds \ | |
7484 | old_archive_from_expsyms_cmds \ | |
7485 | allow_undefined_flag \ | |
7486 | no_undefined_flag \ | |
7487 | export_symbols_cmds \ | |
7488 | hardcode_libdir_flag_spec \ | |
7489 | hardcode_libdir_separator \ | |
7490 | lt_cv_prog_compiler_c_o \ | |
7491 | exclude_expsyms \ | |
7492 | include_expsyms; do | |
7493 | ||
7494 | case $var in | |
7495 | old_archive_cmds | \ | |
7496 | old_archive_from_new_cmds | \ | |
7497 | archive_cmds | \ | |
7498 | archive_expsym_cmds | \ | |
7499 | old_archive_from_expsyms_cmds | \ | |
7500 | export_symbols_cmds | \ | |
7501 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
7502 | postinstall_cmds | postuninstall_cmds | \ | |
7503 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
7504 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
7505 | # Double-quote double-evaled strings. | |
7506 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
7507 | ;; | |
7508 | *) | |
7509 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
7510 | ;; | |
7511 | esac | |
7512 | done | |
7513 | ||
7514 | case $lt_echo in | |
7515 | *'\$0 --fallback-echo"') | |
7516 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
7517 | ;; | |
7518 | esac | |
7519 | ||
7520 | cfgfile="${ofile}T" | |
7521 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | |
7522 | $rm -f "$cfgfile" | |
e61fbf76 | 7523 | { echo "$as_me:7523: creating $ofile" >&5 |
50850385 TJ |
7524 | echo "$as_me: creating $ofile" >&6;} |
7525 | ||
7526 | cat <<__EOF__ >> "$cfgfile" | |
7527 | #! $SHELL | |
7528 | ||
7529 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
7530 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | |
7531 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
7532 | # | |
7533 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | |
7534 | # Free Software Foundation, Inc. | |
7535 | # | |
7536 | # This file is part of GNU Libtool: | |
7537 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |
7538 | # | |
7539 | # This program is free software; you can redistribute it and/or modify | |
7540 | # it under the terms of the GNU General Public License as published by | |
7541 | # the Free Software Foundation; either version 2 of the License, or | |
7542 | # (at your option) any later version. | |
7543 | # | |
7544 | # This program is distributed in the hope that it will be useful, but | |
7545 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
7546 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
7547 | # General Public License for more details. | |
7548 | # | |
7549 | # You should have received a copy of the GNU General Public License | |
7550 | # along with this program; if not, write to the Free Software | |
7551 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
7552 | # | |
7553 | # As a special exception to the GNU General Public License, if you | |
7554 | # distribute this file as part of a program that contains a | |
7555 | # configuration script generated by Autoconf, you may include it under | |
7556 | # the same distribution terms that you use for the rest of that program. | |
7557 | ||
7558 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
7559 | Xsed="sed -e s/^X//" | |
7560 | ||
7561 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
7562 | # if CDPATH is set. | |
7563 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | |
7564 | ||
7565 | # The names of the tagged configurations supported by this script. | |
7566 | available_tags= | |
7567 | ||
7568 | # ### BEGIN LIBTOOL CONFIG | |
7569 | ||
7570 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
7571 | ||
7572 | # Shell to use when invoking shell scripts. | |
7573 | SHELL=$lt_SHELL | |
7574 | ||
7575 | # Whether or not to build shared libraries. | |
7576 | build_libtool_libs=$enable_shared | |
7577 | ||
7578 | # Whether or not to build static libraries. | |
7579 | build_old_libs=$enable_static | |
7580 | ||
7581 | # Whether or not to add -lc for building shared libraries. | |
7582 | build_libtool_need_lc=$archive_cmds_need_lc | |
7583 | ||
7584 | # Whether or not to optimize for fast installation. | |
7585 | fast_install=$enable_fast_install | |
7586 | ||
7587 | # The host system. | |
7588 | host_alias=$host_alias | |
7589 | host=$host | |
7590 | ||
7591 | # An echo program that does not interpret backslashes. | |
7592 | echo=$lt_echo | |
7593 | ||
7594 | # The archiver. | |
7595 | AR=$lt_AR | |
7596 | AR_FLAGS=$lt_AR_FLAGS | |
7597 | ||
7598 | # A C compiler. | |
7599 | LTCC=$lt_LTCC | |
7600 | ||
7601 | # A language-specific compiler. | |
7602 | CC=$lt_compiler | |
7603 | ||
7604 | # Is the compiler the GNU C compiler? | |
7605 | with_gcc=$GCC | |
7606 | ||
7607 | # The linker used to build libraries. | |
7608 | LD=$lt_LD | |
7609 | ||
7610 | # Whether we need hard or soft links. | |
7611 | LN_S=$lt_LN_S | |
7612 | ||
7613 | # A BSD-compatible nm program. | |
7614 | NM=$lt_NM | |
7615 | ||
7616 | # A sed program that does not truncate output. | |
7617 | SED=$lt_SED | |
7618 | ||
7619 | # A symbol stripping program | |
7620 | STRIP=$STRIP | |
7621 | ||
7622 | # Used to examine libraries when file_magic_cmd begins "file" | |
7623 | MAGIC_CMD=$MAGIC_CMD | |
7624 | ||
7625 | # Used on cygwin: DLL creation program. | |
7626 | DLLTOOL="$DLLTOOL" | |
7627 | ||
7628 | # Used on cygwin: object dumper. | |
7629 | OBJDUMP="$OBJDUMP" | |
7630 | ||
7631 | # Used on cygwin: assembler. | |
7632 | AS="$AS" | |
7633 | ||
7634 | # The name of the directory that contains temporary libtool files. | |
7635 | objdir=$objdir | |
7636 | ||
7637 | # How to create reloadable object files. | |
7638 | reload_flag=$lt_reload_flag | |
7639 | reload_cmds=$lt_reload_cmds | |
7640 | ||
7641 | # How to pass a linker flag through the compiler. | |
7642 | wl=$lt_lt_prog_compiler_wl | |
7643 | ||
7644 | # Object file suffix (normally "o"). | |
7645 | objext="$ac_objext" | |
7646 | ||
7647 | # Old archive suffix (normally "a"). | |
7648 | libext="$libext" | |
7649 | ||
7650 | # Executable file suffix (normally ""). | |
7651 | exeext="$exeext" | |
7652 | ||
7653 | # Additional compiler flags for building library objects. | |
7654 | pic_flag=$lt_lt_prog_compiler_pic | |
7655 | pic_mode=$pic_mode | |
7656 | ||
7657 | # What is the maximum length of a command? | |
7658 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
7659 | ||
7660 | # Does compiler simultaneously support -c and -o options? | |
7661 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
7662 | ||
7663 | # Must we lock files when doing compilation ? | |
7664 | need_locks=$lt_need_locks | |
7665 | ||
7666 | # Do we need the lib prefix for modules? | |
7667 | need_lib_prefix=$need_lib_prefix | |
7668 | ||
7669 | # Do we need a version for libraries? | |
7670 | need_version=$need_version | |
7671 | ||
7672 | # Whether dlopen is supported. | |
7673 | dlopen_support=$enable_dlopen | |
7674 | ||
7675 | # Whether dlopen of programs is supported. | |
7676 | dlopen_self=$enable_dlopen_self | |
7677 | ||
7678 | # Whether dlopen of statically linked programs is supported. | |
7679 | dlopen_self_static=$enable_dlopen_self_static | |
7680 | ||
7681 | # Compiler flag to prevent dynamic linking. | |
7682 | link_static_flag=$lt_lt_prog_compiler_static | |
7683 | ||
7684 | # Compiler flag to turn off builtin functions. | |
7685 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
7686 | ||
7687 | # Compiler flag to allow reflexive dlopens. | |
7688 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
7689 | ||
7690 | # Compiler flag to generate shared objects directly from archives. | |
7691 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
7692 | ||
7693 | # Compiler flag to generate thread-safe objects. | |
7694 | thread_safe_flag_spec=$lt_thread_safe_flag_spec | |
7695 | ||
7696 | # Library versioning type. | |
7697 | version_type=$version_type | |
7698 | ||
7699 | # Format of library name prefix. | |
7700 | libname_spec=$lt_libname_spec | |
7701 | ||
7702 | # List of archive names. First name is the real one, the rest are links. | |
7703 | # The last name is the one that the linker finds with -lNAME. | |
7704 | library_names_spec=$lt_library_names_spec | |
7705 | ||
7706 | # The coded name of the library, if different from the real name. | |
7707 | soname_spec=$lt_soname_spec | |
7708 | ||
7709 | # Commands used to build and install an old-style archive. | |
7710 | RANLIB=$lt_RANLIB | |
7711 | old_archive_cmds=$lt_old_archive_cmds | |
7712 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
7713 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
7714 | ||
7715 | # Create an old-style archive from a shared archive. | |
7716 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
7717 | ||
7718 | # Create a temporary old-style archive to link instead of a shared archive. | |
7719 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
7720 | ||
7721 | # Commands used to build and install a shared archive. | |
7722 | archive_cmds=$lt_archive_cmds | |
7723 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
7724 | postinstall_cmds=$lt_postinstall_cmds | |
7725 | postuninstall_cmds=$lt_postuninstall_cmds | |
7726 | ||
7727 | # Commands to strip libraries. | |
7728 | old_striplib=$lt_old_striplib | |
7729 | striplib=$lt_striplib | |
7730 | ||
7731 | # Dependencies to place before the objects being linked to create a | |
7732 | # shared library. | |
7733 | predep_objects=$lt_predep_objects | |
7734 | ||
7735 | # Dependencies to place after the objects being linked to create a | |
7736 | # shared library. | |
7737 | postdep_objects=$lt_postdep_objects | |
7738 | ||
7739 | # Dependencies to place before the objects being linked to create a | |
7740 | # shared library. | |
7741 | predeps=$lt_predeps | |
7742 | ||
7743 | # Dependencies to place after the objects being linked to create a | |
7744 | # shared library. | |
7745 | postdeps=$lt_postdeps | |
7746 | ||
7747 | # The library search path used internally by the compiler when linking | |
7748 | # a shared library. | |
7749 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
7750 | ||
7751 | # Method to check whether dependent libraries are shared objects. | |
7752 | deplibs_check_method=$lt_deplibs_check_method | |
7753 | ||
7754 | # Command to use when deplibs_check_method == file_magic. | |
7755 | file_magic_cmd=$lt_file_magic_cmd | |
7756 | ||
7757 | # Flag that allows shared libraries with undefined symbols to be built. | |
7758 | allow_undefined_flag=$lt_allow_undefined_flag | |
7759 | ||
7760 | # Flag that forces no undefined symbols. | |
7761 | no_undefined_flag=$lt_no_undefined_flag | |
7762 | ||
7763 | # Commands used to finish a libtool library installation in a directory. | |
7764 | finish_cmds=$lt_finish_cmds | |
7765 | ||
7766 | # Same as above, but a single script fragment to be evaled but not shown. | |
7767 | finish_eval=$lt_finish_eval | |
7768 | ||
7769 | # Take the output of nm and produce a listing of raw symbols and C names. | |
7770 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
7771 | ||
7772 | # Transform the output of nm in a proper C declaration | |
7773 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
7774 | ||
7775 | # Transform the output of nm in a C name address pair | |
7776 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
7777 | ||
7778 | # This is the shared library runtime path variable. | |
7779 | runpath_var=$runpath_var | |
7780 | ||
7781 | # This is the shared library path variable. | |
7782 | shlibpath_var=$shlibpath_var | |
7783 | ||
7784 | # Is shlibpath searched before the hard-coded library search path? | |
7785 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
7786 | ||
7787 | # How to hardcode a shared library path into an executable. | |
7788 | hardcode_action=$hardcode_action | |
7789 | ||
7790 | # Whether we should hardcode library paths into libraries. | |
7791 | hardcode_into_libs=$hardcode_into_libs | |
7792 | ||
7793 | # Flag to hardcode \$libdir into a binary during linking. | |
7794 | # This must work even if \$libdir does not exist. | |
7795 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
7796 | ||
7797 | # Whether we need a single -rpath flag with a separated argument. | |
7798 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
7799 | ||
7800 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | |
7801 | # resulting binary. | |
7802 | hardcode_direct=$hardcode_direct | |
7803 | ||
7804 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
7805 | # resulting binary. | |
7806 | hardcode_minus_L=$hardcode_minus_L | |
7807 | ||
7808 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
7809 | # the resulting binary. | |
7810 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
7811 | ||
7812 | # Variables whose values should be saved in libtool wrapper scripts and | |
7813 | # restored at relink time. | |
7814 | variables_saved_for_relink="$variables_saved_for_relink" | |
7815 | ||
7816 | # Whether libtool must link a program against all its dependency libraries. | |
7817 | link_all_deplibs=$link_all_deplibs | |
7818 | ||
7819 | # Compile-time system search path for libraries | |
7820 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
7821 | ||
7822 | # Run-time system search path for libraries | |
7823 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
7824 | ||
7825 | # Fix the shell variable \$srcfile for the compiler. | |
7826 | fix_srcfile_path="$fix_srcfile_path" | |
7827 | ||
7828 | # Set to yes if exported symbols are required. | |
7829 | always_export_symbols=$always_export_symbols | |
7830 | ||
7831 | # The commands to list exported symbols. | |
7832 | export_symbols_cmds=$lt_export_symbols_cmds | |
7833 | ||
7834 | # The commands to extract the exported symbol list from a shared archive. | |
7835 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
7836 | ||
7837 | # Symbols that should not be listed in the preloaded symbols. | |
7838 | exclude_expsyms=$lt_exclude_expsyms | |
7839 | ||
7840 | # Symbols that must always be exported. | |
7841 | include_expsyms=$lt_include_expsyms | |
7842 | ||
7843 | # ### END LIBTOOL CONFIG | |
7844 | ||
7845 | __EOF__ | |
7846 | ||
50850385 TJ |
7847 | case $host_os in |
7848 | aix3*) | |
7849 | cat <<\EOF >> "$cfgfile" | |
7850 | ||
7851 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7852 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7853 | # vanish in a puff of smoke. | |
7854 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7855 | COLLECT_NAMES= | |
7856 | export COLLECT_NAMES | |
7857 | fi | |
7858 | EOF | |
7859 | ;; | |
7860 | ||
7861 | cygwin* | mingw* | pw32* | os2*) | |
7862 | cat <<'EOF' >> "$cfgfile" | |
7863 | # This is a source program that is used to create dlls on Windows | |
7864 | # Don't remove nor modify the starting and closing comments | |
7865 | ||
7866 | # /* ltdll.c starts here */ | |
7867 | # #define WIN32_LEAN_AND_MEAN | |
7868 | # #include <windows.h> | |
7869 | # #undef WIN32_LEAN_AND_MEAN | |
7870 | # #include <stdio.h> | |
7871 | # | |
7872 | # #ifndef __CYGWIN__ | |
7873 | # # ifdef __CYGWIN32__ | |
7874 | # # define __CYGWIN__ __CYGWIN32__ | |
7875 | # # endif | |
7876 | # #endif | |
7877 | # | |
7878 | # #ifdef __cplusplus | |
7879 | # extern "C" { | |
7880 | # #endif | |
7881 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); | |
7882 | # #ifdef __cplusplus | |
7883 | # } | |
7884 | # #endif | |
7885 | # | |
7886 | # #ifdef __CYGWIN__ | |
7887 | # #include <cygwin/cygwin_dll.h> | |
7888 | # DECLARE_CYGWIN_DLL( DllMain ); | |
7889 | # #endif | |
7890 | # HINSTANCE __hDllInstance_base; | |
7891 | # | |
7892 | # BOOL APIENTRY | |
7893 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) | |
7894 | # { | |
7895 | # __hDllInstance_base = hInst; | |
7896 | # return TRUE; | |
7897 | # } | |
7898 | # /* ltdll.c ends here */ | |
7899 | ||
7900 | # This is a source program that is used to create import libraries | |
7901 | # on Windows for dlls which lack them. Don't remove nor modify the | |
7902 | # starting and closing comments | |
7903 | ||
7904 | # /* impgen.c starts here */ | |
7905 | # /* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. | |
7906 | # | |
7907 | # This file is part of GNU libtool. | |
7908 | # | |
7909 | # This program is free software; you can redistribute it and/or modify | |
7910 | # it under the terms of the GNU General Public License as published by | |
7911 | # the Free Software Foundation; either version 2 of the License, or | |
7912 | # (at your option) any later version. | |
7913 | # | |
7914 | # This program is distributed in the hope that it will be useful, | |
7915 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
7916 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
7917 | # GNU General Public License for more details. | |
7918 | # | |
7919 | # You should have received a copy of the GNU General Public License | |
7920 | # along with this program; if not, write to the Free Software | |
7921 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
7922 | # */ | |
7923 | # | |
7924 | # #include <stdio.h> /* for printf() */ | |
7925 | # #include <unistd.h> /* for open(), lseek(), read() */ | |
7926 | # #include <fcntl.h> /* for O_RDONLY, O_BINARY */ | |
7927 | # #include <string.h> /* for strdup() */ | |
7928 | # | |
7929 | # /* O_BINARY isn't required (or even defined sometimes) under Unix */ | |
7930 | # #ifndef O_BINARY | |
7931 | # #define O_BINARY 0 | |
7932 | # #endif | |
7933 | # | |
7934 | # static unsigned int | |
7935 | # pe_get16 (fd, offset) | |
7936 | # int fd; | |
7937 | # int offset; | |
7938 | # { | |
7939 | # unsigned char b[2]; | |
7940 | # lseek (fd, offset, SEEK_SET); | |
7941 | # read (fd, b, 2); | |
7942 | # return b[0] + (b[1]<<8); | |
7943 | # } | |
7944 | # | |
7945 | # static unsigned int | |
7946 | # pe_get32 (fd, offset) | |
7947 | # int fd; | |
7948 | # int offset; | |
7949 | # { | |
7950 | # unsigned char b[4]; | |
7951 | # lseek (fd, offset, SEEK_SET); | |
7952 | # read (fd, b, 4); | |
7953 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); | |
7954 | # } | |
7955 | # | |
7956 | # static unsigned int | |
7957 | # pe_as32 (ptr) | |
7958 | # void *ptr; | |
7959 | # { | |
7960 | # unsigned char *b = ptr; | |
7961 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); | |
7962 | # } | |
7963 | # | |
7964 | # int | |
7965 | # main (argc, argv) | |
7966 | # int argc; | |
7967 | # char *argv[]; | |
7968 | # { | |
7969 | # int dll; | |
7970 | # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; | |
7971 | # unsigned long export_rva, export_size, nsections, secptr, expptr; | |
7972 | # unsigned long name_rvas, nexp; | |
7973 | # unsigned char *expdata, *erva; | |
7974 | # char *filename, *dll_name; | |
7975 | # | |
7976 | # filename = argv[1]; | |
7977 | # | |
7978 | # dll = open(filename, O_RDONLY|O_BINARY); | |
7979 | # if (dll < 1) | |
7980 | # return 1; | |
7981 | # | |
7982 | # dll_name = filename; | |
7983 | # | |
7984 | # for (i=0; filename[i]; i++) | |
7985 | # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') | |
7986 | # dll_name = filename + i +1; | |
7987 | # | |
7988 | # pe_header_offset = pe_get32 (dll, 0x3c); | |
7989 | # opthdr_ofs = pe_header_offset + 4 + 20; | |
7990 | # num_entries = pe_get32 (dll, opthdr_ofs + 92); | |
7991 | # | |
7992 | # if (num_entries < 1) /* no exports */ | |
7993 | # return 1; | |
7994 | # | |
7995 | # export_rva = pe_get32 (dll, opthdr_ofs + 96); | |
7996 | # export_size = pe_get32 (dll, opthdr_ofs + 100); | |
7997 | # nsections = pe_get16 (dll, pe_header_offset + 4 +2); | |
7998 | # secptr = (pe_header_offset + 4 + 20 + | |
7999 | # pe_get16 (dll, pe_header_offset + 4 + 16)); | |
8000 | # | |
8001 | # expptr = 0; | |
8002 | # for (i = 0; i < nsections; i++) | |
8003 | # { | |
8004 | # char sname[8]; | |
8005 | # unsigned long secptr1 = secptr + 40 * i; | |
8006 | # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); | |
8007 | # unsigned long vsize = pe_get32 (dll, secptr1 + 16); | |
8008 | # unsigned long fptr = pe_get32 (dll, secptr1 + 20); | |
8009 | # lseek(dll, secptr1, SEEK_SET); | |
8010 | # read(dll, sname, 8); | |
8011 | # if (vaddr <= export_rva && vaddr+vsize > export_rva) | |
8012 | # { | |
8013 | # expptr = fptr + (export_rva - vaddr); | |
8014 | # if (export_rva + export_size > vaddr + vsize) | |
8015 | # export_size = vsize - (export_rva - vaddr); | |
8016 | # break; | |
8017 | # } | |
8018 | # } | |
8019 | # | |
8020 | # expdata = (unsigned char*)malloc(export_size); | |
8021 | # lseek (dll, expptr, SEEK_SET); | |
8022 | # read (dll, expdata, export_size); | |
8023 | # erva = expdata - export_rva; | |
8024 | # | |
8025 | # nexp = pe_as32 (expdata+24); | |
8026 | # name_rvas = pe_as32 (expdata+32); | |
8027 | # | |
8028 | # printf ("EXPORTS\n"); | |
8029 | # for (i = 0; i<nexp; i++) | |
8030 | # { | |
8031 | # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); | |
8032 | # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); | |
8033 | # } | |
8034 | # | |
8035 | # return 0; | |
8036 | # } | |
8037 | # /* impgen.c ends here */ | |
8038 | ||
8039 | EOF | |
8040 | ;; | |
8041 | esac | |
8042 | ||
8043 | # We use sed instead of cat because bash on DJGPP gets confused if | |
8044 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
8045 | # text mode, it properly converts lines to CR/LF. This bash problem | |
8046 | # is reportedly fixed, but why not run on old versions too? | |
8047 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | |
8048 | ||
8049 | mv -f "$cfgfile" "$ofile" || \ | |
8050 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
8051 | chmod +x "$ofile" | |
8052 | ||
8053 | else | |
8054 | # If there is no Makefile yet, we rely on a make rule to execute | |
8055 | # `config.status --recheck' to rerun these tests and create the | |
8056 | # libtool script then. | |
8057 | test -f Makefile && make "$ltmain" | |
8058 | fi | |
8059 | ||
50850385 TJ |
8060 | ac_ext=c |
8061 | ac_cpp='$CPP $CPPFLAGS' | |
8062 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8063 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8064 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8065 | ||
8066 | CC="$lt_save_CC" | |
8067 | ||
50850385 TJ |
8068 | # Check whether --with-tags or --without-tags was given. |
8069 | if test "${with_tags+set}" = set; then | |
8070 | withval="$with_tags" | |
8071 | tagnames="$withval" | |
8072 | else | |
8073 | tagnames="CXX,GCJ" | |
8074 | case $host_os in | |
8075 | mingw*|cygwin*) tagnames="$tagnames,RC" ;; | |
8076 | esac | |
8077 | fi; | |
8078 | ||
8079 | if test -f "$ltmain" && test -n "$tagnames"; then | |
8080 | if test ! -f "${ofile}"; then | |
e61fbf76 | 8081 | { echo "$as_me:8081: WARNING: output file \`$ofile' does not exist" >&5 |
50850385 TJ |
8082 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
8083 | fi | |
8084 | ||
8085 | if test -z "$LTCC"; then | |
8086 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | |
8087 | if test -z "$LTCC"; then | |
e61fbf76 | 8088 | { echo "$as_me:8088: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
50850385 TJ |
8089 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
8090 | else | |
e61fbf76 | 8091 | { echo "$as_me:8091: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
50850385 TJ |
8092 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
8093 | fi | |
8094 | fi | |
8095 | ||
8096 | # Extract list of available tagged configurations in $ofile. | |
8097 | # Note that this assumes the entire list is on one line. | |
8098 | available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | |
8099 | ||
8100 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8101 | for tagname in $tagnames; do | |
8102 | IFS="$lt_save_ifs" | |
8103 | # Check whether tagname contains only valid characters | |
8104 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | |
8105 | "") ;; | |
e61fbf76 | 8106 | *) { { echo "$as_me:8106: error: invalid tag name: $tagname" >&5 |
50850385 TJ |
8107 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
8108 | { (exit 1); exit 1; }; } | |
8109 | ;; | |
8110 | esac | |
8111 | ||
8112 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | |
8113 | then | |
e61fbf76 | 8114 | { { echo "$as_me:8114: error: tag name \"$tagname\" already exists" >&5 |
50850385 TJ |
8115 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
8116 | { (exit 1); exit 1; }; } | |
8117 | fi | |
8118 | ||
8119 | # Update the list of available tags. | |
8120 | if test -n "$tagname"; then | |
8121 | echo appending configuration tag \"$tagname\" to $ofile | |
8122 | ||
8123 | case $tagname in | |
8124 | CXX) | |
8125 | ac_ext=cc | |
8126 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8127 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8128 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8129 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8130 | ||
50850385 TJ |
8131 | archive_cmds_need_lc_CXX=no |
8132 | allow_undefined_flag_CXX= | |
8133 | always_export_symbols_CXX=no | |
8134 | archive_expsym_cmds_CXX= | |
8135 | export_dynamic_flag_spec_CXX= | |
8136 | hardcode_direct_CXX=no | |
8137 | hardcode_libdir_flag_spec_CXX= | |
8138 | hardcode_libdir_separator_CXX= | |
8139 | hardcode_minus_L_CXX=no | |
8140 | link_all_deplibs_CXX=unknown | |
8141 | old_archive_cmds_CXX=$old_archive_cmds | |
8142 | no_undefined_flag_CXX= | |
8143 | whole_archive_flag_spec_CXX= | |
8144 | ||
8145 | # Dependencies to place before and after the object being linked: | |
8146 | predep_objects_CXX= | |
8147 | postdep_objects_CXX= | |
8148 | predeps_CXX= | |
8149 | postdeps_CXX= | |
8150 | compiler_lib_search_path_CXX= | |
8151 | ||
8152 | # Source file extension for C test sources. | |
8153 | ac_ext=cc | |
8154 | ||
8155 | # Object file extension for compiled C test sources. | |
8156 | objext=o | |
8157 | objext_CXX=$objext | |
8158 | ||
8159 | # Code to be used in simple compile tests | |
8160 | lt_simple_compile_test_code="int some_variable = 0;" | |
8161 | ||
8162 | # Code to be used in simple link tests | |
8163 | lt_simple_link_test_code='int main(int char *) { return(0); }' | |
8164 | ||
8165 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
8166 | ||
8167 | # If no C compiler was specified, use CC. | |
8168 | LTCC=${LTCC-"$CC"} | |
8169 | ||
8170 | # Allow CC to be a program name with arguments. | |
8171 | set dummy $CC | |
8172 | compiler="$2" | |
8173 | ||
50850385 TJ |
8174 | # Allow CC to be a program name with arguments. |
8175 | lt_save_CC="$CC" | |
8176 | CC=${CXX-"c++"} | |
8177 | set dummy $CC | |
8178 | compiler="$2" | |
8179 | compiler_CXX=$CC | |
8180 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | |
8181 | ||
8182 | # We don't want -fno-exception wen compiling C++ code, so set the | |
8183 | # no_builtin_flag separately | |
8184 | if test "$GXX" = yes; then | |
8185 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
8186 | else | |
8187 | lt_prog_compiler_no_builtin_flag_CXX= | |
8188 | fi | |
8189 | ||
8190 | if test "$GXX" = yes; then | |
8191 | # Set up default GNU C++ configuration | |
8192 | ||
8193 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
8194 | # archiving commands below assume that GNU ld is being used. | |
8195 | if eval "`$CC -print-prog-name=ld` --version 2>&1" | \ | |
8196 | egrep 'GNU ld' > /dev/null; then | |
8197 | with_gnu_ld=yes | |
8198 | ||
8199 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8200 | 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' | |
8201 | ||
8202 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
8203 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
8204 | ||
8205 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
8206 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
8207 | # investigate it a little bit more. (MM) | |
8208 | wlarc='${wl}' | |
8209 | ||
8210 | # ancient GNU ld didn't support --whole-archive et. al. | |
8211 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | |
8212 | egrep 'no-whole-archive' > /dev/null; then | |
8213 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8214 | else | |
8215 | whole_archive_flag_spec_CXX= | |
8216 | fi | |
8217 | else | |
8218 | with_gnu_ld=no | |
8219 | wlarc= | |
8220 | ||
8221 | # A generic and very simple default shared library creation | |
8222 | # command for GNU C++ for the case where it uses the native | |
8223 | # linker, instead of GNU ld. If possible, this setting should | |
8224 | # overridden to take advantage of the native linker features on | |
8225 | # the platform it is being used on. | |
8226 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
8227 | fi | |
8228 | ||
8229 | # Commands to make compiler produce verbose output that lists | |
8230 | # what "hidden" libraries, object files and flags are used when | |
8231 | # linking a shared library. | |
8232 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' | |
8233 | ||
8234 | else | |
8235 | GXX=no | |
8236 | with_gnu_ld=no | |
8237 | wlarc= | |
8238 | fi | |
8239 | ||
8240 | # PORTME: fill in a description of your system's C++ link characteristics | |
e61fbf76 | 8241 | echo "$as_me:8241: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
50850385 TJ |
8242 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
8243 | ld_shlibs_CXX=yes | |
8244 | case $host_os in | |
8245 | aix3*) | |
8246 | # FIXME: insert proper C++ library support | |
8247 | ld_shlibs_CXX=no | |
8248 | ;; | |
8249 | aix4* | aix5*) | |
8250 | if test "$host_cpu" = ia64; then | |
8251 | # On IA64, the linker does run time linking by default, so we don't | |
8252 | # have to do anything special. | |
8253 | aix_use_runtimelinking=no | |
8254 | exp_sym_flag='-Bexport' | |
8255 | no_entry_flag="" | |
8256 | else | |
8257 | # KDE requires run time linking. Make it the default. | |
8258 | aix_use_runtimelinking=yes | |
8259 | exp_sym_flag='-bexport' | |
8260 | no_entry_flag='-bnoentry' | |
8261 | fi | |
8262 | ||
8263 | # When large executables or shared objects are built, AIX ld can | |
8264 | # have problems creating the table of contents. If linking a library | |
8265 | # or program results in "error TOC overflow" add -mminimal-toc to | |
8266 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8267 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
8268 | ||
8269 | archive_cmds_CXX='' | |
8270 | hardcode_direct_CXX=yes | |
8271 | hardcode_libdir_separator_CXX=':' | |
8272 | link_all_deplibs_CXX=yes | |
8273 | ||
8274 | if test "$GXX" = yes; then | |
8275 | case $host_os in aix4.012|aix4.012.*) | |
8276 | # We only want to do this on AIX 4.2 and lower, the check | |
8277 | # below for broken collect2 doesn't work under 4.3+ | |
8278 | collect2name=`${CC} -print-prog-name=collect2` | |
8279 | if test -f "$collect2name" && \ | |
8280 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
8281 | then | |
8282 | # We have reworked collect2 | |
8283 | hardcode_direct_CXX=yes | |
8284 | else | |
8285 | # We have old collect2 | |
8286 | hardcode_direct_CXX=unsupported | |
8287 | # It fails to find uninstalled libraries when the uninstalled | |
8288 | # path is not listed in the libpath. Setting hardcode_minus_L | |
8289 | # to unsupported forces relinking | |
8290 | hardcode_minus_L_CXX=yes | |
8291 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
8292 | hardcode_libdir_separator_CXX= | |
8293 | fi | |
8294 | esac | |
8295 | shared_flag='-shared' | |
8296 | else | |
8297 | # not using gcc | |
8298 | if test "$host_cpu" = ia64; then | |
8299 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
8300 | # chokes on -Wl,-G. The following line is correct: | |
8301 | shared_flag='-G' | |
8302 | else | |
8303 | if test "$aix_use_runtimelinking" = yes; then | |
8304 | shared_flag='-qmkshrobj ${wl}-G' | |
8305 | else | |
8306 | shared_flag='-qmkshrobj' | |
8307 | fi | |
8308 | fi | |
8309 | fi | |
8310 | ||
8311 | # Let the compiler handle the export list. | |
8312 | always_export_symbols_CXX=no | |
8313 | if test "$aix_use_runtimelinking" = yes; then | |
8314 | # Warning - without using the other runtime loading flags (-brtl), | |
8315 | # -berok will link without error, but may produce a broken library. | |
8316 | allow_undefined_flag_CXX='-berok' | |
8317 | # Determine the default libpath from the value encoded in an empty executable. | |
8318 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 8319 | #line 8319 "configure" |
50850385 TJ |
8320 | #include "confdefs.h" |
8321 | ||
50850385 TJ |
8322 | int |
8323 | main () | |
8324 | { | |
8325 | ||
8326 | ; | |
8327 | return 0; | |
8328 | } | |
8329 | _ACEOF | |
8330 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 8331 | if { (eval echo "$as_me:8331: \"$ac_link\"") >&5 |
50850385 TJ |
8332 | (eval $ac_link) 2>&5 |
8333 | ac_status=$? | |
e61fbf76 | 8334 | echo "$as_me:8334: \$? = $ac_status" >&5 |
50850385 TJ |
8335 | (exit $ac_status); } && |
8336 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 8337 | { (eval echo "$as_me:8337: \"$ac_try\"") >&5 |
50850385 TJ |
8338 | (eval $ac_try) 2>&5 |
8339 | ac_status=$? | |
e61fbf76 | 8340 | echo "$as_me:8340: \$? = $ac_status" >&5 |
50850385 TJ |
8341 | (exit $ac_status); }; }; then |
8342 | ||
8343 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
8344 | }'` | |
8345 | # Check for a 64-bit object if we didn't find anything. | |
8346 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
8347 | }'`; fi | |
8348 | else | |
8349 | echo "$as_me: failed program was:" >&5 | |
8350 | cat conftest.$ac_ext >&5 | |
8351 | fi | |
8352 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8353 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
8354 | ||
8355 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
8356 | ||
8357 | archive_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag" | |
8358 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
8359 | else | |
8360 | if test "$host_cpu" = ia64; then | |
8361 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
8362 | allow_undefined_flag_CXX="-z nodefs" | |
8363 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | |
8364 | else | |
8365 | # Determine the default libpath from the value encoded in an empty executable. | |
8366 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 8367 | #line 8367 "configure" |
50850385 TJ |
8368 | #include "confdefs.h" |
8369 | ||
50850385 TJ |
8370 | int |
8371 | main () | |
8372 | { | |
8373 | ||
8374 | ; | |
8375 | return 0; | |
8376 | } | |
8377 | _ACEOF | |
8378 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 8379 | if { (eval echo "$as_me:8379: \"$ac_link\"") >&5 |
50850385 TJ |
8380 | (eval $ac_link) 2>&5 |
8381 | ac_status=$? | |
e61fbf76 | 8382 | echo "$as_me:8382: \$? = $ac_status" >&5 |
50850385 TJ |
8383 | (exit $ac_status); } && |
8384 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 8385 | { (eval echo "$as_me:8385: \"$ac_try\"") >&5 |
50850385 TJ |
8386 | (eval $ac_try) 2>&5 |
8387 | ac_status=$? | |
e61fbf76 | 8388 | echo "$as_me:8388: \$? = $ac_status" >&5 |
50850385 TJ |
8389 | (exit $ac_status); }; }; then |
8390 | ||
8391 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
8392 | }'` | |
8393 | # Check for a 64-bit object if we didn't find anything. | |
8394 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
8395 | }'`; fi | |
8396 | else | |
8397 | echo "$as_me: failed program was:" >&5 | |
8398 | cat conftest.$ac_ext >&5 | |
8399 | fi | |
8400 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8401 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
8402 | ||
8403 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
8404 | # Warning - without using the other run time loading flags, | |
8405 | # -berok will link without error, but may produce a broken library. | |
8406 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
8407 | allow_undefined_flag_CXX=' ${wl}-berok' | |
8408 | # -bexpall does not export symbols beginning with underscore (_) | |
8409 | always_export_symbols_CXX=yes | |
8410 | # Exported symbols can be pulled into shared objects from archives | |
8411 | whole_archive_flag_spec_CXX=' ' | |
8412 | archive_cmds_need_lc_CXX=yes | |
8413 | # This is similar to how AIX traditionally builds it's shared libraries. | |
8414 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
8415 | fi | |
8416 | fi | |
8417 | ;; | |
8418 | chorus*) | |
8419 | case $cc_basename in | |
8420 | *) | |
8421 | # FIXME: insert proper C++ library support | |
8422 | ld_shlibs_CXX=no | |
8423 | ;; | |
8424 | esac | |
8425 | ;; | |
8426 | dgux*) | |
8427 | case $cc_basename in | |
8428 | ec++) | |
8429 | # FIXME: insert proper C++ library support | |
8430 | ld_shlibs_CXX=no | |
8431 | ;; | |
8432 | ghcx) | |
8433 | # Green Hills C++ Compiler | |
8434 | # FIXME: insert proper C++ library support | |
8435 | ld_shlibs_CXX=no | |
8436 | ;; | |
8437 | *) | |
8438 | # FIXME: insert proper C++ library support | |
8439 | ld_shlibs_CXX=no | |
8440 | ;; | |
8441 | esac | |
8442 | ;; | |
8443 | freebsd12*) | |
8444 | # C++ shared libraries reported to be fairly broken before switch to ELF | |
8445 | ld_shlibs_CXX=no | |
8446 | ;; | |
8447 | freebsd-elf*) | |
8448 | archive_cmds_need_lc_CXX=no | |
8449 | ;; | |
8450 | freebsd*) | |
8451 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
8452 | # conventions | |
8453 | ld_shlibs_CXX=yes | |
8454 | ;; | |
8455 | gnu*) | |
8456 | ;; | |
8457 | hpux*) | |
8458 | if test $with_gnu_ld = no; then | |
8459 | if test "$host_cpu" = ia64; then | |
8460 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
8461 | else | |
8462 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
8463 | hardcode_libdir_separator_CXX=: | |
8464 | export_dynamic_flag_spec_CXX='${wl}-E' | |
8465 | fi | |
8466 | fi | |
8467 | if test "$host_cpu" = ia64; then | |
8468 | hardcode_direct_CXX=no | |
8469 | hardcode_shlibpath_var_CXX=no | |
8470 | else | |
8471 | hardcode_direct_CXX=yes | |
8472 | fi | |
8473 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
8474 | # but as the default | |
8475 | # location of the library. | |
8476 | ||
8477 | case $cc_basename in | |
8478 | CC) | |
8479 | # FIXME: insert proper C++ library support | |
8480 | ld_shlibs_CXX=no | |
8481 | ;; | |
8482 | aCC) | |
8483 | case $host_os in | |
8484 | hpux9*) | |
8485 | 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' | |
8486 | ;; | |
8487 | *) | |
8488 | if test "$host_cpu" = ia64; then | |
8489 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | |
8490 | else | |
8491 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
8492 | fi | |
8493 | ;; | |
8494 | esac | |
8495 | # Commands to make compiler produce verbose output that lists | |
8496 | # what "hidden" libraries, object files and flags are used when | |
8497 | # linking a shared library. | |
8498 | # | |
8499 | # There doesn't appear to be a way to prevent this compiler from | |
8500 | # explicitly linking system object files so we need to strip them | |
8501 | # from the output so that they don't get included in the library | |
8502 | # dependencies. | |
8503 | 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 $list' | |
8504 | ;; | |
8505 | *) | |
8506 | if test "$GXX" = yes; then | |
8507 | if test $with_gnu_ld = no; then | |
8508 | case $host_os in | |
8509 | hpux9*) | |
8510 | 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' | |
8511 | ;; | |
8512 | *) | |
8513 | if test "$host_cpu" = ia64; then | |
8514 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | |
8515 | else | |
8516 | 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' | |
8517 | fi | |
8518 | ;; | |
8519 | esac | |
8520 | fi | |
8521 | else | |
8522 | # FIXME: insert proper C++ library support | |
8523 | ld_shlibs_CXX=no | |
8524 | fi | |
8525 | ;; | |
8526 | esac | |
8527 | ;; | |
8528 | irix5* | irix6*) | |
8529 | case $cc_basename in | |
8530 | CC) | |
8531 | # SGI C++ | |
8532 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' | |
8533 | ||
8534 | # Archives containing C++ object files must be created using | |
8535 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
8536 | # necessary to make sure instantiated templates are included | |
8537 | # in the archive. | |
8538 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
8539 | ;; | |
8540 | *) | |
8541 | if test "$GXX" = yes; then | |
8542 | if test "$with_gnu_ld" = no; then | |
8543 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' | |
8544 | else | |
8545 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib' | |
8546 | fi | |
8547 | fi | |
8548 | link_all_deplibs_CXX=yes | |
8549 | ;; | |
8550 | esac | |
8551 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
8552 | hardcode_libdir_separator_CXX=: | |
8553 | ;; | |
8554 | linux*) | |
8555 | case $cc_basename in | |
8556 | KCC) | |
8557 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
8558 | ||
8559 | # KCC will only create a shared library if the output file | |
8560 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
8561 | # to its proper name (with version) after linking. | |
8562 | archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
8563 | archive_expsym_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' | |
8564 | ||
8565 | # Commands to make compiler produce verbose output that lists | |
8566 | # what "hidden" libraries, object files and flags are used when | |
8567 | # linking a shared library. | |
8568 | # | |
8569 | # There doesn't appear to be a way to prevent this compiler from | |
8570 | # explicitly linking system object files so we need to strip them | |
8571 | # from the output so that they don't get included in the library | |
8572 | # dependencies. | |
8573 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest.so 2>&1 | egrep "ld"`; rm -f libconftest.so; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
8574 | ||
8575 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | |
8576 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
8577 | ||
8578 | # Archives containing C++ object files must be created using | |
8579 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
8580 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
8581 | ;; | |
8582 | cxx) | |
8583 | # Compaq C++ | |
8584 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8585 | 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' | |
8586 | ||
8587 | runpath_var=LD_RUN_PATH | |
8588 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
8589 | hardcode_libdir_separator_CXX=: | |
8590 | ||
8591 | # Commands to make compiler produce verbose output that lists | |
8592 | # what "hidden" libraries, object files and flags are used when | |
8593 | # linking a shared library. | |
8594 | # | |
8595 | # There doesn't appear to be a way to prevent this compiler from | |
8596 | # explicitly linking system object files so we need to strip them | |
8597 | # from the output so that they don't get included in the library | |
8598 | # dependencies. | |
8599 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | sed "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 $list' | |
8600 | ;; | |
8601 | esac | |
8602 | ;; | |
8603 | lynxos*) | |
8604 | # FIXME: insert proper C++ library support | |
8605 | ld_shlibs_CXX=no | |
8606 | ;; | |
8607 | m88k*) | |
8608 | # FIXME: insert proper C++ library support | |
8609 | ld_shlibs_CXX=no | |
8610 | ;; | |
8611 | mvs*) | |
8612 | case $cc_basename in | |
8613 | cxx) | |
8614 | # FIXME: insert proper C++ library support | |
8615 | ld_shlibs_CXX=no | |
8616 | ;; | |
8617 | *) | |
8618 | # FIXME: insert proper C++ library support | |
8619 | ld_shlibs_CXX=no | |
8620 | ;; | |
8621 | esac | |
8622 | ;; | |
8623 | netbsd*) | |
8624 | # NetBSD uses g++ - do we need to do anything? | |
8625 | ;; | |
8626 | osf3*) | |
8627 | case $cc_basename in | |
8628 | KCC) | |
8629 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
8630 | ||
8631 | # KCC will only create a shared library if the output file | |
8632 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
8633 | # to its proper name (with version) after linking. | |
8634 | archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
8635 | ||
8636 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
8637 | hardcode_libdir_separator_CXX=: | |
8638 | ||
8639 | # Archives containing C++ object files must be created using | |
8640 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
8641 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
8642 | ||
8643 | ;; | |
8644 | RCC) | |
8645 | # Rational C++ 2.4.1 | |
8646 | # FIXME: insert proper C++ library support | |
8647 | ld_shlibs_CXX=no | |
8648 | ;; | |
8649 | cxx) | |
8650 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
8651 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' | |
8652 | ||
8653 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
8654 | hardcode_libdir_separator_CXX=: | |
8655 | ||
8656 | # Commands to make compiler produce verbose output that lists | |
8657 | # what "hidden" libraries, object files and flags are used when | |
8658 | # linking a shared library. | |
8659 | # | |
8660 | # There doesn't appear to be a way to prevent this compiler from | |
8661 | # explicitly linking system object files so we need to strip them | |
8662 | # from the output so that they don't get included in the library | |
8663 | # dependencies. | |
8664 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | sed "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 $list' | |
8665 | ;; | |
8666 | *) | |
8667 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
8668 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
8669 | 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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' | |
8670 | ||
8671 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
8672 | hardcode_libdir_separator_CXX=: | |
8673 | ||
8674 | # Commands to make compiler produce verbose output that lists | |
8675 | # what "hidden" libraries, object files and flags are used when | |
8676 | # linking a shared library. | |
8677 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' | |
8678 | ||
8679 | else | |
8680 | # FIXME: insert proper C++ library support | |
8681 | ld_shlibs_CXX=no | |
8682 | fi | |
8683 | ;; | |
8684 | esac | |
8685 | ;; | |
8686 | osf4* | osf5*) | |
8687 | case $cc_basename in | |
8688 | KCC) | |
8689 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
8690 | ||
8691 | # KCC will only create a shared library if the output file | |
8692 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
8693 | # to its proper name (with version) after linking. | |
8694 | archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
8695 | ||
8696 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
8697 | hardcode_libdir_separator_CXX=: | |
8698 | ||
8699 | # Archives containing C++ object files must be created using | |
8700 | # the KAI C++ compiler. | |
8701 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | |
8702 | ;; | |
8703 | RCC) | |
8704 | # Rational C++ 2.4.1 | |
8705 | # FIXME: insert proper C++ library support | |
8706 | ld_shlibs_CXX=no | |
8707 | ;; | |
8708 | cxx) | |
8709 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
8710 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' | |
8711 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~ | |
8712 | echo "-hidden">> $lib.exp~ | |
8713 | $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 -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ | |
8714 | $rm $lib.exp' | |
8715 | ||
8716 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
8717 | hardcode_libdir_separator_CXX=: | |
8718 | ||
8719 | # Commands to make compiler produce verbose output that lists | |
8720 | # what "hidden" libraries, object files and flags are used when | |
8721 | # linking a shared library. | |
8722 | # | |
8723 | # There doesn't appear to be a way to prevent this compiler from | |
8724 | # explicitly linking system object files so we need to strip them | |
8725 | # from the output so that they don't get included in the library | |
8726 | # dependencies. | |
8727 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | sed "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 $list' | |
8728 | ;; | |
8729 | *) | |
8730 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
8731 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
8732 | 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` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' | |
8733 | ||
8734 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
8735 | hardcode_libdir_separator_CXX=: | |
8736 | ||
8737 | # Commands to make compiler produce verbose output that lists | |
8738 | # what "hidden" libraries, object files and flags are used when | |
8739 | # linking a shared library. | |
8740 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' | |
8741 | ||
8742 | else | |
8743 | # FIXME: insert proper C++ library support | |
8744 | ld_shlibs_CXX=no | |
8745 | fi | |
8746 | ;; | |
8747 | esac | |
8748 | ;; | |
8749 | psos*) | |
8750 | # FIXME: insert proper C++ library support | |
8751 | ld_shlibs_CXX=no | |
8752 | ;; | |
8753 | sco*) | |
8754 | archive_cmds_need_lc_CXX=no | |
8755 | case $cc_basename in | |
8756 | CC) | |
8757 | # FIXME: insert proper C++ library support | |
8758 | ld_shlibs_CXX=no | |
8759 | ;; | |
8760 | *) | |
8761 | # FIXME: insert proper C++ library support | |
8762 | ld_shlibs_CXX=no | |
8763 | ;; | |
8764 | esac | |
8765 | ;; | |
8766 | sunos4*) | |
8767 | case $cc_basename in | |
8768 | CC) | |
8769 | # Sun C++ 4.x | |
8770 | # FIXME: insert proper C++ library support | |
8771 | ld_shlibs_CXX=no | |
8772 | ;; | |
8773 | lcc) | |
8774 | # Lucid | |
8775 | # FIXME: insert proper C++ library support | |
8776 | ld_shlibs_CXX=no | |
8777 | ;; | |
8778 | *) | |
8779 | # FIXME: insert proper C++ library support | |
8780 | ld_shlibs_CXX=no | |
8781 | ;; | |
8782 | esac | |
8783 | ;; | |
8784 | solaris*) | |
8785 | case $cc_basename in | |
8786 | CC) | |
8787 | # Sun C++ 4.2, 5.x and Centerline C++ | |
8788 | no_undefined_flag_CXX=' -zdefs' | |
8789 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
8790 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
8791 | $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
8792 | ||
8793 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
8794 | hardcode_shlibpath_var_CXX=no | |
8795 | case $host_os in | |
8796 | solaris2.0-5 | solaris2.0-5.*) ;; | |
8797 | *) | |
8798 | # The C++ compiler is used as linker so we must use $wl | |
8799 | # flag to pass the commands to the underlying system | |
8800 | # linker. | |
8801 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
8802 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
8803 | ;; | |
8804 | esac | |
8805 | link_all_deplibs_CXX=yes | |
8806 | ||
8807 | # Commands to make compiler produce verbose output that lists | |
8808 | # what "hidden" libraries, object files and flags are used when | |
8809 | # linking a shared library. | |
8810 | # | |
8811 | # There doesn't appear to be a way to prevent this compiler from | |
8812 | # explicitly linking system object files so we need to strip them | |
8813 | # from the output so that they don't get included in the library | |
8814 | # dependencies. | |
8815 | output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep "\-R|\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
8816 | ||
8817 | # Archives containing C++ object files must be created using | |
8818 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
8819 | # necessary to make sure instantiated templates are included | |
8820 | # in the archive. | |
8821 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
8822 | ;; | |
8823 | gcx) | |
8824 | # Green Hills C++ Compiler | |
8825 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
8826 | ||
8827 | # The C++ compiler must be used to create the archive. | |
8828 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
8829 | ;; | |
8830 | *) | |
8831 | # GNU C++ compiler with Solaris linker | |
8832 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
8833 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
8834 | if $CC --version | egrep -v '^2\.7' > /dev/null; then | |
8835 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib' | |
8836 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
8837 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp' | |
8838 | ||
8839 | # Commands to make compiler produce verbose output that lists | |
8840 | # what "hidden" libraries, object files and flags are used when | |
8841 | # linking a shared library. | |
8842 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\"" | |
8843 | else | |
8844 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
8845 | # platform. | |
8846 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib' | |
8847 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
8848 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp' | |
8849 | ||
8850 | # Commands to make compiler produce verbose output that lists | |
8851 | # what "hidden" libraries, object files and flags are used when | |
8852 | # linking a shared library. | |
8853 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\"" | |
8854 | fi | |
8855 | ||
8856 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
8857 | fi | |
8858 | ;; | |
8859 | esac | |
8860 | ;; | |
8861 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
8862 | archive_cmds_need_lc_CXX=no | |
8863 | ;; | |
8864 | tandem*) | |
8865 | case $cc_basename in | |
8866 | NCC) | |
8867 | # NonStop-UX NCC 3.20 | |
8868 | # FIXME: insert proper C++ library support | |
8869 | ld_shlibs_CXX=no | |
8870 | ;; | |
8871 | *) | |
8872 | # FIXME: insert proper C++ library support | |
8873 | ld_shlibs_CXX=no | |
8874 | ;; | |
8875 | esac | |
8876 | ;; | |
8877 | vxworks*) | |
8878 | # FIXME: insert proper C++ library support | |
8879 | ld_shlibs_CXX=no | |
8880 | ;; | |
8881 | *) | |
8882 | # FIXME: insert proper C++ library support | |
8883 | ld_shlibs_CXX=no | |
8884 | ;; | |
8885 | esac | |
e61fbf76 | 8886 | echo "$as_me:8886: result: $ld_shlibs_CXX" >&5 |
50850385 TJ |
8887 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
8888 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
8889 | ||
8890 | # Figure out "hidden" C++ library dependencies from verbose | |
8891 | # compiler output whening linking a shared library. | |
8892 | cat > conftest.$ac_ext <<EOF | |
8893 | class Foo | |
8894 | { | |
8895 | public: | |
8896 | Foo (void) { a = 0; } | |
8897 | private: | |
8898 | int a; | |
8899 | }; | |
8900 | EOF | |
8901 | ||
e61fbf76 | 8902 | if { (eval echo "$as_me:8902: \"$ac_compile\"") >&5 |
50850385 TJ |
8903 | (eval $ac_compile) 2>&5 |
8904 | ac_status=$? | |
e61fbf76 | 8905 | echo "$as_me:8905: \$? = $ac_status" >&5 |
50850385 TJ |
8906 | (exit $ac_status); }; then |
8907 | # Parse the compiler output and extract the necessary | |
8908 | # objects, libraries and library flags. | |
8909 | ||
8910 | # Sentinel used to keep track of whether or not we are before | |
8911 | # the conftest object file. | |
8912 | pre_test_object_deps_done=no | |
8913 | ||
8914 | # The `*' in the case matches for architectures that use `case' in | |
8915 | # $output_verbose_cmd can trigger glob expansion during the loop | |
8916 | # eval without this substitution. | |
8917 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" | |
8918 | ||
8919 | for p in `eval $output_verbose_link_cmd`; do | |
8920 | case $p in | |
8921 | ||
8922 | -L* | -R* | -l*) | |
8923 | # Some compilers place space between "-{L,R}" and the path. | |
8924 | # Remove the space. | |
8925 | if test $p = "-L" \ | |
8926 | || test $p = "-R"; then | |
8927 | prev=$p | |
8928 | continue | |
8929 | else | |
8930 | prev= | |
8931 | fi | |
8932 | ||
8933 | if test "$pre_test_object_deps_done" = no; then | |
8934 | case $p in | |
8935 | -L* | -R*) | |
8936 | # Internal compiler library paths should come after those | |
8937 | # provided the user. The postdeps already come after the | |
8938 | # user supplied libs so there is no need to process them. | |
8939 | if test -z "$compiler_lib_search_path_CXX"; then | |
8940 | compiler_lib_search_path_CXX="${prev}${p}" | |
8941 | else | |
8942 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
8943 | fi | |
8944 | ;; | |
8945 | # The "-l" case would never come before the object being | |
8946 | # linked, so don't bother handling this case. | |
8947 | esac | |
8948 | else | |
8949 | if test -z "$postdeps_CXX"; then | |
8950 | postdeps_CXX="${prev}${p}" | |
8951 | else | |
8952 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
8953 | fi | |
8954 | fi | |
8955 | ;; | |
8956 | ||
8957 | *.$objext|*.$libext) | |
8958 | # This assumes that the test object file only shows up | |
8959 | # once in the compiler output. | |
8960 | if test "$p" = "conftest.$objext"; then | |
8961 | pre_test_object_deps_done=yes | |
8962 | continue | |
8963 | fi | |
8964 | ||
8965 | if test "$pre_test_object_deps_done" = no; then | |
8966 | if test -z "$predep_objects_CXX"; then | |
8967 | predep_objects_CXX="$p" | |
8968 | else | |
8969 | predep_objects_CXX="$predep_objects_CXX $p" | |
8970 | fi | |
8971 | else | |
8972 | if test -z "$postdep_objects_CXX"; then | |
8973 | postdep_objects_CXX="$p" | |
8974 | else | |
8975 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
8976 | fi | |
8977 | fi | |
8978 | ;; | |
8979 | ||
8980 | *) ;; # Ignore the rest. | |
8981 | ||
8982 | esac | |
8983 | done | |
8984 | ||
8985 | # Clean up. | |
8986 | rm -f a.out | |
8987 | else | |
8988 | echo "libtool.m4: error: problem compiling C++ test program" | |
8989 | fi | |
8990 | ||
8991 | $rm -f confest.$objext | |
8992 | ||
8993 | case " $postdeps_CXX " in | |
8994 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
8995 | *) archive_cmds_need_lc_CXX=yes ;; | |
8996 | esac | |
8997 | ||
8998 | GCC_CXX="$GXX" | |
8999 | LD_CXX="$LD" | |
9000 | ||
9001 | lt_prog_compiler_wl_CXX= | |
9002 | lt_prog_compiler_pic_CXX= | |
9003 | lt_prog_compiler_static_CXX= | |
9004 | ||
e61fbf76 | 9005 | echo "$as_me:9005: checking for $compiler option to produce PIC" >&5 |
50850385 TJ |
9006 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
9007 | ||
9008 | # C++ specific cases for pic, static, wl, etc. | |
9009 | if test "$GXX" = yes; then | |
9010 | lt_prog_compiler_wl_CXX='-Wl,' | |
9011 | lt_prog_compiler_static_CXX='-static' | |
9012 | ||
9013 | case $host_os in | |
9014 | aix*) | |
9015 | # All AIX code is PIC. | |
9016 | if test "$host_cpu" = ia64; then | |
9017 | # AIX 5 now supports IA64 processor | |
9018 | lt_prog_compiler_static_CXX='-Bstatic' | |
9019 | fi | |
9020 | ;; | |
9021 | amigaos*) | |
9022 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9023 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9024 | # like `-m68040'. | |
9025 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
9026 | ;; | |
9027 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
9028 | # PIC is the default for these OSes. | |
9029 | ;; | |
9030 | cygwin* | mingw* | os2*) | |
9031 | # This hack is so that the source file can tell whether it is being | |
9032 | # built for inclusion in a dll (and should export symbols for example). | |
9033 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
9034 | ;; | |
9035 | darwin* | rhapsody*) | |
9036 | # PIC is the default on this platform | |
9037 | # Common symbols not allowed in MH_DYLIB files | |
9038 | lt_prog_compiler_pic_CXX='-fno-common' | |
9039 | ;; | |
9040 | *djgpp*) | |
9041 | # DJGPP does not support shared libraries at all | |
9042 | lt_prog_compiler_pic_CXX= | |
9043 | ;; | |
9044 | sysv4*MP*) | |
9045 | if test -d /usr/nec; then | |
9046 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
9047 | fi | |
9048 | ;; | |
9049 | hpux*) | |
9050 | # PIC is the default for IA64 HP-UX, but not for PA HP-UX. | |
9051 | if test "$host_cpu" != ia64; then | |
9052 | lt_prog_compiler_pic_CXX='-fPIC' | |
9053 | fi | |
9054 | ;; | |
9055 | *) | |
9056 | lt_prog_compiler_pic_CXX='-fPIC' | |
9057 | ;; | |
9058 | esac | |
9059 | else | |
9060 | case $host_os in | |
9061 | aix4* | aix5*) | |
9062 | # All AIX code is PIC. | |
9063 | if test "$host_cpu" = ia64; then | |
9064 | # AIX 5 now supports IA64 processor | |
9065 | lt_prog_compiler_static_CXX='-Bstatic' | |
9066 | else | |
9067 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
9068 | fi | |
9069 | ;; | |
9070 | chorus*) | |
9071 | case $cc_basename in | |
9072 | cxch68) | |
9073 | # Green Hills C++ Compiler | |
9074 | # _LT_AC_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" | |
9075 | ;; | |
9076 | esac | |
9077 | ;; | |
9078 | dgux*) | |
9079 | case $cc_basename in | |
9080 | ec++) | |
9081 | lt_prog_compiler_pic_CXX='-KPIC' | |
9082 | ;; | |
9083 | ghcx) | |
9084 | # Green Hills C++ Compiler | |
9085 | lt_prog_compiler_pic_CXX='-pic' | |
9086 | ;; | |
9087 | *) | |
9088 | ;; | |
9089 | esac | |
9090 | ;; | |
9091 | freebsd*) | |
9092 | # FreeBSD uses GNU C++ | |
9093 | ;; | |
9094 | hpux9* | hpux10* | hpux11*) | |
9095 | case $cc_basename in | |
9096 | CC) | |
9097 | lt_prog_compiler_wl_CXX='-Wl,' | |
9098 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | |
9099 | if test "$host_cpu" != ia64; then | |
9100 | lt_prog_compiler_pic_CXX='+Z' | |
9101 | fi | |
9102 | ;; | |
9103 | aCC) | |
9104 | lt_prog_compiler_wl_CXX='-Wl,' | |
9105 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | |
9106 | if test "$host_cpu" != ia64; then | |
9107 | lt_prog_compiler_pic_CXX='+Z' | |
9108 | fi | |
9109 | ;; | |
9110 | *) | |
9111 | ;; | |
9112 | esac | |
9113 | ;; | |
9114 | irix5* | irix6* | nonstopux*) | |
9115 | case $cc_basename in | |
9116 | CC) | |
9117 | lt_prog_compiler_wl_CXX='-Wl,' | |
9118 | lt_prog_compiler_static_CXX='-non_shared' | |
9119 | # CC pic flag -KPIC is the default. | |
9120 | ;; | |
9121 | *) | |
9122 | ;; | |
9123 | esac | |
9124 | ;; | |
9125 | linux*) | |
9126 | case $cc_basename in | |
9127 | KCC) | |
9128 | # KAI C++ Compiler | |
9129 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
9130 | lt_prog_compiler_pic_CXX='-fPIC' | |
9131 | ;; | |
9132 | cxx) | |
9133 | # Compaq C++ | |
9134 | # Make sure the PIC flag is empty. It appears that all Alpha | |
9135 | # Linux and Compaq Tru64 Unix objects are PIC. | |
9136 | lt_prog_compiler_pic_CXX= | |
9137 | lt_prog_compiler_static_CXX='-non_shared' | |
9138 | ;; | |
9139 | *) | |
9140 | ;; | |
9141 | esac | |
9142 | ;; | |
9143 | lynxos*) | |
9144 | ;; | |
9145 | m88k*) | |
9146 | ;; | |
9147 | mvs*) | |
9148 | case $cc_basename in | |
9149 | cxx) | |
9150 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
9151 | ;; | |
9152 | *) | |
9153 | ;; | |
9154 | esac | |
9155 | ;; | |
9156 | netbsd*) | |
9157 | ;; | |
9158 | osf3* | osf4* | osf5*) | |
9159 | case $cc_basename in | |
9160 | KCC) | |
9161 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
9162 | ;; | |
9163 | RCC) | |
9164 | # Rational C++ 2.4.1 | |
9165 | lt_prog_compiler_pic_CXX='-pic' | |
9166 | ;; | |
9167 | cxx) | |
9168 | # Digital/Compaq C++ | |
9169 | lt_prog_compiler_wl_CXX='-Wl,' | |
9170 | # Make sure the PIC flag is empty. It appears that all Alpha | |
9171 | # Linux and Compaq Tru64 Unix objects are PIC. | |
9172 | lt_prog_compiler_pic_CXX= | |
9173 | lt_prog_compiler_static_CXX='-non_shared' | |
9174 | ;; | |
9175 | *) | |
9176 | ;; | |
9177 | esac | |
9178 | ;; | |
9179 | psos*) | |
9180 | ;; | |
9181 | sco*) | |
9182 | case $cc_basename in | |
9183 | CC) | |
9184 | lt_prog_compiler_pic_CXX='-fPIC' | |
9185 | ;; | |
9186 | *) | |
9187 | ;; | |
9188 | esac | |
9189 | ;; | |
9190 | solaris*) | |
9191 | case $cc_basename in | |
9192 | CC) | |
9193 | # Sun C++ 4.2, 5.x and Centerline C++ | |
9194 | lt_prog_compiler_pic_CXX='-KPIC' | |
9195 | lt_prog_compiler_static_CXX='-Bstatic' | |
9196 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
9197 | ;; | |
9198 | gcx) | |
9199 | # Green Hills C++ Compiler | |
9200 | lt_prog_compiler_pic_CXX='-PIC' | |
9201 | ;; | |
9202 | *) | |
9203 | ;; | |
9204 | esac | |
9205 | ;; | |
9206 | sunos4*) | |
9207 | case $cc_basename in | |
9208 | CC) | |
9209 | # Sun C++ 4.x | |
9210 | lt_prog_compiler_pic_CXX='-pic' | |
9211 | lt_prog_compiler_static_CXX='-Bstatic' | |
9212 | ;; | |
9213 | lcc) | |
9214 | # Lucid | |
9215 | lt_prog_compiler_pic_CXX='-pic' | |
9216 | ;; | |
9217 | *) | |
9218 | ;; | |
9219 | esac | |
9220 | ;; | |
9221 | tandem*) | |
9222 | case $cc_basename in | |
9223 | NCC) | |
9224 | # NonStop-UX NCC 3.20 | |
9225 | lt_prog_compiler_pic_CXX='-KPIC' | |
9226 | ;; | |
9227 | *) | |
9228 | ;; | |
9229 | esac | |
9230 | ;; | |
9231 | unixware*) | |
9232 | ;; | |
9233 | vxworks*) | |
9234 | ;; | |
9235 | *) | |
9236 | lt_prog_compiler_can_build_shared_CXX=no | |
9237 | ;; | |
9238 | esac | |
9239 | fi | |
9240 | ||
e61fbf76 | 9241 | echo "$as_me:9241: result: $lt_prog_compiler_pic_CXX" >&5 |
50850385 TJ |
9242 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
9243 | ||
9244 | # | |
9245 | # Check to make sure the PIC flag actually works. | |
9246 | # | |
9247 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
e61fbf76 | 9248 | echo "$as_me:9248: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
50850385 TJ |
9249 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
9250 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | |
9251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9252 | else | |
9253 | lt_prog_compiler_pic_works_CXX=no | |
9254 | ac_outfile=conftest.$ac_objext | |
9255 | save_CFLAGS="$CFLAGS" | |
9256 | CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC" | |
9257 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9258 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
9259 | # The compiler can only warn and ignore the option if not recognized | |
9260 | # So say no if there are warnings | |
9261 | if test -s conftest.err; then | |
9262 | # Append any errors to the config.log. | |
9263 | cat conftest.err 1>&5 | |
9264 | else | |
9265 | lt_prog_compiler_pic_works_CXX=yes | |
9266 | fi | |
9267 | fi | |
9268 | $rm conftest* | |
9269 | CFLAGS="$save_CFLAGS" | |
9270 | ||
9271 | fi | |
e61fbf76 | 9272 | echo "$as_me:9272: result: $lt_prog_compiler_pic_works_CXX" >&5 |
50850385 TJ |
9273 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
9274 | ||
9275 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | |
9276 | case $lt_prog_compiler_pic_CXX in | |
9277 | "" | " "*) ;; | |
9278 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
9279 | esac | |
9280 | else | |
9281 | lt_prog_compiler_pic_CXX= | |
9282 | lt_prog_compiler_can_build_shared_CXX=no | |
9283 | fi | |
9284 | ||
9285 | fi | |
9286 | case "$host_os" in | |
9287 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9288 | *djgpp*) | |
9289 | lt_prog_compiler_pic_CXX= | |
9290 | ;; | |
9291 | *) | |
9292 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
9293 | ;; | |
9294 | esac | |
9295 | ||
e61fbf76 | 9296 | echo "$as_me:9296: checking if $compiler supports -c -o file.$ac_objext" >&5 |
50850385 TJ |
9297 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
9298 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | |
9299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9300 | else | |
9301 | lt_cv_prog_compiler_c_o_CXX=no | |
9302 | $rm -r conftest 2>/dev/null | |
9303 | mkdir conftest | |
9304 | cd conftest | |
9305 | mkdir out | |
9306 | save_CXXFLAGS="$CXXFLAGS" | |
9307 | CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext" | |
9308 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9309 | ||
9310 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | |
9311 | # that will create temporary files in the current directory regardless of | |
9312 | # the output directory. Thus, making CWD read-only will cause this test | |
9313 | # to fail, enabling locking or at least warning the user not to do parallel | |
9314 | # builds. | |
9315 | chmod -w . | |
9316 | ||
9317 | if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext | |
9318 | then | |
9319 | # The compiler can only warn and ignore the option if not recognized | |
9320 | # So say no if there are warnings | |
9321 | if test -s out/conftest.err; then | |
9322 | # Append any errors to the config.log. | |
9323 | cat out/conftest.err 1>&5 | |
9324 | else | |
9325 | lt_cv_prog_compiler_c_o_CXX=yes | |
9326 | fi | |
9327 | fi | |
9328 | CXXFLAGS="$save_CXXFLAGS" | |
9329 | chmod u+w . | |
9330 | $rm conftest* out/* | |
9331 | rmdir out | |
9332 | cd .. | |
9333 | rmdir conftest | |
9334 | $rm conftest* | |
9335 | ||
9336 | fi | |
e61fbf76 | 9337 | echo "$as_me:9337: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
50850385 TJ |
9338 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
9339 | ||
50850385 TJ |
9340 | hard_links="nottested" |
9341 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
9342 | # do not overwrite the value of need_locks provided by the user | |
e61fbf76 | 9343 | echo "$as_me:9343: checking if we can lock with hard links" >&5 |
50850385 TJ |
9344 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
9345 | hard_links=yes | |
9346 | $rm conftest* | |
9347 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9348 | touch conftest.a | |
9349 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9350 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
e61fbf76 | 9351 | echo "$as_me:9351: result: $hard_links" >&5 |
50850385 TJ |
9352 | echo "${ECHO_T}$hard_links" >&6 |
9353 | if test "$hard_links" = no; then | |
e61fbf76 | 9354 | { echo "$as_me:9354: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
50850385 TJ |
9355 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
9356 | need_locks=warn | |
9357 | fi | |
9358 | else | |
9359 | need_locks=no | |
9360 | fi | |
9361 | ||
e61fbf76 | 9362 | echo "$as_me:9362: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
50850385 TJ |
9363 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
9364 | ||
9365 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9366 | case $host_os in | |
9367 | aix4* | aix5*) | |
9368 | # If we're using GNU nm, then we don't want the "-C" option. | |
9369 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9370 | if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then | |
9371 | 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' | |
9372 | else | |
9373 | 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' | |
9374 | fi | |
9375 | ;; | |
9376 | cygwin* | mingw* | pw32*) | |
9377 | export_symbols_cmds_CXX="$ltdll_cmds" | |
9378 | ;; | |
9379 | *) | |
9380 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9381 | ;; | |
9382 | esac | |
9383 | ||
e61fbf76 | 9384 | echo "$as_me:9384: result: $ld_shlibs_CXX" >&5 |
50850385 TJ |
9385 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
9386 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
9387 | ||
9388 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
9389 | if test "$GCC" = yes; then | |
9390 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
9391 | fi | |
9392 | ||
9393 | # | |
9394 | # Do we need to explicitly link libc? | |
9395 | # | |
9396 | archive_cmds_need_lc_CXX=yes | |
9397 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
9398 | case $archive_cmds_CXX in | |
9399 | *'~'*) | |
9400 | # FIXME: we may have to deal with multi-command sequences. | |
9401 | ;; | |
9402 | '$CC '*) | |
9403 | # Test whether the compiler implicitly links with -lc since on some | |
9404 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9405 | # to ld, don't add -lc before -lgcc. | |
e61fbf76 | 9406 | echo "$as_me:9406: checking whether -lc should be explicitly linked in" >&5 |
50850385 TJ |
9407 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
9408 | $rm conftest* | |
9409 | echo 'static int dummy;' > conftest.$ac_ext | |
9410 | ||
e61fbf76 | 9411 | if { (eval echo "$as_me:9411: \"$ac_compile\"") >&5 |
50850385 TJ |
9412 | (eval $ac_compile) 2>&5 |
9413 | ac_status=$? | |
e61fbf76 | 9414 | echo "$as_me:9414: \$? = $ac_status" >&5 |
50850385 TJ |
9415 | (exit $ac_status); } 2>conftest.err; then |
9416 | soname=conftest | |
9417 | lib=conftest | |
9418 | libobjs=conftest.$ac_objext | |
9419 | deplibs= | |
9420 | wl=$lt_prog_compiler_wl_CXX | |
9421 | compiler_flags=-v | |
9422 | linker_flags=-v | |
9423 | verstring= | |
9424 | output_objdir=. | |
9425 | libname=conftest | |
9426 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
9427 | allow_undefined_flag_CXX= | |
e61fbf76 | 9428 | if { (eval echo "$as_me:9428: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
50850385 TJ |
9429 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
9430 | ac_status=$? | |
e61fbf76 | 9431 | echo "$as_me:9431: \$? = $ac_status" >&5 |
50850385 TJ |
9432 | (exit $ac_status); } |
9433 | then | |
9434 | archive_cmds_need_lc_CXX=no | |
9435 | else | |
9436 | archive_cmds_need_lc_CXX=yes | |
9437 | fi | |
9438 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
9439 | else | |
9440 | cat conftest.err 1>&5 | |
9441 | fi | |
9442 | $rm conftest* | |
e61fbf76 | 9443 | echo "$as_me:9443: result: $archive_cmds_need_lc_CXX" >&5 |
50850385 TJ |
9444 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
9445 | ;; | |
9446 | esac | |
9447 | fi | |
9448 | ||
e61fbf76 | 9449 | echo "$as_me:9449: checking how to hardcode library paths into programs" >&5 |
50850385 TJ |
9450 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
9451 | hardcode_action_CXX= | |
9452 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ | |
9453 | test -n "$runpath_var CXX"; then | |
9454 | ||
9455 | # We can hardcode non-existant directories. | |
9456 | if test "$hardcode_direct_CXX" != no && | |
9457 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
9458 | # have to relink, otherwise we might link with an installed library | |
9459 | # when we should be linking with a yet-to-be-installed one | |
9460 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
9461 | test "$hardcode_minus_L_CXX" != no; then | |
9462 | # Linking always hardcodes the temporary library directory. | |
9463 | hardcode_action_CXX=relink | |
9464 | else | |
9465 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
9466 | hardcode_action_CXX=immediate | |
9467 | fi | |
9468 | else | |
9469 | # We cannot hardcode anything, or else we can only hardcode existing | |
9470 | # directories. | |
9471 | hardcode_action_CXX=unsupported | |
9472 | fi | |
e61fbf76 | 9473 | echo "$as_me:9473: result: $hardcode_action_CXX" >&5 |
50850385 TJ |
9474 | echo "${ECHO_T}$hardcode_action_CXX" >&6 |
9475 | ||
9476 | if test "$hardcode_action_CXX" = relink; then | |
9477 | # Fast installation is not supported | |
9478 | enable_fast_install=no | |
9479 | elif test "$shlibpath_overrides_runpath" = yes || | |
9480 | test "$enable_shared" = no; then | |
9481 | # Fast installation is not necessary | |
9482 | enable_fast_install=needless | |
9483 | fi | |
9484 | ||
9485 | striplib= | |
9486 | old_striplib= | |
e61fbf76 | 9487 | echo "$as_me:9487: checking whether stripping libraries is possible" >&5 |
50850385 TJ |
9488 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
9489 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
9490 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
9491 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
e61fbf76 | 9492 | echo "$as_me:9492: result: yes" >&5 |
50850385 TJ |
9493 | echo "${ECHO_T}yes" >&6 |
9494 | else | |
e61fbf76 | 9495 | echo "$as_me:9495: result: no" >&5 |
50850385 TJ |
9496 | echo "${ECHO_T}no" >&6 |
9497 | fi | |
9498 | ||
e61fbf76 | 9499 | echo "$as_me:9499: checking dynamic linker characteristics" >&5 |
50850385 TJ |
9500 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
9501 | library_names_spec= | |
9502 | libname_spec='lib$name' | |
9503 | soname_spec= | |
9504 | postinstall_cmds= | |
9505 | postuninstall_cmds= | |
9506 | finish_cmds= | |
9507 | finish_eval= | |
9508 | shlibpath_var= | |
9509 | shlibpath_overrides_runpath=unknown | |
9510 | version_type=none | |
9511 | dynamic_linker="$host_os ld.so" | |
9512 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
9513 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
9514 | need_lib_prefix=unknown | |
9515 | hardcode_into_libs=no | |
9516 | ||
9517 | # when you set need_version to no, make sure it does not cause -set_version | |
9518 | # flags to be left without arguments | |
9519 | need_version=unknown | |
9520 | ||
9521 | case $host_os in | |
9522 | aix3*) | |
9523 | version_type=linux | |
9524 | library_names_spec='${libname}${release}.so$versuffix $libname.a' | |
9525 | shlibpath_var=LIBPATH | |
9526 | ||
9527 | # AIX 3 has no versioning support, so we append a major version to the name. | |
9528 | soname_spec='${libname}${release}.so$major' | |
9529 | ;; | |
9530 | ||
9531 | aix4* | aix5*) | |
9532 | version_type=linux | |
9533 | if test "$host_cpu" = ia64; then | |
9534 | # AIX 5 supports IA64 | |
9535 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' | |
9536 | shlibpath_var=LD_LIBRARY_PATH | |
9537 | else | |
9538 | # With GCC up to 2.95.x, collect2 would create an import file | |
9539 | # for dependence libraries. The import file would start with | |
9540 | # the line `#! .'. This would cause the generated library to | |
9541 | # depend on `.', always an invalid library. This was fixed in | |
9542 | # development snapshots of GCC prior to 3.0. | |
9543 | case $host_os in | |
9544 | aix4 | aix4.[01] | aix4.[01].*) | |
9545 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
9546 | echo ' yes ' | |
9547 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
9548 | : | |
9549 | else | |
9550 | can_build_shared=no | |
9551 | fi | |
9552 | ;; | |
9553 | esac | |
9554 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
9555 | # soname into executable. Probably we can add versioning support to | |
9556 | # collect2, so additional links can be useful in future. | |
9557 | if test "$aix_use_runtimelinking" = yes; then | |
9558 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
9559 | # instead of lib<name>.a to let people know that these are not | |
9560 | # typical AIX shared libraries. | |
9561 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
9562 | else | |
9563 | # We preserve .a as extension for shared libraries through AIX4.2 | |
9564 | # and later when we are not doing run time linking. | |
9565 | library_names_spec='${libname}${release}.a $libname.a' | |
9566 | soname_spec='${libname}${release}.so$major' | |
9567 | fi | |
9568 | shlibpath_var=LIBPATH | |
9569 | fi | |
9570 | ;; | |
9571 | ||
9572 | amigaos*) | |
9573 | library_names_spec='$libname.ixlibrary $libname.a' | |
9574 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
9575 | 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' | |
9576 | ;; | |
9577 | ||
9578 | beos*) | |
9579 | library_names_spec='${libname}.so' | |
9580 | dynamic_linker="$host_os ld.so" | |
9581 | shlibpath_var=LIBRARY_PATH | |
9582 | ;; | |
9583 | ||
9584 | bsdi4*) | |
9585 | version_type=linux | |
9586 | need_version=no | |
9587 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
9588 | soname_spec='${libname}${release}.so$major' | |
9589 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
9590 | shlibpath_var=LD_LIBRARY_PATH | |
9591 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
9592 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
9593 | # the default ld.so.conf also contains /usr/contrib/lib and | |
9594 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
9595 | # libtool to hard-code these into programs | |
9596 | ;; | |
9597 | ||
9598 | cygwin* | mingw* | pw32*) | |
9599 | version_type=windows | |
9600 | need_version=no | |
9601 | need_lib_prefix=no | |
9602 | case $GCC,$host_os in | |
9603 | yes,cygwin*) | |
9604 | library_names_spec='$libname.dll.a' | |
9605 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" | |
9606 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
9607 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ | |
9608 | dldir=$destdir/`dirname \$dlpath`~ | |
9609 | test -d \$dldir || mkdir -p \$dldir~ | |
9610 | $install_prog .libs/$dlname \$dldir/$dlname' | |
9611 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
9612 | dlpath=$dir/\$dldll~ | |
9613 | $rm \$dlpath' | |
9614 | ;; | |
9615 | yes,mingw*) | |
9616 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
9617 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"` | |
9618 | if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then | |
9619 | # It is most probably a Windows format PATH printed by | |
9620 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
9621 | # path with ; separators, and with drive letters. We can handle the | |
9622 | # drive letters (cygwin fileutils understands them), so leave them, | |
9623 | # especially as we might pass files found there to a mingw objdump, | |
9624 | # which wouldn't understand a cygwinified path. Ahh. | |
9625 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` | |
9626 | else | |
9627 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` | |
9628 | fi | |
9629 | ;; | |
9630 | yes,pw32*) | |
9631 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' | |
9632 | ;; | |
9633 | *) | |
9634 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' | |
9635 | ;; | |
9636 | esac | |
9637 | dynamic_linker='Win32 ld.exe' | |
9638 | # FIXME: first we should search . and the directory the executable is in | |
9639 | shlibpath_var=PATH | |
9640 | ;; | |
9641 | ||
9642 | darwin* | rhapsody*) | |
9643 | dynamic_linker="$host_os dyld" | |
9644 | version_type=darwin | |
9645 | need_lib_prefix=no | |
9646 | need_version=no | |
9647 | # FIXME: Relying on posixy $() will cause problems for | |
9648 | # cross-compilation, but unfortunately the echo tests do not | |
9649 | # yet detect zsh echo's removal of \ escapes. | |
9650 | library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' | |
9651 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' | |
9652 | shlibpath_overrides_runpath=yes | |
9653 | shlibpath_var=DYLD_LIBRARY_PATH | |
9654 | ;; | |
9655 | ||
9656 | dgux*) | |
9657 | version_type=linux | |
9658 | need_lib_prefix=no | |
9659 | need_version=no | |
9660 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
9661 | soname_spec='${libname}${release}.so$major' | |
9662 | shlibpath_var=LD_LIBRARY_PATH | |
9663 | ;; | |
9664 | ||
9665 | freebsd1*) | |
9666 | dynamic_linker=no | |
9667 | ;; | |
9668 | ||
9669 | freebsd*) | |
9670 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
9671 | version_type=freebsd-$objformat | |
9672 | case $version_type in | |
9673 | freebsd-elf*) | |
9674 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
9675 | need_version=no | |
9676 | need_lib_prefix=no | |
9677 | ;; | |
9678 | freebsd-*) | |
9679 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' | |
9680 | need_version=yes | |
9681 | ;; | |
9682 | esac | |
9683 | shlibpath_var=LD_LIBRARY_PATH | |
9684 | case $host_os in | |
9685 | freebsd2*) | |
9686 | shlibpath_overrides_runpath=yes | |
9687 | ;; | |
9688 | freebsd3.01* | freebsdelf3.01*) | |
9689 | shlibpath_overrides_runpath=yes | |
9690 | hardcode_into_libs=yes | |
9691 | ;; | |
9692 | *) # from 3.2 on | |
9693 | shlibpath_overrides_runpath=no | |
9694 | hardcode_into_libs=yes | |
9695 | ;; | |
9696 | esac | |
9697 | ;; | |
9698 | ||
9699 | gnu*) | |
9700 | version_type=linux | |
9701 | need_lib_prefix=no | |
9702 | need_version=no | |
9703 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' | |
9704 | soname_spec='${libname}${release}.so$major' | |
9705 | shlibpath_var=LD_LIBRARY_PATH | |
9706 | hardcode_into_libs=yes | |
9707 | ;; | |
9708 | ||
9709 | hpux9* | hpux10* | hpux11*) | |
9710 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
9711 | # link against other versions. | |
9712 | version_type=sunos | |
9713 | need_lib_prefix=no | |
9714 | need_version=no | |
9715 | if test "$host_cpu" = ia64; then | |
9716 | hardcode_into_libs=yes | |
9717 | dynamic_linker="$host_os dld.so" | |
9718 | shlibpath_var=LD_LIBRARY_PATH | |
9719 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9720 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
9721 | soname_spec='${libname}${release}.so$major' | |
9722 | if test "X$HPUX_IA64_MODE" = X32; then | |
9723 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
9724 | else | |
9725 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
9726 | fi | |
9727 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9728 | else | |
9729 | dynamic_linker="$host_os dld.sl" | |
9730 | shlibpath_var=SHLIB_PATH | |
9731 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
9732 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' | |
9733 | soname_spec='${libname}${release}.sl$major' | |
9734 | fi | |
9735 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
9736 | postinstall_cmds='chmod 555 $lib' | |
9737 | ;; | |
9738 | ||
9739 | irix5* | irix6* | nonstopux*) | |
9740 | case $host_os in | |
9741 | nonstopux*) version_type=nonstopux ;; | |
9742 | *) version_type=irix ;; | |
9743 | esac | |
9744 | need_lib_prefix=no | |
9745 | need_version=no | |
9746 | soname_spec='${libname}${release}.so$major' | |
9747 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' | |
9748 | case $host_os in | |
9749 | irix5* | nonstopux*) | |
9750 | libsuff= shlibsuff= | |
9751 | ;; | |
9752 | *) | |
9753 | case $LD in # libtool.m4 will add one of these switches to LD | |
9754 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; | |
9755 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; | |
9756 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
9757 | *) libsuff= shlibsuff= libmagic=never-match;; | |
9758 | esac | |
9759 | ;; | |
9760 | esac | |
9761 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
9762 | shlibpath_overrides_runpath=no | |
9763 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
9764 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
9765 | ;; | |
9766 | ||
9767 | # No shared lib support for Linux oldld, aout, or coff. | |
9768 | linux*oldld* | linux*aout* | linux*coff*) | |
9769 | dynamic_linker=no | |
9770 | ;; | |
9771 | ||
9772 | # This must be Linux ELF. | |
9773 | linux*) | |
9774 | version_type=linux | |
9775 | need_lib_prefix=no | |
9776 | need_version=no | |
9777 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
9778 | soname_spec='${libname}${release}.so$major' | |
9779 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
9780 | libsuff= | |
9781 | if test "x$LINUX_64_MODE" = x64; then | |
9782 | # Some platforms are per default 64-bit, so there's no /lib64 | |
9783 | if test -d /lib64; then | |
9784 | libsuff=64 | |
9785 | fi | |
9786 | fi | |
9787 | shlibpath_var=LD_LIBRARY_PATH | |
9788 | shlibpath_overrides_runpath=no | |
9789 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" | |
9790 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
9791 | # This implies no fast_install, which is unacceptable. | |
9792 | # Some rework will be needed to allow for fast_install | |
9793 | # before this can be enabled. | |
9794 | hardcode_into_libs=yes | |
9795 | ||
9796 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
9797 | # powerpc, because MkLinux only supported shared libraries with the | |
9798 | # GNU dynamic linker. Since this was broken with cross compilers, | |
9799 | # most powerpc-linux boxes support dynamic linking these days and | |
9800 | # people can always --disable-shared, the test was removed, and we | |
9801 | # assume the GNU/Linux dynamic linker is in use. | |
9802 | dynamic_linker='GNU/Linux ld.so' | |
9803 | ;; | |
9804 | ||
9805 | netbsd*) | |
9806 | version_type=sunos | |
9807 | need_lib_prefix=no | |
9808 | need_version=no | |
9809 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
9810 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
9811 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9812 | dynamic_linker='NetBSD (a.out) ld.so' | |
9813 | else | |
9814 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' | |
9815 | soname_spec='${libname}${release}.so$major' | |
9816 | dynamic_linker='NetBSD ld.elf_so' | |
9817 | fi | |
9818 | shlibpath_var=LD_LIBRARY_PATH | |
9819 | shlibpath_overrides_runpath=yes | |
9820 | hardcode_into_libs=yes | |
9821 | ;; | |
9822 | ||
9823 | newsos6) | |
9824 | version_type=linux | |
9825 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
9826 | shlibpath_var=LD_LIBRARY_PATH | |
9827 | shlibpath_overrides_runpath=yes | |
9828 | ;; | |
9829 | ||
9830 | nto-qnx) | |
9831 | version_type=linux | |
9832 | need_lib_prefix=no | |
9833 | need_version=no | |
9834 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
9835 | soname_spec='${libname}${release}.so$major' | |
9836 | shlibpath_var=LD_LIBRARY_PATH | |
9837 | shlibpath_overrides_runpath=yes | |
9838 | ;; | |
9839 | ||
9840 | openbsd*) | |
9841 | version_type=sunos | |
9842 | need_lib_prefix=no | |
9843 | need_version=no | |
9844 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
9845 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9846 | shlibpath_var=LD_LIBRARY_PATH | |
9847 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9848 | case $host_os in | |
9849 | openbsd2.[89] | openbsd2.[89].*) | |
9850 | shlibpath_overrides_runpath=no | |
9851 | ;; | |
9852 | *) | |
9853 | shlibpath_overrides_runpath=yes | |
9854 | ;; | |
9855 | esac | |
9856 | else | |
9857 | shlibpath_overrides_runpath=yes | |
9858 | fi | |
9859 | ;; | |
9860 | ||
9861 | os2*) | |
9862 | libname_spec='$name' | |
9863 | need_lib_prefix=no | |
9864 | library_names_spec='$libname.dll $libname.a' | |
9865 | dynamic_linker='OS/2 ld.exe' | |
9866 | shlibpath_var=LIBPATH | |
9867 | ;; | |
9868 | ||
9869 | osf3* | osf4* | osf5*) | |
9870 | version_type=osf | |
9871 | need_lib_prefix=no | |
9872 | need_version=no | |
9873 | soname_spec='${libname}${release}.so' | |
9874 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
9875 | shlibpath_var=LD_LIBRARY_PATH | |
9876 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9877 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
9878 | ;; | |
9879 | ||
9880 | sco3.2v5*) | |
9881 | version_type=osf | |
9882 | soname_spec='${libname}${release}.so$major' | |
9883 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
9884 | shlibpath_var=LD_LIBRARY_PATH | |
9885 | ;; | |
9886 | ||
9887 | solaris*) | |
9888 | version_type=linux | |
9889 | need_lib_prefix=no | |
9890 | need_version=no | |
9891 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
9892 | soname_spec='${libname}${release}.so$major' | |
9893 | shlibpath_var=LD_LIBRARY_PATH | |
9894 | shlibpath_overrides_runpath=yes | |
9895 | hardcode_into_libs=yes | |
9896 | # ldd complains unless libraries are executable | |
9897 | postinstall_cmds='chmod +x $lib' | |
9898 | ;; | |
9899 | ||
9900 | sunos4*) | |
9901 | version_type=sunos | |
9902 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
9903 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
9904 | shlibpath_var=LD_LIBRARY_PATH | |
9905 | shlibpath_overrides_runpath=yes | |
9906 | if test "$with_gnu_ld" = yes; then | |
9907 | need_lib_prefix=no | |
9908 | fi | |
9909 | need_version=yes | |
9910 | ;; | |
9911 | ||
9912 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9913 | version_type=linux | |
9914 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
9915 | soname_spec='${libname}${release}.so$major' | |
9916 | shlibpath_var=LD_LIBRARY_PATH | |
9917 | case $host_vendor in | |
9918 | sni) | |
9919 | shlibpath_overrides_runpath=no | |
9920 | ;; | |
9921 | motorola) | |
9922 | need_lib_prefix=no | |
9923 | need_version=no | |
9924 | shlibpath_overrides_runpath=no | |
9925 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
9926 | ;; | |
9927 | esac | |
9928 | ;; | |
9929 | ||
9930 | sysv4*MP*) | |
9931 | if test -d /usr/nec ;then | |
9932 | version_type=linux | |
9933 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' | |
9934 | soname_spec='$libname.so.$major' | |
9935 | shlibpath_var=LD_LIBRARY_PATH | |
9936 | fi | |
9937 | ;; | |
9938 | ||
9939 | uts4*) | |
9940 | version_type=linux | |
9941 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
9942 | soname_spec='${libname}${release}.so$major' | |
9943 | shlibpath_var=LD_LIBRARY_PATH | |
9944 | ;; | |
9945 | ||
9946 | *) | |
9947 | dynamic_linker=no | |
9948 | ;; | |
9949 | esac | |
e61fbf76 | 9950 | echo "$as_me:9950: result: $dynamic_linker" >&5 |
50850385 TJ |
9951 | echo "${ECHO_T}$dynamic_linker" >&6 |
9952 | test "$dynamic_linker" = no && can_build_shared=no | |
9953 | ||
9954 | if test "x$enable_dlopen" != xyes; then | |
9955 | enable_dlopen=unknown | |
9956 | enable_dlopen_self=unknown | |
9957 | enable_dlopen_self_static=unknown | |
9958 | else | |
9959 | lt_cv_dlopen=no | |
9960 | lt_cv_dlopen_libs= | |
9961 | ||
9962 | case $host_os in | |
9963 | beos*) | |
9964 | lt_cv_dlopen="load_add_on" | |
9965 | lt_cv_dlopen_libs= | |
9966 | lt_cv_dlopen_self=yes | |
9967 | ;; | |
9968 | ||
9969 | cygwin* | mingw* | pw32*) | |
9970 | lt_cv_dlopen="LoadLibrary" | |
9971 | lt_cv_dlopen_libs= | |
9972 | ;; | |
9973 | ||
9974 | *) | |
e61fbf76 | 9975 | echo "$as_me:9975: checking for shl_load" >&5 |
50850385 TJ |
9976 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
9977 | if test "${ac_cv_func_shl_load+set}" = set; then | |
9978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9979 | else | |
9980 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 9981 | #line 9981 "configure" |
50850385 TJ |
9982 | #include "confdefs.h" |
9983 | /* System header to define __stub macros and hopefully few prototypes, | |
9984 | which can conflict with char shl_load (); below. */ | |
9985 | #include <assert.h> | |
9986 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9987 | #ifdef __cplusplus | |
9988 | extern "C" | |
9989 | #endif | |
9990 | /* We use char because int might match the return type of a gcc2 | |
9991 | builtin and then its argument prototype would still apply. */ | |
9992 | char shl_load (); | |
9993 | char (*f) (); | |
9994 | ||
50850385 TJ |
9995 | int |
9996 | main () | |
9997 | { | |
9998 | /* The GNU C library defines this for functions which it implements | |
9999 | to always fail with ENOSYS. Some functions are actually named | |
10000 | something starting with __ and the normal name is an alias. */ | |
10001 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
10002 | choke me | |
10003 | #else | |
10004 | f = shl_load; | |
10005 | #endif | |
10006 | ||
10007 | ; | |
10008 | return 0; | |
10009 | } | |
10010 | _ACEOF | |
10011 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 10012 | if { (eval echo "$as_me:10012: \"$ac_link\"") >&5 |
50850385 TJ |
10013 | (eval $ac_link) 2>&5 |
10014 | ac_status=$? | |
e61fbf76 | 10015 | echo "$as_me:10015: \$? = $ac_status" >&5 |
50850385 TJ |
10016 | (exit $ac_status); } && |
10017 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 10018 | { (eval echo "$as_me:10018: \"$ac_try\"") >&5 |
50850385 TJ |
10019 | (eval $ac_try) 2>&5 |
10020 | ac_status=$? | |
e61fbf76 | 10021 | echo "$as_me:10021: \$? = $ac_status" >&5 |
50850385 TJ |
10022 | (exit $ac_status); }; }; then |
10023 | ac_cv_func_shl_load=yes | |
10024 | else | |
10025 | echo "$as_me: failed program was:" >&5 | |
10026 | cat conftest.$ac_ext >&5 | |
10027 | ac_cv_func_shl_load=no | |
10028 | fi | |
10029 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10030 | fi | |
e61fbf76 | 10031 | echo "$as_me:10031: result: $ac_cv_func_shl_load" >&5 |
50850385 TJ |
10032 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
10033 | if test $ac_cv_func_shl_load = yes; then | |
10034 | lt_cv_dlopen="shl_load" | |
10035 | else | |
e61fbf76 | 10036 | echo "$as_me:10036: checking for shl_load in -ldld" >&5 |
50850385 TJ |
10037 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
10038 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
10039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10040 | else | |
10041 | ac_check_lib_save_LIBS=$LIBS | |
10042 | LIBS="-ldld $LIBS" | |
10043 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 10044 | #line 10044 "configure" |
50850385 TJ |
10045 | #include "confdefs.h" |
10046 | ||
10047 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10048 | #ifdef __cplusplus | |
10049 | extern "C" | |
10050 | #endif | |
10051 | /* We use char because int might match the return type of a gcc2 | |
10052 | builtin and then its argument prototype would still apply. */ | |
10053 | char shl_load (); | |
50850385 TJ |
10054 | int |
10055 | main () | |
10056 | { | |
10057 | shl_load (); | |
10058 | ; | |
10059 | return 0; | |
10060 | } | |
10061 | _ACEOF | |
10062 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 10063 | if { (eval echo "$as_me:10063: \"$ac_link\"") >&5 |
50850385 TJ |
10064 | (eval $ac_link) 2>&5 |
10065 | ac_status=$? | |
e61fbf76 | 10066 | echo "$as_me:10066: \$? = $ac_status" >&5 |
50850385 TJ |
10067 | (exit $ac_status); } && |
10068 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 10069 | { (eval echo "$as_me:10069: \"$ac_try\"") >&5 |
50850385 TJ |
10070 | (eval $ac_try) 2>&5 |
10071 | ac_status=$? | |
e61fbf76 | 10072 | echo "$as_me:10072: \$? = $ac_status" >&5 |
50850385 TJ |
10073 | (exit $ac_status); }; }; then |
10074 | ac_cv_lib_dld_shl_load=yes | |
10075 | else | |
10076 | echo "$as_me: failed program was:" >&5 | |
10077 | cat conftest.$ac_ext >&5 | |
10078 | ac_cv_lib_dld_shl_load=no | |
10079 | fi | |
10080 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10081 | LIBS=$ac_check_lib_save_LIBS | |
10082 | fi | |
e61fbf76 | 10083 | echo "$as_me:10083: result: $ac_cv_lib_dld_shl_load" >&5 |
50850385 TJ |
10084 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
10085 | if test $ac_cv_lib_dld_shl_load = yes; then | |
10086 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
10087 | else | |
e61fbf76 | 10088 | echo "$as_me:10088: checking for dlopen" >&5 |
50850385 TJ |
10089 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
10090 | if test "${ac_cv_func_dlopen+set}" = set; then | |
10091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10092 | else | |
10093 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 10094 | #line 10094 "configure" |
50850385 TJ |
10095 | #include "confdefs.h" |
10096 | /* System header to define __stub macros and hopefully few prototypes, | |
10097 | which can conflict with char dlopen (); below. */ | |
10098 | #include <assert.h> | |
10099 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10100 | #ifdef __cplusplus | |
10101 | extern "C" | |
10102 | #endif | |
10103 | /* We use char because int might match the return type of a gcc2 | |
10104 | builtin and then its argument prototype would still apply. */ | |
10105 | char dlopen (); | |
10106 | char (*f) (); | |
10107 | ||
50850385 TJ |
10108 | int |
10109 | main () | |
10110 | { | |
10111 | /* The GNU C library defines this for functions which it implements | |
10112 | to always fail with ENOSYS. Some functions are actually named | |
10113 | something starting with __ and the normal name is an alias. */ | |
10114 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
10115 | choke me | |
10116 | #else | |
10117 | f = dlopen; | |
10118 | #endif | |
10119 | ||
10120 | ; | |
10121 | return 0; | |
10122 | } | |
10123 | _ACEOF | |
10124 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 10125 | if { (eval echo "$as_me:10125: \"$ac_link\"") >&5 |
50850385 TJ |
10126 | (eval $ac_link) 2>&5 |
10127 | ac_status=$? | |
e61fbf76 | 10128 | echo "$as_me:10128: \$? = $ac_status" >&5 |
50850385 TJ |
10129 | (exit $ac_status); } && |
10130 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 10131 | { (eval echo "$as_me:10131: \"$ac_try\"") >&5 |
50850385 TJ |
10132 | (eval $ac_try) 2>&5 |
10133 | ac_status=$? | |
e61fbf76 | 10134 | echo "$as_me:10134: \$? = $ac_status" >&5 |
50850385 TJ |
10135 | (exit $ac_status); }; }; then |
10136 | ac_cv_func_dlopen=yes | |
10137 | else | |
10138 | echo "$as_me: failed program was:" >&5 | |
10139 | cat conftest.$ac_ext >&5 | |
10140 | ac_cv_func_dlopen=no | |
10141 | fi | |
10142 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10143 | fi | |
e61fbf76 | 10144 | echo "$as_me:10144: result: $ac_cv_func_dlopen" >&5 |
50850385 TJ |
10145 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
10146 | if test $ac_cv_func_dlopen = yes; then | |
10147 | lt_cv_dlopen="dlopen" | |
10148 | else | |
e61fbf76 | 10149 | echo "$as_me:10149: checking for dlopen in -ldl" >&5 |
50850385 TJ |
10150 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
10151 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
10152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10153 | else | |
10154 | ac_check_lib_save_LIBS=$LIBS | |
10155 | LIBS="-ldl $LIBS" | |
10156 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 10157 | #line 10157 "configure" |
50850385 TJ |
10158 | #include "confdefs.h" |
10159 | ||
10160 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10161 | #ifdef __cplusplus | |
10162 | extern "C" | |
10163 | #endif | |
10164 | /* We use char because int might match the return type of a gcc2 | |
10165 | builtin and then its argument prototype would still apply. */ | |
10166 | char dlopen (); | |
50850385 TJ |
10167 | int |
10168 | main () | |
10169 | { | |
10170 | dlopen (); | |
10171 | ; | |
10172 | return 0; | |
10173 | } | |
10174 | _ACEOF | |
10175 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 10176 | if { (eval echo "$as_me:10176: \"$ac_link\"") >&5 |
50850385 TJ |
10177 | (eval $ac_link) 2>&5 |
10178 | ac_status=$? | |
e61fbf76 | 10179 | echo "$as_me:10179: \$? = $ac_status" >&5 |
50850385 TJ |
10180 | (exit $ac_status); } && |
10181 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 10182 | { (eval echo "$as_me:10182: \"$ac_try\"") >&5 |
50850385 TJ |
10183 | (eval $ac_try) 2>&5 |
10184 | ac_status=$? | |
e61fbf76 | 10185 | echo "$as_me:10185: \$? = $ac_status" >&5 |
50850385 TJ |
10186 | (exit $ac_status); }; }; then |
10187 | ac_cv_lib_dl_dlopen=yes | |
10188 | else | |
10189 | echo "$as_me: failed program was:" >&5 | |
10190 | cat conftest.$ac_ext >&5 | |
10191 | ac_cv_lib_dl_dlopen=no | |
10192 | fi | |
10193 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10194 | LIBS=$ac_check_lib_save_LIBS | |
10195 | fi | |
e61fbf76 | 10196 | echo "$as_me:10196: result: $ac_cv_lib_dl_dlopen" >&5 |
50850385 TJ |
10197 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
10198 | if test $ac_cv_lib_dl_dlopen = yes; then | |
10199 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10200 | else | |
e61fbf76 | 10201 | echo "$as_me:10201: checking for dlopen in -lsvld" >&5 |
50850385 TJ |
10202 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
10203 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
10204 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10205 | else | |
10206 | ac_check_lib_save_LIBS=$LIBS | |
10207 | LIBS="-lsvld $LIBS" | |
10208 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 10209 | #line 10209 "configure" |
50850385 TJ |
10210 | #include "confdefs.h" |
10211 | ||
10212 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10213 | #ifdef __cplusplus | |
10214 | extern "C" | |
10215 | #endif | |
10216 | /* We use char because int might match the return type of a gcc2 | |
10217 | builtin and then its argument prototype would still apply. */ | |
10218 | char dlopen (); | |
50850385 TJ |
10219 | int |
10220 | main () | |
10221 | { | |
10222 | dlopen (); | |
10223 | ; | |
10224 | return 0; | |
10225 | } | |
10226 | _ACEOF | |
10227 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 10228 | if { (eval echo "$as_me:10228: \"$ac_link\"") >&5 |
50850385 TJ |
10229 | (eval $ac_link) 2>&5 |
10230 | ac_status=$? | |
e61fbf76 | 10231 | echo "$as_me:10231: \$? = $ac_status" >&5 |
50850385 TJ |
10232 | (exit $ac_status); } && |
10233 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 10234 | { (eval echo "$as_me:10234: \"$ac_try\"") >&5 |
50850385 TJ |
10235 | (eval $ac_try) 2>&5 |
10236 | ac_status=$? | |
e61fbf76 | 10237 | echo "$as_me:10237: \$? = $ac_status" >&5 |
50850385 TJ |
10238 | (exit $ac_status); }; }; then |
10239 | ac_cv_lib_svld_dlopen=yes | |
10240 | else | |
10241 | echo "$as_me: failed program was:" >&5 | |
10242 | cat conftest.$ac_ext >&5 | |
10243 | ac_cv_lib_svld_dlopen=no | |
10244 | fi | |
10245 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10246 | LIBS=$ac_check_lib_save_LIBS | |
10247 | fi | |
e61fbf76 | 10248 | echo "$as_me:10248: result: $ac_cv_lib_svld_dlopen" >&5 |
50850385 TJ |
10249 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
10250 | if test $ac_cv_lib_svld_dlopen = yes; then | |
10251 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
10252 | else | |
e61fbf76 | 10253 | echo "$as_me:10253: checking for dld_link in -ldld" >&5 |
50850385 TJ |
10254 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
10255 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
10256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10257 | else | |
10258 | ac_check_lib_save_LIBS=$LIBS | |
10259 | LIBS="-ldld $LIBS" | |
10260 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 10261 | #line 10261 "configure" |
50850385 TJ |
10262 | #include "confdefs.h" |
10263 | ||
10264 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10265 | #ifdef __cplusplus | |
10266 | extern "C" | |
10267 | #endif | |
10268 | /* We use char because int might match the return type of a gcc2 | |
10269 | builtin and then its argument prototype would still apply. */ | |
10270 | char dld_link (); | |
50850385 TJ |
10271 | int |
10272 | main () | |
10273 | { | |
10274 | dld_link (); | |
10275 | ; | |
10276 | return 0; | |
10277 | } | |
10278 | _ACEOF | |
10279 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 10280 | if { (eval echo "$as_me:10280: \"$ac_link\"") >&5 |
50850385 TJ |
10281 | (eval $ac_link) 2>&5 |
10282 | ac_status=$? | |
e61fbf76 | 10283 | echo "$as_me:10283: \$? = $ac_status" >&5 |
50850385 TJ |
10284 | (exit $ac_status); } && |
10285 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 10286 | { (eval echo "$as_me:10286: \"$ac_try\"") >&5 |
50850385 TJ |
10287 | (eval $ac_try) 2>&5 |
10288 | ac_status=$? | |
e61fbf76 | 10289 | echo "$as_me:10289: \$? = $ac_status" >&5 |
50850385 TJ |
10290 | (exit $ac_status); }; }; then |
10291 | ac_cv_lib_dld_dld_link=yes | |
10292 | else | |
10293 | echo "$as_me: failed program was:" >&5 | |
10294 | cat conftest.$ac_ext >&5 | |
10295 | ac_cv_lib_dld_dld_link=no | |
10296 | fi | |
10297 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10298 | LIBS=$ac_check_lib_save_LIBS | |
10299 | fi | |
e61fbf76 | 10300 | echo "$as_me:10300: result: $ac_cv_lib_dld_dld_link" >&5 |
50850385 TJ |
10301 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
10302 | if test $ac_cv_lib_dld_dld_link = yes; then | |
10303 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
10304 | fi | |
10305 | ||
50850385 TJ |
10306 | fi |
10307 | ||
50850385 TJ |
10308 | fi |
10309 | ||
50850385 TJ |
10310 | fi |
10311 | ||
50850385 TJ |
10312 | fi |
10313 | ||
50850385 TJ |
10314 | fi |
10315 | ||
10316 | ;; | |
10317 | esac | |
10318 | ||
10319 | if test "x$lt_cv_dlopen" != xno; then | |
10320 | enable_dlopen=yes | |
10321 | else | |
10322 | enable_dlopen=no | |
10323 | fi | |
10324 | ||
10325 | case $lt_cv_dlopen in | |
10326 | dlopen) | |
10327 | save_CPPFLAGS="$CPPFLAGS" | |
10328 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
10329 | ||
10330 | save_LDFLAGS="$LDFLAGS" | |
10331 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
10332 | ||
10333 | save_LIBS="$LIBS" | |
10334 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
10335 | ||
e61fbf76 | 10336 | echo "$as_me:10336: checking whether a program can dlopen itself" >&5 |
50850385 TJ |
10337 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
10338 | if test "${lt_cv_dlopen_self+set}" = set; then | |
10339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10340 | else | |
10341 | if test "$cross_compiling" = yes; then : | |
10342 | lt_cv_dlopen_self=cross | |
10343 | else | |
10344 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10345 | lt_status=$lt_dlunknown | |
10346 | cat > conftest.$ac_ext <<EOF | |
e61fbf76 | 10347 | #line 10347 "configure" |
50850385 TJ |
10348 | #include "confdefs.h" |
10349 | ||
10350 | #if HAVE_DLFCN_H | |
10351 | #include <dlfcn.h> | |
10352 | #endif | |
10353 | ||
10354 | #include <stdio.h> | |
10355 | ||
10356 | #ifdef RTLD_GLOBAL | |
10357 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10358 | #else | |
10359 | # ifdef DL_GLOBAL | |
10360 | # define LT_DLGLOBAL DL_GLOBAL | |
10361 | # else | |
10362 | # define LT_DLGLOBAL 0 | |
10363 | # endif | |
10364 | #endif | |
10365 | ||
10366 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10367 | find out it does not work in some platform. */ | |
10368 | #ifndef LT_DLLAZY_OR_NOW | |
10369 | # ifdef RTLD_LAZY | |
10370 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10371 | # else | |
10372 | # ifdef DL_LAZY | |
10373 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10374 | # else | |
10375 | # ifdef RTLD_NOW | |
10376 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10377 | # else | |
10378 | # ifdef DL_NOW | |
10379 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10380 | # else | |
10381 | # define LT_DLLAZY_OR_NOW 0 | |
10382 | # endif | |
10383 | # endif | |
10384 | # endif | |
10385 | # endif | |
10386 | #endif | |
10387 | ||
10388 | #ifdef __cplusplus | |
10389 | extern "C" void exit (int); | |
10390 | #endif | |
10391 | ||
10392 | void fnord() { int i=42;} | |
10393 | int main () | |
10394 | { | |
10395 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10396 | int status = $lt_dlunknown; | |
10397 | ||
10398 | if (self) | |
10399 | { | |
10400 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10401 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10402 | /* dlclose (self); */ | |
10403 | } | |
10404 | ||
10405 | exit (status); | |
10406 | } | |
10407 | EOF | |
e61fbf76 | 10408 | if { (eval echo "$as_me:10408: \"$ac_link\"") >&5 |
50850385 TJ |
10409 | (eval $ac_link) 2>&5 |
10410 | ac_status=$? | |
e61fbf76 | 10411 | echo "$as_me:10411: \$? = $ac_status" >&5 |
50850385 TJ |
10412 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
10413 | (./conftest; exit; ) 2>/dev/null | |
10414 | lt_status=$? | |
10415 | case x$lt_status in | |
10416 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
10417 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
10418 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
10419 | esac | |
10420 | else : | |
10421 | # compilation failed | |
10422 | lt_cv_dlopen_self=no | |
10423 | fi | |
10424 | fi | |
10425 | rm -fr conftest* | |
10426 | ||
50850385 | 10427 | fi |
e61fbf76 | 10428 | echo "$as_me:10428: result: $lt_cv_dlopen_self" >&5 |
50850385 TJ |
10429 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
10430 | ||
10431 | if test "x$lt_cv_dlopen_self" = xyes; then | |
10432 | LDFLAGS="$LDFLAGS $link_static_flag" | |
e61fbf76 | 10433 | echo "$as_me:10433: checking whether a statically linked program can dlopen itself" >&5 |
50850385 TJ |
10434 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
10435 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
10436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10437 | else | |
10438 | if test "$cross_compiling" = yes; then : | |
10439 | lt_cv_dlopen_self_static=cross | |
10440 | else | |
10441 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10442 | lt_status=$lt_dlunknown | |
10443 | cat > conftest.$ac_ext <<EOF | |
e61fbf76 | 10444 | #line 10444 "configure" |
50850385 TJ |
10445 | #include "confdefs.h" |
10446 | ||
10447 | #if HAVE_DLFCN_H | |
10448 | #include <dlfcn.h> | |
10449 | #endif | |
10450 | ||
10451 | #include <stdio.h> | |
10452 | ||
10453 | #ifdef RTLD_GLOBAL | |
10454 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10455 | #else | |
10456 | # ifdef DL_GLOBAL | |
10457 | # define LT_DLGLOBAL DL_GLOBAL | |
10458 | # else | |
10459 | # define LT_DLGLOBAL 0 | |
10460 | # endif | |
10461 | #endif | |
10462 | ||
10463 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10464 | find out it does not work in some platform. */ | |
10465 | #ifndef LT_DLLAZY_OR_NOW | |
10466 | # ifdef RTLD_LAZY | |
10467 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10468 | # else | |
10469 | # ifdef DL_LAZY | |
10470 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10471 | # else | |
10472 | # ifdef RTLD_NOW | |
10473 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10474 | # else | |
10475 | # ifdef DL_NOW | |
10476 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10477 | # else | |
10478 | # define LT_DLLAZY_OR_NOW 0 | |
10479 | # endif | |
10480 | # endif | |
10481 | # endif | |
10482 | # endif | |
10483 | #endif | |
10484 | ||
10485 | #ifdef __cplusplus | |
10486 | extern "C" void exit (int); | |
10487 | #endif | |
10488 | ||
10489 | void fnord() { int i=42;} | |
10490 | int main () | |
10491 | { | |
10492 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10493 | int status = $lt_dlunknown; | |
10494 | ||
10495 | if (self) | |
10496 | { | |
10497 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10498 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10499 | /* dlclose (self); */ | |
10500 | } | |
10501 | ||
10502 | exit (status); | |
10503 | } | |
10504 | EOF | |
e61fbf76 | 10505 | if { (eval echo "$as_me:10505: \"$ac_link\"") >&5 |
50850385 TJ |
10506 | (eval $ac_link) 2>&5 |
10507 | ac_status=$? | |
e61fbf76 | 10508 | echo "$as_me:10508: \$? = $ac_status" >&5 |
50850385 TJ |
10509 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
10510 | (./conftest; exit; ) 2>/dev/null | |
10511 | lt_status=$? | |
10512 | case x$lt_status in | |
10513 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
10514 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
10515 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
10516 | esac | |
10517 | else : | |
10518 | # compilation failed | |
10519 | lt_cv_dlopen_self_static=no | |
10520 | fi | |
10521 | fi | |
10522 | rm -fr conftest* | |
10523 | ||
50850385 | 10524 | fi |
e61fbf76 | 10525 | echo "$as_me:10525: result: $lt_cv_dlopen_self_static" >&5 |
50850385 TJ |
10526 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
10527 | fi | |
10528 | ||
10529 | CPPFLAGS="$save_CPPFLAGS" | |
10530 | LDFLAGS="$save_LDFLAGS" | |
10531 | LIBS="$save_LIBS" | |
10532 | ;; | |
10533 | esac | |
10534 | ||
10535 | case $lt_cv_dlopen_self in | |
10536 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
10537 | *) enable_dlopen_self=unknown ;; | |
10538 | esac | |
10539 | ||
10540 | case $lt_cv_dlopen_self_static in | |
10541 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
10542 | *) enable_dlopen_self_static=unknown ;; | |
10543 | esac | |
10544 | fi | |
10545 | ||
50850385 TJ |
10546 | # The else clause should only fire when bootstrapping the |
10547 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
10548 | # with your package, and you will get complaints that there are | |
10549 | # no rules to generate ltmain.sh. | |
10550 | if test -f "$ltmain"; then | |
10551 | # Now quote all the things that may contain metacharacters while being | |
10552 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
10553 | # variables and quote the copies for generation of the libtool script. | |
10554 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \ | |
10555 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
10556 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
10557 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
10558 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
10559 | lt_cv_sys_global_symbol_to_c_name_address \ | |
10560 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
10561 | old_postinstall_cmds old_postuninstall_cmds \ | |
10562 | compiler_CXX \ | |
10563 | CC_CXX \ | |
10564 | LD_CXX \ | |
10565 | lt_prog_compiler_wl_CXX \ | |
10566 | lt_prog_compiler_pic_CXX \ | |
10567 | lt_prog_compiler_static_CXX \ | |
10568 | lt_prog_compiler_no_builtin_flag_CXX \ | |
10569 | export_dynamic_flag_spec_CXX \ | |
10570 | thread_safe_flag_spec_CXX \ | |
10571 | whole_archive_flag_spec_CXX \ | |
10572 | old_archive_cmds_CXX \ | |
10573 | old_archive_from_new_cmds_CXX \ | |
10574 | predep_objects_CXX \ | |
10575 | postdep_objects_CXX \ | |
10576 | predeps_CXX \ | |
10577 | postdeps_CXX \ | |
10578 | compiler_lib_search_path_CXX \ | |
10579 | archive_cmds_CXX \ | |
10580 | archive_expsym_cmds_CXX \ | |
10581 | postinstall_cmds_CXX \ | |
10582 | postuninstall_cmds_CXX \ | |
10583 | old_archive_from_expsyms_cmds_CXX \ | |
10584 | allow_undefined_flag_CXX \ | |
10585 | no_undefined_flag_CXX \ | |
10586 | export_symbols_cmds_CXX \ | |
10587 | hardcode_libdir_flag_spec_CXX \ | |
10588 | hardcode_libdir_separator_CXX \ | |
10589 | lt_cv_prog_compiler_c_o_CXX \ | |
10590 | exclude_expsyms_CXX \ | |
10591 | include_expsyms_CXX; do | |
10592 | ||
10593 | case $var in | |
10594 | old_archive_cmds_CXX | \ | |
10595 | old_archive_from_new_cmds_CXX | \ | |
10596 | archive_cmds_CXX | \ | |
10597 | archive_expsym_cmds_CXX | \ | |
10598 | old_archive_from_expsyms_cmds_CXX | \ | |
10599 | export_symbols_cmds_CXX | \ | |
10600 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
10601 | postinstall_cmds | postuninstall_cmds | \ | |
10602 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
10603 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
10604 | # Double-quote double-evaled strings. | |
10605 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
10606 | ;; | |
10607 | *) | |
10608 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
10609 | ;; | |
10610 | esac | |
10611 | done | |
10612 | ||
10613 | case $lt_echo in | |
10614 | *'\$0 --fallback-echo"') | |
10615 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
10616 | ;; | |
10617 | esac | |
10618 | ||
10619 | cfgfile="$ofile" | |
10620 | ||
10621 | cat <<__EOF__ >> "$cfgfile" | |
10622 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
10623 | ||
10624 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
10625 | ||
10626 | # Shell to use when invoking shell scripts. | |
10627 | SHELL=$lt_SHELL | |
10628 | ||
10629 | # Whether or not to build shared libraries. | |
10630 | build_libtool_libs=$enable_shared | |
10631 | ||
10632 | # Whether or not to build static libraries. | |
10633 | build_old_libs=$enable_static | |
10634 | ||
10635 | # Whether or not to add -lc for building shared libraries. | |
10636 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
10637 | ||
10638 | # Whether or not to optimize for fast installation. | |
10639 | fast_install=$enable_fast_install | |
10640 | ||
10641 | # The host system. | |
10642 | host_alias=$host_alias | |
10643 | host=$host | |
10644 | ||
10645 | # An echo program that does not interpret backslashes. | |
10646 | echo=$lt_echo | |
10647 | ||
10648 | # The archiver. | |
10649 | AR=$lt_AR | |
10650 | AR_FLAGS=$lt_AR_FLAGS | |
10651 | ||
10652 | # A C compiler. | |
10653 | LTCC=$lt_LTCC | |
10654 | ||
10655 | # A language-specific compiler. | |
10656 | CC=$lt_compiler_CXX | |
10657 | ||
10658 | # Is the compiler the GNU C compiler? | |
10659 | with_gcc=$GCC_CXX | |
10660 | ||
10661 | # The linker used to build libraries. | |
10662 | LD=$lt_LD_CXX | |
10663 | ||
10664 | # Whether we need hard or soft links. | |
10665 | LN_S=$lt_LN_S | |
10666 | ||
10667 | # A BSD-compatible nm program. | |
10668 | NM=$lt_NM | |
10669 | ||
10670 | # A sed program that does not truncate output. | |
10671 | SED=$lt_SED | |
10672 | ||
10673 | # A symbol stripping program | |
10674 | STRIP=$STRIP | |
10675 | ||
10676 | # Used to examine libraries when file_magic_cmd begins "file" | |
10677 | MAGIC_CMD=$MAGIC_CMD | |
10678 | ||
10679 | # Used on cygwin: DLL creation program. | |
10680 | DLLTOOL="$DLLTOOL" | |
10681 | ||
10682 | # Used on cygwin: object dumper. | |
10683 | OBJDUMP="$OBJDUMP" | |
10684 | ||
10685 | # Used on cygwin: assembler. | |
10686 | AS="$AS" | |
10687 | ||
10688 | # The name of the directory that contains temporary libtool files. | |
10689 | objdir=$objdir | |
10690 | ||
10691 | # How to create reloadable object files. | |
10692 | reload_flag=$lt_reload_flag | |
10693 | reload_cmds=$lt_reload_cmds | |
10694 | ||
10695 | # How to pass a linker flag through the compiler. | |
10696 | wl=$lt_lt_prog_compiler_wl_CXX | |
10697 | ||
10698 | # Object file suffix (normally "o"). | |
10699 | objext="$ac_objext" | |
10700 | ||
10701 | # Old archive suffix (normally "a"). | |
10702 | libext="$libext" | |
10703 | ||
10704 | # Executable file suffix (normally ""). | |
10705 | exeext="$exeext" | |
10706 | ||
10707 | # Additional compiler flags for building library objects. | |
10708 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
10709 | pic_mode=$pic_mode | |
10710 | ||
10711 | # What is the maximum length of a command? | |
10712 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
10713 | ||
10714 | # Does compiler simultaneously support -c and -o options? | |
10715 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
10716 | ||
10717 | # Must we lock files when doing compilation ? | |
10718 | need_locks=$lt_need_locks | |
10719 | ||
10720 | # Do we need the lib prefix for modules? | |
10721 | need_lib_prefix=$need_lib_prefix | |
10722 | ||
10723 | # Do we need a version for libraries? | |
10724 | need_version=$need_version | |
10725 | ||
10726 | # Whether dlopen is supported. | |
10727 | dlopen_support=$enable_dlopen | |
10728 | ||
10729 | # Whether dlopen of programs is supported. | |
10730 | dlopen_self=$enable_dlopen_self | |
10731 | ||
10732 | # Whether dlopen of statically linked programs is supported. | |
10733 | dlopen_self_static=$enable_dlopen_self_static | |
10734 | ||
10735 | # Compiler flag to prevent dynamic linking. | |
10736 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
10737 | ||
10738 | # Compiler flag to turn off builtin functions. | |
10739 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
10740 | ||
10741 | # Compiler flag to allow reflexive dlopens. | |
10742 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
10743 | ||
10744 | # Compiler flag to generate shared objects directly from archives. | |
10745 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
10746 | ||
10747 | # Compiler flag to generate thread-safe objects. | |
10748 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | |
10749 | ||
10750 | # Library versioning type. | |
10751 | version_type=$version_type | |
10752 | ||
10753 | # Format of library name prefix. | |
10754 | libname_spec=$lt_libname_spec | |
10755 | ||
10756 | # List of archive names. First name is the real one, the rest are links. | |
10757 | # The last name is the one that the linker finds with -lNAME. | |
10758 | library_names_spec=$lt_library_names_spec | |
10759 | ||
10760 | # The coded name of the library, if different from the real name. | |
10761 | soname_spec=$lt_soname_spec | |
10762 | ||
10763 | # Commands used to build and install an old-style archive. | |
10764 | RANLIB=$lt_RANLIB | |
10765 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
10766 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
10767 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
10768 | ||
10769 | # Create an old-style archive from a shared archive. | |
10770 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
10771 | ||
10772 | # Create a temporary old-style archive to link instead of a shared archive. | |
10773 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
10774 | ||
10775 | # Commands used to build and install a shared archive. | |
10776 | archive_cmds=$lt_archive_cmds_CXX | |
10777 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
10778 | postinstall_cmds=$lt_postinstall_cmds | |
10779 | postuninstall_cmds=$lt_postuninstall_cmds | |
10780 | ||
10781 | # Commands to strip libraries. | |
10782 | old_striplib=$lt_old_striplib | |
10783 | striplib=$lt_striplib | |
10784 | ||
10785 | # Dependencies to place before the objects being linked to create a | |
10786 | # shared library. | |
10787 | predep_objects=$lt_predep_objects_CXX | |
10788 | ||
10789 | # Dependencies to place after the objects being linked to create a | |
10790 | # shared library. | |
10791 | postdep_objects=$lt_postdep_objects_CXX | |
10792 | ||
10793 | # Dependencies to place before the objects being linked to create a | |
10794 | # shared library. | |
10795 | predeps=$lt_predeps_CXX | |
10796 | ||
10797 | # Dependencies to place after the objects being linked to create a | |
10798 | # shared library. | |
10799 | postdeps=$lt_postdeps_CXX | |
10800 | ||
10801 | # The library search path used internally by the compiler when linking | |
10802 | # a shared library. | |
10803 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
10804 | ||
10805 | # Method to check whether dependent libraries are shared objects. | |
10806 | deplibs_check_method=$lt_deplibs_check_method | |
10807 | ||
10808 | # Command to use when deplibs_check_method == file_magic. | |
10809 | file_magic_cmd=$lt_file_magic_cmd | |
10810 | ||
10811 | # Flag that allows shared libraries with undefined symbols to be built. | |
10812 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
10813 | ||
10814 | # Flag that forces no undefined symbols. | |
10815 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
10816 | ||
10817 | # Commands used to finish a libtool library installation in a directory. | |
10818 | finish_cmds=$lt_finish_cmds | |
10819 | ||
10820 | # Same as above, but a single script fragment to be evaled but not shown. | |
10821 | finish_eval=$lt_finish_eval | |
10822 | ||
10823 | # Take the output of nm and produce a listing of raw symbols and C names. | |
10824 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
10825 | ||
10826 | # Transform the output of nm in a proper C declaration | |
10827 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
10828 | ||
10829 | # Transform the output of nm in a C name address pair | |
10830 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
10831 | ||
10832 | # This is the shared library runtime path variable. | |
10833 | runpath_var=$runpath_var | |
10834 | ||
10835 | # This is the shared library path variable. | |
10836 | shlibpath_var=$shlibpath_var | |
10837 | ||
10838 | # Is shlibpath searched before the hard-coded library search path? | |
10839 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
10840 | ||
10841 | # How to hardcode a shared library path into an executable. | |
10842 | hardcode_action=$hardcode_action_CXX | |
10843 | ||
10844 | # Whether we should hardcode library paths into libraries. | |
10845 | hardcode_into_libs=$hardcode_into_libs | |
10846 | ||
10847 | # Flag to hardcode \$libdir into a binary during linking. | |
10848 | # This must work even if \$libdir does not exist. | |
10849 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
10850 | ||
10851 | # Whether we need a single -rpath flag with a separated argument. | |
10852 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
10853 | ||
10854 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | |
10855 | # resulting binary. | |
10856 | hardcode_direct=$hardcode_direct_CXX | |
10857 | ||
10858 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
10859 | # resulting binary. | |
10860 | hardcode_minus_L=$hardcode_minus_L_CXX | |
10861 | ||
10862 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
10863 | # the resulting binary. | |
10864 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
10865 | ||
10866 | # Variables whose values should be saved in libtool wrapper scripts and | |
10867 | # restored at relink time. | |
10868 | variables_saved_for_relink="$variables_saved_for_relink" | |
10869 | ||
10870 | # Whether libtool must link a program against all its dependency libraries. | |
10871 | link_all_deplibs=$link_all_deplibs_CXX | |
10872 | ||
10873 | # Compile-time system search path for libraries | |
10874 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
10875 | ||
10876 | # Run-time system search path for libraries | |
10877 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
10878 | ||
10879 | # Fix the shell variable \$srcfile for the compiler. | |
10880 | fix_srcfile_path="$fix_srcfile_path_CXX" | |
10881 | ||
10882 | # Set to yes if exported symbols are required. | |
10883 | always_export_symbols=$always_export_symbols_CXX | |
10884 | ||
10885 | # The commands to list exported symbols. | |
10886 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
10887 | ||
10888 | # The commands to extract the exported symbol list from a shared archive. | |
10889 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
10890 | ||
10891 | # Symbols that should not be listed in the preloaded symbols. | |
10892 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
10893 | ||
10894 | # Symbols that must always be exported. | |
10895 | include_expsyms=$lt_include_expsyms_CXX | |
10896 | ||
10897 | # ### END LIBTOOL TAG CONFIG: $tagname | |
10898 | ||
10899 | __EOF__ | |
10900 | ||
50850385 TJ |
10901 | else |
10902 | # If there is no Makefile yet, we rely on a make rule to execute | |
10903 | # `config.status --recheck' to rerun these tests and create the | |
10904 | # libtool script then. | |
10905 | test -f Makefile && make "$ltmain" | |
10906 | fi | |
10907 | ||
50850385 TJ |
10908 | ac_ext=c |
10909 | ac_cpp='$CPP $CPPFLAGS' | |
10910 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10911 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10912 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10913 | ||
10914 | CC="$lt_save_CC" | |
10915 | ||
10916 | ;; | |
10917 | ||
10918 | GCJ) | |
10919 | ||
50850385 TJ |
10920 | # Source file extension for C test sources. |
10921 | ac_ext=java | |
10922 | ||
10923 | # Object file extension for compiled C test sources. | |
10924 | objext=o | |
10925 | objext_GCJ=$objext | |
10926 | ||
10927 | # Code to be used in simple compile tests | |
10928 | lt_simple_compile_test_code="class foo {}" | |
10929 | ||
10930 | # Code to be used in simple link tests | |
10931 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }' | |
10932 | ||
10933 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
10934 | ||
10935 | # If no C compiler was specified, use CC. | |
10936 | LTCC=${LTCC-"$CC"} | |
10937 | ||
10938 | # Allow CC to be a program name with arguments. | |
10939 | set dummy $CC | |
10940 | compiler="$2" | |
10941 | ||
50850385 TJ |
10942 | # Allow CC to be a program name with arguments. |
10943 | lt_save_CC="$CC" | |
10944 | CC=${GCJ-"gcj"} | |
10945 | set dummy $CC | |
10946 | compiler="$2" | |
10947 | compiler_GCJ=$CC | |
10948 | ||
10949 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | |
10950 | archive_cmds_need_lc_GCJ=no | |
10951 | ||
50850385 TJ |
10952 | lt_prog_compiler_no_builtin_flag_GCJ= |
10953 | ||
10954 | if test "$GCC" = yes; then | |
10955 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | |
10956 | ||
e61fbf76 | 10957 | echo "$as_me:10957: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
50850385 TJ |
10958 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
10959 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
10960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10961 | else | |
10962 | lt_cv_prog_compiler_rtti_exceptions=no | |
10963 | ac_outfile=conftest.$ac_objext | |
10964 | save_CFLAGS="$CFLAGS" | |
10965 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" | |
10966 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10967 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
10968 | # The compiler can only warn and ignore the option if not recognized | |
10969 | # So say no if there are warnings | |
10970 | if test -s conftest.err; then | |
10971 | # Append any errors to the config.log. | |
10972 | cat conftest.err 1>&5 | |
10973 | else | |
10974 | lt_cv_prog_compiler_rtti_exceptions=yes | |
10975 | fi | |
10976 | fi | |
10977 | $rm conftest* | |
10978 | CFLAGS="$save_CFLAGS" | |
10979 | ||
10980 | fi | |
e61fbf76 | 10981 | echo "$as_me:10981: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
50850385 TJ |
10982 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
10983 | ||
10984 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
10985 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | |
10986 | else | |
10987 | : | |
10988 | fi | |
10989 | ||
10990 | fi | |
10991 | ||
10992 | lt_prog_compiler_wl_GCJ= | |
10993 | lt_prog_compiler_pic_GCJ= | |
10994 | lt_prog_compiler_static_GCJ= | |
10995 | ||
e61fbf76 | 10996 | echo "$as_me:10996: checking for $compiler option to produce PIC" >&5 |
50850385 TJ |
10997 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
10998 | ||
10999 | if test "$GCC" = yes; then | |
11000 | lt_prog_compiler_wl_GCJ='-Wl,' | |
11001 | lt_prog_compiler_static_GCJ='-static' | |
11002 | ||
11003 | case $host_os in | |
11004 | aix*) | |
11005 | # All AIX code is PIC. | |
11006 | if test "$host_cpu" = ia64; then | |
11007 | # AIX 5 now supports IA64 processor | |
11008 | lt_prog_compiler_static_GCJ='-Bstatic' | |
11009 | fi | |
11010 | ;; | |
11011 | ||
11012 | amigaos*) | |
11013 | # FIXME: we need at least 68020 code to build shared libraries, but | |
11014 | # adding the `-m68020' flag to GCC prevents building anything better, | |
11015 | # like `-m68040'. | |
11016 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | |
11017 | ;; | |
11018 | ||
11019 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
11020 | # PIC is the default for these OSes. | |
11021 | ;; | |
11022 | ||
11023 | cygwin* | mingw* | pw32* | os2*) | |
11024 | # This hack is so that the source file can tell whether it is being | |
11025 | # built for inclusion in a dll (and should export symbols for example). | |
11026 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
11027 | ;; | |
11028 | ||
11029 | darwin* | rhapsody*) | |
11030 | # PIC is the default on this platform | |
11031 | # Common symbols not allowed in MH_DYLIB files | |
11032 | lt_prog_compiler_pic_GCJ='-fno-common' | |
11033 | ;; | |
11034 | ||
11035 | msdosdjgpp*) | |
11036 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
11037 | # on systems that don't support them. | |
11038 | lt_prog_compiler_can_build_shared_GCJ=no | |
11039 | enable_shared=no | |
11040 | ;; | |
11041 | ||
11042 | sysv4*MP*) | |
11043 | if test -d /usr/nec; then | |
11044 | lt_prog_compiler_pic_GCJ=-Kconform_pic | |
11045 | fi | |
11046 | ;; | |
11047 | ||
11048 | hpux*) | |
11049 | # PIC is the default for IA64 HP-UX, but not for PA HP-UX. | |
11050 | if test "$host_cpu" != ia64; then | |
11051 | lt_prog_compiler_pic_GCJ='-fPIC' | |
11052 | fi | |
11053 | ;; | |
11054 | ||
11055 | *) | |
11056 | lt_prog_compiler_pic_GCJ='-fPIC' | |
11057 | ;; | |
11058 | esac | |
11059 | else | |
11060 | # PORTME Check for flag to pass linker flags through the system compiler. | |
11061 | case $host_os in | |
11062 | aix*) | |
11063 | lt_prog_compiler_wl_GCJ='-Wl,' | |
11064 | if test "$host_cpu" = ia64; then | |
11065 | # AIX 5 now supports IA64 processor | |
11066 | lt_prog_compiler_static_GCJ='-Bstatic' | |
11067 | else | |
11068 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | |
11069 | fi | |
11070 | ;; | |
11071 | ||
11072 | cygwin* | mingw* | pw32* | os2*) | |
11073 | # This hack is so that the source file can tell whether it is being | |
11074 | # built for inclusion in a dll (and should export symbols for example). | |
11075 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
11076 | ;; | |
11077 | ||
11078 | hpux9* | hpux10* | hpux11*) | |
11079 | lt_prog_compiler_wl_GCJ='-Wl,' | |
11080 | if test "$host_cpu" != ia64; then | |
11081 | lt_prog_compiler_pic_GCJ='+Z' | |
11082 | fi | |
11083 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
11084 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | |
11085 | ;; | |
11086 | ||
11087 | irix5* | irix6* | nonstopux*) | |
11088 | lt_prog_compiler_wl_GCJ='-Wl,' | |
11089 | # PIC (with -KPIC) is the default. | |
11090 | lt_prog_compiler_static_GCJ='-non_shared' | |
11091 | ;; | |
11092 | ||
11093 | newsos6) | |
11094 | lt_prog_compiler_pic_GCJ='-KPIC' | |
11095 | lt_prog_compiler_static_GCJ='-Bstatic' | |
11096 | ;; | |
11097 | ||
11098 | osf3* | osf4* | osf5*) | |
11099 | lt_prog_compiler_wl_GCJ='-Wl,' | |
11100 | # All OSF/1 code is PIC. | |
11101 | lt_prog_compiler_static_GCJ='-non_shared' | |
11102 | ;; | |
11103 | ||
11104 | sco3.2v5*) | |
11105 | lt_prog_compiler_pic_GCJ='-Kpic' | |
11106 | lt_prog_compiler_static_GCJ='-dn' | |
11107 | ;; | |
11108 | ||
11109 | solaris*) | |
11110 | lt_prog_compiler_wl_GCJ='-Wl,' | |
11111 | lt_prog_compiler_pic_GCJ='-KPIC' | |
11112 | lt_prog_compiler_static_GCJ='-Bstatic' | |
11113 | ;; | |
11114 | ||
11115 | sunos4*) | |
11116 | lt_prog_compiler_wl_GCJ='-Qoption ld ' | |
11117 | lt_prog_compiler_pic_GCJ='-PIC' | |
11118 | lt_prog_compiler_static_GCJ='-Bstatic' | |
11119 | ;; | |
11120 | ||
11121 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
11122 | if test "x$host_vendor" = xsni; then | |
11123 | lt_prog_compiler_wl_GCJ='-LD' | |
11124 | else | |
11125 | lt_prog_compiler_wl_GCJ='-Wl,' | |
11126 | fi | |
11127 | lt_prog_compiler_pic_GCJ='-KPIC' | |
11128 | lt_prog_compiler_static_GCJ='-Bstatic' | |
11129 | ;; | |
11130 | ||
11131 | sysv4*MP*) | |
11132 | if test -d /usr/nec ;then | |
11133 | lt_prog_compiler_pic_GCJ='-Kconform_pic' | |
11134 | lt_prog_compiler_static_GCJ='-Bstatic' | |
11135 | fi | |
11136 | ;; | |
11137 | ||
11138 | uts4*) | |
11139 | lt_prog_compiler_pic_GCJ='-pic' | |
11140 | lt_prog_compiler_static_GCJ='-Bstatic' | |
11141 | ;; | |
11142 | ||
11143 | *) | |
11144 | lt_prog_compiler_can_build_shared_GCJ=no | |
11145 | ;; | |
11146 | esac | |
11147 | fi | |
11148 | ||
e61fbf76 | 11149 | echo "$as_me:11149: result: $lt_prog_compiler_pic_GCJ" >&5 |
50850385 TJ |
11150 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
11151 | ||
11152 | # | |
11153 | # Check to make sure the PIC flag actually works. | |
11154 | # | |
11155 | if test -n "$lt_prog_compiler_pic_GCJ"; then | |
e61fbf76 | 11156 | echo "$as_me:11156: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
50850385 TJ |
11157 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
11158 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | |
11159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11160 | else | |
11161 | lt_prog_compiler_pic_works_GCJ=no | |
11162 | ac_outfile=conftest.$ac_objext | |
11163 | save_CFLAGS="$CFLAGS" | |
11164 | CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ -DPIC" | |
11165 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11166 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
11167 | # The compiler can only warn and ignore the option if not recognized | |
11168 | # So say no if there are warnings | |
11169 | if test -s conftest.err; then | |
11170 | # Append any errors to the config.log. | |
11171 | cat conftest.err 1>&5 | |
11172 | else | |
11173 | lt_prog_compiler_pic_works_GCJ=yes | |
11174 | fi | |
11175 | fi | |
11176 | $rm conftest* | |
11177 | CFLAGS="$save_CFLAGS" | |
11178 | ||
11179 | fi | |
e61fbf76 | 11180 | echo "$as_me:11180: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
50850385 TJ |
11181 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
11182 | ||
11183 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | |
11184 | case $lt_prog_compiler_pic_GCJ in | |
11185 | "" | " "*) ;; | |
11186 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | |
11187 | esac | |
11188 | else | |
11189 | lt_prog_compiler_pic_GCJ= | |
11190 | lt_prog_compiler_can_build_shared_GCJ=no | |
11191 | fi | |
11192 | ||
11193 | fi | |
11194 | case "$host_os" in | |
11195 | # For platforms which do not support PIC, -DPIC is meaningless: | |
11196 | *djgpp*) | |
11197 | lt_prog_compiler_pic_GCJ= | |
11198 | ;; | |
11199 | *) | |
11200 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ -DPIC" | |
11201 | ;; | |
11202 | esac | |
11203 | ||
e61fbf76 | 11204 | echo "$as_me:11204: checking if $compiler supports -c -o file.$ac_objext" >&5 |
50850385 TJ |
11205 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
11206 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | |
11207 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11208 | else | |
11209 | lt_cv_prog_compiler_c_o_GCJ=no | |
11210 | $rm -r conftest 2>/dev/null | |
11211 | mkdir conftest | |
11212 | cd conftest | |
11213 | mkdir out | |
11214 | save_GCJFLAGS="$GCJFLAGS" | |
11215 | GCJFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext" | |
11216 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11217 | ||
11218 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | |
11219 | # that will create temporary files in the current directory regardless of | |
11220 | # the output directory. Thus, making CWD read-only will cause this test | |
11221 | # to fail, enabling locking or at least warning the user not to do parallel | |
11222 | # builds. | |
11223 | chmod -w . | |
11224 | ||
11225 | if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext | |
11226 | then | |
11227 | # The compiler can only warn and ignore the option if not recognized | |
11228 | # So say no if there are warnings | |
11229 | if test -s out/conftest.err; then | |
11230 | # Append any errors to the config.log. | |
11231 | cat out/conftest.err 1>&5 | |
11232 | else | |
11233 | lt_cv_prog_compiler_c_o_GCJ=yes | |
11234 | fi | |
11235 | fi | |
11236 | GCJFLAGS="$save_GCJFLAGS" | |
11237 | chmod u+w . | |
11238 | $rm conftest* out/* | |
11239 | rmdir out | |
11240 | cd .. | |
11241 | rmdir conftest | |
11242 | $rm conftest* | |
11243 | ||
11244 | fi | |
e61fbf76 | 11245 | echo "$as_me:11245: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
50850385 TJ |
11246 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
11247 | ||
50850385 TJ |
11248 | hard_links="nottested" |
11249 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | |
11250 | # do not overwrite the value of need_locks provided by the user | |
e61fbf76 | 11251 | echo "$as_me:11251: checking if we can lock with hard links" >&5 |
50850385 TJ |
11252 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
11253 | hard_links=yes | |
11254 | $rm conftest* | |
11255 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
11256 | touch conftest.a | |
11257 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
11258 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
e61fbf76 | 11259 | echo "$as_me:11259: result: $hard_links" >&5 |
50850385 TJ |
11260 | echo "${ECHO_T}$hard_links" >&6 |
11261 | if test "$hard_links" = no; then | |
e61fbf76 | 11262 | { echo "$as_me:11262: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
50850385 TJ |
11263 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
11264 | need_locks=warn | |
11265 | fi | |
11266 | else | |
11267 | need_locks=no | |
11268 | fi | |
11269 | ||
e61fbf76 | 11270 | echo "$as_me:11270: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
50850385 TJ |
11271 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
11272 | ||
11273 | runpath_var= | |
11274 | allow_undefined_flag_GCJ= | |
11275 | ||
11276 | archive_cmds_GCJ= | |
11277 | archive_cmds_need_lc_GCJ= | |
11278 | archive_expsym_cmds_GCJ= | |
11279 | old_archive_From_new_cmds_GCJ= | |
11280 | old_archive_from_expsyms_cmds_GCJ= | |
11281 | export_dynamic_flag_spec_GCJ= | |
11282 | whole_archive_flag_spec_GCJ= | |
11283 | thread_safe_flag_spec_GCJ= | |
11284 | hardcode_libdir_flag_spec_GCJ= | |
11285 | hardcode_libdir_separator_GCJ= | |
11286 | hardcode_direct_GCJ=no | |
11287 | hardcode_minus_L_GCJ=no | |
11288 | hardcode_shlibpath_var_GCJ=unsupported | |
11289 | link_all_deplibs_GCJ=unknown | |
11290 | always_export_symbols_GCJ=no | |
11291 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
11292 | # include_expsyms should be a list of space-separated symbols to be *always* | |
11293 | # included in the symbol list | |
11294 | include_expsyms_GCJ= | |
11295 | # exclude_expsyms can be an egrep regular expression of symbols to exclude | |
11296 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
11297 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
11298 | # as well as any symbol that contains `d'. | |
11299 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" | |
11300 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
11301 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
11302 | # the symbol is explicitly referenced. Since portable code cannot | |
11303 | # rely on this symbol name, it's probably fine to never include it in | |
11304 | # preloaded symbol tables. | |
11305 | extract_expsyms_cmds= | |
11306 | ||
11307 | case $host_os in | |
11308 | cygwin* | mingw* | pw32*) | |
11309 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
11310 | # When not using gcc, we currently assume that we are using | |
11311 | # Microsoft Visual C++. | |
11312 | if test "$GCC" != yes; then | |
11313 | with_gnu_ld=no | |
11314 | fi | |
11315 | ;; | |
11316 | openbsd*) | |
11317 | with_gnu_ld=no | |
11318 | ;; | |
11319 | esac | |
11320 | ||
11321 | ld_shlibs_GCJ=yes | |
11322 | if test "$with_gnu_ld" = yes; then | |
11323 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
11324 | wlarc='${wl}' | |
11325 | ||
11326 | # See if GNU ld supports shared libraries. | |
11327 | case $host_os in | |
11328 | aix3* | aix4* | aix5*) | |
11329 | # On AIX/PPC, the GNU linker is very broken | |
11330 | if test "$host_cpu" != ia64; then | |
11331 | ld_shlibs_GCJ=no | |
11332 | cat <<EOF 1>&2 | |
11333 | ||
11334 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
11335 | *** to be unable to reliably create shared libraries on AIX. | |
11336 | *** Therefore, libtool is disabling shared libraries support. If you | |
11337 | *** really care for shared libraries, you may want to modify your PATH | |
11338 | *** so that a non-GNU linker is found, and then restart. | |
11339 | ||
11340 | EOF | |
11341 | fi | |
11342 | ;; | |
11343 | ||
11344 | amigaos*) | |
11345 | archive_cmds_GCJ='$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)' | |
11346 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
11347 | hardcode_minus_L_GCJ=yes | |
11348 | ||
11349 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
11350 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
11351 | # to version 4, is to share data among multiple programs linked | |
11352 | # with the same dynamic library. Since this doesn't match the | |
11353 | # behavior of shared libraries on other platforms, we can't use | |
11354 | # them. | |
11355 | ld_shlibs_GCJ=no | |
11356 | ;; | |
11357 | ||
11358 | beos*) | |
11359 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
11360 | allow_undefined_flag_GCJ=unsupported | |
11361 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
11362 | # support --undefined. This deserves some investigation. FIXME | |
11363 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11364 | else | |
11365 | ld_shlibs_GCJ=no | |
11366 | fi | |
11367 | ;; | |
11368 | ||
11369 | cygwin* | mingw* | pw32*) | |
11370 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is | |
11371 | # no search path for DLLs. | |
11372 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
11373 | allow_undefined_flag_GCJ=unsupported | |
11374 | always_export_symbols_GCJ=yes | |
11375 | ||
11376 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ | |
11377 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ | |
11378 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ | |
11379 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ | |
11380 | else $CC -o impgen impgen.c ; fi)~ | |
11381 | $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' | |
11382 | ||
11383 | old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' | |
11384 | ||
11385 | # cygwin and mingw dlls have different entry points and sets of symbols | |
11386 | # to exclude. | |
11387 | # FIXME: what about values for MSVC? | |
11388 | dll_entry=__cygwin_dll_entry@12 | |
11389 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ | |
11390 | case $host_os in | |
11391 | mingw*) | |
11392 | # mingw values | |
11393 | dll_entry=_DllMainCRTStartup@12 | |
11394 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ | |
11395 | ;; | |
11396 | esac | |
11397 | ||
11398 | # mingw and cygwin differ, and it's simplest to just exclude the union | |
11399 | # of the two symbol sets. | |
11400 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 | |
11401 | ||
11402 | # recent cygwin and mingw systems supply a stub DllMain which the user | |
11403 | # can override, but on older systems we have to supply one (in ltdll.c) | |
11404 | if test "x$lt_cv_need_dllmain" = "xyes"; then | |
11405 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " | |
11406 | ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ | |
11407 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' | |
11408 | else | |
11409 | ltdll_obj= | |
11410 | ltdll_cmds= | |
11411 | fi | |
11412 | ||
11413 | # Extract the symbol export list from an `--export-all' def file, | |
11414 | # then regenerate the def file from the symbol export list, so that | |
11415 | # the compiled dll only exports the symbol export list. | |
11416 | # Be careful not to strip the DATA tag left by newer dlltools. | |
11417 | export_symbols_cmds_GCJ="$ltdll_cmds"' | |
11418 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ | |
11419 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' | |
11420 | ||
11421 | # If the export-symbols file already is a .def file (1st line | |
11422 | # is EXPORTS), use it as is. | |
11423 | # If DATA tags from a recent dlltool are present, honour them! | |
11424 | archive_expsym_cmds_GCJ='if test "x`head -1 $export_symbols`" = xEXPORTS; then | |
11425 | cp $export_symbols $output_objdir/$soname-def; | |
11426 | else | |
11427 | echo EXPORTS > $output_objdir/$soname-def; | |
11428 | _lt_hint=1; | |
11429 | cat $export_symbols | while read symbol; do | |
11430 | set dummy \$symbol; | |
11431 | case \$# in | |
11432 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; | |
11433 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; | |
11434 | esac; | |
11435 | _lt_hint=`expr 1 + \$_lt_hint`; | |
11436 | done; | |
11437 | fi~ | |
11438 | '"$ltdll_cmds"' | |
11439 | $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ | |
11440 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ | |
11441 | $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ | |
11442 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ | |
11443 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' | |
11444 | ;; | |
11445 | ||
11446 | netbsd*) | |
11447 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
11448 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
11449 | wlarc= | |
11450 | else | |
11451 | archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11452 | archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
11453 | fi | |
11454 | ;; | |
11455 | ||
11456 | solaris* | sysv5*) | |
11457 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then | |
11458 | ld_shlibs_GCJ=no | |
11459 | cat <<EOF 1>&2 | |
11460 | ||
11461 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
11462 | *** create shared libraries on Solaris systems. Therefore, libtool | |
11463 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
11464 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
11465 | *** your PATH or compiler configuration so that the native linker is | |
11466 | *** used, and then restart. | |
11467 | ||
11468 | EOF | |
11469 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
11470 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11471 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
11472 | else | |
11473 | ld_shlibs_GCJ=no | |
11474 | fi | |
11475 | ;; | |
11476 | ||
11477 | sunos4*) | |
11478 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
11479 | wlarc= | |
11480 | hardcode_direct_GCJ=yes | |
11481 | hardcode_shlibpath_var_GCJ=no | |
11482 | ;; | |
11483 | ||
11484 | *) | |
11485 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
11486 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11487 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
11488 | else | |
11489 | ld_shlibs_GCJ=no | |
11490 | fi | |
11491 | ;; | |
11492 | esac | |
11493 | ||
11494 | if test "$ld_shlibs_GCJ" = yes; then | |
11495 | runpath_var=LD_RUN_PATH | |
11496 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | |
11497 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | |
11498 | case $host_os in | |
11499 | cygwin* | mingw* | pw32*) | |
11500 | # dlltool doesn't understand --whole-archive et. al. | |
11501 | whole_archive_flag_spec_GCJ= | |
11502 | ;; | |
11503 | *) | |
11504 | # ancient GNU ld didn't support --whole-archive et. al. | |
11505 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then | |
11506 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
11507 | else | |
11508 | whole_archive_flag_spec_GCJ= | |
11509 | fi | |
11510 | ;; | |
11511 | esac | |
11512 | fi | |
11513 | else | |
11514 | # PORTME fill in a description of your system's linker (not GNU ld) | |
11515 | case $host_os in | |
11516 | aix3*) | |
11517 | allow_undefined_flag_GCJ=unsupported | |
11518 | always_export_symbols_GCJ=yes | |
11519 | archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
11520 | # Note: this linker hardcodes the directories in LIBPATH if there | |
11521 | # are no directories specified by -L. | |
11522 | hardcode_minus_L_GCJ=yes | |
11523 | if test "$GCC" = yes && test -z "$link_static_flag"; then | |
11524 | # Neither direct hardcoding nor static linking is supported with a | |
11525 | # broken collect2. | |
11526 | hardcode_direct_GCJ=unsupported | |
11527 | fi | |
11528 | ;; | |
11529 | ||
11530 | aix4* | aix5*) | |
11531 | if test "$host_cpu" = ia64; then | |
11532 | # On IA64, the linker does run time linking by default, so we don't | |
11533 | # have to do anything special. | |
11534 | aix_use_runtimelinking=no | |
11535 | exp_sym_flag='-Bexport' | |
11536 | no_entry_flag="" | |
11537 | else | |
11538 | # If we're using GNU nm, then we don't want the "-C" option. | |
11539 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
11540 | if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then | |
11541 | export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
11542 | else | |
11543 | export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
11544 | fi | |
11545 | ||
11546 | # KDE requires run time linking. Make it the default. | |
11547 | aix_use_runtimelinking=yes | |
11548 | exp_sym_flag='-bexport' | |
11549 | no_entry_flag='-bnoentry' | |
11550 | fi | |
11551 | ||
11552 | # When large executables or shared objects are built, AIX ld can | |
11553 | # have problems creating the table of contents. If linking a library | |
11554 | # or program results in "error TOC overflow" add -mminimal-toc to | |
11555 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
11556 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
11557 | ||
11558 | archive_cmds_GCJ='' | |
11559 | hardcode_direct_GCJ=yes | |
11560 | hardcode_libdir_separator_GCJ=':' | |
11561 | link_all_deplibs_GCJ=yes | |
11562 | ||
11563 | if test "$GCC" = yes; then | |
11564 | case $host_os in aix4.012|aix4.012.*) | |
11565 | # We only want to do this on AIX 4.2 and lower, the check | |
11566 | # below for broken collect2 doesn't work under 4.3+ | |
11567 | collect2name=`${CC} -print-prog-name=collect2` | |
11568 | if test -f "$collect2name" && \ | |
11569 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
11570 | then | |
11571 | # We have reworked collect2 | |
11572 | hardcode_direct_GCJ=yes | |
11573 | else | |
11574 | # We have old collect2 | |
11575 | hardcode_direct_GCJ=unsupported | |
11576 | # It fails to find uninstalled libraries when the uninstalled | |
11577 | # path is not listed in the libpath. Setting hardcode_minus_L | |
11578 | # to unsupported forces relinking | |
11579 | hardcode_minus_L_GCJ=yes | |
11580 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
11581 | hardcode_libdir_separator_GCJ= | |
11582 | fi | |
11583 | esac | |
11584 | shared_flag='-shared' | |
11585 | else | |
11586 | # not using gcc | |
11587 | if test "$host_cpu" = ia64; then | |
11588 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
11589 | # chokes on -Wl,-G. The following line is correct: | |
11590 | shared_flag='-G' | |
11591 | else | |
11592 | if test "$aix_use_runtimelinking" = yes; then | |
11593 | shared_flag='-qmkshrobj ${wl}-G' | |
11594 | else | |
11595 | shared_flag='-qmkshrobj' | |
11596 | fi | |
11597 | fi | |
11598 | fi | |
11599 | ||
11600 | # Let the compiler handle the export list. | |
11601 | always_export_symbols_GCJ=no | |
11602 | if test "$aix_use_runtimelinking" = yes; then | |
11603 | # Warning - without using the other runtime loading flags (-brtl), | |
11604 | # -berok will link without error, but may produce a broken library. | |
11605 | allow_undefined_flag_GCJ='-berok' | |
11606 | # Determine the default libpath from the value encoded in an empty executable. | |
11607 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 11608 | #line 11608 "configure" |
50850385 TJ |
11609 | #include "confdefs.h" |
11610 | ||
50850385 TJ |
11611 | int |
11612 | main () | |
11613 | { | |
11614 | ||
11615 | ; | |
11616 | return 0; | |
11617 | } | |
11618 | _ACEOF | |
11619 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 11620 | if { (eval echo "$as_me:11620: \"$ac_link\"") >&5 |
50850385 TJ |
11621 | (eval $ac_link) 2>&5 |
11622 | ac_status=$? | |
e61fbf76 | 11623 | echo "$as_me:11623: \$? = $ac_status" >&5 |
50850385 TJ |
11624 | (exit $ac_status); } && |
11625 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 11626 | { (eval echo "$as_me:11626: \"$ac_try\"") >&5 |
50850385 TJ |
11627 | (eval $ac_try) 2>&5 |
11628 | ac_status=$? | |
e61fbf76 | 11629 | echo "$as_me:11629: \$? = $ac_status" >&5 |
50850385 TJ |
11630 | (exit $ac_status); }; }; then |
11631 | ||
11632 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
11633 | }'` | |
11634 | # Check for a 64-bit object if we didn't find anything. | |
11635 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
11636 | }'`; fi | |
11637 | else | |
11638 | echo "$as_me: failed program was:" >&5 | |
11639 | cat conftest.$ac_ext >&5 | |
11640 | fi | |
11641 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11642 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
11643 | ||
11644 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
11645 | archive_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag" | |
11646 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
11647 | else | |
11648 | if test "$host_cpu" = ia64; then | |
11649 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | |
11650 | allow_undefined_flag_GCJ="-z nodefs" | |
11651 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | |
11652 | else | |
11653 | # Determine the default libpath from the value encoded in an empty executable. | |
11654 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 11655 | #line 11655 "configure" |
50850385 TJ |
11656 | #include "confdefs.h" |
11657 | ||
50850385 TJ |
11658 | int |
11659 | main () | |
11660 | { | |
11661 | ||
11662 | ; | |
11663 | return 0; | |
11664 | } | |
11665 | _ACEOF | |
11666 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 11667 | if { (eval echo "$as_me:11667: \"$ac_link\"") >&5 |
50850385 TJ |
11668 | (eval $ac_link) 2>&5 |
11669 | ac_status=$? | |
e61fbf76 | 11670 | echo "$as_me:11670: \$? = $ac_status" >&5 |
50850385 TJ |
11671 | (exit $ac_status); } && |
11672 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 11673 | { (eval echo "$as_me:11673: \"$ac_try\"") >&5 |
50850385 TJ |
11674 | (eval $ac_try) 2>&5 |
11675 | ac_status=$? | |
e61fbf76 | 11676 | echo "$as_me:11676: \$? = $ac_status" >&5 |
50850385 TJ |
11677 | (exit $ac_status); }; }; then |
11678 | ||
11679 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
11680 | }'` | |
11681 | # Check for a 64-bit object if we didn't find anything. | |
11682 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
11683 | }'`; fi | |
11684 | else | |
11685 | echo "$as_me: failed program was:" >&5 | |
11686 | cat conftest.$ac_ext >&5 | |
11687 | fi | |
11688 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11689 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
11690 | ||
11691 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
11692 | # Warning - without using the other run time loading flags, | |
11693 | # -berok will link without error, but may produce a broken library. | |
11694 | no_undefined_flag_GCJ=' ${wl}-bernotok' | |
11695 | allow_undefined_flag_GCJ=' ${wl}-berok' | |
11696 | # -bexpall does not export symbols beginning with underscore (_) | |
11697 | always_export_symbols_GCJ=yes | |
11698 | # Exported symbols can be pulled into shared objects from archives | |
11699 | whole_archive_flag_spec_GCJ=' ' | |
11700 | archive_cmds_need_lc_GCJ=yes | |
11701 | # This is similar to how AIX traditionally builds it's shared libraries. | |
11702 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
11703 | fi | |
11704 | fi | |
11705 | ;; | |
11706 | ||
11707 | amigaos*) | |
11708 | archive_cmds_GCJ='$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)' | |
11709 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
11710 | hardcode_minus_L_GCJ=yes | |
11711 | # see comment about different semantics on the GNU ld section | |
11712 | ld_shlibs_GCJ=no | |
11713 | ;; | |
11714 | ||
11715 | bsdi4*) | |
11716 | export_dynamic_flag_spec_GCJ=-rdynamic | |
11717 | ;; | |
11718 | ||
11719 | cygwin* | mingw* | pw32*) | |
11720 | # When not using gcc, we currently assume that we are using | |
11721 | # Microsoft Visual C++. | |
11722 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
11723 | # no search path for DLLs. | |
11724 | hardcode_libdir_flag_spec_GCJ=' ' | |
11725 | allow_undefined_flag_GCJ=unsupported | |
11726 | # Tell ltmain to make .lib files, not .a files. | |
11727 | libext=lib | |
11728 | # FIXME: Setting linknames here is a bad hack. | |
11729 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
11730 | # The linker will automatically build a .lib file if we build a DLL. | |
11731 | old_archive_From_new_cmds_GCJ='true' | |
11732 | # FIXME: Should let the user specify the lib program. | |
11733 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
11734 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
11735 | ;; | |
11736 | ||
11737 | darwin* | rhapsody*) | |
11738 | case "$host_os" in | |
11739 | rhapsody* | darwin1.[012]) | |
11740 | allow_undefined_flag_GCJ='-undefined suppress' | |
11741 | ;; | |
11742 | *) # Darwin 1.3 on | |
11743 | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' | |
11744 | ;; | |
11745 | esac | |
11746 | ||
11747 | # FIXME: Relying on posixy $() will cause problems for | |
11748 | # cross-compilation, but unfortunately the echo tests do not | |
11749 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles | |
11750 | # `"' quotes if we put them in here... so don't! | |
11751 | archive_cmds_GCJ='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' | |
11752 | # We need to add '_' to the symbols in $export_symbols first | |
11753 | #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols' | |
11754 | hardcode_direct_GCJ=yes | |
11755 | hardcode_shlibpath_var_GCJ=no | |
11756 | whole_archive_flag_spec_GCJ='-all_load $convenience' | |
11757 | ;; | |
11758 | ||
11759 | dgux*) | |
11760 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11761 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
11762 | hardcode_shlibpath_var_GCJ=no | |
11763 | ;; | |
11764 | ||
11765 | freebsd1*) | |
11766 | ld_shlibs_GCJ=no | |
11767 | ;; | |
11768 | ||
11769 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
11770 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
11771 | # does not break anything, and helps significantly (at the cost of a little | |
11772 | # extra space). | |
11773 | freebsd2.2*) | |
11774 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
11775 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
11776 | hardcode_direct_GCJ=yes | |
11777 | hardcode_shlibpath_var_GCJ=no | |
11778 | ;; | |
11779 | ||
11780 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
11781 | freebsd2*) | |
11782 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
11783 | hardcode_direct_GCJ=yes | |
11784 | hardcode_minus_L_GCJ=yes | |
11785 | hardcode_shlibpath_var_GCJ=no | |
11786 | ;; | |
11787 | ||
11788 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
11789 | freebsd*) | |
11790 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
11791 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
11792 | hardcode_direct_GCJ=yes | |
11793 | hardcode_shlibpath_var_GCJ=no | |
11794 | ;; | |
11795 | ||
11796 | hpux9* | hpux10* | hpux11*) | |
11797 | if test "$GCC" = yes; then | |
11798 | case $host_os in | |
11799 | hpux9*) | |
11800 | archive_cmds_GCJ='$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' | |
11801 | ;; | |
11802 | *) | |
11803 | if test "$host_cpu" = ia64; then | |
11804 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11805 | else | |
11806 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
11807 | fi | |
11808 | ;; | |
11809 | esac | |
11810 | else | |
11811 | case $host_os in | |
11812 | hpux9*) | |
11813 | archive_cmds_GCJ='$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' | |
11814 | ;; | |
11815 | *) | |
11816 | if test "$host_cpu" = ia64; then | |
11817 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11818 | else | |
11819 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
11820 | fi | |
11821 | ;; | |
11822 | esac | |
11823 | fi | |
11824 | if test "$host_cpu" = ia64; then | |
11825 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
11826 | hardcode_direct_GCJ=no | |
11827 | hardcode_shlibpath_var_GCJ=no | |
11828 | else | |
11829 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
11830 | hardcode_libdir_separator_GCJ=: | |
11831 | hardcode_direct_GCJ=yes | |
11832 | fi | |
11833 | # hardcode_minus_L: Not really in the search PATH, | |
11834 | # but as the default location of the library. | |
11835 | hardcode_minus_L_GCJ=yes | |
11836 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
11837 | ;; | |
11838 | ||
11839 | irix5* | irix6* | nonstopux*) | |
11840 | if test "$GCC" = yes; then | |
11841 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
11842 | else | |
11843 | archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
11844 | fi | |
11845 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
11846 | hardcode_libdir_separator_GCJ=: | |
11847 | link_all_deplibs_GCJ=yes | |
11848 | ;; | |
11849 | ||
11850 | netbsd*) | |
11851 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
11852 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
11853 | else | |
11854 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
11855 | fi | |
11856 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
11857 | hardcode_direct_GCJ=yes | |
11858 | hardcode_shlibpath_var_GCJ=no | |
11859 | ;; | |
11860 | ||
11861 | newsos6) | |
11862 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11863 | hardcode_direct_GCJ=yes | |
11864 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
11865 | hardcode_libdir_separator_GCJ=: | |
11866 | hardcode_shlibpath_var_GCJ=no | |
11867 | ;; | |
11868 | ||
11869 | openbsd*) | |
11870 | hardcode_direct_GCJ=yes | |
11871 | hardcode_shlibpath_var_GCJ=no | |
11872 | ||
11873 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11874 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | |
11875 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
11876 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
11877 | else | |
11878 | case $host_os in | |
11879 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
11880 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
11881 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
11882 | ;; | |
11883 | *) | |
11884 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | |
11885 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
11886 | ;; | |
11887 | esac | |
11888 | fi | |
11889 | ;; | |
11890 | ||
11891 | os2*) | |
11892 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
11893 | hardcode_minus_L_GCJ=yes | |
11894 | allow_undefined_flag_GCJ=unsupported | |
11895 | archive_cmds_GCJ='$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' | |
11896 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
11897 | ;; | |
11898 | ||
11899 | osf3*) | |
11900 | if test "$GCC" = yes; then | |
11901 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
11902 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
11903 | else | |
11904 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
11905 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
11906 | fi | |
11907 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
11908 | hardcode_libdir_separator_GCJ=: | |
11909 | ;; | |
11910 | ||
11911 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
11912 | if test "$GCC" = yes; then | |
11913 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
11914 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
11915 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
11916 | else | |
11917 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
11918 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
11919 | archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
11920 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' | |
11921 | ||
11922 | # Both c and cxx compiler support -rpath directly | |
11923 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | |
11924 | fi | |
11925 | hardcode_libdir_separator_GCJ=: | |
11926 | ;; | |
11927 | ||
11928 | sco3.2v5*) | |
11929 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11930 | hardcode_shlibpath_var_GCJ=no | |
11931 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' | |
11932 | runpath_var=LD_RUN_PATH | |
11933 | hardcode_runpath_var=yes | |
11934 | ;; | |
11935 | ||
11936 | solaris*) | |
11937 | no_undefined_flag_GCJ=' -z text' | |
11938 | if test "$GCC" = yes; then | |
11939 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11940 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
11941 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
11942 | else | |
11943 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11944 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
11945 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
11946 | fi | |
11947 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
11948 | hardcode_shlibpath_var_GCJ=no | |
11949 | case $host_os in | |
11950 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11951 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | |
11952 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; | |
11953 | esac | |
11954 | link_all_deplibs_GCJ=yes | |
11955 | ;; | |
11956 | ||
11957 | sunos4*) | |
11958 | if test "x$host_vendor" = xsequent; then | |
11959 | # Use $CC to link under sequent, because it throws in some extra .o | |
11960 | # files that make .init and .fini sections work. | |
11961 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
11962 | else | |
11963 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
11964 | fi | |
11965 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
11966 | hardcode_direct_GCJ=yes | |
11967 | hardcode_minus_L_GCJ=yes | |
11968 | hardcode_shlibpath_var_GCJ=no | |
11969 | ;; | |
11970 | ||
11971 | sysv4) | |
11972 | if test "x$host_vendor" = xsni; then | |
11973 | archive_cmds_GCJ='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11974 | hardcode_direct_GCJ=yes # is this really true??? | |
11975 | else | |
11976 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11977 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | |
11978 | fi | |
11979 | runpath_var='LD_RUN_PATH' | |
11980 | hardcode_shlibpath_var_GCJ=no | |
11981 | ;; | |
11982 | ||
11983 | sysv4.3*) | |
11984 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11985 | hardcode_shlibpath_var_GCJ=no | |
11986 | export_dynamic_flag_spec_GCJ='-Bexport' | |
11987 | ;; | |
11988 | ||
11989 | sysv4*MP*) | |
11990 | if test -d /usr/nec; then | |
11991 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
11992 | hardcode_shlibpath_var_GCJ=no | |
11993 | runpath_var=LD_RUN_PATH | |
11994 | hardcode_runpath_var=yes | |
11995 | ld_shlibs_GCJ=yes | |
11996 | fi | |
11997 | ;; | |
11998 | ||
11999 | sysv4.2uw2*) | |
12000 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
12001 | hardcode_direct_GCJ=yes | |
12002 | hardcode_minus_L_GCJ=no | |
12003 | hardcode_shlibpath_var_GCJ=no | |
12004 | hardcode_runpath_var=yes | |
12005 | runpath_var=LD_RUN_PATH | |
12006 | ;; | |
12007 | ||
12008 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
12009 | no_undefined_flag_GCJ='${wl}-z ${wl}text' | |
12010 | if test "$GCC" = yes; then | |
12011 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12012 | else | |
12013 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
12014 | fi | |
12015 | runpath_var='LD_RUN_PATH' | |
12016 | hardcode_shlibpath_var_GCJ=no | |
12017 | ;; | |
12018 | ||
12019 | sysv5*) | |
12020 | no_undefined_flag_GCJ=' -z text' | |
12021 | # $CC -shared without GNU ld will not create a library from C++ | |
12022 | # object files and a static libstdc++, better avoid it by now | |
12023 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12024 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
12025 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
12026 | hardcode_libdir_flag_spec_GCJ= | |
12027 | hardcode_shlibpath_var_GCJ=no | |
12028 | runpath_var='LD_RUN_PATH' | |
12029 | ;; | |
12030 | ||
12031 | uts4*) | |
12032 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
12033 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
12034 | hardcode_shlibpath_var_GCJ=no | |
12035 | ;; | |
12036 | ||
12037 | *) | |
12038 | ld_shlibs_GCJ=no | |
12039 | ;; | |
12040 | esac | |
12041 | fi | |
12042 | ||
e61fbf76 | 12043 | echo "$as_me:12043: result: $ld_shlibs_GCJ" >&5 |
50850385 TJ |
12044 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
12045 | test "$ld_shlibs_GCJ" = no && can_build_shared=no | |
12046 | ||
12047 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
12048 | if test "$GCC" = yes; then | |
12049 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
12050 | fi | |
12051 | ||
12052 | # | |
12053 | # Do we need to explicitly link libc? | |
12054 | # | |
12055 | archive_cmds_need_lc_GCJ=yes | |
12056 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
12057 | case $archive_cmds_GCJ in | |
12058 | *'~'*) | |
12059 | # FIXME: we may have to deal with multi-command sequences. | |
12060 | ;; | |
12061 | '$CC '*) | |
12062 | # Test whether the compiler implicitly links with -lc since on some | |
12063 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
12064 | # to ld, don't add -lc before -lgcc. | |
e61fbf76 | 12065 | echo "$as_me:12065: checking whether -lc should be explicitly linked in" >&5 |
50850385 TJ |
12066 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
12067 | $rm conftest* | |
12068 | echo 'static int dummy;' > conftest.$ac_ext | |
12069 | ||
e61fbf76 | 12070 | if { (eval echo "$as_me:12070: \"$ac_compile\"") >&5 |
50850385 TJ |
12071 | (eval $ac_compile) 2>&5 |
12072 | ac_status=$? | |
e61fbf76 | 12073 | echo "$as_me:12073: \$? = $ac_status" >&5 |
50850385 TJ |
12074 | (exit $ac_status); } 2>conftest.err; then |
12075 | soname=conftest | |
12076 | lib=conftest | |
12077 | libobjs=conftest.$ac_objext | |
12078 | deplibs= | |
12079 | wl=$lt_prog_compiler_wl_GCJ | |
12080 | compiler_flags=-v | |
12081 | linker_flags=-v | |
12082 | verstring= | |
12083 | output_objdir=. | |
12084 | libname=conftest | |
12085 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | |
12086 | allow_undefined_flag_GCJ= | |
e61fbf76 | 12087 | if { (eval echo "$as_me:12087: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
50850385 TJ |
12088 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
12089 | ac_status=$? | |
e61fbf76 | 12090 | echo "$as_me:12090: \$? = $ac_status" >&5 |
50850385 TJ |
12091 | (exit $ac_status); } |
12092 | then | |
12093 | archive_cmds_need_lc_GCJ=no | |
12094 | else | |
12095 | archive_cmds_need_lc_GCJ=yes | |
12096 | fi | |
12097 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | |
12098 | else | |
12099 | cat conftest.err 1>&5 | |
12100 | fi | |
12101 | $rm conftest* | |
e61fbf76 | 12102 | echo "$as_me:12102: result: $archive_cmds_need_lc_GCJ" >&5 |
50850385 TJ |
12103 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
12104 | ;; | |
12105 | esac | |
12106 | fi | |
12107 | ||
e61fbf76 | 12108 | echo "$as_me:12108: checking how to hardcode library paths into programs" >&5 |
50850385 TJ |
12109 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
12110 | hardcode_action_GCJ= | |
12111 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | |
12112 | test -n "$runpath_var GCJ"; then | |
12113 | ||
12114 | # We can hardcode non-existant directories. | |
12115 | if test "$hardcode_direct_GCJ" != no && | |
12116 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12117 | # have to relink, otherwise we might link with an installed library | |
12118 | # when we should be linking with a yet-to-be-installed one | |
12119 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | |
12120 | test "$hardcode_minus_L_GCJ" != no; then | |
12121 | # Linking always hardcodes the temporary library directory. | |
12122 | hardcode_action_GCJ=relink | |
12123 | else | |
12124 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12125 | hardcode_action_GCJ=immediate | |
12126 | fi | |
12127 | else | |
12128 | # We cannot hardcode anything, or else we can only hardcode existing | |
12129 | # directories. | |
12130 | hardcode_action_GCJ=unsupported | |
12131 | fi | |
e61fbf76 | 12132 | echo "$as_me:12132: result: $hardcode_action_GCJ" >&5 |
50850385 TJ |
12133 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
12134 | ||
12135 | if test "$hardcode_action_GCJ" = relink; then | |
12136 | # Fast installation is not supported | |
12137 | enable_fast_install=no | |
12138 | elif test "$shlibpath_overrides_runpath" = yes || | |
12139 | test "$enable_shared" = no; then | |
12140 | # Fast installation is not necessary | |
12141 | enable_fast_install=needless | |
12142 | fi | |
12143 | ||
12144 | striplib= | |
12145 | old_striplib= | |
e61fbf76 | 12146 | echo "$as_me:12146: checking whether stripping libraries is possible" >&5 |
50850385 TJ |
12147 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
12148 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
12149 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12150 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
e61fbf76 | 12151 | echo "$as_me:12151: result: yes" >&5 |
50850385 TJ |
12152 | echo "${ECHO_T}yes" >&6 |
12153 | else | |
e61fbf76 | 12154 | echo "$as_me:12154: result: no" >&5 |
50850385 TJ |
12155 | echo "${ECHO_T}no" >&6 |
12156 | fi | |
12157 | ||
e61fbf76 | 12158 | echo "$as_me:12158: checking dynamic linker characteristics" >&5 |
50850385 TJ |
12159 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
12160 | library_names_spec= | |
12161 | libname_spec='lib$name' | |
12162 | soname_spec= | |
12163 | postinstall_cmds= | |
12164 | postuninstall_cmds= | |
12165 | finish_cmds= | |
12166 | finish_eval= | |
12167 | shlibpath_var= | |
12168 | shlibpath_overrides_runpath=unknown | |
12169 | version_type=none | |
12170 | dynamic_linker="$host_os ld.so" | |
12171 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
12172 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
12173 | need_lib_prefix=unknown | |
12174 | hardcode_into_libs=no | |
12175 | ||
12176 | # when you set need_version to no, make sure it does not cause -set_version | |
12177 | # flags to be left without arguments | |
12178 | need_version=unknown | |
12179 | ||
12180 | case $host_os in | |
12181 | aix3*) | |
12182 | version_type=linux | |
12183 | library_names_spec='${libname}${release}.so$versuffix $libname.a' | |
12184 | shlibpath_var=LIBPATH | |
12185 | ||
12186 | # AIX 3 has no versioning support, so we append a major version to the name. | |
12187 | soname_spec='${libname}${release}.so$major' | |
12188 | ;; | |
12189 | ||
12190 | aix4* | aix5*) | |
12191 | version_type=linux | |
12192 | if test "$host_cpu" = ia64; then | |
12193 | # AIX 5 supports IA64 | |
12194 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' | |
12195 | shlibpath_var=LD_LIBRARY_PATH | |
12196 | else | |
12197 | # With GCC up to 2.95.x, collect2 would create an import file | |
12198 | # for dependence libraries. The import file would start with | |
12199 | # the line `#! .'. This would cause the generated library to | |
12200 | # depend on `.', always an invalid library. This was fixed in | |
12201 | # development snapshots of GCC prior to 3.0. | |
12202 | case $host_os in | |
12203 | aix4 | aix4.[01] | aix4.[01].*) | |
12204 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
12205 | echo ' yes ' | |
12206 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
12207 | : | |
12208 | else | |
12209 | can_build_shared=no | |
12210 | fi | |
12211 | ;; | |
12212 | esac | |
12213 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
12214 | # soname into executable. Probably we can add versioning support to | |
12215 | # collect2, so additional links can be useful in future. | |
12216 | if test "$aix_use_runtimelinking" = yes; then | |
12217 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
12218 | # instead of lib<name>.a to let people know that these are not | |
12219 | # typical AIX shared libraries. | |
12220 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
12221 | else | |
12222 | # We preserve .a as extension for shared libraries through AIX4.2 | |
12223 | # and later when we are not doing run time linking. | |
12224 | library_names_spec='${libname}${release}.a $libname.a' | |
12225 | soname_spec='${libname}${release}.so$major' | |
12226 | fi | |
12227 | shlibpath_var=LIBPATH | |
12228 | fi | |
12229 | ;; | |
12230 | ||
12231 | amigaos*) | |
12232 | library_names_spec='$libname.ixlibrary $libname.a' | |
12233 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
12234 | 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' | |
12235 | ;; | |
12236 | ||
12237 | beos*) | |
12238 | library_names_spec='${libname}.so' | |
12239 | dynamic_linker="$host_os ld.so" | |
12240 | shlibpath_var=LIBRARY_PATH | |
12241 | ;; | |
12242 | ||
12243 | bsdi4*) | |
12244 | version_type=linux | |
12245 | need_version=no | |
12246 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
12247 | soname_spec='${libname}${release}.so$major' | |
12248 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
12249 | shlibpath_var=LD_LIBRARY_PATH | |
12250 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
12251 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
12252 | # the default ld.so.conf also contains /usr/contrib/lib and | |
12253 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
12254 | # libtool to hard-code these into programs | |
12255 | ;; | |
12256 | ||
12257 | cygwin* | mingw* | pw32*) | |
12258 | version_type=windows | |
12259 | need_version=no | |
12260 | need_lib_prefix=no | |
12261 | case $GCC,$host_os in | |
12262 | yes,cygwin*) | |
12263 | library_names_spec='$libname.dll.a' | |
12264 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" | |
12265 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
12266 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ | |
12267 | dldir=$destdir/`dirname \$dlpath`~ | |
12268 | test -d \$dldir || mkdir -p \$dldir~ | |
12269 | $install_prog .libs/$dlname \$dldir/$dlname' | |
12270 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
12271 | dlpath=$dir/\$dldll~ | |
12272 | $rm \$dlpath' | |
12273 | ;; | |
12274 | yes,mingw*) | |
12275 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
12276 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"` | |
12277 | if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then | |
12278 | # It is most probably a Windows format PATH printed by | |
12279 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
12280 | # path with ; separators, and with drive letters. We can handle the | |
12281 | # drive letters (cygwin fileutils understands them), so leave them, | |
12282 | # especially as we might pass files found there to a mingw objdump, | |
12283 | # which wouldn't understand a cygwinified path. Ahh. | |
12284 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` | |
12285 | else | |
12286 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` | |
12287 | fi | |
12288 | ;; | |
12289 | yes,pw32*) | |
12290 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' | |
12291 | ;; | |
12292 | *) | |
12293 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' | |
12294 | ;; | |
12295 | esac | |
12296 | dynamic_linker='Win32 ld.exe' | |
12297 | # FIXME: first we should search . and the directory the executable is in | |
12298 | shlibpath_var=PATH | |
12299 | ;; | |
12300 | ||
12301 | darwin* | rhapsody*) | |
12302 | dynamic_linker="$host_os dyld" | |
12303 | version_type=darwin | |
12304 | need_lib_prefix=no | |
12305 | need_version=no | |
12306 | # FIXME: Relying on posixy $() will cause problems for | |
12307 | # cross-compilation, but unfortunately the echo tests do not | |
12308 | # yet detect zsh echo's removal of \ escapes. | |
12309 | library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' | |
12310 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' | |
12311 | shlibpath_overrides_runpath=yes | |
12312 | shlibpath_var=DYLD_LIBRARY_PATH | |
12313 | ;; | |
12314 | ||
12315 | dgux*) | |
12316 | version_type=linux | |
12317 | need_lib_prefix=no | |
12318 | need_version=no | |
12319 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
12320 | soname_spec='${libname}${release}.so$major' | |
12321 | shlibpath_var=LD_LIBRARY_PATH | |
12322 | ;; | |
12323 | ||
12324 | freebsd1*) | |
12325 | dynamic_linker=no | |
12326 | ;; | |
12327 | ||
12328 | freebsd*) | |
12329 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
12330 | version_type=freebsd-$objformat | |
12331 | case $version_type in | |
12332 | freebsd-elf*) | |
12333 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
12334 | need_version=no | |
12335 | need_lib_prefix=no | |
12336 | ;; | |
12337 | freebsd-*) | |
12338 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' | |
12339 | need_version=yes | |
12340 | ;; | |
12341 | esac | |
12342 | shlibpath_var=LD_LIBRARY_PATH | |
12343 | case $host_os in | |
12344 | freebsd2*) | |
12345 | shlibpath_overrides_runpath=yes | |
12346 | ;; | |
12347 | freebsd3.01* | freebsdelf3.01*) | |
12348 | shlibpath_overrides_runpath=yes | |
12349 | hardcode_into_libs=yes | |
12350 | ;; | |
12351 | *) # from 3.2 on | |
12352 | shlibpath_overrides_runpath=no | |
12353 | hardcode_into_libs=yes | |
12354 | ;; | |
12355 | esac | |
12356 | ;; | |
12357 | ||
12358 | gnu*) | |
12359 | version_type=linux | |
12360 | need_lib_prefix=no | |
12361 | need_version=no | |
12362 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' | |
12363 | soname_spec='${libname}${release}.so$major' | |
12364 | shlibpath_var=LD_LIBRARY_PATH | |
12365 | hardcode_into_libs=yes | |
12366 | ;; | |
12367 | ||
12368 | hpux9* | hpux10* | hpux11*) | |
12369 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
12370 | # link against other versions. | |
12371 | version_type=sunos | |
12372 | need_lib_prefix=no | |
12373 | need_version=no | |
12374 | if test "$host_cpu" = ia64; then | |
12375 | hardcode_into_libs=yes | |
12376 | dynamic_linker="$host_os dld.so" | |
12377 | shlibpath_var=LD_LIBRARY_PATH | |
12378 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
12379 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
12380 | soname_spec='${libname}${release}.so$major' | |
12381 | if test "X$HPUX_IA64_MODE" = X32; then | |
12382 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
12383 | else | |
12384 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
12385 | fi | |
12386 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12387 | else | |
12388 | dynamic_linker="$host_os dld.sl" | |
12389 | shlibpath_var=SHLIB_PATH | |
12390 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
12391 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' | |
12392 | soname_spec='${libname}${release}.sl$major' | |
12393 | fi | |
12394 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
12395 | postinstall_cmds='chmod 555 $lib' | |
12396 | ;; | |
12397 | ||
12398 | irix5* | irix6* | nonstopux*) | |
12399 | case $host_os in | |
12400 | nonstopux*) version_type=nonstopux ;; | |
12401 | *) version_type=irix ;; | |
12402 | esac | |
12403 | need_lib_prefix=no | |
12404 | need_version=no | |
12405 | soname_spec='${libname}${release}.so$major' | |
12406 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' | |
12407 | case $host_os in | |
12408 | irix5* | nonstopux*) | |
12409 | libsuff= shlibsuff= | |
12410 | ;; | |
12411 | *) | |
12412 | case $LD in # libtool.m4 will add one of these switches to LD | |
12413 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; | |
12414 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; | |
12415 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
12416 | *) libsuff= shlibsuff= libmagic=never-match;; | |
12417 | esac | |
12418 | ;; | |
12419 | esac | |
12420 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
12421 | shlibpath_overrides_runpath=no | |
12422 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
12423 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
12424 | ;; | |
12425 | ||
12426 | # No shared lib support for Linux oldld, aout, or coff. | |
12427 | linux*oldld* | linux*aout* | linux*coff*) | |
12428 | dynamic_linker=no | |
12429 | ;; | |
12430 | ||
12431 | # This must be Linux ELF. | |
12432 | linux*) | |
12433 | version_type=linux | |
12434 | need_lib_prefix=no | |
12435 | need_version=no | |
12436 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
12437 | soname_spec='${libname}${release}.so$major' | |
12438 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
12439 | libsuff= | |
12440 | if test "x$LINUX_64_MODE" = x64; then | |
12441 | # Some platforms are per default 64-bit, so there's no /lib64 | |
12442 | if test -d /lib64; then | |
12443 | libsuff=64 | |
12444 | fi | |
12445 | fi | |
12446 | shlibpath_var=LD_LIBRARY_PATH | |
12447 | shlibpath_overrides_runpath=no | |
12448 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" | |
12449 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
12450 | # This implies no fast_install, which is unacceptable. | |
12451 | # Some rework will be needed to allow for fast_install | |
12452 | # before this can be enabled. | |
12453 | hardcode_into_libs=yes | |
12454 | ||
12455 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
12456 | # powerpc, because MkLinux only supported shared libraries with the | |
12457 | # GNU dynamic linker. Since this was broken with cross compilers, | |
12458 | # most powerpc-linux boxes support dynamic linking these days and | |
12459 | # people can always --disable-shared, the test was removed, and we | |
12460 | # assume the GNU/Linux dynamic linker is in use. | |
12461 | dynamic_linker='GNU/Linux ld.so' | |
12462 | ;; | |
12463 | ||
12464 | netbsd*) | |
12465 | version_type=sunos | |
12466 | need_lib_prefix=no | |
12467 | need_version=no | |
12468 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
12469 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
12470 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12471 | dynamic_linker='NetBSD (a.out) ld.so' | |
12472 | else | |
12473 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' | |
12474 | soname_spec='${libname}${release}.so$major' | |
12475 | dynamic_linker='NetBSD ld.elf_so' | |
12476 | fi | |
12477 | shlibpath_var=LD_LIBRARY_PATH | |
12478 | shlibpath_overrides_runpath=yes | |
12479 | hardcode_into_libs=yes | |
12480 | ;; | |
12481 | ||
12482 | newsos6) | |
12483 | version_type=linux | |
12484 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
12485 | shlibpath_var=LD_LIBRARY_PATH | |
12486 | shlibpath_overrides_runpath=yes | |
12487 | ;; | |
12488 | ||
12489 | nto-qnx) | |
12490 | version_type=linux | |
12491 | need_lib_prefix=no | |
12492 | need_version=no | |
12493 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
12494 | soname_spec='${libname}${release}.so$major' | |
12495 | shlibpath_var=LD_LIBRARY_PATH | |
12496 | shlibpath_overrides_runpath=yes | |
12497 | ;; | |
12498 | ||
12499 | openbsd*) | |
12500 | version_type=sunos | |
12501 | need_lib_prefix=no | |
12502 | need_version=no | |
12503 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
12504 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12505 | shlibpath_var=LD_LIBRARY_PATH | |
12506 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12507 | case $host_os in | |
12508 | openbsd2.[89] | openbsd2.[89].*) | |
12509 | shlibpath_overrides_runpath=no | |
12510 | ;; | |
12511 | *) | |
12512 | shlibpath_overrides_runpath=yes | |
12513 | ;; | |
12514 | esac | |
12515 | else | |
12516 | shlibpath_overrides_runpath=yes | |
12517 | fi | |
12518 | ;; | |
12519 | ||
12520 | os2*) | |
12521 | libname_spec='$name' | |
12522 | need_lib_prefix=no | |
12523 | library_names_spec='$libname.dll $libname.a' | |
12524 | dynamic_linker='OS/2 ld.exe' | |
12525 | shlibpath_var=LIBPATH | |
12526 | ;; | |
12527 | ||
12528 | osf3* | osf4* | osf5*) | |
12529 | version_type=osf | |
12530 | need_lib_prefix=no | |
12531 | need_version=no | |
12532 | soname_spec='${libname}${release}.so' | |
12533 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
12534 | shlibpath_var=LD_LIBRARY_PATH | |
12535 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
12536 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
12537 | ;; | |
12538 | ||
12539 | sco3.2v5*) | |
12540 | version_type=osf | |
12541 | soname_spec='${libname}${release}.so$major' | |
12542 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
12543 | shlibpath_var=LD_LIBRARY_PATH | |
12544 | ;; | |
12545 | ||
12546 | solaris*) | |
12547 | version_type=linux | |
12548 | need_lib_prefix=no | |
12549 | need_version=no | |
12550 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
12551 | soname_spec='${libname}${release}.so$major' | |
12552 | shlibpath_var=LD_LIBRARY_PATH | |
12553 | shlibpath_overrides_runpath=yes | |
12554 | hardcode_into_libs=yes | |
12555 | # ldd complains unless libraries are executable | |
12556 | postinstall_cmds='chmod +x $lib' | |
12557 | ;; | |
12558 | ||
12559 | sunos4*) | |
12560 | version_type=sunos | |
12561 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
12562 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
12563 | shlibpath_var=LD_LIBRARY_PATH | |
12564 | shlibpath_overrides_runpath=yes | |
12565 | if test "$with_gnu_ld" = yes; then | |
12566 | need_lib_prefix=no | |
12567 | fi | |
12568 | need_version=yes | |
12569 | ;; | |
12570 | ||
12571 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
12572 | version_type=linux | |
12573 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
12574 | soname_spec='${libname}${release}.so$major' | |
12575 | shlibpath_var=LD_LIBRARY_PATH | |
12576 | case $host_vendor in | |
12577 | sni) | |
12578 | shlibpath_overrides_runpath=no | |
12579 | ;; | |
12580 | motorola) | |
12581 | need_lib_prefix=no | |
12582 | need_version=no | |
12583 | shlibpath_overrides_runpath=no | |
12584 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
12585 | ;; | |
12586 | esac | |
12587 | ;; | |
12588 | ||
12589 | sysv4*MP*) | |
12590 | if test -d /usr/nec ;then | |
12591 | version_type=linux | |
12592 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' | |
12593 | soname_spec='$libname.so.$major' | |
12594 | shlibpath_var=LD_LIBRARY_PATH | |
12595 | fi | |
12596 | ;; | |
12597 | ||
12598 | uts4*) | |
12599 | version_type=linux | |
12600 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
12601 | soname_spec='${libname}${release}.so$major' | |
12602 | shlibpath_var=LD_LIBRARY_PATH | |
12603 | ;; | |
12604 | ||
12605 | *) | |
12606 | dynamic_linker=no | |
12607 | ;; | |
12608 | esac | |
e61fbf76 | 12609 | echo "$as_me:12609: result: $dynamic_linker" >&5 |
50850385 TJ |
12610 | echo "${ECHO_T}$dynamic_linker" >&6 |
12611 | test "$dynamic_linker" = no && can_build_shared=no | |
12612 | ||
12613 | if test "x$enable_dlopen" != xyes; then | |
12614 | enable_dlopen=unknown | |
12615 | enable_dlopen_self=unknown | |
12616 | enable_dlopen_self_static=unknown | |
12617 | else | |
12618 | lt_cv_dlopen=no | |
12619 | lt_cv_dlopen_libs= | |
12620 | ||
12621 | case $host_os in | |
12622 | beos*) | |
12623 | lt_cv_dlopen="load_add_on" | |
12624 | lt_cv_dlopen_libs= | |
12625 | lt_cv_dlopen_self=yes | |
12626 | ;; | |
12627 | ||
12628 | cygwin* | mingw* | pw32*) | |
12629 | lt_cv_dlopen="LoadLibrary" | |
12630 | lt_cv_dlopen_libs= | |
12631 | ;; | |
12632 | ||
12633 | *) | |
e61fbf76 | 12634 | echo "$as_me:12634: checking for shl_load" >&5 |
50850385 TJ |
12635 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
12636 | if test "${ac_cv_func_shl_load+set}" = set; then | |
12637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12638 | else | |
12639 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 12640 | #line 12640 "configure" |
50850385 TJ |
12641 | #include "confdefs.h" |
12642 | /* System header to define __stub macros and hopefully few prototypes, | |
12643 | which can conflict with char shl_load (); below. */ | |
12644 | #include <assert.h> | |
12645 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12646 | #ifdef __cplusplus | |
12647 | extern "C" | |
12648 | #endif | |
12649 | /* We use char because int might match the return type of a gcc2 | |
12650 | builtin and then its argument prototype would still apply. */ | |
12651 | char shl_load (); | |
12652 | char (*f) (); | |
12653 | ||
50850385 TJ |
12654 | int |
12655 | main () | |
12656 | { | |
12657 | /* The GNU C library defines this for functions which it implements | |
12658 | to always fail with ENOSYS. Some functions are actually named | |
12659 | something starting with __ and the normal name is an alias. */ | |
12660 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
12661 | choke me | |
12662 | #else | |
12663 | f = shl_load; | |
12664 | #endif | |
12665 | ||
12666 | ; | |
12667 | return 0; | |
12668 | } | |
12669 | _ACEOF | |
12670 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 12671 | if { (eval echo "$as_me:12671: \"$ac_link\"") >&5 |
50850385 TJ |
12672 | (eval $ac_link) 2>&5 |
12673 | ac_status=$? | |
e61fbf76 | 12674 | echo "$as_me:12674: \$? = $ac_status" >&5 |
50850385 TJ |
12675 | (exit $ac_status); } && |
12676 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 12677 | { (eval echo "$as_me:12677: \"$ac_try\"") >&5 |
50850385 TJ |
12678 | (eval $ac_try) 2>&5 |
12679 | ac_status=$? | |
e61fbf76 | 12680 | echo "$as_me:12680: \$? = $ac_status" >&5 |
50850385 TJ |
12681 | (exit $ac_status); }; }; then |
12682 | ac_cv_func_shl_load=yes | |
12683 | else | |
12684 | echo "$as_me: failed program was:" >&5 | |
12685 | cat conftest.$ac_ext >&5 | |
12686 | ac_cv_func_shl_load=no | |
12687 | fi | |
12688 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12689 | fi | |
e61fbf76 | 12690 | echo "$as_me:12690: result: $ac_cv_func_shl_load" >&5 |
50850385 TJ |
12691 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
12692 | if test $ac_cv_func_shl_load = yes; then | |
12693 | lt_cv_dlopen="shl_load" | |
12694 | else | |
e61fbf76 | 12695 | echo "$as_me:12695: checking for shl_load in -ldld" >&5 |
50850385 TJ |
12696 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
12697 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
12698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12699 | else | |
12700 | ac_check_lib_save_LIBS=$LIBS | |
12701 | LIBS="-ldld $LIBS" | |
12702 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 12703 | #line 12703 "configure" |
50850385 TJ |
12704 | #include "confdefs.h" |
12705 | ||
12706 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12707 | #ifdef __cplusplus | |
12708 | extern "C" | |
12709 | #endif | |
12710 | /* We use char because int might match the return type of a gcc2 | |
12711 | builtin and then its argument prototype would still apply. */ | |
12712 | char shl_load (); | |
50850385 TJ |
12713 | int |
12714 | main () | |
12715 | { | |
12716 | shl_load (); | |
12717 | ; | |
12718 | return 0; | |
12719 | } | |
12720 | _ACEOF | |
12721 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 12722 | if { (eval echo "$as_me:12722: \"$ac_link\"") >&5 |
50850385 TJ |
12723 | (eval $ac_link) 2>&5 |
12724 | ac_status=$? | |
e61fbf76 | 12725 | echo "$as_me:12725: \$? = $ac_status" >&5 |
50850385 TJ |
12726 | (exit $ac_status); } && |
12727 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 12728 | { (eval echo "$as_me:12728: \"$ac_try\"") >&5 |
50850385 TJ |
12729 | (eval $ac_try) 2>&5 |
12730 | ac_status=$? | |
e61fbf76 | 12731 | echo "$as_me:12731: \$? = $ac_status" >&5 |
50850385 TJ |
12732 | (exit $ac_status); }; }; then |
12733 | ac_cv_lib_dld_shl_load=yes | |
12734 | else | |
12735 | echo "$as_me: failed program was:" >&5 | |
12736 | cat conftest.$ac_ext >&5 | |
12737 | ac_cv_lib_dld_shl_load=no | |
12738 | fi | |
12739 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12740 | LIBS=$ac_check_lib_save_LIBS | |
12741 | fi | |
e61fbf76 | 12742 | echo "$as_me:12742: result: $ac_cv_lib_dld_shl_load" >&5 |
50850385 TJ |
12743 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
12744 | if test $ac_cv_lib_dld_shl_load = yes; then | |
12745 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
12746 | else | |
e61fbf76 | 12747 | echo "$as_me:12747: checking for dlopen" >&5 |
50850385 TJ |
12748 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
12749 | if test "${ac_cv_func_dlopen+set}" = set; then | |
12750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12751 | else | |
12752 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 12753 | #line 12753 "configure" |
50850385 TJ |
12754 | #include "confdefs.h" |
12755 | /* System header to define __stub macros and hopefully few prototypes, | |
12756 | which can conflict with char dlopen (); below. */ | |
12757 | #include <assert.h> | |
12758 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12759 | #ifdef __cplusplus | |
12760 | extern "C" | |
12761 | #endif | |
12762 | /* We use char because int might match the return type of a gcc2 | |
12763 | builtin and then its argument prototype would still apply. */ | |
12764 | char dlopen (); | |
12765 | char (*f) (); | |
12766 | ||
50850385 TJ |
12767 | int |
12768 | main () | |
12769 | { | |
12770 | /* The GNU C library defines this for functions which it implements | |
12771 | to always fail with ENOSYS. Some functions are actually named | |
12772 | something starting with __ and the normal name is an alias. */ | |
12773 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
12774 | choke me | |
12775 | #else | |
12776 | f = dlopen; | |
12777 | #endif | |
12778 | ||
12779 | ; | |
12780 | return 0; | |
12781 | } | |
12782 | _ACEOF | |
12783 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 12784 | if { (eval echo "$as_me:12784: \"$ac_link\"") >&5 |
50850385 TJ |
12785 | (eval $ac_link) 2>&5 |
12786 | ac_status=$? | |
e61fbf76 | 12787 | echo "$as_me:12787: \$? = $ac_status" >&5 |
50850385 TJ |
12788 | (exit $ac_status); } && |
12789 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 12790 | { (eval echo "$as_me:12790: \"$ac_try\"") >&5 |
50850385 TJ |
12791 | (eval $ac_try) 2>&5 |
12792 | ac_status=$? | |
e61fbf76 | 12793 | echo "$as_me:12793: \$? = $ac_status" >&5 |
50850385 TJ |
12794 | (exit $ac_status); }; }; then |
12795 | ac_cv_func_dlopen=yes | |
12796 | else | |
12797 | echo "$as_me: failed program was:" >&5 | |
12798 | cat conftest.$ac_ext >&5 | |
12799 | ac_cv_func_dlopen=no | |
12800 | fi | |
12801 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12802 | fi | |
e61fbf76 | 12803 | echo "$as_me:12803: result: $ac_cv_func_dlopen" >&5 |
50850385 TJ |
12804 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
12805 | if test $ac_cv_func_dlopen = yes; then | |
12806 | lt_cv_dlopen="dlopen" | |
12807 | else | |
e61fbf76 | 12808 | echo "$as_me:12808: checking for dlopen in -ldl" >&5 |
50850385 TJ |
12809 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
12810 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
12811 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12812 | else | |
12813 | ac_check_lib_save_LIBS=$LIBS | |
12814 | LIBS="-ldl $LIBS" | |
12815 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 12816 | #line 12816 "configure" |
50850385 TJ |
12817 | #include "confdefs.h" |
12818 | ||
12819 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12820 | #ifdef __cplusplus | |
12821 | extern "C" | |
12822 | #endif | |
12823 | /* We use char because int might match the return type of a gcc2 | |
12824 | builtin and then its argument prototype would still apply. */ | |
12825 | char dlopen (); | |
50850385 TJ |
12826 | int |
12827 | main () | |
12828 | { | |
12829 | dlopen (); | |
12830 | ; | |
12831 | return 0; | |
12832 | } | |
12833 | _ACEOF | |
12834 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 12835 | if { (eval echo "$as_me:12835: \"$ac_link\"") >&5 |
50850385 TJ |
12836 | (eval $ac_link) 2>&5 |
12837 | ac_status=$? | |
e61fbf76 | 12838 | echo "$as_me:12838: \$? = $ac_status" >&5 |
50850385 TJ |
12839 | (exit $ac_status); } && |
12840 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 12841 | { (eval echo "$as_me:12841: \"$ac_try\"") >&5 |
50850385 TJ |
12842 | (eval $ac_try) 2>&5 |
12843 | ac_status=$? | |
e61fbf76 | 12844 | echo "$as_me:12844: \$? = $ac_status" >&5 |
50850385 TJ |
12845 | (exit $ac_status); }; }; then |
12846 | ac_cv_lib_dl_dlopen=yes | |
12847 | else | |
12848 | echo "$as_me: failed program was:" >&5 | |
12849 | cat conftest.$ac_ext >&5 | |
12850 | ac_cv_lib_dl_dlopen=no | |
12851 | fi | |
12852 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12853 | LIBS=$ac_check_lib_save_LIBS | |
12854 | fi | |
e61fbf76 | 12855 | echo "$as_me:12855: result: $ac_cv_lib_dl_dlopen" >&5 |
50850385 TJ |
12856 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
12857 | if test $ac_cv_lib_dl_dlopen = yes; then | |
12858 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
12859 | else | |
e61fbf76 | 12860 | echo "$as_me:12860: checking for dlopen in -lsvld" >&5 |
50850385 TJ |
12861 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
12862 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
12863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12864 | else | |
12865 | ac_check_lib_save_LIBS=$LIBS | |
12866 | LIBS="-lsvld $LIBS" | |
12867 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 12868 | #line 12868 "configure" |
50850385 TJ |
12869 | #include "confdefs.h" |
12870 | ||
12871 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12872 | #ifdef __cplusplus | |
12873 | extern "C" | |
12874 | #endif | |
12875 | /* We use char because int might match the return type of a gcc2 | |
12876 | builtin and then its argument prototype would still apply. */ | |
12877 | char dlopen (); | |
50850385 TJ |
12878 | int |
12879 | main () | |
12880 | { | |
12881 | dlopen (); | |
12882 | ; | |
12883 | return 0; | |
12884 | } | |
12885 | _ACEOF | |
12886 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 12887 | if { (eval echo "$as_me:12887: \"$ac_link\"") >&5 |
50850385 TJ |
12888 | (eval $ac_link) 2>&5 |
12889 | ac_status=$? | |
e61fbf76 | 12890 | echo "$as_me:12890: \$? = $ac_status" >&5 |
50850385 TJ |
12891 | (exit $ac_status); } && |
12892 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 12893 | { (eval echo "$as_me:12893: \"$ac_try\"") >&5 |
50850385 TJ |
12894 | (eval $ac_try) 2>&5 |
12895 | ac_status=$? | |
e61fbf76 | 12896 | echo "$as_me:12896: \$? = $ac_status" >&5 |
50850385 TJ |
12897 | (exit $ac_status); }; }; then |
12898 | ac_cv_lib_svld_dlopen=yes | |
12899 | else | |
12900 | echo "$as_me: failed program was:" >&5 | |
12901 | cat conftest.$ac_ext >&5 | |
12902 | ac_cv_lib_svld_dlopen=no | |
12903 | fi | |
12904 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12905 | LIBS=$ac_check_lib_save_LIBS | |
12906 | fi | |
e61fbf76 | 12907 | echo "$as_me:12907: result: $ac_cv_lib_svld_dlopen" >&5 |
50850385 TJ |
12908 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
12909 | if test $ac_cv_lib_svld_dlopen = yes; then | |
12910 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
12911 | else | |
e61fbf76 | 12912 | echo "$as_me:12912: checking for dld_link in -ldld" >&5 |
50850385 TJ |
12913 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
12914 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
12915 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12916 | else | |
12917 | ac_check_lib_save_LIBS=$LIBS | |
12918 | LIBS="-ldld $LIBS" | |
12919 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 12920 | #line 12920 "configure" |
50850385 TJ |
12921 | #include "confdefs.h" |
12922 | ||
12923 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12924 | #ifdef __cplusplus | |
12925 | extern "C" | |
12926 | #endif | |
12927 | /* We use char because int might match the return type of a gcc2 | |
12928 | builtin and then its argument prototype would still apply. */ | |
12929 | char dld_link (); | |
50850385 TJ |
12930 | int |
12931 | main () | |
12932 | { | |
12933 | dld_link (); | |
12934 | ; | |
12935 | return 0; | |
12936 | } | |
12937 | _ACEOF | |
12938 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 12939 | if { (eval echo "$as_me:12939: \"$ac_link\"") >&5 |
50850385 TJ |
12940 | (eval $ac_link) 2>&5 |
12941 | ac_status=$? | |
e61fbf76 | 12942 | echo "$as_me:12942: \$? = $ac_status" >&5 |
50850385 TJ |
12943 | (exit $ac_status); } && |
12944 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 12945 | { (eval echo "$as_me:12945: \"$ac_try\"") >&5 |
50850385 TJ |
12946 | (eval $ac_try) 2>&5 |
12947 | ac_status=$? | |
e61fbf76 | 12948 | echo "$as_me:12948: \$? = $ac_status" >&5 |
50850385 TJ |
12949 | (exit $ac_status); }; }; then |
12950 | ac_cv_lib_dld_dld_link=yes | |
12951 | else | |
12952 | echo "$as_me: failed program was:" >&5 | |
12953 | cat conftest.$ac_ext >&5 | |
12954 | ac_cv_lib_dld_dld_link=no | |
12955 | fi | |
12956 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12957 | LIBS=$ac_check_lib_save_LIBS | |
12958 | fi | |
e61fbf76 | 12959 | echo "$as_me:12959: result: $ac_cv_lib_dld_dld_link" >&5 |
50850385 TJ |
12960 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
12961 | if test $ac_cv_lib_dld_dld_link = yes; then | |
12962 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
12963 | fi | |
12964 | ||
50850385 TJ |
12965 | fi |
12966 | ||
50850385 TJ |
12967 | fi |
12968 | ||
50850385 TJ |
12969 | fi |
12970 | ||
50850385 TJ |
12971 | fi |
12972 | ||
50850385 TJ |
12973 | fi |
12974 | ||
12975 | ;; | |
12976 | esac | |
12977 | ||
12978 | if test "x$lt_cv_dlopen" != xno; then | |
12979 | enable_dlopen=yes | |
12980 | else | |
12981 | enable_dlopen=no | |
12982 | fi | |
12983 | ||
12984 | case $lt_cv_dlopen in | |
12985 | dlopen) | |
12986 | save_CPPFLAGS="$CPPFLAGS" | |
12987 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12988 | ||
12989 | save_LDFLAGS="$LDFLAGS" | |
12990 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12991 | ||
12992 | save_LIBS="$LIBS" | |
12993 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
12994 | ||
e61fbf76 | 12995 | echo "$as_me:12995: checking whether a program can dlopen itself" >&5 |
50850385 TJ |
12996 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
12997 | if test "${lt_cv_dlopen_self+set}" = set; then | |
12998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12999 | else | |
13000 | if test "$cross_compiling" = yes; then : | |
13001 | lt_cv_dlopen_self=cross | |
13002 | else | |
13003 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
13004 | lt_status=$lt_dlunknown | |
13005 | cat > conftest.$ac_ext <<EOF | |
e61fbf76 | 13006 | #line 13006 "configure" |
50850385 TJ |
13007 | #include "confdefs.h" |
13008 | ||
13009 | #if HAVE_DLFCN_H | |
13010 | #include <dlfcn.h> | |
13011 | #endif | |
13012 | ||
13013 | #include <stdio.h> | |
13014 | ||
13015 | #ifdef RTLD_GLOBAL | |
13016 | # define LT_DLGLOBAL RTLD_GLOBAL | |
13017 | #else | |
13018 | # ifdef DL_GLOBAL | |
13019 | # define LT_DLGLOBAL DL_GLOBAL | |
13020 | # else | |
13021 | # define LT_DLGLOBAL 0 | |
13022 | # endif | |
13023 | #endif | |
13024 | ||
13025 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
13026 | find out it does not work in some platform. */ | |
13027 | #ifndef LT_DLLAZY_OR_NOW | |
13028 | # ifdef RTLD_LAZY | |
13029 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
13030 | # else | |
13031 | # ifdef DL_LAZY | |
13032 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
13033 | # else | |
13034 | # ifdef RTLD_NOW | |
13035 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
13036 | # else | |
13037 | # ifdef DL_NOW | |
13038 | # define LT_DLLAZY_OR_NOW DL_NOW | |
13039 | # else | |
13040 | # define LT_DLLAZY_OR_NOW 0 | |
13041 | # endif | |
13042 | # endif | |
13043 | # endif | |
13044 | # endif | |
13045 | #endif | |
13046 | ||
13047 | #ifdef __cplusplus | |
13048 | extern "C" void exit (int); | |
13049 | #endif | |
13050 | ||
13051 | void fnord() { int i=42;} | |
13052 | int main () | |
13053 | { | |
13054 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
13055 | int status = $lt_dlunknown; | |
13056 | ||
13057 | if (self) | |
13058 | { | |
13059 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
13060 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
13061 | /* dlclose (self); */ | |
13062 | } | |
13063 | ||
13064 | exit (status); | |
13065 | } | |
13066 | EOF | |
e61fbf76 | 13067 | if { (eval echo "$as_me:13067: \"$ac_link\"") >&5 |
50850385 TJ |
13068 | (eval $ac_link) 2>&5 |
13069 | ac_status=$? | |
e61fbf76 | 13070 | echo "$as_me:13070: \$? = $ac_status" >&5 |
50850385 TJ |
13071 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
13072 | (./conftest; exit; ) 2>/dev/null | |
13073 | lt_status=$? | |
13074 | case x$lt_status in | |
13075 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
13076 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
13077 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
13078 | esac | |
13079 | else : | |
13080 | # compilation failed | |
13081 | lt_cv_dlopen_self=no | |
13082 | fi | |
13083 | fi | |
13084 | rm -fr conftest* | |
13085 | ||
50850385 | 13086 | fi |
e61fbf76 | 13087 | echo "$as_me:13087: result: $lt_cv_dlopen_self" >&5 |
50850385 TJ |
13088 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
13089 | ||
13090 | if test "x$lt_cv_dlopen_self" = xyes; then | |
13091 | LDFLAGS="$LDFLAGS $link_static_flag" | |
e61fbf76 | 13092 | echo "$as_me:13092: checking whether a statically linked program can dlopen itself" >&5 |
50850385 TJ |
13093 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
13094 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
13095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13096 | else | |
13097 | if test "$cross_compiling" = yes; then : | |
13098 | lt_cv_dlopen_self_static=cross | |
13099 | else | |
13100 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
13101 | lt_status=$lt_dlunknown | |
13102 | cat > conftest.$ac_ext <<EOF | |
e61fbf76 | 13103 | #line 13103 "configure" |
50850385 TJ |
13104 | #include "confdefs.h" |
13105 | ||
13106 | #if HAVE_DLFCN_H | |
13107 | #include <dlfcn.h> | |
13108 | #endif | |
13109 | ||
13110 | #include <stdio.h> | |
13111 | ||
13112 | #ifdef RTLD_GLOBAL | |
13113 | # define LT_DLGLOBAL RTLD_GLOBAL | |
13114 | #else | |
13115 | # ifdef DL_GLOBAL | |
13116 | # define LT_DLGLOBAL DL_GLOBAL | |
13117 | # else | |
13118 | # define LT_DLGLOBAL 0 | |
13119 | # endif | |
13120 | #endif | |
13121 | ||
13122 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
13123 | find out it does not work in some platform. */ | |
13124 | #ifndef LT_DLLAZY_OR_NOW | |
13125 | # ifdef RTLD_LAZY | |
13126 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
13127 | # else | |
13128 | # ifdef DL_LAZY | |
13129 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
13130 | # else | |
13131 | # ifdef RTLD_NOW | |
13132 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
13133 | # else | |
13134 | # ifdef DL_NOW | |
13135 | # define LT_DLLAZY_OR_NOW DL_NOW | |
13136 | # else | |
13137 | # define LT_DLLAZY_OR_NOW 0 | |
13138 | # endif | |
13139 | # endif | |
13140 | # endif | |
13141 | # endif | |
13142 | #endif | |
13143 | ||
13144 | #ifdef __cplusplus | |
13145 | extern "C" void exit (int); | |
13146 | #endif | |
13147 | ||
13148 | void fnord() { int i=42;} | |
13149 | int main () | |
13150 | { | |
13151 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
13152 | int status = $lt_dlunknown; | |
13153 | ||
13154 | if (self) | |
13155 | { | |
13156 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
13157 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
13158 | /* dlclose (self); */ | |
13159 | } | |
13160 | ||
13161 | exit (status); | |
13162 | } | |
13163 | EOF | |
e61fbf76 | 13164 | if { (eval echo "$as_me:13164: \"$ac_link\"") >&5 |
50850385 TJ |
13165 | (eval $ac_link) 2>&5 |
13166 | ac_status=$? | |
e61fbf76 | 13167 | echo "$as_me:13167: \$? = $ac_status" >&5 |
50850385 TJ |
13168 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
13169 | (./conftest; exit; ) 2>/dev/null | |
13170 | lt_status=$? | |
13171 | case x$lt_status in | |
13172 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
13173 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
13174 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
13175 | esac | |
13176 | else : | |
13177 | # compilation failed | |
13178 | lt_cv_dlopen_self_static=no | |
13179 | fi | |
13180 | fi | |
13181 | rm -fr conftest* | |
13182 | ||
50850385 | 13183 | fi |
e61fbf76 | 13184 | echo "$as_me:13184: result: $lt_cv_dlopen_self_static" >&5 |
50850385 TJ |
13185 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
13186 | fi | |
13187 | ||
13188 | CPPFLAGS="$save_CPPFLAGS" | |
13189 | LDFLAGS="$save_LDFLAGS" | |
13190 | LIBS="$save_LIBS" | |
13191 | ;; | |
13192 | esac | |
13193 | ||
13194 | case $lt_cv_dlopen_self in | |
13195 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
13196 | *) enable_dlopen_self=unknown ;; | |
13197 | esac | |
13198 | ||
13199 | case $lt_cv_dlopen_self_static in | |
13200 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
13201 | *) enable_dlopen_self_static=unknown ;; | |
13202 | esac | |
13203 | fi | |
13204 | ||
50850385 TJ |
13205 | # The else clause should only fire when bootstrapping the |
13206 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
13207 | # with your package, and you will get complaints that there are | |
13208 | # no rules to generate ltmain.sh. | |
13209 | if test -f "$ltmain"; then | |
13210 | # Now quote all the things that may contain metacharacters while being | |
13211 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
13212 | # variables and quote the copies for generation of the libtool script. | |
13213 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \ | |
13214 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
13215 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
13216 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
13217 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
13218 | lt_cv_sys_global_symbol_to_c_name_address \ | |
13219 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
13220 | old_postinstall_cmds old_postuninstall_cmds \ | |
13221 | compiler_GCJ \ | |
13222 | CC_GCJ \ | |
13223 | LD_GCJ \ | |
13224 | lt_prog_compiler_wl_GCJ \ | |
13225 | lt_prog_compiler_pic_GCJ \ | |
13226 | lt_prog_compiler_static_GCJ \ | |
13227 | lt_prog_compiler_no_builtin_flag_GCJ \ | |
13228 | export_dynamic_flag_spec_GCJ \ | |
13229 | thread_safe_flag_spec_GCJ \ | |
13230 | whole_archive_flag_spec_GCJ \ | |
13231 | old_archive_cmds_GCJ \ | |
13232 | old_archive_from_new_cmds_GCJ \ | |
13233 | predep_objects_GCJ \ | |
13234 | postdep_objects_GCJ \ | |
13235 | predeps_GCJ \ | |
13236 | postdeps_GCJ \ | |
13237 | compiler_lib_search_path_GCJ \ | |
13238 | archive_cmds_GCJ \ | |
13239 | archive_expsym_cmds_GCJ \ | |
13240 | postinstall_cmds_GCJ \ | |
13241 | postuninstall_cmds_GCJ \ | |
13242 | old_archive_from_expsyms_cmds_GCJ \ | |
13243 | allow_undefined_flag_GCJ \ | |
13244 | no_undefined_flag_GCJ \ | |
13245 | export_symbols_cmds_GCJ \ | |
13246 | hardcode_libdir_flag_spec_GCJ \ | |
13247 | hardcode_libdir_separator_GCJ \ | |
13248 | lt_cv_prog_compiler_c_o_GCJ \ | |
13249 | exclude_expsyms_GCJ \ | |
13250 | include_expsyms_GCJ; do | |
13251 | ||
13252 | case $var in | |
13253 | old_archive_cmds_GCJ | \ | |
13254 | old_archive_from_new_cmds_GCJ | \ | |
13255 | archive_cmds_GCJ | \ | |
13256 | archive_expsym_cmds_GCJ | \ | |
13257 | old_archive_from_expsyms_cmds_GCJ | \ | |
13258 | export_symbols_cmds_GCJ | \ | |
13259 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
13260 | postinstall_cmds | postuninstall_cmds | \ | |
13261 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
13262 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
13263 | # Double-quote double-evaled strings. | |
13264 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
13265 | ;; | |
13266 | *) | |
13267 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
13268 | ;; | |
13269 | esac | |
13270 | done | |
13271 | ||
13272 | case $lt_echo in | |
13273 | *'\$0 --fallback-echo"') | |
13274 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
13275 | ;; | |
13276 | esac | |
13277 | ||
13278 | cfgfile="$ofile" | |
13279 | ||
13280 | cat <<__EOF__ >> "$cfgfile" | |
13281 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
13282 | ||
13283 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
13284 | ||
13285 | # Shell to use when invoking shell scripts. | |
13286 | SHELL=$lt_SHELL | |
13287 | ||
13288 | # Whether or not to build shared libraries. | |
13289 | build_libtool_libs=$enable_shared | |
13290 | ||
13291 | # Whether or not to build static libraries. | |
13292 | build_old_libs=$enable_static | |
13293 | ||
13294 | # Whether or not to add -lc for building shared libraries. | |
13295 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ | |
13296 | ||
13297 | # Whether or not to optimize for fast installation. | |
13298 | fast_install=$enable_fast_install | |
13299 | ||
13300 | # The host system. | |
13301 | host_alias=$host_alias | |
13302 | host=$host | |
13303 | ||
13304 | # An echo program that does not interpret backslashes. | |
13305 | echo=$lt_echo | |
13306 | ||
13307 | # The archiver. | |
13308 | AR=$lt_AR | |
13309 | AR_FLAGS=$lt_AR_FLAGS | |
13310 | ||
13311 | # A C compiler. | |
13312 | LTCC=$lt_LTCC | |
13313 | ||
13314 | # A language-specific compiler. | |
13315 | CC=$lt_compiler_GCJ | |
13316 | ||
13317 | # Is the compiler the GNU C compiler? | |
13318 | with_gcc=$GCC_GCJ | |
13319 | ||
13320 | # The linker used to build libraries. | |
13321 | LD=$lt_LD_GCJ | |
13322 | ||
13323 | # Whether we need hard or soft links. | |
13324 | LN_S=$lt_LN_S | |
13325 | ||
13326 | # A BSD-compatible nm program. | |
13327 | NM=$lt_NM | |
13328 | ||
13329 | # A sed program that does not truncate output. | |
13330 | SED=$lt_SED | |
13331 | ||
13332 | # A symbol stripping program | |
13333 | STRIP=$STRIP | |
13334 | ||
13335 | # Used to examine libraries when file_magic_cmd begins "file" | |
13336 | MAGIC_CMD=$MAGIC_CMD | |
13337 | ||
13338 | # Used on cygwin: DLL creation program. | |
13339 | DLLTOOL="$DLLTOOL" | |
13340 | ||
13341 | # Used on cygwin: object dumper. | |
13342 | OBJDUMP="$OBJDUMP" | |
13343 | ||
13344 | # Used on cygwin: assembler. | |
13345 | AS="$AS" | |
13346 | ||
13347 | # The name of the directory that contains temporary libtool files. | |
13348 | objdir=$objdir | |
13349 | ||
13350 | # How to create reloadable object files. | |
13351 | reload_flag=$lt_reload_flag | |
13352 | reload_cmds=$lt_reload_cmds | |
13353 | ||
13354 | # How to pass a linker flag through the compiler. | |
13355 | wl=$lt_lt_prog_compiler_wl_GCJ | |
13356 | ||
13357 | # Object file suffix (normally "o"). | |
13358 | objext="$ac_objext" | |
13359 | ||
13360 | # Old archive suffix (normally "a"). | |
13361 | libext="$libext" | |
13362 | ||
13363 | # Executable file suffix (normally ""). | |
13364 | exeext="$exeext" | |
13365 | ||
13366 | # Additional compiler flags for building library objects. | |
13367 | pic_flag=$lt_lt_prog_compiler_pic_GCJ | |
13368 | pic_mode=$pic_mode | |
13369 | ||
13370 | # What is the maximum length of a command? | |
13371 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
13372 | ||
13373 | # Does compiler simultaneously support -c and -o options? | |
13374 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | |
13375 | ||
13376 | # Must we lock files when doing compilation ? | |
13377 | need_locks=$lt_need_locks | |
13378 | ||
13379 | # Do we need the lib prefix for modules? | |
13380 | need_lib_prefix=$need_lib_prefix | |
13381 | ||
13382 | # Do we need a version for libraries? | |
13383 | need_version=$need_version | |
13384 | ||
13385 | # Whether dlopen is supported. | |
13386 | dlopen_support=$enable_dlopen | |
13387 | ||
13388 | # Whether dlopen of programs is supported. | |
13389 | dlopen_self=$enable_dlopen_self | |
13390 | ||
13391 | # Whether dlopen of statically linked programs is supported. | |
13392 | dlopen_self_static=$enable_dlopen_self_static | |
13393 | ||
13394 | # Compiler flag to prevent dynamic linking. | |
13395 | link_static_flag=$lt_lt_prog_compiler_static_GCJ | |
13396 | ||
13397 | # Compiler flag to turn off builtin functions. | |
13398 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | |
13399 | ||
13400 | # Compiler flag to allow reflexive dlopens. | |
13401 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | |
13402 | ||
13403 | # Compiler flag to generate shared objects directly from archives. | |
13404 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | |
13405 | ||
13406 | # Compiler flag to generate thread-safe objects. | |
13407 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | |
13408 | ||
13409 | # Library versioning type. | |
13410 | version_type=$version_type | |
13411 | ||
13412 | # Format of library name prefix. | |
13413 | libname_spec=$lt_libname_spec | |
13414 | ||
13415 | # List of archive names. First name is the real one, the rest are links. | |
13416 | # The last name is the one that the linker finds with -lNAME. | |
13417 | library_names_spec=$lt_library_names_spec | |
13418 | ||
13419 | # The coded name of the library, if different from the real name. | |
13420 | soname_spec=$lt_soname_spec | |
13421 | ||
13422 | # Commands used to build and install an old-style archive. | |
13423 | RANLIB=$lt_RANLIB | |
13424 | old_archive_cmds=$lt_old_archive_cmds_GCJ | |
13425 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
13426 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
13427 | ||
13428 | # Create an old-style archive from a shared archive. | |
13429 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | |
13430 | ||
13431 | # Create a temporary old-style archive to link instead of a shared archive. | |
13432 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | |
13433 | ||
13434 | # Commands used to build and install a shared archive. | |
13435 | archive_cmds=$lt_archive_cmds_GCJ | |
13436 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | |
13437 | postinstall_cmds=$lt_postinstall_cmds | |
13438 | postuninstall_cmds=$lt_postuninstall_cmds | |
13439 | ||
13440 | # Commands to strip libraries. | |
13441 | old_striplib=$lt_old_striplib | |
13442 | striplib=$lt_striplib | |
13443 | ||
13444 | # Dependencies to place before the objects being linked to create a | |
13445 | # shared library. | |
13446 | predep_objects=$lt_predep_objects_GCJ | |
13447 | ||
13448 | # Dependencies to place after the objects being linked to create a | |
13449 | # shared library. | |
13450 | postdep_objects=$lt_postdep_objects_GCJ | |
13451 | ||
13452 | # Dependencies to place before the objects being linked to create a | |
13453 | # shared library. | |
13454 | predeps=$lt_predeps_GCJ | |
13455 | ||
13456 | # Dependencies to place after the objects being linked to create a | |
13457 | # shared library. | |
13458 | postdeps=$lt_postdeps_GCJ | |
13459 | ||
13460 | # The library search path used internally by the compiler when linking | |
13461 | # a shared library. | |
13462 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | |
13463 | ||
13464 | # Method to check whether dependent libraries are shared objects. | |
13465 | deplibs_check_method=$lt_deplibs_check_method | |
13466 | ||
13467 | # Command to use when deplibs_check_method == file_magic. | |
13468 | file_magic_cmd=$lt_file_magic_cmd | |
13469 | ||
13470 | # Flag that allows shared libraries with undefined symbols to be built. | |
13471 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ | |
13472 | ||
13473 | # Flag that forces no undefined symbols. | |
13474 | no_undefined_flag=$lt_no_undefined_flag_GCJ | |
13475 | ||
13476 | # Commands used to finish a libtool library installation in a directory. | |
13477 | finish_cmds=$lt_finish_cmds | |
13478 | ||
13479 | # Same as above, but a single script fragment to be evaled but not shown. | |
13480 | finish_eval=$lt_finish_eval | |
13481 | ||
13482 | # Take the output of nm and produce a listing of raw symbols and C names. | |
13483 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
13484 | ||
13485 | # Transform the output of nm in a proper C declaration | |
13486 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
13487 | ||
13488 | # Transform the output of nm in a C name address pair | |
13489 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
13490 | ||
13491 | # This is the shared library runtime path variable. | |
13492 | runpath_var=$runpath_var | |
13493 | ||
13494 | # This is the shared library path variable. | |
13495 | shlibpath_var=$shlibpath_var | |
13496 | ||
13497 | # Is shlibpath searched before the hard-coded library search path? | |
13498 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
13499 | ||
13500 | # How to hardcode a shared library path into an executable. | |
13501 | hardcode_action=$hardcode_action_GCJ | |
13502 | ||
13503 | # Whether we should hardcode library paths into libraries. | |
13504 | hardcode_into_libs=$hardcode_into_libs | |
13505 | ||
13506 | # Flag to hardcode \$libdir into a binary during linking. | |
13507 | # This must work even if \$libdir does not exist. | |
13508 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | |
13509 | ||
13510 | # Whether we need a single -rpath flag with a separated argument. | |
13511 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | |
13512 | ||
13513 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | |
13514 | # resulting binary. | |
13515 | hardcode_direct=$hardcode_direct_GCJ | |
13516 | ||
13517 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
13518 | # resulting binary. | |
13519 | hardcode_minus_L=$hardcode_minus_L_GCJ | |
13520 | ||
13521 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
13522 | # the resulting binary. | |
13523 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | |
13524 | ||
13525 | # Variables whose values should be saved in libtool wrapper scripts and | |
13526 | # restored at relink time. | |
13527 | variables_saved_for_relink="$variables_saved_for_relink" | |
13528 | ||
13529 | # Whether libtool must link a program against all its dependency libraries. | |
13530 | link_all_deplibs=$link_all_deplibs_GCJ | |
13531 | ||
13532 | # Compile-time system search path for libraries | |
13533 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
13534 | ||
13535 | # Run-time system search path for libraries | |
13536 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
13537 | ||
13538 | # Fix the shell variable \$srcfile for the compiler. | |
13539 | fix_srcfile_path="$fix_srcfile_path_GCJ" | |
13540 | ||
13541 | # Set to yes if exported symbols are required. | |
13542 | always_export_symbols=$always_export_symbols_GCJ | |
13543 | ||
13544 | # The commands to list exported symbols. | |
13545 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ | |
13546 | ||
13547 | # The commands to extract the exported symbol list from a shared archive. | |
13548 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
13549 | ||
13550 | # Symbols that should not be listed in the preloaded symbols. | |
13551 | exclude_expsyms=$lt_exclude_expsyms_GCJ | |
13552 | ||
13553 | # Symbols that must always be exported. | |
13554 | include_expsyms=$lt_include_expsyms_GCJ | |
13555 | ||
13556 | # ### END LIBTOOL TAG CONFIG: $tagname | |
13557 | ||
13558 | __EOF__ | |
13559 | ||
50850385 TJ |
13560 | else |
13561 | # If there is no Makefile yet, we rely on a make rule to execute | |
13562 | # `config.status --recheck' to rerun these tests and create the | |
13563 | # libtool script then. | |
13564 | test -f Makefile && make "$ltmain" | |
13565 | fi | |
13566 | ||
50850385 TJ |
13567 | ac_ext=c |
13568 | ac_cpp='$CPP $CPPFLAGS' | |
13569 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13570 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13571 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13572 | ||
13573 | CC="$lt_save_CC" | |
13574 | ||
13575 | ;; | |
13576 | ||
13577 | RC) | |
13578 | ||
50850385 TJ |
13579 | # Source file extension for RC test sources. |
13580 | ac_ext=rc | |
13581 | ||
13582 | # Object file extension for compiled RC test sources. | |
13583 | objext=o | |
13584 | objext_RC=$objext | |
13585 | ||
13586 | # Code to be used in simple compile tests | |
13587 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' | |
13588 | ||
13589 | # Code to be used in simple link tests | |
13590 | lt_simple_link_test_code="$lt_simple_compile_test_code" | |
13591 | ||
13592 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
13593 | ||
13594 | # If no C compiler was specified, use CC. | |
13595 | LTCC=${LTCC-"$CC"} | |
13596 | ||
13597 | # Allow CC to be a program name with arguments. | |
13598 | set dummy $CC | |
13599 | compiler="$2" | |
13600 | ||
50850385 TJ |
13601 | # Allow CC to be a program name with arguments. |
13602 | lt_save_CC="$CC" | |
13603 | CC=${RC-"windres"} | |
13604 | set dummy $CC | |
13605 | compiler="$2" | |
13606 | compiler_RC=$CC | |
13607 | lt_cv_prog_compiler_c_o_RC=yes | |
13608 | ||
13609 | # The else clause should only fire when bootstrapping the | |
13610 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
13611 | # with your package, and you will get complaints that there are | |
13612 | # no rules to generate ltmain.sh. | |
13613 | if test -f "$ltmain"; then | |
13614 | # Now quote all the things that may contain metacharacters while being | |
13615 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
13616 | # variables and quote the copies for generation of the libtool script. | |
13617 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \ | |
13618 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
13619 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
13620 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
13621 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
13622 | lt_cv_sys_global_symbol_to_c_name_address \ | |
13623 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
13624 | old_postinstall_cmds old_postuninstall_cmds \ | |
13625 | compiler_RC \ | |
13626 | CC_RC \ | |
13627 | LD_RC \ | |
13628 | lt_prog_compiler_wl_RC \ | |
13629 | lt_prog_compiler_pic_RC \ | |
13630 | lt_prog_compiler_static_RC \ | |
13631 | lt_prog_compiler_no_builtin_flag_RC \ | |
13632 | export_dynamic_flag_spec_RC \ | |
13633 | thread_safe_flag_spec_RC \ | |
13634 | whole_archive_flag_spec_RC \ | |
13635 | old_archive_cmds_RC \ | |
13636 | old_archive_from_new_cmds_RC \ | |
13637 | predep_objects_RC \ | |
13638 | postdep_objects_RC \ | |
13639 | predeps_RC \ | |
13640 | postdeps_RC \ | |
13641 | compiler_lib_search_path_RC \ | |
13642 | archive_cmds_RC \ | |
13643 | archive_expsym_cmds_RC \ | |
13644 | postinstall_cmds_RC \ | |
13645 | postuninstall_cmds_RC \ | |
13646 | old_archive_from_expsyms_cmds_RC \ | |
13647 | allow_undefined_flag_RC \ | |
13648 | no_undefined_flag_RC \ | |
13649 | export_symbols_cmds_RC \ | |
13650 | hardcode_libdir_flag_spec_RC \ | |
13651 | hardcode_libdir_separator_RC \ | |
13652 | lt_cv_prog_compiler_c_o_RC \ | |
13653 | exclude_expsyms_RC \ | |
13654 | include_expsyms_RC; do | |
13655 | ||
13656 | case $var in | |
13657 | old_archive_cmds_RC | \ | |
13658 | old_archive_from_new_cmds_RC | \ | |
13659 | archive_cmds_RC | \ | |
13660 | archive_expsym_cmds_RC | \ | |
13661 | old_archive_from_expsyms_cmds_RC | \ | |
13662 | export_symbols_cmds_RC | \ | |
13663 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
13664 | postinstall_cmds | postuninstall_cmds | \ | |
13665 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
13666 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
13667 | # Double-quote double-evaled strings. | |
13668 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
13669 | ;; | |
13670 | *) | |
13671 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
13672 | ;; | |
13673 | esac | |
13674 | done | |
13675 | ||
13676 | case $lt_echo in | |
13677 | *'\$0 --fallback-echo"') | |
13678 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
13679 | ;; | |
13680 | esac | |
13681 | ||
13682 | cfgfile="$ofile" | |
13683 | ||
13684 | cat <<__EOF__ >> "$cfgfile" | |
13685 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
13686 | ||
13687 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
13688 | ||
13689 | # Shell to use when invoking shell scripts. | |
13690 | SHELL=$lt_SHELL | |
13691 | ||
13692 | # Whether or not to build shared libraries. | |
13693 | build_libtool_libs=$enable_shared | |
13694 | ||
13695 | # Whether or not to build static libraries. | |
13696 | build_old_libs=$enable_static | |
13697 | ||
13698 | # Whether or not to add -lc for building shared libraries. | |
13699 | build_libtool_need_lc=$archive_cmds_need_lc_RC | |
13700 | ||
13701 | # Whether or not to optimize for fast installation. | |
13702 | fast_install=$enable_fast_install | |
13703 | ||
13704 | # The host system. | |
13705 | host_alias=$host_alias | |
13706 | host=$host | |
13707 | ||
13708 | # An echo program that does not interpret backslashes. | |
13709 | echo=$lt_echo | |
13710 | ||
13711 | # The archiver. | |
13712 | AR=$lt_AR | |
13713 | AR_FLAGS=$lt_AR_FLAGS | |
13714 | ||
13715 | # A C compiler. | |
13716 | LTCC=$lt_LTCC | |
13717 | ||
13718 | # A language-specific compiler. | |
13719 | CC=$lt_compiler_RC | |
13720 | ||
13721 | # Is the compiler the GNU C compiler? | |
13722 | with_gcc=$GCC_RC | |
13723 | ||
13724 | # The linker used to build libraries. | |
13725 | LD=$lt_LD_RC | |
13726 | ||
13727 | # Whether we need hard or soft links. | |
13728 | LN_S=$lt_LN_S | |
13729 | ||
13730 | # A BSD-compatible nm program. | |
13731 | NM=$lt_NM | |
13732 | ||
13733 | # A sed program that does not truncate output. | |
13734 | SED=$lt_SED | |
13735 | ||
13736 | # A symbol stripping program | |
13737 | STRIP=$STRIP | |
13738 | ||
13739 | # Used to examine libraries when file_magic_cmd begins "file" | |
13740 | MAGIC_CMD=$MAGIC_CMD | |
13741 | ||
13742 | # Used on cygwin: DLL creation program. | |
13743 | DLLTOOL="$DLLTOOL" | |
13744 | ||
13745 | # Used on cygwin: object dumper. | |
13746 | OBJDUMP="$OBJDUMP" | |
13747 | ||
13748 | # Used on cygwin: assembler. | |
13749 | AS="$AS" | |
13750 | ||
13751 | # The name of the directory that contains temporary libtool files. | |
13752 | objdir=$objdir | |
13753 | ||
13754 | # How to create reloadable object files. | |
13755 | reload_flag=$lt_reload_flag | |
13756 | reload_cmds=$lt_reload_cmds | |
13757 | ||
13758 | # How to pass a linker flag through the compiler. | |
13759 | wl=$lt_lt_prog_compiler_wl_RC | |
13760 | ||
13761 | # Object file suffix (normally "o"). | |
13762 | objext="$ac_objext" | |
13763 | ||
13764 | # Old archive suffix (normally "a"). | |
13765 | libext="$libext" | |
13766 | ||
13767 | # Executable file suffix (normally ""). | |
13768 | exeext="$exeext" | |
13769 | ||
13770 | # Additional compiler flags for building library objects. | |
13771 | pic_flag=$lt_lt_prog_compiler_pic_RC | |
13772 | pic_mode=$pic_mode | |
13773 | ||
13774 | # What is the maximum length of a command? | |
13775 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
13776 | ||
13777 | # Does compiler simultaneously support -c and -o options? | |
13778 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | |
13779 | ||
13780 | # Must we lock files when doing compilation ? | |
13781 | need_locks=$lt_need_locks | |
13782 | ||
13783 | # Do we need the lib prefix for modules? | |
13784 | need_lib_prefix=$need_lib_prefix | |
13785 | ||
13786 | # Do we need a version for libraries? | |
13787 | need_version=$need_version | |
13788 | ||
13789 | # Whether dlopen is supported. | |
13790 | dlopen_support=$enable_dlopen | |
13791 | ||
13792 | # Whether dlopen of programs is supported. | |
13793 | dlopen_self=$enable_dlopen_self | |
13794 | ||
13795 | # Whether dlopen of statically linked programs is supported. | |
13796 | dlopen_self_static=$enable_dlopen_self_static | |
13797 | ||
13798 | # Compiler flag to prevent dynamic linking. | |
13799 | link_static_flag=$lt_lt_prog_compiler_static_RC | |
13800 | ||
13801 | # Compiler flag to turn off builtin functions. | |
13802 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | |
13803 | ||
13804 | # Compiler flag to allow reflexive dlopens. | |
13805 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | |
13806 | ||
13807 | # Compiler flag to generate shared objects directly from archives. | |
13808 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | |
13809 | ||
13810 | # Compiler flag to generate thread-safe objects. | |
13811 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | |
13812 | ||
13813 | # Library versioning type. | |
13814 | version_type=$version_type | |
13815 | ||
13816 | # Format of library name prefix. | |
13817 | libname_spec=$lt_libname_spec | |
13818 | ||
13819 | # List of archive names. First name is the real one, the rest are links. | |
13820 | # The last name is the one that the linker finds with -lNAME. | |
13821 | library_names_spec=$lt_library_names_spec | |
13822 | ||
13823 | # The coded name of the library, if different from the real name. | |
13824 | soname_spec=$lt_soname_spec | |
13825 | ||
13826 | # Commands used to build and install an old-style archive. | |
13827 | RANLIB=$lt_RANLIB | |
13828 | old_archive_cmds=$lt_old_archive_cmds_RC | |
13829 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
13830 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
13831 | ||
13832 | # Create an old-style archive from a shared archive. | |
13833 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | |
13834 | ||
13835 | # Create a temporary old-style archive to link instead of a shared archive. | |
13836 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | |
13837 | ||
13838 | # Commands used to build and install a shared archive. | |
13839 | archive_cmds=$lt_archive_cmds_RC | |
13840 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC | |
13841 | postinstall_cmds=$lt_postinstall_cmds | |
13842 | postuninstall_cmds=$lt_postuninstall_cmds | |
13843 | ||
13844 | # Commands to strip libraries. | |
13845 | old_striplib=$lt_old_striplib | |
13846 | striplib=$lt_striplib | |
13847 | ||
13848 | # Dependencies to place before the objects being linked to create a | |
13849 | # shared library. | |
13850 | predep_objects=$lt_predep_objects_RC | |
13851 | ||
13852 | # Dependencies to place after the objects being linked to create a | |
13853 | # shared library. | |
13854 | postdep_objects=$lt_postdep_objects_RC | |
13855 | ||
13856 | # Dependencies to place before the objects being linked to create a | |
13857 | # shared library. | |
13858 | predeps=$lt_predeps_RC | |
13859 | ||
13860 | # Dependencies to place after the objects being linked to create a | |
13861 | # shared library. | |
13862 | postdeps=$lt_postdeps_RC | |
13863 | ||
13864 | # The library search path used internally by the compiler when linking | |
13865 | # a shared library. | |
13866 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC | |
13867 | ||
13868 | # Method to check whether dependent libraries are shared objects. | |
13869 | deplibs_check_method=$lt_deplibs_check_method | |
13870 | ||
13871 | # Command to use when deplibs_check_method == file_magic. | |
13872 | file_magic_cmd=$lt_file_magic_cmd | |
13873 | ||
13874 | # Flag that allows shared libraries with undefined symbols to be built. | |
13875 | allow_undefined_flag=$lt_allow_undefined_flag_RC | |
13876 | ||
13877 | # Flag that forces no undefined symbols. | |
13878 | no_undefined_flag=$lt_no_undefined_flag_RC | |
13879 | ||
13880 | # Commands used to finish a libtool library installation in a directory. | |
13881 | finish_cmds=$lt_finish_cmds | |
13882 | ||
13883 | # Same as above, but a single script fragment to be evaled but not shown. | |
13884 | finish_eval=$lt_finish_eval | |
13885 | ||
13886 | # Take the output of nm and produce a listing of raw symbols and C names. | |
13887 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
13888 | ||
13889 | # Transform the output of nm in a proper C declaration | |
13890 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
13891 | ||
13892 | # Transform the output of nm in a C name address pair | |
13893 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
13894 | ||
13895 | # This is the shared library runtime path variable. | |
13896 | runpath_var=$runpath_var | |
13897 | ||
13898 | # This is the shared library path variable. | |
13899 | shlibpath_var=$shlibpath_var | |
13900 | ||
13901 | # Is shlibpath searched before the hard-coded library search path? | |
13902 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
13903 | ||
13904 | # How to hardcode a shared library path into an executable. | |
13905 | hardcode_action=$hardcode_action_RC | |
13906 | ||
13907 | # Whether we should hardcode library paths into libraries. | |
13908 | hardcode_into_libs=$hardcode_into_libs | |
13909 | ||
13910 | # Flag to hardcode \$libdir into a binary during linking. | |
13911 | # This must work even if \$libdir does not exist. | |
13912 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | |
13913 | ||
13914 | # Whether we need a single -rpath flag with a separated argument. | |
13915 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | |
13916 | ||
13917 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | |
13918 | # resulting binary. | |
13919 | hardcode_direct=$hardcode_direct_RC | |
13920 | ||
13921 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
13922 | # resulting binary. | |
13923 | hardcode_minus_L=$hardcode_minus_L_RC | |
13924 | ||
13925 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
13926 | # the resulting binary. | |
13927 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | |
13928 | ||
13929 | # Variables whose values should be saved in libtool wrapper scripts and | |
13930 | # restored at relink time. | |
13931 | variables_saved_for_relink="$variables_saved_for_relink" | |
13932 | ||
13933 | # Whether libtool must link a program against all its dependency libraries. | |
13934 | link_all_deplibs=$link_all_deplibs_RC | |
13935 | ||
13936 | # Compile-time system search path for libraries | |
13937 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
13938 | ||
13939 | # Run-time system search path for libraries | |
13940 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
13941 | ||
13942 | # Fix the shell variable \$srcfile for the compiler. | |
13943 | fix_srcfile_path="$fix_srcfile_path_RC" | |
13944 | ||
13945 | # Set to yes if exported symbols are required. | |
13946 | always_export_symbols=$always_export_symbols_RC | |
13947 | ||
13948 | # The commands to list exported symbols. | |
13949 | export_symbols_cmds=$lt_export_symbols_cmds_RC | |
13950 | ||
13951 | # The commands to extract the exported symbol list from a shared archive. | |
13952 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
13953 | ||
13954 | # Symbols that should not be listed in the preloaded symbols. | |
13955 | exclude_expsyms=$lt_exclude_expsyms_RC | |
13956 | ||
13957 | # Symbols that must always be exported. | |
13958 | include_expsyms=$lt_include_expsyms_RC | |
13959 | ||
13960 | # ### END LIBTOOL TAG CONFIG: $tagname | |
13961 | ||
13962 | __EOF__ | |
13963 | ||
50850385 TJ |
13964 | else |
13965 | # If there is no Makefile yet, we rely on a make rule to execute | |
13966 | # `config.status --recheck' to rerun these tests and create the | |
13967 | # libtool script then. | |
13968 | test -f Makefile && make "$ltmain" | |
13969 | fi | |
13970 | ||
50850385 TJ |
13971 | ac_ext=c |
13972 | ac_cpp='$CPP $CPPFLAGS' | |
13973 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13974 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13975 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13976 | ||
13977 | CC="$lt_save_CC" | |
13978 | ||
13979 | ;; | |
13980 | ||
13981 | *) | |
e61fbf76 | 13982 | { { echo "$as_me:13982: error: Unsupported tag name: $tagname" >&5 |
50850385 TJ |
13983 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
13984 | { (exit 1); exit 1; }; } | |
13985 | ;; | |
13986 | esac | |
13987 | ||
13988 | # Append the new tag name to the list of available tags. | |
13989 | available_tags="$available_tags $tagname" | |
13990 | fi | |
13991 | done | |
13992 | IFS="$lt_save_ifs" | |
13993 | ||
13994 | # Now substitute the updated list of available tags. | |
13995 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | |
13996 | mv "${ofile}T" "$ofile" | |
13997 | chmod +x "$ofile" | |
13998 | else | |
13999 | rm -f "${ofile}T" | |
e61fbf76 | 14000 | { { echo "$as_me:14000: error: unable to update list of available tagged configurations." >&5 |
50850385 TJ |
14001 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
14002 | { (exit 1); exit 1; }; } | |
14003 | fi | |
14004 | fi | |
14005 | ||
50850385 TJ |
14006 | # This can be used to rebuild libtool when needed |
14007 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | |
14008 | ||
14009 | # Always use our own libtool. | |
14010 | LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent' | |
14011 | ||
14012 | # Prevent multiple expansion | |
14013 | ||
50850385 TJ |
14014 | ac_ext=c |
14015 | ac_cpp='$CPP $CPPFLAGS' | |
14016 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14017 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14018 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14019 | ||
50850385 TJ |
14020 | ac_ext=c |
14021 | ac_cpp='$CPP $CPPFLAGS' | |
14022 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14023 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14024 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14025 | ||
50850385 TJ |
14026 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
14027 | ||
14028 | # find the maximum length of command line arguments | |
e61fbf76 | 14029 | echo "$as_me:14029: checking the maximum length of command line arguments" >&5 |
50850385 TJ |
14030 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
14031 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
14032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14033 | else | |
14034 | i=0 | |
14035 | testring="ABCD" | |
14036 | ||
14037 | case $host_os in | |
14038 | msdosdjgpp*) | |
14039 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
14040 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
14041 | # during glob expansion). Even if it were fixed, the result of this | |
14042 | # check would be larger than it should be. | |
14043 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
14044 | ;; | |
14045 | ||
14046 | gnu*) | |
14047 | # Under GNU Hurd, this test is not required because there is | |
14048 | # no limit to the length of command line arguments. | |
14049 | # Libtool will interpret -1 as no limit whatsoever | |
14050 | lt_cv_sys_max_cmd_len=-1; | |
14051 | ;; | |
14052 | ||
14053 | *) | |
14054 | # If test is not a shell built-in, we'll probably end up computing a | |
14055 | # maximum length that is only half of the actual maximum length, but | |
14056 | # we can't tell. | |
14057 | while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ | |
14058 | = "XX$testring") >/dev/null 2>&1 && | |
14059 | new_result=`expr "X$testring" : ".*" 2>&1` && | |
14060 | lt_cv_sys_max_cmd_len=$new_result && | |
14061 | test $i != 17 # 1/2 MB should be enough | |
14062 | do | |
14063 | i=`expr $i + 1` | |
14064 | testring=$testring$testring | |
14065 | done | |
14066 | testring= | |
14067 | # Add a significant safety factor because C++ compilers can tack on massive | |
14068 | # amounts of additional arguments before passing them to the linker. | |
14069 | # It appears as though 1/2 is a usable value. | |
14070 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
14071 | ;; | |
14072 | esac | |
14073 | ||
14074 | fi | |
14075 | ||
14076 | if test -n $lt_cv_sys_max_cmd_len ; then | |
e61fbf76 | 14077 | echo "$as_me:14077: result: $lt_cv_sys_max_cmd_len" >&5 |
50850385 TJ |
14078 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
14079 | else | |
e61fbf76 | 14080 | echo "$as_me:14080: result: none" >&5 |
50850385 TJ |
14081 | echo "${ECHO_T}none" >&6 |
14082 | fi | |
14083 | ||
50850385 | 14084 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
e61fbf76 | 14085 | echo "$as_me:14085: checking command to parse $NM output from $compiler object" >&5 |
50850385 TJ |
14086 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
14087 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
14088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14089 | else | |
14090 | ||
14091 | # These are sane defaults that work on at least a few old systems. | |
14092 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
14093 | ||
14094 | # Character class describing NM global symbol codes. | |
14095 | symcode='[BCDEGRST]' | |
14096 | ||
14097 | # Regexp to match symbols that can be accessed directly from C. | |
14098 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
14099 | ||
14100 | # Transform the above into a raw symbol and a C symbol. | |
14101 | symxfrm='\1 \2\3 \3' | |
14102 | ||
14103 | # Transform an extracted symbol line into a proper C declaration | |
14104 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | |
14105 | ||
14106 | # Transform an extracted symbol line into symbol name and symbol address | |
14107 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | |
14108 | ||
14109 | # Define system-specific variables. | |
14110 | case $host_os in | |
14111 | aix*) | |
14112 | symcode='[BCDT]' | |
14113 | ;; | |
14114 | cygwin* | mingw* | pw32*) | |
14115 | symcode='[ABCDGISTW]' | |
14116 | ;; | |
14117 | hpux*) # Its linker distinguishes data from code symbols | |
14118 | if test "$host_cpu" = ia64; then | |
14119 | symcode='[ABCDEGRST]' | |
14120 | fi | |
14121 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
14122 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | |
14123 | ;; | |
14124 | irix* | nonstopux*) | |
14125 | symcode='[BCDEGRST]' | |
14126 | ;; | |
14127 | solaris* | sysv5*) | |
14128 | symcode='[BDT]' | |
14129 | ;; | |
14130 | sysv4) | |
14131 | symcode='[DFNSTU]' | |
14132 | ;; | |
14133 | esac | |
14134 | ||
14135 | # Handle CRLF in mingw tool chain | |
14136 | opt_cr= | |
14137 | case $host_os in | |
14138 | mingw*) | |
14139 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
14140 | ;; | |
14141 | esac | |
14142 | ||
14143 | # If we're using GNU nm, then use its standard symbol codes. | |
14144 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then | |
14145 | symcode='[ABCDGISTW]' | |
14146 | fi | |
14147 | ||
14148 | # Try without a prefix undercore, then with it. | |
14149 | for ac_symprfx in "" "_"; do | |
14150 | ||
14151 | # Write the raw and C identifiers. | |
14152 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" | |
14153 | ||
14154 | # Check to see that the pipe works correctly. | |
14155 | pipe_works=no | |
14156 | ||
14157 | rm -f conftest* | |
14158 | cat > conftest.$ac_ext <<EOF | |
14159 | #ifdef __cplusplus | |
14160 | extern "C" { | |
14161 | #endif | |
14162 | char nm_test_var; | |
14163 | void nm_test_func(){} | |
14164 | #ifdef __cplusplus | |
14165 | } | |
14166 | #endif | |
14167 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
14168 | EOF | |
14169 | ||
e61fbf76 | 14170 | if { (eval echo "$as_me:14170: \"$ac_compile\"") >&5 |
50850385 TJ |
14171 | (eval $ac_compile) 2>&5 |
14172 | ac_status=$? | |
e61fbf76 | 14173 | echo "$as_me:14173: \$? = $ac_status" >&5 |
50850385 TJ |
14174 | (exit $ac_status); }; then |
14175 | # Now try to grab the symbols. | |
14176 | nlist=conftest.nm | |
e61fbf76 | 14177 | if { (eval echo "$as_me:14177: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
50850385 TJ |
14178 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
14179 | ac_status=$? | |
e61fbf76 | 14180 | echo "$as_me:14180: \$? = $ac_status" >&5 |
50850385 TJ |
14181 | (exit $ac_status); } && test -s "$nlist"; then |
14182 | # Try sorting and uniquifying the output. | |
14183 | if sort "$nlist" | uniq > "$nlist"T; then | |
14184 | mv -f "$nlist"T "$nlist" | |
14185 | else | |
14186 | rm -f "$nlist"T | |
14187 | fi | |
14188 | ||
14189 | # Make sure that we snagged all the symbols we need. | |
14190 | if egrep ' nm_test_var$' "$nlist" >/dev/null; then | |
14191 | if egrep ' nm_test_func$' "$nlist" >/dev/null; then | |
14192 | cat <<EOF > conftest.$ac_ext | |
14193 | #ifdef __cplusplus | |
14194 | extern "C" { | |
14195 | #endif | |
14196 | ||
14197 | EOF | |
14198 | # Now generate the symbol file. | |
14199 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | |
14200 | ||
14201 | cat <<EOF >> conftest.$ac_ext | |
14202 | #if defined (__STDC__) && __STDC__ | |
14203 | # define lt_ptr_t void * | |
14204 | #else | |
14205 | # define lt_ptr_t char * | |
14206 | # define const | |
14207 | #endif | |
14208 | ||
14209 | /* The mapping between symbol names and symbols. */ | |
14210 | const struct { | |
14211 | const char *name; | |
14212 | lt_ptr_t address; | |
14213 | } | |
14214 | lt_preloaded_symbols[] = | |
14215 | { | |
14216 | EOF | |
14217 | sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | |
14218 | cat <<\EOF >> conftest.$ac_ext | |
14219 | {0, (lt_ptr_t) 0} | |
14220 | }; | |
14221 | ||
14222 | #ifdef __cplusplus | |
14223 | } | |
14224 | #endif | |
14225 | EOF | |
14226 | # Now try linking the two files. | |
14227 | mv conftest.$ac_objext conftstm.$ac_objext | |
14228 | lt_save_LIBS="$LIBS" | |
14229 | lt_save_CFLAGS="$CFLAGS" | |
14230 | LIBS="conftstm.$ac_objext" | |
14231 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
e61fbf76 | 14232 | if { (eval echo "$as_me:14232: \"$ac_link\"") >&5 |
50850385 TJ |
14233 | (eval $ac_link) 2>&5 |
14234 | ac_status=$? | |
e61fbf76 | 14235 | echo "$as_me:14235: \$? = $ac_status" >&5 |
50850385 TJ |
14236 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
14237 | pipe_works=yes | |
14238 | fi | |
14239 | LIBS="$lt_save_LIBS" | |
14240 | CFLAGS="$lt_save_CFLAGS" | |
14241 | else | |
14242 | echo "cannot find nm_test_func in $nlist" >&5 | |
14243 | fi | |
14244 | else | |
14245 | echo "cannot find nm_test_var in $nlist" >&5 | |
14246 | fi | |
14247 | else | |
14248 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
14249 | fi | |
14250 | else | |
14251 | echo "$progname: failed program was:" >&5 | |
14252 | cat conftest.$ac_ext >&5 | |
14253 | fi | |
14254 | rm -f conftest* conftst* | |
14255 | ||
14256 | # Do not use the global_symbol_pipe unless it works. | |
14257 | if test "$pipe_works" = yes; then | |
14258 | break | |
14259 | else | |
14260 | lt_cv_sys_global_symbol_pipe= | |
14261 | fi | |
14262 | done | |
14263 | ||
14264 | fi | |
14265 | ||
14266 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
14267 | lt_cv_sys_global_symbol_to_cdecl= | |
14268 | fi | |
14269 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
e61fbf76 | 14270 | echo "$as_me:14270: result: failed" >&5 |
50850385 TJ |
14271 | echo "${ECHO_T}failed" >&6 |
14272 | else | |
e61fbf76 | 14273 | echo "$as_me:14273: result: ok" >&5 |
50850385 TJ |
14274 | echo "${ECHO_T}ok" >&6 |
14275 | fi | |
14276 | ||
e61fbf76 | 14277 | echo "$as_me:14277: checking for objdir" >&5 |
50850385 TJ |
14278 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
14279 | if test "${lt_cv_objdir+set}" = set; then | |
14280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14281 | else | |
14282 | rm -f .libs 2>/dev/null | |
14283 | mkdir .libs 2>/dev/null | |
14284 | if test -d .libs; then | |
14285 | lt_cv_objdir=.libs | |
14286 | else | |
14287 | # MS-DOS does not allow filenames that begin with a dot. | |
14288 | lt_cv_objdir=_libs | |
14289 | fi | |
14290 | rmdir .libs 2>/dev/null | |
14291 | fi | |
e61fbf76 | 14292 | echo "$as_me:14292: result: $lt_cv_objdir" >&5 |
50850385 TJ |
14293 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
14294 | objdir=$lt_cv_objdir | |
14295 | ||
50850385 TJ |
14296 | case $host_os in |
14297 | aix3*) | |
14298 | # AIX sometimes has problems with the GCC collect2 program. For some | |
14299 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
14300 | # vanish in a puff of smoke. | |
14301 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
14302 | COLLECT_NAMES= | |
14303 | export COLLECT_NAMES | |
14304 | fi | |
14305 | ;; | |
14306 | esac | |
14307 | ||
14308 | # Sed substitution that helps us do robust quoting. It backslashifies | |
14309 | # metacharacters that are still active within double-quoted strings. | |
14310 | Xsed='sed -e s/^X//' | |
14311 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | |
14312 | ||
14313 | # Same as above, but do not quote variable references. | |
14314 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | |
14315 | ||
14316 | # Sed substitution to delay expansion of an escaped shell variable in a | |
14317 | # double_quote_subst'ed string. | |
14318 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
14319 | ||
14320 | # Sed substitution to avoid accidental globbing in evaled expressions | |
14321 | no_glob_subst='s/\*/\\\*/g' | |
14322 | ||
14323 | # Constants: | |
14324 | rm="rm -f" | |
14325 | ||
14326 | # Global variables: | |
14327 | default_ofile=libtool | |
14328 | can_build_shared=yes | |
14329 | ||
14330 | # All known linkers require a `.a' archive for static linking (except M$VC, | |
14331 | # which needs '.lib'). | |
14332 | libext=a | |
14333 | ltmain="$ac_aux_dir/ltmain.sh" | |
14334 | ofile="$default_ofile" | |
14335 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
14336 | ||
14337 | if test -n "$ac_tool_prefix"; then | |
14338 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
14339 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
e61fbf76 | 14340 | echo "$as_me:14340: checking for $ac_word" >&5 |
50850385 TJ |
14341 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
14342 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
14343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14344 | else | |
14345 | if test -n "$RANLIB"; then | |
14346 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
14347 | else | |
e61fbf76 TJ |
14348 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
14349 | ac_dummy="$PATH" | |
14350 | for ac_dir in $ac_dummy; do | |
14351 | IFS=$ac_save_IFS | |
14352 | test -z "$ac_dir" && ac_dir=. | |
14353 | $as_executable_p "$ac_dir/$ac_word" || continue | |
14354 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
14355 | echo "$as_me:14355: found $ac_dir/$ac_word" >&5 | |
14356 | break | |
50850385 TJ |
14357 | done |
14358 | ||
14359 | fi | |
14360 | fi | |
14361 | RANLIB=$ac_cv_prog_RANLIB | |
14362 | if test -n "$RANLIB"; then | |
e61fbf76 | 14363 | echo "$as_me:14363: result: $RANLIB" >&5 |
50850385 TJ |
14364 | echo "${ECHO_T}$RANLIB" >&6 |
14365 | else | |
e61fbf76 | 14366 | echo "$as_me:14366: result: no" >&5 |
50850385 TJ |
14367 | echo "${ECHO_T}no" >&6 |
14368 | fi | |
14369 | ||
14370 | fi | |
14371 | if test -z "$ac_cv_prog_RANLIB"; then | |
14372 | ac_ct_RANLIB=$RANLIB | |
14373 | # Extract the first word of "ranlib", so it can be a program name with args. | |
14374 | set dummy ranlib; ac_word=$2 | |
e61fbf76 | 14375 | echo "$as_me:14375: checking for $ac_word" >&5 |
50850385 TJ |
14376 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
14377 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
14378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14379 | else | |
14380 | if test -n "$ac_ct_RANLIB"; then | |
14381 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
14382 | else | |
e61fbf76 TJ |
14383 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
14384 | ac_dummy="$PATH" | |
14385 | for ac_dir in $ac_dummy; do | |
14386 | IFS=$ac_save_IFS | |
14387 | test -z "$ac_dir" && ac_dir=. | |
14388 | $as_executable_p "$ac_dir/$ac_word" || continue | |
14389 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
14390 | echo "$as_me:14390: found $ac_dir/$ac_word" >&5 | |
14391 | break | |
50850385 TJ |
14392 | done |
14393 | ||
14394 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
14395 | fi | |
14396 | fi | |
14397 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
14398 | if test -n "$ac_ct_RANLIB"; then | |
e61fbf76 | 14399 | echo "$as_me:14399: result: $ac_ct_RANLIB" >&5 |
50850385 TJ |
14400 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
14401 | else | |
e61fbf76 | 14402 | echo "$as_me:14402: result: no" >&5 |
50850385 TJ |
14403 | echo "${ECHO_T}no" >&6 |
14404 | fi | |
14405 | ||
14406 | RANLIB=$ac_ct_RANLIB | |
14407 | else | |
14408 | RANLIB="$ac_cv_prog_RANLIB" | |
14409 | fi | |
14410 | ||
14411 | if test -n "$ac_tool_prefix"; then | |
14412 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
14413 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
e61fbf76 | 14414 | echo "$as_me:14414: checking for $ac_word" >&5 |
50850385 TJ |
14415 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
14416 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
14417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14418 | else | |
14419 | if test -n "$STRIP"; then | |
14420 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
14421 | else | |
e61fbf76 TJ |
14422 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
14423 | ac_dummy="$PATH" | |
14424 | for ac_dir in $ac_dummy; do | |
14425 | IFS=$ac_save_IFS | |
14426 | test -z "$ac_dir" && ac_dir=. | |
14427 | $as_executable_p "$ac_dir/$ac_word" || continue | |
14428 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
14429 | echo "$as_me:14429: found $ac_dir/$ac_word" >&5 | |
14430 | break | |
50850385 TJ |
14431 | done |
14432 | ||
14433 | fi | |
14434 | fi | |
14435 | STRIP=$ac_cv_prog_STRIP | |
14436 | if test -n "$STRIP"; then | |
e61fbf76 | 14437 | echo "$as_me:14437: result: $STRIP" >&5 |
50850385 TJ |
14438 | echo "${ECHO_T}$STRIP" >&6 |
14439 | else | |
e61fbf76 | 14440 | echo "$as_me:14440: result: no" >&5 |
50850385 TJ |
14441 | echo "${ECHO_T}no" >&6 |
14442 | fi | |
14443 | ||
14444 | fi | |
14445 | if test -z "$ac_cv_prog_STRIP"; then | |
14446 | ac_ct_STRIP=$STRIP | |
14447 | # Extract the first word of "strip", so it can be a program name with args. | |
14448 | set dummy strip; ac_word=$2 | |
e61fbf76 | 14449 | echo "$as_me:14449: checking for $ac_word" >&5 |
50850385 TJ |
14450 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
14451 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
14452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14453 | else | |
14454 | if test -n "$ac_ct_STRIP"; then | |
14455 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
14456 | else | |
e61fbf76 TJ |
14457 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
14458 | ac_dummy="$PATH" | |
14459 | for ac_dir in $ac_dummy; do | |
14460 | IFS=$ac_save_IFS | |
14461 | test -z "$ac_dir" && ac_dir=. | |
14462 | $as_executable_p "$ac_dir/$ac_word" || continue | |
14463 | ac_cv_prog_ac_ct_STRIP="strip" | |
14464 | echo "$as_me:14464: found $ac_dir/$ac_word" >&5 | |
14465 | break | |
50850385 TJ |
14466 | done |
14467 | ||
14468 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
14469 | fi | |
14470 | fi | |
14471 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
14472 | if test -n "$ac_ct_STRIP"; then | |
e61fbf76 | 14473 | echo "$as_me:14473: result: $ac_ct_STRIP" >&5 |
50850385 TJ |
14474 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
14475 | else | |
e61fbf76 | 14476 | echo "$as_me:14476: result: no" >&5 |
50850385 TJ |
14477 | echo "${ECHO_T}no" >&6 |
14478 | fi | |
14479 | ||
14480 | STRIP=$ac_ct_STRIP | |
14481 | else | |
14482 | STRIP="$ac_cv_prog_STRIP" | |
14483 | fi | |
14484 | ||
50850385 TJ |
14485 | old_CC="$CC" |
14486 | old_CFLAGS="$CFLAGS" | |
14487 | ||
14488 | # Set sane defaults for various variables | |
14489 | test -z "$AR" && AR=ar | |
14490 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
14491 | test -z "$AS" && AS=as | |
14492 | test -z "$CC" && CC=cc | |
14493 | test -z "$LTCC" && LTCC=$CC | |
14494 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
14495 | test -z "$LD" && LD=ld | |
14496 | test -z "$LN_S" && LN_S="ln -s" | |
14497 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
14498 | test -z "$NM" && NM=nm | |
14499 | test -z "$SED" && SED=sed | |
14500 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
14501 | test -z "$RANLIB" && RANLIB=: | |
14502 | test -z "$STRIP" && STRIP=: | |
14503 | test -z "$ac_objext" && ac_objext=o | |
14504 | ||
14505 | # Determine commands to create old-style static archives. | |
14506 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | |
14507 | old_postinstall_cmds='chmod 644 $oldlib' | |
14508 | old_postuninstall_cmds= | |
14509 | ||
14510 | if test -n "$RANLIB"; then | |
14511 | case $host_os in | |
14512 | openbsd*) | |
14513 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" | |
14514 | ;; | |
14515 | *) | |
14516 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" | |
14517 | ;; | |
14518 | esac | |
14519 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
14520 | fi | |
14521 | ||
14522 | # Only perform the check for file, if the check method requires it | |
14523 | case $deplibs_check_method in | |
14524 | file_magic*) | |
14525 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
e61fbf76 | 14526 | echo "$as_me:14526: checking for ${ac_tool_prefix}file" >&5 |
50850385 TJ |
14527 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
14528 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
14529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14530 | else | |
14531 | case $MAGIC_CMD in | |
14532 | [\\/*] | ?:[\\/]*) | |
14533 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
14534 | ;; | |
14535 | *) | |
14536 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
14537 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
14538 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
14539 | for ac_dir in $ac_dummy; do | |
14540 | IFS="$lt_save_ifs" | |
14541 | test -z "$ac_dir" && ac_dir=. | |
14542 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
14543 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
14544 | if test -n "$file_magic_test_file"; then | |
14545 | case $deplibs_check_method in | |
14546 | "file_magic "*) | |
14547 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
14548 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
14549 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
14550 | egrep "$file_magic_regex" > /dev/null; then | |
14551 | : | |
14552 | else | |
14553 | cat <<EOF 1>&2 | |
14554 | ||
14555 | *** Warning: the command libtool uses to detect shared libraries, | |
14556 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
14557 | *** The result is that libtool may fail to recognize shared libraries | |
14558 | *** as such. This will affect the creation of libtool libraries that | |
14559 | *** depend on shared libraries, but programs linked with such libtool | |
14560 | *** libraries will work regardless of this problem. Nevertheless, you | |
14561 | *** may want to report the problem to your system manager and/or to | |
14562 | *** bug-libtool@gnu.org | |
14563 | ||
14564 | EOF | |
14565 | fi ;; | |
14566 | esac | |
14567 | fi | |
14568 | break | |
14569 | fi | |
14570 | done | |
14571 | IFS="$lt_save_ifs" | |
14572 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
14573 | ;; | |
14574 | esac | |
14575 | fi | |
14576 | ||
14577 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
14578 | if test -n "$MAGIC_CMD"; then | |
e61fbf76 | 14579 | echo "$as_me:14579: result: $MAGIC_CMD" >&5 |
50850385 TJ |
14580 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
14581 | else | |
e61fbf76 | 14582 | echo "$as_me:14582: result: no" >&5 |
50850385 TJ |
14583 | echo "${ECHO_T}no" >&6 |
14584 | fi | |
14585 | ||
14586 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
14587 | if test -n "$ac_tool_prefix"; then | |
e61fbf76 | 14588 | echo "$as_me:14588: checking for file" >&5 |
50850385 TJ |
14589 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
14590 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
14591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14592 | else | |
14593 | case $MAGIC_CMD in | |
14594 | [\\/*] | ?:[\\/]*) | |
14595 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
14596 | ;; | |
14597 | *) | |
14598 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
14599 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
14600 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
14601 | for ac_dir in $ac_dummy; do | |
14602 | IFS="$lt_save_ifs" | |
14603 | test -z "$ac_dir" && ac_dir=. | |
14604 | if test -f $ac_dir/file; then | |
14605 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
14606 | if test -n "$file_magic_test_file"; then | |
14607 | case $deplibs_check_method in | |
14608 | "file_magic "*) | |
14609 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
14610 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
14611 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
14612 | egrep "$file_magic_regex" > /dev/null; then | |
14613 | : | |
14614 | else | |
14615 | cat <<EOF 1>&2 | |
14616 | ||
14617 | *** Warning: the command libtool uses to detect shared libraries, | |
14618 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
14619 | *** The result is that libtool may fail to recognize shared libraries | |
14620 | *** as such. This will affect the creation of libtool libraries that | |
14621 | *** depend on shared libraries, but programs linked with such libtool | |
14622 | *** libraries will work regardless of this problem. Nevertheless, you | |
14623 | *** may want to report the problem to your system manager and/or to | |
14624 | *** bug-libtool@gnu.org | |
14625 | ||
14626 | EOF | |
14627 | fi ;; | |
14628 | esac | |
14629 | fi | |
14630 | break | |
14631 | fi | |
14632 | done | |
14633 | IFS="$lt_save_ifs" | |
14634 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
14635 | ;; | |
14636 | esac | |
14637 | fi | |
14638 | ||
14639 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
14640 | if test -n "$MAGIC_CMD"; then | |
e61fbf76 | 14641 | echo "$as_me:14641: result: $MAGIC_CMD" >&5 |
50850385 TJ |
14642 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
14643 | else | |
e61fbf76 | 14644 | echo "$as_me:14644: result: no" >&5 |
50850385 TJ |
14645 | echo "${ECHO_T}no" >&6 |
14646 | fi | |
14647 | ||
14648 | else | |
14649 | MAGIC_CMD=: | |
14650 | fi | |
14651 | fi | |
14652 | ||
14653 | fi | |
14654 | ;; | |
14655 | esac | |
14656 | ||
e61fbf76 | 14657 | enable_dlopen=yes |
50850385 TJ |
14658 | enable_win32_dll=no |
14659 | ||
14660 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
14661 | if test "${enable_libtool_lock+set}" = set; then | |
14662 | enableval="$enable_libtool_lock" | |
14663 | ||
14664 | fi; | |
14665 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
14666 | ||
50850385 TJ |
14667 | # Check whether --with-pic or --without-pic was given. |
14668 | if test "${with_pic+set}" = set; then | |
14669 | withval="$with_pic" | |
14670 | pic_mode="$withval" | |
14671 | else | |
14672 | pic_mode=default | |
14673 | fi; | |
14674 | test -z "$pic_mode" && pic_mode=default | |
14675 | ||
14676 | # Use C for the default configuration in the libtool script | |
14677 | tagname= | |
14678 | lt_save_CC="$CC" | |
14679 | ac_ext=c | |
14680 | ac_cpp='$CPP $CPPFLAGS' | |
14681 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14682 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14683 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14684 | ||
50850385 TJ |
14685 | # Source file extension for C test sources. |
14686 | ac_ext=c | |
14687 | ||
14688 | # Object file extension for compiled C test sources. | |
14689 | objext=o | |
14690 | objext=$objext | |
14691 | ||
14692 | # Code to be used in simple compile tests | |
14693 | lt_simple_compile_test_code="int some_variable = 0;" | |
14694 | ||
14695 | # Code to be used in simple link tests | |
14696 | lt_simple_link_test_code='main(){return(0);}' | |
14697 | ||
50850385 TJ |
14698 | # If no C compiler was specified, use CC. |
14699 | LTCC=${LTCC-"$CC"} | |
14700 | ||
14701 | # Allow CC to be a program name with arguments. | |
14702 | set dummy $CC | |
14703 | compiler="$2" | |
14704 | ||
50850385 TJ |
14705 | # |
14706 | # Check for any special shared library compilation flags. | |
14707 | # | |
14708 | lt_prog_cc_shlib= | |
14709 | if test "$GCC" = no; then | |
14710 | case $host_os in | |
14711 | sco3.2v5*) | |
14712 | lt_prog_cc_shlib='-belf' | |
14713 | ;; | |
14714 | esac | |
14715 | fi | |
14716 | if test -n "$lt_prog_cc_shlib"; then | |
e61fbf76 | 14717 | { echo "$as_me:14717: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
50850385 TJ |
14718 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
14719 | if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : | |
14720 | else | |
e61fbf76 | 14721 | { echo "$as_me:14721: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
50850385 TJ |
14722 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
14723 | lt_cv_prog_cc_can_build_shared=no | |
14724 | fi | |
14725 | fi | |
14726 | ||
50850385 TJ |
14727 | # |
14728 | # Check to make sure the static flag actually works. | |
14729 | # | |
e61fbf76 | 14730 | echo "$as_me:14730: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
50850385 TJ |
14731 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
14732 | if test "${lt_prog_compiler_static_works+set}" = set; then | |
14733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14734 | else | |
14735 | lt_prog_compiler_static_works=no | |
14736 | save_LDFLAGS="$LDFLAGS" | |
14737 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" | |
14738 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
14739 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
14740 | # The compiler can only warn and ignore the option if not recognized | |
14741 | # So say no if there are warnings | |
14742 | if test -s conftest.err; then | |
14743 | # Append any errors to the config.log. | |
14744 | cat conftest.err 1>&5 | |
14745 | else | |
14746 | lt_prog_compiler_static_works=yes | |
14747 | fi | |
14748 | fi | |
14749 | $rm conftest* | |
14750 | LDFLAGS="$save_LDFLAGS" | |
14751 | ||
14752 | fi | |
e61fbf76 | 14753 | echo "$as_me:14753: result: $lt_prog_compiler_static_works" >&5 |
50850385 TJ |
14754 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
14755 | ||
14756 | if test x"$lt_prog_compiler_static_works" = xyes; then | |
14757 | : | |
14758 | else | |
14759 | lt_prog_compiler_static= | |
14760 | fi | |
14761 | ||
50850385 TJ |
14762 | lt_prog_compiler_no_builtin_flag= |
14763 | ||
14764 | if test "$GCC" = yes; then | |
14765 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
14766 | ||
e61fbf76 | 14767 | echo "$as_me:14767: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
50850385 TJ |
14768 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
14769 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
14770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14771 | else | |
14772 | lt_cv_prog_compiler_rtti_exceptions=no | |
14773 | ac_outfile=conftest.$ac_objext | |
14774 | save_CFLAGS="$CFLAGS" | |
14775 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" | |
14776 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14777 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
14778 | # The compiler can only warn and ignore the option if not recognized | |
14779 | # So say no if there are warnings | |
14780 | if test -s conftest.err; then | |
14781 | # Append any errors to the config.log. | |
14782 | cat conftest.err 1>&5 | |
14783 | else | |
14784 | lt_cv_prog_compiler_rtti_exceptions=yes | |
14785 | fi | |
14786 | fi | |
14787 | $rm conftest* | |
14788 | CFLAGS="$save_CFLAGS" | |
14789 | ||
14790 | fi | |
e61fbf76 | 14791 | echo "$as_me:14791: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
50850385 TJ |
14792 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
14793 | ||
14794 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
14795 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
14796 | else | |
14797 | : | |
14798 | fi | |
14799 | ||
14800 | fi | |
14801 | ||
14802 | lt_prog_compiler_wl= | |
14803 | lt_prog_compiler_pic= | |
14804 | lt_prog_compiler_static= | |
14805 | ||
e61fbf76 | 14806 | echo "$as_me:14806: checking for $compiler option to produce PIC" >&5 |
50850385 TJ |
14807 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
14808 | ||
14809 | if test "$GCC" = yes; then | |
14810 | lt_prog_compiler_wl='-Wl,' | |
14811 | lt_prog_compiler_static='-static' | |
14812 | ||
14813 | case $host_os in | |
14814 | aix*) | |
14815 | # All AIX code is PIC. | |
14816 | if test "$host_cpu" = ia64; then | |
14817 | # AIX 5 now supports IA64 processor | |
14818 | lt_prog_compiler_static='-Bstatic' | |
14819 | fi | |
14820 | ;; | |
14821 | ||
14822 | amigaos*) | |
14823 | # FIXME: we need at least 68020 code to build shared libraries, but | |
14824 | # adding the `-m68020' flag to GCC prevents building anything better, | |
14825 | # like `-m68040'. | |
14826 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
14827 | ;; | |
14828 | ||
14829 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
14830 | # PIC is the default for these OSes. | |
14831 | ;; | |
14832 | ||
14833 | cygwin* | mingw* | pw32* | os2*) | |
14834 | # This hack is so that the source file can tell whether it is being | |
14835 | # built for inclusion in a dll (and should export symbols for example). | |
14836 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
14837 | ;; | |
14838 | ||
14839 | darwin* | rhapsody*) | |
14840 | # PIC is the default on this platform | |
14841 | # Common symbols not allowed in MH_DYLIB files | |
14842 | lt_prog_compiler_pic='-fno-common' | |
14843 | ;; | |
14844 | ||
14845 | msdosdjgpp*) | |
14846 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
14847 | # on systems that don't support them. | |
14848 | lt_prog_compiler_can_build_shared=no | |
14849 | enable_shared=no | |
14850 | ;; | |
14851 | ||
14852 | sysv4*MP*) | |
14853 | if test -d /usr/nec; then | |
14854 | lt_prog_compiler_pic=-Kconform_pic | |
14855 | fi | |
14856 | ;; | |
14857 | ||
14858 | hpux*) | |
14859 | # PIC is the default for IA64 HP-UX, but not for PA HP-UX. | |
14860 | if test "$host_cpu" != ia64; then | |
14861 | lt_prog_compiler_pic='-fPIC' | |
14862 | fi | |
14863 | ;; | |
14864 | ||
14865 | *) | |
14866 | lt_prog_compiler_pic='-fPIC' | |
14867 | ;; | |
14868 | esac | |
14869 | else | |
14870 | # PORTME Check for flag to pass linker flags through the system compiler. | |
14871 | case $host_os in | |
14872 | aix*) | |
14873 | lt_prog_compiler_wl='-Wl,' | |
14874 | if test "$host_cpu" = ia64; then | |
14875 | # AIX 5 now supports IA64 processor | |
14876 | lt_prog_compiler_static='-Bstatic' | |
14877 | else | |
14878 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
14879 | fi | |
14880 | ;; | |
14881 | ||
14882 | cygwin* | mingw* | pw32* | os2*) | |
14883 | # This hack is so that the source file can tell whether it is being | |
14884 | # built for inclusion in a dll (and should export symbols for example). | |
14885 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
14886 | ;; | |
14887 | ||
14888 | hpux9* | hpux10* | hpux11*) | |
14889 | lt_prog_compiler_wl='-Wl,' | |
14890 | if test "$host_cpu" != ia64; then | |
14891 | lt_prog_compiler_pic='+Z' | |
14892 | fi | |
14893 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
14894 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
14895 | ;; | |
14896 | ||
14897 | irix5* | irix6* | nonstopux*) | |
14898 | lt_prog_compiler_wl='-Wl,' | |
14899 | # PIC (with -KPIC) is the default. | |
14900 | lt_prog_compiler_static='-non_shared' | |
14901 | ;; | |
14902 | ||
14903 | newsos6) | |
14904 | lt_prog_compiler_pic='-KPIC' | |
14905 | lt_prog_compiler_static='-Bstatic' | |
14906 | ;; | |
14907 | ||
14908 | osf3* | osf4* | osf5*) | |
14909 | lt_prog_compiler_wl='-Wl,' | |
14910 | # All OSF/1 code is PIC. | |
14911 | lt_prog_compiler_static='-non_shared' | |
14912 | ;; | |
14913 | ||
14914 | sco3.2v5*) | |
14915 | lt_prog_compiler_pic='-Kpic' | |
14916 | lt_prog_compiler_static='-dn' | |
14917 | ;; | |
14918 | ||
14919 | solaris*) | |
14920 | lt_prog_compiler_wl='-Wl,' | |
14921 | lt_prog_compiler_pic='-KPIC' | |
14922 | lt_prog_compiler_static='-Bstatic' | |
14923 | ;; | |
14924 | ||
14925 | sunos4*) | |
14926 | lt_prog_compiler_wl='-Qoption ld ' | |
14927 | lt_prog_compiler_pic='-PIC' | |
14928 | lt_prog_compiler_static='-Bstatic' | |
14929 | ;; | |
14930 | ||
14931 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
14932 | if test "x$host_vendor" = xsni; then | |
14933 | lt_prog_compiler_wl='-LD' | |
14934 | else | |
14935 | lt_prog_compiler_wl='-Wl,' | |
14936 | fi | |
14937 | lt_prog_compiler_pic='-KPIC' | |
14938 | lt_prog_compiler_static='-Bstatic' | |
14939 | ;; | |
14940 | ||
14941 | sysv4*MP*) | |
14942 | if test -d /usr/nec ;then | |
14943 | lt_prog_compiler_pic='-Kconform_pic' | |
14944 | lt_prog_compiler_static='-Bstatic' | |
14945 | fi | |
14946 | ;; | |
14947 | ||
14948 | uts4*) | |
14949 | lt_prog_compiler_pic='-pic' | |
14950 | lt_prog_compiler_static='-Bstatic' | |
14951 | ;; | |
14952 | ||
14953 | *) | |
14954 | lt_prog_compiler_can_build_shared=no | |
14955 | ;; | |
14956 | esac | |
14957 | fi | |
14958 | ||
e61fbf76 | 14959 | echo "$as_me:14959: result: $lt_prog_compiler_pic" >&5 |
50850385 TJ |
14960 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
14961 | ||
14962 | # | |
14963 | # Check to make sure the PIC flag actually works. | |
14964 | # | |
14965 | if test -n "$lt_prog_compiler_pic"; then | |
e61fbf76 | 14966 | echo "$as_me:14966: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
50850385 TJ |
14967 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
14968 | if test "${lt_prog_compiler_pic_works+set}" = set; then | |
14969 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14970 | else | |
14971 | lt_prog_compiler_pic_works=no | |
14972 | ac_outfile=conftest.$ac_objext | |
14973 | save_CFLAGS="$CFLAGS" | |
14974 | CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC" | |
14975 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14976 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
14977 | # The compiler can only warn and ignore the option if not recognized | |
14978 | # So say no if there are warnings | |
14979 | if test -s conftest.err; then | |
14980 | # Append any errors to the config.log. | |
14981 | cat conftest.err 1>&5 | |
14982 | else | |
14983 | lt_prog_compiler_pic_works=yes | |
14984 | fi | |
14985 | fi | |
14986 | $rm conftest* | |
14987 | CFLAGS="$save_CFLAGS" | |
14988 | ||
14989 | fi | |
e61fbf76 | 14990 | echo "$as_me:14990: result: $lt_prog_compiler_pic_works" >&5 |
50850385 TJ |
14991 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
14992 | ||
14993 | if test x"$lt_prog_compiler_pic_works" = xyes; then | |
14994 | case $lt_prog_compiler_pic in | |
14995 | "" | " "*) ;; | |
14996 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
14997 | esac | |
14998 | else | |
14999 | lt_prog_compiler_pic= | |
15000 | lt_prog_compiler_can_build_shared=no | |
15001 | fi | |
15002 | ||
15003 | fi | |
15004 | case "$host_os" in | |
15005 | # For platforms which do not support PIC, -DPIC is meaningless: | |
15006 | *djgpp*) | |
15007 | lt_prog_compiler_pic= | |
15008 | ;; | |
15009 | *) | |
15010 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
15011 | ;; | |
15012 | esac | |
15013 | ||
e61fbf76 | 15014 | echo "$as_me:15014: checking if $compiler supports -c -o file.$ac_objext" >&5 |
50850385 TJ |
15015 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
15016 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
15017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15018 | else | |
15019 | lt_cv_prog_compiler_c_o=no | |
15020 | $rm -r conftest 2>/dev/null | |
15021 | mkdir conftest | |
15022 | cd conftest | |
15023 | mkdir out | |
15024 | save_CFLAGS="$CFLAGS" | |
15025 | CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" | |
15026 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15027 | ||
15028 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | |
15029 | # that will create temporary files in the current directory regardless of | |
15030 | # the output directory. Thus, making CWD read-only will cause this test | |
15031 | # to fail, enabling locking or at least warning the user not to do parallel | |
15032 | # builds. | |
15033 | chmod -w . | |
15034 | ||
15035 | if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext | |
15036 | then | |
15037 | # The compiler can only warn and ignore the option if not recognized | |
15038 | # So say no if there are warnings | |
15039 | if test -s out/conftest.err; then | |
15040 | # Append any errors to the config.log. | |
15041 | cat out/conftest.err 1>&5 | |
15042 | else | |
15043 | lt_cv_prog_compiler_c_o=yes | |
15044 | fi | |
15045 | fi | |
15046 | CFLAGS="$save_CFLAGS" | |
15047 | chmod u+w . | |
15048 | $rm conftest* out/* | |
15049 | rmdir out | |
15050 | cd .. | |
15051 | rmdir conftest | |
15052 | $rm conftest* | |
15053 | ||
15054 | fi | |
e61fbf76 | 15055 | echo "$as_me:15055: result: $lt_cv_prog_compiler_c_o" >&5 |
50850385 TJ |
15056 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
15057 | ||
50850385 TJ |
15058 | hard_links="nottested" |
15059 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
15060 | # do not overwrite the value of need_locks provided by the user | |
e61fbf76 | 15061 | echo "$as_me:15061: checking if we can lock with hard links" >&5 |
50850385 TJ |
15062 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
15063 | hard_links=yes | |
15064 | $rm conftest* | |
15065 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
15066 | touch conftest.a | |
15067 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
15068 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
e61fbf76 | 15069 | echo "$as_me:15069: result: $hard_links" >&5 |
50850385 TJ |
15070 | echo "${ECHO_T}$hard_links" >&6 |
15071 | if test "$hard_links" = no; then | |
e61fbf76 | 15072 | { echo "$as_me:15072: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
50850385 TJ |
15073 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
15074 | need_locks=warn | |
15075 | fi | |
15076 | else | |
15077 | need_locks=no | |
15078 | fi | |
15079 | ||
e61fbf76 | 15080 | echo "$as_me:15080: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
50850385 TJ |
15081 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
15082 | ||
15083 | runpath_var= | |
15084 | allow_undefined_flag= | |
15085 | ||
15086 | archive_cmds= | |
15087 | archive_cmds_need_lc= | |
15088 | archive_expsym_cmds= | |
15089 | old_archive_From_new_cmds= | |
15090 | old_archive_from_expsyms_cmds= | |
15091 | export_dynamic_flag_spec= | |
15092 | whole_archive_flag_spec= | |
15093 | thread_safe_flag_spec= | |
15094 | hardcode_libdir_flag_spec= | |
15095 | hardcode_libdir_separator= | |
15096 | hardcode_direct=no | |
15097 | hardcode_minus_L=no | |
15098 | hardcode_shlibpath_var=unsupported | |
15099 | link_all_deplibs=unknown | |
15100 | always_export_symbols=no | |
15101 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
15102 | # include_expsyms should be a list of space-separated symbols to be *always* | |
15103 | # included in the symbol list | |
15104 | include_expsyms= | |
15105 | # exclude_expsyms can be an egrep regular expression of symbols to exclude | |
15106 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
15107 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
15108 | # as well as any symbol that contains `d'. | |
15109 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | |
15110 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
15111 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
15112 | # the symbol is explicitly referenced. Since portable code cannot | |
15113 | # rely on this symbol name, it's probably fine to never include it in | |
15114 | # preloaded symbol tables. | |
15115 | extract_expsyms_cmds= | |
15116 | ||
15117 | case $host_os in | |
15118 | cygwin* | mingw* | pw32*) | |
15119 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
15120 | # When not using gcc, we currently assume that we are using | |
15121 | # Microsoft Visual C++. | |
15122 | if test "$GCC" != yes; then | |
15123 | with_gnu_ld=no | |
15124 | fi | |
15125 | ;; | |
15126 | openbsd*) | |
15127 | with_gnu_ld=no | |
15128 | ;; | |
15129 | esac | |
15130 | ||
15131 | ld_shlibs=yes | |
15132 | if test "$with_gnu_ld" = yes; then | |
15133 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
15134 | wlarc='${wl}' | |
15135 | ||
15136 | # See if GNU ld supports shared libraries. | |
15137 | case $host_os in | |
15138 | aix3* | aix4* | aix5*) | |
15139 | # On AIX/PPC, the GNU linker is very broken | |
15140 | if test "$host_cpu" != ia64; then | |
15141 | ld_shlibs=no | |
15142 | cat <<EOF 1>&2 | |
15143 | ||
15144 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
15145 | *** to be unable to reliably create shared libraries on AIX. | |
15146 | *** Therefore, libtool is disabling shared libraries support. If you | |
15147 | *** really care for shared libraries, you may want to modify your PATH | |
15148 | *** so that a non-GNU linker is found, and then restart. | |
15149 | ||
15150 | EOF | |
15151 | fi | |
15152 | ;; | |
15153 | ||
15154 | amigaos*) | |
15155 | 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)' | |
15156 | hardcode_libdir_flag_spec='-L$libdir' | |
15157 | hardcode_minus_L=yes | |
15158 | ||
15159 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
15160 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
15161 | # to version 4, is to share data among multiple programs linked | |
15162 | # with the same dynamic library. Since this doesn't match the | |
15163 | # behavior of shared libraries on other platforms, we can't use | |
15164 | # them. | |
15165 | ld_shlibs=no | |
15166 | ;; | |
15167 | ||
15168 | beos*) | |
15169 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
15170 | allow_undefined_flag=unsupported | |
15171 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
15172 | # support --undefined. This deserves some investigation. FIXME | |
15173 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
15174 | else | |
15175 | ld_shlibs=no | |
15176 | fi | |
15177 | ;; | |
15178 | ||
15179 | cygwin* | mingw* | pw32*) | |
15180 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is | |
15181 | # no search path for DLLs. | |
15182 | hardcode_libdir_flag_spec='-L$libdir' | |
15183 | allow_undefined_flag=unsupported | |
15184 | always_export_symbols=yes | |
15185 | ||
15186 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ | |
15187 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ | |
15188 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ | |
15189 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ | |
15190 | else $CC -o impgen impgen.c ; fi)~ | |
15191 | $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' | |
15192 | ||
15193 | old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' | |
15194 | ||
15195 | # cygwin and mingw dlls have different entry points and sets of symbols | |
15196 | # to exclude. | |
15197 | # FIXME: what about values for MSVC? | |
15198 | dll_entry=__cygwin_dll_entry@12 | |
15199 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ | |
15200 | case $host_os in | |
15201 | mingw*) | |
15202 | # mingw values | |
15203 | dll_entry=_DllMainCRTStartup@12 | |
15204 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ | |
15205 | ;; | |
15206 | esac | |
15207 | ||
15208 | # mingw and cygwin differ, and it's simplest to just exclude the union | |
15209 | # of the two symbol sets. | |
15210 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 | |
15211 | ||
15212 | # recent cygwin and mingw systems supply a stub DllMain which the user | |
15213 | # can override, but on older systems we have to supply one (in ltdll.c) | |
15214 | if test "x$lt_cv_need_dllmain" = "xyes"; then | |
15215 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " | |
15216 | ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ | |
15217 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' | |
15218 | else | |
15219 | ltdll_obj= | |
15220 | ltdll_cmds= | |
15221 | fi | |
15222 | ||
15223 | # Extract the symbol export list from an `--export-all' def file, | |
15224 | # then regenerate the def file from the symbol export list, so that | |
15225 | # the compiled dll only exports the symbol export list. | |
15226 | # Be careful not to strip the DATA tag left by newer dlltools. | |
15227 | export_symbols_cmds="$ltdll_cmds"' | |
15228 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ | |
15229 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' | |
15230 | ||
15231 | # If the export-symbols file already is a .def file (1st line | |
15232 | # is EXPORTS), use it as is. | |
15233 | # If DATA tags from a recent dlltool are present, honour them! | |
15234 | archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then | |
15235 | cp $export_symbols $output_objdir/$soname-def; | |
15236 | else | |
15237 | echo EXPORTS > $output_objdir/$soname-def; | |
15238 | _lt_hint=1; | |
15239 | cat $export_symbols | while read symbol; do | |
15240 | set dummy \$symbol; | |
15241 | case \$# in | |
15242 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; | |
15243 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; | |
15244 | esac; | |
15245 | _lt_hint=`expr 1 + \$_lt_hint`; | |
15246 | done; | |
15247 | fi~ | |
15248 | '"$ltdll_cmds"' | |
15249 | $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ | |
15250 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ | |
15251 | $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ | |
15252 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ | |
15253 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' | |
15254 | ;; | |
15255 | ||
15256 | netbsd*) | |
15257 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
15258 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
15259 | wlarc= | |
15260 | else | |
15261 | archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
15262 | archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
15263 | fi | |
15264 | ;; | |
15265 | ||
15266 | solaris* | sysv5*) | |
15267 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then | |
15268 | ld_shlibs=no | |
15269 | cat <<EOF 1>&2 | |
15270 | ||
15271 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
15272 | *** create shared libraries on Solaris systems. Therefore, libtool | |
15273 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
15274 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
15275 | *** your PATH or compiler configuration so that the native linker is | |
15276 | *** used, and then restart. | |
15277 | ||
15278 | EOF | |
15279 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
15280 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
15281 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
15282 | else | |
15283 | ld_shlibs=no | |
15284 | fi | |
15285 | ;; | |
15286 | ||
15287 | sunos4*) | |
15288 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
15289 | wlarc= | |
15290 | hardcode_direct=yes | |
15291 | hardcode_shlibpath_var=no | |
15292 | ;; | |
15293 | ||
15294 | *) | |
15295 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
15296 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
15297 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
15298 | else | |
15299 | ld_shlibs=no | |
15300 | fi | |
15301 | ;; | |
15302 | esac | |
15303 | ||
15304 | if test "$ld_shlibs" = yes; then | |
15305 | runpath_var=LD_RUN_PATH | |
15306 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | |
15307 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
15308 | case $host_os in | |
15309 | cygwin* | mingw* | pw32*) | |
15310 | # dlltool doesn't understand --whole-archive et. al. | |
15311 | whole_archive_flag_spec= | |
15312 | ;; | |
15313 | *) | |
15314 | # ancient GNU ld didn't support --whole-archive et. al. | |
15315 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then | |
15316 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
15317 | else | |
15318 | whole_archive_flag_spec= | |
15319 | fi | |
15320 | ;; | |
15321 | esac | |
15322 | fi | |
15323 | else | |
15324 | # PORTME fill in a description of your system's linker (not GNU ld) | |
15325 | case $host_os in | |
15326 | aix3*) | |
15327 | allow_undefined_flag=unsupported | |
15328 | always_export_symbols=yes | |
15329 | 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' | |
15330 | # Note: this linker hardcodes the directories in LIBPATH if there | |
15331 | # are no directories specified by -L. | |
15332 | hardcode_minus_L=yes | |
15333 | if test "$GCC" = yes && test -z "$link_static_flag"; then | |
15334 | # Neither direct hardcoding nor static linking is supported with a | |
15335 | # broken collect2. | |
15336 | hardcode_direct=unsupported | |
15337 | fi | |
15338 | ;; | |
15339 | ||
15340 | aix4* | aix5*) | |
15341 | if test "$host_cpu" = ia64; then | |
15342 | # On IA64, the linker does run time linking by default, so we don't | |
15343 | # have to do anything special. | |
15344 | aix_use_runtimelinking=no | |
15345 | exp_sym_flag='-Bexport' | |
15346 | no_entry_flag="" | |
15347 | else | |
15348 | # If we're using GNU nm, then we don't want the "-C" option. | |
15349 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
15350 | if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then | |
15351 | 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' | |
15352 | else | |
15353 | 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' | |
15354 | fi | |
15355 | ||
15356 | # KDE requires run time linking. Make it the default. | |
15357 | aix_use_runtimelinking=yes | |
15358 | exp_sym_flag='-bexport' | |
15359 | no_entry_flag='-bnoentry' | |
15360 | fi | |
15361 | ||
15362 | # When large executables or shared objects are built, AIX ld can | |
15363 | # have problems creating the table of contents. If linking a library | |
15364 | # or program results in "error TOC overflow" add -mminimal-toc to | |
15365 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
15366 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
15367 | ||
15368 | archive_cmds='' | |
15369 | hardcode_direct=yes | |
15370 | hardcode_libdir_separator=':' | |
15371 | link_all_deplibs=yes | |
15372 | ||
15373 | if test "$GCC" = yes; then | |
15374 | case $host_os in aix4.012|aix4.012.*) | |
15375 | # We only want to do this on AIX 4.2 and lower, the check | |
15376 | # below for broken collect2 doesn't work under 4.3+ | |
15377 | collect2name=`${CC} -print-prog-name=collect2` | |
15378 | if test -f "$collect2name" && \ | |
15379 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
15380 | then | |
15381 | # We have reworked collect2 | |
15382 | hardcode_direct=yes | |
15383 | else | |
15384 | # We have old collect2 | |
15385 | hardcode_direct=unsupported | |
15386 | # It fails to find uninstalled libraries when the uninstalled | |
15387 | # path is not listed in the libpath. Setting hardcode_minus_L | |
15388 | # to unsupported forces relinking | |
15389 | hardcode_minus_L=yes | |
15390 | hardcode_libdir_flag_spec='-L$libdir' | |
15391 | hardcode_libdir_separator= | |
15392 | fi | |
15393 | esac | |
15394 | shared_flag='-shared' | |
15395 | else | |
15396 | # not using gcc | |
15397 | if test "$host_cpu" = ia64; then | |
15398 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
15399 | # chokes on -Wl,-G. The following line is correct: | |
15400 | shared_flag='-G' | |
15401 | else | |
15402 | if test "$aix_use_runtimelinking" = yes; then | |
15403 | shared_flag='-qmkshrobj ${wl}-G' | |
15404 | else | |
15405 | shared_flag='-qmkshrobj' | |
15406 | fi | |
15407 | fi | |
15408 | fi | |
15409 | ||
15410 | # Let the compiler handle the export list. | |
15411 | always_export_symbols=no | |
15412 | if test "$aix_use_runtimelinking" = yes; then | |
15413 | # Warning - without using the other runtime loading flags (-brtl), | |
15414 | # -berok will link without error, but may produce a broken library. | |
15415 | allow_undefined_flag='-berok' | |
15416 | # Determine the default libpath from the value encoded in an empty executable. | |
15417 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 15418 | #line 15418 "configure" |
50850385 TJ |
15419 | #include "confdefs.h" |
15420 | ||
50850385 TJ |
15421 | int |
15422 | main () | |
15423 | { | |
15424 | ||
15425 | ; | |
15426 | return 0; | |
15427 | } | |
15428 | _ACEOF | |
15429 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 15430 | if { (eval echo "$as_me:15430: \"$ac_link\"") >&5 |
50850385 TJ |
15431 | (eval $ac_link) 2>&5 |
15432 | ac_status=$? | |
e61fbf76 | 15433 | echo "$as_me:15433: \$? = $ac_status" >&5 |
50850385 TJ |
15434 | (exit $ac_status); } && |
15435 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 15436 | { (eval echo "$as_me:15436: \"$ac_try\"") >&5 |
50850385 TJ |
15437 | (eval $ac_try) 2>&5 |
15438 | ac_status=$? | |
e61fbf76 | 15439 | echo "$as_me:15439: \$? = $ac_status" >&5 |
50850385 TJ |
15440 | (exit $ac_status); }; }; then |
15441 | ||
15442 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
15443 | }'` | |
15444 | # Check for a 64-bit object if we didn't find anything. | |
15445 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
15446 | }'`; fi | |
15447 | else | |
15448 | echo "$as_me: failed program was:" >&5 | |
15449 | cat conftest.$ac_ext >&5 | |
15450 | fi | |
15451 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
15452 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
15453 | ||
15454 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
15455 | archive_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag" | |
15456 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
15457 | else | |
15458 | if test "$host_cpu" = ia64; then | |
15459 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
15460 | allow_undefined_flag="-z nodefs" | |
15461 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | |
15462 | else | |
15463 | # Determine the default libpath from the value encoded in an empty executable. | |
15464 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 15465 | #line 15465 "configure" |
50850385 TJ |
15466 | #include "confdefs.h" |
15467 | ||
50850385 TJ |
15468 | int |
15469 | main () | |
15470 | { | |
15471 | ||
15472 | ; | |
15473 | return 0; | |
15474 | } | |
15475 | _ACEOF | |
15476 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 15477 | if { (eval echo "$as_me:15477: \"$ac_link\"") >&5 |
50850385 TJ |
15478 | (eval $ac_link) 2>&5 |
15479 | ac_status=$? | |
e61fbf76 | 15480 | echo "$as_me:15480: \$? = $ac_status" >&5 |
50850385 TJ |
15481 | (exit $ac_status); } && |
15482 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 15483 | { (eval echo "$as_me:15483: \"$ac_try\"") >&5 |
50850385 TJ |
15484 | (eval $ac_try) 2>&5 |
15485 | ac_status=$? | |
e61fbf76 | 15486 | echo "$as_me:15486: \$? = $ac_status" >&5 |
50850385 TJ |
15487 | (exit $ac_status); }; }; then |
15488 | ||
15489 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
15490 | }'` | |
15491 | # Check for a 64-bit object if we didn't find anything. | |
15492 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
15493 | }'`; fi | |
15494 | else | |
15495 | echo "$as_me: failed program was:" >&5 | |
15496 | cat conftest.$ac_ext >&5 | |
15497 | fi | |
15498 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
15499 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
15500 | ||
15501 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
15502 | # Warning - without using the other run time loading flags, | |
15503 | # -berok will link without error, but may produce a broken library. | |
15504 | no_undefined_flag=' ${wl}-bernotok' | |
15505 | allow_undefined_flag=' ${wl}-berok' | |
15506 | # -bexpall does not export symbols beginning with underscore (_) | |
15507 | always_export_symbols=yes | |
15508 | # Exported symbols can be pulled into shared objects from archives | |
15509 | whole_archive_flag_spec=' ' | |
15510 | archive_cmds_need_lc=yes | |
15511 | # This is similar to how AIX traditionally builds it's shared libraries. | |
15512 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
15513 | fi | |
15514 | fi | |
15515 | ;; | |
15516 | ||
15517 | amigaos*) | |
15518 | 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)' | |
15519 | hardcode_libdir_flag_spec='-L$libdir' | |
15520 | hardcode_minus_L=yes | |
15521 | # see comment about different semantics on the GNU ld section | |
15522 | ld_shlibs=no | |
15523 | ;; | |
15524 | ||
15525 | bsdi4*) | |
15526 | export_dynamic_flag_spec=-rdynamic | |
15527 | ;; | |
15528 | ||
15529 | cygwin* | mingw* | pw32*) | |
15530 | # When not using gcc, we currently assume that we are using | |
15531 | # Microsoft Visual C++. | |
15532 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
15533 | # no search path for DLLs. | |
15534 | hardcode_libdir_flag_spec=' ' | |
15535 | allow_undefined_flag=unsupported | |
15536 | # Tell ltmain to make .lib files, not .a files. | |
15537 | libext=lib | |
15538 | # FIXME: Setting linknames here is a bad hack. | |
15539 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
15540 | # The linker will automatically build a .lib file if we build a DLL. | |
15541 | old_archive_From_new_cmds='true' | |
15542 | # FIXME: Should let the user specify the lib program. | |
15543 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
15544 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
15545 | ;; | |
15546 | ||
15547 | darwin* | rhapsody*) | |
15548 | case "$host_os" in | |
15549 | rhapsody* | darwin1.[012]) | |
15550 | allow_undefined_flag='-undefined suppress' | |
15551 | ;; | |
15552 | *) # Darwin 1.3 on | |
15553 | allow_undefined_flag='-flat_namespace -undefined suppress' | |
15554 | ;; | |
15555 | esac | |
15556 | ||
15557 | # FIXME: Relying on posixy $() will cause problems for | |
15558 | # cross-compilation, but unfortunately the echo tests do not | |
15559 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles | |
15560 | # `"' quotes if we put them in here... so don't! | |
15561 | archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' | |
15562 | # We need to add '_' to the symbols in $export_symbols first | |
15563 | #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols' | |
15564 | hardcode_direct=yes | |
15565 | hardcode_shlibpath_var=no | |
15566 | whole_archive_flag_spec='-all_load $convenience' | |
15567 | ;; | |
15568 | ||
15569 | dgux*) | |
15570 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15571 | hardcode_libdir_flag_spec='-L$libdir' | |
15572 | hardcode_shlibpath_var=no | |
15573 | ;; | |
15574 | ||
15575 | freebsd1*) | |
15576 | ld_shlibs=no | |
15577 | ;; | |
15578 | ||
15579 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
15580 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
15581 | # does not break anything, and helps significantly (at the cost of a little | |
15582 | # extra space). | |
15583 | freebsd2.2*) | |
15584 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
15585 | hardcode_libdir_flag_spec='-R$libdir' | |
15586 | hardcode_direct=yes | |
15587 | hardcode_shlibpath_var=no | |
15588 | ;; | |
15589 | ||
15590 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
15591 | freebsd2*) | |
15592 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
15593 | hardcode_direct=yes | |
15594 | hardcode_minus_L=yes | |
15595 | hardcode_shlibpath_var=no | |
15596 | ;; | |
15597 | ||
15598 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
15599 | freebsd*) | |
15600 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
15601 | hardcode_libdir_flag_spec='-R$libdir' | |
15602 | hardcode_direct=yes | |
15603 | hardcode_shlibpath_var=no | |
15604 | ;; | |
15605 | ||
15606 | hpux9* | hpux10* | hpux11*) | |
15607 | if test "$GCC" = yes; then | |
15608 | case $host_os in | |
15609 | hpux9*) | |
15610 | 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' | |
15611 | ;; | |
15612 | *) | |
15613 | if test "$host_cpu" = ia64; then | |
15614 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15615 | else | |
15616 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
15617 | fi | |
15618 | ;; | |
15619 | esac | |
15620 | else | |
15621 | case $host_os in | |
15622 | hpux9*) | |
15623 | 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' | |
15624 | ;; | |
15625 | *) | |
15626 | if test "$host_cpu" = ia64; then | |
15627 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15628 | else | |
15629 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
15630 | fi | |
15631 | ;; | |
15632 | esac | |
15633 | fi | |
15634 | if test "$host_cpu" = ia64; then | |
15635 | hardcode_libdir_flag_spec='-L$libdir' | |
15636 | hardcode_direct=no | |
15637 | hardcode_shlibpath_var=no | |
15638 | else | |
15639 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
15640 | hardcode_libdir_separator=: | |
15641 | hardcode_direct=yes | |
15642 | fi | |
15643 | # hardcode_minus_L: Not really in the search PATH, | |
15644 | # but as the default location of the library. | |
15645 | hardcode_minus_L=yes | |
15646 | export_dynamic_flag_spec='${wl}-E' | |
15647 | ;; | |
15648 | ||
15649 | irix5* | irix6* | nonstopux*) | |
15650 | if test "$GCC" = yes; then | |
15651 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
15652 | else | |
15653 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
15654 | fi | |
15655 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
15656 | hardcode_libdir_separator=: | |
15657 | link_all_deplibs=yes | |
15658 | ;; | |
15659 | ||
15660 | netbsd*) | |
15661 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
15662 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
15663 | else | |
15664 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
15665 | fi | |
15666 | hardcode_libdir_flag_spec='-R$libdir' | |
15667 | hardcode_direct=yes | |
15668 | hardcode_shlibpath_var=no | |
15669 | ;; | |
15670 | ||
15671 | newsos6) | |
15672 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15673 | hardcode_direct=yes | |
15674 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
15675 | hardcode_libdir_separator=: | |
15676 | hardcode_shlibpath_var=no | |
15677 | ;; | |
15678 | ||
15679 | openbsd*) | |
15680 | hardcode_direct=yes | |
15681 | hardcode_shlibpath_var=no | |
15682 | ||
15683 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15684 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | |
15685 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
15686 | export_dynamic_flag_spec='${wl}-E' | |
15687 | else | |
15688 | case $host_os in | |
15689 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
15690 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
15691 | hardcode_libdir_flag_spec='-R$libdir' | |
15692 | ;; | |
15693 | *) | |
15694 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | |
15695 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
15696 | ;; | |
15697 | esac | |
15698 | fi | |
15699 | ;; | |
15700 | ||
15701 | os2*) | |
15702 | hardcode_libdir_flag_spec='-L$libdir' | |
15703 | hardcode_minus_L=yes | |
15704 | allow_undefined_flag=unsupported | |
15705 | 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' | |
15706 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
15707 | ;; | |
15708 | ||
15709 | osf3*) | |
15710 | if test "$GCC" = yes; then | |
15711 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
15712 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
15713 | else | |
15714 | allow_undefined_flag=' -expect_unresolved \*' | |
15715 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
15716 | fi | |
15717 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
15718 | hardcode_libdir_separator=: | |
15719 | ;; | |
15720 | ||
15721 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
15722 | if test "$GCC" = yes; then | |
15723 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
15724 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
15725 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
15726 | else | |
15727 | allow_undefined_flag=' -expect_unresolved \*' | |
15728 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
15729 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
15730 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' | |
15731 | ||
15732 | # Both c and cxx compiler support -rpath directly | |
15733 | hardcode_libdir_flag_spec='-rpath $libdir' | |
15734 | fi | |
15735 | hardcode_libdir_separator=: | |
15736 | ;; | |
15737 | ||
15738 | sco3.2v5*) | |
15739 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15740 | hardcode_shlibpath_var=no | |
15741 | export_dynamic_flag_spec='${wl}-Bexport' | |
15742 | runpath_var=LD_RUN_PATH | |
15743 | hardcode_runpath_var=yes | |
15744 | ;; | |
15745 | ||
15746 | solaris*) | |
15747 | no_undefined_flag=' -z text' | |
15748 | if test "$GCC" = yes; then | |
15749 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15750 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
15751 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
15752 | else | |
15753 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15754 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
15755 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
15756 | fi | |
15757 | hardcode_libdir_flag_spec='-R$libdir' | |
15758 | hardcode_shlibpath_var=no | |
15759 | case $host_os in | |
15760 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
15761 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | |
15762 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | |
15763 | esac | |
15764 | link_all_deplibs=yes | |
15765 | ;; | |
15766 | ||
15767 | sunos4*) | |
15768 | if test "x$host_vendor" = xsequent; then | |
15769 | # Use $CC to link under sequent, because it throws in some extra .o | |
15770 | # files that make .init and .fini sections work. | |
15771 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
15772 | else | |
15773 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
15774 | fi | |
15775 | hardcode_libdir_flag_spec='-L$libdir' | |
15776 | hardcode_direct=yes | |
15777 | hardcode_minus_L=yes | |
15778 | hardcode_shlibpath_var=no | |
15779 | ;; | |
15780 | ||
15781 | sysv4) | |
15782 | if test "x$host_vendor" = xsni; then | |
15783 | archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15784 | hardcode_direct=yes # is this really true??? | |
15785 | else | |
15786 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15787 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
15788 | fi | |
15789 | runpath_var='LD_RUN_PATH' | |
15790 | hardcode_shlibpath_var=no | |
15791 | ;; | |
15792 | ||
15793 | sysv4.3*) | |
15794 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15795 | hardcode_shlibpath_var=no | |
15796 | export_dynamic_flag_spec='-Bexport' | |
15797 | ;; | |
15798 | ||
15799 | sysv4*MP*) | |
15800 | if test -d /usr/nec; then | |
15801 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15802 | hardcode_shlibpath_var=no | |
15803 | runpath_var=LD_RUN_PATH | |
15804 | hardcode_runpath_var=yes | |
15805 | ld_shlibs=yes | |
15806 | fi | |
15807 | ;; | |
15808 | ||
15809 | sysv4.2uw2*) | |
15810 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
15811 | hardcode_direct=yes | |
15812 | hardcode_minus_L=no | |
15813 | hardcode_shlibpath_var=no | |
15814 | hardcode_runpath_var=yes | |
15815 | runpath_var=LD_RUN_PATH | |
15816 | ;; | |
15817 | ||
15818 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
15819 | no_undefined_flag='${wl}-z ${wl}text' | |
15820 | if test "$GCC" = yes; then | |
15821 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15822 | else | |
15823 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15824 | fi | |
15825 | runpath_var='LD_RUN_PATH' | |
15826 | hardcode_shlibpath_var=no | |
15827 | ;; | |
15828 | ||
15829 | sysv5*) | |
15830 | no_undefined_flag=' -z text' | |
15831 | # $CC -shared without GNU ld will not create a library from C++ | |
15832 | # object files and a static libstdc++, better avoid it by now | |
15833 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15834 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
15835 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
15836 | hardcode_libdir_flag_spec= | |
15837 | hardcode_shlibpath_var=no | |
15838 | runpath_var='LD_RUN_PATH' | |
15839 | ;; | |
15840 | ||
15841 | uts4*) | |
15842 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15843 | hardcode_libdir_flag_spec='-L$libdir' | |
15844 | hardcode_shlibpath_var=no | |
15845 | ;; | |
15846 | ||
15847 | *) | |
15848 | ld_shlibs=no | |
15849 | ;; | |
15850 | esac | |
15851 | fi | |
15852 | ||
e61fbf76 | 15853 | echo "$as_me:15853: result: $ld_shlibs" >&5 |
50850385 TJ |
15854 | echo "${ECHO_T}$ld_shlibs" >&6 |
15855 | test "$ld_shlibs" = no && can_build_shared=no | |
15856 | ||
15857 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
15858 | if test "$GCC" = yes; then | |
15859 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
15860 | fi | |
15861 | ||
15862 | # | |
15863 | # Do we need to explicitly link libc? | |
15864 | # | |
15865 | archive_cmds_need_lc=yes | |
15866 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
15867 | case $archive_cmds in | |
15868 | *'~'*) | |
15869 | # FIXME: we may have to deal with multi-command sequences. | |
15870 | ;; | |
15871 | '$CC '*) | |
15872 | # Test whether the compiler implicitly links with -lc since on some | |
15873 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
15874 | # to ld, don't add -lc before -lgcc. | |
e61fbf76 | 15875 | echo "$as_me:15875: checking whether -lc should be explicitly linked in" >&5 |
50850385 TJ |
15876 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
15877 | $rm conftest* | |
15878 | echo 'static int dummy;' > conftest.$ac_ext | |
15879 | ||
e61fbf76 | 15880 | if { (eval echo "$as_me:15880: \"$ac_compile\"") >&5 |
50850385 TJ |
15881 | (eval $ac_compile) 2>&5 |
15882 | ac_status=$? | |
e61fbf76 | 15883 | echo "$as_me:15883: \$? = $ac_status" >&5 |
50850385 TJ |
15884 | (exit $ac_status); } 2>conftest.err; then |
15885 | soname=conftest | |
15886 | lib=conftest | |
15887 | libobjs=conftest.$ac_objext | |
15888 | deplibs= | |
15889 | wl=$lt_prog_compiler_wl | |
15890 | compiler_flags=-v | |
15891 | linker_flags=-v | |
15892 | verstring= | |
15893 | output_objdir=. | |
15894 | libname=conftest | |
15895 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
15896 | allow_undefined_flag= | |
e61fbf76 | 15897 | if { (eval echo "$as_me:15897: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
50850385 TJ |
15898 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
15899 | ac_status=$? | |
e61fbf76 | 15900 | echo "$as_me:15900: \$? = $ac_status" >&5 |
50850385 TJ |
15901 | (exit $ac_status); } |
15902 | then | |
15903 | archive_cmds_need_lc=no | |
15904 | else | |
15905 | archive_cmds_need_lc=yes | |
15906 | fi | |
15907 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
15908 | else | |
15909 | cat conftest.err 1>&5 | |
15910 | fi | |
15911 | $rm conftest* | |
e61fbf76 | 15912 | echo "$as_me:15912: result: $archive_cmds_need_lc" >&5 |
50850385 TJ |
15913 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
15914 | ;; | |
15915 | esac | |
15916 | fi | |
15917 | ||
e61fbf76 | 15918 | echo "$as_me:15918: checking how to hardcode library paths into programs" >&5 |
50850385 TJ |
15919 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
15920 | hardcode_action= | |
15921 | if test -n "$hardcode_libdir_flag_spec" || \ | |
15922 | test -n "$runpath_var "; then | |
15923 | ||
15924 | # We can hardcode non-existant directories. | |
15925 | if test "$hardcode_direct" != no && | |
15926 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
15927 | # have to relink, otherwise we might link with an installed library | |
15928 | # when we should be linking with a yet-to-be-installed one | |
15929 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | |
15930 | test "$hardcode_minus_L" != no; then | |
15931 | # Linking always hardcodes the temporary library directory. | |
15932 | hardcode_action=relink | |
15933 | else | |
15934 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
15935 | hardcode_action=immediate | |
15936 | fi | |
15937 | else | |
15938 | # We cannot hardcode anything, or else we can only hardcode existing | |
15939 | # directories. | |
15940 | hardcode_action=unsupported | |
15941 | fi | |
e61fbf76 | 15942 | echo "$as_me:15942: result: $hardcode_action" >&5 |
50850385 TJ |
15943 | echo "${ECHO_T}$hardcode_action" >&6 |
15944 | ||
15945 | if test "$hardcode_action" = relink; then | |
15946 | # Fast installation is not supported | |
15947 | enable_fast_install=no | |
15948 | elif test "$shlibpath_overrides_runpath" = yes || | |
15949 | test "$enable_shared" = no; then | |
15950 | # Fast installation is not necessary | |
15951 | enable_fast_install=needless | |
15952 | fi | |
15953 | ||
15954 | striplib= | |
15955 | old_striplib= | |
e61fbf76 | 15956 | echo "$as_me:15956: checking whether stripping libraries is possible" >&5 |
50850385 TJ |
15957 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
15958 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
15959 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
15960 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
e61fbf76 | 15961 | echo "$as_me:15961: result: yes" >&5 |
50850385 TJ |
15962 | echo "${ECHO_T}yes" >&6 |
15963 | else | |
e61fbf76 | 15964 | echo "$as_me:15964: result: no" >&5 |
50850385 TJ |
15965 | echo "${ECHO_T}no" >&6 |
15966 | fi | |
15967 | ||
e61fbf76 | 15968 | echo "$as_me:15968: checking dynamic linker characteristics" >&5 |
50850385 TJ |
15969 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
15970 | library_names_spec= | |
15971 | libname_spec='lib$name' | |
15972 | soname_spec= | |
15973 | postinstall_cmds= | |
15974 | postuninstall_cmds= | |
15975 | finish_cmds= | |
15976 | finish_eval= | |
15977 | shlibpath_var= | |
15978 | shlibpath_overrides_runpath=unknown | |
15979 | version_type=none | |
15980 | dynamic_linker="$host_os ld.so" | |
15981 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
15982 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
15983 | need_lib_prefix=unknown | |
15984 | hardcode_into_libs=no | |
15985 | ||
15986 | # when you set need_version to no, make sure it does not cause -set_version | |
15987 | # flags to be left without arguments | |
15988 | need_version=unknown | |
15989 | ||
15990 | case $host_os in | |
15991 | aix3*) | |
15992 | version_type=linux | |
15993 | library_names_spec='${libname}${release}.so$versuffix $libname.a' | |
15994 | shlibpath_var=LIBPATH | |
15995 | ||
15996 | # AIX 3 has no versioning support, so we append a major version to the name. | |
15997 | soname_spec='${libname}${release}.so$major' | |
15998 | ;; | |
15999 | ||
16000 | aix4* | aix5*) | |
16001 | version_type=linux | |
16002 | if test "$host_cpu" = ia64; then | |
16003 | # AIX 5 supports IA64 | |
16004 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' | |
16005 | shlibpath_var=LD_LIBRARY_PATH | |
16006 | else | |
16007 | # With GCC up to 2.95.x, collect2 would create an import file | |
16008 | # for dependence libraries. The import file would start with | |
16009 | # the line `#! .'. This would cause the generated library to | |
16010 | # depend on `.', always an invalid library. This was fixed in | |
16011 | # development snapshots of GCC prior to 3.0. | |
16012 | case $host_os in | |
16013 | aix4 | aix4.[01] | aix4.[01].*) | |
16014 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
16015 | echo ' yes ' | |
16016 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
16017 | : | |
16018 | else | |
16019 | can_build_shared=no | |
16020 | fi | |
16021 | ;; | |
16022 | esac | |
16023 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
16024 | # soname into executable. Probably we can add versioning support to | |
16025 | # collect2, so additional links can be useful in future. | |
16026 | if test "$aix_use_runtimelinking" = yes; then | |
16027 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
16028 | # instead of lib<name>.a to let people know that these are not | |
16029 | # typical AIX shared libraries. | |
16030 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
16031 | else | |
16032 | # We preserve .a as extension for shared libraries through AIX4.2 | |
16033 | # and later when we are not doing run time linking. | |
16034 | library_names_spec='${libname}${release}.a $libname.a' | |
16035 | soname_spec='${libname}${release}.so$major' | |
16036 | fi | |
16037 | shlibpath_var=LIBPATH | |
16038 | fi | |
16039 | ;; | |
16040 | ||
16041 | amigaos*) | |
16042 | library_names_spec='$libname.ixlibrary $libname.a' | |
16043 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
16044 | 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' | |
16045 | ;; | |
16046 | ||
16047 | beos*) | |
16048 | library_names_spec='${libname}.so' | |
16049 | dynamic_linker="$host_os ld.so" | |
16050 | shlibpath_var=LIBRARY_PATH | |
16051 | ;; | |
16052 | ||
16053 | bsdi4*) | |
16054 | version_type=linux | |
16055 | need_version=no | |
16056 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
16057 | soname_spec='${libname}${release}.so$major' | |
16058 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
16059 | shlibpath_var=LD_LIBRARY_PATH | |
16060 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
16061 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
16062 | # the default ld.so.conf also contains /usr/contrib/lib and | |
16063 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
16064 | # libtool to hard-code these into programs | |
16065 | ;; | |
16066 | ||
16067 | cygwin* | mingw* | pw32*) | |
16068 | version_type=windows | |
16069 | need_version=no | |
16070 | need_lib_prefix=no | |
16071 | case $GCC,$host_os in | |
16072 | yes,cygwin*) | |
16073 | library_names_spec='$libname.dll.a' | |
16074 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" | |
16075 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
16076 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ | |
16077 | dldir=$destdir/`dirname \$dlpath`~ | |
16078 | test -d \$dldir || mkdir -p \$dldir~ | |
16079 | $install_prog .libs/$dlname \$dldir/$dlname' | |
16080 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
16081 | dlpath=$dir/\$dldll~ | |
16082 | $rm \$dlpath' | |
16083 | ;; | |
16084 | yes,mingw*) | |
16085 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
16086 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"` | |
16087 | if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then | |
16088 | # It is most probably a Windows format PATH printed by | |
16089 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
16090 | # path with ; separators, and with drive letters. We can handle the | |
16091 | # drive letters (cygwin fileutils understands them), so leave them, | |
16092 | # especially as we might pass files found there to a mingw objdump, | |
16093 | # which wouldn't understand a cygwinified path. Ahh. | |
16094 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` | |
16095 | else | |
16096 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` | |
16097 | fi | |
16098 | ;; | |
16099 | yes,pw32*) | |
16100 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' | |
16101 | ;; | |
16102 | *) | |
16103 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' | |
16104 | ;; | |
16105 | esac | |
16106 | dynamic_linker='Win32 ld.exe' | |
16107 | # FIXME: first we should search . and the directory the executable is in | |
16108 | shlibpath_var=PATH | |
16109 | ;; | |
16110 | ||
16111 | darwin* | rhapsody*) | |
16112 | dynamic_linker="$host_os dyld" | |
16113 | version_type=darwin | |
16114 | need_lib_prefix=no | |
16115 | need_version=no | |
16116 | # FIXME: Relying on posixy $() will cause problems for | |
16117 | # cross-compilation, but unfortunately the echo tests do not | |
16118 | # yet detect zsh echo's removal of \ escapes. | |
16119 | library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' | |
16120 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' | |
16121 | shlibpath_overrides_runpath=yes | |
16122 | shlibpath_var=DYLD_LIBRARY_PATH | |
16123 | ;; | |
16124 | ||
16125 | dgux*) | |
16126 | version_type=linux | |
16127 | need_lib_prefix=no | |
16128 | need_version=no | |
16129 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
16130 | soname_spec='${libname}${release}.so$major' | |
16131 | shlibpath_var=LD_LIBRARY_PATH | |
16132 | ;; | |
16133 | ||
16134 | freebsd1*) | |
16135 | dynamic_linker=no | |
16136 | ;; | |
16137 | ||
16138 | freebsd*) | |
16139 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
16140 | version_type=freebsd-$objformat | |
16141 | case $version_type in | |
16142 | freebsd-elf*) | |
16143 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
16144 | need_version=no | |
16145 | need_lib_prefix=no | |
16146 | ;; | |
16147 | freebsd-*) | |
16148 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' | |
16149 | need_version=yes | |
16150 | ;; | |
16151 | esac | |
16152 | shlibpath_var=LD_LIBRARY_PATH | |
16153 | case $host_os in | |
16154 | freebsd2*) | |
16155 | shlibpath_overrides_runpath=yes | |
16156 | ;; | |
16157 | freebsd3.01* | freebsdelf3.01*) | |
16158 | shlibpath_overrides_runpath=yes | |
16159 | hardcode_into_libs=yes | |
16160 | ;; | |
16161 | *) # from 3.2 on | |
16162 | shlibpath_overrides_runpath=no | |
16163 | hardcode_into_libs=yes | |
16164 | ;; | |
16165 | esac | |
16166 | ;; | |
16167 | ||
16168 | gnu*) | |
16169 | version_type=linux | |
16170 | need_lib_prefix=no | |
16171 | need_version=no | |
16172 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' | |
16173 | soname_spec='${libname}${release}.so$major' | |
16174 | shlibpath_var=LD_LIBRARY_PATH | |
16175 | hardcode_into_libs=yes | |
16176 | ;; | |
16177 | ||
16178 | hpux9* | hpux10* | hpux11*) | |
16179 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
16180 | # link against other versions. | |
16181 | version_type=sunos | |
16182 | need_lib_prefix=no | |
16183 | need_version=no | |
16184 | if test "$host_cpu" = ia64; then | |
16185 | hardcode_into_libs=yes | |
16186 | dynamic_linker="$host_os dld.so" | |
16187 | shlibpath_var=LD_LIBRARY_PATH | |
16188 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
16189 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
16190 | soname_spec='${libname}${release}.so$major' | |
16191 | if test "X$HPUX_IA64_MODE" = X32; then | |
16192 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
16193 | else | |
16194 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
16195 | fi | |
16196 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
16197 | else | |
16198 | dynamic_linker="$host_os dld.sl" | |
16199 | shlibpath_var=SHLIB_PATH | |
16200 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
16201 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' | |
16202 | soname_spec='${libname}${release}.sl$major' | |
16203 | fi | |
16204 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
16205 | postinstall_cmds='chmod 555 $lib' | |
16206 | ;; | |
16207 | ||
16208 | irix5* | irix6* | nonstopux*) | |
16209 | case $host_os in | |
16210 | nonstopux*) version_type=nonstopux ;; | |
16211 | *) version_type=irix ;; | |
16212 | esac | |
16213 | need_lib_prefix=no | |
16214 | need_version=no | |
16215 | soname_spec='${libname}${release}.so$major' | |
16216 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' | |
16217 | case $host_os in | |
16218 | irix5* | nonstopux*) | |
16219 | libsuff= shlibsuff= | |
16220 | ;; | |
16221 | *) | |
16222 | case $LD in # libtool.m4 will add one of these switches to LD | |
16223 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; | |
16224 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; | |
16225 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
16226 | *) libsuff= shlibsuff= libmagic=never-match;; | |
16227 | esac | |
16228 | ;; | |
16229 | esac | |
16230 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
16231 | shlibpath_overrides_runpath=no | |
16232 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
16233 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
16234 | ;; | |
16235 | ||
16236 | # No shared lib support for Linux oldld, aout, or coff. | |
16237 | linux*oldld* | linux*aout* | linux*coff*) | |
16238 | dynamic_linker=no | |
16239 | ;; | |
16240 | ||
16241 | # This must be Linux ELF. | |
16242 | linux*) | |
16243 | version_type=linux | |
16244 | need_lib_prefix=no | |
16245 | need_version=no | |
16246 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
16247 | soname_spec='${libname}${release}.so$major' | |
16248 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
16249 | libsuff= | |
16250 | if test "x$LINUX_64_MODE" = x64; then | |
16251 | # Some platforms are per default 64-bit, so there's no /lib64 | |
16252 | if test -d /lib64; then | |
16253 | libsuff=64 | |
16254 | fi | |
16255 | fi | |
16256 | shlibpath_var=LD_LIBRARY_PATH | |
16257 | shlibpath_overrides_runpath=no | |
16258 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" | |
16259 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
16260 | # This implies no fast_install, which is unacceptable. | |
16261 | # Some rework will be needed to allow for fast_install | |
16262 | # before this can be enabled. | |
16263 | hardcode_into_libs=yes | |
16264 | ||
16265 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
16266 | # powerpc, because MkLinux only supported shared libraries with the | |
16267 | # GNU dynamic linker. Since this was broken with cross compilers, | |
16268 | # most powerpc-linux boxes support dynamic linking these days and | |
16269 | # people can always --disable-shared, the test was removed, and we | |
16270 | # assume the GNU/Linux dynamic linker is in use. | |
16271 | dynamic_linker='GNU/Linux ld.so' | |
16272 | ;; | |
16273 | ||
16274 | netbsd*) | |
16275 | version_type=sunos | |
16276 | need_lib_prefix=no | |
16277 | need_version=no | |
16278 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
16279 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
16280 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
16281 | dynamic_linker='NetBSD (a.out) ld.so' | |
16282 | else | |
16283 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' | |
16284 | soname_spec='${libname}${release}.so$major' | |
16285 | dynamic_linker='NetBSD ld.elf_so' | |
16286 | fi | |
16287 | shlibpath_var=LD_LIBRARY_PATH | |
16288 | shlibpath_overrides_runpath=yes | |
16289 | hardcode_into_libs=yes | |
16290 | ;; | |
16291 | ||
16292 | newsos6) | |
16293 | version_type=linux | |
16294 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
16295 | shlibpath_var=LD_LIBRARY_PATH | |
16296 | shlibpath_overrides_runpath=yes | |
16297 | ;; | |
16298 | ||
16299 | nto-qnx) | |
16300 | version_type=linux | |
16301 | need_lib_prefix=no | |
16302 | need_version=no | |
16303 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
16304 | soname_spec='${libname}${release}.so$major' | |
16305 | shlibpath_var=LD_LIBRARY_PATH | |
16306 | shlibpath_overrides_runpath=yes | |
16307 | ;; | |
16308 | ||
16309 | openbsd*) | |
16310 | version_type=sunos | |
16311 | need_lib_prefix=no | |
16312 | need_version=no | |
16313 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
16314 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
16315 | shlibpath_var=LD_LIBRARY_PATH | |
16316 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
16317 | case $host_os in | |
16318 | openbsd2.[89] | openbsd2.[89].*) | |
16319 | shlibpath_overrides_runpath=no | |
16320 | ;; | |
16321 | *) | |
16322 | shlibpath_overrides_runpath=yes | |
16323 | ;; | |
16324 | esac | |
16325 | else | |
16326 | shlibpath_overrides_runpath=yes | |
16327 | fi | |
16328 | ;; | |
16329 | ||
16330 | os2*) | |
16331 | libname_spec='$name' | |
16332 | need_lib_prefix=no | |
16333 | library_names_spec='$libname.dll $libname.a' | |
16334 | dynamic_linker='OS/2 ld.exe' | |
16335 | shlibpath_var=LIBPATH | |
16336 | ;; | |
16337 | ||
16338 | osf3* | osf4* | osf5*) | |
16339 | version_type=osf | |
16340 | need_lib_prefix=no | |
16341 | need_version=no | |
16342 | soname_spec='${libname}${release}.so' | |
16343 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
16344 | shlibpath_var=LD_LIBRARY_PATH | |
16345 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
16346 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
16347 | ;; | |
16348 | ||
16349 | sco3.2v5*) | |
16350 | version_type=osf | |
16351 | soname_spec='${libname}${release}.so$major' | |
16352 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
16353 | shlibpath_var=LD_LIBRARY_PATH | |
16354 | ;; | |
16355 | ||
16356 | solaris*) | |
16357 | version_type=linux | |
16358 | need_lib_prefix=no | |
16359 | need_version=no | |
16360 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
16361 | soname_spec='${libname}${release}.so$major' | |
16362 | shlibpath_var=LD_LIBRARY_PATH | |
16363 | shlibpath_overrides_runpath=yes | |
16364 | hardcode_into_libs=yes | |
16365 | # ldd complains unless libraries are executable | |
16366 | postinstall_cmds='chmod +x $lib' | |
16367 | ;; | |
16368 | ||
16369 | sunos4*) | |
16370 | version_type=sunos | |
16371 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
16372 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
16373 | shlibpath_var=LD_LIBRARY_PATH | |
16374 | shlibpath_overrides_runpath=yes | |
16375 | if test "$with_gnu_ld" = yes; then | |
16376 | need_lib_prefix=no | |
16377 | fi | |
16378 | need_version=yes | |
16379 | ;; | |
16380 | ||
16381 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
16382 | version_type=linux | |
16383 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
16384 | soname_spec='${libname}${release}.so$major' | |
16385 | shlibpath_var=LD_LIBRARY_PATH | |
16386 | case $host_vendor in | |
16387 | sni) | |
16388 | shlibpath_overrides_runpath=no | |
16389 | ;; | |
16390 | motorola) | |
16391 | need_lib_prefix=no | |
16392 | need_version=no | |
16393 | shlibpath_overrides_runpath=no | |
16394 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
16395 | ;; | |
16396 | esac | |
16397 | ;; | |
16398 | ||
16399 | sysv4*MP*) | |
16400 | if test -d /usr/nec ;then | |
16401 | version_type=linux | |
16402 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' | |
16403 | soname_spec='$libname.so.$major' | |
16404 | shlibpath_var=LD_LIBRARY_PATH | |
16405 | fi | |
16406 | ;; | |
16407 | ||
16408 | uts4*) | |
16409 | version_type=linux | |
16410 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
16411 | soname_spec='${libname}${release}.so$major' | |
16412 | shlibpath_var=LD_LIBRARY_PATH | |
16413 | ;; | |
16414 | ||
16415 | *) | |
16416 | dynamic_linker=no | |
16417 | ;; | |
16418 | esac | |
e61fbf76 | 16419 | echo "$as_me:16419: result: $dynamic_linker" >&5 |
50850385 TJ |
16420 | echo "${ECHO_T}$dynamic_linker" >&6 |
16421 | test "$dynamic_linker" = no && can_build_shared=no | |
16422 | ||
16423 | if test "x$enable_dlopen" != xyes; then | |
16424 | enable_dlopen=unknown | |
16425 | enable_dlopen_self=unknown | |
16426 | enable_dlopen_self_static=unknown | |
16427 | else | |
16428 | lt_cv_dlopen=no | |
16429 | lt_cv_dlopen_libs= | |
16430 | ||
16431 | case $host_os in | |
16432 | beos*) | |
16433 | lt_cv_dlopen="load_add_on" | |
16434 | lt_cv_dlopen_libs= | |
16435 | lt_cv_dlopen_self=yes | |
16436 | ;; | |
16437 | ||
16438 | cygwin* | mingw* | pw32*) | |
16439 | lt_cv_dlopen="LoadLibrary" | |
16440 | lt_cv_dlopen_libs= | |
16441 | ;; | |
16442 | ||
16443 | *) | |
e61fbf76 | 16444 | echo "$as_me:16444: checking for shl_load" >&5 |
50850385 TJ |
16445 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
16446 | if test "${ac_cv_func_shl_load+set}" = set; then | |
16447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16448 | else | |
16449 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 16450 | #line 16450 "configure" |
50850385 TJ |
16451 | #include "confdefs.h" |
16452 | /* System header to define __stub macros and hopefully few prototypes, | |
16453 | which can conflict with char shl_load (); below. */ | |
16454 | #include <assert.h> | |
16455 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16456 | #ifdef __cplusplus | |
16457 | extern "C" | |
16458 | #endif | |
16459 | /* We use char because int might match the return type of a gcc2 | |
16460 | builtin and then its argument prototype would still apply. */ | |
16461 | char shl_load (); | |
16462 | char (*f) (); | |
16463 | ||
50850385 TJ |
16464 | int |
16465 | main () | |
16466 | { | |
16467 | /* The GNU C library defines this for functions which it implements | |
16468 | to always fail with ENOSYS. Some functions are actually named | |
16469 | something starting with __ and the normal name is an alias. */ | |
16470 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
16471 | choke me | |
16472 | #else | |
16473 | f = shl_load; | |
16474 | #endif | |
16475 | ||
16476 | ; | |
16477 | return 0; | |
16478 | } | |
16479 | _ACEOF | |
16480 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 16481 | if { (eval echo "$as_me:16481: \"$ac_link\"") >&5 |
50850385 TJ |
16482 | (eval $ac_link) 2>&5 |
16483 | ac_status=$? | |
e61fbf76 | 16484 | echo "$as_me:16484: \$? = $ac_status" >&5 |
50850385 TJ |
16485 | (exit $ac_status); } && |
16486 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 16487 | { (eval echo "$as_me:16487: \"$ac_try\"") >&5 |
50850385 TJ |
16488 | (eval $ac_try) 2>&5 |
16489 | ac_status=$? | |
e61fbf76 | 16490 | echo "$as_me:16490: \$? = $ac_status" >&5 |
50850385 TJ |
16491 | (exit $ac_status); }; }; then |
16492 | ac_cv_func_shl_load=yes | |
16493 | else | |
16494 | echo "$as_me: failed program was:" >&5 | |
16495 | cat conftest.$ac_ext >&5 | |
16496 | ac_cv_func_shl_load=no | |
16497 | fi | |
16498 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16499 | fi | |
e61fbf76 | 16500 | echo "$as_me:16500: result: $ac_cv_func_shl_load" >&5 |
50850385 TJ |
16501 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
16502 | if test $ac_cv_func_shl_load = yes; then | |
16503 | lt_cv_dlopen="shl_load" | |
16504 | else | |
e61fbf76 | 16505 | echo "$as_me:16505: checking for shl_load in -ldld" >&5 |
50850385 TJ |
16506 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
16507 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
16508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16509 | else | |
16510 | ac_check_lib_save_LIBS=$LIBS | |
16511 | LIBS="-ldld $LIBS" | |
16512 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 16513 | #line 16513 "configure" |
50850385 TJ |
16514 | #include "confdefs.h" |
16515 | ||
16516 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16517 | #ifdef __cplusplus | |
16518 | extern "C" | |
16519 | #endif | |
16520 | /* We use char because int might match the return type of a gcc2 | |
16521 | builtin and then its argument prototype would still apply. */ | |
16522 | char shl_load (); | |
50850385 TJ |
16523 | int |
16524 | main () | |
16525 | { | |
16526 | shl_load (); | |
16527 | ; | |
16528 | return 0; | |
16529 | } | |
16530 | _ACEOF | |
16531 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 16532 | if { (eval echo "$as_me:16532: \"$ac_link\"") >&5 |
50850385 TJ |
16533 | (eval $ac_link) 2>&5 |
16534 | ac_status=$? | |
e61fbf76 | 16535 | echo "$as_me:16535: \$? = $ac_status" >&5 |
50850385 TJ |
16536 | (exit $ac_status); } && |
16537 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 16538 | { (eval echo "$as_me:16538: \"$ac_try\"") >&5 |
50850385 TJ |
16539 | (eval $ac_try) 2>&5 |
16540 | ac_status=$? | |
e61fbf76 | 16541 | echo "$as_me:16541: \$? = $ac_status" >&5 |
50850385 TJ |
16542 | (exit $ac_status); }; }; then |
16543 | ac_cv_lib_dld_shl_load=yes | |
16544 | else | |
16545 | echo "$as_me: failed program was:" >&5 | |
16546 | cat conftest.$ac_ext >&5 | |
16547 | ac_cv_lib_dld_shl_load=no | |
16548 | fi | |
16549 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16550 | LIBS=$ac_check_lib_save_LIBS | |
16551 | fi | |
e61fbf76 | 16552 | echo "$as_me:16552: result: $ac_cv_lib_dld_shl_load" >&5 |
50850385 TJ |
16553 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
16554 | if test $ac_cv_lib_dld_shl_load = yes; then | |
16555 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
16556 | else | |
e61fbf76 | 16557 | echo "$as_me:16557: checking for dlopen" >&5 |
50850385 TJ |
16558 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
16559 | if test "${ac_cv_func_dlopen+set}" = set; then | |
16560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16561 | else | |
16562 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 16563 | #line 16563 "configure" |
50850385 TJ |
16564 | #include "confdefs.h" |
16565 | /* System header to define __stub macros and hopefully few prototypes, | |
16566 | which can conflict with char dlopen (); below. */ | |
16567 | #include <assert.h> | |
16568 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16569 | #ifdef __cplusplus | |
16570 | extern "C" | |
16571 | #endif | |
16572 | /* We use char because int might match the return type of a gcc2 | |
16573 | builtin and then its argument prototype would still apply. */ | |
16574 | char dlopen (); | |
16575 | char (*f) (); | |
16576 | ||
50850385 TJ |
16577 | int |
16578 | main () | |
16579 | { | |
16580 | /* The GNU C library defines this for functions which it implements | |
16581 | to always fail with ENOSYS. Some functions are actually named | |
16582 | something starting with __ and the normal name is an alias. */ | |
16583 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
16584 | choke me | |
16585 | #else | |
16586 | f = dlopen; | |
16587 | #endif | |
16588 | ||
16589 | ; | |
16590 | return 0; | |
16591 | } | |
16592 | _ACEOF | |
16593 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 16594 | if { (eval echo "$as_me:16594: \"$ac_link\"") >&5 |
50850385 TJ |
16595 | (eval $ac_link) 2>&5 |
16596 | ac_status=$? | |
e61fbf76 | 16597 | echo "$as_me:16597: \$? = $ac_status" >&5 |
50850385 TJ |
16598 | (exit $ac_status); } && |
16599 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 16600 | { (eval echo "$as_me:16600: \"$ac_try\"") >&5 |
50850385 TJ |
16601 | (eval $ac_try) 2>&5 |
16602 | ac_status=$? | |
e61fbf76 | 16603 | echo "$as_me:16603: \$? = $ac_status" >&5 |
50850385 TJ |
16604 | (exit $ac_status); }; }; then |
16605 | ac_cv_func_dlopen=yes | |
16606 | else | |
16607 | echo "$as_me: failed program was:" >&5 | |
16608 | cat conftest.$ac_ext >&5 | |
16609 | ac_cv_func_dlopen=no | |
16610 | fi | |
16611 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16612 | fi | |
e61fbf76 | 16613 | echo "$as_me:16613: result: $ac_cv_func_dlopen" >&5 |
50850385 TJ |
16614 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
16615 | if test $ac_cv_func_dlopen = yes; then | |
16616 | lt_cv_dlopen="dlopen" | |
16617 | else | |
e61fbf76 | 16618 | echo "$as_me:16618: checking for dlopen in -ldl" >&5 |
50850385 TJ |
16619 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
16620 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
16621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16622 | else | |
16623 | ac_check_lib_save_LIBS=$LIBS | |
16624 | LIBS="-ldl $LIBS" | |
16625 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 16626 | #line 16626 "configure" |
50850385 TJ |
16627 | #include "confdefs.h" |
16628 | ||
16629 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16630 | #ifdef __cplusplus | |
16631 | extern "C" | |
16632 | #endif | |
16633 | /* We use char because int might match the return type of a gcc2 | |
16634 | builtin and then its argument prototype would still apply. */ | |
16635 | char dlopen (); | |
50850385 TJ |
16636 | int |
16637 | main () | |
16638 | { | |
16639 | dlopen (); | |
16640 | ; | |
16641 | return 0; | |
16642 | } | |
16643 | _ACEOF | |
16644 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 16645 | if { (eval echo "$as_me:16645: \"$ac_link\"") >&5 |
50850385 TJ |
16646 | (eval $ac_link) 2>&5 |
16647 | ac_status=$? | |
e61fbf76 | 16648 | echo "$as_me:16648: \$? = $ac_status" >&5 |
50850385 TJ |
16649 | (exit $ac_status); } && |
16650 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 16651 | { (eval echo "$as_me:16651: \"$ac_try\"") >&5 |
50850385 TJ |
16652 | (eval $ac_try) 2>&5 |
16653 | ac_status=$? | |
e61fbf76 | 16654 | echo "$as_me:16654: \$? = $ac_status" >&5 |
50850385 TJ |
16655 | (exit $ac_status); }; }; then |
16656 | ac_cv_lib_dl_dlopen=yes | |
16657 | else | |
16658 | echo "$as_me: failed program was:" >&5 | |
16659 | cat conftest.$ac_ext >&5 | |
16660 | ac_cv_lib_dl_dlopen=no | |
16661 | fi | |
16662 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16663 | LIBS=$ac_check_lib_save_LIBS | |
16664 | fi | |
e61fbf76 | 16665 | echo "$as_me:16665: result: $ac_cv_lib_dl_dlopen" >&5 |
50850385 TJ |
16666 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
16667 | if test $ac_cv_lib_dl_dlopen = yes; then | |
16668 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
16669 | else | |
e61fbf76 | 16670 | echo "$as_me:16670: checking for dlopen in -lsvld" >&5 |
50850385 TJ |
16671 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
16672 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
16673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16674 | else | |
16675 | ac_check_lib_save_LIBS=$LIBS | |
16676 | LIBS="-lsvld $LIBS" | |
16677 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 16678 | #line 16678 "configure" |
50850385 TJ |
16679 | #include "confdefs.h" |
16680 | ||
16681 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16682 | #ifdef __cplusplus | |
16683 | extern "C" | |
16684 | #endif | |
16685 | /* We use char because int might match the return type of a gcc2 | |
16686 | builtin and then its argument prototype would still apply. */ | |
16687 | char dlopen (); | |
50850385 TJ |
16688 | int |
16689 | main () | |
16690 | { | |
16691 | dlopen (); | |
16692 | ; | |
16693 | return 0; | |
16694 | } | |
16695 | _ACEOF | |
16696 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 16697 | if { (eval echo "$as_me:16697: \"$ac_link\"") >&5 |
50850385 TJ |
16698 | (eval $ac_link) 2>&5 |
16699 | ac_status=$? | |
e61fbf76 | 16700 | echo "$as_me:16700: \$? = $ac_status" >&5 |
50850385 TJ |
16701 | (exit $ac_status); } && |
16702 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 16703 | { (eval echo "$as_me:16703: \"$ac_try\"") >&5 |
50850385 TJ |
16704 | (eval $ac_try) 2>&5 |
16705 | ac_status=$? | |
e61fbf76 | 16706 | echo "$as_me:16706: \$? = $ac_status" >&5 |
50850385 TJ |
16707 | (exit $ac_status); }; }; then |
16708 | ac_cv_lib_svld_dlopen=yes | |
16709 | else | |
16710 | echo "$as_me: failed program was:" >&5 | |
16711 | cat conftest.$ac_ext >&5 | |
16712 | ac_cv_lib_svld_dlopen=no | |
16713 | fi | |
16714 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16715 | LIBS=$ac_check_lib_save_LIBS | |
16716 | fi | |
e61fbf76 | 16717 | echo "$as_me:16717: result: $ac_cv_lib_svld_dlopen" >&5 |
50850385 TJ |
16718 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
16719 | if test $ac_cv_lib_svld_dlopen = yes; then | |
16720 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
16721 | else | |
e61fbf76 | 16722 | echo "$as_me:16722: checking for dld_link in -ldld" >&5 |
50850385 TJ |
16723 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
16724 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
16725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16726 | else | |
16727 | ac_check_lib_save_LIBS=$LIBS | |
16728 | LIBS="-ldld $LIBS" | |
16729 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 16730 | #line 16730 "configure" |
50850385 TJ |
16731 | #include "confdefs.h" |
16732 | ||
16733 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16734 | #ifdef __cplusplus | |
16735 | extern "C" | |
16736 | #endif | |
16737 | /* We use char because int might match the return type of a gcc2 | |
16738 | builtin and then its argument prototype would still apply. */ | |
16739 | char dld_link (); | |
50850385 TJ |
16740 | int |
16741 | main () | |
16742 | { | |
16743 | dld_link (); | |
16744 | ; | |
16745 | return 0; | |
16746 | } | |
16747 | _ACEOF | |
16748 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 16749 | if { (eval echo "$as_me:16749: \"$ac_link\"") >&5 |
50850385 TJ |
16750 | (eval $ac_link) 2>&5 |
16751 | ac_status=$? | |
e61fbf76 | 16752 | echo "$as_me:16752: \$? = $ac_status" >&5 |
50850385 TJ |
16753 | (exit $ac_status); } && |
16754 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 16755 | { (eval echo "$as_me:16755: \"$ac_try\"") >&5 |
50850385 TJ |
16756 | (eval $ac_try) 2>&5 |
16757 | ac_status=$? | |
e61fbf76 | 16758 | echo "$as_me:16758: \$? = $ac_status" >&5 |
50850385 TJ |
16759 | (exit $ac_status); }; }; then |
16760 | ac_cv_lib_dld_dld_link=yes | |
16761 | else | |
16762 | echo "$as_me: failed program was:" >&5 | |
16763 | cat conftest.$ac_ext >&5 | |
16764 | ac_cv_lib_dld_dld_link=no | |
16765 | fi | |
16766 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16767 | LIBS=$ac_check_lib_save_LIBS | |
16768 | fi | |
e61fbf76 | 16769 | echo "$as_me:16769: result: $ac_cv_lib_dld_dld_link" >&5 |
50850385 TJ |
16770 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
16771 | if test $ac_cv_lib_dld_dld_link = yes; then | |
16772 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
16773 | fi | |
16774 | ||
50850385 TJ |
16775 | fi |
16776 | ||
50850385 TJ |
16777 | fi |
16778 | ||
50850385 TJ |
16779 | fi |
16780 | ||
50850385 TJ |
16781 | fi |
16782 | ||
50850385 TJ |
16783 | fi |
16784 | ||
16785 | ;; | |
16786 | esac | |
16787 | ||
16788 | if test "x$lt_cv_dlopen" != xno; then | |
16789 | enable_dlopen=yes | |
16790 | else | |
16791 | enable_dlopen=no | |
16792 | fi | |
16793 | ||
16794 | case $lt_cv_dlopen in | |
16795 | dlopen) | |
16796 | save_CPPFLAGS="$CPPFLAGS" | |
16797 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
16798 | ||
16799 | save_LDFLAGS="$LDFLAGS" | |
16800 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
16801 | ||
16802 | save_LIBS="$LIBS" | |
16803 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
16804 | ||
e61fbf76 | 16805 | echo "$as_me:16805: checking whether a program can dlopen itself" >&5 |
50850385 TJ |
16806 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
16807 | if test "${lt_cv_dlopen_self+set}" = set; then | |
16808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16809 | else | |
16810 | if test "$cross_compiling" = yes; then : | |
16811 | lt_cv_dlopen_self=cross | |
16812 | else | |
16813 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
16814 | lt_status=$lt_dlunknown | |
16815 | cat > conftest.$ac_ext <<EOF | |
e61fbf76 | 16816 | #line 16816 "configure" |
50850385 TJ |
16817 | #include "confdefs.h" |
16818 | ||
16819 | #if HAVE_DLFCN_H | |
16820 | #include <dlfcn.h> | |
16821 | #endif | |
16822 | ||
16823 | #include <stdio.h> | |
16824 | ||
16825 | #ifdef RTLD_GLOBAL | |
16826 | # define LT_DLGLOBAL RTLD_GLOBAL | |
16827 | #else | |
16828 | # ifdef DL_GLOBAL | |
16829 | # define LT_DLGLOBAL DL_GLOBAL | |
16830 | # else | |
16831 | # define LT_DLGLOBAL 0 | |
16832 | # endif | |
16833 | #endif | |
16834 | ||
16835 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
16836 | find out it does not work in some platform. */ | |
16837 | #ifndef LT_DLLAZY_OR_NOW | |
16838 | # ifdef RTLD_LAZY | |
16839 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
16840 | # else | |
16841 | # ifdef DL_LAZY | |
16842 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
16843 | # else | |
16844 | # ifdef RTLD_NOW | |
16845 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
16846 | # else | |
16847 | # ifdef DL_NOW | |
16848 | # define LT_DLLAZY_OR_NOW DL_NOW | |
16849 | # else | |
16850 | # define LT_DLLAZY_OR_NOW 0 | |
16851 | # endif | |
16852 | # endif | |
16853 | # endif | |
16854 | # endif | |
16855 | #endif | |
16856 | ||
16857 | #ifdef __cplusplus | |
16858 | extern "C" void exit (int); | |
16859 | #endif | |
16860 | ||
16861 | void fnord() { int i=42;} | |
16862 | int main () | |
16863 | { | |
16864 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
16865 | int status = $lt_dlunknown; | |
16866 | ||
16867 | if (self) | |
16868 | { | |
16869 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
16870 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
16871 | /* dlclose (self); */ | |
16872 | } | |
16873 | ||
16874 | exit (status); | |
16875 | } | |
16876 | EOF | |
e61fbf76 | 16877 | if { (eval echo "$as_me:16877: \"$ac_link\"") >&5 |
50850385 TJ |
16878 | (eval $ac_link) 2>&5 |
16879 | ac_status=$? | |
e61fbf76 | 16880 | echo "$as_me:16880: \$? = $ac_status" >&5 |
50850385 TJ |
16881 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
16882 | (./conftest; exit; ) 2>/dev/null | |
16883 | lt_status=$? | |
16884 | case x$lt_status in | |
16885 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
16886 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
16887 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
16888 | esac | |
16889 | else : | |
16890 | # compilation failed | |
16891 | lt_cv_dlopen_self=no | |
16892 | fi | |
16893 | fi | |
16894 | rm -fr conftest* | |
16895 | ||
50850385 | 16896 | fi |
e61fbf76 | 16897 | echo "$as_me:16897: result: $lt_cv_dlopen_self" >&5 |
50850385 TJ |
16898 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
16899 | ||
16900 | if test "x$lt_cv_dlopen_self" = xyes; then | |
16901 | LDFLAGS="$LDFLAGS $link_static_flag" | |
e61fbf76 | 16902 | echo "$as_me:16902: checking whether a statically linked program can dlopen itself" >&5 |
50850385 TJ |
16903 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
16904 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
16905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16906 | else | |
16907 | if test "$cross_compiling" = yes; then : | |
16908 | lt_cv_dlopen_self_static=cross | |
16909 | else | |
16910 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
16911 | lt_status=$lt_dlunknown | |
16912 | cat > conftest.$ac_ext <<EOF | |
e61fbf76 | 16913 | #line 16913 "configure" |
50850385 TJ |
16914 | #include "confdefs.h" |
16915 | ||
16916 | #if HAVE_DLFCN_H | |
16917 | #include <dlfcn.h> | |
16918 | #endif | |
16919 | ||
16920 | #include <stdio.h> | |
16921 | ||
16922 | #ifdef RTLD_GLOBAL | |
16923 | # define LT_DLGLOBAL RTLD_GLOBAL | |
16924 | #else | |
16925 | # ifdef DL_GLOBAL | |
16926 | # define LT_DLGLOBAL DL_GLOBAL | |
16927 | # else | |
16928 | # define LT_DLGLOBAL 0 | |
16929 | # endif | |
16930 | #endif | |
16931 | ||
16932 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
16933 | find out it does not work in some platform. */ | |
16934 | #ifndef LT_DLLAZY_OR_NOW | |
16935 | # ifdef RTLD_LAZY | |
16936 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
16937 | # else | |
16938 | # ifdef DL_LAZY | |
16939 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
16940 | # else | |
16941 | # ifdef RTLD_NOW | |
16942 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
16943 | # else | |
16944 | # ifdef DL_NOW | |
16945 | # define LT_DLLAZY_OR_NOW DL_NOW | |
16946 | # else | |
16947 | # define LT_DLLAZY_OR_NOW 0 | |
16948 | # endif | |
16949 | # endif | |
16950 | # endif | |
16951 | # endif | |
16952 | #endif | |
16953 | ||
16954 | #ifdef __cplusplus | |
16955 | extern "C" void exit (int); | |
16956 | #endif | |
16957 | ||
16958 | void fnord() { int i=42;} | |
16959 | int main () | |
16960 | { | |
16961 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
16962 | int status = $lt_dlunknown; | |
16963 | ||
16964 | if (self) | |
16965 | { | |
16966 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
16967 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
16968 | /* dlclose (self); */ | |
16969 | } | |
16970 | ||
16971 | exit (status); | |
16972 | } | |
16973 | EOF | |
e61fbf76 | 16974 | if { (eval echo "$as_me:16974: \"$ac_link\"") >&5 |
50850385 TJ |
16975 | (eval $ac_link) 2>&5 |
16976 | ac_status=$? | |
e61fbf76 | 16977 | echo "$as_me:16977: \$? = $ac_status" >&5 |
50850385 TJ |
16978 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
16979 | (./conftest; exit; ) 2>/dev/null | |
16980 | lt_status=$? | |
16981 | case x$lt_status in | |
16982 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
16983 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
16984 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
16985 | esac | |
16986 | else : | |
16987 | # compilation failed | |
16988 | lt_cv_dlopen_self_static=no | |
16989 | fi | |
16990 | fi | |
16991 | rm -fr conftest* | |
16992 | ||
50850385 | 16993 | fi |
e61fbf76 | 16994 | echo "$as_me:16994: result: $lt_cv_dlopen_self_static" >&5 |
50850385 TJ |
16995 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
16996 | fi | |
16997 | ||
16998 | CPPFLAGS="$save_CPPFLAGS" | |
16999 | LDFLAGS="$save_LDFLAGS" | |
17000 | LIBS="$save_LIBS" | |
17001 | ;; | |
17002 | esac | |
17003 | ||
17004 | case $lt_cv_dlopen_self in | |
17005 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
17006 | *) enable_dlopen_self=unknown ;; | |
17007 | esac | |
17008 | ||
17009 | case $lt_cv_dlopen_self_static in | |
17010 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
17011 | *) enable_dlopen_self_static=unknown ;; | |
17012 | esac | |
17013 | fi | |
17014 | ||
50850385 | 17015 | # Report which librarie types wil actually be built |
e61fbf76 | 17016 | echo "$as_me:17016: checking if libtool supports shared libraries" >&5 |
50850385 | 17017 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
e61fbf76 | 17018 | echo "$as_me:17018: result: $can_build_shared" >&5 |
50850385 TJ |
17019 | echo "${ECHO_T}$can_build_shared" >&6 |
17020 | ||
e61fbf76 | 17021 | echo "$as_me:17021: checking whether to build shared libraries" >&5 |
50850385 TJ |
17022 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
17023 | test "$can_build_shared" = "no" && enable_shared=no | |
17024 | ||
17025 | # On AIX, shared libraries and static libraries use the same namespace, and | |
17026 | # are all built from PIC. | |
17027 | case "$host_os" in | |
17028 | aix3*) | |
17029 | test "$enable_shared" = yes && enable_static=no | |
17030 | if test -n "$RANLIB"; then | |
17031 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
17032 | postinstall_cmds='$RANLIB $lib' | |
17033 | fi | |
17034 | ;; | |
17035 | ||
17036 | aix4*) | |
17037 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
17038 | test "$enable_shared" = yes && enable_static=no | |
17039 | fi | |
17040 | ;; | |
17041 | esac | |
e61fbf76 | 17042 | echo "$as_me:17042: result: $enable_shared" >&5 |
50850385 TJ |
17043 | echo "${ECHO_T}$enable_shared" >&6 |
17044 | ||
e61fbf76 | 17045 | echo "$as_me:17045: checking whether to build static libraries" >&5 |
50850385 TJ |
17046 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
17047 | # Make sure either enable_shared or enable_static is yes. | |
17048 | test "$enable_shared" = yes || enable_static=yes | |
e61fbf76 | 17049 | echo "$as_me:17049: result: $enable_static" >&5 |
50850385 TJ |
17050 | echo "${ECHO_T}$enable_static" >&6 |
17051 | ||
17052 | # The else clause should only fire when bootstrapping the | |
17053 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
17054 | # with your package, and you will get complaints that there are | |
17055 | # no rules to generate ltmain.sh. | |
17056 | if test -f "$ltmain"; then | |
17057 | # Now quote all the things that may contain metacharacters while being | |
17058 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
17059 | # variables and quote the copies for generation of the libtool script. | |
17060 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \ | |
17061 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
17062 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
17063 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
17064 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
17065 | lt_cv_sys_global_symbol_to_c_name_address \ | |
17066 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
17067 | old_postinstall_cmds old_postuninstall_cmds \ | |
17068 | compiler \ | |
17069 | CC \ | |
17070 | LD \ | |
17071 | lt_prog_compiler_wl \ | |
17072 | lt_prog_compiler_pic \ | |
17073 | lt_prog_compiler_static \ | |
17074 | lt_prog_compiler_no_builtin_flag \ | |
17075 | export_dynamic_flag_spec \ | |
17076 | thread_safe_flag_spec \ | |
17077 | whole_archive_flag_spec \ | |
17078 | old_archive_cmds \ | |
17079 | old_archive_from_new_cmds \ | |
17080 | predep_objects \ | |
17081 | postdep_objects \ | |
17082 | predeps \ | |
17083 | postdeps \ | |
17084 | compiler_lib_search_path \ | |
17085 | archive_cmds \ | |
17086 | archive_expsym_cmds \ | |
17087 | postinstall_cmds \ | |
17088 | postuninstall_cmds \ | |
17089 | old_archive_from_expsyms_cmds \ | |
17090 | allow_undefined_flag \ | |
17091 | no_undefined_flag \ | |
17092 | export_symbols_cmds \ | |
17093 | hardcode_libdir_flag_spec \ | |
17094 | hardcode_libdir_separator \ | |
17095 | lt_cv_prog_compiler_c_o \ | |
17096 | exclude_expsyms \ | |
17097 | include_expsyms; do | |
17098 | ||
17099 | case $var in | |
17100 | old_archive_cmds | \ | |
17101 | old_archive_from_new_cmds | \ | |
17102 | archive_cmds | \ | |
17103 | archive_expsym_cmds | \ | |
17104 | old_archive_from_expsyms_cmds | \ | |
17105 | export_symbols_cmds | \ | |
17106 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
17107 | postinstall_cmds | postuninstall_cmds | \ | |
17108 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
17109 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
17110 | # Double-quote double-evaled strings. | |
17111 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
17112 | ;; | |
17113 | *) | |
17114 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
17115 | ;; | |
17116 | esac | |
17117 | done | |
17118 | ||
17119 | case $lt_echo in | |
17120 | *'\$0 --fallback-echo"') | |
17121 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
17122 | ;; | |
17123 | esac | |
17124 | ||
17125 | cfgfile="${ofile}T" | |
17126 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | |
17127 | $rm -f "$cfgfile" | |
e61fbf76 | 17128 | { echo "$as_me:17128: creating $ofile" >&5 |
50850385 TJ |
17129 | echo "$as_me: creating $ofile" >&6;} |
17130 | ||
17131 | cat <<__EOF__ >> "$cfgfile" | |
17132 | #! $SHELL | |
17133 | ||
17134 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
17135 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | |
17136 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
17137 | # | |
17138 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | |
17139 | # Free Software Foundation, Inc. | |
17140 | # | |
17141 | # This file is part of GNU Libtool: | |
17142 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |
17143 | # | |
17144 | # This program is free software; you can redistribute it and/or modify | |
17145 | # it under the terms of the GNU General Public License as published by | |
17146 | # the Free Software Foundation; either version 2 of the License, or | |
17147 | # (at your option) any later version. | |
17148 | # | |
17149 | # This program is distributed in the hope that it will be useful, but | |
17150 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
17151 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
17152 | # General Public License for more details. | |
17153 | # | |
17154 | # You should have received a copy of the GNU General Public License | |
17155 | # along with this program; if not, write to the Free Software | |
17156 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
17157 | # | |
17158 | # As a special exception to the GNU General Public License, if you | |
17159 | # distribute this file as part of a program that contains a | |
17160 | # configuration script generated by Autoconf, you may include it under | |
17161 | # the same distribution terms that you use for the rest of that program. | |
17162 | ||
17163 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
17164 | Xsed="sed -e s/^X//" | |
17165 | ||
17166 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
17167 | # if CDPATH is set. | |
17168 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | |
17169 | ||
17170 | # The names of the tagged configurations supported by this script. | |
17171 | available_tags= | |
17172 | ||
17173 | # ### BEGIN LIBTOOL CONFIG | |
17174 | ||
17175 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
17176 | ||
17177 | # Shell to use when invoking shell scripts. | |
17178 | SHELL=$lt_SHELL | |
17179 | ||
17180 | # Whether or not to build shared libraries. | |
17181 | build_libtool_libs=$enable_shared | |
17182 | ||
17183 | # Whether or not to build static libraries. | |
17184 | build_old_libs=$enable_static | |
17185 | ||
17186 | # Whether or not to add -lc for building shared libraries. | |
17187 | build_libtool_need_lc=$archive_cmds_need_lc | |
17188 | ||
17189 | # Whether or not to optimize for fast installation. | |
17190 | fast_install=$enable_fast_install | |
17191 | ||
17192 | # The host system. | |
17193 | host_alias=$host_alias | |
17194 | host=$host | |
17195 | ||
17196 | # An echo program that does not interpret backslashes. | |
17197 | echo=$lt_echo | |
17198 | ||
17199 | # The archiver. | |
17200 | AR=$lt_AR | |
17201 | AR_FLAGS=$lt_AR_FLAGS | |
17202 | ||
17203 | # A C compiler. | |
17204 | LTCC=$lt_LTCC | |
17205 | ||
17206 | # A language-specific compiler. | |
17207 | CC=$lt_compiler | |
17208 | ||
17209 | # Is the compiler the GNU C compiler? | |
17210 | with_gcc=$GCC | |
17211 | ||
17212 | # The linker used to build libraries. | |
17213 | LD=$lt_LD | |
17214 | ||
17215 | # Whether we need hard or soft links. | |
17216 | LN_S=$lt_LN_S | |
17217 | ||
17218 | # A BSD-compatible nm program. | |
17219 | NM=$lt_NM | |
17220 | ||
17221 | # A sed program that does not truncate output. | |
17222 | SED=$lt_SED | |
17223 | ||
17224 | # A symbol stripping program | |
17225 | STRIP=$STRIP | |
17226 | ||
17227 | # Used to examine libraries when file_magic_cmd begins "file" | |
17228 | MAGIC_CMD=$MAGIC_CMD | |
17229 | ||
17230 | # Used on cygwin: DLL creation program. | |
17231 | DLLTOOL="$DLLTOOL" | |
17232 | ||
17233 | # Used on cygwin: object dumper. | |
17234 | OBJDUMP="$OBJDUMP" | |
17235 | ||
17236 | # Used on cygwin: assembler. | |
17237 | AS="$AS" | |
17238 | ||
17239 | # The name of the directory that contains temporary libtool files. | |
17240 | objdir=$objdir | |
17241 | ||
17242 | # How to create reloadable object files. | |
17243 | reload_flag=$lt_reload_flag | |
17244 | reload_cmds=$lt_reload_cmds | |
17245 | ||
17246 | # How to pass a linker flag through the compiler. | |
17247 | wl=$lt_lt_prog_compiler_wl | |
17248 | ||
17249 | # Object file suffix (normally "o"). | |
17250 | objext="$ac_objext" | |
17251 | ||
17252 | # Old archive suffix (normally "a"). | |
17253 | libext="$libext" | |
17254 | ||
17255 | # Executable file suffix (normally ""). | |
17256 | exeext="$exeext" | |
17257 | ||
17258 | # Additional compiler flags for building library objects. | |
17259 | pic_flag=$lt_lt_prog_compiler_pic | |
17260 | pic_mode=$pic_mode | |
17261 | ||
17262 | # What is the maximum length of a command? | |
17263 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
17264 | ||
17265 | # Does compiler simultaneously support -c and -o options? | |
17266 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
17267 | ||
17268 | # Must we lock files when doing compilation ? | |
17269 | need_locks=$lt_need_locks | |
17270 | ||
17271 | # Do we need the lib prefix for modules? | |
17272 | need_lib_prefix=$need_lib_prefix | |
17273 | ||
17274 | # Do we need a version for libraries? | |
17275 | need_version=$need_version | |
17276 | ||
17277 | # Whether dlopen is supported. | |
17278 | dlopen_support=$enable_dlopen | |
17279 | ||
17280 | # Whether dlopen of programs is supported. | |
17281 | dlopen_self=$enable_dlopen_self | |
17282 | ||
17283 | # Whether dlopen of statically linked programs is supported. | |
17284 | dlopen_self_static=$enable_dlopen_self_static | |
17285 | ||
17286 | # Compiler flag to prevent dynamic linking. | |
17287 | link_static_flag=$lt_lt_prog_compiler_static | |
17288 | ||
17289 | # Compiler flag to turn off builtin functions. | |
17290 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
17291 | ||
17292 | # Compiler flag to allow reflexive dlopens. | |
17293 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
17294 | ||
17295 | # Compiler flag to generate shared objects directly from archives. | |
17296 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
17297 | ||
17298 | # Compiler flag to generate thread-safe objects. | |
17299 | thread_safe_flag_spec=$lt_thread_safe_flag_spec | |
17300 | ||
17301 | # Library versioning type. | |
17302 | version_type=$version_type | |
17303 | ||
17304 | # Format of library name prefix. | |
17305 | libname_spec=$lt_libname_spec | |
17306 | ||
17307 | # List of archive names. First name is the real one, the rest are links. | |
17308 | # The last name is the one that the linker finds with -lNAME. | |
17309 | library_names_spec=$lt_library_names_spec | |
17310 | ||
17311 | # The coded name of the library, if different from the real name. | |
17312 | soname_spec=$lt_soname_spec | |
17313 | ||
17314 | # Commands used to build and install an old-style archive. | |
17315 | RANLIB=$lt_RANLIB | |
17316 | old_archive_cmds=$lt_old_archive_cmds | |
17317 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
17318 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
17319 | ||
17320 | # Create an old-style archive from a shared archive. | |
17321 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
17322 | ||
17323 | # Create a temporary old-style archive to link instead of a shared archive. | |
17324 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
17325 | ||
17326 | # Commands used to build and install a shared archive. | |
17327 | archive_cmds=$lt_archive_cmds | |
17328 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
17329 | postinstall_cmds=$lt_postinstall_cmds | |
17330 | postuninstall_cmds=$lt_postuninstall_cmds | |
17331 | ||
17332 | # Commands to strip libraries. | |
17333 | old_striplib=$lt_old_striplib | |
17334 | striplib=$lt_striplib | |
17335 | ||
17336 | # Dependencies to place before the objects being linked to create a | |
17337 | # shared library. | |
17338 | predep_objects=$lt_predep_objects | |
17339 | ||
17340 | # Dependencies to place after the objects being linked to create a | |
17341 | # shared library. | |
17342 | postdep_objects=$lt_postdep_objects | |
17343 | ||
17344 | # Dependencies to place before the objects being linked to create a | |
17345 | # shared library. | |
17346 | predeps=$lt_predeps | |
17347 | ||
17348 | # Dependencies to place after the objects being linked to create a | |
17349 | # shared library. | |
17350 | postdeps=$lt_postdeps | |
17351 | ||
17352 | # The library search path used internally by the compiler when linking | |
17353 | # a shared library. | |
17354 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
17355 | ||
17356 | # Method to check whether dependent libraries are shared objects. | |
17357 | deplibs_check_method=$lt_deplibs_check_method | |
17358 | ||
17359 | # Command to use when deplibs_check_method == file_magic. | |
17360 | file_magic_cmd=$lt_file_magic_cmd | |
17361 | ||
17362 | # Flag that allows shared libraries with undefined symbols to be built. | |
17363 | allow_undefined_flag=$lt_allow_undefined_flag | |
17364 | ||
17365 | # Flag that forces no undefined symbols. | |
17366 | no_undefined_flag=$lt_no_undefined_flag | |
17367 | ||
17368 | # Commands used to finish a libtool library installation in a directory. | |
17369 | finish_cmds=$lt_finish_cmds | |
17370 | ||
17371 | # Same as above, but a single script fragment to be evaled but not shown. | |
17372 | finish_eval=$lt_finish_eval | |
17373 | ||
17374 | # Take the output of nm and produce a listing of raw symbols and C names. | |
17375 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
17376 | ||
17377 | # Transform the output of nm in a proper C declaration | |
17378 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
17379 | ||
17380 | # Transform the output of nm in a C name address pair | |
17381 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
17382 | ||
17383 | # This is the shared library runtime path variable. | |
17384 | runpath_var=$runpath_var | |
17385 | ||
17386 | # This is the shared library path variable. | |
17387 | shlibpath_var=$shlibpath_var | |
17388 | ||
17389 | # Is shlibpath searched before the hard-coded library search path? | |
17390 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
17391 | ||
17392 | # How to hardcode a shared library path into an executable. | |
17393 | hardcode_action=$hardcode_action | |
17394 | ||
17395 | # Whether we should hardcode library paths into libraries. | |
17396 | hardcode_into_libs=$hardcode_into_libs | |
17397 | ||
17398 | # Flag to hardcode \$libdir into a binary during linking. | |
17399 | # This must work even if \$libdir does not exist. | |
17400 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
17401 | ||
17402 | # Whether we need a single -rpath flag with a separated argument. | |
17403 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
17404 | ||
17405 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | |
17406 | # resulting binary. | |
17407 | hardcode_direct=$hardcode_direct | |
17408 | ||
17409 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
17410 | # resulting binary. | |
17411 | hardcode_minus_L=$hardcode_minus_L | |
17412 | ||
17413 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
17414 | # the resulting binary. | |
17415 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
17416 | ||
17417 | # Variables whose values should be saved in libtool wrapper scripts and | |
17418 | # restored at relink time. | |
17419 | variables_saved_for_relink="$variables_saved_for_relink" | |
17420 | ||
17421 | # Whether libtool must link a program against all its dependency libraries. | |
17422 | link_all_deplibs=$link_all_deplibs | |
17423 | ||
17424 | # Compile-time system search path for libraries | |
17425 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
17426 | ||
17427 | # Run-time system search path for libraries | |
17428 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
17429 | ||
17430 | # Fix the shell variable \$srcfile for the compiler. | |
17431 | fix_srcfile_path="$fix_srcfile_path" | |
17432 | ||
17433 | # Set to yes if exported symbols are required. | |
17434 | always_export_symbols=$always_export_symbols | |
17435 | ||
17436 | # The commands to list exported symbols. | |
17437 | export_symbols_cmds=$lt_export_symbols_cmds | |
17438 | ||
17439 | # The commands to extract the exported symbol list from a shared archive. | |
17440 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
17441 | ||
17442 | # Symbols that should not be listed in the preloaded symbols. | |
17443 | exclude_expsyms=$lt_exclude_expsyms | |
17444 | ||
17445 | # Symbols that must always be exported. | |
17446 | include_expsyms=$lt_include_expsyms | |
17447 | ||
17448 | # ### END LIBTOOL CONFIG | |
17449 | ||
17450 | __EOF__ | |
17451 | ||
50850385 TJ |
17452 | case $host_os in |
17453 | aix3*) | |
17454 | cat <<\EOF >> "$cfgfile" | |
17455 | ||
17456 | # AIX sometimes has problems with the GCC collect2 program. For some | |
17457 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
17458 | # vanish in a puff of smoke. | |
17459 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
17460 | COLLECT_NAMES= | |
17461 | export COLLECT_NAMES | |
17462 | fi | |
17463 | EOF | |
17464 | ;; | |
17465 | ||
17466 | cygwin* | mingw* | pw32* | os2*) | |
17467 | cat <<'EOF' >> "$cfgfile" | |
17468 | # This is a source program that is used to create dlls on Windows | |
17469 | # Don't remove nor modify the starting and closing comments | |
17470 | ||
17471 | # /* ltdll.c starts here */ | |
17472 | # #define WIN32_LEAN_AND_MEAN | |
17473 | # #include <windows.h> | |
17474 | # #undef WIN32_LEAN_AND_MEAN | |
17475 | # #include <stdio.h> | |
17476 | # | |
17477 | # #ifndef __CYGWIN__ | |
17478 | # # ifdef __CYGWIN32__ | |
17479 | # # define __CYGWIN__ __CYGWIN32__ | |
17480 | # # endif | |
17481 | # #endif | |
17482 | # | |
17483 | # #ifdef __cplusplus | |
17484 | # extern "C" { | |
17485 | # #endif | |
17486 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); | |
17487 | # #ifdef __cplusplus | |
17488 | # } | |
17489 | # #endif | |
17490 | # | |
17491 | # #ifdef __CYGWIN__ | |
17492 | # #include <cygwin/cygwin_dll.h> | |
17493 | # DECLARE_CYGWIN_DLL( DllMain ); | |
17494 | # #endif | |
17495 | # HINSTANCE __hDllInstance_base; | |
17496 | # | |
17497 | # BOOL APIENTRY | |
17498 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) | |
17499 | # { | |
17500 | # __hDllInstance_base = hInst; | |
17501 | # return TRUE; | |
17502 | # } | |
17503 | # /* ltdll.c ends here */ | |
17504 | ||
17505 | # This is a source program that is used to create import libraries | |
17506 | # on Windows for dlls which lack them. Don't remove nor modify the | |
17507 | # starting and closing comments | |
17508 | ||
17509 | # /* impgen.c starts here */ | |
17510 | # /* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. | |
17511 | # | |
17512 | # This file is part of GNU libtool. | |
17513 | # | |
17514 | # This program is free software; you can redistribute it and/or modify | |
17515 | # it under the terms of the GNU General Public License as published by | |
17516 | # the Free Software Foundation; either version 2 of the License, or | |
17517 | # (at your option) any later version. | |
17518 | # | |
17519 | # This program is distributed in the hope that it will be useful, | |
17520 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17521 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17522 | # GNU General Public License for more details. | |
17523 | # | |
17524 | # You should have received a copy of the GNU General Public License | |
17525 | # along with this program; if not, write to the Free Software | |
17526 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
17527 | # */ | |
17528 | # | |
17529 | # #include <stdio.h> /* for printf() */ | |
17530 | # #include <unistd.h> /* for open(), lseek(), read() */ | |
17531 | # #include <fcntl.h> /* for O_RDONLY, O_BINARY */ | |
17532 | # #include <string.h> /* for strdup() */ | |
17533 | # | |
17534 | # /* O_BINARY isn't required (or even defined sometimes) under Unix */ | |
17535 | # #ifndef O_BINARY | |
17536 | # #define O_BINARY 0 | |
17537 | # #endif | |
17538 | # | |
17539 | # static unsigned int | |
17540 | # pe_get16 (fd, offset) | |
17541 | # int fd; | |
17542 | # int offset; | |
17543 | # { | |
17544 | # unsigned char b[2]; | |
17545 | # lseek (fd, offset, SEEK_SET); | |
17546 | # read (fd, b, 2); | |
17547 | # return b[0] + (b[1]<<8); | |
17548 | # } | |
17549 | # | |
17550 | # static unsigned int | |
17551 | # pe_get32 (fd, offset) | |
17552 | # int fd; | |
17553 | # int offset; | |
17554 | # { | |
17555 | # unsigned char b[4]; | |
17556 | # lseek (fd, offset, SEEK_SET); | |
17557 | # read (fd, b, 4); | |
17558 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); | |
17559 | # } | |
17560 | # | |
17561 | # static unsigned int | |
17562 | # pe_as32 (ptr) | |
17563 | # void *ptr; | |
17564 | # { | |
17565 | # unsigned char *b = ptr; | |
17566 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); | |
17567 | # } | |
17568 | # | |
17569 | # int | |
17570 | # main (argc, argv) | |
17571 | # int argc; | |
17572 | # char *argv[]; | |
17573 | # { | |
17574 | # int dll; | |
17575 | # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; | |
17576 | # unsigned long export_rva, export_size, nsections, secptr, expptr; | |
17577 | # unsigned long name_rvas, nexp; | |
17578 | # unsigned char *expdata, *erva; | |
17579 | # char *filename, *dll_name; | |
17580 | # | |
17581 | # filename = argv[1]; | |
17582 | # | |
17583 | # dll = open(filename, O_RDONLY|O_BINARY); | |
17584 | # if (dll < 1) | |
17585 | # return 1; | |
17586 | # | |
17587 | # dll_name = filename; | |
17588 | # | |
17589 | # for (i=0; filename[i]; i++) | |
17590 | # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') | |
17591 | # dll_name = filename + i +1; | |
17592 | # | |
17593 | # pe_header_offset = pe_get32 (dll, 0x3c); | |
17594 | # opthdr_ofs = pe_header_offset + 4 + 20; | |
17595 | # num_entries = pe_get32 (dll, opthdr_ofs + 92); | |
17596 | # | |
17597 | # if (num_entries < 1) /* no exports */ | |
17598 | # return 1; | |
17599 | # | |
17600 | # export_rva = pe_get32 (dll, opthdr_ofs + 96); | |
17601 | # export_size = pe_get32 (dll, opthdr_ofs + 100); | |
17602 | # nsections = pe_get16 (dll, pe_header_offset + 4 +2); | |
17603 | # secptr = (pe_header_offset + 4 + 20 + | |
17604 | # pe_get16 (dll, pe_header_offset + 4 + 16)); | |
17605 | # | |
17606 | # expptr = 0; | |
17607 | # for (i = 0; i < nsections; i++) | |
17608 | # { | |
17609 | # char sname[8]; | |
17610 | # unsigned long secptr1 = secptr + 40 * i; | |
17611 | # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); | |
17612 | # unsigned long vsize = pe_get32 (dll, secptr1 + 16); | |
17613 | # unsigned long fptr = pe_get32 (dll, secptr1 + 20); | |
17614 | # lseek(dll, secptr1, SEEK_SET); | |
17615 | # read(dll, sname, 8); | |
17616 | # if (vaddr <= export_rva && vaddr+vsize > export_rva) | |
17617 | # { | |
17618 | # expptr = fptr + (export_rva - vaddr); | |
17619 | # if (export_rva + export_size > vaddr + vsize) | |
17620 | # export_size = vsize - (export_rva - vaddr); | |
17621 | # break; | |
17622 | # } | |
17623 | # } | |
17624 | # | |
17625 | # expdata = (unsigned char*)malloc(export_size); | |
17626 | # lseek (dll, expptr, SEEK_SET); | |
17627 | # read (dll, expdata, export_size); | |
17628 | # erva = expdata - export_rva; | |
17629 | # | |
17630 | # nexp = pe_as32 (expdata+24); | |
17631 | # name_rvas = pe_as32 (expdata+32); | |
17632 | # | |
17633 | # printf ("EXPORTS\n"); | |
17634 | # for (i = 0; i<nexp; i++) | |
17635 | # { | |
17636 | # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); | |
17637 | # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); | |
17638 | # } | |
17639 | # | |
17640 | # return 0; | |
17641 | # } | |
17642 | # /* impgen.c ends here */ | |
17643 | ||
17644 | EOF | |
17645 | ;; | |
17646 | esac | |
17647 | ||
17648 | # We use sed instead of cat because bash on DJGPP gets confused if | |
17649 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
17650 | # text mode, it properly converts lines to CR/LF. This bash problem | |
17651 | # is reportedly fixed, but why not run on old versions too? | |
17652 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | |
17653 | ||
17654 | mv -f "$cfgfile" "$ofile" || \ | |
17655 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
17656 | chmod +x "$ofile" | |
17657 | ||
17658 | else | |
17659 | # If there is no Makefile yet, we rely on a make rule to execute | |
17660 | # `config.status --recheck' to rerun these tests and create the | |
17661 | # libtool script then. | |
17662 | test -f Makefile && make "$ltmain" | |
17663 | fi | |
17664 | ||
50850385 TJ |
17665 | ac_ext=c |
17666 | ac_cpp='$CPP $CPPFLAGS' | |
17667 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17668 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17669 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17670 | ||
17671 | CC="$lt_save_CC" | |
17672 | ||
50850385 TJ |
17673 | # Check whether --with-tags or --without-tags was given. |
17674 | if test "${with_tags+set}" = set; then | |
17675 | withval="$with_tags" | |
17676 | tagnames="$withval" | |
17677 | else | |
17678 | tagnames="CXX,GCJ" | |
17679 | case $host_os in | |
17680 | mingw*|cygwin*) tagnames="$tagnames,RC" ;; | |
17681 | esac | |
17682 | fi; | |
17683 | ||
17684 | if test -f "$ltmain" && test -n "$tagnames"; then | |
17685 | if test ! -f "${ofile}"; then | |
e61fbf76 | 17686 | { echo "$as_me:17686: WARNING: output file \`$ofile' does not exist" >&5 |
50850385 TJ |
17687 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
17688 | fi | |
17689 | ||
17690 | if test -z "$LTCC"; then | |
17691 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | |
17692 | if test -z "$LTCC"; then | |
e61fbf76 | 17693 | { echo "$as_me:17693: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
50850385 TJ |
17694 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
17695 | else | |
e61fbf76 | 17696 | { echo "$as_me:17696: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
50850385 TJ |
17697 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
17698 | fi | |
17699 | fi | |
17700 | ||
17701 | # Extract list of available tagged configurations in $ofile. | |
17702 | # Note that this assumes the entire list is on one line. | |
17703 | available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | |
17704 | ||
17705 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
17706 | for tagname in $tagnames; do | |
17707 | IFS="$lt_save_ifs" | |
17708 | # Check whether tagname contains only valid characters | |
17709 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | |
17710 | "") ;; | |
e61fbf76 | 17711 | *) { { echo "$as_me:17711: error: invalid tag name: $tagname" >&5 |
50850385 TJ |
17712 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
17713 | { (exit 1); exit 1; }; } | |
17714 | ;; | |
17715 | esac | |
17716 | ||
17717 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | |
17718 | then | |
e61fbf76 | 17719 | { { echo "$as_me:17719: error: tag name \"$tagname\" already exists" >&5 |
50850385 TJ |
17720 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
17721 | { (exit 1); exit 1; }; } | |
17722 | fi | |
17723 | ||
17724 | # Update the list of available tags. | |
17725 | if test -n "$tagname"; then | |
17726 | echo appending configuration tag \"$tagname\" to $ofile | |
17727 | ||
17728 | case $tagname in | |
17729 | CXX) | |
17730 | ac_ext=cc | |
17731 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17732 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17733 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17734 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17735 | ||
50850385 TJ |
17736 | archive_cmds_need_lc_CXX=no |
17737 | allow_undefined_flag_CXX= | |
17738 | always_export_symbols_CXX=no | |
17739 | archive_expsym_cmds_CXX= | |
17740 | export_dynamic_flag_spec_CXX= | |
17741 | hardcode_direct_CXX=no | |
17742 | hardcode_libdir_flag_spec_CXX= | |
17743 | hardcode_libdir_separator_CXX= | |
17744 | hardcode_minus_L_CXX=no | |
17745 | link_all_deplibs_CXX=unknown | |
17746 | old_archive_cmds_CXX=$old_archive_cmds | |
17747 | no_undefined_flag_CXX= | |
17748 | whole_archive_flag_spec_CXX= | |
17749 | ||
17750 | # Dependencies to place before and after the object being linked: | |
17751 | predep_objects_CXX= | |
17752 | postdep_objects_CXX= | |
17753 | predeps_CXX= | |
17754 | postdeps_CXX= | |
17755 | compiler_lib_search_path_CXX= | |
17756 | ||
17757 | # Source file extension for C test sources. | |
17758 | ac_ext=cc | |
17759 | ||
17760 | # Object file extension for compiled C test sources. | |
17761 | objext=o | |
17762 | objext_CXX=$objext | |
17763 | ||
17764 | # Code to be used in simple compile tests | |
17765 | lt_simple_compile_test_code="int some_variable = 0;" | |
17766 | ||
17767 | # Code to be used in simple link tests | |
17768 | lt_simple_link_test_code='int main(int char *) { return(0); }' | |
17769 | ||
17770 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
17771 | ||
17772 | # If no C compiler was specified, use CC. | |
17773 | LTCC=${LTCC-"$CC"} | |
17774 | ||
17775 | # Allow CC to be a program name with arguments. | |
17776 | set dummy $CC | |
17777 | compiler="$2" | |
17778 | ||
50850385 TJ |
17779 | # Allow CC to be a program name with arguments. |
17780 | lt_save_CC="$CC" | |
17781 | CC=${CXX-"c++"} | |
17782 | set dummy $CC | |
17783 | compiler="$2" | |
17784 | compiler_CXX=$CC | |
17785 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | |
17786 | ||
17787 | # We don't want -fno-exception wen compiling C++ code, so set the | |
17788 | # no_builtin_flag separately | |
17789 | if test "$GXX" = yes; then | |
17790 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
17791 | else | |
17792 | lt_prog_compiler_no_builtin_flag_CXX= | |
17793 | fi | |
17794 | ||
17795 | if test "$GXX" = yes; then | |
17796 | # Set up default GNU C++ configuration | |
17797 | ||
17798 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
17799 | # archiving commands below assume that GNU ld is being used. | |
17800 | if eval "`$CC -print-prog-name=ld` --version 2>&1" | \ | |
17801 | egrep 'GNU ld' > /dev/null; then | |
17802 | with_gnu_ld=yes | |
17803 | ||
17804 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
17805 | 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' | |
17806 | ||
17807 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
17808 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
17809 | ||
17810 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
17811 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
17812 | # investigate it a little bit more. (MM) | |
17813 | wlarc='${wl}' | |
17814 | ||
17815 | # ancient GNU ld didn't support --whole-archive et. al. | |
17816 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | |
17817 | egrep 'no-whole-archive' > /dev/null; then | |
17818 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
17819 | else | |
17820 | whole_archive_flag_spec_CXX= | |
17821 | fi | |
17822 | else | |
17823 | with_gnu_ld=no | |
17824 | wlarc= | |
17825 | ||
17826 | # A generic and very simple default shared library creation | |
17827 | # command for GNU C++ for the case where it uses the native | |
17828 | # linker, instead of GNU ld. If possible, this setting should | |
17829 | # overridden to take advantage of the native linker features on | |
17830 | # the platform it is being used on. | |
17831 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
17832 | fi | |
17833 | ||
17834 | # Commands to make compiler produce verbose output that lists | |
17835 | # what "hidden" libraries, object files and flags are used when | |
17836 | # linking a shared library. | |
17837 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' | |
17838 | ||
17839 | else | |
17840 | GXX=no | |
17841 | with_gnu_ld=no | |
17842 | wlarc= | |
17843 | fi | |
17844 | ||
17845 | # PORTME: fill in a description of your system's C++ link characteristics | |
e61fbf76 | 17846 | echo "$as_me:17846: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
50850385 TJ |
17847 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
17848 | ld_shlibs_CXX=yes | |
17849 | case $host_os in | |
17850 | aix3*) | |
17851 | # FIXME: insert proper C++ library support | |
17852 | ld_shlibs_CXX=no | |
17853 | ;; | |
17854 | aix4* | aix5*) | |
17855 | if test "$host_cpu" = ia64; then | |
17856 | # On IA64, the linker does run time linking by default, so we don't | |
17857 | # have to do anything special. | |
17858 | aix_use_runtimelinking=no | |
17859 | exp_sym_flag='-Bexport' | |
17860 | no_entry_flag="" | |
17861 | else | |
17862 | # KDE requires run time linking. Make it the default. | |
17863 | aix_use_runtimelinking=yes | |
17864 | exp_sym_flag='-bexport' | |
17865 | no_entry_flag='-bnoentry' | |
17866 | fi | |
17867 | ||
17868 | # When large executables or shared objects are built, AIX ld can | |
17869 | # have problems creating the table of contents. If linking a library | |
17870 | # or program results in "error TOC overflow" add -mminimal-toc to | |
17871 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
17872 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
17873 | ||
17874 | archive_cmds_CXX='' | |
17875 | hardcode_direct_CXX=yes | |
17876 | hardcode_libdir_separator_CXX=':' | |
17877 | link_all_deplibs_CXX=yes | |
17878 | ||
17879 | if test "$GXX" = yes; then | |
17880 | case $host_os in aix4.012|aix4.012.*) | |
17881 | # We only want to do this on AIX 4.2 and lower, the check | |
17882 | # below for broken collect2 doesn't work under 4.3+ | |
17883 | collect2name=`${CC} -print-prog-name=collect2` | |
17884 | if test -f "$collect2name" && \ | |
17885 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
17886 | then | |
17887 | # We have reworked collect2 | |
17888 | hardcode_direct_CXX=yes | |
17889 | else | |
17890 | # We have old collect2 | |
17891 | hardcode_direct_CXX=unsupported | |
17892 | # It fails to find uninstalled libraries when the uninstalled | |
17893 | # path is not listed in the libpath. Setting hardcode_minus_L | |
17894 | # to unsupported forces relinking | |
17895 | hardcode_minus_L_CXX=yes | |
17896 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
17897 | hardcode_libdir_separator_CXX= | |
17898 | fi | |
17899 | esac | |
17900 | shared_flag='-shared' | |
17901 | else | |
17902 | # not using gcc | |
17903 | if test "$host_cpu" = ia64; then | |
17904 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
17905 | # chokes on -Wl,-G. The following line is correct: | |
17906 | shared_flag='-G' | |
17907 | else | |
17908 | if test "$aix_use_runtimelinking" = yes; then | |
17909 | shared_flag='-qmkshrobj ${wl}-G' | |
17910 | else | |
17911 | shared_flag='-qmkshrobj' | |
17912 | fi | |
17913 | fi | |
17914 | fi | |
17915 | ||
17916 | # Let the compiler handle the export list. | |
17917 | always_export_symbols_CXX=no | |
17918 | if test "$aix_use_runtimelinking" = yes; then | |
17919 | # Warning - without using the other runtime loading flags (-brtl), | |
17920 | # -berok will link without error, but may produce a broken library. | |
17921 | allow_undefined_flag_CXX='-berok' | |
17922 | # Determine the default libpath from the value encoded in an empty executable. | |
17923 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 17924 | #line 17924 "configure" |
50850385 TJ |
17925 | #include "confdefs.h" |
17926 | ||
50850385 TJ |
17927 | int |
17928 | main () | |
17929 | { | |
17930 | ||
17931 | ; | |
17932 | return 0; | |
17933 | } | |
17934 | _ACEOF | |
17935 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 17936 | if { (eval echo "$as_me:17936: \"$ac_link\"") >&5 |
50850385 TJ |
17937 | (eval $ac_link) 2>&5 |
17938 | ac_status=$? | |
e61fbf76 | 17939 | echo "$as_me:17939: \$? = $ac_status" >&5 |
50850385 TJ |
17940 | (exit $ac_status); } && |
17941 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 17942 | { (eval echo "$as_me:17942: \"$ac_try\"") >&5 |
50850385 TJ |
17943 | (eval $ac_try) 2>&5 |
17944 | ac_status=$? | |
e61fbf76 | 17945 | echo "$as_me:17945: \$? = $ac_status" >&5 |
50850385 TJ |
17946 | (exit $ac_status); }; }; then |
17947 | ||
17948 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
17949 | }'` | |
17950 | # Check for a 64-bit object if we didn't find anything. | |
17951 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
17952 | }'`; fi | |
17953 | else | |
17954 | echo "$as_me: failed program was:" >&5 | |
17955 | cat conftest.$ac_ext >&5 | |
17956 | fi | |
17957 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
17958 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
17959 | ||
17960 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
17961 | ||
17962 | archive_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag" | |
17963 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
17964 | else | |
17965 | if test "$host_cpu" = ia64; then | |
17966 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
17967 | allow_undefined_flag_CXX="-z nodefs" | |
17968 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | |
17969 | else | |
17970 | # Determine the default libpath from the value encoded in an empty executable. | |
17971 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 17972 | #line 17972 "configure" |
50850385 TJ |
17973 | #include "confdefs.h" |
17974 | ||
50850385 TJ |
17975 | int |
17976 | main () | |
17977 | { | |
17978 | ||
17979 | ; | |
17980 | return 0; | |
17981 | } | |
17982 | _ACEOF | |
17983 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 17984 | if { (eval echo "$as_me:17984: \"$ac_link\"") >&5 |
50850385 TJ |
17985 | (eval $ac_link) 2>&5 |
17986 | ac_status=$? | |
e61fbf76 | 17987 | echo "$as_me:17987: \$? = $ac_status" >&5 |
50850385 TJ |
17988 | (exit $ac_status); } && |
17989 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 17990 | { (eval echo "$as_me:17990: \"$ac_try\"") >&5 |
50850385 TJ |
17991 | (eval $ac_try) 2>&5 |
17992 | ac_status=$? | |
e61fbf76 | 17993 | echo "$as_me:17993: \$? = $ac_status" >&5 |
50850385 TJ |
17994 | (exit $ac_status); }; }; then |
17995 | ||
17996 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
17997 | }'` | |
17998 | # Check for a 64-bit object if we didn't find anything. | |
17999 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
18000 | }'`; fi | |
18001 | else | |
18002 | echo "$as_me: failed program was:" >&5 | |
18003 | cat conftest.$ac_ext >&5 | |
18004 | fi | |
18005 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18006 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
18007 | ||
18008 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
18009 | # Warning - without using the other run time loading flags, | |
18010 | # -berok will link without error, but may produce a broken library. | |
18011 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
18012 | allow_undefined_flag_CXX=' ${wl}-berok' | |
18013 | # -bexpall does not export symbols beginning with underscore (_) | |
18014 | always_export_symbols_CXX=yes | |
18015 | # Exported symbols can be pulled into shared objects from archives | |
18016 | whole_archive_flag_spec_CXX=' ' | |
18017 | archive_cmds_need_lc_CXX=yes | |
18018 | # This is similar to how AIX traditionally builds it's shared libraries. | |
18019 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
18020 | fi | |
18021 | fi | |
18022 | ;; | |
18023 | chorus*) | |
18024 | case $cc_basename in | |
18025 | *) | |
18026 | # FIXME: insert proper C++ library support | |
18027 | ld_shlibs_CXX=no | |
18028 | ;; | |
18029 | esac | |
18030 | ;; | |
18031 | dgux*) | |
18032 | case $cc_basename in | |
18033 | ec++) | |
18034 | # FIXME: insert proper C++ library support | |
18035 | ld_shlibs_CXX=no | |
18036 | ;; | |
18037 | ghcx) | |
18038 | # Green Hills C++ Compiler | |
18039 | # FIXME: insert proper C++ library support | |
18040 | ld_shlibs_CXX=no | |
18041 | ;; | |
18042 | *) | |
18043 | # FIXME: insert proper C++ library support | |
18044 | ld_shlibs_CXX=no | |
18045 | ;; | |
18046 | esac | |
18047 | ;; | |
18048 | freebsd12*) | |
18049 | # C++ shared libraries reported to be fairly broken before switch to ELF | |
18050 | ld_shlibs_CXX=no | |
18051 | ;; | |
18052 | freebsd-elf*) | |
18053 | archive_cmds_need_lc_CXX=no | |
18054 | ;; | |
18055 | freebsd*) | |
18056 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
18057 | # conventions | |
18058 | ld_shlibs_CXX=yes | |
18059 | ;; | |
18060 | gnu*) | |
18061 | ;; | |
18062 | hpux*) | |
18063 | if test $with_gnu_ld = no; then | |
18064 | if test "$host_cpu" = ia64; then | |
18065 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
18066 | else | |
18067 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
18068 | hardcode_libdir_separator_CXX=: | |
18069 | export_dynamic_flag_spec_CXX='${wl}-E' | |
18070 | fi | |
18071 | fi | |
18072 | if test "$host_cpu" = ia64; then | |
18073 | hardcode_direct_CXX=no | |
18074 | hardcode_shlibpath_var_CXX=no | |
18075 | else | |
18076 | hardcode_direct_CXX=yes | |
18077 | fi | |
18078 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
18079 | # but as the default | |
18080 | # location of the library. | |
18081 | ||
18082 | case $cc_basename in | |
18083 | CC) | |
18084 | # FIXME: insert proper C++ library support | |
18085 | ld_shlibs_CXX=no | |
18086 | ;; | |
18087 | aCC) | |
18088 | case $host_os in | |
18089 | hpux9*) | |
18090 | 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' | |
18091 | ;; | |
18092 | *) | |
18093 | if test "$host_cpu" = ia64; then | |
18094 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | |
18095 | else | |
18096 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
18097 | fi | |
18098 | ;; | |
18099 | esac | |
18100 | # Commands to make compiler produce verbose output that lists | |
18101 | # what "hidden" libraries, object files and flags are used when | |
18102 | # linking a shared library. | |
18103 | # | |
18104 | # There doesn't appear to be a way to prevent this compiler from | |
18105 | # explicitly linking system object files so we need to strip them | |
18106 | # from the output so that they don't get included in the library | |
18107 | # dependencies. | |
18108 | 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 $list' | |
18109 | ;; | |
18110 | *) | |
18111 | if test "$GXX" = yes; then | |
18112 | if test $with_gnu_ld = no; then | |
18113 | case $host_os in | |
18114 | hpux9*) | |
18115 | 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' | |
18116 | ;; | |
18117 | *) | |
18118 | if test "$host_cpu" = ia64; then | |
18119 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | |
18120 | else | |
18121 | 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' | |
18122 | fi | |
18123 | ;; | |
18124 | esac | |
18125 | fi | |
18126 | else | |
18127 | # FIXME: insert proper C++ library support | |
18128 | ld_shlibs_CXX=no | |
18129 | fi | |
18130 | ;; | |
18131 | esac | |
18132 | ;; | |
18133 | irix5* | irix6*) | |
18134 | case $cc_basename in | |
18135 | CC) | |
18136 | # SGI C++ | |
18137 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' | |
18138 | ||
18139 | # Archives containing C++ object files must be created using | |
18140 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
18141 | # necessary to make sure instantiated templates are included | |
18142 | # in the archive. | |
18143 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
18144 | ;; | |
18145 | *) | |
18146 | if test "$GXX" = yes; then | |
18147 | if test "$with_gnu_ld" = no; then | |
18148 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' | |
18149 | else | |
18150 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib' | |
18151 | fi | |
18152 | fi | |
18153 | link_all_deplibs_CXX=yes | |
18154 | ;; | |
18155 | esac | |
18156 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
18157 | hardcode_libdir_separator_CXX=: | |
18158 | ;; | |
18159 | linux*) | |
18160 | case $cc_basename in | |
18161 | KCC) | |
18162 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
18163 | ||
18164 | # KCC will only create a shared library if the output file | |
18165 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
18166 | # to its proper name (with version) after linking. | |
18167 | archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
18168 | archive_expsym_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' | |
18169 | ||
18170 | # Commands to make compiler produce verbose output that lists | |
18171 | # what "hidden" libraries, object files and flags are used when | |
18172 | # linking a shared library. | |
18173 | # | |
18174 | # There doesn't appear to be a way to prevent this compiler from | |
18175 | # explicitly linking system object files so we need to strip them | |
18176 | # from the output so that they don't get included in the library | |
18177 | # dependencies. | |
18178 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest.so 2>&1 | egrep "ld"`; rm -f libconftest.so; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
18179 | ||
18180 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | |
18181 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
18182 | ||
18183 | # Archives containing C++ object files must be created using | |
18184 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
18185 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
18186 | ;; | |
18187 | cxx) | |
18188 | # Compaq C++ | |
18189 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18190 | 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' | |
18191 | ||
18192 | runpath_var=LD_RUN_PATH | |
18193 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
18194 | hardcode_libdir_separator_CXX=: | |
18195 | ||
18196 | # Commands to make compiler produce verbose output that lists | |
18197 | # what "hidden" libraries, object files and flags are used when | |
18198 | # linking a shared library. | |
18199 | # | |
18200 | # There doesn't appear to be a way to prevent this compiler from | |
18201 | # explicitly linking system object files so we need to strip them | |
18202 | # from the output so that they don't get included in the library | |
18203 | # dependencies. | |
18204 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | sed "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 $list' | |
18205 | ;; | |
18206 | esac | |
18207 | ;; | |
18208 | lynxos*) | |
18209 | # FIXME: insert proper C++ library support | |
18210 | ld_shlibs_CXX=no | |
18211 | ;; | |
18212 | m88k*) | |
18213 | # FIXME: insert proper C++ library support | |
18214 | ld_shlibs_CXX=no | |
18215 | ;; | |
18216 | mvs*) | |
18217 | case $cc_basename in | |
18218 | cxx) | |
18219 | # FIXME: insert proper C++ library support | |
18220 | ld_shlibs_CXX=no | |
18221 | ;; | |
18222 | *) | |
18223 | # FIXME: insert proper C++ library support | |
18224 | ld_shlibs_CXX=no | |
18225 | ;; | |
18226 | esac | |
18227 | ;; | |
18228 | netbsd*) | |
18229 | # NetBSD uses g++ - do we need to do anything? | |
18230 | ;; | |
18231 | osf3*) | |
18232 | case $cc_basename in | |
18233 | KCC) | |
18234 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
18235 | ||
18236 | # KCC will only create a shared library if the output file | |
18237 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
18238 | # to its proper name (with version) after linking. | |
18239 | archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
18240 | ||
18241 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
18242 | hardcode_libdir_separator_CXX=: | |
18243 | ||
18244 | # Archives containing C++ object files must be created using | |
18245 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
18246 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
18247 | ||
18248 | ;; | |
18249 | RCC) | |
18250 | # Rational C++ 2.4.1 | |
18251 | # FIXME: insert proper C++ library support | |
18252 | ld_shlibs_CXX=no | |
18253 | ;; | |
18254 | cxx) | |
18255 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
18256 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' | |
18257 | ||
18258 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
18259 | hardcode_libdir_separator_CXX=: | |
18260 | ||
18261 | # Commands to make compiler produce verbose output that lists | |
18262 | # what "hidden" libraries, object files and flags are used when | |
18263 | # linking a shared library. | |
18264 | # | |
18265 | # There doesn't appear to be a way to prevent this compiler from | |
18266 | # explicitly linking system object files so we need to strip them | |
18267 | # from the output so that they don't get included in the library | |
18268 | # dependencies. | |
18269 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | sed "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 $list' | |
18270 | ;; | |
18271 | *) | |
18272 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
18273 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
18274 | 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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' | |
18275 | ||
18276 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
18277 | hardcode_libdir_separator_CXX=: | |
18278 | ||
18279 | # Commands to make compiler produce verbose output that lists | |
18280 | # what "hidden" libraries, object files and flags are used when | |
18281 | # linking a shared library. | |
18282 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' | |
18283 | ||
18284 | else | |
18285 | # FIXME: insert proper C++ library support | |
18286 | ld_shlibs_CXX=no | |
18287 | fi | |
18288 | ;; | |
18289 | esac | |
18290 | ;; | |
18291 | osf4* | osf5*) | |
18292 | case $cc_basename in | |
18293 | KCC) | |
18294 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
18295 | ||
18296 | # KCC will only create a shared library if the output file | |
18297 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
18298 | # to its proper name (with version) after linking. | |
18299 | archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
18300 | ||
18301 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
18302 | hardcode_libdir_separator_CXX=: | |
18303 | ||
18304 | # Archives containing C++ object files must be created using | |
18305 | # the KAI C++ compiler. | |
18306 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | |
18307 | ;; | |
18308 | RCC) | |
18309 | # Rational C++ 2.4.1 | |
18310 | # FIXME: insert proper C++ library support | |
18311 | ld_shlibs_CXX=no | |
18312 | ;; | |
18313 | cxx) | |
18314 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
18315 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' | |
18316 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~ | |
18317 | echo "-hidden">> $lib.exp~ | |
18318 | $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 -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ | |
18319 | $rm $lib.exp' | |
18320 | ||
18321 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
18322 | hardcode_libdir_separator_CXX=: | |
18323 | ||
18324 | # Commands to make compiler produce verbose output that lists | |
18325 | # what "hidden" libraries, object files and flags are used when | |
18326 | # linking a shared library. | |
18327 | # | |
18328 | # There doesn't appear to be a way to prevent this compiler from | |
18329 | # explicitly linking system object files so we need to strip them | |
18330 | # from the output so that they don't get included in the library | |
18331 | # dependencies. | |
18332 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | sed "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 $list' | |
18333 | ;; | |
18334 | *) | |
18335 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
18336 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
18337 | 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` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' | |
18338 | ||
18339 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
18340 | hardcode_libdir_separator_CXX=: | |
18341 | ||
18342 | # Commands to make compiler produce verbose output that lists | |
18343 | # what "hidden" libraries, object files and flags are used when | |
18344 | # linking a shared library. | |
18345 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' | |
18346 | ||
18347 | else | |
18348 | # FIXME: insert proper C++ library support | |
18349 | ld_shlibs_CXX=no | |
18350 | fi | |
18351 | ;; | |
18352 | esac | |
18353 | ;; | |
18354 | psos*) | |
18355 | # FIXME: insert proper C++ library support | |
18356 | ld_shlibs_CXX=no | |
18357 | ;; | |
18358 | sco*) | |
18359 | archive_cmds_need_lc_CXX=no | |
18360 | case $cc_basename in | |
18361 | CC) | |
18362 | # FIXME: insert proper C++ library support | |
18363 | ld_shlibs_CXX=no | |
18364 | ;; | |
18365 | *) | |
18366 | # FIXME: insert proper C++ library support | |
18367 | ld_shlibs_CXX=no | |
18368 | ;; | |
18369 | esac | |
18370 | ;; | |
18371 | sunos4*) | |
18372 | case $cc_basename in | |
18373 | CC) | |
18374 | # Sun C++ 4.x | |
18375 | # FIXME: insert proper C++ library support | |
18376 | ld_shlibs_CXX=no | |
18377 | ;; | |
18378 | lcc) | |
18379 | # Lucid | |
18380 | # FIXME: insert proper C++ library support | |
18381 | ld_shlibs_CXX=no | |
18382 | ;; | |
18383 | *) | |
18384 | # FIXME: insert proper C++ library support | |
18385 | ld_shlibs_CXX=no | |
18386 | ;; | |
18387 | esac | |
18388 | ;; | |
18389 | solaris*) | |
18390 | case $cc_basename in | |
18391 | CC) | |
18392 | # Sun C++ 4.2, 5.x and Centerline C++ | |
18393 | no_undefined_flag_CXX=' -zdefs' | |
18394 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
18395 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
18396 | $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
18397 | ||
18398 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
18399 | hardcode_shlibpath_var_CXX=no | |
18400 | case $host_os in | |
18401 | solaris2.0-5 | solaris2.0-5.*) ;; | |
18402 | *) | |
18403 | # The C++ compiler is used as linker so we must use $wl | |
18404 | # flag to pass the commands to the underlying system | |
18405 | # linker. | |
18406 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
18407 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
18408 | ;; | |
18409 | esac | |
18410 | link_all_deplibs_CXX=yes | |
18411 | ||
18412 | # Commands to make compiler produce verbose output that lists | |
18413 | # what "hidden" libraries, object files and flags are used when | |
18414 | # linking a shared library. | |
18415 | # | |
18416 | # There doesn't appear to be a way to prevent this compiler from | |
18417 | # explicitly linking system object files so we need to strip them | |
18418 | # from the output so that they don't get included in the library | |
18419 | # dependencies. | |
18420 | output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep "\-R|\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
18421 | ||
18422 | # Archives containing C++ object files must be created using | |
18423 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
18424 | # necessary to make sure instantiated templates are included | |
18425 | # in the archive. | |
18426 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
18427 | ;; | |
18428 | gcx) | |
18429 | # Green Hills C++ Compiler | |
18430 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
18431 | ||
18432 | # The C++ compiler must be used to create the archive. | |
18433 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
18434 | ;; | |
18435 | *) | |
18436 | # GNU C++ compiler with Solaris linker | |
18437 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
18438 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
18439 | if $CC --version | egrep -v '^2\.7' > /dev/null; then | |
18440 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib' | |
18441 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
18442 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp' | |
18443 | ||
18444 | # Commands to make compiler produce verbose output that lists | |
18445 | # what "hidden" libraries, object files and flags are used when | |
18446 | # linking a shared library. | |
18447 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\"" | |
18448 | else | |
18449 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
18450 | # platform. | |
18451 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib' | |
18452 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
18453 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp' | |
18454 | ||
18455 | # Commands to make compiler produce verbose output that lists | |
18456 | # what "hidden" libraries, object files and flags are used when | |
18457 | # linking a shared library. | |
18458 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\"" | |
18459 | fi | |
18460 | ||
18461 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
18462 | fi | |
18463 | ;; | |
18464 | esac | |
18465 | ;; | |
18466 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
18467 | archive_cmds_need_lc_CXX=no | |
18468 | ;; | |
18469 | tandem*) | |
18470 | case $cc_basename in | |
18471 | NCC) | |
18472 | # NonStop-UX NCC 3.20 | |
18473 | # FIXME: insert proper C++ library support | |
18474 | ld_shlibs_CXX=no | |
18475 | ;; | |
18476 | *) | |
18477 | # FIXME: insert proper C++ library support | |
18478 | ld_shlibs_CXX=no | |
18479 | ;; | |
18480 | esac | |
18481 | ;; | |
18482 | vxworks*) | |
18483 | # FIXME: insert proper C++ library support | |
18484 | ld_shlibs_CXX=no | |
18485 | ;; | |
18486 | *) | |
18487 | # FIXME: insert proper C++ library support | |
18488 | ld_shlibs_CXX=no | |
18489 | ;; | |
18490 | esac | |
e61fbf76 | 18491 | echo "$as_me:18491: result: $ld_shlibs_CXX" >&5 |
50850385 TJ |
18492 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
18493 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
18494 | ||
18495 | # Figure out "hidden" C++ library dependencies from verbose | |
18496 | # compiler output whening linking a shared library. | |
18497 | cat > conftest.$ac_ext <<EOF | |
18498 | class Foo | |
18499 | { | |
18500 | public: | |
18501 | Foo (void) { a = 0; } | |
18502 | private: | |
18503 | int a; | |
18504 | }; | |
18505 | EOF | |
18506 | ||
e61fbf76 | 18507 | if { (eval echo "$as_me:18507: \"$ac_compile\"") >&5 |
50850385 TJ |
18508 | (eval $ac_compile) 2>&5 |
18509 | ac_status=$? | |
e61fbf76 | 18510 | echo "$as_me:18510: \$? = $ac_status" >&5 |
50850385 TJ |
18511 | (exit $ac_status); }; then |
18512 | # Parse the compiler output and extract the necessary | |
18513 | # objects, libraries and library flags. | |
18514 | ||
18515 | # Sentinel used to keep track of whether or not we are before | |
18516 | # the conftest object file. | |
18517 | pre_test_object_deps_done=no | |
18518 | ||
18519 | # The `*' in the case matches for architectures that use `case' in | |
18520 | # $output_verbose_cmd can trigger glob expansion during the loop | |
18521 | # eval without this substitution. | |
18522 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" | |
18523 | ||
18524 | for p in `eval $output_verbose_link_cmd`; do | |
18525 | case $p in | |
18526 | ||
18527 | -L* | -R* | -l*) | |
18528 | # Some compilers place space between "-{L,R}" and the path. | |
18529 | # Remove the space. | |
18530 | if test $p = "-L" \ | |
18531 | || test $p = "-R"; then | |
18532 | prev=$p | |
18533 | continue | |
18534 | else | |
18535 | prev= | |
18536 | fi | |
18537 | ||
18538 | if test "$pre_test_object_deps_done" = no; then | |
18539 | case $p in | |
18540 | -L* | -R*) | |
18541 | # Internal compiler library paths should come after those | |
18542 | # provided the user. The postdeps already come after the | |
18543 | # user supplied libs so there is no need to process them. | |
18544 | if test -z "$compiler_lib_search_path_CXX"; then | |
18545 | compiler_lib_search_path_CXX="${prev}${p}" | |
18546 | else | |
18547 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
18548 | fi | |
18549 | ;; | |
18550 | # The "-l" case would never come before the object being | |
18551 | # linked, so don't bother handling this case. | |
18552 | esac | |
18553 | else | |
18554 | if test -z "$postdeps_CXX"; then | |
18555 | postdeps_CXX="${prev}${p}" | |
18556 | else | |
18557 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
18558 | fi | |
18559 | fi | |
18560 | ;; | |
18561 | ||
18562 | *.$objext|*.$libext) | |
18563 | # This assumes that the test object file only shows up | |
18564 | # once in the compiler output. | |
18565 | if test "$p" = "conftest.$objext"; then | |
18566 | pre_test_object_deps_done=yes | |
18567 | continue | |
18568 | fi | |
18569 | ||
18570 | if test "$pre_test_object_deps_done" = no; then | |
18571 | if test -z "$predep_objects_CXX"; then | |
18572 | predep_objects_CXX="$p" | |
18573 | else | |
18574 | predep_objects_CXX="$predep_objects_CXX $p" | |
18575 | fi | |
18576 | else | |
18577 | if test -z "$postdep_objects_CXX"; then | |
18578 | postdep_objects_CXX="$p" | |
18579 | else | |
18580 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
18581 | fi | |
18582 | fi | |
18583 | ;; | |
18584 | ||
18585 | *) ;; # Ignore the rest. | |
18586 | ||
18587 | esac | |
18588 | done | |
18589 | ||
18590 | # Clean up. | |
18591 | rm -f a.out | |
18592 | else | |
18593 | echo "libtool.m4: error: problem compiling C++ test program" | |
18594 | fi | |
18595 | ||
18596 | $rm -f confest.$objext | |
18597 | ||
18598 | case " $postdeps_CXX " in | |
18599 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
18600 | *) archive_cmds_need_lc_CXX=yes ;; | |
18601 | esac | |
18602 | ||
18603 | GCC_CXX="$GXX" | |
18604 | LD_CXX="$LD" | |
18605 | ||
18606 | lt_prog_compiler_wl_CXX= | |
18607 | lt_prog_compiler_pic_CXX= | |
18608 | lt_prog_compiler_static_CXX= | |
18609 | ||
e61fbf76 | 18610 | echo "$as_me:18610: checking for $compiler option to produce PIC" >&5 |
50850385 TJ |
18611 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
18612 | ||
18613 | # C++ specific cases for pic, static, wl, etc. | |
18614 | if test "$GXX" = yes; then | |
18615 | lt_prog_compiler_wl_CXX='-Wl,' | |
18616 | lt_prog_compiler_static_CXX='-static' | |
18617 | ||
18618 | case $host_os in | |
18619 | aix*) | |
18620 | # All AIX code is PIC. | |
18621 | if test "$host_cpu" = ia64; then | |
18622 | # AIX 5 now supports IA64 processor | |
18623 | lt_prog_compiler_static_CXX='-Bstatic' | |
18624 | fi | |
18625 | ;; | |
18626 | amigaos*) | |
18627 | # FIXME: we need at least 68020 code to build shared libraries, but | |
18628 | # adding the `-m68020' flag to GCC prevents building anything better, | |
18629 | # like `-m68040'. | |
18630 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
18631 | ;; | |
18632 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
18633 | # PIC is the default for these OSes. | |
18634 | ;; | |
18635 | cygwin* | mingw* | os2*) | |
18636 | # This hack is so that the source file can tell whether it is being | |
18637 | # built for inclusion in a dll (and should export symbols for example). | |
18638 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
18639 | ;; | |
18640 | darwin* | rhapsody*) | |
18641 | # PIC is the default on this platform | |
18642 | # Common symbols not allowed in MH_DYLIB files | |
18643 | lt_prog_compiler_pic_CXX='-fno-common' | |
18644 | ;; | |
18645 | *djgpp*) | |
18646 | # DJGPP does not support shared libraries at all | |
18647 | lt_prog_compiler_pic_CXX= | |
18648 | ;; | |
18649 | sysv4*MP*) | |
18650 | if test -d /usr/nec; then | |
18651 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
18652 | fi | |
18653 | ;; | |
18654 | hpux*) | |
18655 | # PIC is the default for IA64 HP-UX, but not for PA HP-UX. | |
18656 | if test "$host_cpu" != ia64; then | |
18657 | lt_prog_compiler_pic_CXX='-fPIC' | |
18658 | fi | |
18659 | ;; | |
18660 | *) | |
18661 | lt_prog_compiler_pic_CXX='-fPIC' | |
18662 | ;; | |
18663 | esac | |
18664 | else | |
18665 | case $host_os in | |
18666 | aix4* | aix5*) | |
18667 | # All AIX code is PIC. | |
18668 | if test "$host_cpu" = ia64; then | |
18669 | # AIX 5 now supports IA64 processor | |
18670 | lt_prog_compiler_static_CXX='-Bstatic' | |
18671 | else | |
18672 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
18673 | fi | |
18674 | ;; | |
18675 | chorus*) | |
18676 | case $cc_basename in | |
18677 | cxch68) | |
18678 | # Green Hills C++ Compiler | |
18679 | # _LT_AC_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" | |
18680 | ;; | |
18681 | esac | |
18682 | ;; | |
18683 | dgux*) | |
18684 | case $cc_basename in | |
18685 | ec++) | |
18686 | lt_prog_compiler_pic_CXX='-KPIC' | |
18687 | ;; | |
18688 | ghcx) | |
18689 | # Green Hills C++ Compiler | |
18690 | lt_prog_compiler_pic_CXX='-pic' | |
18691 | ;; | |
18692 | *) | |
18693 | ;; | |
18694 | esac | |
18695 | ;; | |
18696 | freebsd*) | |
18697 | # FreeBSD uses GNU C++ | |
18698 | ;; | |
18699 | hpux9* | hpux10* | hpux11*) | |
18700 | case $cc_basename in | |
18701 | CC) | |
18702 | lt_prog_compiler_wl_CXX='-Wl,' | |
18703 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | |
18704 | if test "$host_cpu" != ia64; then | |
18705 | lt_prog_compiler_pic_CXX='+Z' | |
18706 | fi | |
18707 | ;; | |
18708 | aCC) | |
18709 | lt_prog_compiler_wl_CXX='-Wl,' | |
18710 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | |
18711 | if test "$host_cpu" != ia64; then | |
18712 | lt_prog_compiler_pic_CXX='+Z' | |
18713 | fi | |
18714 | ;; | |
18715 | *) | |
18716 | ;; | |
18717 | esac | |
18718 | ;; | |
18719 | irix5* | irix6* | nonstopux*) | |
18720 | case $cc_basename in | |
18721 | CC) | |
18722 | lt_prog_compiler_wl_CXX='-Wl,' | |
18723 | lt_prog_compiler_static_CXX='-non_shared' | |
18724 | # CC pic flag -KPIC is the default. | |
18725 | ;; | |
18726 | *) | |
18727 | ;; | |
18728 | esac | |
18729 | ;; | |
18730 | linux*) | |
18731 | case $cc_basename in | |
18732 | KCC) | |
18733 | # KAI C++ Compiler | |
18734 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
18735 | lt_prog_compiler_pic_CXX='-fPIC' | |
18736 | ;; | |
18737 | cxx) | |
18738 | # Compaq C++ | |
18739 | # Make sure the PIC flag is empty. It appears that all Alpha | |
18740 | # Linux and Compaq Tru64 Unix objects are PIC. | |
18741 | lt_prog_compiler_pic_CXX= | |
18742 | lt_prog_compiler_static_CXX='-non_shared' | |
18743 | ;; | |
18744 | *) | |
18745 | ;; | |
18746 | esac | |
18747 | ;; | |
18748 | lynxos*) | |
18749 | ;; | |
18750 | m88k*) | |
18751 | ;; | |
18752 | mvs*) | |
18753 | case $cc_basename in | |
18754 | cxx) | |
18755 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
18756 | ;; | |
18757 | *) | |
18758 | ;; | |
18759 | esac | |
18760 | ;; | |
18761 | netbsd*) | |
18762 | ;; | |
18763 | osf3* | osf4* | osf5*) | |
18764 | case $cc_basename in | |
18765 | KCC) | |
18766 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
18767 | ;; | |
18768 | RCC) | |
18769 | # Rational C++ 2.4.1 | |
18770 | lt_prog_compiler_pic_CXX='-pic' | |
18771 | ;; | |
18772 | cxx) | |
18773 | # Digital/Compaq C++ | |
18774 | lt_prog_compiler_wl_CXX='-Wl,' | |
18775 | # Make sure the PIC flag is empty. It appears that all Alpha | |
18776 | # Linux and Compaq Tru64 Unix objects are PIC. | |
18777 | lt_prog_compiler_pic_CXX= | |
18778 | lt_prog_compiler_static_CXX='-non_shared' | |
18779 | ;; | |
18780 | *) | |
18781 | ;; | |
18782 | esac | |
18783 | ;; | |
18784 | psos*) | |
18785 | ;; | |
18786 | sco*) | |
18787 | case $cc_basename in | |
18788 | CC) | |
18789 | lt_prog_compiler_pic_CXX='-fPIC' | |
18790 | ;; | |
18791 | *) | |
18792 | ;; | |
18793 | esac | |
18794 | ;; | |
18795 | solaris*) | |
18796 | case $cc_basename in | |
18797 | CC) | |
18798 | # Sun C++ 4.2, 5.x and Centerline C++ | |
18799 | lt_prog_compiler_pic_CXX='-KPIC' | |
18800 | lt_prog_compiler_static_CXX='-Bstatic' | |
18801 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
18802 | ;; | |
18803 | gcx) | |
18804 | # Green Hills C++ Compiler | |
18805 | lt_prog_compiler_pic_CXX='-PIC' | |
18806 | ;; | |
18807 | *) | |
18808 | ;; | |
18809 | esac | |
18810 | ;; | |
18811 | sunos4*) | |
18812 | case $cc_basename in | |
18813 | CC) | |
18814 | # Sun C++ 4.x | |
18815 | lt_prog_compiler_pic_CXX='-pic' | |
18816 | lt_prog_compiler_static_CXX='-Bstatic' | |
18817 | ;; | |
18818 | lcc) | |
18819 | # Lucid | |
18820 | lt_prog_compiler_pic_CXX='-pic' | |
18821 | ;; | |
18822 | *) | |
18823 | ;; | |
18824 | esac | |
18825 | ;; | |
18826 | tandem*) | |
18827 | case $cc_basename in | |
18828 | NCC) | |
18829 | # NonStop-UX NCC 3.20 | |
18830 | lt_prog_compiler_pic_CXX='-KPIC' | |
18831 | ;; | |
18832 | *) | |
18833 | ;; | |
18834 | esac | |
18835 | ;; | |
18836 | unixware*) | |
18837 | ;; | |
18838 | vxworks*) | |
18839 | ;; | |
18840 | *) | |
18841 | lt_prog_compiler_can_build_shared_CXX=no | |
18842 | ;; | |
18843 | esac | |
18844 | fi | |
18845 | ||
e61fbf76 | 18846 | echo "$as_me:18846: result: $lt_prog_compiler_pic_CXX" >&5 |
50850385 TJ |
18847 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
18848 | ||
18849 | # | |
18850 | # Check to make sure the PIC flag actually works. | |
18851 | # | |
18852 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
e61fbf76 | 18853 | echo "$as_me:18853: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
50850385 TJ |
18854 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
18855 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | |
18856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18857 | else | |
18858 | lt_prog_compiler_pic_works_CXX=no | |
18859 | ac_outfile=conftest.$ac_objext | |
18860 | save_CFLAGS="$CFLAGS" | |
18861 | CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC" | |
18862 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
18863 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
18864 | # The compiler can only warn and ignore the option if not recognized | |
18865 | # So say no if there are warnings | |
18866 | if test -s conftest.err; then | |
18867 | # Append any errors to the config.log. | |
18868 | cat conftest.err 1>&5 | |
18869 | else | |
18870 | lt_prog_compiler_pic_works_CXX=yes | |
18871 | fi | |
18872 | fi | |
18873 | $rm conftest* | |
18874 | CFLAGS="$save_CFLAGS" | |
18875 | ||
18876 | fi | |
e61fbf76 | 18877 | echo "$as_me:18877: result: $lt_prog_compiler_pic_works_CXX" >&5 |
50850385 TJ |
18878 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
18879 | ||
18880 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | |
18881 | case $lt_prog_compiler_pic_CXX in | |
18882 | "" | " "*) ;; | |
18883 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
18884 | esac | |
18885 | else | |
18886 | lt_prog_compiler_pic_CXX= | |
18887 | lt_prog_compiler_can_build_shared_CXX=no | |
18888 | fi | |
18889 | ||
18890 | fi | |
18891 | case "$host_os" in | |
18892 | # For platforms which do not support PIC, -DPIC is meaningless: | |
18893 | *djgpp*) | |
18894 | lt_prog_compiler_pic_CXX= | |
18895 | ;; | |
18896 | *) | |
18897 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
18898 | ;; | |
18899 | esac | |
18900 | ||
e61fbf76 | 18901 | echo "$as_me:18901: checking if $compiler supports -c -o file.$ac_objext" >&5 |
50850385 TJ |
18902 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
18903 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | |
18904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18905 | else | |
18906 | lt_cv_prog_compiler_c_o_CXX=no | |
18907 | $rm -r conftest 2>/dev/null | |
18908 | mkdir conftest | |
18909 | cd conftest | |
18910 | mkdir out | |
18911 | save_CXXFLAGS="$CXXFLAGS" | |
18912 | CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext" | |
18913 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
18914 | ||
18915 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | |
18916 | # that will create temporary files in the current directory regardless of | |
18917 | # the output directory. Thus, making CWD read-only will cause this test | |
18918 | # to fail, enabling locking or at least warning the user not to do parallel | |
18919 | # builds. | |
18920 | chmod -w . | |
18921 | ||
18922 | if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext | |
18923 | then | |
18924 | # The compiler can only warn and ignore the option if not recognized | |
18925 | # So say no if there are warnings | |
18926 | if test -s out/conftest.err; then | |
18927 | # Append any errors to the config.log. | |
18928 | cat out/conftest.err 1>&5 | |
18929 | else | |
18930 | lt_cv_prog_compiler_c_o_CXX=yes | |
18931 | fi | |
18932 | fi | |
18933 | CXXFLAGS="$save_CXXFLAGS" | |
18934 | chmod u+w . | |
18935 | $rm conftest* out/* | |
18936 | rmdir out | |
18937 | cd .. | |
18938 | rmdir conftest | |
18939 | $rm conftest* | |
18940 | ||
18941 | fi | |
e61fbf76 | 18942 | echo "$as_me:18942: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
50850385 TJ |
18943 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
18944 | ||
50850385 TJ |
18945 | hard_links="nottested" |
18946 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
18947 | # do not overwrite the value of need_locks provided by the user | |
e61fbf76 | 18948 | echo "$as_me:18948: checking if we can lock with hard links" >&5 |
50850385 TJ |
18949 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
18950 | hard_links=yes | |
18951 | $rm conftest* | |
18952 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
18953 | touch conftest.a | |
18954 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
18955 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
e61fbf76 | 18956 | echo "$as_me:18956: result: $hard_links" >&5 |
50850385 TJ |
18957 | echo "${ECHO_T}$hard_links" >&6 |
18958 | if test "$hard_links" = no; then | |
e61fbf76 | 18959 | { echo "$as_me:18959: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
50850385 TJ |
18960 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
18961 | need_locks=warn | |
18962 | fi | |
18963 | else | |
18964 | need_locks=no | |
18965 | fi | |
18966 | ||
e61fbf76 | 18967 | echo "$as_me:18967: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
50850385 TJ |
18968 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
18969 | ||
18970 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
18971 | case $host_os in | |
18972 | aix4* | aix5*) | |
18973 | # If we're using GNU nm, then we don't want the "-C" option. | |
18974 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
18975 | if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then | |
18976 | 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' | |
18977 | else | |
18978 | 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' | |
18979 | fi | |
18980 | ;; | |
18981 | cygwin* | mingw* | pw32*) | |
18982 | export_symbols_cmds_CXX="$ltdll_cmds" | |
18983 | ;; | |
18984 | *) | |
18985 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
18986 | ;; | |
18987 | esac | |
18988 | ||
e61fbf76 | 18989 | echo "$as_me:18989: result: $ld_shlibs_CXX" >&5 |
50850385 TJ |
18990 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
18991 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
18992 | ||
18993 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
18994 | if test "$GCC" = yes; then | |
18995 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
18996 | fi | |
18997 | ||
18998 | # | |
18999 | # Do we need to explicitly link libc? | |
19000 | # | |
19001 | archive_cmds_need_lc_CXX=yes | |
19002 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
19003 | case $archive_cmds_CXX in | |
19004 | *'~'*) | |
19005 | # FIXME: we may have to deal with multi-command sequences. | |
19006 | ;; | |
19007 | '$CC '*) | |
19008 | # Test whether the compiler implicitly links with -lc since on some | |
19009 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
19010 | # to ld, don't add -lc before -lgcc. | |
e61fbf76 | 19011 | echo "$as_me:19011: checking whether -lc should be explicitly linked in" >&5 |
50850385 TJ |
19012 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
19013 | $rm conftest* | |
19014 | echo 'static int dummy;' > conftest.$ac_ext | |
19015 | ||
e61fbf76 | 19016 | if { (eval echo "$as_me:19016: \"$ac_compile\"") >&5 |
50850385 TJ |
19017 | (eval $ac_compile) 2>&5 |
19018 | ac_status=$? | |
e61fbf76 | 19019 | echo "$as_me:19019: \$? = $ac_status" >&5 |
50850385 TJ |
19020 | (exit $ac_status); } 2>conftest.err; then |
19021 | soname=conftest | |
19022 | lib=conftest | |
19023 | libobjs=conftest.$ac_objext | |
19024 | deplibs= | |
19025 | wl=$lt_prog_compiler_wl_CXX | |
19026 | compiler_flags=-v | |
19027 | linker_flags=-v | |
19028 | verstring= | |
19029 | output_objdir=. | |
19030 | libname=conftest | |
19031 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
19032 | allow_undefined_flag_CXX= | |
e61fbf76 | 19033 | if { (eval echo "$as_me:19033: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
50850385 TJ |
19034 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
19035 | ac_status=$? | |
e61fbf76 | 19036 | echo "$as_me:19036: \$? = $ac_status" >&5 |
50850385 TJ |
19037 | (exit $ac_status); } |
19038 | then | |
19039 | archive_cmds_need_lc_CXX=no | |
19040 | else | |
19041 | archive_cmds_need_lc_CXX=yes | |
19042 | fi | |
19043 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
19044 | else | |
19045 | cat conftest.err 1>&5 | |
19046 | fi | |
19047 | $rm conftest* | |
e61fbf76 | 19048 | echo "$as_me:19048: result: $archive_cmds_need_lc_CXX" >&5 |
50850385 TJ |
19049 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
19050 | ;; | |
19051 | esac | |
19052 | fi | |
19053 | ||
e61fbf76 | 19054 | echo "$as_me:19054: checking how to hardcode library paths into programs" >&5 |
50850385 TJ |
19055 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
19056 | hardcode_action_CXX= | |
19057 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ | |
19058 | test -n "$runpath_var CXX"; then | |
19059 | ||
19060 | # We can hardcode non-existant directories. | |
19061 | if test "$hardcode_direct_CXX" != no && | |
19062 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
19063 | # have to relink, otherwise we might link with an installed library | |
19064 | # when we should be linking with a yet-to-be-installed one | |
19065 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
19066 | test "$hardcode_minus_L_CXX" != no; then | |
19067 | # Linking always hardcodes the temporary library directory. | |
19068 | hardcode_action_CXX=relink | |
19069 | else | |
19070 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
19071 | hardcode_action_CXX=immediate | |
19072 | fi | |
19073 | else | |
19074 | # We cannot hardcode anything, or else we can only hardcode existing | |
19075 | # directories. | |
19076 | hardcode_action_CXX=unsupported | |
19077 | fi | |
e61fbf76 | 19078 | echo "$as_me:19078: result: $hardcode_action_CXX" >&5 |
50850385 TJ |
19079 | echo "${ECHO_T}$hardcode_action_CXX" >&6 |
19080 | ||
19081 | if test "$hardcode_action_CXX" = relink; then | |
19082 | # Fast installation is not supported | |
19083 | enable_fast_install=no | |
19084 | elif test "$shlibpath_overrides_runpath" = yes || | |
19085 | test "$enable_shared" = no; then | |
19086 | # Fast installation is not necessary | |
19087 | enable_fast_install=needless | |
19088 | fi | |
19089 | ||
19090 | striplib= | |
19091 | old_striplib= | |
e61fbf76 | 19092 | echo "$as_me:19092: checking whether stripping libraries is possible" >&5 |
50850385 TJ |
19093 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
19094 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
19095 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
19096 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
e61fbf76 | 19097 | echo "$as_me:19097: result: yes" >&5 |
50850385 TJ |
19098 | echo "${ECHO_T}yes" >&6 |
19099 | else | |
e61fbf76 | 19100 | echo "$as_me:19100: result: no" >&5 |
50850385 TJ |
19101 | echo "${ECHO_T}no" >&6 |
19102 | fi | |
19103 | ||
e61fbf76 | 19104 | echo "$as_me:19104: checking dynamic linker characteristics" >&5 |
50850385 TJ |
19105 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
19106 | library_names_spec= | |
19107 | libname_spec='lib$name' | |
19108 | soname_spec= | |
19109 | postinstall_cmds= | |
19110 | postuninstall_cmds= | |
19111 | finish_cmds= | |
19112 | finish_eval= | |
19113 | shlibpath_var= | |
19114 | shlibpath_overrides_runpath=unknown | |
19115 | version_type=none | |
19116 | dynamic_linker="$host_os ld.so" | |
19117 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
19118 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
19119 | need_lib_prefix=unknown | |
19120 | hardcode_into_libs=no | |
19121 | ||
19122 | # when you set need_version to no, make sure it does not cause -set_version | |
19123 | # flags to be left without arguments | |
19124 | need_version=unknown | |
19125 | ||
19126 | case $host_os in | |
19127 | aix3*) | |
19128 | version_type=linux | |
19129 | library_names_spec='${libname}${release}.so$versuffix $libname.a' | |
19130 | shlibpath_var=LIBPATH | |
19131 | ||
19132 | # AIX 3 has no versioning support, so we append a major version to the name. | |
19133 | soname_spec='${libname}${release}.so$major' | |
19134 | ;; | |
19135 | ||
19136 | aix4* | aix5*) | |
19137 | version_type=linux | |
19138 | if test "$host_cpu" = ia64; then | |
19139 | # AIX 5 supports IA64 | |
19140 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' | |
19141 | shlibpath_var=LD_LIBRARY_PATH | |
19142 | else | |
19143 | # With GCC up to 2.95.x, collect2 would create an import file | |
19144 | # for dependence libraries. The import file would start with | |
19145 | # the line `#! .'. This would cause the generated library to | |
19146 | # depend on `.', always an invalid library. This was fixed in | |
19147 | # development snapshots of GCC prior to 3.0. | |
19148 | case $host_os in | |
19149 | aix4 | aix4.[01] | aix4.[01].*) | |
19150 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
19151 | echo ' yes ' | |
19152 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
19153 | : | |
19154 | else | |
19155 | can_build_shared=no | |
19156 | fi | |
19157 | ;; | |
19158 | esac | |
19159 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
19160 | # soname into executable. Probably we can add versioning support to | |
19161 | # collect2, so additional links can be useful in future. | |
19162 | if test "$aix_use_runtimelinking" = yes; then | |
19163 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
19164 | # instead of lib<name>.a to let people know that these are not | |
19165 | # typical AIX shared libraries. | |
19166 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
19167 | else | |
19168 | # We preserve .a as extension for shared libraries through AIX4.2 | |
19169 | # and later when we are not doing run time linking. | |
19170 | library_names_spec='${libname}${release}.a $libname.a' | |
19171 | soname_spec='${libname}${release}.so$major' | |
19172 | fi | |
19173 | shlibpath_var=LIBPATH | |
19174 | fi | |
19175 | ;; | |
19176 | ||
19177 | amigaos*) | |
19178 | library_names_spec='$libname.ixlibrary $libname.a' | |
19179 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
19180 | 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' | |
19181 | ;; | |
19182 | ||
19183 | beos*) | |
19184 | library_names_spec='${libname}.so' | |
19185 | dynamic_linker="$host_os ld.so" | |
19186 | shlibpath_var=LIBRARY_PATH | |
19187 | ;; | |
19188 | ||
19189 | bsdi4*) | |
19190 | version_type=linux | |
19191 | need_version=no | |
19192 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
19193 | soname_spec='${libname}${release}.so$major' | |
19194 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
19195 | shlibpath_var=LD_LIBRARY_PATH | |
19196 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
19197 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
19198 | # the default ld.so.conf also contains /usr/contrib/lib and | |
19199 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
19200 | # libtool to hard-code these into programs | |
19201 | ;; | |
19202 | ||
19203 | cygwin* | mingw* | pw32*) | |
19204 | version_type=windows | |
19205 | need_version=no | |
19206 | need_lib_prefix=no | |
19207 | case $GCC,$host_os in | |
19208 | yes,cygwin*) | |
19209 | library_names_spec='$libname.dll.a' | |
19210 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" | |
19211 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
19212 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ | |
19213 | dldir=$destdir/`dirname \$dlpath`~ | |
19214 | test -d \$dldir || mkdir -p \$dldir~ | |
19215 | $install_prog .libs/$dlname \$dldir/$dlname' | |
19216 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
19217 | dlpath=$dir/\$dldll~ | |
19218 | $rm \$dlpath' | |
19219 | ;; | |
19220 | yes,mingw*) | |
19221 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
19222 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"` | |
19223 | if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then | |
19224 | # It is most probably a Windows format PATH printed by | |
19225 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
19226 | # path with ; separators, and with drive letters. We can handle the | |
19227 | # drive letters (cygwin fileutils understands them), so leave them, | |
19228 | # especially as we might pass files found there to a mingw objdump, | |
19229 | # which wouldn't understand a cygwinified path. Ahh. | |
19230 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` | |
19231 | else | |
19232 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` | |
19233 | fi | |
19234 | ;; | |
19235 | yes,pw32*) | |
19236 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' | |
19237 | ;; | |
19238 | *) | |
19239 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' | |
19240 | ;; | |
19241 | esac | |
19242 | dynamic_linker='Win32 ld.exe' | |
19243 | # FIXME: first we should search . and the directory the executable is in | |
19244 | shlibpath_var=PATH | |
19245 | ;; | |
19246 | ||
19247 | darwin* | rhapsody*) | |
19248 | dynamic_linker="$host_os dyld" | |
19249 | version_type=darwin | |
19250 | need_lib_prefix=no | |
19251 | need_version=no | |
19252 | # FIXME: Relying on posixy $() will cause problems for | |
19253 | # cross-compilation, but unfortunately the echo tests do not | |
19254 | # yet detect zsh echo's removal of \ escapes. | |
19255 | library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' | |
19256 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' | |
19257 | shlibpath_overrides_runpath=yes | |
19258 | shlibpath_var=DYLD_LIBRARY_PATH | |
19259 | ;; | |
19260 | ||
19261 | dgux*) | |
19262 | version_type=linux | |
19263 | need_lib_prefix=no | |
19264 | need_version=no | |
19265 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
19266 | soname_spec='${libname}${release}.so$major' | |
19267 | shlibpath_var=LD_LIBRARY_PATH | |
19268 | ;; | |
19269 | ||
19270 | freebsd1*) | |
19271 | dynamic_linker=no | |
19272 | ;; | |
19273 | ||
19274 | freebsd*) | |
19275 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
19276 | version_type=freebsd-$objformat | |
19277 | case $version_type in | |
19278 | freebsd-elf*) | |
19279 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
19280 | need_version=no | |
19281 | need_lib_prefix=no | |
19282 | ;; | |
19283 | freebsd-*) | |
19284 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' | |
19285 | need_version=yes | |
19286 | ;; | |
19287 | esac | |
19288 | shlibpath_var=LD_LIBRARY_PATH | |
19289 | case $host_os in | |
19290 | freebsd2*) | |
19291 | shlibpath_overrides_runpath=yes | |
19292 | ;; | |
19293 | freebsd3.01* | freebsdelf3.01*) | |
19294 | shlibpath_overrides_runpath=yes | |
19295 | hardcode_into_libs=yes | |
19296 | ;; | |
19297 | *) # from 3.2 on | |
19298 | shlibpath_overrides_runpath=no | |
19299 | hardcode_into_libs=yes | |
19300 | ;; | |
19301 | esac | |
19302 | ;; | |
19303 | ||
19304 | gnu*) | |
19305 | version_type=linux | |
19306 | need_lib_prefix=no | |
19307 | need_version=no | |
19308 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' | |
19309 | soname_spec='${libname}${release}.so$major' | |
19310 | shlibpath_var=LD_LIBRARY_PATH | |
19311 | hardcode_into_libs=yes | |
19312 | ;; | |
19313 | ||
19314 | hpux9* | hpux10* | hpux11*) | |
19315 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
19316 | # link against other versions. | |
19317 | version_type=sunos | |
19318 | need_lib_prefix=no | |
19319 | need_version=no | |
19320 | if test "$host_cpu" = ia64; then | |
19321 | hardcode_into_libs=yes | |
19322 | dynamic_linker="$host_os dld.so" | |
19323 | shlibpath_var=LD_LIBRARY_PATH | |
19324 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
19325 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
19326 | soname_spec='${libname}${release}.so$major' | |
19327 | if test "X$HPUX_IA64_MODE" = X32; then | |
19328 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
19329 | else | |
19330 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
19331 | fi | |
19332 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
19333 | else | |
19334 | dynamic_linker="$host_os dld.sl" | |
19335 | shlibpath_var=SHLIB_PATH | |
19336 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
19337 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' | |
19338 | soname_spec='${libname}${release}.sl$major' | |
19339 | fi | |
19340 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
19341 | postinstall_cmds='chmod 555 $lib' | |
19342 | ;; | |
19343 | ||
19344 | irix5* | irix6* | nonstopux*) | |
19345 | case $host_os in | |
19346 | nonstopux*) version_type=nonstopux ;; | |
19347 | *) version_type=irix ;; | |
19348 | esac | |
19349 | need_lib_prefix=no | |
19350 | need_version=no | |
19351 | soname_spec='${libname}${release}.so$major' | |
19352 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' | |
19353 | case $host_os in | |
19354 | irix5* | nonstopux*) | |
19355 | libsuff= shlibsuff= | |
19356 | ;; | |
19357 | *) | |
19358 | case $LD in # libtool.m4 will add one of these switches to LD | |
19359 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; | |
19360 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; | |
19361 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
19362 | *) libsuff= shlibsuff= libmagic=never-match;; | |
19363 | esac | |
19364 | ;; | |
19365 | esac | |
19366 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
19367 | shlibpath_overrides_runpath=no | |
19368 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
19369 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
19370 | ;; | |
19371 | ||
19372 | # No shared lib support for Linux oldld, aout, or coff. | |
19373 | linux*oldld* | linux*aout* | linux*coff*) | |
19374 | dynamic_linker=no | |
19375 | ;; | |
19376 | ||
19377 | # This must be Linux ELF. | |
19378 | linux*) | |
19379 | version_type=linux | |
19380 | need_lib_prefix=no | |
19381 | need_version=no | |
19382 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
19383 | soname_spec='${libname}${release}.so$major' | |
19384 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
19385 | libsuff= | |
19386 | if test "x$LINUX_64_MODE" = x64; then | |
19387 | # Some platforms are per default 64-bit, so there's no /lib64 | |
19388 | if test -d /lib64; then | |
19389 | libsuff=64 | |
19390 | fi | |
19391 | fi | |
19392 | shlibpath_var=LD_LIBRARY_PATH | |
19393 | shlibpath_overrides_runpath=no | |
19394 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" | |
19395 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
19396 | # This implies no fast_install, which is unacceptable. | |
19397 | # Some rework will be needed to allow for fast_install | |
19398 | # before this can be enabled. | |
19399 | hardcode_into_libs=yes | |
19400 | ||
19401 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
19402 | # powerpc, because MkLinux only supported shared libraries with the | |
19403 | # GNU dynamic linker. Since this was broken with cross compilers, | |
19404 | # most powerpc-linux boxes support dynamic linking these days and | |
19405 | # people can always --disable-shared, the test was removed, and we | |
19406 | # assume the GNU/Linux dynamic linker is in use. | |
19407 | dynamic_linker='GNU/Linux ld.so' | |
19408 | ;; | |
19409 | ||
19410 | netbsd*) | |
19411 | version_type=sunos | |
19412 | need_lib_prefix=no | |
19413 | need_version=no | |
19414 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
19415 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
19416 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
19417 | dynamic_linker='NetBSD (a.out) ld.so' | |
19418 | else | |
19419 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' | |
19420 | soname_spec='${libname}${release}.so$major' | |
19421 | dynamic_linker='NetBSD ld.elf_so' | |
19422 | fi | |
19423 | shlibpath_var=LD_LIBRARY_PATH | |
19424 | shlibpath_overrides_runpath=yes | |
19425 | hardcode_into_libs=yes | |
19426 | ;; | |
19427 | ||
19428 | newsos6) | |
19429 | version_type=linux | |
19430 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
19431 | shlibpath_var=LD_LIBRARY_PATH | |
19432 | shlibpath_overrides_runpath=yes | |
19433 | ;; | |
19434 | ||
19435 | nto-qnx) | |
19436 | version_type=linux | |
19437 | need_lib_prefix=no | |
19438 | need_version=no | |
19439 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
19440 | soname_spec='${libname}${release}.so$major' | |
19441 | shlibpath_var=LD_LIBRARY_PATH | |
19442 | shlibpath_overrides_runpath=yes | |
19443 | ;; | |
19444 | ||
19445 | openbsd*) | |
19446 | version_type=sunos | |
19447 | need_lib_prefix=no | |
19448 | need_version=no | |
19449 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
19450 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
19451 | shlibpath_var=LD_LIBRARY_PATH | |
19452 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
19453 | case $host_os in | |
19454 | openbsd2.[89] | openbsd2.[89].*) | |
19455 | shlibpath_overrides_runpath=no | |
19456 | ;; | |
19457 | *) | |
19458 | shlibpath_overrides_runpath=yes | |
19459 | ;; | |
19460 | esac | |
19461 | else | |
19462 | shlibpath_overrides_runpath=yes | |
19463 | fi | |
19464 | ;; | |
19465 | ||
19466 | os2*) | |
19467 | libname_spec='$name' | |
19468 | need_lib_prefix=no | |
19469 | library_names_spec='$libname.dll $libname.a' | |
19470 | dynamic_linker='OS/2 ld.exe' | |
19471 | shlibpath_var=LIBPATH | |
19472 | ;; | |
19473 | ||
19474 | osf3* | osf4* | osf5*) | |
19475 | version_type=osf | |
19476 | need_lib_prefix=no | |
19477 | need_version=no | |
19478 | soname_spec='${libname}${release}.so' | |
19479 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
19480 | shlibpath_var=LD_LIBRARY_PATH | |
19481 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
19482 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
19483 | ;; | |
19484 | ||
19485 | sco3.2v5*) | |
19486 | version_type=osf | |
19487 | soname_spec='${libname}${release}.so$major' | |
19488 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
19489 | shlibpath_var=LD_LIBRARY_PATH | |
19490 | ;; | |
19491 | ||
19492 | solaris*) | |
19493 | version_type=linux | |
19494 | need_lib_prefix=no | |
19495 | need_version=no | |
19496 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
19497 | soname_spec='${libname}${release}.so$major' | |
19498 | shlibpath_var=LD_LIBRARY_PATH | |
19499 | shlibpath_overrides_runpath=yes | |
19500 | hardcode_into_libs=yes | |
19501 | # ldd complains unless libraries are executable | |
19502 | postinstall_cmds='chmod +x $lib' | |
19503 | ;; | |
19504 | ||
19505 | sunos4*) | |
19506 | version_type=sunos | |
19507 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
19508 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
19509 | shlibpath_var=LD_LIBRARY_PATH | |
19510 | shlibpath_overrides_runpath=yes | |
19511 | if test "$with_gnu_ld" = yes; then | |
19512 | need_lib_prefix=no | |
19513 | fi | |
19514 | need_version=yes | |
19515 | ;; | |
19516 | ||
19517 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
19518 | version_type=linux | |
19519 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
19520 | soname_spec='${libname}${release}.so$major' | |
19521 | shlibpath_var=LD_LIBRARY_PATH | |
19522 | case $host_vendor in | |
19523 | sni) | |
19524 | shlibpath_overrides_runpath=no | |
19525 | ;; | |
19526 | motorola) | |
19527 | need_lib_prefix=no | |
19528 | need_version=no | |
19529 | shlibpath_overrides_runpath=no | |
19530 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
19531 | ;; | |
19532 | esac | |
19533 | ;; | |
19534 | ||
19535 | sysv4*MP*) | |
19536 | if test -d /usr/nec ;then | |
19537 | version_type=linux | |
19538 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' | |
19539 | soname_spec='$libname.so.$major' | |
19540 | shlibpath_var=LD_LIBRARY_PATH | |
19541 | fi | |
19542 | ;; | |
19543 | ||
19544 | uts4*) | |
19545 | version_type=linux | |
19546 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
19547 | soname_spec='${libname}${release}.so$major' | |
19548 | shlibpath_var=LD_LIBRARY_PATH | |
19549 | ;; | |
19550 | ||
19551 | *) | |
19552 | dynamic_linker=no | |
19553 | ;; | |
19554 | esac | |
e61fbf76 | 19555 | echo "$as_me:19555: result: $dynamic_linker" >&5 |
50850385 TJ |
19556 | echo "${ECHO_T}$dynamic_linker" >&6 |
19557 | test "$dynamic_linker" = no && can_build_shared=no | |
19558 | ||
19559 | if test "x$enable_dlopen" != xyes; then | |
19560 | enable_dlopen=unknown | |
19561 | enable_dlopen_self=unknown | |
19562 | enable_dlopen_self_static=unknown | |
19563 | else | |
19564 | lt_cv_dlopen=no | |
19565 | lt_cv_dlopen_libs= | |
19566 | ||
19567 | case $host_os in | |
19568 | beos*) | |
19569 | lt_cv_dlopen="load_add_on" | |
19570 | lt_cv_dlopen_libs= | |
19571 | lt_cv_dlopen_self=yes | |
19572 | ;; | |
19573 | ||
19574 | cygwin* | mingw* | pw32*) | |
19575 | lt_cv_dlopen="LoadLibrary" | |
19576 | lt_cv_dlopen_libs= | |
19577 | ;; | |
19578 | ||
19579 | *) | |
e61fbf76 | 19580 | echo "$as_me:19580: checking for shl_load" >&5 |
50850385 TJ |
19581 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
19582 | if test "${ac_cv_func_shl_load+set}" = set; then | |
19583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19584 | else | |
19585 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 19586 | #line 19586 "configure" |
50850385 TJ |
19587 | #include "confdefs.h" |
19588 | /* System header to define __stub macros and hopefully few prototypes, | |
19589 | which can conflict with char shl_load (); below. */ | |
19590 | #include <assert.h> | |
19591 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19592 | #ifdef __cplusplus | |
19593 | extern "C" | |
19594 | #endif | |
19595 | /* We use char because int might match the return type of a gcc2 | |
19596 | builtin and then its argument prototype would still apply. */ | |
19597 | char shl_load (); | |
19598 | char (*f) (); | |
19599 | ||
50850385 TJ |
19600 | int |
19601 | main () | |
19602 | { | |
19603 | /* The GNU C library defines this for functions which it implements | |
19604 | to always fail with ENOSYS. Some functions are actually named | |
19605 | something starting with __ and the normal name is an alias. */ | |
19606 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
19607 | choke me | |
19608 | #else | |
19609 | f = shl_load; | |
19610 | #endif | |
19611 | ||
19612 | ; | |
19613 | return 0; | |
19614 | } | |
19615 | _ACEOF | |
19616 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 19617 | if { (eval echo "$as_me:19617: \"$ac_link\"") >&5 |
50850385 TJ |
19618 | (eval $ac_link) 2>&5 |
19619 | ac_status=$? | |
e61fbf76 | 19620 | echo "$as_me:19620: \$? = $ac_status" >&5 |
50850385 TJ |
19621 | (exit $ac_status); } && |
19622 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 19623 | { (eval echo "$as_me:19623: \"$ac_try\"") >&5 |
50850385 TJ |
19624 | (eval $ac_try) 2>&5 |
19625 | ac_status=$? | |
e61fbf76 | 19626 | echo "$as_me:19626: \$? = $ac_status" >&5 |
50850385 TJ |
19627 | (exit $ac_status); }; }; then |
19628 | ac_cv_func_shl_load=yes | |
19629 | else | |
19630 | echo "$as_me: failed program was:" >&5 | |
19631 | cat conftest.$ac_ext >&5 | |
19632 | ac_cv_func_shl_load=no | |
19633 | fi | |
19634 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19635 | fi | |
e61fbf76 | 19636 | echo "$as_me:19636: result: $ac_cv_func_shl_load" >&5 |
50850385 TJ |
19637 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
19638 | if test $ac_cv_func_shl_load = yes; then | |
19639 | lt_cv_dlopen="shl_load" | |
19640 | else | |
e61fbf76 | 19641 | echo "$as_me:19641: checking for shl_load in -ldld" >&5 |
50850385 TJ |
19642 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
19643 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
19644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19645 | else | |
19646 | ac_check_lib_save_LIBS=$LIBS | |
19647 | LIBS="-ldld $LIBS" | |
19648 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 19649 | #line 19649 "configure" |
50850385 TJ |
19650 | #include "confdefs.h" |
19651 | ||
19652 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19653 | #ifdef __cplusplus | |
19654 | extern "C" | |
19655 | #endif | |
19656 | /* We use char because int might match the return type of a gcc2 | |
19657 | builtin and then its argument prototype would still apply. */ | |
19658 | char shl_load (); | |
50850385 TJ |
19659 | int |
19660 | main () | |
19661 | { | |
19662 | shl_load (); | |
19663 | ; | |
19664 | return 0; | |
19665 | } | |
19666 | _ACEOF | |
19667 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 19668 | if { (eval echo "$as_me:19668: \"$ac_link\"") >&5 |
50850385 TJ |
19669 | (eval $ac_link) 2>&5 |
19670 | ac_status=$? | |
e61fbf76 | 19671 | echo "$as_me:19671: \$? = $ac_status" >&5 |
50850385 TJ |
19672 | (exit $ac_status); } && |
19673 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 19674 | { (eval echo "$as_me:19674: \"$ac_try\"") >&5 |
50850385 TJ |
19675 | (eval $ac_try) 2>&5 |
19676 | ac_status=$? | |
e61fbf76 | 19677 | echo "$as_me:19677: \$? = $ac_status" >&5 |
50850385 TJ |
19678 | (exit $ac_status); }; }; then |
19679 | ac_cv_lib_dld_shl_load=yes | |
19680 | else | |
19681 | echo "$as_me: failed program was:" >&5 | |
19682 | cat conftest.$ac_ext >&5 | |
19683 | ac_cv_lib_dld_shl_load=no | |
19684 | fi | |
19685 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19686 | LIBS=$ac_check_lib_save_LIBS | |
19687 | fi | |
e61fbf76 | 19688 | echo "$as_me:19688: result: $ac_cv_lib_dld_shl_load" >&5 |
50850385 TJ |
19689 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
19690 | if test $ac_cv_lib_dld_shl_load = yes; then | |
19691 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
19692 | else | |
e61fbf76 | 19693 | echo "$as_me:19693: checking for dlopen" >&5 |
50850385 TJ |
19694 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
19695 | if test "${ac_cv_func_dlopen+set}" = set; then | |
19696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19697 | else | |
19698 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 19699 | #line 19699 "configure" |
50850385 TJ |
19700 | #include "confdefs.h" |
19701 | /* System header to define __stub macros and hopefully few prototypes, | |
19702 | which can conflict with char dlopen (); below. */ | |
19703 | #include <assert.h> | |
19704 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19705 | #ifdef __cplusplus | |
19706 | extern "C" | |
19707 | #endif | |
19708 | /* We use char because int might match the return type of a gcc2 | |
19709 | builtin and then its argument prototype would still apply. */ | |
19710 | char dlopen (); | |
19711 | char (*f) (); | |
19712 | ||
50850385 TJ |
19713 | int |
19714 | main () | |
19715 | { | |
19716 | /* The GNU C library defines this for functions which it implements | |
19717 | to always fail with ENOSYS. Some functions are actually named | |
19718 | something starting with __ and the normal name is an alias. */ | |
19719 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
19720 | choke me | |
19721 | #else | |
19722 | f = dlopen; | |
19723 | #endif | |
19724 | ||
19725 | ; | |
19726 | return 0; | |
19727 | } | |
19728 | _ACEOF | |
19729 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 19730 | if { (eval echo "$as_me:19730: \"$ac_link\"") >&5 |
50850385 TJ |
19731 | (eval $ac_link) 2>&5 |
19732 | ac_status=$? | |
e61fbf76 | 19733 | echo "$as_me:19733: \$? = $ac_status" >&5 |
50850385 TJ |
19734 | (exit $ac_status); } && |
19735 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 19736 | { (eval echo "$as_me:19736: \"$ac_try\"") >&5 |
50850385 TJ |
19737 | (eval $ac_try) 2>&5 |
19738 | ac_status=$? | |
e61fbf76 | 19739 | echo "$as_me:19739: \$? = $ac_status" >&5 |
50850385 TJ |
19740 | (exit $ac_status); }; }; then |
19741 | ac_cv_func_dlopen=yes | |
19742 | else | |
19743 | echo "$as_me: failed program was:" >&5 | |
19744 | cat conftest.$ac_ext >&5 | |
19745 | ac_cv_func_dlopen=no | |
19746 | fi | |
19747 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19748 | fi | |
e61fbf76 | 19749 | echo "$as_me:19749: result: $ac_cv_func_dlopen" >&5 |
50850385 TJ |
19750 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
19751 | if test $ac_cv_func_dlopen = yes; then | |
19752 | lt_cv_dlopen="dlopen" | |
19753 | else | |
e61fbf76 | 19754 | echo "$as_me:19754: checking for dlopen in -ldl" >&5 |
50850385 TJ |
19755 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
19756 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
19757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19758 | else | |
19759 | ac_check_lib_save_LIBS=$LIBS | |
19760 | LIBS="-ldl $LIBS" | |
19761 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 19762 | #line 19762 "configure" |
50850385 TJ |
19763 | #include "confdefs.h" |
19764 | ||
19765 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19766 | #ifdef __cplusplus | |
19767 | extern "C" | |
19768 | #endif | |
19769 | /* We use char because int might match the return type of a gcc2 | |
19770 | builtin and then its argument prototype would still apply. */ | |
19771 | char dlopen (); | |
50850385 TJ |
19772 | int |
19773 | main () | |
19774 | { | |
19775 | dlopen (); | |
19776 | ; | |
19777 | return 0; | |
19778 | } | |
19779 | _ACEOF | |
19780 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 19781 | if { (eval echo "$as_me:19781: \"$ac_link\"") >&5 |
50850385 TJ |
19782 | (eval $ac_link) 2>&5 |
19783 | ac_status=$? | |
e61fbf76 | 19784 | echo "$as_me:19784: \$? = $ac_status" >&5 |
50850385 TJ |
19785 | (exit $ac_status); } && |
19786 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 19787 | { (eval echo "$as_me:19787: \"$ac_try\"") >&5 |
50850385 TJ |
19788 | (eval $ac_try) 2>&5 |
19789 | ac_status=$? | |
e61fbf76 | 19790 | echo "$as_me:19790: \$? = $ac_status" >&5 |
50850385 TJ |
19791 | (exit $ac_status); }; }; then |
19792 | ac_cv_lib_dl_dlopen=yes | |
19793 | else | |
19794 | echo "$as_me: failed program was:" >&5 | |
19795 | cat conftest.$ac_ext >&5 | |
19796 | ac_cv_lib_dl_dlopen=no | |
19797 | fi | |
19798 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19799 | LIBS=$ac_check_lib_save_LIBS | |
19800 | fi | |
e61fbf76 | 19801 | echo "$as_me:19801: result: $ac_cv_lib_dl_dlopen" >&5 |
50850385 TJ |
19802 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
19803 | if test $ac_cv_lib_dl_dlopen = yes; then | |
19804 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
19805 | else | |
e61fbf76 | 19806 | echo "$as_me:19806: checking for dlopen in -lsvld" >&5 |
50850385 TJ |
19807 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
19808 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
19809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19810 | else | |
19811 | ac_check_lib_save_LIBS=$LIBS | |
19812 | LIBS="-lsvld $LIBS" | |
19813 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 19814 | #line 19814 "configure" |
50850385 TJ |
19815 | #include "confdefs.h" |
19816 | ||
19817 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19818 | #ifdef __cplusplus | |
19819 | extern "C" | |
19820 | #endif | |
19821 | /* We use char because int might match the return type of a gcc2 | |
19822 | builtin and then its argument prototype would still apply. */ | |
19823 | char dlopen (); | |
50850385 TJ |
19824 | int |
19825 | main () | |
19826 | { | |
19827 | dlopen (); | |
19828 | ; | |
19829 | return 0; | |
19830 | } | |
19831 | _ACEOF | |
19832 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 19833 | if { (eval echo "$as_me:19833: \"$ac_link\"") >&5 |
50850385 TJ |
19834 | (eval $ac_link) 2>&5 |
19835 | ac_status=$? | |
e61fbf76 | 19836 | echo "$as_me:19836: \$? = $ac_status" >&5 |
50850385 TJ |
19837 | (exit $ac_status); } && |
19838 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 19839 | { (eval echo "$as_me:19839: \"$ac_try\"") >&5 |
50850385 TJ |
19840 | (eval $ac_try) 2>&5 |
19841 | ac_status=$? | |
e61fbf76 | 19842 | echo "$as_me:19842: \$? = $ac_status" >&5 |
50850385 TJ |
19843 | (exit $ac_status); }; }; then |
19844 | ac_cv_lib_svld_dlopen=yes | |
19845 | else | |
19846 | echo "$as_me: failed program was:" >&5 | |
19847 | cat conftest.$ac_ext >&5 | |
19848 | ac_cv_lib_svld_dlopen=no | |
19849 | fi | |
19850 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19851 | LIBS=$ac_check_lib_save_LIBS | |
19852 | fi | |
e61fbf76 | 19853 | echo "$as_me:19853: result: $ac_cv_lib_svld_dlopen" >&5 |
50850385 TJ |
19854 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
19855 | if test $ac_cv_lib_svld_dlopen = yes; then | |
19856 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
19857 | else | |
e61fbf76 | 19858 | echo "$as_me:19858: checking for dld_link in -ldld" >&5 |
50850385 TJ |
19859 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
19860 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
19861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19862 | else | |
19863 | ac_check_lib_save_LIBS=$LIBS | |
19864 | LIBS="-ldld $LIBS" | |
19865 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 19866 | #line 19866 "configure" |
50850385 TJ |
19867 | #include "confdefs.h" |
19868 | ||
19869 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19870 | #ifdef __cplusplus | |
19871 | extern "C" | |
19872 | #endif | |
19873 | /* We use char because int might match the return type of a gcc2 | |
19874 | builtin and then its argument prototype would still apply. */ | |
19875 | char dld_link (); | |
50850385 TJ |
19876 | int |
19877 | main () | |
19878 | { | |
19879 | dld_link (); | |
19880 | ; | |
19881 | return 0; | |
19882 | } | |
19883 | _ACEOF | |
19884 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 19885 | if { (eval echo "$as_me:19885: \"$ac_link\"") >&5 |
50850385 TJ |
19886 | (eval $ac_link) 2>&5 |
19887 | ac_status=$? | |
e61fbf76 | 19888 | echo "$as_me:19888: \$? = $ac_status" >&5 |
50850385 TJ |
19889 | (exit $ac_status); } && |
19890 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 19891 | { (eval echo "$as_me:19891: \"$ac_try\"") >&5 |
50850385 TJ |
19892 | (eval $ac_try) 2>&5 |
19893 | ac_status=$? | |
e61fbf76 | 19894 | echo "$as_me:19894: \$? = $ac_status" >&5 |
50850385 TJ |
19895 | (exit $ac_status); }; }; then |
19896 | ac_cv_lib_dld_dld_link=yes | |
19897 | else | |
19898 | echo "$as_me: failed program was:" >&5 | |
19899 | cat conftest.$ac_ext >&5 | |
19900 | ac_cv_lib_dld_dld_link=no | |
19901 | fi | |
19902 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19903 | LIBS=$ac_check_lib_save_LIBS | |
19904 | fi | |
e61fbf76 | 19905 | echo "$as_me:19905: result: $ac_cv_lib_dld_dld_link" >&5 |
50850385 TJ |
19906 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
19907 | if test $ac_cv_lib_dld_dld_link = yes; then | |
19908 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
19909 | fi | |
19910 | ||
50850385 TJ |
19911 | fi |
19912 | ||
50850385 TJ |
19913 | fi |
19914 | ||
50850385 TJ |
19915 | fi |
19916 | ||
50850385 TJ |
19917 | fi |
19918 | ||
50850385 TJ |
19919 | fi |
19920 | ||
19921 | ;; | |
19922 | esac | |
19923 | ||
19924 | if test "x$lt_cv_dlopen" != xno; then | |
19925 | enable_dlopen=yes | |
19926 | else | |
19927 | enable_dlopen=no | |
19928 | fi | |
19929 | ||
19930 | case $lt_cv_dlopen in | |
19931 | dlopen) | |
19932 | save_CPPFLAGS="$CPPFLAGS" | |
19933 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
19934 | ||
19935 | save_LDFLAGS="$LDFLAGS" | |
19936 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
19937 | ||
19938 | save_LIBS="$LIBS" | |
19939 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
19940 | ||
e61fbf76 | 19941 | echo "$as_me:19941: checking whether a program can dlopen itself" >&5 |
50850385 TJ |
19942 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
19943 | if test "${lt_cv_dlopen_self+set}" = set; then | |
19944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19945 | else | |
19946 | if test "$cross_compiling" = yes; then : | |
19947 | lt_cv_dlopen_self=cross | |
19948 | else | |
19949 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
19950 | lt_status=$lt_dlunknown | |
19951 | cat > conftest.$ac_ext <<EOF | |
e61fbf76 | 19952 | #line 19952 "configure" |
50850385 TJ |
19953 | #include "confdefs.h" |
19954 | ||
19955 | #if HAVE_DLFCN_H | |
19956 | #include <dlfcn.h> | |
19957 | #endif | |
19958 | ||
19959 | #include <stdio.h> | |
19960 | ||
19961 | #ifdef RTLD_GLOBAL | |
19962 | # define LT_DLGLOBAL RTLD_GLOBAL | |
19963 | #else | |
19964 | # ifdef DL_GLOBAL | |
19965 | # define LT_DLGLOBAL DL_GLOBAL | |
19966 | # else | |
19967 | # define LT_DLGLOBAL 0 | |
19968 | # endif | |
19969 | #endif | |
19970 | ||
19971 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
19972 | find out it does not work in some platform. */ | |
19973 | #ifndef LT_DLLAZY_OR_NOW | |
19974 | # ifdef RTLD_LAZY | |
19975 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
19976 | # else | |
19977 | # ifdef DL_LAZY | |
19978 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
19979 | # else | |
19980 | # ifdef RTLD_NOW | |
19981 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
19982 | # else | |
19983 | # ifdef DL_NOW | |
19984 | # define LT_DLLAZY_OR_NOW DL_NOW | |
19985 | # else | |
19986 | # define LT_DLLAZY_OR_NOW 0 | |
19987 | # endif | |
19988 | # endif | |
19989 | # endif | |
19990 | # endif | |
19991 | #endif | |
19992 | ||
19993 | #ifdef __cplusplus | |
19994 | extern "C" void exit (int); | |
19995 | #endif | |
19996 | ||
19997 | void fnord() { int i=42;} | |
19998 | int main () | |
19999 | { | |
20000 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
20001 | int status = $lt_dlunknown; | |
20002 | ||
20003 | if (self) | |
20004 | { | |
20005 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
20006 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
20007 | /* dlclose (self); */ | |
20008 | } | |
20009 | ||
20010 | exit (status); | |
20011 | } | |
20012 | EOF | |
e61fbf76 | 20013 | if { (eval echo "$as_me:20013: \"$ac_link\"") >&5 |
50850385 TJ |
20014 | (eval $ac_link) 2>&5 |
20015 | ac_status=$? | |
e61fbf76 | 20016 | echo "$as_me:20016: \$? = $ac_status" >&5 |
50850385 TJ |
20017 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
20018 | (./conftest; exit; ) 2>/dev/null | |
20019 | lt_status=$? | |
20020 | case x$lt_status in | |
20021 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
20022 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
20023 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
20024 | esac | |
20025 | else : | |
20026 | # compilation failed | |
20027 | lt_cv_dlopen_self=no | |
20028 | fi | |
20029 | fi | |
20030 | rm -fr conftest* | |
20031 | ||
50850385 | 20032 | fi |
e61fbf76 | 20033 | echo "$as_me:20033: result: $lt_cv_dlopen_self" >&5 |
50850385 TJ |
20034 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
20035 | ||
20036 | if test "x$lt_cv_dlopen_self" = xyes; then | |
20037 | LDFLAGS="$LDFLAGS $link_static_flag" | |
e61fbf76 | 20038 | echo "$as_me:20038: checking whether a statically linked program can dlopen itself" >&5 |
50850385 TJ |
20039 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
20040 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
20041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20042 | else | |
20043 | if test "$cross_compiling" = yes; then : | |
20044 | lt_cv_dlopen_self_static=cross | |
20045 | else | |
20046 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
20047 | lt_status=$lt_dlunknown | |
20048 | cat > conftest.$ac_ext <<EOF | |
e61fbf76 | 20049 | #line 20049 "configure" |
50850385 TJ |
20050 | #include "confdefs.h" |
20051 | ||
20052 | #if HAVE_DLFCN_H | |
20053 | #include <dlfcn.h> | |
20054 | #endif | |
20055 | ||
20056 | #include <stdio.h> | |
20057 | ||
20058 | #ifdef RTLD_GLOBAL | |
20059 | # define LT_DLGLOBAL RTLD_GLOBAL | |
20060 | #else | |
20061 | # ifdef DL_GLOBAL | |
20062 | # define LT_DLGLOBAL DL_GLOBAL | |
20063 | # else | |
20064 | # define LT_DLGLOBAL 0 | |
20065 | # endif | |
20066 | #endif | |
20067 | ||
20068 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
20069 | find out it does not work in some platform. */ | |
20070 | #ifndef LT_DLLAZY_OR_NOW | |
20071 | # ifdef RTLD_LAZY | |
20072 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
20073 | # else | |
20074 | # ifdef DL_LAZY | |
20075 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
20076 | # else | |
20077 | # ifdef RTLD_NOW | |
20078 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
20079 | # else | |
20080 | # ifdef DL_NOW | |
20081 | # define LT_DLLAZY_OR_NOW DL_NOW | |
20082 | # else | |
20083 | # define LT_DLLAZY_OR_NOW 0 | |
20084 | # endif | |
20085 | # endif | |
20086 | # endif | |
20087 | # endif | |
20088 | #endif | |
20089 | ||
20090 | #ifdef __cplusplus | |
20091 | extern "C" void exit (int); | |
20092 | #endif | |
20093 | ||
20094 | void fnord() { int i=42;} | |
20095 | int main () | |
20096 | { | |
20097 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
20098 | int status = $lt_dlunknown; | |
20099 | ||
20100 | if (self) | |
20101 | { | |
20102 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
20103 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
20104 | /* dlclose (self); */ | |
20105 | } | |
20106 | ||
20107 | exit (status); | |
20108 | } | |
20109 | EOF | |
e61fbf76 | 20110 | if { (eval echo "$as_me:20110: \"$ac_link\"") >&5 |
50850385 TJ |
20111 | (eval $ac_link) 2>&5 |
20112 | ac_status=$? | |
e61fbf76 | 20113 | echo "$as_me:20113: \$? = $ac_status" >&5 |
50850385 TJ |
20114 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
20115 | (./conftest; exit; ) 2>/dev/null | |
20116 | lt_status=$? | |
20117 | case x$lt_status in | |
20118 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
20119 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
20120 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
20121 | esac | |
20122 | else : | |
20123 | # compilation failed | |
20124 | lt_cv_dlopen_self_static=no | |
20125 | fi | |
20126 | fi | |
20127 | rm -fr conftest* | |
20128 | ||
50850385 | 20129 | fi |
e61fbf76 | 20130 | echo "$as_me:20130: result: $lt_cv_dlopen_self_static" >&5 |
50850385 TJ |
20131 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
20132 | fi | |
20133 | ||
20134 | CPPFLAGS="$save_CPPFLAGS" | |
20135 | LDFLAGS="$save_LDFLAGS" | |
20136 | LIBS="$save_LIBS" | |
20137 | ;; | |
20138 | esac | |
20139 | ||
20140 | case $lt_cv_dlopen_self in | |
20141 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
20142 | *) enable_dlopen_self=unknown ;; | |
20143 | esac | |
20144 | ||
20145 | case $lt_cv_dlopen_self_static in | |
20146 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
20147 | *) enable_dlopen_self_static=unknown ;; | |
20148 | esac | |
20149 | fi | |
20150 | ||
50850385 TJ |
20151 | # The else clause should only fire when bootstrapping the |
20152 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
20153 | # with your package, and you will get complaints that there are | |
20154 | # no rules to generate ltmain.sh. | |
20155 | if test -f "$ltmain"; then | |
20156 | # Now quote all the things that may contain metacharacters while being | |
20157 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
20158 | # variables and quote the copies for generation of the libtool script. | |
20159 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \ | |
20160 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
20161 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
20162 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
20163 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
20164 | lt_cv_sys_global_symbol_to_c_name_address \ | |
20165 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
20166 | old_postinstall_cmds old_postuninstall_cmds \ | |
20167 | compiler_CXX \ | |
20168 | CC_CXX \ | |
20169 | LD_CXX \ | |
20170 | lt_prog_compiler_wl_CXX \ | |
20171 | lt_prog_compiler_pic_CXX \ | |
20172 | lt_prog_compiler_static_CXX \ | |
20173 | lt_prog_compiler_no_builtin_flag_CXX \ | |
20174 | export_dynamic_flag_spec_CXX \ | |
20175 | thread_safe_flag_spec_CXX \ | |
20176 | whole_archive_flag_spec_CXX \ | |
20177 | old_archive_cmds_CXX \ | |
20178 | old_archive_from_new_cmds_CXX \ | |
20179 | predep_objects_CXX \ | |
20180 | postdep_objects_CXX \ | |
20181 | predeps_CXX \ | |
20182 | postdeps_CXX \ | |
20183 | compiler_lib_search_path_CXX \ | |
20184 | archive_cmds_CXX \ | |
20185 | archive_expsym_cmds_CXX \ | |
20186 | postinstall_cmds_CXX \ | |
20187 | postuninstall_cmds_CXX \ | |
20188 | old_archive_from_expsyms_cmds_CXX \ | |
20189 | allow_undefined_flag_CXX \ | |
20190 | no_undefined_flag_CXX \ | |
20191 | export_symbols_cmds_CXX \ | |
20192 | hardcode_libdir_flag_spec_CXX \ | |
20193 | hardcode_libdir_separator_CXX \ | |
20194 | lt_cv_prog_compiler_c_o_CXX \ | |
20195 | exclude_expsyms_CXX \ | |
20196 | include_expsyms_CXX; do | |
20197 | ||
20198 | case $var in | |
20199 | old_archive_cmds_CXX | \ | |
20200 | old_archive_from_new_cmds_CXX | \ | |
20201 | archive_cmds_CXX | \ | |
20202 | archive_expsym_cmds_CXX | \ | |
20203 | old_archive_from_expsyms_cmds_CXX | \ | |
20204 | export_symbols_cmds_CXX | \ | |
20205 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
20206 | postinstall_cmds | postuninstall_cmds | \ | |
20207 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
20208 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
20209 | # Double-quote double-evaled strings. | |
20210 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
20211 | ;; | |
20212 | *) | |
20213 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
20214 | ;; | |
20215 | esac | |
20216 | done | |
20217 | ||
20218 | case $lt_echo in | |
20219 | *'\$0 --fallback-echo"') | |
20220 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
20221 | ;; | |
20222 | esac | |
20223 | ||
20224 | cfgfile="$ofile" | |
20225 | ||
20226 | cat <<__EOF__ >> "$cfgfile" | |
20227 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
20228 | ||
20229 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
20230 | ||
20231 | # Shell to use when invoking shell scripts. | |
20232 | SHELL=$lt_SHELL | |
20233 | ||
20234 | # Whether or not to build shared libraries. | |
20235 | build_libtool_libs=$enable_shared | |
20236 | ||
20237 | # Whether or not to build static libraries. | |
20238 | build_old_libs=$enable_static | |
20239 | ||
20240 | # Whether or not to add -lc for building shared libraries. | |
20241 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
20242 | ||
20243 | # Whether or not to optimize for fast installation. | |
20244 | fast_install=$enable_fast_install | |
20245 | ||
20246 | # The host system. | |
20247 | host_alias=$host_alias | |
20248 | host=$host | |
20249 | ||
20250 | # An echo program that does not interpret backslashes. | |
20251 | echo=$lt_echo | |
20252 | ||
20253 | # The archiver. | |
20254 | AR=$lt_AR | |
20255 | AR_FLAGS=$lt_AR_FLAGS | |
20256 | ||
20257 | # A C compiler. | |
20258 | LTCC=$lt_LTCC | |
20259 | ||
20260 | # A language-specific compiler. | |
20261 | CC=$lt_compiler_CXX | |
20262 | ||
20263 | # Is the compiler the GNU C compiler? | |
20264 | with_gcc=$GCC_CXX | |
20265 | ||
20266 | # The linker used to build libraries. | |
20267 | LD=$lt_LD_CXX | |
20268 | ||
20269 | # Whether we need hard or soft links. | |
20270 | LN_S=$lt_LN_S | |
20271 | ||
20272 | # A BSD-compatible nm program. | |
20273 | NM=$lt_NM | |
20274 | ||
20275 | # A sed program that does not truncate output. | |
20276 | SED=$lt_SED | |
20277 | ||
20278 | # A symbol stripping program | |
20279 | STRIP=$STRIP | |
20280 | ||
20281 | # Used to examine libraries when file_magic_cmd begins "file" | |
20282 | MAGIC_CMD=$MAGIC_CMD | |
20283 | ||
20284 | # Used on cygwin: DLL creation program. | |
20285 | DLLTOOL="$DLLTOOL" | |
20286 | ||
20287 | # Used on cygwin: object dumper. | |
20288 | OBJDUMP="$OBJDUMP" | |
20289 | ||
20290 | # Used on cygwin: assembler. | |
20291 | AS="$AS" | |
20292 | ||
20293 | # The name of the directory that contains temporary libtool files. | |
20294 | objdir=$objdir | |
20295 | ||
20296 | # How to create reloadable object files. | |
20297 | reload_flag=$lt_reload_flag | |
20298 | reload_cmds=$lt_reload_cmds | |
20299 | ||
20300 | # How to pass a linker flag through the compiler. | |
20301 | wl=$lt_lt_prog_compiler_wl_CXX | |
20302 | ||
20303 | # Object file suffix (normally "o"). | |
20304 | objext="$ac_objext" | |
20305 | ||
20306 | # Old archive suffix (normally "a"). | |
20307 | libext="$libext" | |
20308 | ||
20309 | # Executable file suffix (normally ""). | |
20310 | exeext="$exeext" | |
20311 | ||
20312 | # Additional compiler flags for building library objects. | |
20313 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
20314 | pic_mode=$pic_mode | |
20315 | ||
20316 | # What is the maximum length of a command? | |
20317 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
20318 | ||
20319 | # Does compiler simultaneously support -c and -o options? | |
20320 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
20321 | ||
20322 | # Must we lock files when doing compilation ? | |
20323 | need_locks=$lt_need_locks | |
20324 | ||
20325 | # Do we need the lib prefix for modules? | |
20326 | need_lib_prefix=$need_lib_prefix | |
20327 | ||
20328 | # Do we need a version for libraries? | |
20329 | need_version=$need_version | |
20330 | ||
20331 | # Whether dlopen is supported. | |
20332 | dlopen_support=$enable_dlopen | |
20333 | ||
20334 | # Whether dlopen of programs is supported. | |
20335 | dlopen_self=$enable_dlopen_self | |
20336 | ||
20337 | # Whether dlopen of statically linked programs is supported. | |
20338 | dlopen_self_static=$enable_dlopen_self_static | |
20339 | ||
20340 | # Compiler flag to prevent dynamic linking. | |
20341 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
20342 | ||
20343 | # Compiler flag to turn off builtin functions. | |
20344 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
20345 | ||
20346 | # Compiler flag to allow reflexive dlopens. | |
20347 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
20348 | ||
20349 | # Compiler flag to generate shared objects directly from archives. | |
20350 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
20351 | ||
20352 | # Compiler flag to generate thread-safe objects. | |
20353 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | |
20354 | ||
20355 | # Library versioning type. | |
20356 | version_type=$version_type | |
20357 | ||
20358 | # Format of library name prefix. | |
20359 | libname_spec=$lt_libname_spec | |
20360 | ||
20361 | # List of archive names. First name is the real one, the rest are links. | |
20362 | # The last name is the one that the linker finds with -lNAME. | |
20363 | library_names_spec=$lt_library_names_spec | |
20364 | ||
20365 | # The coded name of the library, if different from the real name. | |
20366 | soname_spec=$lt_soname_spec | |
20367 | ||
20368 | # Commands used to build and install an old-style archive. | |
20369 | RANLIB=$lt_RANLIB | |
20370 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
20371 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
20372 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
20373 | ||
20374 | # Create an old-style archive from a shared archive. | |
20375 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
20376 | ||
20377 | # Create a temporary old-style archive to link instead of a shared archive. | |
20378 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
20379 | ||
20380 | # Commands used to build and install a shared archive. | |
20381 | archive_cmds=$lt_archive_cmds_CXX | |
20382 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
20383 | postinstall_cmds=$lt_postinstall_cmds | |
20384 | postuninstall_cmds=$lt_postuninstall_cmds | |
20385 | ||
20386 | # Commands to strip libraries. | |
20387 | old_striplib=$lt_old_striplib | |
20388 | striplib=$lt_striplib | |
20389 | ||
20390 | # Dependencies to place before the objects being linked to create a | |
20391 | # shared library. | |
20392 | predep_objects=$lt_predep_objects_CXX | |
20393 | ||
20394 | # Dependencies to place after the objects being linked to create a | |
20395 | # shared library. | |
20396 | postdep_objects=$lt_postdep_objects_CXX | |
20397 | ||
20398 | # Dependencies to place before the objects being linked to create a | |
20399 | # shared library. | |
20400 | predeps=$lt_predeps_CXX | |
20401 | ||
20402 | # Dependencies to place after the objects being linked to create a | |
20403 | # shared library. | |
20404 | postdeps=$lt_postdeps_CXX | |
20405 | ||
20406 | # The library search path used internally by the compiler when linking | |
20407 | # a shared library. | |
20408 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
20409 | ||
20410 | # Method to check whether dependent libraries are shared objects. | |
20411 | deplibs_check_method=$lt_deplibs_check_method | |
20412 | ||
20413 | # Command to use when deplibs_check_method == file_magic. | |
20414 | file_magic_cmd=$lt_file_magic_cmd | |
20415 | ||
20416 | # Flag that allows shared libraries with undefined symbols to be built. | |
20417 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
20418 | ||
20419 | # Flag that forces no undefined symbols. | |
20420 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
20421 | ||
20422 | # Commands used to finish a libtool library installation in a directory. | |
20423 | finish_cmds=$lt_finish_cmds | |
20424 | ||
20425 | # Same as above, but a single script fragment to be evaled but not shown. | |
20426 | finish_eval=$lt_finish_eval | |
20427 | ||
20428 | # Take the output of nm and produce a listing of raw symbols and C names. | |
20429 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
20430 | ||
20431 | # Transform the output of nm in a proper C declaration | |
20432 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
20433 | ||
20434 | # Transform the output of nm in a C name address pair | |
20435 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
20436 | ||
20437 | # This is the shared library runtime path variable. | |
20438 | runpath_var=$runpath_var | |
20439 | ||
20440 | # This is the shared library path variable. | |
20441 | shlibpath_var=$shlibpath_var | |
20442 | ||
20443 | # Is shlibpath searched before the hard-coded library search path? | |
20444 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
20445 | ||
20446 | # How to hardcode a shared library path into an executable. | |
20447 | hardcode_action=$hardcode_action_CXX | |
20448 | ||
20449 | # Whether we should hardcode library paths into libraries. | |
20450 | hardcode_into_libs=$hardcode_into_libs | |
20451 | ||
20452 | # Flag to hardcode \$libdir into a binary during linking. | |
20453 | # This must work even if \$libdir does not exist. | |
20454 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
20455 | ||
20456 | # Whether we need a single -rpath flag with a separated argument. | |
20457 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
20458 | ||
20459 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | |
20460 | # resulting binary. | |
20461 | hardcode_direct=$hardcode_direct_CXX | |
20462 | ||
20463 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
20464 | # resulting binary. | |
20465 | hardcode_minus_L=$hardcode_minus_L_CXX | |
20466 | ||
20467 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
20468 | # the resulting binary. | |
20469 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
20470 | ||
20471 | # Variables whose values should be saved in libtool wrapper scripts and | |
20472 | # restored at relink time. | |
20473 | variables_saved_for_relink="$variables_saved_for_relink" | |
20474 | ||
20475 | # Whether libtool must link a program against all its dependency libraries. | |
20476 | link_all_deplibs=$link_all_deplibs_CXX | |
20477 | ||
20478 | # Compile-time system search path for libraries | |
20479 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
20480 | ||
20481 | # Run-time system search path for libraries | |
20482 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
20483 | ||
20484 | # Fix the shell variable \$srcfile for the compiler. | |
20485 | fix_srcfile_path="$fix_srcfile_path_CXX" | |
20486 | ||
20487 | # Set to yes if exported symbols are required. | |
20488 | always_export_symbols=$always_export_symbols_CXX | |
20489 | ||
20490 | # The commands to list exported symbols. | |
20491 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
20492 | ||
20493 | # The commands to extract the exported symbol list from a shared archive. | |
20494 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
20495 | ||
20496 | # Symbols that should not be listed in the preloaded symbols. | |
20497 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
20498 | ||
20499 | # Symbols that must always be exported. | |
20500 | include_expsyms=$lt_include_expsyms_CXX | |
20501 | ||
20502 | # ### END LIBTOOL TAG CONFIG: $tagname | |
20503 | ||
20504 | __EOF__ | |
20505 | ||
50850385 TJ |
20506 | else |
20507 | # If there is no Makefile yet, we rely on a make rule to execute | |
20508 | # `config.status --recheck' to rerun these tests and create the | |
20509 | # libtool script then. | |
20510 | test -f Makefile && make "$ltmain" | |
20511 | fi | |
20512 | ||
50850385 TJ |
20513 | ac_ext=c |
20514 | ac_cpp='$CPP $CPPFLAGS' | |
20515 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20516 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20517 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20518 | ||
20519 | CC="$lt_save_CC" | |
20520 | ||
20521 | ;; | |
20522 | ||
20523 | GCJ) | |
20524 | ||
50850385 TJ |
20525 | # Source file extension for C test sources. |
20526 | ac_ext=java | |
20527 | ||
20528 | # Object file extension for compiled C test sources. | |
20529 | objext=o | |
20530 | objext_GCJ=$objext | |
20531 | ||
20532 | # Code to be used in simple compile tests | |
20533 | lt_simple_compile_test_code="class foo {}" | |
20534 | ||
20535 | # Code to be used in simple link tests | |
20536 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }' | |
20537 | ||
20538 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
20539 | ||
20540 | # If no C compiler was specified, use CC. | |
20541 | LTCC=${LTCC-"$CC"} | |
20542 | ||
20543 | # Allow CC to be a program name with arguments. | |
20544 | set dummy $CC | |
20545 | compiler="$2" | |
20546 | ||
50850385 TJ |
20547 | # Allow CC to be a program name with arguments. |
20548 | lt_save_CC="$CC" | |
20549 | CC=${GCJ-"gcj"} | |
20550 | set dummy $CC | |
20551 | compiler="$2" | |
20552 | compiler_GCJ=$CC | |
20553 | ||
20554 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | |
20555 | archive_cmds_need_lc_GCJ=no | |
20556 | ||
50850385 TJ |
20557 | lt_prog_compiler_no_builtin_flag_GCJ= |
20558 | ||
20559 | if test "$GCC" = yes; then | |
20560 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | |
20561 | ||
e61fbf76 | 20562 | echo "$as_me:20562: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
50850385 TJ |
20563 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
20564 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
20565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20566 | else | |
20567 | lt_cv_prog_compiler_rtti_exceptions=no | |
20568 | ac_outfile=conftest.$ac_objext | |
20569 | save_CFLAGS="$CFLAGS" | |
20570 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" | |
20571 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
20572 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
20573 | # The compiler can only warn and ignore the option if not recognized | |
20574 | # So say no if there are warnings | |
20575 | if test -s conftest.err; then | |
20576 | # Append any errors to the config.log. | |
20577 | cat conftest.err 1>&5 | |
20578 | else | |
20579 | lt_cv_prog_compiler_rtti_exceptions=yes | |
20580 | fi | |
20581 | fi | |
20582 | $rm conftest* | |
20583 | CFLAGS="$save_CFLAGS" | |
20584 | ||
20585 | fi | |
e61fbf76 | 20586 | echo "$as_me:20586: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
50850385 TJ |
20587 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
20588 | ||
20589 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
20590 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | |
20591 | else | |
20592 | : | |
20593 | fi | |
20594 | ||
20595 | fi | |
20596 | ||
20597 | lt_prog_compiler_wl_GCJ= | |
20598 | lt_prog_compiler_pic_GCJ= | |
20599 | lt_prog_compiler_static_GCJ= | |
20600 | ||
e61fbf76 | 20601 | echo "$as_me:20601: checking for $compiler option to produce PIC" >&5 |
50850385 TJ |
20602 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
20603 | ||
20604 | if test "$GCC" = yes; then | |
20605 | lt_prog_compiler_wl_GCJ='-Wl,' | |
20606 | lt_prog_compiler_static_GCJ='-static' | |
20607 | ||
20608 | case $host_os in | |
20609 | aix*) | |
20610 | # All AIX code is PIC. | |
20611 | if test "$host_cpu" = ia64; then | |
20612 | # AIX 5 now supports IA64 processor | |
20613 | lt_prog_compiler_static_GCJ='-Bstatic' | |
20614 | fi | |
20615 | ;; | |
20616 | ||
20617 | amigaos*) | |
20618 | # FIXME: we need at least 68020 code to build shared libraries, but | |
20619 | # adding the `-m68020' flag to GCC prevents building anything better, | |
20620 | # like `-m68040'. | |
20621 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | |
20622 | ;; | |
20623 | ||
20624 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
20625 | # PIC is the default for these OSes. | |
20626 | ;; | |
20627 | ||
20628 | cygwin* | mingw* | pw32* | os2*) | |
20629 | # This hack is so that the source file can tell whether it is being | |
20630 | # built for inclusion in a dll (and should export symbols for example). | |
20631 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
20632 | ;; | |
20633 | ||
20634 | darwin* | rhapsody*) | |
20635 | # PIC is the default on this platform | |
20636 | # Common symbols not allowed in MH_DYLIB files | |
20637 | lt_prog_compiler_pic_GCJ='-fno-common' | |
20638 | ;; | |
20639 | ||
20640 | msdosdjgpp*) | |
20641 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
20642 | # on systems that don't support them. | |
20643 | lt_prog_compiler_can_build_shared_GCJ=no | |
20644 | enable_shared=no | |
20645 | ;; | |
20646 | ||
20647 | sysv4*MP*) | |
20648 | if test -d /usr/nec; then | |
20649 | lt_prog_compiler_pic_GCJ=-Kconform_pic | |
20650 | fi | |
20651 | ;; | |
20652 | ||
20653 | hpux*) | |
20654 | # PIC is the default for IA64 HP-UX, but not for PA HP-UX. | |
20655 | if test "$host_cpu" != ia64; then | |
20656 | lt_prog_compiler_pic_GCJ='-fPIC' | |
20657 | fi | |
20658 | ;; | |
20659 | ||
20660 | *) | |
20661 | lt_prog_compiler_pic_GCJ='-fPIC' | |
20662 | ;; | |
20663 | esac | |
20664 | else | |
20665 | # PORTME Check for flag to pass linker flags through the system compiler. | |
20666 | case $host_os in | |
20667 | aix*) | |
20668 | lt_prog_compiler_wl_GCJ='-Wl,' | |
20669 | if test "$host_cpu" = ia64; then | |
20670 | # AIX 5 now supports IA64 processor | |
20671 | lt_prog_compiler_static_GCJ='-Bstatic' | |
20672 | else | |
20673 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | |
20674 | fi | |
20675 | ;; | |
20676 | ||
20677 | cygwin* | mingw* | pw32* | os2*) | |
20678 | # This hack is so that the source file can tell whether it is being | |
20679 | # built for inclusion in a dll (and should export symbols for example). | |
20680 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
20681 | ;; | |
20682 | ||
20683 | hpux9* | hpux10* | hpux11*) | |
20684 | lt_prog_compiler_wl_GCJ='-Wl,' | |
20685 | if test "$host_cpu" != ia64; then | |
20686 | lt_prog_compiler_pic_GCJ='+Z' | |
20687 | fi | |
20688 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
20689 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | |
20690 | ;; | |
20691 | ||
20692 | irix5* | irix6* | nonstopux*) | |
20693 | lt_prog_compiler_wl_GCJ='-Wl,' | |
20694 | # PIC (with -KPIC) is the default. | |
20695 | lt_prog_compiler_static_GCJ='-non_shared' | |
20696 | ;; | |
20697 | ||
20698 | newsos6) | |
20699 | lt_prog_compiler_pic_GCJ='-KPIC' | |
20700 | lt_prog_compiler_static_GCJ='-Bstatic' | |
20701 | ;; | |
20702 | ||
20703 | osf3* | osf4* | osf5*) | |
20704 | lt_prog_compiler_wl_GCJ='-Wl,' | |
20705 | # All OSF/1 code is PIC. | |
20706 | lt_prog_compiler_static_GCJ='-non_shared' | |
20707 | ;; | |
20708 | ||
20709 | sco3.2v5*) | |
20710 | lt_prog_compiler_pic_GCJ='-Kpic' | |
20711 | lt_prog_compiler_static_GCJ='-dn' | |
20712 | ;; | |
20713 | ||
20714 | solaris*) | |
20715 | lt_prog_compiler_wl_GCJ='-Wl,' | |
20716 | lt_prog_compiler_pic_GCJ='-KPIC' | |
20717 | lt_prog_compiler_static_GCJ='-Bstatic' | |
20718 | ;; | |
20719 | ||
20720 | sunos4*) | |
20721 | lt_prog_compiler_wl_GCJ='-Qoption ld ' | |
20722 | lt_prog_compiler_pic_GCJ='-PIC' | |
20723 | lt_prog_compiler_static_GCJ='-Bstatic' | |
20724 | ;; | |
20725 | ||
20726 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
20727 | if test "x$host_vendor" = xsni; then | |
20728 | lt_prog_compiler_wl_GCJ='-LD' | |
20729 | else | |
20730 | lt_prog_compiler_wl_GCJ='-Wl,' | |
20731 | fi | |
20732 | lt_prog_compiler_pic_GCJ='-KPIC' | |
20733 | lt_prog_compiler_static_GCJ='-Bstatic' | |
20734 | ;; | |
20735 | ||
20736 | sysv4*MP*) | |
20737 | if test -d /usr/nec ;then | |
20738 | lt_prog_compiler_pic_GCJ='-Kconform_pic' | |
20739 | lt_prog_compiler_static_GCJ='-Bstatic' | |
20740 | fi | |
20741 | ;; | |
20742 | ||
20743 | uts4*) | |
20744 | lt_prog_compiler_pic_GCJ='-pic' | |
20745 | lt_prog_compiler_static_GCJ='-Bstatic' | |
20746 | ;; | |
20747 | ||
20748 | *) | |
20749 | lt_prog_compiler_can_build_shared_GCJ=no | |
20750 | ;; | |
20751 | esac | |
20752 | fi | |
20753 | ||
e61fbf76 | 20754 | echo "$as_me:20754: result: $lt_prog_compiler_pic_GCJ" >&5 |
50850385 TJ |
20755 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
20756 | ||
20757 | # | |
20758 | # Check to make sure the PIC flag actually works. | |
20759 | # | |
20760 | if test -n "$lt_prog_compiler_pic_GCJ"; then | |
e61fbf76 | 20761 | echo "$as_me:20761: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
50850385 TJ |
20762 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
20763 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | |
20764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20765 | else | |
20766 | lt_prog_compiler_pic_works_GCJ=no | |
20767 | ac_outfile=conftest.$ac_objext | |
20768 | save_CFLAGS="$CFLAGS" | |
20769 | CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ -DPIC" | |
20770 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
20771 | if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then | |
20772 | # The compiler can only warn and ignore the option if not recognized | |
20773 | # So say no if there are warnings | |
20774 | if test -s conftest.err; then | |
20775 | # Append any errors to the config.log. | |
20776 | cat conftest.err 1>&5 | |
20777 | else | |
20778 | lt_prog_compiler_pic_works_GCJ=yes | |
20779 | fi | |
20780 | fi | |
20781 | $rm conftest* | |
20782 | CFLAGS="$save_CFLAGS" | |
20783 | ||
20784 | fi | |
e61fbf76 | 20785 | echo "$as_me:20785: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
50850385 TJ |
20786 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
20787 | ||
20788 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | |
20789 | case $lt_prog_compiler_pic_GCJ in | |
20790 | "" | " "*) ;; | |
20791 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | |
20792 | esac | |
20793 | else | |
20794 | lt_prog_compiler_pic_GCJ= | |
20795 | lt_prog_compiler_can_build_shared_GCJ=no | |
20796 | fi | |
20797 | ||
20798 | fi | |
20799 | case "$host_os" in | |
20800 | # For platforms which do not support PIC, -DPIC is meaningless: | |
20801 | *djgpp*) | |
20802 | lt_prog_compiler_pic_GCJ= | |
20803 | ;; | |
20804 | *) | |
20805 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ -DPIC" | |
20806 | ;; | |
20807 | esac | |
20808 | ||
e61fbf76 | 20809 | echo "$as_me:20809: checking if $compiler supports -c -o file.$ac_objext" >&5 |
50850385 TJ |
20810 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
20811 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | |
20812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20813 | else | |
20814 | lt_cv_prog_compiler_c_o_GCJ=no | |
20815 | $rm -r conftest 2>/dev/null | |
20816 | mkdir conftest | |
20817 | cd conftest | |
20818 | mkdir out | |
20819 | save_GCJFLAGS="$GCJFLAGS" | |
20820 | GCJFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext" | |
20821 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
20822 | ||
20823 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers | |
20824 | # that will create temporary files in the current directory regardless of | |
20825 | # the output directory. Thus, making CWD read-only will cause this test | |
20826 | # to fail, enabling locking or at least warning the user not to do parallel | |
20827 | # builds. | |
20828 | chmod -w . | |
20829 | ||
20830 | if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext | |
20831 | then | |
20832 | # The compiler can only warn and ignore the option if not recognized | |
20833 | # So say no if there are warnings | |
20834 | if test -s out/conftest.err; then | |
20835 | # Append any errors to the config.log. | |
20836 | cat out/conftest.err 1>&5 | |
20837 | else | |
20838 | lt_cv_prog_compiler_c_o_GCJ=yes | |
20839 | fi | |
20840 | fi | |
20841 | GCJFLAGS="$save_GCJFLAGS" | |
20842 | chmod u+w . | |
20843 | $rm conftest* out/* | |
20844 | rmdir out | |
20845 | cd .. | |
20846 | rmdir conftest | |
20847 | $rm conftest* | |
20848 | ||
20849 | fi | |
e61fbf76 | 20850 | echo "$as_me:20850: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
50850385 TJ |
20851 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
20852 | ||
50850385 TJ |
20853 | hard_links="nottested" |
20854 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | |
20855 | # do not overwrite the value of need_locks provided by the user | |
e61fbf76 | 20856 | echo "$as_me:20856: checking if we can lock with hard links" >&5 |
50850385 TJ |
20857 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
20858 | hard_links=yes | |
20859 | $rm conftest* | |
20860 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
20861 | touch conftest.a | |
20862 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
20863 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
e61fbf76 | 20864 | echo "$as_me:20864: result: $hard_links" >&5 |
50850385 TJ |
20865 | echo "${ECHO_T}$hard_links" >&6 |
20866 | if test "$hard_links" = no; then | |
e61fbf76 | 20867 | { echo "$as_me:20867: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
50850385 TJ |
20868 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
20869 | need_locks=warn | |
20870 | fi | |
20871 | else | |
20872 | need_locks=no | |
20873 | fi | |
20874 | ||
e61fbf76 | 20875 | echo "$as_me:20875: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
50850385 TJ |
20876 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
20877 | ||
20878 | runpath_var= | |
20879 | allow_undefined_flag_GCJ= | |
20880 | ||
20881 | archive_cmds_GCJ= | |
20882 | archive_cmds_need_lc_GCJ= | |
20883 | archive_expsym_cmds_GCJ= | |
20884 | old_archive_From_new_cmds_GCJ= | |
20885 | old_archive_from_expsyms_cmds_GCJ= | |
20886 | export_dynamic_flag_spec_GCJ= | |
20887 | whole_archive_flag_spec_GCJ= | |
20888 | thread_safe_flag_spec_GCJ= | |
20889 | hardcode_libdir_flag_spec_GCJ= | |
20890 | hardcode_libdir_separator_GCJ= | |
20891 | hardcode_direct_GCJ=no | |
20892 | hardcode_minus_L_GCJ=no | |
20893 | hardcode_shlibpath_var_GCJ=unsupported | |
20894 | link_all_deplibs_GCJ=unknown | |
20895 | always_export_symbols_GCJ=no | |
20896 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
20897 | # include_expsyms should be a list of space-separated symbols to be *always* | |
20898 | # included in the symbol list | |
20899 | include_expsyms_GCJ= | |
20900 | # exclude_expsyms can be an egrep regular expression of symbols to exclude | |
20901 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
20902 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
20903 | # as well as any symbol that contains `d'. | |
20904 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" | |
20905 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
20906 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
20907 | # the symbol is explicitly referenced. Since portable code cannot | |
20908 | # rely on this symbol name, it's probably fine to never include it in | |
20909 | # preloaded symbol tables. | |
20910 | extract_expsyms_cmds= | |
20911 | ||
20912 | case $host_os in | |
20913 | cygwin* | mingw* | pw32*) | |
20914 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
20915 | # When not using gcc, we currently assume that we are using | |
20916 | # Microsoft Visual C++. | |
20917 | if test "$GCC" != yes; then | |
20918 | with_gnu_ld=no | |
20919 | fi | |
20920 | ;; | |
20921 | openbsd*) | |
20922 | with_gnu_ld=no | |
20923 | ;; | |
20924 | esac | |
20925 | ||
20926 | ld_shlibs_GCJ=yes | |
20927 | if test "$with_gnu_ld" = yes; then | |
20928 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
20929 | wlarc='${wl}' | |
20930 | ||
20931 | # See if GNU ld supports shared libraries. | |
20932 | case $host_os in | |
20933 | aix3* | aix4* | aix5*) | |
20934 | # On AIX/PPC, the GNU linker is very broken | |
20935 | if test "$host_cpu" != ia64; then | |
20936 | ld_shlibs_GCJ=no | |
20937 | cat <<EOF 1>&2 | |
20938 | ||
20939 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
20940 | *** to be unable to reliably create shared libraries on AIX. | |
20941 | *** Therefore, libtool is disabling shared libraries support. If you | |
20942 | *** really care for shared libraries, you may want to modify your PATH | |
20943 | *** so that a non-GNU linker is found, and then restart. | |
20944 | ||
20945 | EOF | |
20946 | fi | |
20947 | ;; | |
20948 | ||
20949 | amigaos*) | |
20950 | archive_cmds_GCJ='$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)' | |
20951 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
20952 | hardcode_minus_L_GCJ=yes | |
20953 | ||
20954 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
20955 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
20956 | # to version 4, is to share data among multiple programs linked | |
20957 | # with the same dynamic library. Since this doesn't match the | |
20958 | # behavior of shared libraries on other platforms, we can't use | |
20959 | # them. | |
20960 | ld_shlibs_GCJ=no | |
20961 | ;; | |
20962 | ||
20963 | beos*) | |
20964 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
20965 | allow_undefined_flag_GCJ=unsupported | |
20966 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
20967 | # support --undefined. This deserves some investigation. FIXME | |
20968 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
20969 | else | |
20970 | ld_shlibs_GCJ=no | |
20971 | fi | |
20972 | ;; | |
20973 | ||
20974 | cygwin* | mingw* | pw32*) | |
20975 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is | |
20976 | # no search path for DLLs. | |
20977 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
20978 | allow_undefined_flag_GCJ=unsupported | |
20979 | always_export_symbols_GCJ=yes | |
20980 | ||
20981 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ | |
20982 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ | |
20983 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ | |
20984 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ | |
20985 | else $CC -o impgen impgen.c ; fi)~ | |
20986 | $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' | |
20987 | ||
20988 | old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' | |
20989 | ||
20990 | # cygwin and mingw dlls have different entry points and sets of symbols | |
20991 | # to exclude. | |
20992 | # FIXME: what about values for MSVC? | |
20993 | dll_entry=__cygwin_dll_entry@12 | |
20994 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ | |
20995 | case $host_os in | |
20996 | mingw*) | |
20997 | # mingw values | |
20998 | dll_entry=_DllMainCRTStartup@12 | |
20999 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ | |
21000 | ;; | |
21001 | esac | |
21002 | ||
21003 | # mingw and cygwin differ, and it's simplest to just exclude the union | |
21004 | # of the two symbol sets. | |
21005 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 | |
21006 | ||
21007 | # recent cygwin and mingw systems supply a stub DllMain which the user | |
21008 | # can override, but on older systems we have to supply one (in ltdll.c) | |
21009 | if test "x$lt_cv_need_dllmain" = "xyes"; then | |
21010 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " | |
21011 | ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ | |
21012 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' | |
21013 | else | |
21014 | ltdll_obj= | |
21015 | ltdll_cmds= | |
21016 | fi | |
21017 | ||
21018 | # Extract the symbol export list from an `--export-all' def file, | |
21019 | # then regenerate the def file from the symbol export list, so that | |
21020 | # the compiled dll only exports the symbol export list. | |
21021 | # Be careful not to strip the DATA tag left by newer dlltools. | |
21022 | export_symbols_cmds_GCJ="$ltdll_cmds"' | |
21023 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ | |
21024 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' | |
21025 | ||
21026 | # If the export-symbols file already is a .def file (1st line | |
21027 | # is EXPORTS), use it as is. | |
21028 | # If DATA tags from a recent dlltool are present, honour them! | |
21029 | archive_expsym_cmds_GCJ='if test "x`head -1 $export_symbols`" = xEXPORTS; then | |
21030 | cp $export_symbols $output_objdir/$soname-def; | |
21031 | else | |
21032 | echo EXPORTS > $output_objdir/$soname-def; | |
21033 | _lt_hint=1; | |
21034 | cat $export_symbols | while read symbol; do | |
21035 | set dummy \$symbol; | |
21036 | case \$# in | |
21037 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; | |
21038 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; | |
21039 | esac; | |
21040 | _lt_hint=`expr 1 + \$_lt_hint`; | |
21041 | done; | |
21042 | fi~ | |
21043 | '"$ltdll_cmds"' | |
21044 | $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ | |
21045 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ | |
21046 | $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ | |
21047 | $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ | |
21048 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' | |
21049 | ;; | |
21050 | ||
21051 | netbsd*) | |
21052 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
21053 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
21054 | wlarc= | |
21055 | else | |
21056 | archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
21057 | archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
21058 | fi | |
21059 | ;; | |
21060 | ||
21061 | solaris* | sysv5*) | |
21062 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then | |
21063 | ld_shlibs_GCJ=no | |
21064 | cat <<EOF 1>&2 | |
21065 | ||
21066 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
21067 | *** create shared libraries on Solaris systems. Therefore, libtool | |
21068 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
21069 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
21070 | *** your PATH or compiler configuration so that the native linker is | |
21071 | *** used, and then restart. | |
21072 | ||
21073 | EOF | |
21074 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
21075 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
21076 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
21077 | else | |
21078 | ld_shlibs_GCJ=no | |
21079 | fi | |
21080 | ;; | |
21081 | ||
21082 | sunos4*) | |
21083 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
21084 | wlarc= | |
21085 | hardcode_direct_GCJ=yes | |
21086 | hardcode_shlibpath_var_GCJ=no | |
21087 | ;; | |
21088 | ||
21089 | *) | |
21090 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | |
21091 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
21092 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
21093 | else | |
21094 | ld_shlibs_GCJ=no | |
21095 | fi | |
21096 | ;; | |
21097 | esac | |
21098 | ||
21099 | if test "$ld_shlibs_GCJ" = yes; then | |
21100 | runpath_var=LD_RUN_PATH | |
21101 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | |
21102 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | |
21103 | case $host_os in | |
21104 | cygwin* | mingw* | pw32*) | |
21105 | # dlltool doesn't understand --whole-archive et. al. | |
21106 | whole_archive_flag_spec_GCJ= | |
21107 | ;; | |
21108 | *) | |
21109 | # ancient GNU ld didn't support --whole-archive et. al. | |
21110 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then | |
21111 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
21112 | else | |
21113 | whole_archive_flag_spec_GCJ= | |
21114 | fi | |
21115 | ;; | |
21116 | esac | |
21117 | fi | |
21118 | else | |
21119 | # PORTME fill in a description of your system's linker (not GNU ld) | |
21120 | case $host_os in | |
21121 | aix3*) | |
21122 | allow_undefined_flag_GCJ=unsupported | |
21123 | always_export_symbols_GCJ=yes | |
21124 | archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
21125 | # Note: this linker hardcodes the directories in LIBPATH if there | |
21126 | # are no directories specified by -L. | |
21127 | hardcode_minus_L_GCJ=yes | |
21128 | if test "$GCC" = yes && test -z "$link_static_flag"; then | |
21129 | # Neither direct hardcoding nor static linking is supported with a | |
21130 | # broken collect2. | |
21131 | hardcode_direct_GCJ=unsupported | |
21132 | fi | |
21133 | ;; | |
21134 | ||
21135 | aix4* | aix5*) | |
21136 | if test "$host_cpu" = ia64; then | |
21137 | # On IA64, the linker does run time linking by default, so we don't | |
21138 | # have to do anything special. | |
21139 | aix_use_runtimelinking=no | |
21140 | exp_sym_flag='-Bexport' | |
21141 | no_entry_flag="" | |
21142 | else | |
21143 | # If we're using GNU nm, then we don't want the "-C" option. | |
21144 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
21145 | if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then | |
21146 | export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
21147 | else | |
21148 | export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
21149 | fi | |
21150 | ||
21151 | # KDE requires run time linking. Make it the default. | |
21152 | aix_use_runtimelinking=yes | |
21153 | exp_sym_flag='-bexport' | |
21154 | no_entry_flag='-bnoentry' | |
21155 | fi | |
21156 | ||
21157 | # When large executables or shared objects are built, AIX ld can | |
21158 | # have problems creating the table of contents. If linking a library | |
21159 | # or program results in "error TOC overflow" add -mminimal-toc to | |
21160 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
21161 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
21162 | ||
21163 | archive_cmds_GCJ='' | |
21164 | hardcode_direct_GCJ=yes | |
21165 | hardcode_libdir_separator_GCJ=':' | |
21166 | link_all_deplibs_GCJ=yes | |
21167 | ||
21168 | if test "$GCC" = yes; then | |
21169 | case $host_os in aix4.012|aix4.012.*) | |
21170 | # We only want to do this on AIX 4.2 and lower, the check | |
21171 | # below for broken collect2 doesn't work under 4.3+ | |
21172 | collect2name=`${CC} -print-prog-name=collect2` | |
21173 | if test -f "$collect2name" && \ | |
21174 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
21175 | then | |
21176 | # We have reworked collect2 | |
21177 | hardcode_direct_GCJ=yes | |
21178 | else | |
21179 | # We have old collect2 | |
21180 | hardcode_direct_GCJ=unsupported | |
21181 | # It fails to find uninstalled libraries when the uninstalled | |
21182 | # path is not listed in the libpath. Setting hardcode_minus_L | |
21183 | # to unsupported forces relinking | |
21184 | hardcode_minus_L_GCJ=yes | |
21185 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
21186 | hardcode_libdir_separator_GCJ= | |
21187 | fi | |
21188 | esac | |
21189 | shared_flag='-shared' | |
21190 | else | |
21191 | # not using gcc | |
21192 | if test "$host_cpu" = ia64; then | |
21193 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
21194 | # chokes on -Wl,-G. The following line is correct: | |
21195 | shared_flag='-G' | |
21196 | else | |
21197 | if test "$aix_use_runtimelinking" = yes; then | |
21198 | shared_flag='-qmkshrobj ${wl}-G' | |
21199 | else | |
21200 | shared_flag='-qmkshrobj' | |
21201 | fi | |
21202 | fi | |
21203 | fi | |
21204 | ||
21205 | # Let the compiler handle the export list. | |
21206 | always_export_symbols_GCJ=no | |
21207 | if test "$aix_use_runtimelinking" = yes; then | |
21208 | # Warning - without using the other runtime loading flags (-brtl), | |
21209 | # -berok will link without error, but may produce a broken library. | |
21210 | allow_undefined_flag_GCJ='-berok' | |
21211 | # Determine the default libpath from the value encoded in an empty executable. | |
21212 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 21213 | #line 21213 "configure" |
50850385 TJ |
21214 | #include "confdefs.h" |
21215 | ||
50850385 TJ |
21216 | int |
21217 | main () | |
21218 | { | |
21219 | ||
21220 | ; | |
21221 | return 0; | |
21222 | } | |
21223 | _ACEOF | |
21224 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 21225 | if { (eval echo "$as_me:21225: \"$ac_link\"") >&5 |
50850385 TJ |
21226 | (eval $ac_link) 2>&5 |
21227 | ac_status=$? | |
e61fbf76 | 21228 | echo "$as_me:21228: \$? = $ac_status" >&5 |
50850385 TJ |
21229 | (exit $ac_status); } && |
21230 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 21231 | { (eval echo "$as_me:21231: \"$ac_try\"") >&5 |
50850385 TJ |
21232 | (eval $ac_try) 2>&5 |
21233 | ac_status=$? | |
e61fbf76 | 21234 | echo "$as_me:21234: \$? = $ac_status" >&5 |
50850385 TJ |
21235 | (exit $ac_status); }; }; then |
21236 | ||
21237 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
21238 | }'` | |
21239 | # Check for a 64-bit object if we didn't find anything. | |
21240 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
21241 | }'`; fi | |
21242 | else | |
21243 | echo "$as_me: failed program was:" >&5 | |
21244 | cat conftest.$ac_ext >&5 | |
21245 | fi | |
21246 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21247 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
21248 | ||
21249 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
21250 | archive_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag" | |
21251 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
21252 | else | |
21253 | if test "$host_cpu" = ia64; then | |
21254 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | |
21255 | allow_undefined_flag_GCJ="-z nodefs" | |
21256 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | |
21257 | else | |
21258 | # Determine the default libpath from the value encoded in an empty executable. | |
21259 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 21260 | #line 21260 "configure" |
50850385 TJ |
21261 | #include "confdefs.h" |
21262 | ||
50850385 TJ |
21263 | int |
21264 | main () | |
21265 | { | |
21266 | ||
21267 | ; | |
21268 | return 0; | |
21269 | } | |
21270 | _ACEOF | |
21271 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 21272 | if { (eval echo "$as_me:21272: \"$ac_link\"") >&5 |
50850385 TJ |
21273 | (eval $ac_link) 2>&5 |
21274 | ac_status=$? | |
e61fbf76 | 21275 | echo "$as_me:21275: \$? = $ac_status" >&5 |
50850385 TJ |
21276 | (exit $ac_status); } && |
21277 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 21278 | { (eval echo "$as_me:21278: \"$ac_try\"") >&5 |
50850385 TJ |
21279 | (eval $ac_try) 2>&5 |
21280 | ac_status=$? | |
e61fbf76 | 21281 | echo "$as_me:21281: \$? = $ac_status" >&5 |
50850385 TJ |
21282 | (exit $ac_status); }; }; then |
21283 | ||
21284 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
21285 | }'` | |
21286 | # Check for a 64-bit object if we didn't find anything. | |
21287 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
21288 | }'`; fi | |
21289 | else | |
21290 | echo "$as_me: failed program was:" >&5 | |
21291 | cat conftest.$ac_ext >&5 | |
21292 | fi | |
21293 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21294 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
21295 | ||
21296 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
21297 | # Warning - without using the other run time loading flags, | |
21298 | # -berok will link without error, but may produce a broken library. | |
21299 | no_undefined_flag_GCJ=' ${wl}-bernotok' | |
21300 | allow_undefined_flag_GCJ=' ${wl}-berok' | |
21301 | # -bexpall does not export symbols beginning with underscore (_) | |
21302 | always_export_symbols_GCJ=yes | |
21303 | # Exported symbols can be pulled into shared objects from archives | |
21304 | whole_archive_flag_spec_GCJ=' ' | |
21305 | archive_cmds_need_lc_GCJ=yes | |
21306 | # This is similar to how AIX traditionally builds it's shared libraries. | |
21307 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
21308 | fi | |
21309 | fi | |
21310 | ;; | |
21311 | ||
21312 | amigaos*) | |
21313 | archive_cmds_GCJ='$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)' | |
21314 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
21315 | hardcode_minus_L_GCJ=yes | |
21316 | # see comment about different semantics on the GNU ld section | |
21317 | ld_shlibs_GCJ=no | |
21318 | ;; | |
21319 | ||
21320 | bsdi4*) | |
21321 | export_dynamic_flag_spec_GCJ=-rdynamic | |
21322 | ;; | |
21323 | ||
21324 | cygwin* | mingw* | pw32*) | |
21325 | # When not using gcc, we currently assume that we are using | |
21326 | # Microsoft Visual C++. | |
21327 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
21328 | # no search path for DLLs. | |
21329 | hardcode_libdir_flag_spec_GCJ=' ' | |
21330 | allow_undefined_flag_GCJ=unsupported | |
21331 | # Tell ltmain to make .lib files, not .a files. | |
21332 | libext=lib | |
21333 | # FIXME: Setting linknames here is a bad hack. | |
21334 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
21335 | # The linker will automatically build a .lib file if we build a DLL. | |
21336 | old_archive_From_new_cmds_GCJ='true' | |
21337 | # FIXME: Should let the user specify the lib program. | |
21338 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
21339 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
21340 | ;; | |
21341 | ||
21342 | darwin* | rhapsody*) | |
21343 | case "$host_os" in | |
21344 | rhapsody* | darwin1.[012]) | |
21345 | allow_undefined_flag_GCJ='-undefined suppress' | |
21346 | ;; | |
21347 | *) # Darwin 1.3 on | |
21348 | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' | |
21349 | ;; | |
21350 | esac | |
21351 | ||
21352 | # FIXME: Relying on posixy $() will cause problems for | |
21353 | # cross-compilation, but unfortunately the echo tests do not | |
21354 | # yet detect zsh echo's removal of \ escapes. Also zsh mangles | |
21355 | # `"' quotes if we put them in here... so don't! | |
21356 | archive_cmds_GCJ='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' | |
21357 | # We need to add '_' to the symbols in $export_symbols first | |
21358 | #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols' | |
21359 | hardcode_direct_GCJ=yes | |
21360 | hardcode_shlibpath_var_GCJ=no | |
21361 | whole_archive_flag_spec_GCJ='-all_load $convenience' | |
21362 | ;; | |
21363 | ||
21364 | dgux*) | |
21365 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
21366 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
21367 | hardcode_shlibpath_var_GCJ=no | |
21368 | ;; | |
21369 | ||
21370 | freebsd1*) | |
21371 | ld_shlibs_GCJ=no | |
21372 | ;; | |
21373 | ||
21374 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
21375 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
21376 | # does not break anything, and helps significantly (at the cost of a little | |
21377 | # extra space). | |
21378 | freebsd2.2*) | |
21379 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
21380 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
21381 | hardcode_direct_GCJ=yes | |
21382 | hardcode_shlibpath_var_GCJ=no | |
21383 | ;; | |
21384 | ||
21385 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
21386 | freebsd2*) | |
21387 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
21388 | hardcode_direct_GCJ=yes | |
21389 | hardcode_minus_L_GCJ=yes | |
21390 | hardcode_shlibpath_var_GCJ=no | |
21391 | ;; | |
21392 | ||
21393 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
21394 | freebsd*) | |
21395 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
21396 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
21397 | hardcode_direct_GCJ=yes | |
21398 | hardcode_shlibpath_var_GCJ=no | |
21399 | ;; | |
21400 | ||
21401 | hpux9* | hpux10* | hpux11*) | |
21402 | if test "$GCC" = yes; then | |
21403 | case $host_os in | |
21404 | hpux9*) | |
21405 | archive_cmds_GCJ='$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' | |
21406 | ;; | |
21407 | *) | |
21408 | if test "$host_cpu" = ia64; then | |
21409 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
21410 | else | |
21411 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
21412 | fi | |
21413 | ;; | |
21414 | esac | |
21415 | else | |
21416 | case $host_os in | |
21417 | hpux9*) | |
21418 | archive_cmds_GCJ='$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' | |
21419 | ;; | |
21420 | *) | |
21421 | if test "$host_cpu" = ia64; then | |
21422 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | |
21423 | else | |
21424 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
21425 | fi | |
21426 | ;; | |
21427 | esac | |
21428 | fi | |
21429 | if test "$host_cpu" = ia64; then | |
21430 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
21431 | hardcode_direct_GCJ=no | |
21432 | hardcode_shlibpath_var_GCJ=no | |
21433 | else | |
21434 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
21435 | hardcode_libdir_separator_GCJ=: | |
21436 | hardcode_direct_GCJ=yes | |
21437 | fi | |
21438 | # hardcode_minus_L: Not really in the search PATH, | |
21439 | # but as the default location of the library. | |
21440 | hardcode_minus_L_GCJ=yes | |
21441 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
21442 | ;; | |
21443 | ||
21444 | irix5* | irix6* | nonstopux*) | |
21445 | if test "$GCC" = yes; then | |
21446 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
21447 | else | |
21448 | archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
21449 | fi | |
21450 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
21451 | hardcode_libdir_separator_GCJ=: | |
21452 | link_all_deplibs_GCJ=yes | |
21453 | ;; | |
21454 | ||
21455 | netbsd*) | |
21456 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
21457 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
21458 | else | |
21459 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
21460 | fi | |
21461 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
21462 | hardcode_direct_GCJ=yes | |
21463 | hardcode_shlibpath_var_GCJ=no | |
21464 | ;; | |
21465 | ||
21466 | newsos6) | |
21467 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
21468 | hardcode_direct_GCJ=yes | |
21469 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
21470 | hardcode_libdir_separator_GCJ=: | |
21471 | hardcode_shlibpath_var_GCJ=no | |
21472 | ;; | |
21473 | ||
21474 | openbsd*) | |
21475 | hardcode_direct_GCJ=yes | |
21476 | hardcode_shlibpath_var_GCJ=no | |
21477 | ||
21478 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
21479 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | |
21480 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
21481 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
21482 | else | |
21483 | case $host_os in | |
21484 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
21485 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
21486 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
21487 | ;; | |
21488 | *) | |
21489 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' | |
21490 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
21491 | ;; | |
21492 | esac | |
21493 | fi | |
21494 | ;; | |
21495 | ||
21496 | os2*) | |
21497 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
21498 | hardcode_minus_L_GCJ=yes | |
21499 | allow_undefined_flag_GCJ=unsupported | |
21500 | archive_cmds_GCJ='$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' | |
21501 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
21502 | ;; | |
21503 | ||
21504 | osf3*) | |
21505 | if test "$GCC" = yes; then | |
21506 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
21507 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
21508 | else | |
21509 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
21510 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
21511 | fi | |
21512 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
21513 | hardcode_libdir_separator_GCJ=: | |
21514 | ;; | |
21515 | ||
21516 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
21517 | if test "$GCC" = yes; then | |
21518 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
21519 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
21520 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
21521 | else | |
21522 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
21523 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
21524 | archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
21525 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' | |
21526 | ||
21527 | # Both c and cxx compiler support -rpath directly | |
21528 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | |
21529 | fi | |
21530 | hardcode_libdir_separator_GCJ=: | |
21531 | ;; | |
21532 | ||
21533 | sco3.2v5*) | |
21534 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
21535 | hardcode_shlibpath_var_GCJ=no | |
21536 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' | |
21537 | runpath_var=LD_RUN_PATH | |
21538 | hardcode_runpath_var=yes | |
21539 | ;; | |
21540 | ||
21541 | solaris*) | |
21542 | no_undefined_flag_GCJ=' -z text' | |
21543 | if test "$GCC" = yes; then | |
21544 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
21545 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
21546 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
21547 | else | |
21548 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
21549 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
21550 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
21551 | fi | |
21552 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
21553 | hardcode_shlibpath_var_GCJ=no | |
21554 | case $host_os in | |
21555 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
21556 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | |
21557 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; | |
21558 | esac | |
21559 | link_all_deplibs_GCJ=yes | |
21560 | ;; | |
21561 | ||
21562 | sunos4*) | |
21563 | if test "x$host_vendor" = xsequent; then | |
21564 | # Use $CC to link under sequent, because it throws in some extra .o | |
21565 | # files that make .init and .fini sections work. | |
21566 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
21567 | else | |
21568 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
21569 | fi | |
21570 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
21571 | hardcode_direct_GCJ=yes | |
21572 | hardcode_minus_L_GCJ=yes | |
21573 | hardcode_shlibpath_var_GCJ=no | |
21574 | ;; | |
21575 | ||
21576 | sysv4) | |
21577 | if test "x$host_vendor" = xsni; then | |
21578 | archive_cmds_GCJ='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
21579 | hardcode_direct_GCJ=yes # is this really true??? | |
21580 | else | |
21581 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
21582 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | |
21583 | fi | |
21584 | runpath_var='LD_RUN_PATH' | |
21585 | hardcode_shlibpath_var_GCJ=no | |
21586 | ;; | |
21587 | ||
21588 | sysv4.3*) | |
21589 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
21590 | hardcode_shlibpath_var_GCJ=no | |
21591 | export_dynamic_flag_spec_GCJ='-Bexport' | |
21592 | ;; | |
21593 | ||
21594 | sysv4*MP*) | |
21595 | if test -d /usr/nec; then | |
21596 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
21597 | hardcode_shlibpath_var_GCJ=no | |
21598 | runpath_var=LD_RUN_PATH | |
21599 | hardcode_runpath_var=yes | |
21600 | ld_shlibs_GCJ=yes | |
21601 | fi | |
21602 | ;; | |
21603 | ||
21604 | sysv4.2uw2*) | |
21605 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
21606 | hardcode_direct_GCJ=yes | |
21607 | hardcode_minus_L_GCJ=no | |
21608 | hardcode_shlibpath_var_GCJ=no | |
21609 | hardcode_runpath_var=yes | |
21610 | runpath_var=LD_RUN_PATH | |
21611 | ;; | |
21612 | ||
21613 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | |
21614 | no_undefined_flag_GCJ='${wl}-z ${wl}text' | |
21615 | if test "$GCC" = yes; then | |
21616 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
21617 | else | |
21618 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
21619 | fi | |
21620 | runpath_var='LD_RUN_PATH' | |
21621 | hardcode_shlibpath_var_GCJ=no | |
21622 | ;; | |
21623 | ||
21624 | sysv5*) | |
21625 | no_undefined_flag_GCJ=' -z text' | |
21626 | # $CC -shared without GNU ld will not create a library from C++ | |
21627 | # object files and a static libstdc++, better avoid it by now | |
21628 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
21629 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
21630 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
21631 | hardcode_libdir_flag_spec_GCJ= | |
21632 | hardcode_shlibpath_var_GCJ=no | |
21633 | runpath_var='LD_RUN_PATH' | |
21634 | ;; | |
21635 | ||
21636 | uts4*) | |
21637 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
21638 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
21639 | hardcode_shlibpath_var_GCJ=no | |
21640 | ;; | |
21641 | ||
21642 | *) | |
21643 | ld_shlibs_GCJ=no | |
21644 | ;; | |
21645 | esac | |
21646 | fi | |
21647 | ||
e61fbf76 | 21648 | echo "$as_me:21648: result: $ld_shlibs_GCJ" >&5 |
50850385 TJ |
21649 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
21650 | test "$ld_shlibs_GCJ" = no && can_build_shared=no | |
21651 | ||
21652 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
21653 | if test "$GCC" = yes; then | |
21654 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
21655 | fi | |
21656 | ||
21657 | # | |
21658 | # Do we need to explicitly link libc? | |
21659 | # | |
21660 | archive_cmds_need_lc_GCJ=yes | |
21661 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
21662 | case $archive_cmds_GCJ in | |
21663 | *'~'*) | |
21664 | # FIXME: we may have to deal with multi-command sequences. | |
21665 | ;; | |
21666 | '$CC '*) | |
21667 | # Test whether the compiler implicitly links with -lc since on some | |
21668 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
21669 | # to ld, don't add -lc before -lgcc. | |
e61fbf76 | 21670 | echo "$as_me:21670: checking whether -lc should be explicitly linked in" >&5 |
50850385 TJ |
21671 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
21672 | $rm conftest* | |
21673 | echo 'static int dummy;' > conftest.$ac_ext | |
21674 | ||
e61fbf76 | 21675 | if { (eval echo "$as_me:21675: \"$ac_compile\"") >&5 |
50850385 TJ |
21676 | (eval $ac_compile) 2>&5 |
21677 | ac_status=$? | |
e61fbf76 | 21678 | echo "$as_me:21678: \$? = $ac_status" >&5 |
50850385 TJ |
21679 | (exit $ac_status); } 2>conftest.err; then |
21680 | soname=conftest | |
21681 | lib=conftest | |
21682 | libobjs=conftest.$ac_objext | |
21683 | deplibs= | |
21684 | wl=$lt_prog_compiler_wl_GCJ | |
21685 | compiler_flags=-v | |
21686 | linker_flags=-v | |
21687 | verstring= | |
21688 | output_objdir=. | |
21689 | libname=conftest | |
21690 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | |
21691 | allow_undefined_flag_GCJ= | |
e61fbf76 | 21692 | if { (eval echo "$as_me:21692: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
50850385 TJ |
21693 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
21694 | ac_status=$? | |
e61fbf76 | 21695 | echo "$as_me:21695: \$? = $ac_status" >&5 |
50850385 TJ |
21696 | (exit $ac_status); } |
21697 | then | |
21698 | archive_cmds_need_lc_GCJ=no | |
21699 | else | |
21700 | archive_cmds_need_lc_GCJ=yes | |
21701 | fi | |
21702 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | |
21703 | else | |
21704 | cat conftest.err 1>&5 | |
21705 | fi | |
21706 | $rm conftest* | |
e61fbf76 | 21707 | echo "$as_me:21707: result: $archive_cmds_need_lc_GCJ" >&5 |
50850385 TJ |
21708 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
21709 | ;; | |
21710 | esac | |
21711 | fi | |
21712 | ||
e61fbf76 | 21713 | echo "$as_me:21713: checking how to hardcode library paths into programs" >&5 |
50850385 TJ |
21714 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
21715 | hardcode_action_GCJ= | |
21716 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | |
21717 | test -n "$runpath_var GCJ"; then | |
21718 | ||
21719 | # We can hardcode non-existant directories. | |
21720 | if test "$hardcode_direct_GCJ" != no && | |
21721 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
21722 | # have to relink, otherwise we might link with an installed library | |
21723 | # when we should be linking with a yet-to-be-installed one | |
21724 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | |
21725 | test "$hardcode_minus_L_GCJ" != no; then | |
21726 | # Linking always hardcodes the temporary library directory. | |
21727 | hardcode_action_GCJ=relink | |
21728 | else | |
21729 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
21730 | hardcode_action_GCJ=immediate | |
21731 | fi | |
21732 | else | |
21733 | # We cannot hardcode anything, or else we can only hardcode existing | |
21734 | # directories. | |
21735 | hardcode_action_GCJ=unsupported | |
21736 | fi | |
e61fbf76 | 21737 | echo "$as_me:21737: result: $hardcode_action_GCJ" >&5 |
50850385 TJ |
21738 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
21739 | ||
21740 | if test "$hardcode_action_GCJ" = relink; then | |
21741 | # Fast installation is not supported | |
21742 | enable_fast_install=no | |
21743 | elif test "$shlibpath_overrides_runpath" = yes || | |
21744 | test "$enable_shared" = no; then | |
21745 | # Fast installation is not necessary | |
21746 | enable_fast_install=needless | |
21747 | fi | |
21748 | ||
21749 | striplib= | |
21750 | old_striplib= | |
e61fbf76 | 21751 | echo "$as_me:21751: checking whether stripping libraries is possible" >&5 |
50850385 TJ |
21752 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
21753 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
21754 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
21755 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
e61fbf76 | 21756 | echo "$as_me:21756: result: yes" >&5 |
50850385 TJ |
21757 | echo "${ECHO_T}yes" >&6 |
21758 | else | |
e61fbf76 | 21759 | echo "$as_me:21759: result: no" >&5 |
50850385 TJ |
21760 | echo "${ECHO_T}no" >&6 |
21761 | fi | |
21762 | ||
e61fbf76 | 21763 | echo "$as_me:21763: checking dynamic linker characteristics" >&5 |
50850385 TJ |
21764 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
21765 | library_names_spec= | |
21766 | libname_spec='lib$name' | |
21767 | soname_spec= | |
21768 | postinstall_cmds= | |
21769 | postuninstall_cmds= | |
21770 | finish_cmds= | |
21771 | finish_eval= | |
21772 | shlibpath_var= | |
21773 | shlibpath_overrides_runpath=unknown | |
21774 | version_type=none | |
21775 | dynamic_linker="$host_os ld.so" | |
21776 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
21777 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
21778 | need_lib_prefix=unknown | |
21779 | hardcode_into_libs=no | |
21780 | ||
21781 | # when you set need_version to no, make sure it does not cause -set_version | |
21782 | # flags to be left without arguments | |
21783 | need_version=unknown | |
21784 | ||
21785 | case $host_os in | |
21786 | aix3*) | |
21787 | version_type=linux | |
21788 | library_names_spec='${libname}${release}.so$versuffix $libname.a' | |
21789 | shlibpath_var=LIBPATH | |
21790 | ||
21791 | # AIX 3 has no versioning support, so we append a major version to the name. | |
21792 | soname_spec='${libname}${release}.so$major' | |
21793 | ;; | |
21794 | ||
21795 | aix4* | aix5*) | |
21796 | version_type=linux | |
21797 | if test "$host_cpu" = ia64; then | |
21798 | # AIX 5 supports IA64 | |
21799 | library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' | |
21800 | shlibpath_var=LD_LIBRARY_PATH | |
21801 | else | |
21802 | # With GCC up to 2.95.x, collect2 would create an import file | |
21803 | # for dependence libraries. The import file would start with | |
21804 | # the line `#! .'. This would cause the generated library to | |
21805 | # depend on `.', always an invalid library. This was fixed in | |
21806 | # development snapshots of GCC prior to 3.0. | |
21807 | case $host_os in | |
21808 | aix4 | aix4.[01] | aix4.[01].*) | |
21809 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
21810 | echo ' yes ' | |
21811 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
21812 | : | |
21813 | else | |
21814 | can_build_shared=no | |
21815 | fi | |
21816 | ;; | |
21817 | esac | |
21818 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
21819 | # soname into executable. Probably we can add versioning support to | |
21820 | # collect2, so additional links can be useful in future. | |
21821 | if test "$aix_use_runtimelinking" = yes; then | |
21822 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
21823 | # instead of lib<name>.a to let people know that these are not | |
21824 | # typical AIX shared libraries. | |
21825 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
21826 | else | |
21827 | # We preserve .a as extension for shared libraries through AIX4.2 | |
21828 | # and later when we are not doing run time linking. | |
21829 | library_names_spec='${libname}${release}.a $libname.a' | |
21830 | soname_spec='${libname}${release}.so$major' | |
21831 | fi | |
21832 | shlibpath_var=LIBPATH | |
21833 | fi | |
21834 | ;; | |
21835 | ||
21836 | amigaos*) | |
21837 | library_names_spec='$libname.ixlibrary $libname.a' | |
21838 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
21839 | 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' | |
21840 | ;; | |
21841 | ||
21842 | beos*) | |
21843 | library_names_spec='${libname}.so' | |
21844 | dynamic_linker="$host_os ld.so" | |
21845 | shlibpath_var=LIBRARY_PATH | |
21846 | ;; | |
21847 | ||
21848 | bsdi4*) | |
21849 | version_type=linux | |
21850 | need_version=no | |
21851 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
21852 | soname_spec='${libname}${release}.so$major' | |
21853 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
21854 | shlibpath_var=LD_LIBRARY_PATH | |
21855 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
21856 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
21857 | # the default ld.so.conf also contains /usr/contrib/lib and | |
21858 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
21859 | # libtool to hard-code these into programs | |
21860 | ;; | |
21861 | ||
21862 | cygwin* | mingw* | pw32*) | |
21863 | version_type=windows | |
21864 | need_version=no | |
21865 | need_lib_prefix=no | |
21866 | case $GCC,$host_os in | |
21867 | yes,cygwin*) | |
21868 | library_names_spec='$libname.dll.a' | |
21869 | sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" | |
21870 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
21871 | postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ | |
21872 | dldir=$destdir/`dirname \$dlpath`~ | |
21873 | test -d \$dldir || mkdir -p \$dldir~ | |
21874 | $install_prog .libs/$dlname \$dldir/$dlname' | |
21875 | postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
21876 | dlpath=$dir/\$dldll~ | |
21877 | $rm \$dlpath' | |
21878 | ;; | |
21879 | yes,mingw*) | |
21880 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' | |
21881 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"` | |
21882 | if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then | |
21883 | # It is most probably a Windows format PATH printed by | |
21884 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
21885 | # path with ; separators, and with drive letters. We can handle the | |
21886 | # drive letters (cygwin fileutils understands them), so leave them, | |
21887 | # especially as we might pass files found there to a mingw objdump, | |
21888 | # which wouldn't understand a cygwinified path. Ahh. | |
21889 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'` | |
21890 | else | |
21891 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"` | |
21892 | fi | |
21893 | ;; | |
21894 | yes,pw32*) | |
21895 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' | |
21896 | ;; | |
21897 | *) | |
21898 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' | |
21899 | ;; | |
21900 | esac | |
21901 | dynamic_linker='Win32 ld.exe' | |
21902 | # FIXME: first we should search . and the directory the executable is in | |
21903 | shlibpath_var=PATH | |
21904 | ;; | |
21905 | ||
21906 | darwin* | rhapsody*) | |
21907 | dynamic_linker="$host_os dyld" | |
21908 | version_type=darwin | |
21909 | need_lib_prefix=no | |
21910 | need_version=no | |
21911 | # FIXME: Relying on posixy $() will cause problems for | |
21912 | # cross-compilation, but unfortunately the echo tests do not | |
21913 | # yet detect zsh echo's removal of \ escapes. | |
21914 | library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' | |
21915 | soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' | |
21916 | shlibpath_overrides_runpath=yes | |
21917 | shlibpath_var=DYLD_LIBRARY_PATH | |
21918 | ;; | |
21919 | ||
21920 | dgux*) | |
21921 | version_type=linux | |
21922 | need_lib_prefix=no | |
21923 | need_version=no | |
21924 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
21925 | soname_spec='${libname}${release}.so$major' | |
21926 | shlibpath_var=LD_LIBRARY_PATH | |
21927 | ;; | |
21928 | ||
21929 | freebsd1*) | |
21930 | dynamic_linker=no | |
21931 | ;; | |
21932 | ||
21933 | freebsd*) | |
21934 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | |
21935 | version_type=freebsd-$objformat | |
21936 | case $version_type in | |
21937 | freebsd-elf*) | |
21938 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
21939 | need_version=no | |
21940 | need_lib_prefix=no | |
21941 | ;; | |
21942 | freebsd-*) | |
21943 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' | |
21944 | need_version=yes | |
21945 | ;; | |
21946 | esac | |
21947 | shlibpath_var=LD_LIBRARY_PATH | |
21948 | case $host_os in | |
21949 | freebsd2*) | |
21950 | shlibpath_overrides_runpath=yes | |
21951 | ;; | |
21952 | freebsd3.01* | freebsdelf3.01*) | |
21953 | shlibpath_overrides_runpath=yes | |
21954 | hardcode_into_libs=yes | |
21955 | ;; | |
21956 | *) # from 3.2 on | |
21957 | shlibpath_overrides_runpath=no | |
21958 | hardcode_into_libs=yes | |
21959 | ;; | |
21960 | esac | |
21961 | ;; | |
21962 | ||
21963 | gnu*) | |
21964 | version_type=linux | |
21965 | need_lib_prefix=no | |
21966 | need_version=no | |
21967 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' | |
21968 | soname_spec='${libname}${release}.so$major' | |
21969 | shlibpath_var=LD_LIBRARY_PATH | |
21970 | hardcode_into_libs=yes | |
21971 | ;; | |
21972 | ||
21973 | hpux9* | hpux10* | hpux11*) | |
21974 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
21975 | # link against other versions. | |
21976 | version_type=sunos | |
21977 | need_lib_prefix=no | |
21978 | need_version=no | |
21979 | if test "$host_cpu" = ia64; then | |
21980 | hardcode_into_libs=yes | |
21981 | dynamic_linker="$host_os dld.so" | |
21982 | shlibpath_var=LD_LIBRARY_PATH | |
21983 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
21984 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
21985 | soname_spec='${libname}${release}.so$major' | |
21986 | if test "X$HPUX_IA64_MODE" = X32; then | |
21987 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
21988 | else | |
21989 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
21990 | fi | |
21991 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
21992 | else | |
21993 | dynamic_linker="$host_os dld.sl" | |
21994 | shlibpath_var=SHLIB_PATH | |
21995 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
21996 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' | |
21997 | soname_spec='${libname}${release}.sl$major' | |
21998 | fi | |
21999 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
22000 | postinstall_cmds='chmod 555 $lib' | |
22001 | ;; | |
22002 | ||
22003 | irix5* | irix6* | nonstopux*) | |
22004 | case $host_os in | |
22005 | nonstopux*) version_type=nonstopux ;; | |
22006 | *) version_type=irix ;; | |
22007 | esac | |
22008 | need_lib_prefix=no | |
22009 | need_version=no | |
22010 | soname_spec='${libname}${release}.so$major' | |
22011 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' | |
22012 | case $host_os in | |
22013 | irix5* | nonstopux*) | |
22014 | libsuff= shlibsuff= | |
22015 | ;; | |
22016 | *) | |
22017 | case $LD in # libtool.m4 will add one of these switches to LD | |
22018 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; | |
22019 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; | |
22020 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
22021 | *) libsuff= shlibsuff= libmagic=never-match;; | |
22022 | esac | |
22023 | ;; | |
22024 | esac | |
22025 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
22026 | shlibpath_overrides_runpath=no | |
22027 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
22028 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
22029 | ;; | |
22030 | ||
22031 | # No shared lib support for Linux oldld, aout, or coff. | |
22032 | linux*oldld* | linux*aout* | linux*coff*) | |
22033 | dynamic_linker=no | |
22034 | ;; | |
22035 | ||
22036 | # This must be Linux ELF. | |
22037 | linux*) | |
22038 | version_type=linux | |
22039 | need_lib_prefix=no | |
22040 | need_version=no | |
22041 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
22042 | soname_spec='${libname}${release}.so$major' | |
22043 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
22044 | libsuff= | |
22045 | if test "x$LINUX_64_MODE" = x64; then | |
22046 | # Some platforms are per default 64-bit, so there's no /lib64 | |
22047 | if test -d /lib64; then | |
22048 | libsuff=64 | |
22049 | fi | |
22050 | fi | |
22051 | shlibpath_var=LD_LIBRARY_PATH | |
22052 | shlibpath_overrides_runpath=no | |
22053 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" | |
22054 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | |
22055 | # This implies no fast_install, which is unacceptable. | |
22056 | # Some rework will be needed to allow for fast_install | |
22057 | # before this can be enabled. | |
22058 | hardcode_into_libs=yes | |
22059 | ||
22060 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
22061 | # powerpc, because MkLinux only supported shared libraries with the | |
22062 | # GNU dynamic linker. Since this was broken with cross compilers, | |
22063 | # most powerpc-linux boxes support dynamic linking these days and | |
22064 | # people can always --disable-shared, the test was removed, and we | |
22065 | # assume the GNU/Linux dynamic linker is in use. | |
22066 | dynamic_linker='GNU/Linux ld.so' | |
22067 | ;; | |
22068 | ||
22069 | netbsd*) | |
22070 | version_type=sunos | |
22071 | need_lib_prefix=no | |
22072 | need_version=no | |
22073 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
22074 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
22075 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
22076 | dynamic_linker='NetBSD (a.out) ld.so' | |
22077 | else | |
22078 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' | |
22079 | soname_spec='${libname}${release}.so$major' | |
22080 | dynamic_linker='NetBSD ld.elf_so' | |
22081 | fi | |
22082 | shlibpath_var=LD_LIBRARY_PATH | |
22083 | shlibpath_overrides_runpath=yes | |
22084 | hardcode_into_libs=yes | |
22085 | ;; | |
22086 | ||
22087 | newsos6) | |
22088 | version_type=linux | |
22089 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
22090 | shlibpath_var=LD_LIBRARY_PATH | |
22091 | shlibpath_overrides_runpath=yes | |
22092 | ;; | |
22093 | ||
22094 | nto-qnx) | |
22095 | version_type=linux | |
22096 | need_lib_prefix=no | |
22097 | need_version=no | |
22098 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
22099 | soname_spec='${libname}${release}.so$major' | |
22100 | shlibpath_var=LD_LIBRARY_PATH | |
22101 | shlibpath_overrides_runpath=yes | |
22102 | ;; | |
22103 | ||
22104 | openbsd*) | |
22105 | version_type=sunos | |
22106 | need_lib_prefix=no | |
22107 | need_version=no | |
22108 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
22109 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
22110 | shlibpath_var=LD_LIBRARY_PATH | |
22111 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
22112 | case $host_os in | |
22113 | openbsd2.[89] | openbsd2.[89].*) | |
22114 | shlibpath_overrides_runpath=no | |
22115 | ;; | |
22116 | *) | |
22117 | shlibpath_overrides_runpath=yes | |
22118 | ;; | |
22119 | esac | |
22120 | else | |
22121 | shlibpath_overrides_runpath=yes | |
22122 | fi | |
22123 | ;; | |
22124 | ||
22125 | os2*) | |
22126 | libname_spec='$name' | |
22127 | need_lib_prefix=no | |
22128 | library_names_spec='$libname.dll $libname.a' | |
22129 | dynamic_linker='OS/2 ld.exe' | |
22130 | shlibpath_var=LIBPATH | |
22131 | ;; | |
22132 | ||
22133 | osf3* | osf4* | osf5*) | |
22134 | version_type=osf | |
22135 | need_lib_prefix=no | |
22136 | need_version=no | |
22137 | soname_spec='${libname}${release}.so' | |
22138 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' | |
22139 | shlibpath_var=LD_LIBRARY_PATH | |
22140 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
22141 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
22142 | ;; | |
22143 | ||
22144 | sco3.2v5*) | |
22145 | version_type=osf | |
22146 | soname_spec='${libname}${release}.so$major' | |
22147 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
22148 | shlibpath_var=LD_LIBRARY_PATH | |
22149 | ;; | |
22150 | ||
22151 | solaris*) | |
22152 | version_type=linux | |
22153 | need_lib_prefix=no | |
22154 | need_version=no | |
22155 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
22156 | soname_spec='${libname}${release}.so$major' | |
22157 | shlibpath_var=LD_LIBRARY_PATH | |
22158 | shlibpath_overrides_runpath=yes | |
22159 | hardcode_into_libs=yes | |
22160 | # ldd complains unless libraries are executable | |
22161 | postinstall_cmds='chmod +x $lib' | |
22162 | ;; | |
22163 | ||
22164 | sunos4*) | |
22165 | version_type=sunos | |
22166 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' | |
22167 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
22168 | shlibpath_var=LD_LIBRARY_PATH | |
22169 | shlibpath_overrides_runpath=yes | |
22170 | if test "$with_gnu_ld" = yes; then | |
22171 | need_lib_prefix=no | |
22172 | fi | |
22173 | need_version=yes | |
22174 | ;; | |
22175 | ||
22176 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
22177 | version_type=linux | |
22178 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
22179 | soname_spec='${libname}${release}.so$major' | |
22180 | shlibpath_var=LD_LIBRARY_PATH | |
22181 | case $host_vendor in | |
22182 | sni) | |
22183 | shlibpath_overrides_runpath=no | |
22184 | ;; | |
22185 | motorola) | |
22186 | need_lib_prefix=no | |
22187 | need_version=no | |
22188 | shlibpath_overrides_runpath=no | |
22189 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
22190 | ;; | |
22191 | esac | |
22192 | ;; | |
22193 | ||
22194 | sysv4*MP*) | |
22195 | if test -d /usr/nec ;then | |
22196 | version_type=linux | |
22197 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' | |
22198 | soname_spec='$libname.so.$major' | |
22199 | shlibpath_var=LD_LIBRARY_PATH | |
22200 | fi | |
22201 | ;; | |
22202 | ||
22203 | uts4*) | |
22204 | version_type=linux | |
22205 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | |
22206 | soname_spec='${libname}${release}.so$major' | |
22207 | shlibpath_var=LD_LIBRARY_PATH | |
22208 | ;; | |
22209 | ||
22210 | *) | |
22211 | dynamic_linker=no | |
22212 | ;; | |
22213 | esac | |
e61fbf76 | 22214 | echo "$as_me:22214: result: $dynamic_linker" >&5 |
50850385 TJ |
22215 | echo "${ECHO_T}$dynamic_linker" >&6 |
22216 | test "$dynamic_linker" = no && can_build_shared=no | |
22217 | ||
22218 | if test "x$enable_dlopen" != xyes; then | |
22219 | enable_dlopen=unknown | |
22220 | enable_dlopen_self=unknown | |
22221 | enable_dlopen_self_static=unknown | |
22222 | else | |
22223 | lt_cv_dlopen=no | |
22224 | lt_cv_dlopen_libs= | |
22225 | ||
22226 | case $host_os in | |
22227 | beos*) | |
22228 | lt_cv_dlopen="load_add_on" | |
22229 | lt_cv_dlopen_libs= | |
22230 | lt_cv_dlopen_self=yes | |
22231 | ;; | |
22232 | ||
22233 | cygwin* | mingw* | pw32*) | |
22234 | lt_cv_dlopen="LoadLibrary" | |
22235 | lt_cv_dlopen_libs= | |
22236 | ;; | |
22237 | ||
22238 | *) | |
e61fbf76 | 22239 | echo "$as_me:22239: checking for shl_load" >&5 |
50850385 TJ |
22240 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
22241 | if test "${ac_cv_func_shl_load+set}" = set; then | |
22242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22243 | else | |
22244 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 22245 | #line 22245 "configure" |
50850385 TJ |
22246 | #include "confdefs.h" |
22247 | /* System header to define __stub macros and hopefully few prototypes, | |
22248 | which can conflict with char shl_load (); below. */ | |
22249 | #include <assert.h> | |
22250 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22251 | #ifdef __cplusplus | |
22252 | extern "C" | |
22253 | #endif | |
22254 | /* We use char because int might match the return type of a gcc2 | |
22255 | builtin and then its argument prototype would still apply. */ | |
22256 | char shl_load (); | |
22257 | char (*f) (); | |
22258 | ||
50850385 TJ |
22259 | int |
22260 | main () | |
22261 | { | |
22262 | /* The GNU C library defines this for functions which it implements | |
22263 | to always fail with ENOSYS. Some functions are actually named | |
22264 | something starting with __ and the normal name is an alias. */ | |
22265 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
22266 | choke me | |
22267 | #else | |
22268 | f = shl_load; | |
22269 | #endif | |
22270 | ||
22271 | ; | |
22272 | return 0; | |
22273 | } | |
22274 | _ACEOF | |
22275 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 22276 | if { (eval echo "$as_me:22276: \"$ac_link\"") >&5 |
50850385 TJ |
22277 | (eval $ac_link) 2>&5 |
22278 | ac_status=$? | |
e61fbf76 | 22279 | echo "$as_me:22279: \$? = $ac_status" >&5 |
50850385 TJ |
22280 | (exit $ac_status); } && |
22281 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 22282 | { (eval echo "$as_me:22282: \"$ac_try\"") >&5 |
50850385 TJ |
22283 | (eval $ac_try) 2>&5 |
22284 | ac_status=$? | |
e61fbf76 | 22285 | echo "$as_me:22285: \$? = $ac_status" >&5 |
50850385 TJ |
22286 | (exit $ac_status); }; }; then |
22287 | ac_cv_func_shl_load=yes | |
22288 | else | |
22289 | echo "$as_me: failed program was:" >&5 | |
22290 | cat conftest.$ac_ext >&5 | |
22291 | ac_cv_func_shl_load=no | |
22292 | fi | |
22293 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22294 | fi | |
e61fbf76 | 22295 | echo "$as_me:22295: result: $ac_cv_func_shl_load" >&5 |
50850385 TJ |
22296 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
22297 | if test $ac_cv_func_shl_load = yes; then | |
22298 | lt_cv_dlopen="shl_load" | |
22299 | else | |
e61fbf76 | 22300 | echo "$as_me:22300: checking for shl_load in -ldld" >&5 |
50850385 TJ |
22301 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
22302 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
22303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22304 | else | |
22305 | ac_check_lib_save_LIBS=$LIBS | |
22306 | LIBS="-ldld $LIBS" | |
22307 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 22308 | #line 22308 "configure" |
50850385 TJ |
22309 | #include "confdefs.h" |
22310 | ||
22311 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22312 | #ifdef __cplusplus | |
22313 | extern "C" | |
22314 | #endif | |
22315 | /* We use char because int might match the return type of a gcc2 | |
22316 | builtin and then its argument prototype would still apply. */ | |
22317 | char shl_load (); | |
50850385 TJ |
22318 | int |
22319 | main () | |
22320 | { | |
22321 | shl_load (); | |
22322 | ; | |
22323 | return 0; | |
22324 | } | |
22325 | _ACEOF | |
22326 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 22327 | if { (eval echo "$as_me:22327: \"$ac_link\"") >&5 |
50850385 TJ |
22328 | (eval $ac_link) 2>&5 |
22329 | ac_status=$? | |
e61fbf76 | 22330 | echo "$as_me:22330: \$? = $ac_status" >&5 |
50850385 TJ |
22331 | (exit $ac_status); } && |
22332 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 22333 | { (eval echo "$as_me:22333: \"$ac_try\"") >&5 |
50850385 TJ |
22334 | (eval $ac_try) 2>&5 |
22335 | ac_status=$? | |
e61fbf76 | 22336 | echo "$as_me:22336: \$? = $ac_status" >&5 |
50850385 TJ |
22337 | (exit $ac_status); }; }; then |
22338 | ac_cv_lib_dld_shl_load=yes | |
22339 | else | |
22340 | echo "$as_me: failed program was:" >&5 | |
22341 | cat conftest.$ac_ext >&5 | |
22342 | ac_cv_lib_dld_shl_load=no | |
22343 | fi | |
22344 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22345 | LIBS=$ac_check_lib_save_LIBS | |
22346 | fi | |
e61fbf76 | 22347 | echo "$as_me:22347: result: $ac_cv_lib_dld_shl_load" >&5 |
50850385 TJ |
22348 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
22349 | if test $ac_cv_lib_dld_shl_load = yes; then | |
22350 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
22351 | else | |
e61fbf76 | 22352 | echo "$as_me:22352: checking for dlopen" >&5 |
50850385 TJ |
22353 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
22354 | if test "${ac_cv_func_dlopen+set}" = set; then | |
22355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22356 | else | |
22357 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 22358 | #line 22358 "configure" |
50850385 TJ |
22359 | #include "confdefs.h" |
22360 | /* System header to define __stub macros and hopefully few prototypes, | |
22361 | which can conflict with char dlopen (); below. */ | |
22362 | #include <assert.h> | |
22363 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22364 | #ifdef __cplusplus | |
22365 | extern "C" | |
22366 | #endif | |
22367 | /* We use char because int might match the return type of a gcc2 | |
22368 | builtin and then its argument prototype would still apply. */ | |
22369 | char dlopen (); | |
22370 | char (*f) (); | |
22371 | ||
50850385 TJ |
22372 | int |
22373 | main () | |
22374 | { | |
22375 | /* The GNU C library defines this for functions which it implements | |
22376 | to always fail with ENOSYS. Some functions are actually named | |
22377 | something starting with __ and the normal name is an alias. */ | |
22378 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
22379 | choke me | |
22380 | #else | |
22381 | f = dlopen; | |
22382 | #endif | |
22383 | ||
22384 | ; | |
22385 | return 0; | |
22386 | } | |
22387 | _ACEOF | |
22388 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 22389 | if { (eval echo "$as_me:22389: \"$ac_link\"") >&5 |
50850385 TJ |
22390 | (eval $ac_link) 2>&5 |
22391 | ac_status=$? | |
e61fbf76 | 22392 | echo "$as_me:22392: \$? = $ac_status" >&5 |
50850385 TJ |
22393 | (exit $ac_status); } && |
22394 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 22395 | { (eval echo "$as_me:22395: \"$ac_try\"") >&5 |
50850385 TJ |
22396 | (eval $ac_try) 2>&5 |
22397 | ac_status=$? | |
e61fbf76 | 22398 | echo "$as_me:22398: \$? = $ac_status" >&5 |
50850385 TJ |
22399 | (exit $ac_status); }; }; then |
22400 | ac_cv_func_dlopen=yes | |
22401 | else | |
22402 | echo "$as_me: failed program was:" >&5 | |
22403 | cat conftest.$ac_ext >&5 | |
22404 | ac_cv_func_dlopen=no | |
22405 | fi | |
22406 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22407 | fi | |
e61fbf76 | 22408 | echo "$as_me:22408: result: $ac_cv_func_dlopen" >&5 |
50850385 TJ |
22409 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
22410 | if test $ac_cv_func_dlopen = yes; then | |
22411 | lt_cv_dlopen="dlopen" | |
22412 | else | |
e61fbf76 | 22413 | echo "$as_me:22413: checking for dlopen in -ldl" >&5 |
50850385 TJ |
22414 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
22415 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
22416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22417 | else | |
22418 | ac_check_lib_save_LIBS=$LIBS | |
22419 | LIBS="-ldl $LIBS" | |
22420 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 22421 | #line 22421 "configure" |
50850385 TJ |
22422 | #include "confdefs.h" |
22423 | ||
22424 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22425 | #ifdef __cplusplus | |
22426 | extern "C" | |
22427 | #endif | |
22428 | /* We use char because int might match the return type of a gcc2 | |
22429 | builtin and then its argument prototype would still apply. */ | |
22430 | char dlopen (); | |
50850385 TJ |
22431 | int |
22432 | main () | |
22433 | { | |
22434 | dlopen (); | |
22435 | ; | |
22436 | return 0; | |
22437 | } | |
22438 | _ACEOF | |
22439 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 22440 | if { (eval echo "$as_me:22440: \"$ac_link\"") >&5 |
50850385 TJ |
22441 | (eval $ac_link) 2>&5 |
22442 | ac_status=$? | |
e61fbf76 | 22443 | echo "$as_me:22443: \$? = $ac_status" >&5 |
50850385 TJ |
22444 | (exit $ac_status); } && |
22445 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 22446 | { (eval echo "$as_me:22446: \"$ac_try\"") >&5 |
50850385 TJ |
22447 | (eval $ac_try) 2>&5 |
22448 | ac_status=$? | |
e61fbf76 | 22449 | echo "$as_me:22449: \$? = $ac_status" >&5 |
50850385 TJ |
22450 | (exit $ac_status); }; }; then |
22451 | ac_cv_lib_dl_dlopen=yes | |
22452 | else | |
22453 | echo "$as_me: failed program was:" >&5 | |
22454 | cat conftest.$ac_ext >&5 | |
22455 | ac_cv_lib_dl_dlopen=no | |
22456 | fi | |
22457 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22458 | LIBS=$ac_check_lib_save_LIBS | |
22459 | fi | |
e61fbf76 | 22460 | echo "$as_me:22460: result: $ac_cv_lib_dl_dlopen" >&5 |
50850385 TJ |
22461 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
22462 | if test $ac_cv_lib_dl_dlopen = yes; then | |
22463 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
22464 | else | |
e61fbf76 | 22465 | echo "$as_me:22465: checking for dlopen in -lsvld" >&5 |
50850385 TJ |
22466 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
22467 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
22468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22469 | else | |
22470 | ac_check_lib_save_LIBS=$LIBS | |
22471 | LIBS="-lsvld $LIBS" | |
22472 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 22473 | #line 22473 "configure" |
50850385 TJ |
22474 | #include "confdefs.h" |
22475 | ||
22476 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22477 | #ifdef __cplusplus | |
22478 | extern "C" | |
22479 | #endif | |
22480 | /* We use char because int might match the return type of a gcc2 | |
22481 | builtin and then its argument prototype would still apply. */ | |
22482 | char dlopen (); | |
50850385 TJ |
22483 | int |
22484 | main () | |
22485 | { | |
22486 | dlopen (); | |
22487 | ; | |
22488 | return 0; | |
22489 | } | |
22490 | _ACEOF | |
22491 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 22492 | if { (eval echo "$as_me:22492: \"$ac_link\"") >&5 |
50850385 TJ |
22493 | (eval $ac_link) 2>&5 |
22494 | ac_status=$? | |
e61fbf76 | 22495 | echo "$as_me:22495: \$? = $ac_status" >&5 |
50850385 TJ |
22496 | (exit $ac_status); } && |
22497 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 22498 | { (eval echo "$as_me:22498: \"$ac_try\"") >&5 |
50850385 TJ |
22499 | (eval $ac_try) 2>&5 |
22500 | ac_status=$? | |
e61fbf76 | 22501 | echo "$as_me:22501: \$? = $ac_status" >&5 |
50850385 TJ |
22502 | (exit $ac_status); }; }; then |
22503 | ac_cv_lib_svld_dlopen=yes | |
22504 | else | |
22505 | echo "$as_me: failed program was:" >&5 | |
22506 | cat conftest.$ac_ext >&5 | |
22507 | ac_cv_lib_svld_dlopen=no | |
22508 | fi | |
22509 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22510 | LIBS=$ac_check_lib_save_LIBS | |
22511 | fi | |
e61fbf76 | 22512 | echo "$as_me:22512: result: $ac_cv_lib_svld_dlopen" >&5 |
50850385 TJ |
22513 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
22514 | if test $ac_cv_lib_svld_dlopen = yes; then | |
22515 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
22516 | else | |
e61fbf76 | 22517 | echo "$as_me:22517: checking for dld_link in -ldld" >&5 |
50850385 TJ |
22518 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
22519 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
22520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22521 | else | |
22522 | ac_check_lib_save_LIBS=$LIBS | |
22523 | LIBS="-ldld $LIBS" | |
22524 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 22525 | #line 22525 "configure" |
50850385 TJ |
22526 | #include "confdefs.h" |
22527 | ||
22528 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22529 | #ifdef __cplusplus | |
22530 | extern "C" | |
22531 | #endif | |
22532 | /* We use char because int might match the return type of a gcc2 | |
22533 | builtin and then its argument prototype would still apply. */ | |
22534 | char dld_link (); | |
50850385 TJ |
22535 | int |
22536 | main () | |
22537 | { | |
22538 | dld_link (); | |
22539 | ; | |
22540 | return 0; | |
22541 | } | |
22542 | _ACEOF | |
22543 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 22544 | if { (eval echo "$as_me:22544: \"$ac_link\"") >&5 |
50850385 TJ |
22545 | (eval $ac_link) 2>&5 |
22546 | ac_status=$? | |
e61fbf76 | 22547 | echo "$as_me:22547: \$? = $ac_status" >&5 |
50850385 TJ |
22548 | (exit $ac_status); } && |
22549 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 22550 | { (eval echo "$as_me:22550: \"$ac_try\"") >&5 |
50850385 TJ |
22551 | (eval $ac_try) 2>&5 |
22552 | ac_status=$? | |
e61fbf76 | 22553 | echo "$as_me:22553: \$? = $ac_status" >&5 |
50850385 TJ |
22554 | (exit $ac_status); }; }; then |
22555 | ac_cv_lib_dld_dld_link=yes | |
22556 | else | |
22557 | echo "$as_me: failed program was:" >&5 | |
22558 | cat conftest.$ac_ext >&5 | |
22559 | ac_cv_lib_dld_dld_link=no | |
22560 | fi | |
22561 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22562 | LIBS=$ac_check_lib_save_LIBS | |
22563 | fi | |
e61fbf76 | 22564 | echo "$as_me:22564: result: $ac_cv_lib_dld_dld_link" >&5 |
50850385 TJ |
22565 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
22566 | if test $ac_cv_lib_dld_dld_link = yes; then | |
22567 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
22568 | fi | |
22569 | ||
50850385 TJ |
22570 | fi |
22571 | ||
50850385 TJ |
22572 | fi |
22573 | ||
50850385 TJ |
22574 | fi |
22575 | ||
50850385 TJ |
22576 | fi |
22577 | ||
50850385 TJ |
22578 | fi |
22579 | ||
22580 | ;; | |
22581 | esac | |
22582 | ||
22583 | if test "x$lt_cv_dlopen" != xno; then | |
22584 | enable_dlopen=yes | |
22585 | else | |
22586 | enable_dlopen=no | |
22587 | fi | |
22588 | ||
22589 | case $lt_cv_dlopen in | |
22590 | dlopen) | |
22591 | save_CPPFLAGS="$CPPFLAGS" | |
22592 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
22593 | ||
22594 | save_LDFLAGS="$LDFLAGS" | |
22595 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
22596 | ||
22597 | save_LIBS="$LIBS" | |
22598 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
22599 | ||
e61fbf76 | 22600 | echo "$as_me:22600: checking whether a program can dlopen itself" >&5 |
50850385 TJ |
22601 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
22602 | if test "${lt_cv_dlopen_self+set}" = set; then | |
22603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22604 | else | |
22605 | if test "$cross_compiling" = yes; then : | |
22606 | lt_cv_dlopen_self=cross | |
22607 | else | |
22608 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
22609 | lt_status=$lt_dlunknown | |
22610 | cat > conftest.$ac_ext <<EOF | |
e61fbf76 | 22611 | #line 22611 "configure" |
50850385 TJ |
22612 | #include "confdefs.h" |
22613 | ||
22614 | #if HAVE_DLFCN_H | |
22615 | #include <dlfcn.h> | |
22616 | #endif | |
22617 | ||
22618 | #include <stdio.h> | |
22619 | ||
22620 | #ifdef RTLD_GLOBAL | |
22621 | # define LT_DLGLOBAL RTLD_GLOBAL | |
22622 | #else | |
22623 | # ifdef DL_GLOBAL | |
22624 | # define LT_DLGLOBAL DL_GLOBAL | |
22625 | # else | |
22626 | # define LT_DLGLOBAL 0 | |
22627 | # endif | |
22628 | #endif | |
22629 | ||
22630 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
22631 | find out it does not work in some platform. */ | |
22632 | #ifndef LT_DLLAZY_OR_NOW | |
22633 | # ifdef RTLD_LAZY | |
22634 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
22635 | # else | |
22636 | # ifdef DL_LAZY | |
22637 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
22638 | # else | |
22639 | # ifdef RTLD_NOW | |
22640 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
22641 | # else | |
22642 | # ifdef DL_NOW | |
22643 | # define LT_DLLAZY_OR_NOW DL_NOW | |
22644 | # else | |
22645 | # define LT_DLLAZY_OR_NOW 0 | |
22646 | # endif | |
22647 | # endif | |
22648 | # endif | |
22649 | # endif | |
22650 | #endif | |
22651 | ||
22652 | #ifdef __cplusplus | |
22653 | extern "C" void exit (int); | |
22654 | #endif | |
22655 | ||
22656 | void fnord() { int i=42;} | |
22657 | int main () | |
22658 | { | |
22659 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
22660 | int status = $lt_dlunknown; | |
22661 | ||
22662 | if (self) | |
22663 | { | |
22664 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
22665 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
22666 | /* dlclose (self); */ | |
22667 | } | |
22668 | ||
22669 | exit (status); | |
22670 | } | |
22671 | EOF | |
e61fbf76 | 22672 | if { (eval echo "$as_me:22672: \"$ac_link\"") >&5 |
50850385 TJ |
22673 | (eval $ac_link) 2>&5 |
22674 | ac_status=$? | |
e61fbf76 | 22675 | echo "$as_me:22675: \$? = $ac_status" >&5 |
50850385 TJ |
22676 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
22677 | (./conftest; exit; ) 2>/dev/null | |
22678 | lt_status=$? | |
22679 | case x$lt_status in | |
22680 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
22681 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
22682 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | |
22683 | esac | |
22684 | else : | |
22685 | # compilation failed | |
22686 | lt_cv_dlopen_self=no | |
22687 | fi | |
22688 | fi | |
22689 | rm -fr conftest* | |
22690 | ||
50850385 | 22691 | fi |
e61fbf76 | 22692 | echo "$as_me:22692: result: $lt_cv_dlopen_self" >&5 |
50850385 TJ |
22693 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
22694 | ||
22695 | if test "x$lt_cv_dlopen_self" = xyes; then | |
22696 | LDFLAGS="$LDFLAGS $link_static_flag" | |
e61fbf76 | 22697 | echo "$as_me:22697: checking whether a statically linked program can dlopen itself" >&5 |
50850385 TJ |
22698 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
22699 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
22700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22701 | else | |
22702 | if test "$cross_compiling" = yes; then : | |
22703 | lt_cv_dlopen_self_static=cross | |
22704 | else | |
22705 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
22706 | lt_status=$lt_dlunknown | |
22707 | cat > conftest.$ac_ext <<EOF | |
e61fbf76 | 22708 | #line 22708 "configure" |
50850385 TJ |
22709 | #include "confdefs.h" |
22710 | ||
22711 | #if HAVE_DLFCN_H | |
22712 | #include <dlfcn.h> | |
22713 | #endif | |
22714 | ||
22715 | #include <stdio.h> | |
22716 | ||
22717 | #ifdef RTLD_GLOBAL | |
22718 | # define LT_DLGLOBAL RTLD_GLOBAL | |
22719 | #else | |
22720 | # ifdef DL_GLOBAL | |
22721 | # define LT_DLGLOBAL DL_GLOBAL | |
22722 | # else | |
22723 | # define LT_DLGLOBAL 0 | |
22724 | # endif | |
22725 | #endif | |
22726 | ||
22727 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
22728 | find out it does not work in some platform. */ | |
22729 | #ifndef LT_DLLAZY_OR_NOW | |
22730 | # ifdef RTLD_LAZY | |
22731 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
22732 | # else | |
22733 | # ifdef DL_LAZY | |
22734 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
22735 | # else | |
22736 | # ifdef RTLD_NOW | |
22737 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
22738 | # else | |
22739 | # ifdef DL_NOW | |
22740 | # define LT_DLLAZY_OR_NOW DL_NOW | |
22741 | # else | |
22742 | # define LT_DLLAZY_OR_NOW 0 | |
22743 | # endif | |
22744 | # endif | |
22745 | # endif | |
22746 | # endif | |
22747 | #endif | |
22748 | ||
22749 | #ifdef __cplusplus | |
22750 | extern "C" void exit (int); | |
22751 | #endif | |
22752 | ||
22753 | void fnord() { int i=42;} | |
22754 | int main () | |
22755 | { | |
22756 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
22757 | int status = $lt_dlunknown; | |
22758 | ||
22759 | if (self) | |
22760 | { | |
22761 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
22762 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
22763 | /* dlclose (self); */ | |
22764 | } | |
22765 | ||
22766 | exit (status); | |
22767 | } | |
22768 | EOF | |
e61fbf76 | 22769 | if { (eval echo "$as_me:22769: \"$ac_link\"") >&5 |
50850385 TJ |
22770 | (eval $ac_link) 2>&5 |
22771 | ac_status=$? | |
e61fbf76 | 22772 | echo "$as_me:22772: \$? = $ac_status" >&5 |
50850385 TJ |
22773 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
22774 | (./conftest; exit; ) 2>/dev/null | |
22775 | lt_status=$? | |
22776 | case x$lt_status in | |
22777 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
22778 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
22779 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | |
22780 | esac | |
22781 | else : | |
22782 | # compilation failed | |
22783 | lt_cv_dlopen_self_static=no | |
22784 | fi | |
22785 | fi | |
22786 | rm -fr conftest* | |
22787 | ||
50850385 | 22788 | fi |
e61fbf76 | 22789 | echo "$as_me:22789: result: $lt_cv_dlopen_self_static" >&5 |
50850385 TJ |
22790 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
22791 | fi | |
22792 | ||
22793 | CPPFLAGS="$save_CPPFLAGS" | |
22794 | LDFLAGS="$save_LDFLAGS" | |
22795 | LIBS="$save_LIBS" | |
22796 | ;; | |
22797 | esac | |
22798 | ||
22799 | case $lt_cv_dlopen_self in | |
22800 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
22801 | *) enable_dlopen_self=unknown ;; | |
22802 | esac | |
22803 | ||
22804 | case $lt_cv_dlopen_self_static in | |
22805 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
22806 | *) enable_dlopen_self_static=unknown ;; | |
22807 | esac | |
22808 | fi | |
22809 | ||
50850385 TJ |
22810 | # The else clause should only fire when bootstrapping the |
22811 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
22812 | # with your package, and you will get complaints that there are | |
22813 | # no rules to generate ltmain.sh. | |
22814 | if test -f "$ltmain"; then | |
22815 | # Now quote all the things that may contain metacharacters while being | |
22816 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
22817 | # variables and quote the copies for generation of the libtool script. | |
22818 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \ | |
22819 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
22820 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
22821 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
22822 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
22823 | lt_cv_sys_global_symbol_to_c_name_address \ | |
22824 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
22825 | old_postinstall_cmds old_postuninstall_cmds \ | |
22826 | compiler_GCJ \ | |
22827 | CC_GCJ \ | |
22828 | LD_GCJ \ | |
22829 | lt_prog_compiler_wl_GCJ \ | |
22830 | lt_prog_compiler_pic_GCJ \ | |
22831 | lt_prog_compiler_static_GCJ \ | |
22832 | lt_prog_compiler_no_builtin_flag_GCJ \ | |
22833 | export_dynamic_flag_spec_GCJ \ | |
22834 | thread_safe_flag_spec_GCJ \ | |
22835 | whole_archive_flag_spec_GCJ \ | |
22836 | old_archive_cmds_GCJ \ | |
22837 | old_archive_from_new_cmds_GCJ \ | |
22838 | predep_objects_GCJ \ | |
22839 | postdep_objects_GCJ \ | |
22840 | predeps_GCJ \ | |
22841 | postdeps_GCJ \ | |
22842 | compiler_lib_search_path_GCJ \ | |
22843 | archive_cmds_GCJ \ | |
22844 | archive_expsym_cmds_GCJ \ | |
22845 | postinstall_cmds_GCJ \ | |
22846 | postuninstall_cmds_GCJ \ | |
22847 | old_archive_from_expsyms_cmds_GCJ \ | |
22848 | allow_undefined_flag_GCJ \ | |
22849 | no_undefined_flag_GCJ \ | |
22850 | export_symbols_cmds_GCJ \ | |
22851 | hardcode_libdir_flag_spec_GCJ \ | |
22852 | hardcode_libdir_separator_GCJ \ | |
22853 | lt_cv_prog_compiler_c_o_GCJ \ | |
22854 | exclude_expsyms_GCJ \ | |
22855 | include_expsyms_GCJ; do | |
22856 | ||
22857 | case $var in | |
22858 | old_archive_cmds_GCJ | \ | |
22859 | old_archive_from_new_cmds_GCJ | \ | |
22860 | archive_cmds_GCJ | \ | |
22861 | archive_expsym_cmds_GCJ | \ | |
22862 | old_archive_from_expsyms_cmds_GCJ | \ | |
22863 | export_symbols_cmds_GCJ | \ | |
22864 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
22865 | postinstall_cmds | postuninstall_cmds | \ | |
22866 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
22867 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
22868 | # Double-quote double-evaled strings. | |
22869 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
22870 | ;; | |
22871 | *) | |
22872 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
22873 | ;; | |
22874 | esac | |
22875 | done | |
22876 | ||
22877 | case $lt_echo in | |
22878 | *'\$0 --fallback-echo"') | |
22879 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
22880 | ;; | |
22881 | esac | |
22882 | ||
22883 | cfgfile="$ofile" | |
22884 | ||
22885 | cat <<__EOF__ >> "$cfgfile" | |
22886 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
22887 | ||
22888 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
22889 | ||
22890 | # Shell to use when invoking shell scripts. | |
22891 | SHELL=$lt_SHELL | |
22892 | ||
22893 | # Whether or not to build shared libraries. | |
22894 | build_libtool_libs=$enable_shared | |
22895 | ||
22896 | # Whether or not to build static libraries. | |
22897 | build_old_libs=$enable_static | |
22898 | ||
22899 | # Whether or not to add -lc for building shared libraries. | |
22900 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ | |
22901 | ||
22902 | # Whether or not to optimize for fast installation. | |
22903 | fast_install=$enable_fast_install | |
22904 | ||
22905 | # The host system. | |
22906 | host_alias=$host_alias | |
22907 | host=$host | |
22908 | ||
22909 | # An echo program that does not interpret backslashes. | |
22910 | echo=$lt_echo | |
22911 | ||
22912 | # The archiver. | |
22913 | AR=$lt_AR | |
22914 | AR_FLAGS=$lt_AR_FLAGS | |
22915 | ||
22916 | # A C compiler. | |
22917 | LTCC=$lt_LTCC | |
22918 | ||
22919 | # A language-specific compiler. | |
22920 | CC=$lt_compiler_GCJ | |
22921 | ||
22922 | # Is the compiler the GNU C compiler? | |
22923 | with_gcc=$GCC_GCJ | |
22924 | ||
22925 | # The linker used to build libraries. | |
22926 | LD=$lt_LD_GCJ | |
22927 | ||
22928 | # Whether we need hard or soft links. | |
22929 | LN_S=$lt_LN_S | |
22930 | ||
22931 | # A BSD-compatible nm program. | |
22932 | NM=$lt_NM | |
22933 | ||
22934 | # A sed program that does not truncate output. | |
22935 | SED=$lt_SED | |
22936 | ||
22937 | # A symbol stripping program | |
22938 | STRIP=$STRIP | |
22939 | ||
22940 | # Used to examine libraries when file_magic_cmd begins "file" | |
22941 | MAGIC_CMD=$MAGIC_CMD | |
22942 | ||
22943 | # Used on cygwin: DLL creation program. | |
22944 | DLLTOOL="$DLLTOOL" | |
22945 | ||
22946 | # Used on cygwin: object dumper. | |
22947 | OBJDUMP="$OBJDUMP" | |
22948 | ||
22949 | # Used on cygwin: assembler. | |
22950 | AS="$AS" | |
22951 | ||
22952 | # The name of the directory that contains temporary libtool files. | |
22953 | objdir=$objdir | |
22954 | ||
22955 | # How to create reloadable object files. | |
22956 | reload_flag=$lt_reload_flag | |
22957 | reload_cmds=$lt_reload_cmds | |
22958 | ||
22959 | # How to pass a linker flag through the compiler. | |
22960 | wl=$lt_lt_prog_compiler_wl_GCJ | |
22961 | ||
22962 | # Object file suffix (normally "o"). | |
22963 | objext="$ac_objext" | |
22964 | ||
22965 | # Old archive suffix (normally "a"). | |
22966 | libext="$libext" | |
22967 | ||
22968 | # Executable file suffix (normally ""). | |
22969 | exeext="$exeext" | |
22970 | ||
22971 | # Additional compiler flags for building library objects. | |
22972 | pic_flag=$lt_lt_prog_compiler_pic_GCJ | |
22973 | pic_mode=$pic_mode | |
22974 | ||
22975 | # What is the maximum length of a command? | |
22976 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
22977 | ||
22978 | # Does compiler simultaneously support -c and -o options? | |
22979 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | |
22980 | ||
22981 | # Must we lock files when doing compilation ? | |
22982 | need_locks=$lt_need_locks | |
22983 | ||
22984 | # Do we need the lib prefix for modules? | |
22985 | need_lib_prefix=$need_lib_prefix | |
22986 | ||
22987 | # Do we need a version for libraries? | |
22988 | need_version=$need_version | |
22989 | ||
22990 | # Whether dlopen is supported. | |
22991 | dlopen_support=$enable_dlopen | |
22992 | ||
22993 | # Whether dlopen of programs is supported. | |
22994 | dlopen_self=$enable_dlopen_self | |
22995 | ||
22996 | # Whether dlopen of statically linked programs is supported. | |
22997 | dlopen_self_static=$enable_dlopen_self_static | |
22998 | ||
22999 | # Compiler flag to prevent dynamic linking. | |
23000 | link_static_flag=$lt_lt_prog_compiler_static_GCJ | |
23001 | ||
23002 | # Compiler flag to turn off builtin functions. | |
23003 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | |
23004 | ||
23005 | # Compiler flag to allow reflexive dlopens. | |
23006 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | |
23007 | ||
23008 | # Compiler flag to generate shared objects directly from archives. | |
23009 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | |
23010 | ||
23011 | # Compiler flag to generate thread-safe objects. | |
23012 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | |
23013 | ||
23014 | # Library versioning type. | |
23015 | version_type=$version_type | |
23016 | ||
23017 | # Format of library name prefix. | |
23018 | libname_spec=$lt_libname_spec | |
23019 | ||
23020 | # List of archive names. First name is the real one, the rest are links. | |
23021 | # The last name is the one that the linker finds with -lNAME. | |
23022 | library_names_spec=$lt_library_names_spec | |
23023 | ||
23024 | # The coded name of the library, if different from the real name. | |
23025 | soname_spec=$lt_soname_spec | |
23026 | ||
23027 | # Commands used to build and install an old-style archive. | |
23028 | RANLIB=$lt_RANLIB | |
23029 | old_archive_cmds=$lt_old_archive_cmds_GCJ | |
23030 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
23031 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
23032 | ||
23033 | # Create an old-style archive from a shared archive. | |
23034 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | |
23035 | ||
23036 | # Create a temporary old-style archive to link instead of a shared archive. | |
23037 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | |
23038 | ||
23039 | # Commands used to build and install a shared archive. | |
23040 | archive_cmds=$lt_archive_cmds_GCJ | |
23041 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | |
23042 | postinstall_cmds=$lt_postinstall_cmds | |
23043 | postuninstall_cmds=$lt_postuninstall_cmds | |
23044 | ||
23045 | # Commands to strip libraries. | |
23046 | old_striplib=$lt_old_striplib | |
23047 | striplib=$lt_striplib | |
23048 | ||
23049 | # Dependencies to place before the objects being linked to create a | |
23050 | # shared library. | |
23051 | predep_objects=$lt_predep_objects_GCJ | |
23052 | ||
23053 | # Dependencies to place after the objects being linked to create a | |
23054 | # shared library. | |
23055 | postdep_objects=$lt_postdep_objects_GCJ | |
23056 | ||
23057 | # Dependencies to place before the objects being linked to create a | |
23058 | # shared library. | |
23059 | predeps=$lt_predeps_GCJ | |
23060 | ||
23061 | # Dependencies to place after the objects being linked to create a | |
23062 | # shared library. | |
23063 | postdeps=$lt_postdeps_GCJ | |
23064 | ||
23065 | # The library search path used internally by the compiler when linking | |
23066 | # a shared library. | |
23067 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | |
23068 | ||
23069 | # Method to check whether dependent libraries are shared objects. | |
23070 | deplibs_check_method=$lt_deplibs_check_method | |
23071 | ||
23072 | # Command to use when deplibs_check_method == file_magic. | |
23073 | file_magic_cmd=$lt_file_magic_cmd | |
23074 | ||
23075 | # Flag that allows shared libraries with undefined symbols to be built. | |
23076 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ | |
23077 | ||
23078 | # Flag that forces no undefined symbols. | |
23079 | no_undefined_flag=$lt_no_undefined_flag_GCJ | |
23080 | ||
23081 | # Commands used to finish a libtool library installation in a directory. | |
23082 | finish_cmds=$lt_finish_cmds | |
23083 | ||
23084 | # Same as above, but a single script fragment to be evaled but not shown. | |
23085 | finish_eval=$lt_finish_eval | |
23086 | ||
23087 | # Take the output of nm and produce a listing of raw symbols and C names. | |
23088 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
23089 | ||
23090 | # Transform the output of nm in a proper C declaration | |
23091 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
23092 | ||
23093 | # Transform the output of nm in a C name address pair | |
23094 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
23095 | ||
23096 | # This is the shared library runtime path variable. | |
23097 | runpath_var=$runpath_var | |
23098 | ||
23099 | # This is the shared library path variable. | |
23100 | shlibpath_var=$shlibpath_var | |
23101 | ||
23102 | # Is shlibpath searched before the hard-coded library search path? | |
23103 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
23104 | ||
23105 | # How to hardcode a shared library path into an executable. | |
23106 | hardcode_action=$hardcode_action_GCJ | |
23107 | ||
23108 | # Whether we should hardcode library paths into libraries. | |
23109 | hardcode_into_libs=$hardcode_into_libs | |
23110 | ||
23111 | # Flag to hardcode \$libdir into a binary during linking. | |
23112 | # This must work even if \$libdir does not exist. | |
23113 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | |
23114 | ||
23115 | # Whether we need a single -rpath flag with a separated argument. | |
23116 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | |
23117 | ||
23118 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | |
23119 | # resulting binary. | |
23120 | hardcode_direct=$hardcode_direct_GCJ | |
23121 | ||
23122 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
23123 | # resulting binary. | |
23124 | hardcode_minus_L=$hardcode_minus_L_GCJ | |
23125 | ||
23126 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
23127 | # the resulting binary. | |
23128 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | |
23129 | ||
23130 | # Variables whose values should be saved in libtool wrapper scripts and | |
23131 | # restored at relink time. | |
23132 | variables_saved_for_relink="$variables_saved_for_relink" | |
23133 | ||
23134 | # Whether libtool must link a program against all its dependency libraries. | |
23135 | link_all_deplibs=$link_all_deplibs_GCJ | |
23136 | ||
23137 | # Compile-time system search path for libraries | |
23138 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
23139 | ||
23140 | # Run-time system search path for libraries | |
23141 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
23142 | ||
23143 | # Fix the shell variable \$srcfile for the compiler. | |
23144 | fix_srcfile_path="$fix_srcfile_path_GCJ" | |
23145 | ||
23146 | # Set to yes if exported symbols are required. | |
23147 | always_export_symbols=$always_export_symbols_GCJ | |
23148 | ||
23149 | # The commands to list exported symbols. | |
23150 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ | |
23151 | ||
23152 | # The commands to extract the exported symbol list from a shared archive. | |
23153 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
23154 | ||
23155 | # Symbols that should not be listed in the preloaded symbols. | |
23156 | exclude_expsyms=$lt_exclude_expsyms_GCJ | |
23157 | ||
23158 | # Symbols that must always be exported. | |
23159 | include_expsyms=$lt_include_expsyms_GCJ | |
23160 | ||
23161 | # ### END LIBTOOL TAG CONFIG: $tagname | |
23162 | ||
23163 | __EOF__ | |
23164 | ||
50850385 TJ |
23165 | else |
23166 | # If there is no Makefile yet, we rely on a make rule to execute | |
23167 | # `config.status --recheck' to rerun these tests and create the | |
23168 | # libtool script then. | |
23169 | test -f Makefile && make "$ltmain" | |
23170 | fi | |
23171 | ||
50850385 TJ |
23172 | ac_ext=c |
23173 | ac_cpp='$CPP $CPPFLAGS' | |
23174 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23175 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23176 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
23177 | ||
23178 | CC="$lt_save_CC" | |
23179 | ||
23180 | ;; | |
23181 | ||
23182 | RC) | |
23183 | ||
50850385 TJ |
23184 | # Source file extension for RC test sources. |
23185 | ac_ext=rc | |
23186 | ||
23187 | # Object file extension for compiled RC test sources. | |
23188 | objext=o | |
23189 | objext_RC=$objext | |
23190 | ||
23191 | # Code to be used in simple compile tests | |
23192 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' | |
23193 | ||
23194 | # Code to be used in simple link tests | |
23195 | lt_simple_link_test_code="$lt_simple_compile_test_code" | |
23196 | ||
23197 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
23198 | ||
23199 | # If no C compiler was specified, use CC. | |
23200 | LTCC=${LTCC-"$CC"} | |
23201 | ||
23202 | # Allow CC to be a program name with arguments. | |
23203 | set dummy $CC | |
23204 | compiler="$2" | |
23205 | ||
50850385 TJ |
23206 | # Allow CC to be a program name with arguments. |
23207 | lt_save_CC="$CC" | |
23208 | CC=${RC-"windres"} | |
23209 | set dummy $CC | |
23210 | compiler="$2" | |
23211 | compiler_RC=$CC | |
23212 | lt_cv_prog_compiler_c_o_RC=yes | |
23213 | ||
23214 | # The else clause should only fire when bootstrapping the | |
23215 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
23216 | # with your package, and you will get complaints that there are | |
23217 | # no rules to generate ltmain.sh. | |
23218 | if test -f "$ltmain"; then | |
23219 | # Now quote all the things that may contain metacharacters while being | |
23220 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
23221 | # variables and quote the copies for generation of the libtool script. | |
23222 | for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \ | |
23223 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
23224 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
23225 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
23226 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
23227 | lt_cv_sys_global_symbol_to_c_name_address \ | |
23228 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
23229 | old_postinstall_cmds old_postuninstall_cmds \ | |
23230 | compiler_RC \ | |
23231 | CC_RC \ | |
23232 | LD_RC \ | |
23233 | lt_prog_compiler_wl_RC \ | |
23234 | lt_prog_compiler_pic_RC \ | |
23235 | lt_prog_compiler_static_RC \ | |
23236 | lt_prog_compiler_no_builtin_flag_RC \ | |
23237 | export_dynamic_flag_spec_RC \ | |
23238 | thread_safe_flag_spec_RC \ | |
23239 | whole_archive_flag_spec_RC \ | |
23240 | old_archive_cmds_RC \ | |
23241 | old_archive_from_new_cmds_RC \ | |
23242 | predep_objects_RC \ | |
23243 | postdep_objects_RC \ | |
23244 | predeps_RC \ | |
23245 | postdeps_RC \ | |
23246 | compiler_lib_search_path_RC \ | |
23247 | archive_cmds_RC \ | |
23248 | archive_expsym_cmds_RC \ | |
23249 | postinstall_cmds_RC \ | |
23250 | postuninstall_cmds_RC \ | |
23251 | old_archive_from_expsyms_cmds_RC \ | |
23252 | allow_undefined_flag_RC \ | |
23253 | no_undefined_flag_RC \ | |
23254 | export_symbols_cmds_RC \ | |
23255 | hardcode_libdir_flag_spec_RC \ | |
23256 | hardcode_libdir_separator_RC \ | |
23257 | lt_cv_prog_compiler_c_o_RC \ | |
23258 | exclude_expsyms_RC \ | |
23259 | include_expsyms_RC; do | |
23260 | ||
23261 | case $var in | |
23262 | old_archive_cmds_RC | \ | |
23263 | old_archive_from_new_cmds_RC | \ | |
23264 | archive_cmds_RC | \ | |
23265 | archive_expsym_cmds_RC | \ | |
23266 | old_archive_from_expsyms_cmds_RC | \ | |
23267 | export_symbols_cmds_RC | \ | |
23268 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
23269 | postinstall_cmds | postuninstall_cmds | \ | |
23270 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
23271 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
23272 | # Double-quote double-evaled strings. | |
23273 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
23274 | ;; | |
23275 | *) | |
23276 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
23277 | ;; | |
23278 | esac | |
23279 | done | |
23280 | ||
23281 | case $lt_echo in | |
23282 | *'\$0 --fallback-echo"') | |
23283 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
23284 | ;; | |
23285 | esac | |
23286 | ||
23287 | cfgfile="$ofile" | |
23288 | ||
23289 | cat <<__EOF__ >> "$cfgfile" | |
23290 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
23291 | ||
23292 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
23293 | ||
23294 | # Shell to use when invoking shell scripts. | |
23295 | SHELL=$lt_SHELL | |
23296 | ||
23297 | # Whether or not to build shared libraries. | |
23298 | build_libtool_libs=$enable_shared | |
23299 | ||
23300 | # Whether or not to build static libraries. | |
23301 | build_old_libs=$enable_static | |
23302 | ||
23303 | # Whether or not to add -lc for building shared libraries. | |
23304 | build_libtool_need_lc=$archive_cmds_need_lc_RC | |
23305 | ||
23306 | # Whether or not to optimize for fast installation. | |
23307 | fast_install=$enable_fast_install | |
23308 | ||
23309 | # The host system. | |
23310 | host_alias=$host_alias | |
23311 | host=$host | |
23312 | ||
23313 | # An echo program that does not interpret backslashes. | |
23314 | echo=$lt_echo | |
23315 | ||
23316 | # The archiver. | |
23317 | AR=$lt_AR | |
23318 | AR_FLAGS=$lt_AR_FLAGS | |
23319 | ||
23320 | # A C compiler. | |
23321 | LTCC=$lt_LTCC | |
23322 | ||
23323 | # A language-specific compiler. | |
23324 | CC=$lt_compiler_RC | |
23325 | ||
23326 | # Is the compiler the GNU C compiler? | |
23327 | with_gcc=$GCC_RC | |
23328 | ||
23329 | # The linker used to build libraries. | |
23330 | LD=$lt_LD_RC | |
23331 | ||
23332 | # Whether we need hard or soft links. | |
23333 | LN_S=$lt_LN_S | |
23334 | ||
23335 | # A BSD-compatible nm program. | |
23336 | NM=$lt_NM | |
23337 | ||
23338 | # A sed program that does not truncate output. | |
23339 | SED=$lt_SED | |
23340 | ||
23341 | # A symbol stripping program | |
23342 | STRIP=$STRIP | |
23343 | ||
23344 | # Used to examine libraries when file_magic_cmd begins "file" | |
23345 | MAGIC_CMD=$MAGIC_CMD | |
23346 | ||
23347 | # Used on cygwin: DLL creation program. | |
23348 | DLLTOOL="$DLLTOOL" | |
23349 | ||
23350 | # Used on cygwin: object dumper. | |
23351 | OBJDUMP="$OBJDUMP" | |
23352 | ||
23353 | # Used on cygwin: assembler. | |
23354 | AS="$AS" | |
23355 | ||
23356 | # The name of the directory that contains temporary libtool files. | |
23357 | objdir=$objdir | |
23358 | ||
23359 | # How to create reloadable object files. | |
23360 | reload_flag=$lt_reload_flag | |
23361 | reload_cmds=$lt_reload_cmds | |
23362 | ||
23363 | # How to pass a linker flag through the compiler. | |
23364 | wl=$lt_lt_prog_compiler_wl_RC | |
23365 | ||
23366 | # Object file suffix (normally "o"). | |
23367 | objext="$ac_objext" | |
23368 | ||
23369 | # Old archive suffix (normally "a"). | |
23370 | libext="$libext" | |
23371 | ||
23372 | # Executable file suffix (normally ""). | |
23373 | exeext="$exeext" | |
23374 | ||
23375 | # Additional compiler flags for building library objects. | |
23376 | pic_flag=$lt_lt_prog_compiler_pic_RC | |
23377 | pic_mode=$pic_mode | |
23378 | ||
23379 | # What is the maximum length of a command? | |
23380 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
23381 | ||
23382 | # Does compiler simultaneously support -c and -o options? | |
23383 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | |
23384 | ||
23385 | # Must we lock files when doing compilation ? | |
23386 | need_locks=$lt_need_locks | |
23387 | ||
23388 | # Do we need the lib prefix for modules? | |
23389 | need_lib_prefix=$need_lib_prefix | |
23390 | ||
23391 | # Do we need a version for libraries? | |
23392 | need_version=$need_version | |
23393 | ||
23394 | # Whether dlopen is supported. | |
23395 | dlopen_support=$enable_dlopen | |
23396 | ||
23397 | # Whether dlopen of programs is supported. | |
23398 | dlopen_self=$enable_dlopen_self | |
23399 | ||
23400 | # Whether dlopen of statically linked programs is supported. | |
23401 | dlopen_self_static=$enable_dlopen_self_static | |
23402 | ||
23403 | # Compiler flag to prevent dynamic linking. | |
23404 | link_static_flag=$lt_lt_prog_compiler_static_RC | |
23405 | ||
23406 | # Compiler flag to turn off builtin functions. | |
23407 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | |
23408 | ||
23409 | # Compiler flag to allow reflexive dlopens. | |
23410 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | |
23411 | ||
23412 | # Compiler flag to generate shared objects directly from archives. | |
23413 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | |
23414 | ||
23415 | # Compiler flag to generate thread-safe objects. | |
23416 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | |
23417 | ||
23418 | # Library versioning type. | |
23419 | version_type=$version_type | |
23420 | ||
23421 | # Format of library name prefix. | |
23422 | libname_spec=$lt_libname_spec | |
23423 | ||
23424 | # List of archive names. First name is the real one, the rest are links. | |
23425 | # The last name is the one that the linker finds with -lNAME. | |
23426 | library_names_spec=$lt_library_names_spec | |
23427 | ||
23428 | # The coded name of the library, if different from the real name. | |
23429 | soname_spec=$lt_soname_spec | |
23430 | ||
23431 | # Commands used to build and install an old-style archive. | |
23432 | RANLIB=$lt_RANLIB | |
23433 | old_archive_cmds=$lt_old_archive_cmds_RC | |
23434 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
23435 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
23436 | ||
23437 | # Create an old-style archive from a shared archive. | |
23438 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | |
23439 | ||
23440 | # Create a temporary old-style archive to link instead of a shared archive. | |
23441 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | |
23442 | ||
23443 | # Commands used to build and install a shared archive. | |
23444 | archive_cmds=$lt_archive_cmds_RC | |
23445 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC | |
23446 | postinstall_cmds=$lt_postinstall_cmds | |
23447 | postuninstall_cmds=$lt_postuninstall_cmds | |
23448 | ||
23449 | # Commands to strip libraries. | |
23450 | old_striplib=$lt_old_striplib | |
23451 | striplib=$lt_striplib | |
23452 | ||
23453 | # Dependencies to place before the objects being linked to create a | |
23454 | # shared library. | |
23455 | predep_objects=$lt_predep_objects_RC | |
23456 | ||
23457 | # Dependencies to place after the objects being linked to create a | |
23458 | # shared library. | |
23459 | postdep_objects=$lt_postdep_objects_RC | |
23460 | ||
23461 | # Dependencies to place before the objects being linked to create a | |
23462 | # shared library. | |
23463 | predeps=$lt_predeps_RC | |
23464 | ||
23465 | # Dependencies to place after the objects being linked to create a | |
23466 | # shared library. | |
23467 | postdeps=$lt_postdeps_RC | |
23468 | ||
23469 | # The library search path used internally by the compiler when linking | |
23470 | # a shared library. | |
23471 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC | |
23472 | ||
23473 | # Method to check whether dependent libraries are shared objects. | |
23474 | deplibs_check_method=$lt_deplibs_check_method | |
23475 | ||
23476 | # Command to use when deplibs_check_method == file_magic. | |
23477 | file_magic_cmd=$lt_file_magic_cmd | |
23478 | ||
23479 | # Flag that allows shared libraries with undefined symbols to be built. | |
23480 | allow_undefined_flag=$lt_allow_undefined_flag_RC | |
23481 | ||
23482 | # Flag that forces no undefined symbols. | |
23483 | no_undefined_flag=$lt_no_undefined_flag_RC | |
23484 | ||
23485 | # Commands used to finish a libtool library installation in a directory. | |
23486 | finish_cmds=$lt_finish_cmds | |
23487 | ||
23488 | # Same as above, but a single script fragment to be evaled but not shown. | |
23489 | finish_eval=$lt_finish_eval | |
23490 | ||
23491 | # Take the output of nm and produce a listing of raw symbols and C names. | |
23492 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
23493 | ||
23494 | # Transform the output of nm in a proper C declaration | |
23495 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
23496 | ||
23497 | # Transform the output of nm in a C name address pair | |
23498 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
23499 | ||
23500 | # This is the shared library runtime path variable. | |
23501 | runpath_var=$runpath_var | |
23502 | ||
23503 | # This is the shared library path variable. | |
23504 | shlibpath_var=$shlibpath_var | |
23505 | ||
23506 | # Is shlibpath searched before the hard-coded library search path? | |
23507 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
23508 | ||
23509 | # How to hardcode a shared library path into an executable. | |
23510 | hardcode_action=$hardcode_action_RC | |
23511 | ||
23512 | # Whether we should hardcode library paths into libraries. | |
23513 | hardcode_into_libs=$hardcode_into_libs | |
23514 | ||
23515 | # Flag to hardcode \$libdir into a binary during linking. | |
23516 | # This must work even if \$libdir does not exist. | |
23517 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | |
23518 | ||
23519 | # Whether we need a single -rpath flag with a separated argument. | |
23520 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | |
23521 | ||
23522 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the | |
23523 | # resulting binary. | |
23524 | hardcode_direct=$hardcode_direct_RC | |
23525 | ||
23526 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
23527 | # resulting binary. | |
23528 | hardcode_minus_L=$hardcode_minus_L_RC | |
23529 | ||
23530 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
23531 | # the resulting binary. | |
23532 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | |
23533 | ||
23534 | # Variables whose values should be saved in libtool wrapper scripts and | |
23535 | # restored at relink time. | |
23536 | variables_saved_for_relink="$variables_saved_for_relink" | |
23537 | ||
23538 | # Whether libtool must link a program against all its dependency libraries. | |
23539 | link_all_deplibs=$link_all_deplibs_RC | |
23540 | ||
23541 | # Compile-time system search path for libraries | |
23542 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
23543 | ||
23544 | # Run-time system search path for libraries | |
23545 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
23546 | ||
23547 | # Fix the shell variable \$srcfile for the compiler. | |
23548 | fix_srcfile_path="$fix_srcfile_path_RC" | |
23549 | ||
23550 | # Set to yes if exported symbols are required. | |
23551 | always_export_symbols=$always_export_symbols_RC | |
23552 | ||
23553 | # The commands to list exported symbols. | |
23554 | export_symbols_cmds=$lt_export_symbols_cmds_RC | |
23555 | ||
23556 | # The commands to extract the exported symbol list from a shared archive. | |
23557 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
23558 | ||
23559 | # Symbols that should not be listed in the preloaded symbols. | |
23560 | exclude_expsyms=$lt_exclude_expsyms_RC | |
23561 | ||
23562 | # Symbols that must always be exported. | |
23563 | include_expsyms=$lt_include_expsyms_RC | |
23564 | ||
23565 | # ### END LIBTOOL TAG CONFIG: $tagname | |
23566 | ||
23567 | __EOF__ | |
23568 | ||
50850385 TJ |
23569 | else |
23570 | # If there is no Makefile yet, we rely on a make rule to execute | |
23571 | # `config.status --recheck' to rerun these tests and create the | |
23572 | # libtool script then. | |
23573 | test -f Makefile && make "$ltmain" | |
23574 | fi | |
23575 | ||
50850385 TJ |
23576 | ac_ext=c |
23577 | ac_cpp='$CPP $CPPFLAGS' | |
23578 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23579 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23580 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
23581 | ||
23582 | CC="$lt_save_CC" | |
23583 | ||
23584 | ;; | |
23585 | ||
23586 | *) | |
e61fbf76 | 23587 | { { echo "$as_me:23587: error: Unsupported tag name: $tagname" >&5 |
50850385 TJ |
23588 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
23589 | { (exit 1); exit 1; }; } | |
23590 | ;; | |
23591 | esac | |
23592 | ||
23593 | # Append the new tag name to the list of available tags. | |
23594 | available_tags="$available_tags $tagname" | |
23595 | fi | |
23596 | done | |
23597 | IFS="$lt_save_ifs" | |
23598 | ||
23599 | # Now substitute the updated list of available tags. | |
23600 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | |
23601 | mv "${ofile}T" "$ofile" | |
23602 | chmod +x "$ofile" | |
23603 | else | |
23604 | rm -f "${ofile}T" | |
e61fbf76 | 23605 | { { echo "$as_me:23605: error: unable to update list of available tagged configurations." >&5 |
50850385 TJ |
23606 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
23607 | { (exit 1); exit 1; }; } | |
23608 | fi | |
23609 | fi | |
23610 | ||
50850385 TJ |
23611 | LIBTOOL_SHELL="/bin/sh ./libtool" |
23612 | # LIBTOOL="$LIBTOOL --silent" | |
23613 | ||
e61fbf76 | 23614 | echo "$as_me:23614: checking for cfg_getstr in -lconfuse" >&5 |
50850385 TJ |
23615 | echo $ECHO_N "checking for cfg_getstr in -lconfuse... $ECHO_C" >&6 |
23616 | if test "${ac_cv_lib_confuse_cfg_getstr+set}" = set; then | |
23617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23618 | else | |
23619 | ac_check_lib_save_LIBS=$LIBS | |
23620 | LIBS="-lconfuse $LIBS" | |
23621 | cat >conftest.$ac_ext <<_ACEOF | |
e61fbf76 | 23622 | #line 23622 "configure" |
50850385 TJ |
23623 | #include "confdefs.h" |
23624 | ||
23625 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23626 | #ifdef __cplusplus | |
23627 | extern "C" | |
23628 | #endif | |
23629 | /* We use char because int might match the return type of a gcc2 | |
23630 | builtin and then its argument prototype would still apply. */ | |
23631 | char cfg_getstr (); | |
50850385 TJ |
23632 | int |
23633 | main () | |
23634 | { | |
23635 | cfg_getstr (); | |
23636 | ; | |
23637 | return 0; | |
23638 | } | |
23639 | _ACEOF | |
23640 | rm -f conftest.$ac_objext conftest$ac_exeext | |
e61fbf76 | 23641 | if { (eval echo "$as_me:23641: \"$ac_link\"") >&5 |
50850385 TJ |
23642 | (eval $ac_link) 2>&5 |
23643 | ac_status=$? | |
e61fbf76 | 23644 | echo "$as_me:23644: \$? = $ac_status" >&5 |
50850385 TJ |
23645 | (exit $ac_status); } && |
23646 | { ac_try='test -s conftest$ac_exeext' | |
e61fbf76 | 23647 | { (eval echo "$as_me:23647: \"$ac_try\"") >&5 |
50850385 TJ |
23648 | (eval $ac_try) 2>&5 |
23649 | ac_status=$? | |
e61fbf76 | 23650 | echo "$as_me:23650: \$? = $ac_status" >&5 |
50850385 TJ |
23651 | (exit $ac_status); }; }; then |
23652 | ac_cv_lib_confuse_cfg_getstr=yes | |
23653 | else | |
23654 | echo "$as_me: failed program was:" >&5 | |
23655 | cat conftest.$ac_ext >&5 | |
23656 | ac_cv_lib_confuse_cfg_getstr=no | |
23657 | fi | |
23658 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23659 | LIBS=$ac_check_lib_save_LIBS | |
23660 | fi | |
e61fbf76 | 23661 | echo "$as_me:23661: result: $ac_cv_lib_confuse_cfg_getstr" >&5 |
50850385 TJ |
23662 | echo "${ECHO_T}$ac_cv_lib_confuse_cfg_getstr" >&6 |
23663 | if test $ac_cv_lib_confuse_cfg_getstr = yes; then | |
e61fbf76 | 23664 | cat >>confdefs.h <<EOF |
50850385 | 23665 | #define HAVE_LIBCONFUSE 1 |
e61fbf76 | 23666 | EOF |
50850385 TJ |
23667 | |
23668 | LIBS="-lconfuse $LIBS" | |
23669 | ||
23670 | else | |
e61fbf76 | 23671 | { { echo "$as_me:23671: error: can't find confuse library" >&5 |
50850385 TJ |
23672 | echo "$as_me: error: can't find confuse library" >&2;} |
23673 | { (exit 1); exit 1; }; } | |
23674 | fi | |
23675 | ||
50850385 TJ |
23676 | # Extract the first word of "libftdi-config", so it can be a program name with args. |
23677 | set dummy libftdi-config; ac_word=$2 | |
e61fbf76 | 23678 | echo "$as_me:23678: checking for $ac_word" >&5 |
50850385 TJ |
23679 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
23680 | if test "${ac_cv_path_HAVELIBFTDI+set}" = set; then | |
23681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23682 | else | |
23683 | case $HAVELIBFTDI in | |
23684 | [\\/]* | ?:[\\/]*) | |
23685 | ac_cv_path_HAVELIBFTDI="$HAVELIBFTDI" # Let the user override the test with a path. | |
23686 | ;; | |
23687 | *) | |
e61fbf76 TJ |
23688 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
23689 | ac_dummy="$PATH" | |
23690 | for ac_dir in $ac_dummy; do | |
23691 | IFS=$ac_save_IFS | |
23692 | test -z "$ac_dir" && ac_dir=. | |
23693 | if $as_executable_p "$ac_dir/$ac_word"; then | |
23694 | ac_cv_path_HAVELIBFTDI="$ac_dir/$ac_word" | |
23695 | echo "$as_me:23695: found $ac_dir/$ac_word" >&5 | |
23696 | break | |
23697 | fi | |
50850385 TJ |
23698 | done |
23699 | ||
23700 | test -z "$ac_cv_path_HAVELIBFTDI" && ac_cv_path_HAVELIBFTDI="$PATH" | |
23701 | ;; | |
23702 | esac | |
23703 | fi | |
23704 | HAVELIBFTDI=$ac_cv_path_HAVELIBFTDI | |
23705 | ||
23706 | if test -n "$HAVELIBFTDI"; then | |
e61fbf76 | 23707 | echo "$as_me:23707: result: $HAVELIBFTDI" >&5 |
50850385 TJ |
23708 | echo "${ECHO_T}$HAVELIBFTDI" >&6 |
23709 | else | |
e61fbf76 | 23710 | echo "$as_me:23710: result: no" >&5 |
50850385 TJ |
23711 | echo "${ECHO_T}no" >&6 |
23712 | fi | |
23713 | ||
50850385 TJ |
23714 | if test ! -z "$HAVELIBFTDI"; then |
23715 | LIBFTDI_LIBS=`$HAVELIBFTDI --libs` | |
23716 | ||
23717 | CFLAGS="$CFLAGS $LIBFTDI_CFLAGS" | |
23718 | LIBS="$LIBS $LIBFTDI_LIBS" | |
23719 | else | |
e61fbf76 | 23720 | { { echo "$as_me:23720: error: *** libftdi-config not found. You need a working libftdi installation." >&5 |
50850385 TJ |
23721 | echo "$as_me: error: *** libftdi-config not found. You need a working libftdi installation." >&2;} |
23722 | { (exit 1); exit 1; }; } | |
23723 | fi | |
23724 | ||
e61fbf76 | 23725 | echo "$as_me:23725: checking for extra includes" >&5 |
50850385 TJ |
23726 | echo $ECHO_N "checking for extra includes... $ECHO_C" >&6 |
23727 | ||
23728 | # Check whether --with-extra-includes or --without-extra-includes was given. | |
23729 | if test "${with_extra_includes+set}" = set; then | |
23730 | withval="$with_extra_includes" | |
23731 | kde_use_extra_includes="$withval" | |
23732 | else | |
23733 | kde_use_extra_includes=NONE | |
23734 | ||
23735 | fi; | |
23736 | kde_extra_includes= | |
23737 | if test -n "$kde_use_extra_includes" && \ | |
23738 | test "$kde_use_extra_includes" != "NONE"; then | |
23739 | ||
23740 | ac_save_ifs=$IFS | |
23741 | IFS=':' | |
23742 | for dir in $kde_use_extra_includes; do | |
23743 | kde_extra_includes="$kde_extra_includes $dir" | |
23744 | USER_INCLUDES="$USER_INCLUDES -I$dir" | |
23745 | done | |
23746 | IFS=$ac_save_ifs | |
23747 | kde_use_extra_includes="added" | |
23748 | else | |
23749 | kde_use_extra_includes="no" | |
23750 | fi | |
23751 | ||
e61fbf76 | 23752 | echo "$as_me:23752: result: $kde_use_extra_includes" >&5 |
50850385 TJ |
23753 | echo "${ECHO_T}$kde_use_extra_includes" >&6 |
23754 | ||
23755 | kde_extra_libs= | |
e61fbf76 | 23756 | echo "$as_me:23756: checking for extra libs" >&5 |
50850385 TJ |
23757 | echo $ECHO_N "checking for extra libs... $ECHO_C" >&6 |
23758 | ||
23759 | # Check whether --with-extra-libs or --without-extra-libs was given. | |
23760 | if test "${with_extra_libs+set}" = set; then | |
23761 | withval="$with_extra_libs" | |
23762 | kde_use_extra_libs=$withval | |
23763 | else | |
23764 | kde_use_extra_libs=NONE | |
23765 | ||
23766 | fi; | |
23767 | if test -n "$kde_use_extra_libs" && \ | |
23768 | test "$kde_use_extra_libs" != "NONE"; then | |
23769 | ||
23770 | ac_save_ifs=$IFS | |
23771 | IFS=':' | |
23772 | for dir in $kde_use_extra_libs; do | |
23773 | kde_extra_libs="$kde_extra_libs $dir" | |
23774 | KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir" | |
23775 | USER_LDFLAGS="$USER_LDFLAGS -L$dir" | |
23776 | done | |
23777 | IFS=$ac_save_ifs | |
23778 | kde_use_extra_libs="added" | |
23779 | else | |
23780 | kde_use_extra_libs="no" | |
23781 | fi | |
23782 | ||
e61fbf76 | 23783 | echo "$as_me:23783: result: $kde_use_extra_libs" >&5 |
50850385 TJ |
23784 | echo "${ECHO_T}$kde_use_extra_libs" >&6 |
23785 | ||
50850385 TJ |
23786 | all_libraries="$all_libraries $USER_LDFLAGS" |
23787 | all_includes="$all_includes $USER_INCLUDES" | |
23788 | ||
50850385 TJ |
23789 | DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin" |
23790 | ||
23791 | if test ! -s $srcdir/subdirs; then | |
23792 | TOPSUBDIRS="" | |
23793 | files=`cd $srcdir && ls -1` | |
23794 | dirs=`for i in $files; do if test -d $i; then echo $i; fi; done` | |
23795 | for i in $dirs; do | |
23796 | echo $i >> $srcdir/subdirs | |
23797 | done | |
23798 | fi | |
23799 | ||
23800 | if test -s $srcdir/inst-apps; then | |
23801 | ac_topsubdirs="`cat $srcdir/inst-apps`" | |
23802 | else | |
23803 | ac_topsubdirs="`cat $srcdir/subdirs`" | |
23804 | fi | |
23805 | ||
23806 | for i in $ac_topsubdirs; do | |
e61fbf76 | 23807 | echo "$as_me:23807: checking if $i should be compiled" >&5 |
50850385 TJ |
23808 | echo $ECHO_N "checking if $i should be compiled... $ECHO_C" >&6 |
23809 | if test -d $srcdir/$i; then | |
23810 | install_it="yes" | |
23811 | for j in $DO_NOT_COMPILE; do | |
23812 | if test $i = $j; then | |
23813 | install_it="no" | |
23814 | fi | |
23815 | done | |
23816 | else | |
23817 | install_it="no" | |
23818 | fi | |
e61fbf76 | 23819 | echo "$as_me:23819: result: $install_it" >&5 |
50850385 TJ |
23820 | echo "${ECHO_T}$install_it" >&6 |
23821 | vari=`echo $i | sed -e 's,[-+.],_,g'` | |
23822 | if test $install_it = "yes"; then | |
23823 | TOPSUBDIRS="$TOPSUBDIRS $i" | |
23824 | eval "$vari""_SUBDIR_included=yes" | |
23825 | else | |
23826 | eval "$vari""_SUBDIR_included=no" | |
23827 | fi | |
23828 | done | |
23829 | ||
50850385 TJ |
23830 | ac_config_files="$ac_config_files Makefile" |
23831 | ||
23832 | ac_config_files="$ac_config_files ftdi_eeprom/Makefile" | |
23833 | ||
23834 | cat >confcache <<\_ACEOF | |
23835 | # This file is a shell script that caches the results of configure | |
23836 | # tests run on this system so they can be shared between configure | |
23837 | # scripts and configure runs, see configure's option --config-cache. | |
23838 | # It is not useful on other systems. If it contains results you don't | |
23839 | # want to keep, you may remove or edit it. | |
23840 | # | |
23841 | # config.status only pays attention to the cache file if you give it | |
23842 | # the --recheck option to rerun configure. | |
23843 | # | |
23844 | # `ac_cv_env_foo' variables (set or unset) will be overriden when | |
23845 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
23846 | # following values. | |
23847 | ||
23848 | _ACEOF | |
23849 | ||
23850 | # The following way of writing the cache mishandles newlines in values, | |
23851 | # but we know of no workaround that is simple, portable, and efficient. | |
23852 | # So, don't put newlines in cache variables' values. | |
23853 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
23854 | # and sets the high bit in the cache file unless we assign to the vars. | |
23855 | { | |
23856 | (set) 2>&1 | | |
23857 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
23858 | *ac_space=\ *) | |
23859 | # `set' does not quote correctly, so add quotes (double-quote | |
23860 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
23861 | sed -n \ | |
23862 | "s/'/'\\\\''/g; | |
23863 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
23864 | ;; | |
23865 | *) | |
23866 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
23867 | sed -n \ | |
23868 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
23869 | ;; | |
23870 | esac; | |
23871 | } | | |
23872 | sed ' | |
23873 | t clear | |
23874 | : clear | |
23875 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
23876 | t end | |
23877 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
23878 | : end' >>confcache | |
23879 | if cmp -s $cache_file confcache; then :; else | |
23880 | if test -w $cache_file; then | |
23881 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
23882 | cat confcache >$cache_file | |
23883 | else | |
23884 | echo "not updating unwritable cache $cache_file" | |
23885 | fi | |
23886 | fi | |
23887 | rm -f confcache | |
23888 | ||
23889 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
23890 | # Let make expand exec_prefix. | |
23891 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
23892 | ||
23893 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
23894 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
23895 | # trailing colons and then remove the whole line if VPATH becomes empty | |
23896 | # (actually we leave an empty line to preserve line numbers). | |
23897 | if test "x$srcdir" = x.; then | |
23898 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
23899 | s/:*\$(srcdir):*/:/; | |
23900 | s/:*\${srcdir}:*/:/; | |
23901 | s/:*@srcdir@:*/:/; | |
23902 | s/^\([^=]*=[ ]*\):*/\1/; | |
23903 | s/:*$//; | |
23904 | s/^[^=]*=[ ]*$//; | |
23905 | }' | |
23906 | fi | |
23907 | ||
23908 | DEFS=-DHAVE_CONFIG_H | |
23909 | ||
23910 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
e61fbf76 | 23911 | { { echo "$as_me:23911: error: conditional \"AMDEP\" was never defined. |
50850385 TJ |
23912 | Usually this means the macro was only invoked conditionally." >&5 |
23913 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
23914 | Usually this means the macro was only invoked conditionally." >&2;} | |
23915 | { (exit 1); exit 1; }; } | |
23916 | fi | |
23917 | ||
23918 | : ${CONFIG_STATUS=./config.status} | |
23919 | ac_clean_files_save=$ac_clean_files | |
23920 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
e61fbf76 | 23921 | { echo "$as_me:23921: creating $CONFIG_STATUS" >&5 |
50850385 TJ |
23922 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
23923 | cat >$CONFIG_STATUS <<_ACEOF | |
23924 | #! $SHELL | |
e61fbf76 | 23925 | # Generated automatically by configure. |
50850385 TJ |
23926 | # Run this file to recreate the current configuration. |
23927 | # Compiler output produced by configure, useful for debugging | |
23928 | # configure, is in config.log if it exists. | |
23929 | ||
23930 | debug=false | |
23931 | SHELL=\${CONFIG_SHELL-$SHELL} | |
e61fbf76 TJ |
23932 | ac_cs_invocation="\$0 \$@" |
23933 | ||
50850385 TJ |
23934 | _ACEOF |
23935 | ||
23936 | cat >>$CONFIG_STATUS <<\_ACEOF | |
50850385 TJ |
23937 | # Be Bourne compatible |
23938 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
23939 | emulate sh | |
23940 | NULLCMD=: | |
23941 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
23942 | set -o posix | |
23943 | fi | |
23944 | ||
50850385 | 23945 | # Name of the executable. |
e61fbf76 | 23946 | as_me=`echo "$0" |sed 's,.*[\\/],,'` |
50850385 TJ |
23947 | |
23948 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
23949 | as_expr=expr | |
23950 | else | |
23951 | as_expr=false | |
23952 | fi | |
23953 | ||
23954 | rm -f conf$$ conf$$.exe conf$$.file | |
23955 | echo >conf$$.file | |
23956 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
23957 | # We could just check for DJGPP; but this test a) works b) is more generic | |
23958 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
23959 | if test -f conf$$.exe; then | |
23960 | # Don't use ln at all; we don't have any links | |
23961 | as_ln_s='cp -p' | |
23962 | else | |
23963 | as_ln_s='ln -s' | |
23964 | fi | |
23965 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
23966 | as_ln_s=ln | |
23967 | else | |
23968 | as_ln_s='cp -p' | |
23969 | fi | |
23970 | rm -f conf$$ conf$$.exe conf$$.file | |
23971 | ||
23972 | as_executable_p="test -f" | |
23973 | ||
e61fbf76 TJ |
23974 | # Support unset when possible. |
23975 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
23976 | as_unset=unset | |
23977 | else | |
23978 | as_unset=false | |
23979 | fi | |
50850385 | 23980 | |
e61fbf76 TJ |
23981 | # NLS nuisances. |
23982 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
23983 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
23984 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
23985 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
23986 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
23987 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
23988 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
23989 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
50850385 TJ |
23990 | |
23991 | # IFS | |
23992 | # We need space, tab and new line, in precisely that order. | |
23993 | as_nl=' | |
23994 | ' | |
23995 | IFS=" $as_nl" | |
23996 | ||
23997 | # CDPATH. | |
e61fbf76 | 23998 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } |
50850385 TJ |
23999 | |
24000 | exec 6>&1 | |
24001 | ||
50850385 TJ |
24002 | _ACEOF |
24003 | ||
24004 | # Files that config.status was made for. | |
24005 | if test -n "$ac_config_files"; then | |
24006 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
24007 | fi | |
24008 | ||
24009 | if test -n "$ac_config_headers"; then | |
24010 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
24011 | fi | |
24012 | ||
24013 | if test -n "$ac_config_links"; then | |
24014 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
24015 | fi | |
24016 | ||
24017 | if test -n "$ac_config_commands"; then | |
24018 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
24019 | fi | |
24020 | ||
e61fbf76 | 24021 | cat >>$CONFIG_STATUS <<\EOF |
50850385 TJ |
24022 | |
24023 | ac_cs_usage="\ | |
24024 | \`$as_me' instantiates files from templates according to the | |
24025 | current configuration. | |
24026 | ||
24027 | Usage: $0 [OPTIONS] [FILE]... | |
24028 | ||
24029 | -h, --help print this help, then exit | |
24030 | -V, --version print version number, then exit | |
24031 | -d, --debug don't remove temporary files | |
24032 | --recheck update $as_me by reconfiguring in the same conditions | |
24033 | --file=FILE[:TEMPLATE] | |
24034 | instantiate the configuration file FILE | |
24035 | --header=FILE[:TEMPLATE] | |
24036 | instantiate the configuration header FILE | |
24037 | ||
24038 | Configuration files: | |
24039 | $config_files | |
24040 | ||
24041 | Configuration headers: | |
24042 | $config_headers | |
24043 | ||
24044 | Configuration commands: | |
24045 | $config_commands | |
24046 | ||
24047 | Report bugs to <bug-autoconf@gnu.org>." | |
e61fbf76 | 24048 | EOF |
50850385 | 24049 | |
e61fbf76 | 24050 | cat >>$CONFIG_STATUS <<EOF |
50850385 TJ |
24051 | ac_cs_version="\\ |
24052 | config.status | |
e61fbf76 | 24053 | configured by $0, generated by GNU Autoconf 2.52, |
50850385 TJ |
24054 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
24055 | ||
24056 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
24057 | Free Software Foundation, Inc. | |
24058 | This config.status script is free software; the Free Software Foundation | |
24059 | gives unlimited permission to copy, distribute and modify it." | |
24060 | srcdir=$srcdir | |
24061 | INSTALL="$INSTALL" | |
e61fbf76 | 24062 | EOF |
50850385 | 24063 | |
e61fbf76 | 24064 | cat >>$CONFIG_STATUS <<\EOF |
50850385 TJ |
24065 | # If no file are specified by the user, then we need to provide default |
24066 | # value. By we need to know if files were specified by the user. | |
24067 | ac_need_defaults=: | |
24068 | while test $# != 0 | |
24069 | do | |
24070 | case $1 in | |
24071 | --*=*) | |
24072 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
24073 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
24074 | shift | |
24075 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | |
24076 | shift | |
24077 | ;; | |
24078 | -*);; | |
24079 | *) # This is not an option, so the user has probably given explicit | |
24080 | # arguments. | |
24081 | ac_need_defaults=false;; | |
24082 | esac | |
24083 | ||
24084 | case $1 in | |
24085 | # Handling of the options. | |
e61fbf76 TJ |
24086 | EOF |
24087 | cat >>$CONFIG_STATUS <<EOF | |
50850385 TJ |
24088 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
24089 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" | |
24090 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | |
e61fbf76 TJ |
24091 | EOF |
24092 | cat >>$CONFIG_STATUS <<\EOF | |
50850385 TJ |
24093 | --version | --vers* | -V ) |
24094 | echo "$ac_cs_version"; exit 0 ;; | |
24095 | --he | --h) | |
24096 | # Conflict between --help and --header | |
e61fbf76 | 24097 | { { echo "$as_me:24097: error: ambiguous option: $1 |
50850385 TJ |
24098 | Try \`$0 --help' for more information." >&5 |
24099 | echo "$as_me: error: ambiguous option: $1 | |
24100 | Try \`$0 --help' for more information." >&2;} | |
24101 | { (exit 1); exit 1; }; };; | |
24102 | --help | --hel | -h ) | |
24103 | echo "$ac_cs_usage"; exit 0 ;; | |
24104 | --debug | --d* | -d ) | |
24105 | debug=: ;; | |
24106 | --file | --fil | --fi | --f ) | |
24107 | shift | |
24108 | CONFIG_FILES="$CONFIG_FILES $1" | |
24109 | ac_need_defaults=false;; | |
24110 | --header | --heade | --head | --hea ) | |
24111 | shift | |
24112 | CONFIG_HEADERS="$CONFIG_HEADERS $1" | |
24113 | ac_need_defaults=false;; | |
24114 | ||
24115 | # This is an error. | |
e61fbf76 | 24116 | -*) { { echo "$as_me:24116: error: unrecognized option: $1 |
50850385 TJ |
24117 | Try \`$0 --help' for more information." >&5 |
24118 | echo "$as_me: error: unrecognized option: $1 | |
24119 | Try \`$0 --help' for more information." >&2;} | |
24120 | { (exit 1); exit 1; }; } ;; | |
24121 | ||
24122 | *) ac_config_targets="$ac_config_targets $1" ;; | |
24123 | ||
24124 | esac | |
24125 | shift | |
24126 | done | |
24127 | ||
e61fbf76 TJ |
24128 | exec 5>>config.log |
24129 | cat >&5 << _ACEOF | |
24130 | ||
24131 | ## ----------------------- ## | |
24132 | ## Running config.status. ## | |
24133 | ## ----------------------- ## | |
24134 | ||
24135 | This file was extended by $as_me 2.52, executed with | |
24136 | CONFIG_FILES = $CONFIG_FILES | |
24137 | CONFIG_HEADERS = $CONFIG_HEADERS | |
24138 | CONFIG_LINKS = $CONFIG_LINKS | |
24139 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
24140 | > $ac_cs_invocation | |
24141 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
24142 | ||
50850385 | 24143 | _ACEOF |
e61fbf76 | 24144 | EOF |
50850385 | 24145 | |
e61fbf76 | 24146 | cat >>$CONFIG_STATUS <<EOF |
50850385 TJ |
24147 | # |
24148 | # INIT-COMMANDS section. | |
24149 | # | |
24150 | ||
24151 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
24152 | ||
e61fbf76 | 24153 | EOF |
50850385 | 24154 | |
e61fbf76 | 24155 | cat >>$CONFIG_STATUS <<\EOF |
50850385 TJ |
24156 | for ac_config_target in $ac_config_targets |
24157 | do | |
24158 | case "$ac_config_target" in | |
24159 | # Handling of arguments. | |
24160 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
24161 | "ftdi_eeprom/Makefile" ) CONFIG_FILES="$CONFIG_FILES ftdi_eeprom/Makefile" ;; | |
24162 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
24163 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
e61fbf76 | 24164 | *) { { echo "$as_me:24164: error: invalid argument: $ac_config_target" >&5 |
50850385 TJ |
24165 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
24166 | { (exit 1); exit 1; }; };; | |
24167 | esac | |
24168 | done | |
24169 | ||
24170 | # If the user did not use the arguments to specify the items to instantiate, | |
24171 | # then the envvar interface is used. Set only those that are not. | |
24172 | # We use the long form for the default assignment because of an extremely | |
24173 | # bizarre bug on SunOS 4.1.3. | |
24174 | if $ac_need_defaults; then | |
24175 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
24176 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
24177 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
24178 | fi | |
24179 | ||
24180 | # Create a temporary directory, and hook for its removal unless debugging. | |
24181 | $debug || | |
24182 | { | |
24183 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
24184 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
24185 | } | |
24186 | ||
24187 | # Create a (secure) tmp directory for tmp files. | |
24188 | : ${TMPDIR=/tmp} | |
24189 | { | |
24190 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | |
24191 | test -n "$tmp" && test -d "$tmp" | |
24192 | } || | |
24193 | { | |
24194 | tmp=$TMPDIR/cs$$-$RANDOM | |
24195 | (umask 077 && mkdir $tmp) | |
24196 | } || | |
24197 | { | |
24198 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
24199 | { (exit 1); exit 1; } | |
24200 | } | |
24201 | ||
e61fbf76 | 24202 | EOF |
50850385 | 24203 | |
e61fbf76 | 24204 | cat >>$CONFIG_STATUS <<EOF |
50850385 TJ |
24205 | |
24206 | # | |
24207 | # CONFIG_FILES section. | |
24208 | # | |
24209 | ||
24210 | # No need to generate the scripts if there are no CONFIG_FILES. | |
24211 | # This happens for instance when ./config.status config.h | |
24212 | if test -n "\$CONFIG_FILES"; then | |
24213 | # Protect against being on the right side of a sed subst in config.status. | |
24214 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
24215 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
24216 | s,@SHELL@,$SHELL,;t t | |
50850385 TJ |
24217 | s,@exec_prefix@,$exec_prefix,;t t |
24218 | s,@prefix@,$prefix,;t t | |
24219 | s,@program_transform_name@,$program_transform_name,;t t | |
24220 | s,@bindir@,$bindir,;t t | |
24221 | s,@sbindir@,$sbindir,;t t | |
24222 | s,@libexecdir@,$libexecdir,;t t | |
24223 | s,@datadir@,$datadir,;t t | |
24224 | s,@sysconfdir@,$sysconfdir,;t t | |
24225 | s,@sharedstatedir@,$sharedstatedir,;t t | |
24226 | s,@localstatedir@,$localstatedir,;t t | |
24227 | s,@libdir@,$libdir,;t t | |
24228 | s,@includedir@,$includedir,;t t | |
24229 | s,@oldincludedir@,$oldincludedir,;t t | |
24230 | s,@infodir@,$infodir,;t t | |
24231 | s,@mandir@,$mandir,;t t | |
e61fbf76 TJ |
24232 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
24233 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
24234 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
24235 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
24236 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
50850385 TJ |
24237 | s,@build_alias@,$build_alias,;t t |
24238 | s,@host_alias@,$host_alias,;t t | |
24239 | s,@target_alias@,$target_alias,;t t | |
50850385 TJ |
24240 | s,@ECHO_C@,$ECHO_C,;t t |
24241 | s,@ECHO_N@,$ECHO_N,;t t | |
24242 | s,@ECHO_T@,$ECHO_T,;t t | |
e61fbf76 TJ |
24243 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
24244 | s,@DEFS@,$DEFS,;t t | |
50850385 TJ |
24245 | s,@LIBS@,$LIBS,;t t |
24246 | s,@build@,$build,;t t | |
24247 | s,@build_cpu@,$build_cpu,;t t | |
24248 | s,@build_vendor@,$build_vendor,;t t | |
24249 | s,@build_os@,$build_os,;t t | |
24250 | s,@host@,$host,;t t | |
24251 | s,@host_cpu@,$host_cpu,;t t | |
24252 | s,@host_vendor@,$host_vendor,;t t | |
24253 | s,@host_os@,$host_os,;t t | |
24254 | s,@target@,$target,;t t | |
24255 | s,@target_cpu@,$target_cpu,;t t | |
24256 | s,@target_vendor@,$target_vendor,;t t | |
24257 | s,@target_os@,$target_os,;t t | |
24258 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
24259 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
24260 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
24261 | s,@PACKAGE@,$PACKAGE,;t t | |
24262 | s,@VERSION@,$VERSION,;t t | |
24263 | s,@ACLOCAL@,$ACLOCAL,;t t | |
24264 | s,@AUTOCONF@,$AUTOCONF,;t t | |
24265 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
24266 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
24267 | s,@MAKEINFO@,$MAKEINFO,;t t | |
24268 | s,@AMTAR@,$AMTAR,;t t | |
24269 | s,@install_sh@,$install_sh,;t t | |
24270 | s,@STRIP@,$STRIP,;t t | |
24271 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
24272 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
24273 | s,@AWK@,$AWK,;t t | |
24274 | s,@SET_MAKE@,$SET_MAKE,;t t | |
24275 | s,@CONF_FILES@,$CONF_FILES,;t t | |
24276 | s,@CC@,$CC,;t t | |
24277 | s,@CFLAGS@,$CFLAGS,;t t | |
24278 | s,@LDFLAGS@,$LDFLAGS,;t t | |
24279 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
24280 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
24281 | s,@EXEEXT@,$EXEEXT,;t t | |
24282 | s,@OBJEXT@,$OBJEXT,;t t | |
24283 | s,@DEPDIR@,$DEPDIR,;t t | |
24284 | s,@am__include@,$am__include,;t t | |
24285 | s,@am__quote@,$am__quote,;t t | |
24286 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
24287 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
24288 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
24289 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
24290 | s,@CXX@,$CXX,;t t | |
24291 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
24292 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
24293 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t | |
24294 | s,@USE_EXCEPTIONS@,$USE_EXCEPTIONS,;t t | |
24295 | s,@USE_RTTI@,$USE_RTTI,;t t | |
24296 | s,@CPP@,$CPP,;t t | |
24297 | s,@NOOPT_CFLAGS@,$NOOPT_CFLAGS,;t t | |
24298 | s,@REPO@,$REPO,;t t | |
24299 | s,@NOREPO@,$NOREPO,;t t | |
24300 | s,@KDE_USE_FINAL_TRUE@,$KDE_USE_FINAL_TRUE,;t t | |
24301 | s,@KDE_USE_FINAL_FALSE@,$KDE_USE_FINAL_FALSE,;t t | |
24302 | s,@KDE_USE_CLOSURE_TRUE@,$KDE_USE_CLOSURE_TRUE,;t t | |
24303 | s,@KDE_USE_CLOSURE_FALSE@,$KDE_USE_CLOSURE_FALSE,;t t | |
24304 | s,@KDE_CXXFLAGS@,$KDE_CXXFLAGS,;t t | |
24305 | s,@LN_S@,$LN_S,;t t | |
24306 | s,@ECHO@,$ECHO,;t t | |
24307 | s,@RANLIB@,$RANLIB,;t t | |
24308 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
24309 | s,@CXXCPP@,$CXXCPP,;t t | |
24310 | s,@LIBTOOL@,$LIBTOOL,;t t | |
24311 | s,@HAVELIBFTDI@,$HAVELIBFTDI,;t t | |
24312 | s,@USER_INCLUDES@,$USER_INCLUDES,;t t | |
24313 | s,@USER_LDFLAGS@,$USER_LDFLAGS,;t t | |
24314 | s,@all_includes@,$all_includes,;t t | |
24315 | s,@all_libraries@,$all_libraries,;t t | |
24316 | s,@AUTODIRS@,$AUTODIRS,;t t | |
24317 | s,@TOPSUBDIRS@,$TOPSUBDIRS,;t t | |
24318 | CEOF | |
24319 | ||
e61fbf76 | 24320 | EOF |
50850385 | 24321 | |
e61fbf76 | 24322 | cat >>$CONFIG_STATUS <<\EOF |
50850385 TJ |
24323 | # Split the substitutions into bite-sized pieces for seds with |
24324 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
24325 | ac_max_sed_lines=48 | |
24326 | ac_sed_frag=1 # Number of current file. | |
24327 | ac_beg=1 # First line for current file. | |
24328 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
24329 | ac_more_lines=: | |
24330 | ac_sed_cmds= | |
24331 | while $ac_more_lines; do | |
24332 | if test $ac_beg -gt 1; then | |
24333 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
24334 | else | |
24335 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
24336 | fi | |
24337 | if test ! -s $tmp/subs.frag; then | |
24338 | ac_more_lines=false | |
24339 | else | |
24340 | # The purpose of the label and of the branching condition is to | |
24341 | # speed up the sed processing (if there are no `@' at all, there | |
24342 | # is no need to browse any of the substitutions). | |
24343 | # These are the two extra sed commands mentioned above. | |
24344 | (echo ':t | |
24345 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
24346 | if test -z "$ac_sed_cmds"; then | |
24347 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
24348 | else | |
24349 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
24350 | fi | |
24351 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
24352 | ac_beg=$ac_end | |
24353 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
24354 | fi | |
24355 | done | |
24356 | if test -z "$ac_sed_cmds"; then | |
24357 | ac_sed_cmds=cat | |
24358 | fi | |
24359 | fi # test -n "$CONFIG_FILES" | |
24360 | ||
e61fbf76 TJ |
24361 | EOF |
24362 | cat >>$CONFIG_STATUS <<\EOF | |
50850385 TJ |
24363 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
24364 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
24365 | case $ac_file in | |
24366 | - | *:- | *:-:* ) # input from stdin | |
24367 | cat >$tmp/stdin | |
24368 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
24369 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
24370 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
24371 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
24372 | * ) ac_file_in=$ac_file.in ;; | |
24373 | esac | |
24374 | ||
24375 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
e61fbf76 | 24376 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
50850385 TJ |
24377 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
24378 | X"$ac_file" : 'X\(//\)$' \| \ | |
24379 | X"$ac_file" : 'X\(/\)' \| \ | |
24380 | . : '\(.\)' 2>/dev/null || | |
24381 | echo X"$ac_file" | | |
24382 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
24383 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24384 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24385 | /^X\(\/\).*/{ s//\1/; q; } | |
24386 | s/.*/./; q'` | |
e61fbf76 TJ |
24387 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
24388 | { case "$ac_dir" in | |
50850385 TJ |
24389 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
24390 | *) as_incr_dir=.;; | |
24391 | esac | |
24392 | as_dummy="$ac_dir" | |
24393 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
24394 | case $as_mkdir_dir in | |
24395 | # Skip DOS drivespec | |
24396 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
24397 | *) | |
24398 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
e61fbf76 | 24399 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" |
50850385 TJ |
24400 | ;; |
24401 | esac | |
24402 | done; } | |
24403 | ||
e61fbf76 TJ |
24404 | ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" |
24405 | # A "../" for each directory in $ac_dir_suffix. | |
24406 | ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` | |
24407 | else | |
24408 | ac_dir_suffix= ac_dots= | |
24409 | fi | |
50850385 | 24410 | |
e61fbf76 TJ |
24411 | case $srcdir in |
24412 | .) ac_srcdir=. | |
24413 | if test -z "$ac_dots"; then | |
24414 | ac_top_srcdir=. | |
24415 | else | |
24416 | ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` | |
24417 | fi ;; | |
24418 | [\\/]* | ?:[\\/]* ) | |
24419 | ac_srcdir=$srcdir$ac_dir_suffix; | |
24420 | ac_top_srcdir=$srcdir ;; | |
50850385 | 24421 | *) # Relative path. |
e61fbf76 TJ |
24422 | ac_srcdir=$ac_dots$srcdir$ac_dir_suffix |
24423 | ac_top_srcdir=$ac_dots$srcdir ;; | |
24424 | esac | |
50850385 TJ |
24425 | |
24426 | case $INSTALL in | |
24427 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
e61fbf76 | 24428 | *) ac_INSTALL=$ac_dots$INSTALL ;; |
50850385 TJ |
24429 | esac |
24430 | ||
24431 | if test x"$ac_file" != x-; then | |
e61fbf76 | 24432 | { echo "$as_me:24432: creating $ac_file" >&5 |
50850385 TJ |
24433 | echo "$as_me: creating $ac_file" >&6;} |
24434 | rm -f "$ac_file" | |
24435 | fi | |
24436 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
24437 | # use $as_me), people would be surprised to read: | |
e61fbf76 TJ |
24438 | # /* config.h. Generated automatically by config.status. */ |
24439 | configure_input="Generated automatically from `echo $ac_file_in | | |
24440 | sed 's,.*/,,'` by configure." | |
50850385 TJ |
24441 | |
24442 | # First look for the input files in the build tree, otherwise in the | |
24443 | # src tree. | |
24444 | ac_file_inputs=`IFS=: | |
24445 | for f in $ac_file_in; do | |
24446 | case $f in | |
24447 | -) echo $tmp/stdin ;; | |
24448 | [\\/$]*) | |
24449 | # Absolute (can't be DOS-style, as IFS=:) | |
e61fbf76 | 24450 | test -f "$f" || { { echo "$as_me:24450: error: cannot find input file: $f" >&5 |
50850385 TJ |
24451 | echo "$as_me: error: cannot find input file: $f" >&2;} |
24452 | { (exit 1); exit 1; }; } | |
24453 | echo $f;; | |
24454 | *) # Relative | |
24455 | if test -f "$f"; then | |
24456 | # Build tree | |
24457 | echo $f | |
24458 | elif test -f "$srcdir/$f"; then | |
24459 | # Source tree | |
24460 | echo $srcdir/$f | |
24461 | else | |
24462 | # /dev/null tree | |
e61fbf76 | 24463 | { { echo "$as_me:24463: error: cannot find input file: $f" >&5 |
50850385 TJ |
24464 | echo "$as_me: error: cannot find input file: $f" >&2;} |
24465 | { (exit 1); exit 1; }; } | |
24466 | fi;; | |
24467 | esac | |
24468 | done` || { (exit 1); exit 1; } | |
e61fbf76 TJ |
24469 | EOF |
24470 | cat >>$CONFIG_STATUS <<EOF | |
50850385 TJ |
24471 | sed "$ac_vpsub |
24472 | $extrasub | |
e61fbf76 TJ |
24473 | EOF |
24474 | cat >>$CONFIG_STATUS <<\EOF | |
50850385 TJ |
24475 | :t |
24476 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
24477 | s,@configure_input@,$configure_input,;t t | |
24478 | s,@srcdir@,$ac_srcdir,;t t | |
50850385 | 24479 | s,@top_srcdir@,$ac_top_srcdir,;t t |
50850385 TJ |
24480 | s,@INSTALL@,$ac_INSTALL,;t t |
24481 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
24482 | rm -f $tmp/stdin | |
24483 | if test x"$ac_file" != x-; then | |
24484 | mv $tmp/out $ac_file | |
24485 | else | |
24486 | cat $tmp/out | |
24487 | rm -f $tmp/out | |
24488 | fi | |
24489 | ||
24490 | done | |
e61fbf76 TJ |
24491 | EOF |
24492 | cat >>$CONFIG_STATUS <<\EOF | |
50850385 TJ |
24493 | |
24494 | # | |
24495 | # CONFIG_HEADER section. | |
24496 | # | |
24497 | ||
24498 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
24499 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
24500 | # | |
24501 | # ac_d sets the value in "#define NAME VALUE" lines. | |
24502 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
24503 | ac_dB='[ ].*$,\1#\2' | |
24504 | ac_dC=' ' | |
24505 | ac_dD=',;t' | |
24506 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
24507 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
24508 | ac_uB='$,\1#\2define\3' | |
24509 | ac_uC=' ' | |
24510 | ac_uD=',;t' | |
24511 | ||
24512 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
24513 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
24514 | case $ac_file in | |
24515 | - | *:- | *:-:* ) # input from stdin | |
24516 | cat >$tmp/stdin | |
24517 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
24518 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
24519 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
24520 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
24521 | * ) ac_file_in=$ac_file.in ;; | |
24522 | esac | |
24523 | ||
e61fbf76 | 24524 | test x"$ac_file" != x- && { echo "$as_me:24524: creating $ac_file" >&5 |
50850385 TJ |
24525 | echo "$as_me: creating $ac_file" >&6;} |
24526 | ||
24527 | # First look for the input files in the build tree, otherwise in the | |
24528 | # src tree. | |
24529 | ac_file_inputs=`IFS=: | |
24530 | for f in $ac_file_in; do | |
24531 | case $f in | |
24532 | -) echo $tmp/stdin ;; | |
24533 | [\\/$]*) | |
24534 | # Absolute (can't be DOS-style, as IFS=:) | |
e61fbf76 | 24535 | test -f "$f" || { { echo "$as_me:24535: error: cannot find input file: $f" >&5 |
50850385 TJ |
24536 | echo "$as_me: error: cannot find input file: $f" >&2;} |
24537 | { (exit 1); exit 1; }; } | |
24538 | echo $f;; | |
24539 | *) # Relative | |
24540 | if test -f "$f"; then | |
24541 | # Build tree | |
24542 | echo $f | |
24543 | elif test -f "$srcdir/$f"; then | |
24544 | # Source tree | |
24545 | echo $srcdir/$f | |
24546 | else | |
24547 | # /dev/null tree | |
e61fbf76 | 24548 | { { echo "$as_me:24548: error: cannot find input file: $f" >&5 |
50850385 TJ |
24549 | echo "$as_me: error: cannot find input file: $f" >&2;} |
24550 | { (exit 1); exit 1; }; } | |
24551 | fi;; | |
24552 | esac | |
24553 | done` || { (exit 1); exit 1; } | |
24554 | # Remove the trailing spaces. | |
24555 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
24556 | ||
e61fbf76 | 24557 | EOF |
50850385 TJ |
24558 | |
24559 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
24560 | # `conftest.undefs', that substitutes the proper values into | |
24561 | # config.h.in to produce config.h. The first handles `#define' | |
24562 | # templates, and the second `#undef' templates. | |
24563 | # And first: Protect against being on the right side of a sed subst in | |
24564 | # config.status. Protect against being in an unquoted here document | |
24565 | # in config.status. | |
24566 | rm -f conftest.defines conftest.undefs | |
24567 | # Using a here document instead of a string reduces the quoting nightmare. | |
24568 | # Putting comments in sed scripts is not portable. | |
24569 | # | |
24570 | # `end' is used to avoid that the second main sed command (meant for | |
24571 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
24572 | # See the Autoconf documentation for `clear'. | |
e61fbf76 | 24573 | cat >confdef2sed.sed <<\EOF |
50850385 TJ |
24574 | s/[\\&,]/\\&/g |
24575 | s,[\\$`],\\&,g | |
24576 | t clear | |
24577 | : clear | |
e61fbf76 | 24578 | s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp |
50850385 TJ |
24579 | t end |
24580 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
24581 | : end | |
e61fbf76 | 24582 | EOF |
50850385 TJ |
24583 | # If some macros were called several times there might be several times |
24584 | # the same #defines, which is useless. Nevertheless, we may not want to | |
24585 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
24586 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
24587 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
24588 | rm -f confdef2sed.sed | |
24589 | ||
24590 | # This sed command replaces #undef with comments. This is necessary, for | |
24591 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
24592 | # on some systems where configure will not decide to define it. | |
e61fbf76 | 24593 | cat >>conftest.undefs <<\EOF |
50850385 | 24594 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
e61fbf76 | 24595 | EOF |
50850385 TJ |
24596 | |
24597 | # Break up conftest.defines because some shells have a limit on the size | |
24598 | # of here documents, and old seds have small limits too (100 cmds). | |
24599 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
24600 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
24601 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
24602 | echo ' :' >>$CONFIG_STATUS | |
24603 | rm -f conftest.tail | |
24604 | while grep . conftest.defines >/dev/null | |
24605 | do | |
24606 | # Write a limited-size here document to $tmp/defines.sed. | |
24607 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
24608 | # Speed up: don't consider the non `#define' lines. | |
24609 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
24610 | # Work around the forget-to-reset-the-flag bug. | |
24611 | echo 't clr' >>$CONFIG_STATUS | |
24612 | echo ': clr' >>$CONFIG_STATUS | |
24613 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
24614 | echo 'CEOF | |
24615 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
24616 | rm -f $tmp/in | |
24617 | mv $tmp/out $tmp/in | |
24618 | ' >>$CONFIG_STATUS | |
24619 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
24620 | rm -f conftest.defines | |
24621 | mv conftest.tail conftest.defines | |
24622 | done | |
24623 | rm -f conftest.defines | |
24624 | echo ' fi # egrep' >>$CONFIG_STATUS | |
24625 | echo >>$CONFIG_STATUS | |
24626 | ||
24627 | # Break up conftest.undefs because some shells have a limit on the size | |
24628 | # of here documents, and old seds have small limits too (100 cmds). | |
24629 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
24630 | rm -f conftest.tail | |
24631 | while grep . conftest.undefs >/dev/null | |
24632 | do | |
24633 | # Write a limited-size here document to $tmp/undefs.sed. | |
24634 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
24635 | # Speed up: don't consider the non `#undef' | |
24636 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
24637 | # Work around the forget-to-reset-the-flag bug. | |
24638 | echo 't clr' >>$CONFIG_STATUS | |
24639 | echo ': clr' >>$CONFIG_STATUS | |
24640 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
24641 | echo 'CEOF | |
24642 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
24643 | rm -f $tmp/in | |
24644 | mv $tmp/out $tmp/in | |
24645 | ' >>$CONFIG_STATUS | |
24646 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
24647 | rm -f conftest.undefs | |
24648 | mv conftest.tail conftest.undefs | |
24649 | done | |
24650 | rm -f conftest.undefs | |
24651 | ||
e61fbf76 | 24652 | cat >>$CONFIG_STATUS <<\EOF |
50850385 TJ |
24653 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
24654 | # use $as_me), people would be surprised to read: | |
e61fbf76 | 24655 | # /* config.h. Generated automatically by config.status. */ |
50850385 | 24656 | if test x"$ac_file" = x-; then |
e61fbf76 | 24657 | echo "/* Generated automatically by configure. */" >$tmp/config.h |
50850385 | 24658 | else |
e61fbf76 | 24659 | echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h |
50850385 TJ |
24660 | fi |
24661 | cat $tmp/in >>$tmp/config.h | |
24662 | rm -f $tmp/in | |
24663 | if test x"$ac_file" != x-; then | |
24664 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | |
e61fbf76 | 24665 | { echo "$as_me:24665: $ac_file is unchanged" >&5 |
50850385 TJ |
24666 | echo "$as_me: $ac_file is unchanged" >&6;} |
24667 | else | |
e61fbf76 | 24668 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
50850385 TJ |
24669 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
24670 | X"$ac_file" : 'X\(//\)$' \| \ | |
24671 | X"$ac_file" : 'X\(/\)' \| \ | |
24672 | . : '\(.\)' 2>/dev/null || | |
24673 | echo X"$ac_file" | | |
24674 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
24675 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24676 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24677 | /^X\(\/\).*/{ s//\1/; q; } | |
24678 | s/.*/./; q'` | |
e61fbf76 TJ |
24679 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
24680 | { case "$ac_dir" in | |
50850385 TJ |
24681 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
24682 | *) as_incr_dir=.;; | |
24683 | esac | |
24684 | as_dummy="$ac_dir" | |
24685 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
24686 | case $as_mkdir_dir in | |
24687 | # Skip DOS drivespec | |
24688 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
24689 | *) | |
24690 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
e61fbf76 | 24691 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" |
50850385 TJ |
24692 | ;; |
24693 | esac | |
24694 | done; } | |
24695 | ||
e61fbf76 | 24696 | fi |
50850385 TJ |
24697 | rm -f $ac_file |
24698 | mv $tmp/config.h $ac_file | |
24699 | fi | |
24700 | else | |
24701 | cat $tmp/config.h | |
24702 | rm -f $tmp/config.h | |
24703 | fi | |
24704 | # Run the commands associated with the file. | |
24705 | case $ac_file in | |
24706 | config.h ) # update the timestamp | |
24707 | echo 'timestamp for config.h' >"./stamp-h1" | |
24708 | ;; | |
24709 | esac | |
24710 | done | |
e61fbf76 TJ |
24711 | EOF |
24712 | cat >>$CONFIG_STATUS <<\EOF | |
50850385 TJ |
24713 | |
24714 | # | |
24715 | # CONFIG_COMMANDS section. | |
24716 | # | |
24717 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
24718 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
24719 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
50850385 | 24720 | |
50850385 TJ |
24721 | case $ac_dest in |
24722 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
24723 | # Strip MF so we end up with the name of the file. | |
24724 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
24725 | # Check whether this is an Automake generated Makefile or not. | |
24726 | # We used to match only the files named `Makefile.in', but | |
24727 | # some people rename them; so instead we look at the file content. | |
24728 | # Grep'ing the first line is not enough: some people post-process | |
24729 | # each Makefile.in and add a new line on top of each file to say so. | |
24730 | # So let's grep whole file. | |
24731 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
e61fbf76 | 24732 | dirpart=`$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
50850385 TJ |
24733 | X"$mf" : 'X\(//\)[^/]' \| \ |
24734 | X"$mf" : 'X\(//\)$' \| \ | |
24735 | X"$mf" : 'X\(/\)' \| \ | |
24736 | . : '\(.\)' 2>/dev/null || | |
24737 | echo X"$mf" | | |
24738 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
24739 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24740 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24741 | /^X\(\/\).*/{ s//\1/; q; } | |
24742 | s/.*/./; q'` | |
24743 | else | |
24744 | continue | |
24745 | fi | |
24746 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue | |
24747 | # Extract the definition of DEP_FILES from the Makefile without | |
24748 | # running `make'. | |
24749 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` | |
24750 | test -z "$DEPDIR" && continue | |
24751 | # When using ansi2knr, U may be empty or an underscore; expand it | |
24752 | U=`sed -n -e '/^U = / s///p' < "$mf"` | |
24753 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" | |
24754 | # We invoke sed twice because it is the simplest approach to | |
24755 | # changing $(DEPDIR) to its actual value in the expansion. | |
24756 | for file in `sed -n -e ' | |
24757 | /^DEP_FILES = .*\\\\$/ { | |
24758 | s/^DEP_FILES = // | |
24759 | :loop | |
24760 | s/\\\\$// | |
24761 | p | |
24762 | n | |
24763 | /\\\\$/ b loop | |
24764 | p | |
24765 | } | |
24766 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ | |
24767 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
24768 | # Make sure the directory exists. | |
24769 | test -f "$dirpart/$file" && continue | |
e61fbf76 | 24770 | fdir=`$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
50850385 TJ |
24771 | X"$file" : 'X\(//\)[^/]' \| \ |
24772 | X"$file" : 'X\(//\)$' \| \ | |
24773 | X"$file" : 'X\(/\)' \| \ | |
24774 | . : '\(.\)' 2>/dev/null || | |
24775 | echo X"$file" | | |
24776 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
24777 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24778 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24779 | /^X\(\/\).*/{ s//\1/; q; } | |
24780 | s/.*/./; q'` | |
24781 | { case $dirpart/$fdir in | |
24782 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
24783 | *) as_incr_dir=.;; | |
24784 | esac | |
24785 | as_dummy=$dirpart/$fdir | |
24786 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
24787 | case $as_mkdir_dir in | |
24788 | # Skip DOS drivespec | |
24789 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
24790 | *) | |
24791 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
e61fbf76 | 24792 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" |
50850385 TJ |
24793 | ;; |
24794 | esac | |
24795 | done; } | |
24796 | ||
24797 | # echo "creating $dirpart/$file" | |
24798 | echo '# dummy' > "$dirpart/$file" | |
24799 | done | |
24800 | done | |
24801 | ;; | |
24802 | esac | |
24803 | done | |
e61fbf76 | 24804 | EOF |
50850385 | 24805 | |
e61fbf76 | 24806 | cat >>$CONFIG_STATUS <<\EOF |
50850385 TJ |
24807 | |
24808 | { (exit 0); exit 0; } | |
e61fbf76 | 24809 | EOF |
50850385 TJ |
24810 | chmod +x $CONFIG_STATUS |
24811 | ac_clean_files=$ac_clean_files_save | |
24812 | ||
50850385 TJ |
24813 | # configure is writing to config.log, and then calls config.status. |
24814 | # config.status does its own redirection, appending to config.log. | |
24815 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
24816 | # by configure, so config.status won't be able to write to it; its | |
24817 | # output is simply discarded. So we exec the FD to /dev/null, | |
24818 | # effectively closing config.log, so it can be properly (re)opened and | |
24819 | # appended to by config.status. When coming back to configure, we | |
24820 | # need to make the FD available again. | |
24821 | if test "$no_create" != yes; then | |
24822 | ac_cs_success=: | |
24823 | exec 5>/dev/null | |
24824 | $SHELL $CONFIG_STATUS || ac_cs_success=false | |
24825 | exec 5>>config.log | |
24826 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
24827 | # would make configure fail if this is the last instruction. | |
24828 | $ac_cs_success || { (exit 1); exit 1; } | |
24829 | fi | |
24830 | ||
24831 | if test "$all_tests" = "bad"; then | |
24832 | if test ! "$cache_file" = "/dev/null"; then | |
24833 | echo "" | |
24834 | echo "Please remove the file $cache_file after changing your setup" | |
24835 | echo "so that configure will find the changes next time." | |
24836 | echo "" | |
24837 | fi | |
24838 | else | |
24839 | echo "" | |
24840 | echo "Good - your configure finished. Start make now" | |
24841 | echo "" | |
24842 | fi |